]> code.delx.au - gnu-emacs/blob - src/ChangeLog
Fix handling of 8-bit characters in a display table.
[gnu-emacs] / src / ChangeLog
1 2010-08-31 Kenichi Handa <handa@m17n.org>
2
3 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
4 characters.
5
6 * term.c (encode_terminal_code): Fix the previous change.
7 (produce_glyphs): Don't set it->char_to_display here. Don't
8 handle unibyte-display-via-language-environment here.
9 (produce_special_glyphs): Set temp_it.char_to_display before
10 calling produce_glyphs.
11
12 * xdisp.c (get_next_display_element): Set it->char_to_display
13 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
14 characters.
15 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
16 calling PRODUCE_GLYPHS.
17 (append_space_for_newline): Save and store it->char_to_display.
18 Set it->char_to_display before calling PRODUCE_GLYPHS.
19 (extend_face_to_end_of_line): Set it->char_to_display before
20 calling PRODUCE_GLYPHS.
21 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
22 character to its byte value.
23 (get_char_glyph_code): New function.
24 (produce_stretch_glyph): Set it2.char_to_display too before
25 calling x_produce_glyphs.
26 (x_produce_glyphs): Simplify by using the same code for ASCII and
27 non-ASCII characters. Don't set it->char_to_display here. Don't
28 handle unibyte-display-via-language-environment here. For a
29 charater of no glyph, use font->space_width instead of FONT_WIDTH.
30
31 2010-08-29 Kenichi Handa <handa@m17n.org>
32
33 * term.c (encode_terminal_code): Encode byte chars to the
34 correspnding bytes.
35
36 2010-08-17 Andreas Schwab <schwab@linux-m68k.org>
37
38 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
39 instead of SAFE_ALLOCA.
40
41 2010-08-17 Chong Yidong <cyd@stupidchicken.com>
42
43 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
44 (Bug#6214).
45
46 2010-08-14 Jan Djärv <jan.h.d@swipnet.se>
47
48 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
49
50 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
51
52 * doc.c (Fsnarf_documentation): Initialize skip_file before
53 build-files test.
54
55 2010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
56
57 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK): New
58 definitions.
59 (HAVE_TERMIO): Remove.
60
61 2010-08-06 Kenichi Handa <handa@m17n.org>
62
63 * charset.c: Include <stdlib.h>
64 (struct charset_sort_data): New struct.
65 (charset_compare): New function.
66 (Fsort_charsets): New funciton.
67 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
68
69 * coding.c (decode_coding_iso_2022): Fix checking of dimension
70 number in CTEXT extended segment.
71
72 2010-08-01 Juanma Barranquero <lekktu@gmail.com>
73
74 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
75 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
76
77 2010-07-30 Juanma Barranquero <lekktu@gmail.com>
78
79 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
80 (Fhash_table_size): Fix typos in docstrings.
81 (Fmake_hash_table): Doc fix.
82
83 2010-07-28 Juanma Barranquero <lekktu@gmail.com>
84
85 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
86 Doc fix (bug#5625).
87
88 2010-07-27 Ken Brown <kbrown@cornell.edu>
89
90 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
91 the MSDOS definition.
92
93 2010-07-25 Christoph Scholtes <cschol2112@gmail.com>
94
95 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
96
97 2010-07-22 Christoph Scholtes <cschol2112@gmail.com>
98
99 * window.c (Fwindow_height): Doc fix (bug#6518).
100
101 2010-07-21 Juanma Barranquero <lekktu@gmail.com>
102
103 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
104
105 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
106
107 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
108 is related to the menu bar (Bug#6499).
109
110 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
111
112 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
113
114 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
115
116 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
117 i.e. don't put back ButtonRelease (Bug#6608).
118
119 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
120 instead of Window. Call xg_event_is_for_menubar when
121 USE_GTK (Bug#6499).
122
123 * gtkutil.h (xg_event_is_for_menubar): Declare.
124
125 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
126
127 2010-07-14 Eli Zaretskii <eliz@gnu.org>
128
129 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
130 when it's the same as the old foreground. (Bug#6609)
131
132 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
133
134 * xfaces.c (realize_face): Garbage the frame if a face is removed
135 (Bug#6593).
136
137 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
138
139 * keyboard.c: Remove duplicate <setjmp.h>.
140 (read_key_sequence): Remove volatile qualifiers.
141
142 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
143
144 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
145 (struct glyph_row): New members left_fringe_offset and
146 right_fringe_offset.
147
148 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
149 specially.
150 * w32term.c (w32_draw_fringe_bitmap): Likewise.
151 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
152
153 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
154 Take account of bitmap offset.
155 (draw_window_fringes): Take account of window vscroll.
156 (update_window_fringes): Likewise. Extend top-aligned top indicator
157 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
158 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
159 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
160
161 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
162
163 * w32fns.c (Qtooltip): Declare.
164 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
165
166 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
167
168 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
169 grab on just Press (Bug#6499).
170
171 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
172
173 * frame.c (Qtooltip): New var.
174 (delete_frame): Use it. Fix faulty if statement. Don't update
175 mode line for tooltip frames. Suggested by Martin Rudalics.
176
177 * xfns.c (x_create_tip_frame):
178 * w32fns.c (x_create_tip_frame): Use it.
179
180 2010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
181
182 * xftfont.c (xftfont_open): Check font width one by one also when
183 spacing is dual.
184
185 * ftfont.c (ftfont_open): Ditto.
186
187 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
188
189 * alloc.c (Fmake_byte_code): Don't access undefined argument
190 (Bug#6517).
191
192 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
193
194 * xdisp.c (next_element_from_image): Ensure that after-strings are
195 read the next time we hit handle_stop (Bug#1336).
196
197 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
198
199 * lread.c (read1): Signal error if #s is not followed by paren.
200
201 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
202
203 * image.c (free_image): Mark frame as garbaged (Bug#6426).
204
205 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
206
207 2010-06-15 Glenn Morris <rgm@gnu.org>
208
209 * editfns.c (Fbyte_to_string): Pacify compiler.
210
211 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
212
213 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
214 Check `object's type before accessing its guts.
215
216 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
217
218 * minibuf.c (Fall_completions): Add more checks.
219
220 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
221
222 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
223
224 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
225
226 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
227 address. (Bug#6346)
228
229 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
230
231 * ccl.c (Fccl_program_p): Fix typo in docstring.
232
233 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
234
235 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
236 of bug#6305).
237
238 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
239
240 * xdisp.c (redisplay_window): After redisplay, check if point is
241 still valid before setting it (Bug#6177).
242
243 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
244
245 * s/netbsd.h: If terminfo is found, use it in preference to
246 termcap. (Bug#6190) [Backport from trunk]
247
248 2010-05-20 Kevin Ryde <user42@zip.com.au>
249
250 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
251 (Voverriding_terminal_local_map, Vsystem_key_alist)
252 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
253
254 2010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
255
256 * editfns.c (Fbyte_to_string): New function.
257
258 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
259
260 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
261 prevent stack overflow if number of arguments is too large
262 (Bug#6214).
263
264 2010-05-11 Eli Zaretskii <eliz@gnu.org>
265
266 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
267
268 * w32fns.c: Include w32.h.
269 (Fw32_shell_execute): Decode the error message before passing it
270 to `error'. (Bug#6126)
271
272 2010-05-11 Karel Klic <kklic@redhat.com>
273
274 * ftfont.c: Fix incorrect parentheses of #if condition for
275 definining M17N_FLT_USE_NEW_FEATURE.
276
277 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
278
279 * Version 23.2 released.
280
281 2010-04-30 Andreas Schwab <schwab@linux-m68k.org>
282
283 * composite.c (autocmp_chars): Save point as marker before calling
284 auto-composition-function (Bug#5984).
285
286 * lisp.h (restore_point_unwind): Add prototype.
287
288 * fileio.c (restore_point_unwind): Remove static attribute.
289
290 2010-04-23 Kenichi Handa <handa@m17n.org>
291
292 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
293 new feature of libotf and m17n-flt.
294 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]: Call
295 OTF_check_features even if no specific feature is given.
296 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
297 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
298 that OUT is NULL. Use OTF_drive_gsub_with_log and
299 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
300 OTF_drive_gpos.
301 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
302 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]: Setup
303 mflt_enable_new_feature and mflt_try_otf.
304
305 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
306
307 * dired.c (Ffile_attributes): Fix typo in docstring.
308
309 2010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
310
311 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
312 NSInteger (Bug#5811).
313
314 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
315
316 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
317 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
318
319 2010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
320
321 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
322
323 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
324
325 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
326 FRAME_LINE_TO_PIXEL_Y.
327
328 * xterm.c (x_set_window_size_1): Don't add border_width/height to
329 pixelwidth/height.
330
331 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
332
333 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
334 terminal frames (Bug#5837).
335
336 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
337
338 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
339 * nsterm.h: Fix prototype.
340
341 2010-03-31 Eli Zaretskii <eliz@gnu.org>
342
343 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
344 in this function. (Bug#5703)
345
346 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
347
348 * nsterm.h: Fix last change.
349
350 2010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
351
352 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
353
354 2010-03-30 Jan Djärv <jan.h.d@swipnet.se>
355
356 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
357 invisible (Bug#5766).
358
359 2010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
360
361 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
362 HAVE_NS conditionals.
363 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
364
365 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
366 filename for the title.
367 (ns_set_doc_edited): Do nothing if the selected window is a
368 minibuffer window.
369
370 * nsterm.h: Add prototypes for ns_set_name_as_filename and
371 ns_set_doc_edited.
372
373 * nsterm.m: Remove unneeded prototype.
374
375 2010-03-28 Glenn Morris <rgm@gnu.org>
376
377 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
378 in the DOC file. (Bug#5336)
379
380 2010-03-24 Chong Yidong <cyd@stupidchicken.com>
381
382 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
383
384 2010-03-20 Jan Djärv <jan.h.d@swipnet.se>
385
386 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
387
388 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
389
390 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
391
392 2010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
393
394 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
395 XLoadQueryFont.
396
397 2010-03-16 Kenichi Handa <handa@m17n.org>
398
399 * coding.c (decode_coding_ccl): Fix previous change for the
400 multibyte case.
401 (encode_coding_ccl): Don't setup ccl program here. Fix for the
402 case that the output buffer is fullfilled.
403 (encode_coding): Setup ccl program here.
404
405 2010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
406
407 * editfns.c (Fformat): Account for string precision when computing
408 field width (Bug#5710).
409
410 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
411
412 Make it possible to C-g in a tight bytecode loop again (bug#5680).
413 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
414 (QUIT): Use it to consolidate code and remove redundancy.
415 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
416
417 * regex.c (regex_compile): Setup gl_state as well.
418
419 * syntax.c (skip_chars): Setup gl_state (bug#3823).
420 (in_classes): Use CONSP before XCAR/XCDR.
421
422 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
423
424 * keymap.c (Fwhere_is_internal): Use Fequal to compare
425 definitions, so that keyboard macros are correctly handled
426 (Bug#5481).
427
428 2010-03-02 Eli Zaretskii <eliz@gnu.org>
429
430 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
431 text that could be relocated inside the call to emacs_mule_char.
432 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
433 (CODING_DECODE_CHAR): Add a comment describing its purpose.
434
435 2010-03-02 Kenichi Handa <handa@m17n.org>
436
437 * character.c (parse_str_as_multibyte): Fix handling of the
438 multibyte form of raw-bytes.
439 (str_as_multibyte): Likewise.
440
441 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
442 form of raw-bytes.
443
444 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
445
446 * charset.c (load_charset_map_from_file)
447 (load_charset_map_from_vector): Zero out allocated
448 charset_map_entries before using them.
449
450 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
451
452 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
453
454 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
455
456 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
457 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
458
459 2010-02-26 Kenichi Handa <handa@m17n.org>
460
461 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
462
463 * xdisp.c (reseat_to_string): Fix previous change.
464
465 2010-02-26 David Reitter <david.reitter@gmail.com>
466
467 * nsfont.m (nsfont_draw): ns_antialias_text should be a
468 Lisp_Object (Bug#4736).
469
470 2010-02-25 Kenichi Handa <handa@m17n.org>
471
472 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
473
474 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
475
476 * xterm.c (XTflash): Move declarations before statements.
477
478 * gtkutil.c (xg_get_gdk_display): Remove (unused).
479 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
480 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
481 (xg_create_tool_bar): Remove unused variables.
482 (x_wm_set_size_hint): Move declarations before statements.
483 (xg_create_frame_widgets): Remove variable grav.
484
485 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
486
487 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
488
489 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
490
491 * term.c (fatal): Add a final \n if needed (bug#5596).
492
493 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
494
495 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
496
497 2010-02-18 Glenn Morris <rgm@gnu.org>
498
499 * callint.c (Finteractive): Doc fix.
500
501 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
502
503 * coding.c (record_conversion_result):
504 Handle CODING_RESULT_INSUFFICIENT_DST.
505 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
506 memory allocation error.
507
508 2010-02-17 Kenichi Handa <handa@m17n.org>
509
510 * coding.c (decode_coding_ccl): Don't setup ccl program here.
511 Fix for the case that the output buffer is fullfilled.
512 (decode_coding): Setup ccl program here. Keep looping when the
513 decoder stopped because the output buffer is
514 fullfilled (bug#5534).
515
516 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
517
518 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
519
520 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
521 bug #5571.
522 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
523 overdrawn.
524
525 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
526
527 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
528 doing_interact here.
529 (ice_connection_closed): New function.
530 (x_session_check_input, smc_die_CB, ice_io_error_handler)
531 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
532 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
533 returns I/O error.
534 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
535 bug #5512.
536
537 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
538
539 * nsfont.m (nsfont_open): The system's value for the font descent
540 is negative, so round it down to avoid clipping.
541
542 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
543
544 * charset.c (load_charset_map_from_file)
545 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
546 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
547
548 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
549
550 * charset.c (load_charset_map_from_file): Allocate large
551 charset_map_entries structure on the heap rather than the stack.
552 (Bug#5526).
553
554 2010-01-31 Kenichi Handa <handa@m17n.org>
555
556 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
557 size in NAME is invalid, return -1 (Bug#5396).
558
559 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
560
561 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
562 <deactivated@gmail.com> (Bug#3605).
563
564 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
565
566 * fileio.c (Frename_file): Correctly rename symlinks to
567 directories (Bug#5496).
568
569 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
570
571 * nsterm.m (ns_ring_bell): Handle visible bell like X.
572
573 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
574
575 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
576
577 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
578
579 * frame.c (DEFAULT_ROWS): Change default to 35.
580
581 * xfns.c (x_default_font_parameter): Change default XFT font to
582 monospace-10 (Bug#3643).
583
584 2010-01-29 Eli Zaretskii <eliz@gnu.org>
585
586 * w32inevt.c (key_event): Remove unnecessary comparison of
587 event->uChar.AsciiChar with 128.
588
589 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
590
591 * fileio.c (Frename_file): Fix last change (Bug#5487).
592
593 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
594
595 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
596
597 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
598
599 * xfns.c (Fx_create_frame): Remove window size matching code from
600 2010-01-15.
601 (x_get_current_desktop, x_get_desktop_workarea): Remove.
602
603 2010-01-27 Jason Rumney <jasonr@gnu.org>
604
605 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
606 (key_event): Use unicode for characters 128 and higher (Bug#4567).
607
608 2010-01-27 Kenichi Handa <handa@m17n.org>
609
610 * regex.c (analyse_first): Fix setting of fastmap for unibyte
611 pattern string (Bug#4209).
612
613 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
614
615 * fileio.c (Frename_file): Call copy-directory and
616 delete-directory for directories, in order to handle cross-device
617 renaming (Bug#3353).
618
619 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
620
621 * xfns.c (Fx_create_frame): If frame height is too big, try
622 sizes 24 and 10. Bug #3643.
623
624 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
625
626 Try and fix bug#788, hopefully for real this time.
627 * keymap.c (shadow_lookup): Add `remap' arg.
628 (describe_map, describe_vector): Update calls to shadow_lookup.
629 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
630 `remapped' so this flag is applicable to `sequence'. Be careful to
631 perform remapping during shadow_lookup check of remapped_sequences.
632
633 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
634
635 * image.c (png_load): Use png_sig_cmp instead of the obsolete
636 png_check_sig, which has been removed in libpng 1.4.
637
638 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
639
640 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
641 lacks this header file).
642
643 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
644
645 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
646 as in Emacs 22.
647
648 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
649
650 * lisp.h (make_pure_string): String pointer arg now points to const.
651
652 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
653 args now point to const.
654
655 2010-01-22 Eli Zaretskii <eliz@gnu.org>
656
657 * lread.c (Fload): Don't treat files without .elc extension as
658 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
659 them. (bug#5303)
660
661 2010-01-20 Kenichi Handa <handa@m17n.org>
662
663 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
664 treat the source as actual byte sequence.
665
666 2010-01-19 Alan Mackenzie <acm@muc.de>
667
668 Fix spurious before-change-functions invocation from (insert ?\n).
669 * textprop.c (set_text_properties): Rename parameter
670 `signal_after_change_p' to `coherent_change_p', and make the
671 invocation of `modify_region' conditional on it.
672
673 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
674
675 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
676 for debug purpose.
677 (syms_of_xsettings): Declare xft-settings.
678
679 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
680
681 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
682
683 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
684
685 * xterm.c (event_handler_gdk): Block input (Bug#5037).
686
687 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
688
689 * emacs.c (standard_args): Adjust arg priorities to reflect how
690 they are processed in startup.el.
691
692 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
693
694 * Makefile.in (lisp, shortlisp): Update.
695
696 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
697
698 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
699 code, link the new kboard into all_kboard before running Lisp code,
700 and protect the new terminal with GCPRO (Bug#5365).
701 (x_term_init): Remove unused var `atom'.
702 (x_delete_display, x_delete_terminal): Remove unused var `i'.
703
704 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
705
706 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
707 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
708 to find out usable size of the desktop. Don't make frames larger than
709 this. Bug #3643.
710
711 2010-01-15 Kenichi Handa <handa@m17n.org>
712
713 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
714
715 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
716
717 * nsterm.m (Qnone): Define.
718
719 * nsfns.m (Qnone): Move definition to nsterm.m.
720
721 2010-01-14 Kenichi Handa <handa@m17n.org>
722
723 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
724 systems.
725
726 2010-01-14 Kenichi Handa <handa@m17n.org>
727
728 Make auto-composition work on all buffers even if they are
729 fundamental mode.
730
731 * composite.c (Vauto_composition_mode): New variable.
732 (composition_compute_stop_pos): Check Vauto_composition_mode
733 instead of Vauto_composition_function.
734 (composition_adjust_point, Ffind_composition_internal): Likewise.
735 (syms_of_composite): Declare Lisp variable
736 "auto-composition-mode" here.
737
738 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
739
740 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
741 during call to vendor-specific-keysyms (Bug#5365).
742
743 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
744
745 * keyboard.c (input_available_signal) [SYNC_INPUT]:
746 Call SIGNAL_THREAD_CHECK (Bug#5333).
747
748 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
749 Call SIGNAL_THREAD_CHECK.
750
751 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
752
753 Try to fix bug#5314. This is probably not the final word, tho.
754 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
755 recent-auto-save-p as a side-effect.
756 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
757 * buffer.c (Fkill_buffer, reset_buffer):
758 * editfns.c (Fsubst_char_in_region):
759 * fileio.c (Finsert_file_contents, Fdo_auto_save)
760 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
761
762 2010-01-13 Kenichi Handa <handa@m17n.org>
763
764 Display buffer name, etc. in mode line by composing correctly.
765
766 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
767 STRING is not nil.
768 (display_mode_element): Adjust for the change of
769 decode_mode_spec and display_line.
770 (decode_mode_spec): Change arg MULTIBYTE to STRING.
771 (display_string): Handle the case that STRING is non-null and
772 LISP_STRING is not nil.
773
774 * xterm.c (x_draw_composite_glyph_string_foreground):
775 Pay attention to s->face->overstrike.
776
777 * composite.c (composition_reseat_it): Don't check PT if STRING is
778 non nil.
779
780 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
781
782 * keyboard.c (read_char): Don't apply previous change when current
783 buffer is unchanged by command execution.
784
785 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
786
787 * keyboard.c (read_char): Return after executing from special map.
788
789 2010-01-12 Glenn Morris <rgm@gnu.org>
790
791 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
792 bug-gnu-emacs rather than emacs-pretest-bug.
793
794 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
795
796 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
797 initializing the Lisp variables that depend on them.
798
799 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
800
801 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
802 Clear areas that will not be updated after change of menu bar lines.
803 Clear the menu bar window's current matrix when the window gets empty.
804
805 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
806
807 * intervals.h, textprop.c (extend_property_ranges): Return value
808 and args changed. Discard properties that begin at or after the
809 new end (Bug#5306).
810
811 * editfns.c (Fformat): Caller changed.
812
813 * nsterm.m (ns_set_default_prefs): Delete function.
814 (syms_of_nsterm): Initialize ns_command_modifier,
815 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
816 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
817
818 * xdisp.c (pos_visible_p): Check for invisible text at the correct
819 position (Bug#4040).
820
821 2010-01-09 Eli Zaretskii <eliz@gnu.org>
822
823 * editfns.c (Ffloat_time): Doc fix.
824
825 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
826
827 * xfns.c (Fx_create_frame): Don't create frame larger than display
828 by default bug#3643.
829
830 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
831
832 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
833 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
834 windows above internal border.
835
836 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
837 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
838 windows above internal border.
839
840 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
841 tool bar windows specially.
842
843 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
844
845 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
846 specially.
847 (XTflash): Take account of menu bar height.
848
849 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
850 specially.
851
852 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
853
854 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
855 also be true before we can return early (bug #5339).
856
857 2010-01-06 David Reitter <david.reitter@gmail.com>
858
859 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
860 (Fns_display_usable_bounds): Rewrite, computing bounds properly
861 (Bug#3233).
862
863 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
864
865 * font.c (font_open_entity): Enable chache and call cached_font_ok
866 for the driver if defined.
867 (QCuser_spec): New symbol.
868 (font_spec_from_name): Save name as user-spec.
869 (font_load_for_lface): Keep user-spec instead of name.
870 (font_open_by_name): Save name as user-spec.
871 (syms_of_font): Initialize QCuser_spec.
872 (font_clear_prop): Clear name if it exists in font (bug#5157).
873
874 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
875 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
876 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
877
878 * font.h (struct font_driver): Add cached_font_ok.
879
880 * xterm.c (x_clear_frame): Queue draw for scroll bars.
881
882 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
883
884 * xterm.c (x_new_font): Move code for setting rows/cols before
885 resizing ...
886 (x_set_window_size): ... to here. Bug #2568.
887
888 * gtkutil.c (xg_clear_under_internal_border): New function.
889 (xg_frame_resized, xg_frame_set_char_size):
890 Call xg_clear_under_internal_border.
891 (xg_update_scrollbar_pos): Clear under old scroll bar position.
892
893 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
894
895 * keyboard.c (read_key_sequence): Catch keyboard switch after
896 making a new tty frame (Bug#5095).
897
898 2010-01-05 Kenichi Handa <handa@m17n.org>
899
900 * fontset.c (fontset_find_font): Fix getting the frame pointer.
901
902 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
903
904 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
905 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
906 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
907
908 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
909
910 * dbusbind.c (xd_add_watch): Improve debug message.
911 (xd_remove_watch): Improve debug message. If DATA is the session
912 bus, unset D-Bus session environment.
913 (Fdbus_init_bus): Pass the bus as argument to
914 dbus_connection_set_watch_functions. (Bug#5283)
915
916 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
917
918 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
919
920 * lread.c (syms_of_lread): Make it clearer that these are the
921 names of loaded files (Bug#5068).
922
923 * eval.c (run_hook_with_args): Handle the case where the global
924 value has the obsolete single-function form (Bug#5026).
925
926 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
927
928 * minibuf.c (Fall_completions): Minor optimization.
929
930 2009-12-26 Eli Zaretskii <eliz@gnu.org>
931
932 * .gdbinit (pgx): Fix display of composite glyphs.
933 Display cmp.from and cmp.to as well.
934 (pitx): Fix last change.
935
936 2009-12-25 Kenichi Handa <handa@m17n.org>
937
938 * composite.h (composition_adjust_point): Update prototype.
939
940 * composite.c (composition_reseat_it): Don't make a composition
941 spanning over point.
942 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
943 composable characters.
944 (composition_adjust_point): New arg NEW_PT. Callers changed.
945
946 * keyboard.c (command_loop_1): Force redisplay if the last point
947 was within a composition.
948 (adjust_point_for_property): Don't adjust point for automatic
949 composition when called after buffer modification.
950
951 2009-12-19 Eli Zaretskii <eliz@gnu.org>
952
953 * .gdbinit (pitx): Don't use enum names, use their values.
954 Remove reference to non-existing value GET_FROM_COMPOSITION.
955 (pgx): Don't use enum names, use their values.
956 (pitmethod): New helper command.
957 (pitx): Use it to display iteration method.
958 (pgrowit): New command.
959
960 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
961
962 Update dependencies in Makefile.in.
963
964 * Makefile.in (alloc.o): Depend on termhooks.h.
965 (atimer.o): Depend on blockinput.h.
966 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
967 and frame.h.
968 (callint.o): Depend on systime.h, coding.h, and composite.h.
969 (callproc.o): Depend on buffer.h.
970 (casefiddle.o): Don't depend on charset.h.
971 (casetab.o): Depend on character.h.
972 (ccl.o): Depend on composite.h.
973 (chartab.o): Depend on ccl.h.
974 (cm.o): Depend on dispextern.h.
975 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
976 (coding.o): Don't depend on $(INTERVALS_H).
977 (composite.o): Don't depend on dispextern.h explicitly (it's in
978 $(INTERVALS_H)). Depend on ccl.h.
979 (data.o): Depend on systime.h, coding.h, composite.h,
980 dispextern.h, font.h, and ccl.h.
981 (dired.o): Depend on composite.h.
982 (dispnew.o): Depend on coding.h. Don't depend explicitly on
983 composite.h (it's in $(INTERVALS_H)).
984 (doc.o): Depend on systime.h, coding.h, and composite.h.
985 (editfns.o): Don't depend explicitly on dispextern.h.
986 (emacs.o): Depend on frame.h and coding.h.
987 (eval.o): Depend on coding.h, composite.h, and xterm.h.
988 (fileio.o): Depend on frame.h and commands.h. Don't depend
989 explicitly on dispextern.h.
990 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
991 composite.h.
992 (fns.o): Don't depend on termhooks.h.
993 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
994 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
995 coding.h, $(INTERVALS_H), window.h, xterm.h.
996 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
997 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
998 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
999 fontset.h, ccl.h, and ftfont.h.
1000 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1001 (gtkutil.o): Depend on dispextern.h and composite.h.
1002 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1003 termhooks.h, and ccl.h.
1004 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1005 (intervals.o): Depend on systime.h and coding.h.
1006 (keyboard.o): Depend on composite.h and coding.h.
1007 (keymap.o): Depend on coding.h and frame.h.
1008 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1009 (macros.o): Depend on systime.h, coding.h, and composite.h.
1010 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1011 and atimer.h.
1012 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1013 dispextern.h explicitly.
1014 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1015 Don't depend explicitly on dispextern.h and composite.h.
1016 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1017 (regex.o): Don't depend on charset.h.
1018 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1019 (search.o): Don't depend explicitly on composite.h.
1020 (sound.o): Depend on atimer.h and systime.h.
1021 (syntax.o): Don't depend explicitly on composite.h.
1022 (sysdep.o): Depend on coding.h and composite.h.
1023 (term.o): Depend on xterm.h and buffer.h.
1024 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1025 (textprop.o): Don't depend on dispextern.h explicitly.
1026 (undo.o): Depend on dispextern.h.
1027 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1028 dispextern.h and composite.h explicitly.
1029 (xdisp.o): Depend on ccl.h.
1030 (xfaces.o): Depend on coding.h and ccl.h.
1031 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1032 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1033 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1034 ftfont.h.
1035 (xgselect.o): New dependency.
1036 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1037 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1038 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1039 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1040 (xsmfns.o): Depend on frame.h and dispextern.h.
1041 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1042 sysselect.h.
1043
1044 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1045
1046 * font.c (Fclear_font_cache): Pass correct cache argument to
1047 font_clear_cache.
1048
1049 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1050
1051 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1052 twice.
1053
1054 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
1055
1056 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1057 calling file-remote-p. Reported by Jim Meyering.
1058
1059 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
1060
1061 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
1062 avoid compiler warnings. (Bug #5217)
1063
1064 2009-12-14 Kenichi Handa <handa@m17n.org>
1065
1066 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1067 in 8-bit encoding.
1068
1069 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
1070
1071 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1072 tooltip windows.
1073
1074 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1075
1076 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1077 Xatom_net_window_type.
1078
1079 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1080 Xatom_net_window_type.
1081
1082 * xterm.c (my_log_handler): New function.
1083 (x_term_init): Set my_log_handler as log handler during gtk_init
1084 so we can filter out buggy messages. (Bug #5120).
1085
1086 * xterm.c (xg_scroll_callback): Parameter list changed,
1087 use parameter GtkScrollType to determine scroll/line/page.
1088 Only allow dragging if a button < 4 is grabbed (bug #5177).
1089 (xg_end_scroll_callback): New function.
1090 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1091 xg_create_scroll_bar.
1092
1093 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1094 (scroll_end_callback): Remove.
1095 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1096 button-release-event. Replace value-changed event with change-value,
1097 bug #5177,
1098 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1099 bug #5177.
1100
1101 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1102 (xg_create_scroll_bar): Add GCallback end_callback.
1103
1104 * xftfont.c (QClcdfilter): New variable.
1105 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1106 (syms_of_xftfont): Initialize QClcdfilter.
1107
1108 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1109
1110 * xsettings.c (struct xsettings): Add member seen.
1111 (parse_xft_settings): Update member seen with what we have read.
1112 Return non-zero if Xft-settings have been parsed, 0 otherwise.
1113 (apply_xft_settings): Only update Xft settings with what member seen
1114 indicates as new.
1115
1116 2009-12-12 Eli Zaretskii <eliz@gnu.org>
1117
1118 * dispextern.h (struct text_pos): Use EMACS_INT;
1119 (struct glyph): Use EMACS_INT for charpos.
1120 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1121 region_beg_charpos, region_end_charpos,
1122 redisplay_end_trigger_charpos, and also for
1123 iterator_stack_entry.end_charpos and
1124 iterator_stack_entry.stop_charpos.
1125
1126 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1127
1128 * gtkutil.c (scroll_end_callback): New function (bug #5177).
1129 (xg_create_scroll_bar): Call scroll_end_callback on button release
1130 event (bug #5177).
1131 (xg_event_is_for_scrollbar): != replaced with ==.
1132
1133 2009-12-12 Kenichi Handa <handa@m17n.org>
1134
1135 * ftfont.c (struct ftfont_info): New member matrix.
1136 (ftfont_open): Setup xftfont_info->matrix.
1137 (MFLTFontFT): New member matrix.
1138 (FLOOR, CEIL, ROUND): New macros.
1139 (ftfont_get_metrics): Handle matrix transformation.
1140 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1141
1142 * xftfont.c (struct xftfont_info): New member matrix.
1143 (xftfont_open): Setup xftfont_info->matrix.
1144
1145 2009-12-10 Kenichi Handa <handa@m17n.org>
1146
1147 * xdisp.c (append_space_for_newline): Consider face-remapping.
1148
1149 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1150
1151 * xsettings.c: Include "keyboard.h".
1152
1153 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1154
1155 Fix implicit function declarations.
1156 * cmds.c: Include "frame.h".
1157 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1158 * frame.h: Move declaration of delete_frame outside of
1159 HAVE_WINDOW_SYSTEM.
1160
1161 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1162
1163 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1164
1165 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1166 GTK builds.
1167
1168 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1169
1170 * unexelf.c (unexec): Don't search for .data twice.
1171
1172 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
1173
1174 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1175 if push failed.
1176 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1177 of push_display_prop (Bug#5000).
1178
1179 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1180 value of font_list_entities (Bug#5085).
1181
1182 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
1183
1184 Fix `string-to-number' to deal consistently with integers and floats.
1185 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1186 trailing characters, not just whitespace.
1187 (read1): Pass new arg 0 to keep old behavior.
1188 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1189 trailing chars, as it is already done for integers. Doc fixes.
1190 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1191
1192 2009-12-04 Eli Zaretskii <eliz@gnu.org>
1193
1194 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1195 Delete unused enumeration value.
1196
1197 2009-12-03 Eli Zaretskii <eliz@gnu.org>
1198
1199 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1200
1201 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1202
1203 * process.c (Fmake_network_process): Fix up the tests for
1204 "connectionless socket", so they DTRT for seqpacket sockets as well.
1205
1206 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1207
1208 * process.c (Qseqpacket): New symbol.
1209 (HAVE_SEQPACKET): New macro.
1210 (Fmake_network_process): Accept new :type `seqpacket'.
1211 (init_process): Add `seqpacket' feature when applicable.
1212 (syms_of_process): Initialize Qseqpacket.
1213
1214 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1215
1216 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1217 if entity is Qnil.
1218
1219 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1220
1221 * print.c (print_preprocess): Preprocess the key_and_value table of
1222 hashtables, even tho they're "hidden" (bug#5082).
1223
1224 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1225
1226 * frame.c (frame_make_pointer_invisible)
1227 (frame_make_pointer_visible): Declare f before statements.
1228
1229 2009-11-28 Eli Zaretskii <eliz@gnu.org>
1230
1231 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1232 omitted dependencies on lisp.h.
1233
1234 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1235
1236 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1237 is NULL.
1238
1239 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1240
1241 * frame.c (frame_make_pointer_invisible)
1242 (frame_make_pointer_visible): Just return if there isn't any selected
1243 frame.
1244
1245 * search.c (simple_search): Remove warning by making *p const.
1246
1247 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1248
1249 * xdisp.c (power_letter): Remove duplicate const.
1250
1251 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1252
1253 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1254
1255 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
1256 defaults (bug #5025).
1257
1258 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1259
1260 * insdel.c (adjust_markers_for_delete): Move it in the
1261 right direction! (bug#4803)
1262
1263 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1264
1265 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1266
1267 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1268
1269 2009-11-24 Glenn Morris <rgm@gnu.org>
1270
1271 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1272
1273 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1274
1275 * Makefile.in: Must create deps for ecrt0.o in its rule.
1276
1277 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1278 because that is what Gtk+ font dialog understands.
1279
1280 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1281 of Fcopy_sequence.
1282 (font_open_by_name): Put name given into QCname for font-object returned.
1283
1284 * frame.c (x_set_font): Save original font name as frame parameter
1285 font-parameter.
1286
1287 * xsettings.c (set_default_xft_settings): New function.
1288 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1289 is found.
1290
1291 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1292
1293 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1294 searching backwards through multibyte buffer.
1295
1296 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1297
1298 * xterm.c: #include xgselect.h.
1299 (x_initialize): Call xgselect_initialize.
1300
1301 * xsettings.c (something_changedCB): C++ comments => C comments.
1302 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1303 does that now.
1304
1305 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1306 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1307 (scroll_bar_button_cb): Remove.
1308 (create_menus): C++ comments => C comments. Don't bind grab-notify
1309 event.
1310 (xg_create_scroll_bar): Don't bind button-press-event and
1311 button-release-event.
1312
1313 * process.c: Include xgselect.h if defined (USE_GTK) ||
1314 defined (HAVE_GCONF).
1315 (wait_reading_process_output): Call xg_select for the same condition.
1316
1317 * xgselect.c (xg_select): New function to better integrate with
1318 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1319
1320 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1321
1322 * Makefile.in (XOBJ): Add xgselect.o.
1323
1324 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1325
1326 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1327 Remove ignored second argument. All callers changed.
1328 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1329 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1330 * xdisp.c (string_char_and_length): Likewise.
1331
1332 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1333
1334 * xterm.c (x_new_font):
1335 * print.c (print_object):
1336 * cmds.c (Fself_insert_command): Move declarations before statements.
1337
1338 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1339
1340 * s/cygwin.h: Remove unneeded linker flags.
1341
1342 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1343
1344 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1345
1346 * xsettings.h: Declare xsettings_get_system_font.
1347
1348 * xsettings.c (xsettings_get_system_font): New function.
1349 (init_gconf): No use initiating gconf unless we have Xft also.
1350 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1351 HAVE_GCONF.
1352
1353 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1354 add a blank entry so it doesn't collapse into nothing.
1355
1356 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1357
1358 * lread.c (Funintern): Comment out last change.
1359
1360 2009-11-19 Richard Stallman <rms@gnu.org>
1361
1362 * lread.c (Funintern): Error if symbol is t or nil.
1363
1364 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1365
1366 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1367 representation of Lisp integers.
1368 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1369
1370 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1371
1372 * lisp.h: Remove declaration of Ffont_get_system_font.
1373 * xfns.c: Move include of "xsettings.h".
1374 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1375
1376 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1377
1378 * xsettings.c (something_changedCB, Ffont_get_system_font):
1379 Check use_system_font.
1380 (syms_of_xsettings): DEFVAR font-use-system-font.
1381
1382 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1383
1384 * xfns.c (x_default_font_parameter): Remove dead assignment.
1385
1386 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1387
1388 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1389
1390 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
1391 not have FC_LCD_*. #define them if not there.
1392
1393 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
1394
1395 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1396
1397 * xterm.c (handle_one_xevent): Call xft_settings_event for
1398 ClientMessage, PropertyNotify and DestroyNotify.
1399 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1400 Call xsettings_initialize.
1401
1402 * xftfont.c (xftfont_fix_match): New function.
1403 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1404 Call xftfont_fix_match after XftFontMatch.
1405
1406 * xfont.c (xfont_driver): Initialize all members.
1407
1408 * xfns.c (x_default_font_parameter):
1409 Try font from Ffont_get_system_font.
1410 Do not get font from x_default_parameter if we got one from
1411 Ffont_get_system_font.
1412 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
1413
1414 * w32font.c (w32font_driver): Initialize all members.
1415
1416 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1417
1418 * lisp.h: Declare syms_of_xsettings.
1419
1420 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1421 Handle CONFIG_CHANGED_EVENT.
1422
1423 * ftfont.c (ftfont_filter_properties): New function.
1424
1425 * frame.c (x_set_font): Remove unused variable lval.
1426
1427 * font.h (struct font_driver): Add filter_properties.
1428
1429 * font.c (font_put_extra): Don't return if val is nil, it means
1430 boolean option is off.
1431 (font_parse_fcname): Collect all extra properties in extra_props
1432 and call filter_properties for all drivers with extra_props and
1433 font as parameter.
1434 (font_open_entity): Do not use cache, it does not pick up new
1435 fontconfig settings like hinting.
1436 (font_load_for_lface): If spec had a name in it, store it in entity.
1437
1438 * emacs.c (main): Call syms_of_xsettings.
1439
1440 * config.in: HAVE_GCONF is new.
1441
1442 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1443 xsettings.o is new.
1444
1445 2009-11-17 Kenichi Handa <handa@m17n.org>
1446
1447 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1448 back to the default font in case that no suitable font is found.
1449
1450 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1451
1452 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1453 Suggested by Chad Brown <yandros@mit.edu>.
1454 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1455
1456 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1457
1458 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1459
1460 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1461
1462 * Makefile.in: Ignore errors from mkdir when creating deps directory.
1463
1464 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1465
1466 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1467 has a parent.
1468
1469 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
1470 dependency files in deps/. Include those files into Makefile.
1471
1472 * config.in: Generated (AUTO_DEPEND).
1473
1474 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
1475
1476 * dbusbind.c (Vdbus_registered_objects_table): Rename from
1477 Vdbus_registered_functions_table, because it contains also
1478 properties. Fix docstring.
1479 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
1480
1481 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1482
1483 * alloc.c (mark_object): Don't reprocess marked strings.
1484 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1485 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1486
1487 2009-11-13 Kenichi Handa <handa@m17n.org>
1488
1489 * category.c (word_boundary_p): Adjust for the change of the
1490 semantics of Vword_combining_categories.
1491 (Vword_combining_categories): Describe the slight change of the
1492 semantics.
1493
1494 2009-11-13 Eli Zaretskii <eliz@gnu.org>
1495
1496 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1497
1498 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1499
1500 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1501
1502 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1503
1504 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
1505
1506 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1507
1508 2009-11-11 David Reitter <david.reitter@gmail.com>
1509
1510 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1511 variables to fix 2009-11-09 change.
1512
1513 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1514
1515 * process.c (ifflag_def): Make flag_sym constant.
1516 (Fnetwork_interface_info): Use a constant pointer.
1517 (ifflag_table):
1518 * xfns.c (cursor_bits):
1519 * xdisp.c (power_letter):
1520 * termcap.c (speeds, esctab):
1521 * sysdep.c (baud_convert):
1522 * keyboard.c (lispy_accent_codes, modifier_names):
1523 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1524 (jpeg_format, tiff_format, gif_format, svg_format)
1525 (interlace_start, interlace_increment, gs_format):
1526 * gtkutil.c (separator_names):
1527 * fringe.c (swap_nibble):
1528 * fns.c (base64_value_to_char, base64_char_to_value):
1529 * fileio.c (make_temp_name_tbl):
1530 * coding.c (suffixes): Make constant.
1531
1532 * frame.c (make_initial_frame):
1533 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1534 build_string.
1535 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1536
1537 * s/freebsd.h:
1538 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1539
1540 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1541 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1542
1543 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1544 * xterm.c (syms_of_xterm):
1545 * xfaces.c (syms_of_xfaces):
1546 * xdisp.c (syms_of_xdisp):
1547 * lread.c (syms_of_lread):
1548 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1549 build_string.
1550
1551 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1552
1553 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1554
1555 * fns.c (Fplist_get): Merge the active and the commented out code.
1556
1557 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1558
1559 * keyboard.h: Declare timer_check.
1560
1561 * keyboard.c (timer_check_2): New function that does what the old
1562 timer_check did.
1563 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1564 returned, i.e. don't return -1 with timers pending.
1565
1566 * process.c: Remove extern declaration of timer_check.
1567
1568 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1569 even if timer_check returned -1.
1570
1571 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1572 xg_dialog_data.
1573 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1574 the event loop.
1575 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1576 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1577 Destroy the dialog after xg_dialog_run.
1578
1579 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1580
1581 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1582
1583 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1584
1585 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1586
1587 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
1588
1589 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1590
1591 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1592
1593 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1594 w32menu.c, and nsmenu.m.
1595 Simplify the obsolete case where position is nil.
1596 (cleanup_popup_menu): New function, moved from nsmenu.m.
1597 (struct skp): Remove slot `notreal'.
1598 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1599 adjust callers.
1600 (single_menu_item): Adjust call to parse_menu_item.
1601 (syms_of_menu): Defsubr x-popup-menu.
1602 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1603 (keymap_panes): Don't export any more.
1604 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1605 (xmenu_show): Declare.
1606 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1607 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1608 * keyboard.h (parse_menu_item): Update declaration.
1609 * xmenu.c (Fx_popup_menu): Remove.
1610 (syms_of_xmenu): Don't defsubr x-popup-menu.
1611 * w32menu.c (Fx_popup_menu): Remove.
1612 (syms_of_w32menu): Don't defsubr x-popup-menu.
1613 * nsmenu.m (cleanup_popup_menu): Remove.
1614 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1615 moved to menu.c's Fx_popup_menu.
1616 (Fx_popup_menu): Remove.
1617 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1618 menu_items (it's done in menu.c already).
1619
1620 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1621
1622 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1623 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1624
1625 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
1626
1627 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
1628 xmenu_show. Hide any tooltip before opening a menu.
1629 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1630 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1631
1632 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1633
1634 Let integers use up 2 tags to give them one extra bit and thus double
1635 their range.
1636 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1637 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1638 New macros.
1639 (enum Lisp_Type): Use them. Give explicit values.
1640 (Lisp_Type_Limit): Remove.
1641 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1642 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1643 Pay attention to USE_2_TAGS_FOR_INTS.
1644 (INTEGERP): Use LISP_INT_TAG_P.
1645 * fns.c (internal_equal): Simplify the default case.
1646 (sxhash): Use case_Lisp_Int.
1647 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1648 any more.
1649 (Ftype_of): Use case_Lisp_Int.
1650 (store_symval_forwarding): Take into account the fact that Ints can
1651 now have more than one tag.
1652 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1653 buffer_slot_type_mismatch):
1654 * xfaces.c (face_attr_equal_p):
1655 * print.c (print_object):
1656 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1657 Use case_Lisp_Int.
1658
1659 2009-11-06 Eli Zaretskii <eliz@gnu.org>
1660
1661 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1662
1663 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1664 warning.
1665
1666 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1667
1668 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1669
1670 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1671
1672 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1673 ButtonPressRelease and MotionNotify (bug#4870).
1674
1675 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1676
1677 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1678
1679 * xterm.c (syms_of_xterm):
1680 * xselect.c (syms_of_xselect):
1681 * xmenu.c (syms_of_xmenu):
1682 * xfns.c (syms_of_xfns):
1683 * xfaces.c (syms_of_xfaces):
1684 * xdisp.c (syms_of_xdisp):
1685 * window.c (syms_of_window):
1686 * w32fns.c (syms_of_w32fns):
1687 * undo.c (syms_of_undo):
1688 * textprop.c (syms_of_textprop):
1689 * terminal.c (syms_of_terminal):
1690 * syntax.c (syms_of_syntax):
1691 * sound.c (syms_of_sound):
1692 * search.c (syms_of_search):
1693 * print.c (syms_of_print):
1694 * minibuf.c (syms_of_minibuf):
1695 * macros.c (syms_of_macros):
1696 * keymap.c (syms_of_keymap, initial_define_key)
1697 (initial_define_lispy_key):
1698 * keyboard.c (syms_of_keyboard):
1699 * insdel.c (syms_of_insdel):
1700 * image.c (syms_of_image):
1701 * fringe.c (syms_of_fringe):
1702 * frame.c (syms_of_frame):
1703 * fontset.c (syms_of_fontset):
1704 * fns.c (syms_of_fns):
1705 * fns.c (syms_of_fns):
1706 * fileio.c (syms_of_fileio):
1707 * fileio.c (syms_of_fileio):
1708 * eval.c (syms_of_eval):
1709 * doc.c (syms_of_doc):
1710 * dispnew.c (syms_of_display):
1711 * dired.c (syms_of_dired):
1712 * dbusbind.c (syms_of_dbusbind):
1713 * data.c (syms_of_data):
1714 * composite.c (syms_of_composite):
1715 * coding.c (syms_of_coding):
1716 * cmds.c (syms_of_cmds):
1717 * charset.c (define_charset_internal, syms_of_character):
1718 * ccl.c (syms_of_ccl):
1719 * category.c (syms_of_category, init_category_once):
1720 * casetab.c (syms_of_casetab):
1721 * casefiddle.c (syms_of_casefiddle):
1722 * callint.c (syms_of_callint):
1723 * bytecode.c (syms_of_bytecode):
1724 * buffer.c (keys_of_buffer, syms_of_buffer):
1725 * alloc.c (syms_of_alloc):
1726 * process.c (syms_of_process, init_process):
1727 * lread.c (syms_of_lread, init_obarray):
1728 * font.c (build_style_table):
1729 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1730 intern_c_string, calls to make_pure_string with
1731 make_pure_c_string. Use pure_cons instead of Fcons.
1732
1733 * process.c (socket_options): Make it const.
1734 (set_socket_option, init_process): Use a const pointer.
1735
1736 * lread.c (intern_c_string): New function.
1737 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1738 (defvar_int): Uset it. Make the name const char*.
1739
1740 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1741 (defvar_int): Update prototypes.
1742 (DEFUN, EXFUN): Support for prototypes is now required.
1743 (intern_c_string): New prototype.
1744 (struct Lisp_Subr): Make symbol_name constant.
1745
1746 * font.c (struct table_entry): Remove unused member. Make NAMES
1747 constant.
1748 (weight_table, slant_table, width_table): Make constant.
1749
1750 * emacs.c (struct standard_args): Make name and longname constant.
1751
1752 * character.h (DEFSYM): Use intern_c_string.
1753
1754 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1755
1756 * alloc.c (make_pure_c_string): New function.
1757
1758 * eval.c (Fautoload): Purecopy all arguments.
1759
1760 2009-11-05 Kenichi Handa <handa@m17n.org>
1761
1762 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1763 the buffer in case of replace.
1764
1765 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1766
1767 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1768
1769 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1770
1771 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1772 when applicable (bug#4851).
1773
1774 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1775 (P_): Support for prototypes is now required.
1776
1777 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
1778
1779 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1780 (Bug#4827).
1781
1782 2009-10-30 Eli Zaretskii <eliz@gnu.org>
1783
1784 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
1785
1786 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1787
1788 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1789
1790 * lread.c (Fload): Purecopy the file name when building
1791 Vpreloaded_file_list.
1792
1793 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1794
1795 * w32fns.c (syms_of_w32fns): Change default value of
1796 w32-scroll-lock-modifier to nil. (Bug#2827)
1797
1798 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1799
1800 * minibuf.c (Fall_completions): Fix typos in docstring.
1801
1802 2009-10-26 Andreas Schwab <schwab@redhat.com>
1803
1804 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1805
1806 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1807
1808 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1809 For delta < 0, skip check that only makes sense when the mini-window
1810 is going to be enlarged. (Bug#4534)
1811
1812 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
1813
1814 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1815 string in menu maps (Bug#4471).
1816
1817 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
1818
1819 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1820 FRAME_NS_VIEW on terminal frames (Bug#4765).
1821
1822 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1823
1824 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1825 DBUS_TYPE_UINTnn separately to get proper sign extension.
1826
1827 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1828 can properly handle unsigned types.
1829 (make_uid, make_gid): Remove.
1830
1831 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1832 types again.
1833
1834 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
1835 (system_process_attributes): Likewise.
1836
1837 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1838
1839 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1840
1841 * eval.c (Fautoload): Purecopy the filename. Simplify.
1842
1843 * category.c (Fdefine_category): Purecopy docstring.
1844
1845 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1846
1847 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1848
1849 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1850
1851 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
1852
1853 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1854 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1855 (Bug#4775).
1856
1857 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1858
1859 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1860 (init_fileio_once):
1861 * lisp.h (init_fileio_once): Remove.
1862 * emacs.c (main): Don't call init_fileio_once.
1863
1864 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1865
1866 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1867
1868 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1869
1870 * doprnt.c (doprnt): Fix overflow check.
1871
1872 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1873
1874 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1875
1876 * xterm.h (x_wait_for_event): Declare it.
1877
1878 * xterm.c (pending_event_wait): New variable.
1879 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1880 see pending_event_wait.eventtype.
1881 (handle_one_xevent): Don't change gravity when parent changes.
1882 (x_new_font): Call change_frame_size with new rows/columns before we
1883 try to resize the frame.
1884 (x_wait_for_event): New function.
1885 (x_set_window_size_1): Don't change gravity unless change_gravity
1886 is set.
1887 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1888 don't change frame size, instead wait for the ConfigureNotify.
1889 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1890 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1891 (x_initialize): Initialize pending_event_wait.
1892
1893 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1894 size.
1895
1896 * widget.c (EmacsFrameSetValues): Add comment.
1897 (EmacsFrameSetCharSize): Just call x_set_window_size.
1898
1899 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1900 x_wait_for_event.
1901 (flush_and_sync): Remove again.
1902 (xg_get_font_name): Suggest monospace if no previous font is known.
1903
1904 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1905
1906 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
1907 8th bit, since that only made sense in the ASCII world (bug#4751).
1908
1909 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1910
1911 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1912 processing pending events when event is filtered for input method.
1913 (Bug#3681)
1914
1915 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
1916
1917 * fns.c: Add #endif accidentally removed in previous change.
1918
1919 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1920
1921 * fns.c: Remove code for unsupported system: MAC_OS.
1922 * image.c: Likewise. Include setjmp.h.
1923
1924 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1925
1926 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1927 pixel -1 (bug #4742).
1928
1929 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1930
1931 * process.c (create_pty): Remove conditionals for no longer
1932 supported systems: UNIPLUS and RTU.
1933
1934 * xterm.c:
1935 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1936
1937 * alloc.c: Do not define struct catchtag.
1938 * eval.c: Move struct catchtag definition ...
1939 * lisp.h: ... here.
1940
1941 * image.c: Move png.h #include earlier to avoid warnings.
1942
1943 * xterm.c:
1944 * xsmfns.c:
1945 * xselect.c:
1946 * xrdb.c:
1947 * xmenu.c:
1948 * xftfont.c:
1949 * xfont.c:
1950 * xfns.c:
1951 * xfaces.c:
1952 * xdisp.c:
1953 * window.c:
1954 * widget.c:
1955 * w32xfns.c:
1956 * w32uniscribe.c:
1957 * w32term.c:
1958 * w32select.c:
1959 * w32reg.c:
1960 * w32proc.c:
1961 * w32menu.c:
1962 * w32inevt.c:
1963 * w32heap.c:
1964 * w32font.c:
1965 * w32fns.c:
1966 * w32console.c:
1967 * w32.c:
1968 * w16select.c:
1969 * vm-limit.c:
1970 * unexsol.c:
1971 * unexec.c:
1972 * unexcw.c:
1973 * unexaix.c:
1974 * undo.c:
1975 * tparam.c:
1976 * textprop.c:
1977 * terminfo.c:
1978 * terminal.c:
1979 * termcap.c:
1980 * term.c:
1981 * syntax.c:
1982 * sound.c:
1983 * sheap.c:
1984 * search.c:
1985 * scroll.c:
1986 * region-cache.c:
1987 * regex.c:
1988 * ralloc.c:
1989 * process.c:
1990 * print.c:
1991 * nsterm.m:
1992 * nsselect.m:
1993 * nsmenu.m:
1994 * nsimage.m:
1995 * nsfont.m:
1996 * nsfns.m:
1997 * msdos.c:
1998 * minibuf.c:
1999 * menu.c:
2000 * marker.c:
2001 * macros.c:
2002 * keymap.c:
2003 * keyboard.c:
2004 * intervals.c:
2005 * insdel.c:
2006 * indent.c:
2007 * gtkutil.c:
2008 * ftxfont.c:
2009 * ftfont.c:
2010 * fringe.c:
2011 * frame.c:
2012 * fontset.c:
2013 * font.c:
2014 * fns.c:
2015 * floatfns.c:
2016 * filelock.c:
2017 * fileio.c:
2018 * emacs.c:
2019 * editfns.c:
2020 * dosfns.c:
2021 * doprnt.c:
2022 * doc.c:
2023 * dispnew.c:
2024 * dired.c:
2025 * dbusbind.c:
2026 * data.c:
2027 * composite.c:
2028 * coding.c:
2029 * cmds.c:
2030 * cm.c:
2031 * chartab.c:
2032 * charset.c:
2033 * character.c:
2034 * ccl.c:
2035 * category.c:
2036 * casetab.c:
2037 * casefiddle.c:
2038 * callproc.c:
2039 * callint.c:
2040 * bytecode.c:
2041 * buffer.c:
2042 * atimer.c: Include setjmp.h. (Bug#4643)
2043
2044 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2045
2046 Remove leftover table unibyte_to_multibyte_table.
2047 * character.c (unibyte_to_multibyte_table): Remove.
2048 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2049 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2050 * character.h (UNIBYTE_TO_CHAR): New macro.
2051 (MAKE_CHAR_MULTIBYTE): Use it.
2052 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2053 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2054 (message_dolog, set_message_1):
2055 * search.c (Freplace_match):
2056 * editfns.c (Fcompare_buffer_substrings):
2057 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2058 (concat):
2059 * insdel.c (copy_text, count_size_as_multibyte):
2060 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2061 * term.c (produce_glyphs):
2062 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2063 * regex.c (RE_CHAR_TO_MULTIBYTE):
2064 * cmds.c (internal_self_insert):
2065 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2066
2067 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2068
2069 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2070
2071 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2072
2073 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
2074
2075 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2076
2077 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2078
2079 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2080 still needed under Tiger.
2081
2082 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2083
2084 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2085 __Apple__.
2086
2087 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2088
2089 2009-10-15 Kenichi Handa <handa@m17n.org>
2090
2091 * print.c (print_object): Escape a symbol like "2E10" too.
2092
2093 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
2094
2095 Cleanups and changes for 64-bit compile under Snow Leopard.
2096 Based on suggestions by Erik Charlebois.
2097
2098 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2099
2100 * nsfont.m (ns_char_width): Replace deprecated call.
2101 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2102 cast argument.
2103 (nsfont_open): Use ns_char_width() everywhere.
2104 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
2105
2106 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2107
2108 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2109 where appropriate.
2110
2111 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2112 where appropriate.
2113 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2114 Use stringWithUTF8String.
2115 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2116
2117 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2118 Add formal protocol mention to inheritance.
2119 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2120
2121 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2122 Fix printf format.
2123 (ns_query_color): Use CGFloat where appropriate.
2124 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
2125 (EmacsScroller-mouseDown:): Use long format in printf, and cast
2126 argument.
2127
2128 * config.in (NS_HAVE_NSINTEGER): Drop.
2129
2130 * dbusbind.c (dbus-method-return-internal)
2131 (dbus-method-error-internal): Use long format in printf, and cast
2132 argument.
2133
2134 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2135 in printf, and cast argument.
2136
2137 * process.c (list_processes_1): Use long format in printf, and
2138 cast argument.
2139
2140 2009-10-11 Glenn Morris <rgm@gnu.org>
2141
2142 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2143
2144 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2145
2146 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2147 menu bar with a small width so it doesn't enlarge the frame.
2148
2149 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
2150
2151 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2152
2153 2009-10-06 Glenn Morris <rgm@gnu.org>
2154
2155 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2156 SOME_MACHINE_LISP (this enters indirectly via DOC).
2157
2158 2009-10-05 Eli Zaretskii <eliz@gnu.org>
2159
2160 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2161
2162 2009-10-04 Eli Zaretskii <eliz@gnu.org>
2163
2164 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2165 Doc fix.
2166
2167 2009-10-03 Martin Rudalics <rudalics@gmx.at>
2168
2169 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2170
2171 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
2172
2173 * lisp.h (Qdelete_directory_internal): Remove, because it is not
2174 used anymore outside fileio.c.
2175
2176 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2177
2178 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
2179
2180 * lisp.h (Qdelete_directory_internal):
2181 Declare, instead of Qdelete_directory.
2182
2183 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2184
2185 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2186
2187 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2188
2189 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
2190
2191 * fileio.c (Fdelete_directory_internal): Rename from
2192 Fdelete_directory. It is not a command anymore. It has no file
2193 name handler.
2194
2195 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2196
2197 * xdisp.c (get_next_display_element): Use an enum in last change.
2198
2199 2009-09-28 Kenichi Handa <handa@m17n.org>
2200
2201 * xdisp.c (get_next_display_element): Pay attention to
2202 unibyte_display_via_language_environment in handling
2203 Vnobreak_char_display.
2204
2205 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2206
2207 * nsterm.h (ns_app_name): New extern variable.
2208
2209 * nsterm.m (ns_app_name): New variable.
2210 (ns_term_init): Set and use it.
2211 (ns_term_shutdown): Use it.
2212
2213 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2214 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2215
2216 * nsfns.m (ns_set_name_iconic, ns_set_name)
2217 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2218 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2219
2220 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2221 Remove double-casting in client_data comparison.
2222
2223 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2224
2225 * keyboard.c (make_lispy_event): Remember last wheel direction.
2226 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2227
2228 2009-09-26 Glenn Morris <rgm@gnu.org>
2229
2230 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2231 internal.elc. Add term/pc-win.elc.
2232 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2233 term/x-win.elc.
2234 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2235 term/w32-win.elc.
2236 (NS_SUPPORT): New.
2237 (lisp): Add NS_SUPPORT.
2238 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2239
2240 2009-09-25 David Reitter <david.reitter@gmail.com>
2241
2242 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2243 on Mac OS X 10.6+ (bug#4513).
2244
2245 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2246
2247 * frame.c (xrdb_get_resource): Return nil for empty string resources;
2248 some parts of Emacs code (like font selection) don't grok them.
2249 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
2250
2251 2009-09-24 Andreas Schwab <schwab@redhat.com>
2252
2253 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2254
2255 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2256
2257 * dired.c (Fdirectory_files): Fix typo in docstring.
2258
2259 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2260
2261 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2262 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2263 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2264 under GNUstep.
2265 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2266
2267 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2268 glyph advancement.
2269
2270 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2271
2272 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
2273 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
2274
2275 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2276 deleted (bug #4492).
2277
2278 * nsfont.m (Vns_reg_to_script): New lisp variable.
2279 (syms_of_nsfont): Declare it.
2280 (ns_registry_to_script): New function.
2281 (ns_get_req_script): Call it.
2282 (ns_findfonts): Don't give up on non-unicode registry.
2283
2284 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2285
2286 2009-09-20 Tom Tromey <tromey@redhat.com>
2287
2288 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2289 batch mode (bug#4228).
2290
2291 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
2292
2293 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
2294 carefully. (Bug #4339)
2295
2296 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
2297
2298 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
2299
2300 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2301
2302 * emacs.c (inhibit_x_resources): Update doc string for NS.
2303 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
2304 legacy code for -NXHost. Fix error printf in daemon case.
2305
2306 * nsterm.h (ns_no_defaults): Remove.
2307
2308 * nsterm.m (ns_no_defaults): Remove.
2309 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2310 (ns_use_qd_smoothing): Remove legacy variable.
2311 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2312 don't update the NSWindow itself.
2313 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
2314 state detection and store user rect ourselves. (Bug #3581)
2315
2316 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2317 ns_use_qd_smoothing.
2318
2319 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2320 platform versions. Drop support for emacs-20-style face specs.
2321 (x-close-connection): Drop PSFlush() under OS X.
2322 (x-focus-frame): Activate the app first. (Bug #4180)
2323
2324 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
2325
2326 * emacs.c (inhibit_x_resources): New variable.
2327 (main) [HAVE_NS]: Don't process --quick command line option.
2328 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2329
2330 * lisp.h (inhibit_x_resources): Declare it extern.
2331
2332 * w32reg.c (x_get_string_resource):
2333 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2334
2335 2009-09-17 Eli Zaretskii <eliz@gnu.org>
2336
2337 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2338 Add lisp/term/internal.elc.
2339
2340 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2341
2342 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2343 (bug#4461).
2344
2345 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2346
2347 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2348
2349 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2350 (OBJECTS_MACHINE): Remove, unused.
2351
2352 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2353
2354 * frame.c (x_get_resource_string): Remove unused.
2355
2356 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2357
2358 * xterm.c (x_new_font): Call change_frame_size before calling
2359 x_set_window_size, in case frame size won't change.
2360
2361 * frame.c (x_set_font): Remove dead code.
2362
2363 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2364
2365 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2366
2367 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2368
2369 * lread.c (Fload): Don't output a message after loading an obsolete
2370 package any more (done in Lisp now).
2371
2372 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
2373
2374 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2375
2376 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2377
2378 * keymap.c (Fwhere_is_internal): Use nconc2.
2379
2380 2009-09-11 Alan Mackenzie <acm@muc.de>
2381
2382 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2383 batch mode.
2384
2385 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2386
2387 * xdisp.c (display_mode_element): Detect cycles.
2388
2389 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2390
2391 * keymap.c (where_is_internal): Don't erroneously return nil right after
2392 filling the cache.
2393 (where_is_internal_1): Fix up typo.
2394
2395 2009-09-11 Glenn Morris <rgm@gnu.org>
2396
2397 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2398 share a common doc-string.
2399
2400 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2401
2402 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2403 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2404
2405 * keymap.c (QCadvertised_binding): New constant.
2406 (syms_of_keymap): Initialize it.
2407 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2408 if applicable.
2409
2410 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2411
2412 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2413 (parse_menu_item): Streamline since bindings are recomputed all the
2414 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2415 more and don't support lmenu's menu-alias any more either.
2416
2417 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2418 (where_is_internal): Strip it down to only traverse the keymaps.
2419 Move the cache handling from Fwhere_is_internal to here.
2420 (Fwhere_is_internal): Move the handling of remapping and the choice of
2421 the best binding from where_is_internal to here.
2422 Unify the cached/noncached paths, so remapping is also handled
2423 correctly when the cache is used, and so the cache can be used to
2424 speed up remap-handling when applicable.
2425 Give preference to non-remapped bindings.
2426 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2427 non-remapped bindings.
2428 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2429 command remapping.
2430
2431 * xdisp.c (display_mode_element): Move list length limit from 50 to
2432 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2433
2434 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
2435
2436 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2437
2438 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2439
2440 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2441 (Bug#4334)
2442
2443 * keymap.c (where_is_internal): Filter out shadowed remappings.
2444 Assume that where_is_internal returns unshadowed bindings to simplify
2445 the code and get rid of the gotos. Use ASIZE.
2446
2447 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2448
2449 * xterm.c (x_focus_changed): If we get a focusout and pointer
2450 is invisible, make it visible.
2451
2452 * xterm.h: Remove condition for declaration of
2453 x_*_window_to_frame.
2454
2455 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2456
2457 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2458 initial terminal as well.
2459
2460 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2461
2462 * xterm.h: Rename x_non_menubar_window_to_frame to
2463 x_menubar_window_to_frame.
2464
2465 * xterm.c: Remove declarations also in xterm.h
2466 (XTmouse_position): Do not return valid positions
2467 for clicks in the menubar and the toolbar for Gtk+.
2468
2469 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2470 if the widget for the event has the same top level as a frame,
2471 return the frame.
2472 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2473 internal windows, bug #4122.
2474 (x_non_menubar_window_to_frame): Remove.
2475
2476 2009-09-02 Glenn Morris <rgm@gnu.org>
2477
2478 * buffer.c (default-major-mode): Move most of the doc from here...
2479 (major-mode): ... to here.
2480
2481 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
2482
2483 * process.c (wait_reading_process_output): Keep the descriptor
2484 when pty is used by a non-child process, e.g., in I/O buffer of
2485 GDB this allows inferior to be restarted.
2486
2487 2009-08-29 Eli Zaretskii <eliz@gnu.org>
2488
2489 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2490 both branches into one.
2491
2492 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2493
2494 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2495 (main): Use enable-multibyte-characters rather than
2496 default-enable-multibyte-characters. Output a warning message when
2497 running a unibyte session.
2498
2499 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2500
2501 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2502 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2503 (copy_data_segment): Also copy __program_vars section.
2504 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2505 (dump_it) [LC_DYLD_INFO]: Use it.
2506
2507 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2508
2509 2009-08-28 Eli Zaretskii <eliz@gnu.org>
2510
2511 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2512 $(SRC)/buildobj.h.
2513 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2514 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2515 $(SRC)/buildobj.h.
2516 (clean): Add buildobj.h.
2517
2518 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2519
2520 * print.c (print_object): Set escapeflag to 1 when printing
2521 hashtable keys and values.
2522
2523 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2524
2525 * lread.c (read_integer): Use doubles (and potentially return a float
2526 number) as we do in string-to-number.
2527 (read1): Use strtol to read integers, signal errors on strtol's
2528 overflow and use floats if strtol's output is too large for
2529 Elisp integers.
2530
2531 2009-08-27 Eli Zaretskii <eliz@gnu.org>
2532
2533 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2534 (make-buildobj-SH): Fix last change.
2535 (SRC): Move to before where it's first used.
2536
2537 2009-08-27 Kenichi Handa <handa@m17n.org>
2538
2539 * process.c (send_process): Use encode_coding_object instead of
2540 encode_coding_string to perform eol-conversion even if the string
2541 is unibyte.
2542
2543 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2544 character.
2545
2546 * cmds.c (Fself_insert_command): Avoid unnecessay
2547 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
2548
2549 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2550
2551 * callproc.c (Fcall_process): Remove always true #if.
2552
2553 * lisp.h: Replace #if 0 code for checking with text pointing to
2554 the --enable-checking configure flag.
2555
2556 * emacs.c (main): Mention the --enable-profiling configure flag
2557 instead of using CFLAGS.
2558
2559 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
2560
2561 * Makefile.in (buildobj.h): New target.
2562 (doc.o): Depend on it.
2563 (temacs${EXEEXT}): Don't generate buildobj.lst.
2564 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2565 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2566 ($(BLD)/doc.$(O)): Depend on it.
2567 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2568 provided by Eli Zaretskii.)
2569 ($(TEMACS)): Don't generate buildobj.lst.
2570 * doc.c: Include buildobj.h.
2571 (buildobj): New static variable.
2572 (Fsnarf_documentation): Use it, instead of opening and reading
2573 buildobj.lst.
2574
2575 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
2576
2577 * dbusbind.c (Fdbus_call_method)
2578 (Fdbus_call_method_asynchronously): Use English numeric format for
2579 timeout values in doc string.
2580
2581 2009-08-25 Kenichi Handa <handa@m17n.org>
2582
2583 * alloc.c (mark_char_table): New function.
2584 (mark_object): Use mark_char_table for a char-table.
2585
2586 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2587 (CHAR_TABLE_REF): Use it.
2588
2589 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
2590
2591 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2592 before invoking the newly build emacs to check for load-path
2593 shadowing.
2594
2595 2009-08-22 Glenn Morris <rgm@gnu.org>
2596
2597 * Makefile.in (bootstrap_exe): New variable.
2598 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2599 Use ${bootstrap_exe}.
2600
2601 2009-08-22 Eli Zaretskii <eliz@gnu.org>
2602
2603 * coding.h (encode_coding_string): Don't encode unibyte strings.
2604 (Bug#4047)
2605
2606 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
2607
2608 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2609
2610 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2611 intended as hotfix only.
2612 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2613
2614 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2615
2616 * nsterm.m (ns_get_color): Update documentation properly for last
2617 change, and clean up loose ends in the code left by it. Fix
2618 longstanding bug with 16-bit hex parsing, and add support for
2619 yet another X11 format (rgb:r/g/b) for compatibility.
2620 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2621 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2622
2623 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2624
2625 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2626
2627 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
2628
2629 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2630 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2631 (xd_initialize, xd_pending_messages): Check, whether
2632 $DBUS_SESSION_BUS_ADDRESS is set.
2633
2634 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2635
2636 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2637
2638 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2639
2640 2009-08-20 Glenn Morris <rgm@gnu.org>
2641
2642 * emacs.c (system-type): Doc fix.
2643
2644 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2645
2646 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2647 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2648
2649 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
2650
2651 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2652 New functions.
2653 (xd_initialize): Revert change from 2009-08-16.
2654
2655 2009-08-18 Kenichi Handa <handa@m17n.org>
2656
2657 * fontset.c (Ffontset_font): If a nil element is found in a
2658 font-group vector, return nil.
2659
2660 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
2661
2662 * process.c (status_notify): Don't perform redisplay.
2663 (Fdelete_process, list_processes_1, process_send_signal):
2664 Expliticly perform redisplay.
2665 (wait_reading_process_output): Always check process status, but
2666 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2667
2668 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
2669
2670 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
2671 (XFLOAT_INIT): New macro for storing a float value.
2672 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2673 * fns.c (sxhash): Copy out the value of a float in order to
2674 examine its bytes.
2675 * dbusbind.c (xd_append_arg): Likewise.
2676
2677 * emacs.c (main): Don't call syms_of_data twice.
2678
2679 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
2680
2681 * dbusbind.c (xd_initialize): Add connection file descriptor to
2682 input_wait_mask, in order to let select() detect, whether a new
2683 message has been arrived.
2684 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
2685
2686 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
2687
2688 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2689 New functions.
2690
2691 * lisp.h (xd_pending_messages): Declare.
2692
2693 * keyboard.c (readable_events): Call xd_pending_messages.
2694
2695 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
2696
2697 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
2698
2699 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2700
2701 * buffer.c (set_buffer_internal_1)
2702 (swap_out_buffer_local_variables): Check for unbound local
2703 variables (Bug#4138).
2704
2705 2009-08-14 Eli Zaretskii <eliz@gnu.org>
2706
2707 * process.c (create_pty): Fix last change.
2708
2709 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
2710
2711 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2712 (xbm_load_image): Caller changed.
2713 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
2714
2715 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
2716
2717 * process.c (create_pty): New function.
2718 (Fstart_process): Use it to allow Emacs to just associate a pty
2719 with the buffer. See associated change in gdb-mi.el.
2720 (list_processes_1): Deal with no program name.
2721 (start_process_unwind): Use pid == -2 to mean no process.
2722
2723 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2724
2725 * cmds.c (nonundocount): New global variable.
2726 (keys_of_cmds): Initialize it.
2727 (Fself_insert_command): Use it to combine upto 20 sequential chars
2728 into a single undo entry, just like the Qself_insert_command code in
2729 keyboard.c does.
2730 Call frame_make_pointer_invisible, also like the Qself_insert_command
2731 code in keyboard.c does.
2732 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2733 than its own local replacement for it.
2734
2735 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
2736
2737 * fns.c (concat): Don't re-set string length to its current value.
2738
2739 * coding.h (decode_coding_string, encode_coding_string):
2740 Use SBYTES macro.
2741
2742 * doprnt.c (doprnt_lisp): Delete unused function.
2743 (doprnt): Merge with doprnt1, discarding lispstrings code.
2744 * lisp.h (doprnt_lisp): Don't declare.
2745
2746 2009-08-07 Juri Linkov <juri@jurta.org>
2747
2748 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2749
2750 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2751
2752 * print.c (syms_of_print): Undo previous change.
2753
2754 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2755
2756 * lread.c (read1, syms_of_lread): Read hashtables back from the
2757 readable format.
2758
2759 * print.c (print_preprocess, print_object): Print hashtables fully
2760 and readably.
2761 (syms_of_print): Provide 'hashtable-print-readable.
2762
2763 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2764
2765 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2766 no family set.
2767 (nsfont_open): Handle case when entity has no family.
2768
2769 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2770
2771 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2772 element, not a list, for match case.
2773
2774 2009-07-28 Kenichi Handa <handa@m17n.org>
2775
2776 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2777 rigidly.
2778
2779 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2780 font_parse_xlfd. Check font properties more rigidly.
2781
2782 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2783
2784 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2785 bsd-common.h.
2786
2787 2009-07-27 Kenichi Handa <handa@m17n.org>
2788
2789 * xfaces.c (face_with_height): Call font_clear_prop.
2790
2791 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
2792
2793 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2794
2795 * xterm.c (x_term_init): Use Qx.
2796
2797 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2798
2799 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
2800 (ns_get_color): Revert 2009-07-16 change.
2801
2802 2009-07-25 Eli Zaretskii <eliz@gnu.org>
2803
2804 * lread.c (syms_of_lread) <force_load_messages>: New variable.
2805 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
2806
2807 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
2808
2809 * coding.h (decode_coding_string, encode_coding_string):
2810 Use SCHARS macro.
2811
2812 * lread.c: Rewrite 2009-07-21 changes.
2813 (load_depth): Delete.
2814 (Qload_in_progress): New variable.
2815 (load_unwind): Don't reference load_depth or load_in_progress.
2816 (Fload): Likewise; specbind Qload_in_progress instead.
2817 (init_lread): Don't initialize load_depth.
2818 (syms_of_lread): Initialize and protect Qload_in_progress.
2819
2820 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2821
2822 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2823
2824 2009-07-23 Yavor Doganov <yavor@gnu.org>
2825
2826 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2827
2828 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2829
2830 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
2831 Bugs 3792, 3720, 2402.
2832 (ns_lookup_indexed_color): Check for bad index.
2833 (ns_index_color): Init unused slot to 0.
2834 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2835 Bug 3714, possibly 3082.
2836
2837 2009-07-22 Jason Rumney <jasonr@gnu.org>
2838
2839 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2840 Position IME window at cursor (Bug#2570).
2841 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2842 (globals_of_w32fns): Dynamically load functions required above.
2843
2844 * w32term.c (w32_draw_window_cursor): Send message to reposition
2845 any IME window.
2846
2847 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2848
2849 * fileio.c: Revert 2009-07-16 changes.
2850 (Vauto_save_include_big_deletions): New variable.
2851 (Fdo_auto_save): Disable auto-save only if
2852 auto-save-include-big-deletions is nil.
2853
2854 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2855
2856 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2857 the overflowed pixels into account (Bug#3879).
2858
2859 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
2860
2861 * lread.c (load_depth): New variable.
2862 (Fload, load_unwind, init_lread): Set it to the load recursion
2863 depth; set load_in_progress as a simple boolean based on the
2864 current load_depth. (Bug#3892)
2865
2866 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2867
2868 * nsfont.m (ns_has_attribute): Remove.
2869 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2870
2871 2009-07-18 Juri Linkov <juri@jurta.org>
2872
2873 * process.c (Fset_process_query_on_exit_flag): Mention killing
2874 a buffer in docstring.
2875
2876 2009-07-17 Kenichi Handa <handa@m17n.org>
2877
2878 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2879
2880 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2881
2882 * nsfns.m (Fns_set_alpha): Remove function.
2883 (syms_of_nsfns): Don't defsubr it.
2884
2885 * nsterm.m (ns_get_color): Remove incompatible color formats.
2886 (ns_color_to_lisp): Generate #rrggbb color format string.
2887
2888 2009-07-16 Richard Stallman <rms@gnu.org>
2889
2890 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2891 (Fset_buffer_auto_saved): Handle save_length = -2.
2892
2893 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
2894
2895 * xterm.c (Qx_gtk_map_stock): New var.
2896
2897 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2898 of calling intern each time.
2899
2900 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2901
2902 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2903 does tiling.
2904
2905 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2906
2907 2009-07-14 Kenichi Handa <handa@m17n.org>
2908
2909 * font.c (font_vconcat_entity_vectors): New function.
2910 (struct font_sort_data): New member font_driver_preference.
2911 (font_compare): Check font_driver_preference.
2912 (font_sort_entities): The format of the first argument changed.
2913 (font_delete_unmatched): Likewise.
2914 (font_list_entities): The return type changed.
2915 (font_select_entity): The format of the second argument changed.
2916 (font_find_for_lface): Adjuste for the above changes.
2917 Don't suppress the checking of C even if the repertory supports it.
2918 (Flist_fonts): Adjust for the above changes.
2919
2920 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2921 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
2922 Reject a font who has adstyle property that is different from a
2923 langname derived from registry property.
2924 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
2925
2926 2009-07-13 Eli Zaretskii <eliz@gnu.org>
2927
2928 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2929 local copy of dirfilename.
2930
2931 2009-07-13 Kenichi Handa <handa@m17n.org>
2932
2933 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2934 against max_char.
2935
2936 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2937 calling XSYMBOL (sym).
2938
2939 2009-07-11 Eli Zaretskii <eliz@gnu.org>
2940
2941 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2942 New function.
2943 (directory_files_internal) [WINDOWSNT]:
2944 Bind w32-get-true-file-attributes to either t or nil, depending whether
2945 the filesystem of the directory is fast or slow.
2946
2947 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2948 file name.
2949 (is_slow_fs): New function.
2950 (stat): Use it to determine whether to issue more system calls to
2951 get accurate file attributes, when w32-get-true-file-attributes is
2952 `local'.
2953
2954 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2955
2956 * xfns.c (Fx_select_font): Remember last font selected in
2957 x_last_font_name and use that the next time. Also try the frame
2958 parameter font-parameter as default to the font dialog.
2959
2960 2009-07-10 Kenichi Handa <handa@m17n.org>
2961
2962 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2963
2964 2009-07-09 Eli Zaretskii <eliz@gnu.org>
2965
2966 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
2967
2968 * w32.c (stat): Treat UNC file names as residing on remote
2969 drives. (Bug#3542)
2970
2971 2009-07-09 Kenichi Handa <handa@m17n.org>
2972
2973 * fontset.c (fontset_find_font): Fix previous change.
2974
2975 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
2976
2977 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2978 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2979 error flag.
2980
2981 2009-07-08 Kenichi Handa <handa@m17n.org>
2982
2983 * fontset.c (fontset_find_font): Fix the logic of handling
2984 charset_matched.
2985 (font_for_char): Delete unused var.
2986 (generate_ascii_font_name): Delete it.
2987
2988 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2989
2990 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2991 (encode_coding_sjis): Fix the code range check.
2992
2993 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
2994
2995 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2996 (Fexpand_file_name): Copy string data properly (Bug#3772).
2997
2998 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2999
3000 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3001 first MapNotify.
3002
3003 2009-07-07 Kenichi Handa <handa@m17n.org>
3004
3005 * character.h (unibyte_has_multibyte_table): Delete extern.
3006 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3007
3008 * charset.c (Fset_charset_priority): Update charset_unibyte.
3009 (syms_of_charset): Initialize charset_unibyte.
3010
3011 * character.c (unibyte_has_multibyte_table): Delete it.
3012 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3013 charset_unibyte.
3014 (multibyte_char_to_unibyte_safe): Likewise.
3015 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3016
3017 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
3018 (x_produce_glyphs): Likewise.
3019
3020 * .gdbinit (xcharset): Fix the treating $arg0.
3021
3022 2009-07-04 Eli Zaretskii <eliz@gnu.org>
3023
3024 Emulation of `getloadavg' on MS-Windows.
3025 * w32.c: Include float.h
3026 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3027 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3028 (get_native_system_info, get_system_times): New functions.
3029 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3030 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3031 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3032 g_b_init_get_system_times, and num_of_processors.
3033
3034 2009-07-03 Jason Rumney <jasonr@gnu.org>
3035
3036 * w32term.c (w32_initialize): Use standard types.
3037
3038 2009-07-03 Eli Zaretskii <eliz@gnu.org>
3039
3040 * dired.c (Ffile_attributes): Decode user and group names by the
3041 locale's encoding. (Bug#3443)
3042
3043 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3044
3045 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3046 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3047
3048 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3049
3050 * term.c (init_tty): Remove spurious #ifdef.
3051
3052 * m/mips.h: Mention this file is also used for netbsd.
3053 * m/pmax.h: Remove file.
3054
3055 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3056
3057 * xterm.h (struct x_display_info): Add invisible_cursor.
3058 (struct x_output): Add current_cursor.
3059
3060 * xterm.c (XTtoggle_invisible_pointer): New function.
3061 (x_define_frame_cursor): Don't define cursor if invisible or the
3062 same as before. Set current_cursor.
3063 (x_create_terminal): Set toggle_invisible_pointer_hook.
3064
3065 * xfns.c (make_invisible_cursor): New function.
3066 (x_set_mouse_color): Call make_invisible_cursor.
3067 Set current_cursor.
3068 (x_window): Set current_cursor.
3069
3070 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3071
3072 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3073 inserting a character.
3074 (read_avail_input): Call frame_make_pointer_visible.
3075
3076 * frame.c (Vmake_pointer_invisible): New variable.
3077 (frame_make_pointer_invisible, frame_make_pointer_visible):
3078 New functions.
3079 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3080
3081 * frame.h: Declare frame_make_pointer_invisible and
3082 frame_make_pointer_visible.
3083 (struct frame): Add pointer_invisible.
3084
3085 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3086
3087 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3088 frame isn't visible.
3089 (xg_frame_resized): If width/height is -1, get size of window
3090 from X server.
3091
3092 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3093 for MapNotify.
3094
3095 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
3096 here or call change_frame_size. Just call flush_and_sync.
3097 (flush_and_sync): Reintroduce.
3098
3099 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
3100
3101 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
3102
3103 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3104 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3105
3106 * frame.h: Declare Qsticky.
3107
3108 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3109
3110 * nsfns.m (ns_frame_parm_handlers): Ditto.
3111
3112 * frame.c: Declare Qsticky.
3113 (frame_parms): Add sticky.
3114
3115 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3116
3117 * xterm.h: Declare x_set_sticky.
3118
3119 * xterm.c (x_set_sticky): New function.
3120
3121 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3122 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3123 xg_tool_bar_proxy_help_callback.
3124
3125 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3126
3127 * frame.c: Qmaximized is new.
3128 (x_set_frame_parameters): Do not handle fullscreen specially.
3129 Only set width and height if explicitly set.
3130 (x_set_fullscreen): Handle Qmaximized.
3131 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3132 (syms_of_frame): Initialize Qmaximized.
3133
3134 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3135 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3136
3137 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
3138 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3139 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3140 set gravity to NorthWestGravity when USE_GTK.
3141 (set_wm_state): New function.
3142 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3143 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3144 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
3145 or the case when no window manager is running. That means remove calls
3146 to x_real_positions and x_fullscreen_adjust.
3147
3148 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3149 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3150 flush_and_sync.
3151 (xg_height_changed): New function.
3152 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
3153 and gtk_window_set_policy. Set frame gravity after parsing the
3154 geometry string.
3155 (xg_update_frame_menubar, free_frame_menubar)
3156 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3157 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3158 Remove calls to xg_frame_set_char_size.
3159
3160 2009-07-01 Kenichi Handa <handa@m17n.org>
3161
3162 * keyboard.c (decode_keyboard_code): New function.
3163 (tty_read_avail_input): Decode the input bytes if necessary.
3164
3165 * coding.c (setup_coding_system):
3166 Initialize coding->carryover_bytes to 0.
3167 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3168 use Qno_conversion.
3169
3170 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3171
3172 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3173
3174 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
3175
3176 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
3177
3178 2009-06-30 Jason Rumney <jasonr@gnu.org>
3179
3180 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3181 is already loaded.
3182 Set user model ID if supported (bug#1849).
3183
3184 2009-06-29 Jim Meyering <meyering@redhat.com>
3185
3186 Remove useless if-before-xfree test.
3187 * nsfont.m (nsfont_close): Remove useless test.
3188 * term.c (delete_tty): Likewise.
3189 * w32.c (system_process_attributes): Likewise.
3190 * w32font.c (w32font_close): Likewise.
3191 * xfaces.c (x_free_gc): Likewise.
3192 * xselect.c (buffer): Likewise.
3193
3194 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3195
3196 * process.c (send_process): Keep decoded string in a local
3197 variable and protect it from GC. (Bug#3521)
3198
3199 2009-06-28 Eli Zaretskii <eliz@gnu.org>
3200
3201 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3202 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3203
3204 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
3205
3206 * xdisp.c (start_display, handle_face_prop)
3207 (move_it_vertically_backward, cursor_row_fully_visible_p)
3208 (redisplay_window, try_window_id, produce_image_glyph):
3209 Delete some #ifdef-ed out code chunks that are now obsolete.
3210
3211 * xterm.c (x_update_window_begin, x_new_focus_frame)
3212 (x_scroll_bar_handle_click, handle_one_xevent)
3213 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3214 (x_make_frame_visible, x_make_frame_invisible)
3215 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3216 code chunks that are now obsolete.
3217
3218 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
3219
3220 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3221 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3222 for hours, when optimzation is enabled.
3223 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3224 (xd_read_message): Make them static.
3225
3226 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3227
3228 * term.c (turn_on_face): Allow simultaneously bold and dim
3229 terminal faces (Bug#3530).
3230
3231 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
3232
3233 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3234
3235 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3236 truncation glyphs (Bug#3686).
3237
3238 2009-06-27 Glenn Morris <rgm@gnu.org>
3239
3240 * m/pmax.h: Restore file, with only netbsd portions.
3241
3242 2009-06-26 David Reitter <david.reitter@gmail.com>
3243
3244 * nsterm.m (keydown): Avoid infinite loop.
3245
3246 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3247
3248 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3249 the arg FORCE_SYMBOL.
3250
3251 2009-06-25 Kenichi Handa <handa@m17n.org>
3252
3253 * fontset.c (fontset_find_font): When a usable rfont_def is found
3254 in a fallback font-group, make it the first element of the group.
3255
3256 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
3257
3258 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3259
3260 2009-06-24 Kenichi Handa <handa@m17n.org>
3261
3262 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3263 set for C.
3264 (fontset_font): Record the availability of a font for C both in
3265 the realized fontsets of the current one and the default one.
3266
3267 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3268
3269 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3270 conditional, it is always defined on AIX.
3271
3272 2009-06-23 Miles Bader <miles@gnu.org>
3273
3274 * window.c (Vrecenter_redisplay): New variable.
3275 (syms_of_window): Initialize it.
3276 (Qtty): New extern declaration.
3277 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3278
3279 2009-06-23 Jim Meyering <meyering@redhat.com>
3280
3281 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3282 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
3283 pointer dereferences are guaranteed to be valid.
3284
3285 2009-06-23 Kenichi Handa <handa@m17n.org>
3286
3287 * emacs.c (main): Call init_font ().
3288
3289 * font.h (Vfont_log): Extern it.
3290 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3291
3292 * font.c (font_sort_entities, font_list_entities)
3293 (font_matching_entity, font_open_entity)
3294 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3295 (Vfont_log): Delete static.
3296 (font_log_env_checked): Delete this variable.
3297 (font_add_log): Don't check font_log_env_checked.
3298 (font_deferred_log): Check Vfont_log.
3299 (init_font): New function.
3300
3301 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3302
3303 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3304
3305 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3306
3307 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3308
3309 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3310 (face_for_char): Don't call font_deferred_log here.
3311 (font_for_char): Likewise.
3312
3313 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
3314
3315 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3316 rather than its background_width for drawing the overline and
3317 underline (Bug#489).
3318
3319 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3320 rather than its background_width for drawing the overline and
3321 underline (Bug#489).
3322 (xg_default_icon_file): New variable.
3323 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3324 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
3325
3326 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3327 (load_overlay_strings): Remove externs.
3328 (fast_find_position): Function deleted.
3329 (mouse_face_from_buffer_pos): New function, based on
3330 fast_find_position. Correctly handle before-strings,
3331 display-strings, and after-strings (Bug#1220).
3332 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3333
3334 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3335
3336 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
3337 (move_it_in_display_line_to, move_it_in_display_line_to)
3338 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3339
3340 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3341
3342 * Branch for 23.1.
3343
3344 2009-06-21 Jason Rumney <jasonr@gnu.org>
3345
3346 * w32term.c (keyboard_codepage): New static variable.
3347 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3348 (w32_read_socket) [WM_CHAR]: Use it to decode character
3349 input (bug#3237).
3350 (w32_initialize): Initialize it.
3351 (codepage_for_locale): New function.
3352
3353 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
3354
3355 * process.c (status_message): Pass Faset index argument as a lisp
3356 object, so as to work with USE_LISP_UNION_TYPE.
3357
3358 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3359
3360 * coding.c (Ffind_coding_systems_region_internal):
3361 Cache checked characters.
3362
3363 2009-06-18 Kenichi Handa <handa@m17n.org>
3364
3365 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
3366
3367 2009-06-18 Andreas Schwab <aschwab@redhat.com>
3368
3369 * xdisp.c (redisplay_internal): Check that the frame is still
3370 live after redisplay of its windows.
3371 (redisplay_windows): Check that the window is still live.
3372
3373 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3374
3375 * coding.c (detect_coding_utf_16): Fix previous change.
3376
3377 2009-06-16 Kenichi Handa <handa@m17n.org>
3378
3379 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3380 UTF-16 by checking the dispersion of Eth and Oth bytes.
3381
3382 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3383
3384 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3385
3386 2009-06-15 Kenichi Handa <handa@m17n.org>
3387
3388 * process.c (status_message): Fix previous change. Be sure to
3389 decode a localized string.
3390
3391 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3392
3393 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3394 add comment explaining why.
3395
3396 2009-06-14 Sidney Markowitz <sidney@sidney.com>
3397
3398 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
3399
3400 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3401
3402 * nsfont.m (ns_attribute_value): Remove.
3403 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3404 (ns_has_attribute): Shrink the normal range.
3405 (ns_findfonts): Don't worry about requested spec in determining
3406 need for synthItal.
3407 (ns_get_covering_families): Retain scriptToFamilies.
3408
3409 2009-06-14 Seiji Zenitani <zenitani@mac.com>
3410
3411 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3412
3413 2009-06-11 Kenichi Handa <handa@m17n.org>
3414
3415 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3416 overhang for the static composition case.
3417
3418 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3419
3420 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3421 overhang for the automatic composition case.
3422
3423 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3424 composition case.
3425
3426 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
3427
3428 * xdisp.c (get_next_display_element): When handling wrap-prefix
3429 and line-prefix, treat \n as a control character (bug#3502).
3430
3431 2009-06-10 Kenichi Handa <handa@m17n.org>
3432
3433 * font.c (font_parse_family_registry): Fix for one-char foundry.
3434 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3435
3436 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3437
3438 * process.c (status_message): Fix handling of multibyte signal
3439 string (Bug#3499).
3440
3441 2009-06-09 Jim Meyering <meyering@redhat.com>
3442
3443 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3444 color name is missing.
3445
3446 2009-06-09 Kenichi Handa <handa@m17n.org>
3447
3448 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3449 FROM-CODE and TO-CODE are codepoints of CHARSET.
3450
3451 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3452
3453 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3454
3455 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3456
3457 Changes to support :script/:lang/:otf in NS font driver.
3458 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3459 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3460 indicate not part of font driver interface, and change callers.
3461 (ns_get_family): Remove pointless null check.
3462 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3463 ns_spec_to_descriptor, ns_descriptor_to_entity.
3464 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3465 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3466 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3467 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3468 (ns_get_req_script, ns_accumulate_script_ranges)
3469 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3470 New functions.
3471 (nsfont_list, nsfont_match): Use ns_findfonts.
3472 (nsfont_open): Use font descriptor instead of traits.
3473 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3474 (dump_glyphstring): Rename to ns_dump_glyphstring.
3475
3476 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3477
3478 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3479
3480 * fontset.c (fontset_from_font): Remove NS-specific code.
3481
3482 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
3483
3484 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3485 nonactive windows.
3486
3487 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
3488
3489 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
3490
3491 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3492
3493 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3494
3495 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
3496
3497 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3498 account for the overflowing of newlines into the last glyph on the
3499 display line (Bug#3482).
3500
3501 2009-06-05 David Reitter <david.reitter@gmail.com>
3502
3503 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3504 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
3505 Fns_selection_exists_p, Fns_selection_owner_p.
3506
3507 2009-06-03 Jason Rumney <jasonr@gnu.org>
3508
3509 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3510 available. (Bug#3379)
3511
3512 2009-05-29 Kenichi Handa <handa@m17n.org>
3513
3514 * coding.c (get_translation_table):
3515 Check Venable_character_translation.
3516
3517 2009-05-26 David Reitter <david.reitter@gmail.com>
3518
3519 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3520 (x_make_frame_visible): Move frame to front rather than calling
3521 ns_raise_frame().
3522 (keyDown:): Do not swallow events that aren't re-sent if frame
3523 isn't key window.
3524 (drawRect:): Do not set visibility/iconified flags because
3525 drawRect may be called by NSView even if the frame is hidden.
3526
3527 * nsfns.m (Fx_create_frame): Follow other ports in
3528 determining visibility; default to t. Ensure async_visible is set.
3529
3530 2009-05-23 Eli Zaretskii <eliz@gnu.org>
3531
3532 * dired.c (Ffile_attributes): Doc fix.
3533
3534 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
3535
3536 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3537
3538 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3539
3540 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3541 and xfont_scratch_props.
3542 (syms_of_xfont): Do it here instead.
3543 (xfont_find_ccl_program): Delete, unused.
3544 (xfont_open): Delete unused var `i'.
3545
3546 2009-05-21 Kenichi Handa <handa@m17n.org>
3547
3548 * fontset.c (Qlatin): Don't make it static.
3549
3550 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3551 New functions.
3552 (xfont_scripts_cache, xfont_scratch_props): New variables.
3553 (Qlatin, Vscalable_fonts_allowed): Extern it.
3554 (xfont_list_pattern): Argument changed. Callers changed.
3555 Check Vscalable_fonts_allowed. Check the support of a script.
3556 (xfont_list): Don't reject a font spec with :script property.
3557 (xfont_has_char): Fix setting of encoding.
3558 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3559 xfont_scratch_props.
3560
3561 2009-05-19 Kenichi Handa <handa@m17n.org>
3562
3563 * font.c (font_sort_entities): Rename from font_sort_entites.
3564 Callers changed.
3565
3566 2009-05-18 Kenichi Handa <handa@m17n.org>
3567
3568 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3569
3570 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3571
3572 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3573 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3574
3575 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3576
3577 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3578 (x_delete_terminal): Dissociate resource database from display and
3579 then call XrmDestroyDatabase before closing display.
3580
3581 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3582
3583 * nsterm.m (ns_read_socket): Remove unused variable.
3584 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3585 whether selected frame is viable before raising it (based on patch
3586 by David Reitter), and improve commentary.
3587 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
3588
3589 2009-05-15 Kenichi Handa <handa@m17n.org>
3590
3591 * font.c (Ffont_spec): Check arguments.
3592
3593 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
3594
3595 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3596 weight when testing attributes (Bug#3282).
3597
3598 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3599
3600 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3601 what we expect to get in the next ConfigureNotify event.
3602
3603 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3604 before Xft one (Bug#1696).
3605
3606 2009-05-07 David Reitter <david.reitter@gmail.com>
3607
3608 * nsfns.m (Fx_display_planes): Compute bitplanes using
3609 NSBitsPerPixelFromDepth (Bug#3207).
3610
3611 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
3612
3613 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3614
3615 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
3616
3617 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3618
3619 2009-05-07 David Reitter <david.reitter@gmail.com>
3620
3621 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3622 Respect mouse face background.
3623
3624 2009-05-07 David Reitter <david.reitter@gmail.com>
3625
3626 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3627 Mouse movement/highlight: bracket drawing operations
3628 in ns_update_begin and ns_update_end.
3629
3630 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3631
3632 * nsfns.m (ns_get_screen): Rewrite.
3633 Don't presume selected-frame is of type `ns'.
3634
3635 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3636 all drivers.
3637
3638 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3639
3640 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3641
3642 * keyboard.h (add_user_signal): Fix typo in extern.
3643
3644 * lisp.h (add_user_signal): Remove extern.
3645
3646 * unexelf.c (unexec): Consider a section to precede the .bss section
3647 if its addresses overlap that of .bss.
3648 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3649 instead of dumping process.
3650
3651 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3652
3653 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3654
3655 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3656
3657 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3658
3659 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3660
3661 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3662 any statements.
3663
3664 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3665
3666 * process.c (read_process_output): Make sure the current buffer is
3667 always restored.
3668
3669 * coding.c (record_conversion_result): Don't modify
3670 Vlast_code_conversion_error for successful result.
3671 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3672
3673 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3674
3675 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
3676 (load_charset_map): Remove unnecessary code.
3677
3678 2009-04-30 David Reitter <david.reitter@gmail.com>
3679
3680 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
3681 through f24.
3682
3683 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
3684
3685 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3686
3687 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3688 face_at_buffer_position.
3689 (face_before_or_after_it_pos, get_next_display_element)
3690 (note_mouse_highlight): Update face_at_buffer_position call.
3691
3692 * term.c (term_mouse_highlight):
3693 * msdos.c (IT_note_mouse_highlight):
3694 * fontset.c (Finternal_char_font):
3695 * font.c (font_at, font_range): Update face_at_buffer_position call.
3696
3697 * dispextern.h (face_at_buffer_position): Update prototype.
3698
3699 2009-04-30 Kenichi Handa <handa@m17n.org>
3700
3701 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
3702
3703 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3704
3705 * callproc.c (Fcall_process): Fix GC protection. Make sure
3706 current buffer is always restored.
3707
3708 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3709
3710 * atimer.c (init_atimer): Also clear stopped_atimers.
3711
3712 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3713
3714 * process.c (create_process): Clean up merger residues of
3715 2008-07-17 change.
3716
3717 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
3718
3719 * lread.c (Vread_circle): New variable.
3720 (read1): Disable recursive read if Vread_circle is nil.
3721
3722 2009-04-29 Kenichi Handa <handa@m17n.org>
3723
3724 * fontset.h (set_default_ascii_font): Delete extern.
3725
3726 * fontset.c (set_default_ascii_font): Delete this unused function.
3727
3728 * frame.c (x_set_font): When ARG is a font-object, check if the
3729 font-object matches with the ASCII font-spec of the frame's
3730 fontset. If not, create a new fontset for the frame. (Bug #3075)
3731
3732 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3733
3734 * fns.c (Flocale_info): Protect vector from GC during decoding.
3735
3736 * process.c (Fstart_process): Protect argv strings from GC during
3737 encoding.
3738
3739 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3740
3741 * sysdep.c: Include <ctype.h>.
3742
3743 2009-04-27 David Reitter <david.reitter@gmail.com>
3744
3745 * nsfont.m (nsfont_open): Remove unused variable shrink.
3746 Remove commented-out code.
3747
3748 2009-04-26 Johan Bockgård <bojohan@gnu.org>
3749
3750 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3751
3752 2009-04-25 Jason Rumney <jasonr@gnu.org>
3753
3754 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3755
3756 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3757
3758 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3759 Swap bytes in short integer if fringe bitmap width > 8.
3760
3761 2009-04-23 Kenichi Handa <handa@m17n.org>
3762
3763 * xfaces.c (Fx_list_fonts): If a font size is specified in
3764 PATTERN, set it in returned scalable fonts.
3765
3766 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
3767
3768 * keyboard.c (Fset_input_meta_mode): Doc fix.
3769
3770 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3771
3772 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
3773
3774 * coding.c (Fterminal_coding_system): Doc fix.
3775
3776 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3777 (Fx_display_pixel_height, Fx_display_planes)
3778 (Fx_display_color_cells, Fx_server_max_request_size)
3779 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3780 (Fx_display_mm_height, Fx_display_mm_width)
3781 (Fx_display_backing_store, Fx_display_visual_class)
3782 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3783 Doc fixes, replacing "terminal id" with "terminal object".
3784 (check_x_display_info): Handle terminal objects instead of
3785 terminal ids.
3786
3787 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3788 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
3789 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3790 Doc fixes, replacing "terminal id" with "terminal object".
3791
3792 2009-04-21 Kenichi Handa <handa@m17n.org>
3793
3794 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
3795 (font_score): Check AVGWIDTH too.
3796
3797 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3798 worst case.
3799 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3800 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
3801
3802 2009-04-19 Jason Rumney <jasonr@gnu.org>
3803
3804 The following changes fix Bug#3005 for wide glyphs on each platform,
3805 without reintroducing Bug#1258 for stretch glyphs.
3806
3807 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3808 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3809 get_phys_cursor_geometry.
3810
3811 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
3812 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3813 using get_phys_cursor_geometry.
3814
3815 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3816 correctly calculated.
3817
3818 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3819
3820 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3821 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
3822 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3823 is deprecated.
3824
3825 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3826
3827 * font.c (font_put_frame_data): Use xfree instead of free.
3828
3829 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
3830
3831 * w32font.c (Qja, Qko): Remove declarations.
3832 (syms_of_w32font): Don't DEFSYM them.
3833
3834 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
3835
3836 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3837
3838 * font.h (Qja, Qko): Extern them.
3839
3840 * ftfont.c (Qja, Qko): Remove declarations.
3841
3842 * xfont.c (Qja, Qko): Remove declarations.
3843
3844 2009-04-17 Kenichi Handa <handa@m17n.org>
3845
3846 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3847 string from a vector to handle Latin-1 characters correctly.
3848
3849 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3850 entity even if the cache hits.
3851
3852 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3853
3854 * search.c (boyer_moore): Use zero as marker value for a possible
3855 match instead of depending on overflow behavior. (Bug#2844)
3856
3857 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3858 * lisp.h: Adjust prototypes.
3859
3860 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
3861
3862 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3863 change (Bug#3003).
3864
3865 2009-04-16 Kenichi Handa <handa@m17n.org>
3866
3867 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
3868
3869 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3870 adstyle.
3871
3872 * ftfont.c (Qja, Qko): Don't make them static.
3873 (enum ftfont_cache_for): New enum.
3874 (fc_charset_table): Undo the previous change.
3875 (ftfont_get_latin1_charset): Delete it.
3876 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3877 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
3878 non-scarable font, try to get AVERAGE_WIDTH.
3879 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3880 Change ft_face_cache from a list of a hash-table. Don't check
3881 `ja' and `ko' adstyle here.
3882 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3883 FTFONT_CACHE_FOR_CHARET.
3884 (ftfont_get_charset): Undo the previous change.
3885 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
3886 (ftfont_close): Likewise.
3887 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3888
3889 * font.c (font_sort_entites): Change the meaning of the arg
3890 BEST-ONLY. Don't optimize for VEC of lenght 1.
3891 (font_select_entity): Just return the value of font_sort_entites.
3892
3893 * xfaces.c (merge_face_vectors): Reflect font properties in
3894 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3895 font_clear_prop if a face attribute doesn't change.
3896
3897 * charset.h (charset_ksc5601): Extern it.
3898
3899 * charset.c (charset_ksc5601): New variable.
3900 (Fdefine_charset_internal): Set charset_ksc5601.
3901 (init_charset_once): Initialize charset_ksc5601 to -1.
3902
3903 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3904
3905 * fileio.c (history_delete_duplicates): Remove unused declaration.
3906
3907 * callint.c (history_delete_duplicates): New declaration.
3908 (Fcall_interactively): Remove command history duplicates when
3909 history_delete_duplicates is true.
3910
3911 2009-04-14 Eli Zaretskii <eliz@gnu.org>
3912
3913 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3914
3915 2009-04-14 Kenichi Handa <handa@m17n.org>
3916
3917 * font.c (Ffont_info): Fix docstring. Fix the second element of
3918 the returned value (bug#2949).
3919
3920 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
3921
3922 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3923
3924 2009-04-14 Kenichi Handa <handa@m17n.org>
3925
3926 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3927 encoding charset is ascii_compatible.
3928
3929 * charset.c (Fdefine_charset_internal): Make charset
3930 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3931 code_offset is 0, and covers all ASCII characters.
3932
3933 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3934
3935 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3936 (ns_string_to_pasteboard_internal):
3937 * nsmenu.m (process_dialog):
3938 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3939 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3940 * lisp.h (Fx_load_color_file): Declare.
3941
3942 2009-04-13 Kenichi Handa <handa@m17n.org>
3943
3944 * font.c (font_delete_unmatched): Preserve the order of list elements.
3945 (font_select_entity): Suppress the code to optimize for the same
3946 kind of fonts.
3947 (font_load_for_lface): Get a font that supports at least ASCII
3948 characters.
3949
3950 * ftfont.c (Qja, Qko): New variables.
3951 (fc_charset_table): Delete uniquifier data for iso8859-1.
3952 (ftfont_get_latin1_charset): New function.
3953 (get_adstyle_property): New function.
3954 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3955 bitmap fonts.
3956 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3957 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3958 `ko' or `ja'.
3959 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
3960 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
3961 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3962 property.
3963 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3964 (syms_of_ftfont): DEFSYM Qja and Qko.
3965
3966 2009-04-09 Kenichi Handa <handa@m17n.org>
3967
3968 * charset.c (map_charset_chars): For a charset of `superset'
3969 method, fix calculation of code range.
3970
3971 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3972 from the list of extra properties.
3973 (font_clear_prop): Be sure to delete `:name' font property.
3974
3975 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3976
3977 * dispnew.c (redraw_overlapping_rows): Fix detection of
3978 overlapping for topmost and bottommost rows.
3979
3980 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
3981
3982 2009-04-06 Jason Rumney <jasonr@gnu.org>
3983
3984 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3985
3986 2009-04-06 Kenichi Handa <handa@m17n.org>
3987
3988 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3989
3990 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3991
3992 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3993
3994 * ftfont.c (ftfont_open): Fix checking of the return value of
3995 FT_Load_Char. Fix setting font->underline_thickness.
3996
3997 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
3998
3999 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4000 (Fterminal_parameters, Fterminal_parameter)
4001 (Fset_terminal_parameter): In doc string, refer to terminal
4002 objects rather than terminal ids.
4003
4004 2009-04-04 Eli Zaretskii <eliz@gnu.org>
4005
4006 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4007 ret_lim_data. (Bug#2867)
4008
4009 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
4010
4011 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4012 so they don't get wider than the window, matching 2006-01-23
4013 change to the partner function in xdisp.c (Bug#2800).
4014
4015 2009-04-03 Kenichi Handa <handa@m17n.org>
4016
4017 * print.c (print_object): Make each lowest sub_char_table start a
4018 new line (Bug#2866).
4019
4020 2009-04-02 Kenichi Handa <handa@m17n.org>
4021
4022 * fontset.c (fontset_font): Record no-font when a fontset
4023 explicitly tells not to try another font-specs.
4024
4025 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4026
4027 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4028
4029 2009-03-30 Kenichi Handa <handa@m17n.org>
4030
4031 * fontset.c (fontset_from_font): Specify only registry in a
4032 font-spec for all characters supported by that registry.
4033
4034 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4035 even if HAVE_M17N_FLT is not defined.
4036
4037 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4038
4039 * ftfont.c: Conditionalize prototyping and use of
4040 ftfont_variation_glyphs.
4041
4042 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4043
4044 * frame.c (delete_frame): Work around compiler bug.
4045
4046 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4047 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4048 Some more EMACS_INT.
4049 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4050
4051 * xdisp.c (dump_glyph): Fix typo.
4052
4053 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4054 (adjust_markers_gap_motion, adjust_markers_for_delete)
4055 (adjust_markers_for_insert, adjust_point)
4056 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4057 (make_gap, copy_text, count_size_as_multibyte, insert)
4058 (insert_and_inherit, insert_before_markers)
4059 (insert_before_markers_and_inherit, insert_1)
4060 (count_combining_before, count_combining_after, insert_1_both)
4061 (insert_from_string, insert_from_string_before_markers)
4062 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4063 (insert_from_buffer_1, adjust_after_replace)
4064 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4065 (replace_range_2, del_range, del_range_1, del_range_byte)
4066 (del_range_both, del_range_2, modify_region)
4067 (prepare_to_modify_buffer, signal_before_change)
4068 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4069 for buffer positions and sizes.
4070 * lisp.h: Adjust prototypes accordingly.
4071
4072 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4073 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4074 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4075
4076 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4077
4078 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4079
4080 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4081 lines and columns so we keep the same pixel height and width.
4082
4083 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4084 the property _NET_WM_STATE has changed.
4085 (x_handle_net_wm_state): New function to update frame parameter
4086 fullscreen.
4087 (x_term_init): Initialize atoms for _NET_WM_STATE.
4088
4089 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4090
4091 2009-03-27 Kevin Ryde <user42@zip.com.au>
4092
4093 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4094 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4095 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4096 (Fgpm_mouse_stop): Pass that new parameter.
4097 * termhooks.h (close_gpm): Adjust prototype.
4098
4099 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4100
4101 * lisp.h (Fx_focus_frame): Declare.
4102
4103 * callint.c (Fcall_interactively): For '^' just delegate the work to
4104 handle-shift-selection.
4105 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4106
4107 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
4108
4109 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4110
4111 * data.c (Qinteractive_form): New variable.
4112 (Finteractive_form): Use it.
4113
4114 * eval.c (Fcommandp): Use Qinteractive_form.
4115
4116 2009-03-24 Jason Rumney <jasonr@gnu.org>
4117
4118 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4119 Calculate total size precisely. Decode environment variables
4120 before substituting. (Bug#38)
4121
4122 2009-03-24 Kenichi Handa <handa@m17n.org>
4123
4124 * font.c (find_font_encoding): Return Qnil for unsupported
4125 encoding (Bug#2722).
4126
4127 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4128
4129 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4130 that gdpy is set.
4131
4132 2009-03-22 Alan Mackenzie <acm@muc.de>
4133
4134 * callint.c (Finteractive): Clarify the doc string - even
4135 promptless elements need \n separators.
4136
4137 2009-03-22 Jason Rumney <jasonr@gnu.org>
4138
4139 * w32term.c (syms_of_w32term): Doc fix for
4140 x-use-underline-position-properties.
4141
4142 2009-03-21 Eli Zaretskii <eliz@gnu.org>
4143
4144 * w32.c (getpwuid): Change argument type to unsigned.
4145 (struct w32_id): Change type of `rid' member to unsigned.
4146 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4147 argument ID to unsigned. All callers changed.
4148 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4149
4150 2009-03-20 Eli Zaretskii <eliz@gnu.org>
4151
4152 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4153 negative, produce a float value.
4154
4155 * dired.c (make_uid, make_gid): New functions.
4156 (Ffile_attributes): Use them to avoid negative UID and GID.
4157
4158 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
4159
4160 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4161 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4162 Fix typos in docstrings.
4163
4164 2009-03-19 Kenichi Handa <handa@m17n.org>
4165
4166 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
4167 changed, use font_load_for_lface to get a new font object.
4168 Call free_realized_fontset after handling ASCII font change.
4169
4170 * frame.c (x_set_font): Handle the case that ARG is a cons.
4171
4172 2009-03-19 Glenn Morris <rgm@gnu.org>
4173
4174 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4175
4176 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
4177
4178 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4179
4180 2009-03-19 Kenichi Handa <handa@m17n.org>
4181
4182 * charset.c (load_charset_map_from_file): When a mapfile can't be
4183 loaded, signal an error.
4184
4185 2009-03-18 Eli Zaretskii <eliz@gnu.org>
4186
4187 * dired.c (Ffile_attributes): Make sure UID and GID are always
4188 positive, even if the value is too large for a positive EMACS_INT.
4189 Doc fix.
4190
4191 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4192
4193 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4194
4195 * xmenu.c (xdialog_show): Move Fredisplay call ...
4196 (Fx_popup_dialog): ... here.
4197
4198 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4199
4200 * dired.c (file_name_completion): Disable the first optimization just
4201 installed, since it is not implemented correctly.
4202
4203 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4204
4205 * dired.c (file_name_completion): Check completion-ignored-extensions
4206 only if the entry can affect bestmatch.
4207 Stop the search early, as Ftry_completion already does.
4208
4209 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
4210
4211 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
4212
4213 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
4214
4215 * keyboard.c (parse_menu_item): Don't display remappings as menu
4216 equivalent bindings (Bug#788).
4217
4218 2009-03-15 Jason Rumney <jasonr@gnu.org>
4219
4220 * w32term.h (WM_EMACS_PAINT): New message.
4221 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4222 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4223 before passing to lisp thread. (Bug#950)
4224
4225 2009-03-14 David Reitter <david.reitter@gmail.com>
4226
4227 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4228 variable as it was never reset.
4229 (ns_term_init): Remove initialization of Lisp-settable defaults
4230 and ns_expand_space.
4231 (-setPanelFromDefaultValues): Remove ns_expand_space.
4232 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4233 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
4234 i.e. no additional spacing, similar to Carbon port.
4235
4236 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4237 * nsfns.m (ns-popup-prefs-panel): Remove.
4238
4239 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4240
4241 * sound.c (alsa_configure): Remove call to deprecated
4242 snd_pcm_sw_params_set_xfer_align.
4243
4244 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
4245
4246 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4247 after clicking in a detached tool bar.
4248 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4249
4250 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4251
4252 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4253 int/Lisp_Object mixup).
4254
4255 2009-03-13 Kenichi Handa <handa@m17n.org>
4256
4257 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
4258 Handle NAME nil and t correctly. Callers changed.
4259 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4260 (set_fontset_font): Change ARG to a vector. Handle range_list in
4261 ARG correctly.
4262 (Fset_fontset_font): Fix the case that TARGET is both a script
4263 name and charset name. Adjust the arg to set_fontset_font for
4264 the above change.
4265 (fontset_from_font): Fix previous change.
4266 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
4267 entry. If FONTSET is the default fontset, don't set the extra
4268 slot of the returning char-table.
4269
4270 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
4271
4272 * nsfns.m (Fx_close_connection): Doc fix.
4273 (Fns_do_applescript): Reflow docstring.
4274 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4275 (Fx_display_pixel_width, Fx_display_pixel_height)
4276 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4277 Fix typos in docstrings.
4278 (Fns_set_alpha): Fix typos in error messages.
4279
4280 2009-03-12 David Reitter <david.reitter@gmail.com>
4281
4282 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
4283 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4284 were used for such events.
4285
4286 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4287 (toggleToolbar, performDragOperation, runHelp): Use it.
4288
4289 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
4290 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4291
4292 2009-03-11 Kenichi Handa <handa@m17n.org>
4293
4294 * font.h (font_open_by_spec): Extern it.
4295
4296 * font.c (font_open_by_spec): New function.
4297 (font_open_by_name): Use font_open_by_spec.
4298
4299 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4300 fontset of the frame.
4301
4302 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4303 modify the default font of frames that use this fontset.
4304 (num_auto_fontsets): New variable.
4305 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4306 name. Be sure to set FONTSET_ASCII to the correct font name.
4307 (update_auto_fontset_alist): New function.
4308
4309 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
4310
4311 * makefile.w32-in: Update dependencies.
4312
4313 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4314
4315 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4316
4317 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4318
4319 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4320
4321 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
4322
4323 * lread.c (Feval_buffer): Doc fix.
4324
4325 2009-03-09 Kenichi Handa <handa@m17n.org>
4326
4327 * charset.c (Qfile_name_handler_alist): Extern it.
4328 (load_charset_map_from_file): Temporarily bind
4329 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4330
4331 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
4332
4333 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4334 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
4335
4336 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4337
4338 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4339 (x_set_window_size): Change back to calculated method of setting
4340 toolbar height under Cocoa. (Bug#2546)
4341 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4342 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4343
4344 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4345
4346 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4347 accelerator in parens under GNUstep.
4348
4349 2009-03-06 Kenichi Handa <handa@m17n.org>
4350
4351 These changes are to detect incorrect composition sequence without
4352 looking ahead the source. (Bug#2370)
4353
4354 * coding.h: Include "composite.h".
4355 (enum compisition_state): New enum.
4356 (struct compisition_status): New struct.
4357 (struct iso_2022_spec): New member cmp_status.
4358 (struct emacs_mule_spec): New struct.
4359 (struct coding_system): New members ctext_extended_segment_len and
4360 embedded_utf_8. Change the union member
4361 spec.emacs_mule_full_support to spec.emacs_mule.
4362
4363 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4364 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
4365 (MAX_ANNOTATION_LENGTH): Define to 5.
4366 (ADD_COMPOSITION_DATA): New arg nbytes.
4367 (emacs_mule_char): New arg cmp_status.
4368 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4369 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4370 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4371 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4372 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4373 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4374 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4375 (EMACS_MULE_COMPOSITION_END): New macro.
4376 (emacs_mule_finish_composition): New function.
4377 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4378 (decode_coding_emacs_mule): Avoid long looking ahead while
4379 handling composition.
4380 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4381 (ENCODE_COMPOSITION_RULE): New macro.
4382 (finish_composition): New function.
4383 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4384 (DECODE_COMPOSITION_START): New implementation.
4385 (DECODE_COMPOSITION_END): Likewise.
4386 (STORE_COMPOSITION_RULE): New macro.
4387 (decode_coding_iso_2022): Avoid long looking ahead while handling
4388 composition, CTEXT extended segment, and embedded UTF-8.
4389 (setup_coding_system): For a coding of type iso-2022, reset
4390 CODING_ISO_EXTSEGMENT_LEN (coding) and
4391 CODING_ISO_EMBEDDED_UTF_8 (coding).
4392 (get_translation): Delete arguments last_block, from_nchars,
4393 to_nchars. Callers changed.
4394 (produce_chars): Don't modify charbuf. Adjusted for the change of
4395 get_translation.
4396 (produce_composition): Adjust for the new annotation sequence.
4397 (handle_composition_annotation): Likewise.
4398 (consume_chars): Adjust for the change of get_translation.
4399
4400 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4401
4402 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
4403
4404 2009-03-05 Kenichi Handa <handa@m17n.org>
4405
4406 * font.c (font_select_entity): New function.
4407 (font_find_for_lface): Use font_select_entity to select a font.
4408
4409 * fontset.c (fontset_find_font): If a font found without
4410 restricting to the characters C doesn't support C, try to find a
4411 font with C restriction.
4412
4413 2009-03-04 Nikolaj Schumacher <me@nschum.de>
4414
4415 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
4416
4417 2009-03-04 Jason Rumney <jasonr@gnu.org>
4418
4419 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4420 characters that have already been read. (Bug#2569)
4421
4422 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4423 Log an error message if check_image_size failed.
4424 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4425 (gs_load): Mention max-image-size in size error message. (Bug#2560)
4426
4427 2009-03-02 Eli Zaretskii <eliz@gnu.org>
4428
4429 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4430 when decoding process output.
4431
4432 2009-03-01 Richard M Stallman <rms@gnu.org>
4433
4434 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4435
4436 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4437
4438 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4439
4440 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4441 (decode_coding_emacs_mule, decode_coding_iso_2022)
4442 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4443 (decode_coding_raw_text, decode_coding_charset)
4444 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4445 Honor inhibit-eol-conversion. (Bug #2186)
4446
4447 2009-02-28 Jason Rumney <jasonr@gnu.org>
4448
4449 * coding.c (detect_coding_charset): If not checking latin extra,
4450 fail on characters between 0x80 and 0xA0. (Bug#2354)
4451
4452 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4453
4454 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
4455 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
4456
4457 2009-02-27 Glenn Morris <rgm@gnu.org>
4458
4459 * callint.c (Finteractive): Doc fix.
4460
4461 2009-02-27 Kenichi Handa <handa@m17n.org>
4462
4463 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4464
4465 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
4466
4467 * font.c (font_style_to_value): Set value for unknown symbols to
4468 100 instead of 255.
4469 (weight_table, slant_table, width_table): Treat "unspecified" as
4470 the default value.
4471
4472 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
4473
4474 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4475
4476 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
4477
4478 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4479 error as soon as a recursive load is detected.
4480
4481 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4482
4483 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4484 before caching.
4485
4486 2009-02-24 Kenichi Handa <handa@m17n.org>
4487
4488 * fontset.c (fontset_find_font): Fix the condition for checking
4489 unavailable font.
4490
4491 2009-02-24 Glenn Morris <rgm@gnu.org>
4492
4493 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4494 whitespace that confuses documentation.
4495
4496 2009-02-23 Miles Bader <miles@gnu.org>
4497
4498 * process.c (Flist_system_processes, Fprocess_attributes)
4499 (syms_of_process): Rename `system-process-attributes' to
4500 `process-attributes'.
4501
4502 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4503
4504 * coding.h (struct coding_system): Make safe_charsets a pointer to
4505 unsigned char.
4506 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4507 being 255.
4508 (SAFE_CHARSET_P): Likewise.
4509 (setup_iso_safe_charsets): Properly setup safe_charsets.
4510 (Fdefine_coding_system_internal): Likewise.
4511 (setup_coding_system): Likewise. Remove unneeded casts.
4512 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4513 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4514 unneeded casts.
4515
4516 * insdel.c (del_range_2): Don't modify gap contents when called
4517 from decode_coding_object. (Bug#1809)
4518
4519 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
4520
4521 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4522 Qfont_object.
4523 (Ftype_of): Recognize font objects.
4524
4525 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4526
4527 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4528 moved to data.c.
4529
4530 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4531
4532 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4533 async_iconified. Based on a patch by Christian Lynbech
4534 <christian.lynbech@tieto.com>.
4535 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4536
4537 2009-02-20 Glenn Morris <rgm@gnu.org>
4538
4539 * syntax.c (Fskip_chars_forward): Fix doc typo.
4540
4541 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
4542
4543 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4544
4545 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
4546
4547 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4548
4549 2009-02-19 Kenichi Handa <handa@m17n.org>
4550
4551 * coding.c (detect_coding): Preserve coding->mode.
4552 Don't overflow coding->carryover. (Bug#2370)
4553
4554 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4555
4556 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4557
4558 2009-02-18 Kenichi Handa <handa@m17n.org>
4559
4560 * font.c (font_check_otf_features): Fix handling of `nil' element.
4561 (Ffont_spec): Describe :lang and :otf in the docstring.
4562
4563 2009-02-16 Andreas Schwab <schwab@suse.de>
4564
4565 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4566 string.
4567
4568 2009-02-16 Kenichi Handa <handa@m17n.org>
4569
4570 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
4571 (Bug#1723)
4572
4573 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
4574
4575 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
4576
4577 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4578 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4579
4580 2009-02-14 Eli Zaretskii <eliz@gnu.org>
4581
4582 * msdos.c (MAX_SCREEN_BUF): New macro.
4583 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4584 Encode the entire run of glyphs sharing the same face, instead of
4585 doing that one glyph at a time (fixes a bug with displaying
4586 double-size characters).
4587
4588 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4589
4590 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4591
4592 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4593 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
4594 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
4595
4596 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
4597 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
4598
4599 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4600
4601 * keyboard.c (adjust_point_for_property): Allow stopping between two
4602 invisible areas.
4603
4604 2009-02-12 Jason Rumney <jasonr@gnu.org>
4605
4606 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4607 (add_font_entity_to_list): Call check_face_name even when family
4608 is unspecified.
4609
4610 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4611 Release DC when finished. Use NULL window to refer to desktop.
4612 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
4613
4614 * w32font.c (add_font_entity_to_list): Fix check for substituted
4615 raster fonts. (Bug#2219)
4616
4617 2009-02-12 Kenichi Handa <handa@m17n.org>
4618
4619 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4620 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4621 (autocmp_chars): Use fast_looking_at. Don't compose more
4622 characters than MAX_COMPOSITION_COMPONENTS.
4623 (find_automatic_composition): While looking forward and backward,
4624 check static composition. Fix where to stop looking forward.
4625 (composition_adjust_point): Fix checking of static composition.
4626 (Fcomposition_get_gstring): Pay attention to
4627 MAX_COMPOSITION_COMPONENTS.
4628
4629 * lisp.h (fast_looking_at): Extern it.
4630
4631 * search.c (fast_looking_at): New function.
4632
4633 * term.c (encode_terminal_code): Adjust for the change of
4634 <struct glyph>.u.cmp.to.
4635 (append_composite_glyph): Likewise.
4636
4637 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
4638 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4639 composition.
4640 (append_composite_glyph): Adjust for the change of
4641 <strcut glyph>.u.cmp.to.
4642
4643 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
4644
4645 * casetab.c (init_casetab_once):
4646 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4647 * font.c (font_update_lface):
4648 * fontset.c (Fnew_fontset):
4649 * ftfont.c (ftfont_drive_otf):
4650 * xfont.c (xfont_open):
4651 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4652
4653 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4654
4655 * fileio.c (Fwrite_region): !NILP -> CONSP.
4656
4657 2009-02-10 Andreas Schwab <schwab@suse.de>
4658
4659 * process.c (send_process): Properly relocate pointer into data
4660 when using encoded data. (Bug#2272)
4661
4662 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4663
4664 * coding.c (detect_coding_charset): Fix previous change.
4665
4666 2009-02-08 Jason Rumney <jasonr@gnu.org>
4667
4668 * w32fns.c (w32_hide_hourglass): Handle case where frame
4669 disappeared while hourglass was displayed. (Bug #2193)
4670
4671 2009-02-07 Andreas Schwab <schwab@suse.de>
4672
4673 * unexelf.c (unexec): Fix error message.
4674
4675 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4676
4677 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
4678 when modal window is active. (Bug #2152)
4679 (applicationShouldTerminate:): Remove now-unneeded while loop
4680 around NSRunAlertPanel.
4681
4682 * nsmenu.m (popupSession): New file-global variable.
4683 (pop_down_menu): End the popupSession before closing dialog.
4684 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4685 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4686 don't query NSApp for events (just sleep instead).
4687
4688 2009-02-07 Eli Zaretskii <eliz@gnu.org>
4689
4690 * coding.c (syms_of_coding) <translation-table-for-input>:
4691 Modify doc string to discourage use for character code unification.
4692
4693 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4694
4695 * atimer.c (run_timers): Update pending_atimers.
4696
4697 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
4698
4699 * image.c (svg_load_image): Fix last change.
4700
4701 * xfns.c (Fx_create_frame): Signal an error if no font is
4702 found (Bug#2147).
4703
4704 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
4705
4706 * character.c (syms_of_character) <script-representative-chars>:
4707 Fix typo in docstring.
4708
4709 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4710
4711 * nsmenu.m (pop_down_menu): New function.
4712 (ns_popup_dialog): Call it on unwind.
4713 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4714 call timer_check() (Bug#2154).
4715 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4716 handling_signal is set.
4717 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4718
4719 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
4720
4721 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4722
4723 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4724
4725 * keyboard.c (poll_for_input_1, handle_async_input):
4726 Set handling_signal under HAVE_NS.
4727
4728 2009-02-04 Glenn Morris <rgm@gnu.org>
4729
4730 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4731
4732 2009-02-04 Kenichi Handa <handa@m17n.org>
4733
4734 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4735
4736 * charset.c (Fchar_charset): New optional arg restriction.
4737
4738 * coding.h (coding_system_charset_list): Extern it.
4739
4740 * coding.c (coding_system_charset_list): New function.
4741
4742 * composite.c: Include coding.h and termhooks.h.
4743 (composition_gstring_p): Fix for the terminal case.
4744 (composition_gstring_width): Likewise.
4745 (fill_gstring_body): Likewise.
4746 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4747 the frame.
4748 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4749 is within a composition.
4750 (Fcomposition_get_gstring): Fix the terminal case.
4751
4752 * term.c (encode_terminal_code): Fix handling of composition.
4753 (produce_composite_glyph): For static composition, get pixel_width
4754 from struct composition.
4755
4756 2009-02-02 Andreas Schwab <schwab@suse.de>
4757
4758 * unexelf.c (unexec): Handle unaligned bss offset.
4759
4760 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4761
4762 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4763 XT,w32read_socket changes to ns_read_socket.
4764
4765 * keyboard.c (handle_interrupt): Don't call
4766 quit_throw_to_read_char() under NS.
4767
4768 * blockinput.h: Remove NS-specific code.
4769
4770 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4771
4772 * dispnew.c (window_change_signal): Don't try to get the size of a
4773 suspended tty frame.
4774 * term.c (Fresume_tty): Resize if the size has changed while the
4775 tty was suspended.
4776
4777 * alloc.c (mark_stack): Properly conditionalize previous change.
4778
4779 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4780
4781 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4782 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4783 Remove; this code is not used on Windows.
4784
4785 2009-01-30 Eli Zaretskii <eliz@gnu.org>
4786
4787 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4788 EOLs that also has stray ^M characters.
4789
4790 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4791
4792 * atimer.c (run_timers, alarm_signal_handler):
4793 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4794 * w32inevt.c (w32_console_read_socket):
4795 * w32term.c (w32_read_socket):
4796 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4797
4798 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
4799
4800 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4801 Initialize it as a relative filename pattern.
4802 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4803 (Fcall_process_region): Simplify temp file creation using
4804 temporary-file-directory.
4805
4806 2009-01-29 Eli Zaretskii <eliz@gnu.org>
4807
4808 * msdos.c: Rename pending_signals to msdos_pending_signals.
4809 (sig_suspender, sigprocmask): Adjust.
4810
4811 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
4812
4813 * keyboard.c (pending_signals): New var.
4814 (poll_for_input, input_available_signal, init_keyboard): Set it.
4815 (process_pending_signals): New function.
4816
4817 * lisp.h (QUIT): Check pending_signals instead of
4818 interrupt_input_pending. Use process_pending_signals.
4819
4820 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
4821
4822 * process.c (wait_reading_process_output): Use process_pending_signals.
4823
4824 * sysdep.c (emacs_write): Use process_pending_signals.
4825
4826 * xterm.c (XTread_socket): Update pending_signals.
4827
4828 * w32term.c (w32_read_socket): Update pending_signals.
4829
4830 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4831
4832 2009-01-29 Kenichi Handa <handa@m17n.org>
4833
4834 * xftfont.c (xftfont_has_char): New function.
4835 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4836
4837 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4838
4839 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4840 under GNUstep.
4841 (ns_query_color): New declaration.
4842
4843 * nsterm.m (ns_confirm_quit): New variable.
4844 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4845 (EmacsApp-applicationShouldTerminate:): Use it.
4846 (EmacsPrefsController): Let user set it.
4847 (ns_query_color): New function.
4848 (ns_defined_color): Use it.
4849 (ns_initialize): Drop.
4850 (ns_term_init): Add two lines from ns_initialize(), and set
4851 input_interrupt_mode to nil.
4852
4853 * image.c (svg_load_image): Don't right-shift background RGB when
4854 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
4855
4856 2009-01-28 Kenichi Handa <handa@m17n.org>
4857
4858 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4859 (fontset_get_font_group): Remember that no font-group is specified
4860 for C.
4861
4862 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
4863
4864 * fns.c (concat): Check for string overflow (bug#1787).
4865
4866 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4867 Quadruple undo limits (bug#1501).
4868
4869 2009-01-27 Kenichi Handa <handa@m17n.org>
4870
4871 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4872 directly use GT_Get_Char_index.
4873
4874 * xftfont.c (struct xftfont_info): New member `index'.
4875
4876 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4877 (Ffontset_font): Adjust for the change of fontset entry.
4878
4879 2009-01-26 Kenichi Handa <handa@m17n.org>
4880
4881 * fontset.c (fontset_find_font): Fix handling of non-cons return
4882 value of fontset_get_font_group.
4883 (fontset_font): Revert last change.
4884
4885 2009-01-26 Jason Rumney <jasonr@gnu.org>
4886
4887 * w32font.c (w32font_list_internal): Return quickly if registry is
4888 unknown. Simplify final return.
4889 (add_font_entity_to_list): Break complex logic down into more
4890 manageable chunks. Move unknown registry check to
4891 w32font_list_internal.
4892
4893 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4894
4895 Changes to remove Feval calls from GUI under NS.
4896
4897 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4898 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
4899 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4900
4901 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4902 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4903 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4904 instead of NON_ASCII_KEYSTROKE_EVENT.
4905 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4906 (EmacsApp-applicationShouldTerminate:): Query user.
4907 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4908 instead of Feval.
4909
4910 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4911
4912 * keyboard.c (kbd_buffer_get_event): Check for it.
4913 (keys_of_keyboard): Define lispy keys for
4914 ns-put/unput-working-text.
4915
4916 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4917 versions.
4918 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4919
4920 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
4921
4922 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
4923 setting current_buffer directly. (Bug#2044)
4924
4925 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
4926
4927 * fontset.c (fontset_font): If we know there is no font, don't do
4928 any work. (Bug#1952, bug#1990).
4929
4930 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
4931
4932 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4933
4934 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
4935 (ns_no_defaults): New declaration.
4936 (main): Use it.
4937
4938 * nsterm.h (ns_no_defaults): New declaration.
4939
4940 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
4941
4942 * nsterm.m (ns_no_defaults): New variable.
4943 (ns_initialize): Don't read defaults when ns_no_defaults.
4944 (EmacsView-readSelectionFromPasteboard:)
4945 (writeSelectionToPasteboard:types:): New stubbed-out methods for
4946 NSServicesRequests protocol. (Bug#1435)
4947 (ns_dumpglyphs_stretch): New function.
4948 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
4949 of 2008-11-15 to other terms. (Bug#615)
4950
4951 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4952
4953 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4954
4955 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4956 call for Sparc64.
4957
4958 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4959
4960 * nsfns.m:
4961 * nsgui.h:
4962 * nsmenu.m:
4963 * nsselect.m:
4964 * nsterm.h:
4965 * nsterm.m: Remove '23' comments that indicated code added during
4966 update from emacs-20 -> emacs-23.
4967
4968 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4969
4970 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
4971 ns_alternate_modifier. (Bug#1217)
4972
4973 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4974 Display all shortcuts, including those w/o super modifier.
4975
4976 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4977
4978 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
4979
4980 * fileio.c (Vwrite_region_post_annotation_function)
4981 (Vwrite_region_annotation_buffers): New vars.
4982 (build_annotations_unwind): Just reset
4983 Vwrite_region_annotation_buffers.
4984 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4985 Call write-region-post-annotation-function.
4986 (build_annotations): Add to Vwrite_region_annotation_buffers if
4987 buffer changes.
4988
4989 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4990
4991 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4992 Tiger.
4993 * nsfns.m (ns_do_applescript):
4994 Conditionalize typeUTF16ExternalRepresentation on Tiger.
4995
4996 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4997
4998 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4999
5000 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5001
5002 * nsmenu.m (NSMENUPROFILE): Change #if style.
5003
5004 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5005
5006 * nsterm.m (x_set_frame_alpha): Add prototype.
5007 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5008 handle Ctrl-tab. (Bug#1841)
5009 (ns_get_color): Use unsigned long long for scanned hex string value.
5010 (ns_term_shutdown): Abort on non SIGTERM signals.
5011 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
5012 (EmacsPrefsController-setPanelFromDefaultValues): New function.
5013 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
5014 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
5015 (ns_defined_color): Fix settings of the XColor variable fields:
5016 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
5017
5018 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
5019 DPI. (Bug#1316)
5020 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5021 values in onTiger section.
5022
5023 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
5024
5025 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5026 Check return value of font_spec_from_name.
5027 (Fx_list_fonts): Doc fix. (Bug#1951)
5028
5029 * font.c (font_spec_from_name): Return Qnil if font name could not
5030 be parsed.
5031 (font_parse_name): Treat a `?' character as part of an XLFD.
5032
5033 * fns.c (Fsubstring): Doc fix.
5034
5035 2009-01-19 Kenichi Handa <handa@m17n.org>
5036
5037 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
5038 (ftfont_list): Likewise.
5039
5040 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
5041
5042 * dbusbind.c (Fdbus_register_signal):
5043 * process.c (conv_sockaddr_to_lisp):
5044 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5045
5046 * callproc.c (Fgetenv_internal): Doc fix.
5047
5048 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
5049
5050 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5051 it is not even used.
5052
5053 2009-01-16 Glenn Morris <rgm@gnu.org>
5054
5055 * font.c (Ffont_variation_glyphs): Silence compiler.
5056
5057 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
5058
5059 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5060 Reported by David Robinow <drobinow@gmail.com>.
5061
5062 2009-01-15 Kenichi Handa <handa@m17n.org>
5063
5064 * coding.c (detect_coding_system): Fix handling of null_byte_found.
5065
5066 2009-01-14 Jason Rumney <jasonr@gnu.org>
5067
5068 * frame.c (x_set_font): Always store a font to the font parameter,
5069 never a fontset. (Bug#1562)
5070
5071 2009-01-14 Kenichi Handa <handa@m17n.org>
5072
5073 * coding.c (TWO_MORE_BYTES): New macro.
5074 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
5075
5076 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
5077
5078 * font.c (font_clear_prop): If clearing the family, clear the font
5079 width index too.
5080
5081 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
5082
5083 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
5084
5085 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5086 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5087 functions, use sizeof.
5088
5089 2009-01-12 Martin Rudalics <rudalics@gmx.at>
5090
5091 * keyboard.c (read_char): Fix case where last_nonmenu_event
5092 returned a bad value with submenus. (Bug#447)
5093
5094 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
5095
5096 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5097 family, clear the font width index too.
5098
5099 2009-01-11 Jason Rumney <jasonr@gnu.org>
5100
5101 * keyboard.c (cmd_error_internal): Exit when errors occur before
5102 frame creation and not in daemon mode. (Bug#1836)
5103
5104 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
5105
5106 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5107 of a display vector, backtrack.
5108 (try_window_reusing_current_matrix): Check glyph type before
5109 referencing charpos member.
5110
5111 2009-01-10 Eli Zaretskii <eliz@gnu.org>
5112
5113 Fix Bug #876:
5114
5115 * coding.c (inhibit_null_byte_detection): New variable.
5116 (detect_coding, detect_coding_system): Don't pay attention to null
5117 bytes if inhibit_null_byte_detection is non-zero.
5118 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
5119 <inhibit-iso-escape-detection>: Doc fix.
5120
5121 2009-01-09 Jason Rumney <jasonr@gnu.org>
5122
5123 * w32font.c (add_font_entity_to_list): Don't report unknown
5124 Windows charset as any unrecognized registry. (Bug#1548)
5125 Only report Unicode Plane 2 fonts as unicode-sip.
5126
5127 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
5128
5129 * xfaces.c (Fx_font_family_list): Delete function.
5130 Move compatibility version to faces.el.
5131
5132 * font.c (Ffont_family_list): Return a list of strings, not symbols.
5133
5134 2009-01-09 Martin Rudalics <rudalics@gmx.at>
5135
5136 * frame.c (x_set_frame_parameters): Remember requested value for
5137 fullscreen before it's reset by the parameter handler.
5138
5139 2009-01-09 Glenn Morris <rgm@gnu.org>
5140
5141 * keyboard.c (last_command_char): For clarity, rename to...
5142 (last_command_event): ... and update all users.
5143 (last_input_char): For clarity, rename to...
5144 (last_input_event): ... and update all users.
5145 (last-command-char, last-input-char): Move to subr.el as aliases.
5146 * cmds.c, commands.h: Update for last_command_char rename.
5147
5148 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
5149
5150 * font.c (font_open_for_lface): Handle unspecified height attribute.
5151
5152 2009-01-08 Jason Rumney <jasonr@gnu.org>
5153
5154 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5155 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5156 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5157 Don't declare.
5158 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5159 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5160
5161 2009-01-07 Kenichi Handa <handa@m17n.org>
5162
5163 * fileio.c (Finsert_file_contents): In the case of replace,
5164 remember the coding system used for decoding in
5165 coding_system (Bug#1039).
5166
5167 * coding.c (decode_coding_utf_8): Check byte_after_cr before
5168 breaking the loop. (Bug#870)
5169 (decode_coding_utf_16, decode_coding_emacs_mule)
5170 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5171 (decode_coding_charset): Likewise.
5172
5173 2009-01-05 Martin Rudalics <rudalics@gmx.at>
5174
5175 * frame.c (x_set_frame_parameters): Make sure height (width) get
5176 applied when fullwidth (fullheight) is set. (Bug#1522)
5177
5178 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
5179
5180 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5181 (utc_base): Declare as ULONGLONG, not long double.
5182 (convert_time_raw): Delete.
5183 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5184 (initialize_utc_base): New function.
5185 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5186 (convert_from_time_t): Use initialize_utc_base; compute result with
5187 64-bit arithmetic.
5188 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5189
5190 2009-01-03 Eli Zaretskii <eliz@gnu.org>
5191
5192 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
5193 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5194 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5195 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5196 [!subprocesses]: Define.
5197 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5198 (Flist_system_processes, Fsystem_process_attributes)
5199 [!subprocesses]: Call list_system_processes and
5200 system_process_attributes instead of returning Qnil.
5201
5202 * dosfns.c (system_process_attributes, list_system_processes):
5203 New functions.
5204
5205 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5206
5207 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5208 Don't use the default (no-op) implementation.
5209
5210 2009-01-03 Jason Rumney <jasonr@gnu.org>
5211
5212 * keyboard.c (parse_modifiers_uncached): Wheel events are
5213 clicks (bug#687).
5214
5215 * w32term.c (x_query_colors, x_query_color): New functions.
5216
5217 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5218 (svg_load_image): Cast returned pointers from dynamically loaded
5219 functions. Eliminate W32 specific code.
5220
5221 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5222
5223 * nsfns.m (x_set_foreground_color, x_set_background_color)
5224 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5225 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5226 x_ prefix instead of ns_. Update references.
5227 (syms_of_nsfns): Add a FIXME comment.
5228
5229 * nsterm.m (x_set_cursor_type): New prototype.
5230 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5231
5232 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5233 for Solaris instead of incorrectly providing Qutime and Qcutime.
5234
5235 2009-01-02 Eli Zaretskii <eliz@gnu.org>
5236
5237 * w32.c (process_times): Compute sum of utime and stime.
5238 (system_process_attributes): Add Qtime to the alist.
5239
5240 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5241 and add them to the alist.
5242
5243 * process.c (top level) <Qtime, Qctime>: New variables.
5244 (syms_of_process): staticpro them.
5245 (Fsystem_process_attributes): Add their documentation to the doc
5246 string.
5247
5248 * process.h: Declare Qtime and Qctime.
5249
5250 2009-01-02 Jason Rumney <jasonr@gnu.org>
5251
5252 * image.c (Qgobject): New symbol.
5253 (syms_of_image): Initialize it.
5254 (init_svg_functions): Load some functions from gobject library.
5255
5256 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5257
5258 * frame.c (make_terminal_frame): Remove redundant code and useless
5259 block.
5260
5261 2009-01-01 Andreas Schwab <schwab@suse.de>
5262
5263 * process.c (conv_sockaddr_to_lisp): Add workaround for
5264 getsockname bug on BSD.
5265
5266 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
5267
5268 * xfns.c (x_create_tip_frame): Set border width of the X window.
5269
5270 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
5271
5272 2009-01-01 Jason Rumney <jasonr@gnu.org>
5273
5274 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
5275 Don't block input, as per earlier xterm.c changes.
5276
5277 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5278
5279 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5280 (ns_appkit_version_int): New function.
5281 (x-server-version): Use ns_appkit_version_int and follow 21+
5282 convention of returning 3 integers.
5283
5284 2008-12-30 Kenichi Handa <handa@m17n.org>
5285
5286 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5287 (CHAR_SURROGATE_PAIR_P): New macro.
5288
5289 * font.h (struct font_driver): New member get_variation_glyphs.
5290
5291 * font.c (font_range): Don't require a font for a variation selector.
5292 (Ffont_variation_glyphs): New function.
5293 (syms_of_font): Defsubr it.
5294
5295 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5296 ftfont_variation_glyphs.
5297 (setup_otf_gstring): New function.
5298 (ftfont_drive_otf): Use it.
5299 (ftfont_shape_by_flt): Handle variation selector.
5300 (ftfont_variation_glyphs): New function.
5301
5302 2008-12-30 Martin Rudalics <rudalics@gmx.at>
5303
5304 * frame.c (Vemacs_iconified): Remove.
5305
5306 2008-12-30 Jason Rumney <jasonr@gnu.org>
5307
5308 * frame.c (store_frame_param, x_get_arg): Enable newer code on
5309 WINDOWSNT too, as related changes have already been synced. (Bug#117)
5310
5311 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
5312
5313 * indent.c (Fvertical_motion): Don't advance iterator if we have
5314 reseated to the desired position.
5315
5316 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5317 checking for pos match.
5318
5319 2008-12-30 Kenichi Handa <handa@m17n.org>
5320
5321 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5322 just get the low 8-bit of the code.
5323
5324 * font.c (font_intern_prop): Validate str as multibyte.
5325
5326 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5327
5328 * dispextern.h (struct face): Move lface and hash from the middle
5329 of bitfields.
5330
5331 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5332
5333 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5334
5335 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5336 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5337 instead of intervals.h.
5338
5339 2008-12-26 Andreas Schwab <schwab@suse.de>
5340
5341 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5342 cons.
5343
5344 2008-12-26 Martin Rudalics <rudalics@gmx.at>
5345
5346 * textprop.c (Qminibuffer_prompt): New variable.
5347 (syms_of_textprop): Initialize it.
5348 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5349 in minibuffer-prompt face. (Bug#1662)
5350
5351 2008-12-25 Jason Rumney <jasonr@gnu.org>
5352
5353 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5354
5355 2008-12-24 Jason Rumney <jasonr@gnu.org>
5356
5357 * ralloc.c (r_alloc_reset_variable): New function.
5358
5359 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
5360 record of what points where. (Bug#716)
5361
5362 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5363
5364 * minibuf.c (read_minibuf): Follow the non-interactive case when
5365 running as a daemon, before detaching.
5366
5367 2008-12-22 Andreas Schwab <schwab@suse.de>
5368
5369 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5370 * gtkutil.c (free_widget_value): Use xfree instead of free.
5371
5372 2008-12-22 Martin Rudalics <rudalics@gmx.at>
5373
5374 * frame.c (delete_frame): New function derived from
5375 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5376 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5377 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5378 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5379 * frame.h: Extern delete_frame.
5380 * window.c (window_loop):
5381 * terminal.c (delete_terminal):
5382 * xterm.c (x_connection_closed):
5383 * xfns.c (Fx_hide_tip):
5384 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
5385
5386 2008-12-21 Jason Rumney <jasonr@gnu.org>
5387
5388 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5389 when character maps to .notdef character.
5390
5391 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5392
5393 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5394
5395 2008-12-20 Jason Rumney <jasonr@gnu.org>
5396
5397 * frame.c (Fmake_terminal_frame): Raise an error when called from
5398 a graphical frame on Windows. (Bug#1325)
5399
5400 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5401
5402 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5403
5404 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
5405
5406 * minibuf.c (Fread_buffer): Doc fix.
5407
5408 2008-12-20 Jason Rumney <jasonr@gnu.org>
5409
5410 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
5411 server name in UNC paths. (Bug#719)
5412
5413 * coding.c (decode_coding): Clear chars_at_source flag when using
5414 charbuf. (Bug#1035)
5415
5416 2008-12-19 Daniel Engeler <engeler@gmail.com>
5417
5418 * sysdep.c (serial_configure): Fix typo.
5419
5420 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5421
5422 * sysdep.c: Include alloca.h.
5423 (system_process_attributes): Add implementation for Solaris.
5424
5425 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
5426
5427 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5428
5429 Reorganize implementation of Flist_system_processes and
5430 Fsystem_process_attributes. No functional changes.
5431 * process.c: Don't #include pwd.h, grp.h and limits.h.
5432 (Flist_system_processes): Just call list_system_processes.
5433 (Fsystem_process_attributes): Just call system_process_attributes.
5434 (procfs_list_system_processes, time_from_jiffies)
5435 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5436 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5437
5438 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5439 (list_system_processes): Rename from
5440 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5441 Provide a do nothing implementation.
5442 (system_process_attributes): Rename from
5443 procfs_list_system_processes.
5444 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5445 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
5446
5447 * w32.c (list_system_processes): Rename from
5448 w32_list_system_processes.
5449 (system_process_attributes): Rename from
5450 w32_system_process_attributes.
5451
5452 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5453
5454 * process.h (w32_list_system_processes)
5455 (w32_system_process_attributes): Remove.
5456 (list_system_processes, system_process_attributes):
5457 New prototypes.
5458
5459 2008-12-19 Kenichi Handa <handa@m17n.org>
5460
5461 * xfont.c (xfont_decode_coding_xlfd): New function.
5462 (xfont_encode_coding_xlfd): New function.
5463 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5464 (xfont_list): Decode and encode XLFD by iso-8859-1.
5465 (xfont_match): Likewise.
5466 (xfont_list_family): Likewise.
5467 (xfont_open): Likewise.
5468
5469 * ftfont.c (ftfont_open): Generate a multibyte string if given
5470 names are utf-8.
5471
5472 * xftfont.c (xftfont_open): Generate a multibyte string if given
5473 names are utf-8.
5474
5475 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5476
5477 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5478 changed.
5479 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5480 clicked on a detached tool bar button.
5481
5482 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5483
5484 * emacs.c (main): Print and error and exit when no data is read
5485 from the pipe.
5486
5487 2008-12-17 Jason Rumney <jasonr@gnu.org>
5488
5489 * w32font.c (w32font_has_char): Always return -1.
5490
5491 2008-12-16 Kenichi Handa <handa@m17n.org>
5492
5493 * font.c (font_open_entity): Fix previous change.
5494
5495 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5496
5497 * process.c: Include <limits.h>.
5498
5499 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
5500
5501 * font.c (font_update_drivers): Fix mistake in reconstructing the
5502 driver list.
5503
5504 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
5505
5506 * font.c (font_clear_cache): Fix format of font cache data.
5507
5508 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
5509
5510 * xftfont.c (xftfont_open): Free Xft font pattern if
5511 XftFontOpenPattern fails.
5512
5513 * xterm.c (x_free_frame_resources): Remove extraneous call to
5514 free_frame_faces.
5515
5516 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5517
5518 * xterm.c (x_delete_display): Move xim_close_dpy call to
5519 x_delete_terminal.
5520 (x_delete_terminal): Call xim_close_dpy.
5521
5522 2008-12-13 Jason Rumney <jasonr@gnu.org>
5523
5524 * w32font.c (intern_font_name): New function.
5525 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5526 (w32font_open_internal, Fx_select_font): Decode font name.
5527 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5528
5529 * w32font.h (intern_font_name): Declare new function.
5530
5531 * w32uniscribe.c (add_opentype_font_name_to_list):
5532 Use intern_font_name.
5533
5534 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5535
5536 * frame.c (Fdelete_frame): Call free_font_driver_list.
5537
5538 * font.c (free_font_driver_list): Implement missing function.
5539
5540 * w32term.c (w32_term_init): Don't initialize the image cache
5541 here; it will be done in init_frame_faces.
5542
5543 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5544 (struct x_display_info): Remove unused member null_pixel. New
5545 member xim_callback_data.
5546
5547 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5548 (xim_initialize): Save pointer to callback function data.
5549 (xim_close_dpy): Free callback function data. Call XCloseIM,
5550 reverting 2008-11-04 change by David Smith.
5551 (x_term_init): Don't initialize the image cache here; it will be
5552 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5553 (x_delete_display): Free x_dnd_atoms member.
5554
5555 2008-12-13 Kenichi Handa <handa@m17n.org>
5556
5557 * font.c (font_rescale_ratio): Moved from xfaces.c.
5558 Argument type changed. Handle a font-spec too.
5559 (font_score): Check Vface_font_rescale_alist.
5560 (font_open_entity): Likewise. (Bug#1547)
5561
5562 * xfaces.c (font_rescale_ratio): Moved to font.c.
5563
5564 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5565
5566 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5567
5568 2008-12-12 Jason Rumney <jasonr@gnu.org>
5569
5570 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5571 Vwindow_system_version to the real w32 major version.
5572
5573 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5574
5575 * term.c (init_tty): Move setting the terminal name before the
5576 potential user: maybe_fatal.
5577
5578 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
5579
5580 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5581 all callers changed. Call free_frame_faces to free the face cache.
5582
5583 2008-12-11 Jason Rumney <jasonr@gnu.org>
5584
5585 * w32font.c (fill_in_logfont): Don't assume symbol script means
5586 SYMBOL_CHARSET. (Bug#547)
5587
5588 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
5589 size for surrogates. (Bug#1096, bug#872)
5590
5591 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5592
5593 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5594
5595 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5596
5597 * process.c (Fsystem_process_attributes, syms_of_process):
5598 Fix typo in name of Ssystem_process_attributes.
5599 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5600
5601 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5602
5603 * syntax.c (Fmodify_syntax_entry): Doc fix.
5604
5605 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5606
5607 * font.c (Ffont_spec): Move usage to end of docstring.
5608
5609 2008-12-10 Jason Rumney <jasonr@gnu.org>
5610
5611 * w32font.c (Qcham): New symbol.
5612 (font_supported_scripts): Add cham, and comments for other new
5613 scripts in bitfield from OpenType spec.
5614 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5615 contain characters beyond the bmp.
5616
5617 2008-12-10 Kenichi Handa <handa@m17n.org>
5618
5619 * ftfont.c (fc_charset_table): Add "unicode-sip".
5620 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
5621 Qunicode_sip.
5622
5623 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5624
5625 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5626 (Fcoding_system_put): Use QCdefault_char.
5627 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5628
5629 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
5630
5631 * xftfont.c (syms_of_xftfont): Fix typo.
5632
5633 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
5634
5635 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5636
5637 * emacs.c (main): Close daemon_pipe on exec.
5638
5639 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
5640
5641 * termchar.h (struct tty): New members termcap_term_buffer and
5642 termcap_strings_buffer.
5643
5644 * term.c (encode_terminal_code): Free any previous memory blocks
5645 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
5646 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5647 All callers changed.
5648 (init_tty): Store termcap data and string buffers in new struct
5649 tty members termcap_term_buffer and termcap_strings_buffer.
5650 (delete_tty): Free them.
5651 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
5652
5653 2008-12-07 Seiji Zenitani <zenitani@mac.com>
5654
5655 * nsfns.m (ns_set_background_color): Remove code duplication.
5656 It was a substitute for face-transparency on OS X 10.3.
5657
5658 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
5659
5660 * coding.c (make_conversion_work_buffer): Disable buffer
5661 modification hooks in the work buffer.
5662
5663 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5664
5665 * process.c (procfs_system_process_attributes): If `nread' has a
5666 negative value, assign zero to it.
5667
5668 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
5669
5670 * eval.c (Vdebug_on_error): Doc fix.
5671
5672 2008-12-05 Kenichi Handa <handa@m17n.org>
5673
5674 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5675 second character is a combining character.
5676
5677 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5678
5679 * process.c (procfs_system_process_attributes): Don't use cmd,
5680 cmdsize, and q without initializing them first.
5681
5682 2008-12-04 Jason Rumney <jasonr@gnu.org>
5683
5684 * w32font.c (w32font_draw): Initialize orig_clip before getting
5685 it, and delete it when finished.
5686
5687 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5688
5689 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5690 case when running as a daemon before detaching.
5691
5692 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
5693
5694 * w32.c (init_environment): Don't unload library shell32.dll.
5695
5696 2008-12-03 Kenichi Handa <handa@m17n.org>
5697
5698 * font.c (font_at): Set `multibyte' at first.
5699
5700 * coding.c (decode_coding_charset): Check type of an element of
5701 vector VALIDS.
5702 (encode_coding_emacs_mule): Be sure to set `code'.
5703
5704 * fontset.c (face_for_char): Handle invalid charset property correctly.
5705 (font_for_char): Likewise.
5706
5707 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
5708
5709 * font.c (Fopen_font): Compute pixel size correctly.
5710 (font_update_lface): Handle fonts with corrupted size specs,
5711 i.e. non-int and non-float.
5712
5713 * ftfont.c (ftfont_match): Initialize entity variable.
5714 (ftfont_resolve_generic_family): Avoid using uninitialized var.
5715 (ftfont_list_family): Initialize list var earlier.
5716
5717 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5718
5719 * xterm.c (x_draw_glyph_string): Fall back on
5720 underline_minimum_offset for underline position.
5721
5722 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5723
5724 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5725
5726 * character.c (c_string_width): Specify the type for LEN.
5727
5728 2008-12-03 Kenichi Handa <handa@m17n.org>
5729
5730 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
5731 (decode_coding_utf_8): Likewise.
5732 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
5733 (produce_chars): Initialize consumed_chars to 0.
5734
5735 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5736
5737 * keyboard.c (make_lispy_position): Only use PT if the selected
5738 window is current.
5739
5740 2008-12-02 Andreas Schwab <schwab@suse.de>
5741
5742 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5743
5744 * doprnt.c (doprnt1): Fix size of charbuf.
5745
5746 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5747
5748 * keyboard.c (timer_check): Revert last change.
5749
5750 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
5751
5752 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5753
5754 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
5755
5756 * makefile.w32-in: Update dependencies.
5757 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5758
5759 2008-12-01 Andreas Schwab <schwab@suse.de>
5760
5761 * font.c (register_font_driver): Use xmalloc.
5762 (font_put_frame_data): Likewise.
5763
5764 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
5765
5766 * xfaces.c (realize_x_face): Make abort condition clearer.
5767
5768 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5769
5770 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
5771
5772 * keyboard.c (timer_check): After a timer runs, ensure that the
5773 selected window's buffer is current.
5774
5775 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
5776
5777 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5778 It was accidentally restored by the Unicode merge.
5779
5780 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5781
5782 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
5783
5784 * w32proc.c: Include "coding.h".
5785 (Fw32_short_file_name): Encode filename passed to Windows API.
5786 (Fw32_long_file_name): Encode filename passed to Windows API and
5787 decode back the result. (Bug#1433)
5788
5789 2008-11-29 Kenichi Handa <handa@m17n.org>
5790
5791 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5792 not before accessing it.
5793
5794 * charset.c (Fdefine_charset_internal): After calculating
5795 min_char, max_char, and fastmap, copy the charset structure again.
5796 (encode_char): Fix the previous change.
5797
5798 2008-11-28 Seiji Zenitani <zenitani@mac.com>
5799
5800 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5801
5802 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5803
5804 * nsterm.m (x_set_frame_alpha): New function.
5805
5806 2008-11-27 Eli Zaretskii <eliz@gnu.org>
5807
5808 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5809
5810 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
5811
5812 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5813 pointer to check_face_name.
5814
5815 2008-11-27 Kenichi Handa <handa@m17n.org>
5816
5817 * category.h (SET_CATEGORY_SET): Call set_category_set.
5818 (set_category_set): Extern it.
5819
5820 * category.c (hash_get_category_set): New function.
5821 (Fmodify_category_entry): Adjusted for the change of
5822 char_table_ref_and_range. Call hash_get_category_set to get a
5823 category set to store in the table.
5824
5825 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5826 Funify_charset.
5827
5828 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
5829 (DECODE_CHAR): Check if the decoder vector is ready.
5830 (ENCODE_CHAR): Check if the encoder char-table is ready.
5831 (maybe_unify_char): Extern it.
5832
5833 * charset.c (Vchar_unified_charset_table): Delete it.
5834 (inhibit_load_charset_map): New variable.
5835 (temp_charset_work): New variable.
5836 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5837 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5838 New macros.
5839 (load_charset_map): Meaning of control_flag changed. If
5840 inhibit_load_charset_map is nonzero, setup a table in
5841 temp_charset_work.
5842 (load_charset): New argument control_flag.
5843 (map_charset_for_dump): New function.
5844 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5845 map_charset_for_dump.
5846 (Fdefine_charset_internal): If the charset method is MAP, load
5847 mapping tables by calling load_charset.
5848 (Funify_charset): Don't load a mapping table but directly set
5849 Vchar_unify_table.
5850 (maybe_unify_char): New function.
5851 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5852 Handle the case of inhibit_load_charset_map being nonzero.
5853 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5854 Handle the case of inhibit_load_charset_map being nonzero.
5855 (Fclear_charset_maps): Just free temp_charset_work.
5856 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5857 variable.
5858
5859 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5860 change of char_table_ref_and_range.
5861 (char_table_ref_and_range): Change the meaning of argument FROM
5862 and TO. Now the caller must provide initial values for *FROM
5863 and *TO.
5864
5865 * fontset.c (fontset_add): Adjusted for the change of
5866 char_table_ref_and_range.
5867 (fontset_get_font_group): Likewise.
5868 (Ffontset_info): Likewise.
5869
5870 * keymap.c (describe_vector): Adjusted for the change of
5871 char_table_ref_and_range. For char-table, put boundary between
5872 non-ASCII and 8-bit characters.
5873
5874 * print.c (print_object): For bool-vector, delete unnecessary
5875 check of ASCII_BYTE_P.
5876
5877 2008-11-26 Jason Rumney <jasonr@gnu.org>
5878
5879 * w32font.c (w32font_open_internal): Don't include external
5880 leading in font height. (Bug#879)
5881
5882 2008-11-26 Glenn Morris <rgm@gnu.org>
5883
5884 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5885 redefinition with ifdef. (Bug#1383)
5886
5887 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5888
5889 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5890
5891 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5892
5893 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5894 New EmacsView methods.
5895 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5896 Fixes bug #1048,1357,1414.
5897
5898 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5899
5900 Fix bug #1362.
5901 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5902 is not an indexed color.
5903 * nsterm.m (free_indexed_color): Add argument checking.
5904 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5905
5906 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
5907
5908 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5909 Document confirm-after-completion value for
5910 minibuffer-completion-confirm.
5911
5912 2008-11-24 Jason Rumney <jasonr@gnu.org>
5913
5914 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5915 warning.
5916
5917 2008-11-23 Jason Rumney <jasonr@gnu.org>
5918
5919 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5920 restored before returning.
5921
5922 * w32font.c (check_face_name): New function.
5923 (add_font_entity_to_list): Use it to filter out common substituted
5924 fonts. (Bug#642)
5925
5926 2008-11-22 Martin Rudalics <rudalics@gmx.at>
5927
5928 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5929 confirm-nonexistent-file-or-buffer in doc-string.
5930
5931 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5932
5933 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5934 Fix copy/paste typo. Add checks.
5935
5936 2008-11-21 Kenichi Handa <handa@m17n.org>
5937
5938 * coding.c (detect_coding_iso_2022): Reject invalid composition
5939 sequence.
5940 (DECODE_COMPOSITION_START): If the current source is the last
5941 block, and the current composition doesn't end, regard this
5942 sequence as invalid.
5943 (decode_coding_iso_2022): Handle invalid composition sequence.
5944
5945 2008-11-20 Martin Rudalics <rudalics@gmx.at>
5946
5947 * window.c (coordinates_in_window): Don't return
5948 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5949 line when the window is not the rightmost one. (Bug#1372)
5950
5951 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5952
5953 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5954
5955 2008-11-15 Eli Zaretskii <eliz@gnu.org>
5956
5957 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5958 and bright_bg if noninteractive is non-zero.
5959
5960 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5961
5962 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5963 x_draw_glyph_string_background.
5964
5965 * w32term.c (x_draw_glyph_string): Likewise.
5966
5967 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
5968
5969 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5970 the next glyph string once past the overhang width.
5971
5972 * nsterm.m (ns_draw_glyph_string): Likewise.
5973
5974 * w32term.c (x_draw_glyph_string): Likewise.
5975
5976 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5977
5978 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5979 double file close.
5980
5981 2008-11-14 Martin Rudalics <rudalics@gmx.at>
5982
5983 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5984 dedicated status of window before attempting to display another
5985 buffer in it.
5986
5987 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
5988
5989 * msdos.c (Fmsdos_long_file_names):
5990 (syms_of_msdos) <dos-unsupported-char-glyph>:
5991 * dosfns.c (Fint86): Fix typos in docstrings.
5992
5993 2008-11-14 Eli Zaretskii <eliz@gnu.org>
5994
5995 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5996
5997 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5998
5999 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6000
6001 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6002
6003 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6004
6005 * frame.h: Negative alpha means "don't touch".
6006
6007 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6008
6009 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6010
6011 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6012
6013 * hftctl.c:
6014 * chpdef.h:
6015 * acldef.h: Remove files used only for systems no longer supported.
6016
6017 * Makefile.in: Fix .o alphabetical ordering.
6018 (hftctl.o): Remove dependency, file removed.
6019 (keymap.o, print.o): Depend on charset.h.
6020
6021 2008-11-10 Kenichi Handa <handa@m17n.org>
6022
6023 * character.c (Fget_byte): Fix and make it faster for unibyte target.
6024
6025 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
6026
6027 * dired.c (file_name_completion): If completion_ignore_case is
6028 enabled, ignore case when checking completion-regexp-list.
6029
6030 2008-11-08 Eli Zaretskii <eliz@gnu.org>
6031
6032 * vm-limit.c (get_lim_data): Fix last change.
6033
6034 2008-11-08 Kenichi Handa <handa@m17n.org>
6035
6036 * character.c (Fget_byte): New function.
6037 (syms_of_character): Defsubr Fget_byte.
6038
6039 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
6040
6041 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6042 cursor position is valid after scrolling.
6043
6044 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
6045
6046 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6047
6048 2008-11-06 Glenn Morris <rgm@gnu.org>
6049
6050 * xterm.c (handle_one_xevent): Don't let popup menus cause
6051 mouse-autoselect-window related window switching. (Bug#1261)
6052
6053 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6054
6055 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6056
6057 2008-11-04 Andreas Schwab <schwab@suse.de>
6058
6059 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6060
6061 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
6062
6063 * xfns.c (Fx_wm_set_size_hint): New function.
6064
6065 2008-11-03 Martin Rudalics <rudalics@gmx.at>
6066
6067 * textprop.c (Fprevious_single_char_property_change): Return 0
6068 when there's no change in a string. (Bug#1301)
6069
6070 2008-11-02 Martin Rudalics <rudalics@gmx.at>
6071
6072 * frame.c (do_switch_frame): New argument NORECORD passed to
6073 Fselect_window.
6074 (Fselect_frame): New argument NORECORD passed to
6075 do_switch_frame.
6076 (Fset_frame_selected_window): New argument NORECORD passed to
6077 Fselect_frame.
6078 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6079 in call of do_switch_frame.
6080 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6081 Handle NORECORD argument in call of Fselect_frame.
6082 * lisp.h (do_switch_frame, Fselect_frame)
6083 (Fset_frame_selected_window): Adjust declarations.
6084 * window.c (select_frame_norecord): New function.
6085 (run_window_configuration_change_hook): Use it and call
6086 Fselect_frame with NORECORD set.
6087 (Fselect_window): Pass NORECORD to Fselect_frame.
6088 (Fset_window_configuration): Handle NORECORD argument in call of
6089 do_switch_frame.
6090 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6091 Fset_frame_selected_window.
6092 * keyboard.c (command_loop_1): Handle NORECORD in call of
6093 Fselect_frame (currently ifdefd).
6094
6095 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6096
6097 * emacs.c (USAGE2): Untabify.
6098
6099 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6100
6101 * composite.c (fill_gstring_header): Fix copy/paste typo.
6102
6103 2008-10-31 Martin Rudalics <rudalics@gmx.at>
6104
6105 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6106 (Fother_window): Rename argument and rewrite doc-string.
6107 (select_window_norecord): Fix return value. (Bug#1276)
6108
6109 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
6110
6111 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6112 new frames overriding foreground for tooltips. Based on similar patch
6113 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6114
6115 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
6116
6117 * emacs.c (Fdaemon_initialized): Initialize nfd.
6118
6119 2008-10-29 Martin Rudalics <rudalics@gmx.at>
6120
6121 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6122 (Fwindow_text_height): Clarify doc-strings.
6123 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6124 doc-string of window-scroll-functions.
6125
6126 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6127
6128 * category.c (syms_of_category): Fix typo in docstring.
6129
6130 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
6131
6132 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6133 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6134 Fix typos in docstrings.
6135
6136 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6137
6138 * emacs.c (daemon_pipe): Make non-static.
6139 (IS_DAEMON): Move definition ...
6140 * lisp.h (IS_DAEMON): ... here.
6141 (daemon_pipe): Declare.
6142 (is_daemon): Remove.
6143 * dispnew.c (init_display): Use IS_DAEMON.
6144
6145 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6146
6147 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6148 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6149
6150 * emacs.c (is_daemon): Remove.
6151 (main): Don't set is_daemon.
6152 (IS_DAEMON): New macro.
6153 (Fdaemonp, Fdaemon_initialized): Use it.
6154 (Fdaemon_initialized): Write a char into the pipe to make sure the
6155 parent exits.
6156 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6157
6158 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
6159
6160 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6161 over-sized glyph, draw it with the default glyph width.
6162
6163 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6164 glyph, draw it with the default glyph width.
6165
6166 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6167 glyph, draw it with the default glyph width.
6168
6169 * xdisp.c (try_scrolling): When computing the distance from the
6170 scroll margin to PT, try moving some distance past the window
6171 bottom before giving up.
6172
6173 2008-10-27 Martin Rudalics <rudalics@gmx.at>
6174
6175 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6176 (Fset_window_buffer): Explain in doc-string that a window can be
6177 "strongly" dedicated to its buffer.
6178
6179 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6180
6181 * emacs.c (daemon_name): New variable.
6182 (main): Deal with --daemon=SERVER_NAME.
6183 (Fdaemonp): Return a name if one was passed to --daemon.
6184
6185 2008-10-26 Romain Francoise <romain@orebokech.com>
6186
6187 * emacs.c (daemon_pipe): New variable.
6188 (main): Create a pipe before forking, make the parent exit only after
6189 the child has closed its end of the pipe. Move closing the
6190 descriptors ...
6191 (Fdaemon_initialized): ... here. New function.
6192
6193 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6194
6195 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6196 the previous unoptimized table.
6197
6198 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6199 the distinction between non-nil and non-t value of `dedicated'.
6200
6201 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
6202
6203 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
6204 read_char_minibuf_menu_text is large enough to hold the menu string.
6205
6206 2008-10-25 Martin Rudalics <rudalics@gmx.at>
6207
6208 * window.c (Fget_buffer_window, Fdelete_windows_on)
6209 (Freplace_buffer_in_windows): Make buffer argument optional and
6210 rename to buffer_or_name.
6211
6212 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
6213
6214 * xdisp.c (handle_single_display_spec, handle_display_prop):
6215 Undo 2005-05-16 change.
6216 (handle_stop): Pop iterator if it's loaded with an empty string.
6217 (get_overlay_strings_1): Don't save iterator if it's loaded with
6218 an empty string (bug#1201).
6219
6220 2008-10-24 Kenichi Handa <handa@m17n.org>
6221
6222 * ftfont.c (ftfont_otf_features): Fix previous change.
6223 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6224 calling ftfont_otf_features.
6225
6226 2008-10-24 Kenichi Handa <handa@m17n.org>
6227
6228 * font.c (font_match_p): Fix for the case that a vector of
6229 characters is in script-representative-chars.
6230
6231 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
6232
6233 * dbusbind.c (xd_in_read_queued_messages): New variable.
6234 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
6235 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6236 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
6237 macro. (Bug#1186)
6238
6239 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
6240
6241 * s/sol2-10.h: New file.
6242
6243 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6244
6245 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6246 poor beast has survived 9+ years and the jump from xterm.c!).
6247
6248 2008-10-23 Martin Rudalics <rudalics@gmx.at>
6249
6250 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6251 Reword doc-string.
6252 (Fbury_buffer): In doc-string say what happens to the buffer's window.
6253
6254 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6255
6256 * character.c (syms_of_character) <script-representative-chars>:
6257 <unicode-category-table>: Doc fixes.
6258
6259 2008-10-23 Noah Friedman <friedman@splode.com>
6260
6261 * coding.c (make_conversion_work_buffer): Check that
6262 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6263 Fget_buffer_create.
6264
6265 2008-10-23 Kenichi Handa <handa@m17n.org>
6266
6267 * font.c (font_add_log): Check the values of extra properties.
6268
6269 2008-10-22 Martin Rudalics <rudalics@gmx.at>
6270
6271 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6272 Reword doc-string.
6273 (Fset_window_parameter): Use NILP.
6274 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
6275 (Frecenter): Use "selected" instead of "current" window in doc-strings.
6276
6277 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6278
6279 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6280
6281 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6282
6283 * nsfns.m (ns_appkit_version): New function.
6284 (x-server-version): Use it.
6285 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6286 (x-server-vendor): Don't check_ns().
6287
6288 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6289
6290 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6291
6292 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6293 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6294
6295 2008-10-22 Kenichi Handa <handa@m17n.org>
6296
6297 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6298 scripts.
6299
6300 * category.c (word_boundary_p): Check scripts instead of charset.
6301 Handle nil value in word-separating-categories and
6302 word-combining-categories.
6303 (syms_of_category): Fix docstrings of word-separating-categories
6304 and word-combining-categories.
6305
6306 2008-10-21 Eli Zaretskii <eliz@gnu.org>
6307
6308 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6309 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6310
6311 2008-10-21 Martin Rudalics <rudalics@gmx.at>
6312
6313 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6314 Rename arg "buffer" to "buffer_or_name".
6315 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6316 it optional.
6317 (no_switch_window): Remove since the return value is not used.
6318 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
6319 Consider window as dedicated when Fwindow_dedicated_p returns a
6320 non-nil value.
6321 * lisp.h: Remove prototype for no_switch_window.
6322
6323 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6324
6325 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
6326 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
6327
6328 2008-10-21 Kenichi Handa <handa@m17n.org>
6329
6330 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6331 check Vlatin_extra_code_table.
6332
6333 2008-10-20 Eli Zaretskii <eliz@gnu.org>
6334
6335 * fileio.c (Fset_file_modes): Doc fix.
6336
6337 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
6338
6339 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6340 in arrays.
6341
6342 2008-10-19 Martin Rudalics <rudalics@gmx.at>
6343
6344 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6345 Mention kill-buffer in doc-string.
6346 (Fset_window_buffer): Reinsert tem check removed in last commit.
6347 (Fenlarge_window, Fshrink_window): Have argument names and
6348 doc-string follow Elisp manual more closely.
6349
6350 2008-10-18 Eli Zaretskii <eliz@gnu.org>
6351
6352 * fileio.c (Fset_file_modes): Doc fix.
6353
6354 2008-10-18 Martin Rudalics <rudalics@gmx.at>
6355
6356 * window.c (Fwindow_width, Fset_window_start)
6357 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
6358 (Fdelete_windows_on, Freplace_buffer_in_windows):
6359 Make doc-strings follow code and Elisp manual more closely.
6360 (Fwindow_dedicated_p): Make window argument optional.
6361 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6362 (Fset_window_buffer): Respect any non-nil dedicated value for
6363 window. Rename "buffer" argument to "buffer_or_name".
6364
6365 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
6366
6367 * m/sh3.h: New file, machine description for SuperH.
6368
6369 2008-10-17 Martin Rudalics <rudalics@gmx.at>
6370
6371 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6372
6373 2008-10-17 Kenichi Handa <handa@m17n.org>
6374
6375 * ftfont.c (ftfont_otf_features): Fix indexing
6376 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6377
6378 2008-10-16 Magnus Henoch <mange@freemail.hu>
6379
6380 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6381 (Fdbus_call_method_asynchronously): Ditto.
6382 This change makes C-h f display the argument list.
6383
6384 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
6385
6386 * fileio.c (Fexpand_file_name): Doc fix.
6387
6388 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6389 of :foreground and :background equivalent to unspecified (20.x
6390 compatibility).
6391
6392 2008-10-15 Eli Zaretskii <eliz@gnu.org>
6393
6394 * buffer.c (syms_of_buffer): Doc fix.
6395
6396 2008-10-14 Kenichi Handa <handa@m17n.org>
6397
6398 * font.c (font_clear_prop): When clearing font width, clear the
6399 average width field too.
6400
6401 2008-10-12 Andreas Schwab <schwab@suse.de>
6402
6403 * ftfont.c (ftfont_shape_by_flt): Make static.
6404 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6405
6406 * font.c: Don't include <m17n-flt.h>.
6407
6408 2008-10-10 Eli Zaretskii <eliz@gnu.org>
6409
6410 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6411
6412 2008-10-09 Eli Zaretskii <eliz@gnu.org>
6413
6414 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6415 away code.
6416
6417 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
6418
6419 * dispnew.c (update_text_area): Avoid looping due to large glyph
6420 overhangs (bug#1070).
6421
6422 2008-10-09 Kenichi Handa <handa@m17n.org>
6423
6424 * fontset.c (face_for_char): If face->fontset is negative, just
6425 return ascii_face.
6426
6427 * font.c (font_delete_unmatched): Fix previous change.
6428 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
6429
6430 2008-10-09 Martin Rudalics <rudalics@gmx.at>
6431
6432 * frame.c (Fraise_frame): On text-only terminals select frame in
6433 order to make it visible. (Bug#1061)
6434
6435 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
6436
6437 * fontset.c (fontset_find_font): Check frame validity.
6438
6439 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
6440
6441 * gtkutil.c (xg_display_open): Reset default display if none exists.
6442 (xg_display_close): Allow Emacs to close all displays (bug#985).
6443
6444 2008-10-06 Andreas Schwab <schwab@suse.de>
6445
6446 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
6447
6448 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
6449
6450 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
6451
6452 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
6453
6454 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6455 during initialization.
6456
6457 2008-10-04 Eli Zaretskii <eliz@gnu.org>
6458
6459 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6460 whole thing on MSDOS frames as well as on a TTY.
6461
6462 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6463 well as for TTY.
6464 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6465 well as on a TTY.
6466
6467 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6468 as well as for TTY.
6469
6470 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6471
6472 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6473 MSDOS frames as well.
6474
6475 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6476
6477 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6478 correct arguments.
6479 * menu.c (find_and_return_menu_selection): Add cast.
6480
6481 2008-10-03 Glenn Morris <rgm@gnu.org>
6482
6483 * emacs.c (USAGE1): Add --daemon.
6484
6485 2008-10-02 Eli Zaretskii <eliz@gnu.org>
6486
6487 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6488 100, so it's in percents as advertised.
6489
6490 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6491
6492 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6493 (ns_output.current_cursor, ns_output.desired_cursor)
6494 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6495 (FRAME_NEW_CURSOR_COLOR): Remove.
6496
6497 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
6498 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
6499 enumeration (HOLLOW_BOX_CURSOR, etc.).
6500
6501 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6502 (draw_window_cursor): Simplify code.
6503 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6504 Don't change cursor type. In latter, call rehighlight instead of doing
6505 updates manually.
6506 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6507 Use core Emacs cursor types.
6508
6509 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
6510
6511 2008-10-02 Martin Rudalics <rudalics@gmx.at>
6512
6513 * process.c (Faccept_process_output): Fix doc-string.
6514
6515 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6516
6517 * gmalloc.c (__sbrk): Also define for uClibc.
6518
6519 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6520 for uClibc.
6521
6522 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6523
6524 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6525 styles.
6526 (nsfont_open): Reenable the cache.
6527
6528 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6529
6530 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6531 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6532
6533 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6534
6535 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6536 a suspended terminal.
6537
6538 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
6539
6540 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6541
6542 2008-09-30 Eli Zaretskii <eliz@gnu.org>
6543
6544 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6545
6546 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
6547
6548 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6549 in a continued line coincides with a line beginning.
6550
6551 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6552
6553 * nsfont.m (nsfont_trait_distance): Fix bug.
6554 (nsfont_list): Return a list rather than a vector (syncs with Handa
6555 changes of 2008-05-14).
6556 (nsfont_open): Improve logging.
6557
6558 2008-09-29 Andreas Schwab <schwab@suse.de>
6559
6560 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6561
6562 2008-09-28 Martin Rudalics <rudalics@gmx.at>
6563
6564 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6565 name as char-resolve-modifiers.
6566 Reported by: Markus Triska <markus.triska@gmx.at>
6567
6568 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6569
6570 * dispnew.c (init_display): Return earlier when running as a daemon.
6571
6572 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6573
6574 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6575
6576 2008-09-27 Eli Zaretskii <eliz@gnu.org>
6577
6578 * composite.c (Fcomposition_get_gstring)
6579 (Fcompose_region_internal, Fcompose_string_internal)
6580 (Ffind_composition_internal): Doc fix.
6581 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6582 (syms_of_composite) <auto-composition-function>: Doc fix.
6583 (syms_of_composite) <composition-function-table>: Doc fix.
6584
6585 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
6586
6587 * search.c (wordify): New argument for lax word-ends.
6588 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6589
6590 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6591
6592 * lisp.h (is_daemon): Declare.
6593 * dispnew.c (init_display): Do not try to initialize the terminal
6594 when running as a daemon.
6595
6596 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
6597
6598 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6599 x_display_pixel_height.
6600
6601 2008-09-22 Martin Rudalics <rudalics@gmx.at>
6602
6603 * undo.c (record_point): Don't call Fundo_boundary for first
6604 change. (Bug#731)
6605
6606 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
6607
6608 * emacs.c (Fdaemonp): Doc fix.
6609
6610 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6611
6612 * emacs.c (main): Place #ifdef in the proper place.
6613
6614 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6615
6616 * emacs.c (standard_args): Add --daemon.
6617 (main): Disconnect from the terminal when --daemon is passed.
6618 (is_daemon): New variable.
6619 (Fdaemonp): New function.
6620 (syms_of_emacs): Defsubr it.
6621
6622 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
6623
6624 * xdisp.c (get_next_display_element): Handle string display
6625 correctly when checking for the end of a box run.
6626
6627 2008-09-20 Glenn Morris <rgm@gnu.org>
6628
6629 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6630 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6631 (Frename_file): Avoid copying to trash if a rename involves
6632 a delete. (Bug#964).
6633
6634 2008-09-20 Eli Zaretskii <eliz@gnu.org>
6635
6636 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6637 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6638 frames as well as termcap frames.
6639 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6640 get_named_tty.
6641
6642 2008-09-19 Eli Zaretskii <eliz@gnu.org>
6643
6644 * process.c (procfs_system_process_attributes): Fix cmdline in
6645 case /proc/PID/cmdline is empty.
6646
6647 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6648 x_display_pixel_height.
6649
6650 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
6651
6652 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6653
6654 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6655 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6656
6657 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6658
6659 * dispextern.h (struct it): Move line_wrap away from the middle of
6660 bitfields. Move voffset in struct iterator_stack_entry after the
6661 bitfields. Move tab_width near after another short.
6662
6663 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6664
6665 * frame.h (struct frame): Move alpha from the middle of bitfields.
6666
6667 * window.h (struct window): Move frozen_window_start_p after the
6668 rest of the bitfields to reduce padding.
6669
6670 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
6671
6672 * xterm.h (x_display_info): Remove `height' and `width' members.
6673
6674 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6675
6676 * w32term.h (w32_display_info): Remove `height', `width',
6677 `height_in', and `width_in' members.
6678
6679 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6680 New functions.
6681 (x_calc_absolute_position): Use them.
6682 (x_term_init): Omit removed `height' and `width' members.
6683
6684 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6685 New functions.
6686 (w32_read_socket, x_calc_absolute_position): Use them.
6687 (w32_initialize_display_info, w32_term_init): Omit removed members
6688 of w32_display_info.
6689
6690 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6691 New functions.
6692 (ns_initialize_display_info): Omit removed members of ns_display_info.
6693
6694 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6695 New functions.
6696 (x_calc_absolute_position): Use them.
6697 (x_term_init): Omit removed `height' and `width' members.
6698
6699 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6700 (compute_tip_xy):
6701 * frame.c (x_fullscreen_adjust):
6702 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6703 x_display_pixel_width.
6704
6705 2008-09-18 Kenichi Handa <handa@m17n.org>
6706
6707 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6708 (composition_compute_stop_pos): Fix handling of static composition.
6709 (Fcomposition_get_gstring): Check FROM and TO at first.
6710
6711 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6712
6713 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
6714 mixup (YAILOM).
6715
6716 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
6717
6718 * indent.c (Fvertical_motion): Use position reported by iterator
6719 instead of PT for determining screen motion (bug#943).
6720
6721 2008-09-17 Romain Francoise <romain@orebokech.com>
6722
6723 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6724
6725 2008-09-17 Kenichi Handa <handa@m17n.org>
6726
6727 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6728
6729 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6730 if necessary.
6731
6732 2008-09-16 Kenichi Handa <handa@m17n.org>
6733
6734 * coding.c (make_conversion_work_buffer): Avoid calling
6735 Fget_buffer_create if it is not necessary.
6736
6737 2008-09-15 Martin Rudalics <rudalics@gmx.at>
6738
6739 * window.c (Fselect_window): Don't update window_select_count and
6740 use_time when norecord is not nil.
6741
6742 2008-09-14 Kenichi Handa <handa@m17n.org>
6743
6744 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6745 specpdl_ptr.
6746
6747 2008-09-12 Kenichi Handa <handa@m17n.org>
6748
6749 * indent.c (scan_for_column): Don't handle automatic composition
6750 if the current buffer is not associated with a window.
6751
6752 * composite.c (composition_reseat_it): If the current buffer is
6753 not associated with a window, ignore the automatic composition.
6754 (find_automatic_composition): Likewise.
6755
6756 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6757
6758 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6759 (Fgpm_mouse_stop): Use it.
6760 * termhooks.h (close_gpm): Declare.
6761 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6762 connection if Gpm_GetEvent fails.
6763
6764 * window.c (set_window_buffer): Always preserve current-buffer.
6765
6766 2008-09-12 Glenn Morris <rgm@gnu.org>
6767
6768 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6769
6770 2008-09-11 Glenn Morris <rgm@gnu.org>
6771
6772 * charset.c (charset-map-path): Doc fix.
6773
6774 2008-09-10 Kenichi Handa <handa@m17n.org>
6775
6776 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6777
6778 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6779 compose a grapheme cluster with the preceding base glyph.
6780
6781 * composite.c (composition_compute_stop_pos): Fix previous change.
6782 Reset cmp_it->id to -1 at first.
6783
6784 2008-09-10 Glenn Morris <rgm@gnu.org>
6785
6786 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6787
6788 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
6789
6790 * keyboard.c (read_key_sequence): Reapply translation maps when
6791 switching keyboards.
6792
6793 2008-09-09 Kenichi Handa <handa@m17n.org>
6794
6795 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6796 characters.
6797
6798 * composite.c (FORWARD_CHAR): Fix calculation
6799 of (POSITION).pos_byte.
6800 (composition_compute_stop_pos): Limit the search of composition to
6801 at most 500 characters ahead. If we reach the limit or find a
6802 newline, set cmp_it->ch to -2 and return 0.
6803 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6804
6805 2008-09-08 Kenichi Handa <handa@m17n.org>
6806
6807 * indent.c (Fvertical_motion): Be sure to set
6808 it_overshoot_expected if it.cmp_it.id is non-negative.
6809
6810 2008-09-07 Andreas Schwab <schwab@suse.de>
6811
6812 * callproc.c (Fcall_process): Don't hold references to string data
6813 across garbage collection. Move initialisation of new_argv down
6814 to avoid compiler bug.
6815
6816 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6817
6818 * process.c (Fsystem_process_attributes): Doc fix.
6819
6820 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
6821
6822 * callproc.c (Fcall_process): Canonicalize current directory name.
6823
6824 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6825 iterator advances to the next line if the current line ends in a
6826 continued tab.
6827
6828 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6829
6830 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6831 member to point to cmp_from.
6832
6833 * xdisp.c: Doc fix for references to gidx data member.
6834
6835 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6836
6837 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6838
6839 2008-09-07 Kenichi Handa <handa@m17n.org>
6840
6841 * composite.c (FORWARD_CHAR): Check STOP after
6842 incrementing (POSITION).pos.
6843
6844 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6845
6846 * process.c (Fsystem_process_attributes): Doc fix.
6847
6848 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
6849
6850 * keyboard.c (Ftop_level): Doc fix.
6851
6852 2008-09-06 Eli Zaretskii <eliz@gnu.org>
6853
6854 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6855 minibuffer, don't let lower part of menu invade the echo area.
6856
6857 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6858 "char *q" to access menu text and advance through it. Revert the
6859 change that displayed ">" instead of ASCII character 0x10.
6860
6861 2008-09-05 Eli Zaretskii <eliz@gnu.org>
6862
6863 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6864 toggle boxes and radio buttons on MS-DOS as well.
6865
6866 2008-09-05 Kenichi Handa <handa@m17n.org>
6867
6868 * composite.c (autocmp_chars): Check lookback count.
6869 (composition_compute_stop_pos): Set cmp_it->lookback.
6870 (composition_reseat_it): Check lookback count.
6871 (struct position_record): New struct.
6872 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6873 (find_automatic_composition): New function.
6874 (composition_adjust_point): Use find_automatic_composition.
6875
6876 * dispextern.h (struct composition_it): New member lookback.
6877
6878 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
6879
6880 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6881 if moving by a single line.
6882
6883 2008-09-02 Andreas Schwab <schwab@suse.de>
6884
6885 * xterm.c (x_delete_display): Fix merge error.
6886
6887 * fileio.c (Fexpand_file_name): Remove unused variables.
6888
6889 2008-09-02 Eli Zaretskii <eliz@gnu.org>
6890
6891 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6892 storage on all platforms, not just on DOS_NT.
6893
6894 2008-09-02 Jason Rumney <jasonr@gnu.org>
6895
6896 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6897 Ensure mouse is not grabbed after menu is finished.
6898
6899 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
6900
6901 * xfaces.c (Finternal_set_alternative_font_family_alist)
6902 (Finternal_set_alternative_font_registry_alist): Properly copy
6903 entire alist structure.
6904
6905 2008-09-01 Kenichi Handa <handa@m17n.org>
6906
6907 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
6908 representative chars of the script is a vector.
6909 (ftfont_list): Handle the case where the representative chars of
6910 the script is a vector.
6911
6912 * character.c (syms_of_character): Docstring of
6913 script-representative-chars fixed.
6914
6915 2008-08-31 Eli Zaretskii <eliz@gnu.org>
6916
6917 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6918 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6919 the menu. Allocate larger buffer for `text', to account for
6920 possible ^C characters.
6921
6922 2008-08-31 Martin Rudalics <rudalics@gmx.at>
6923
6924 * xdisp.c (prepare_menu_bars): Don't call
6925 Vwindow_size_change_functions with arg Qt.
6926
6927 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6928
6929 * font.h (font_range):
6930 * fileio.c (report_file_error):
6931 * composite.c (composition_update_it): Yet another int/Lisp_Object
6932 mixup (YAILOM).
6933
6934 2008-08-30 Glenn Morris <rgm@gnu.org>
6935
6936 * data.c (Fmake_variable_frame_local): Doc fix.
6937
6938 * frame.c (Fmodify_frame_parameters): Doc fix.
6939
6940 2008-08-30 Eli Zaretskii <eliz@gnu.org>
6941
6942 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6943 needed by GetTokenInformation.
6944 (w32_system_process_attributes): Check return values of all system
6945 APIs.
6946
6947 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6948 only when the state changes.
6949 (IT_update_begin, IT_update_end): Add termscript trace.
6950
6951 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6952 clipboard is unavailable. Set dst to NULL if it doesn't point to
6953 malloc'ed data.
6954 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6955 passing random values to xfree.
6956
6957 * dispnew.c (init_display): Set `tty's association in frame's
6958 parameters alist to the name of the terminal device, if that is known.
6959
6960 2008-08-29 Jason Rumney <jasonr@gnu.org>
6961
6962 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6963
6964 2008-08-29 Eli Zaretskii <eliz@gnu.org>
6965
6966 * composite.c (fill_gstring_body): Avoid compiler warnings.
6967
6968 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6969 LGLYPH_SET_CODE to avoid compiler warnings.
6970
6971 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
6972
6973 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6974
6975 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6976 LGLYPH_SET_CODE.
6977
6978 2008-08-29 Kenichi Handa <handa@m17n.org>
6979
6980 * fileio.c (report_file_error): Don't downcase the first character
6981 of errstring if it is still unibyte.
6982
6983 2008-08-29 Kenichi Handa <handa@m17n.org>
6984
6985 These changes are to re-implement the automatic composition so
6986 that it doesn't use text properties.
6987
6988 * Makefile.in (ftfont.o): Depend on composite.h.
6989 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6990
6991 * character.h (Vunicode_category_table): Extern it.
6992
6993 * character.c (Vunicode_category_table): New variable.
6994 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6995
6996 * chartab.c (optimize_sub_char_table): Perform more greedy
6997 optimization.
6998
6999 * composite.h (enum composition_method):
7000 Delete COMPOSITION_WITH_GLYPH_STRING.
7001 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7002 (Vcomposition_function_table): Extern it.
7003 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7004 (composition_gstring_put_cache, composition_gstring_from_id)
7005 (composition_gstring_p, composition_gstring_width)
7006 (composition_compute_stop_pos, composition_reseat_it)
7007 (composition_update_it, composition_adjust_point): Extern them.
7008 (Fcomposition_get_gstring): EXFUN it.
7009
7010 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
7011 (Vcomposition_function_table)
7012 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
7013 (gstring_hash_table, gstring_work, gstring_work_headers):
7014 New variables.
7015 (gstring_lookup_cache, composition_gstring_put_cache)
7016 (composition_gstring_from_id, composition_gstring_p)
7017 (composition_gstring_width, fill_gstring_header)
7018 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7019 (composition_reseat_it, composition_update_it)
7020 (composition_adjust_point, Fcomposition_get_gstring): New functions.
7021 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7022 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7023 Defsubr composition_get_gstring.
7024
7025 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7026 cmp_id.
7027 (struct glyph_string): Delete the member gidx. New members
7028 cmp_id, cmp_from, and cmp_to.
7029 (enum it_method): Delete GET_FROM_COMPOSITION.
7030 (struct composition_it): New struct.
7031 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7032 Delete c, len, cmp_id, cmp_len in u.comp.
7033
7034 * font.h (enum lgstring_indices): Delete it.
7035 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
7036 (enum lglyph_indices): Likewise.
7037 (font_range): Adjust extern.
7038 (font_fill_lglyph_metrics): Extern it.
7039
7040 * font.c (QCf): New variable.
7041 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7042 (font_prepare_composition): Delete this function.
7043 (font_range): Type and arguments changed.
7044 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7045 (font_fill_lglyph_metrics): New function.
7046 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
7047 (syms_of_font): DEFSYM QCf. Delete defsubr for
7048 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7049 Defsubr Sfont_shape_gstring.
7050
7051 * fontset.h (font_for_char): Extern it.
7052
7053 * fontset.c (font_for_char): New function.
7054
7055 * ftfont.c: Include composite.h.
7056 (ftfont_resolve_generic_family): Add langset "en" to pattern.
7057 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7058
7059 * indent.c: Include composite.h and dispextern.h.
7060 (check_composition): Delete this function.
7061 (scan_for_column): Handle composition by
7062 composition_compute_stop_pos, composition_reseat_it, and
7063 composition_update_it.
7064 (compute_motion): Likewise.
7065 (Fvertical_motion): Fix checking of composition.
7066
7067 * keyboard.c (adjust_point_for_property): Check composition by
7068 composition_adjust_point.
7069
7070 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
7071 struct glyph_string.
7072
7073 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7074 (append_composite_glyph): Adjust for the change of struct it and
7075 struct glyph.
7076 (produce_composite_glyph): Likewise.
7077
7078 * w32term.c (x_draw_composite_glyph_string_foreground):
7079 Adjust for the change of struct glyph_string.
7080 (x_draw_glyph_string): Likewise.
7081
7082 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7083 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7084
7085 * xdisp.c: Include font.h.
7086 (it_props): Delete the entry for Qauto_composed.
7087 (init_iterator): Initialize it->cmp_it.id to -1.
7088 (compute_stop_pos): Call composition_compute_stop_pos.
7089 (face_before_or_after_it_pos): Adjust for the change of struct it.
7090 (handle_auto_composed_prop): Delete it.
7091 (handle_composition_prop): Handle only static composition.
7092 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7093 from xassert. Initialize it->cmp_it.stop_pos.
7094 (push_it): Adjust for the change of struct it.
7095 (pop_it): Likewise.
7096 (get_next_element): Delete next_element_from_composition.
7097 (CHAR_COMPOSED_P): New macro.
7098 (get_next_display_element): For automatic composition, get a face
7099 from the font in the glyph-string.
7100 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
7101 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
7102 (next_element_from_string): Check if the character at the current
7103 position is composed by CHAR_COMPOSED_P.
7104 (next_element_from_buffer): Likewise.
7105 (next_element_from_composition): Adjust for the change of struct it.
7106 Update it->cmp_it.
7107 (dump_glyph): Adjust for the change of struct glyph.
7108 (fill_composite_glyph_string): Adjust for the change of struct
7109 it and struct glyph. Don't handle automatic composition here.
7110 (fill_gstring_glyph_string): New function.
7111 (x_get_glyph_overhangs): Handle automatic composition.
7112 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
7113 (BUILD_GSTRING_GLYPH_STRING): New macro.
7114 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7115 automatic composition.
7116 (append_composite_glyph): Adjust for the change of struct it and
7117 struct glyph.
7118 (x_produce_glyphs): Adjust for the change of struct it.
7119
7120 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7121 the change of struct glyph_string.
7122 (x_draw_glyph_string): Likewise.
7123
7124 2008-08-29 Glenn Morris <rgm@gnu.org>
7125
7126 * buffer.c (word-wrap): Doc fix.
7127 * xdisp.c (truncate-partial-width-windows): Doc fix.
7128 Increase default to 50.
7129
7130 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
7131
7132 * xdisp.c (update_tool_bar_unwind): New function.
7133 (update_tool_bar): Temporarily set selected frame before building
7134 tool-bar items.
7135
7136 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
7137
7138 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7139 snprintf, respectively.
7140 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7141
7142 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
7143
7144 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7145 LDFLAGS to GNUstep CC invocation.
7146
7147 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
7148
7149 * indent.c (Fvertical_motion): Revert last change. Handle the
7150 general case where we are moving forward, and PT spans multiple
7151 screen lines.
7152
7153 * eval.c (find_handler_clause): Temporarily increase
7154 max-lisp-eval-depth while printing the backtrace buffer, to
7155 guarantee that help-mode code can run.
7156
7157 2008-08-27 Eli Zaretskii <eliz@gnu.org>
7158
7159 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7160 colors under -rv.
7161 (IT_set_frame_parameters): Don't swap foreground and background
7162 colors if `(reverse . t)' is present in the frame properties.
7163 (internal_terminal_init): Call init_frame_faces only for the
7164 initial frame.
7165
7166 2008-08-27 Andreas Schwab <schwab@suse.de>
7167
7168 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7169
7170 2008-08-27 Andreas Schwab <schwab@suse.de>
7171
7172 * search.c (search_buffer): Set char_base to zero only at the end.
7173
7174 2008-08-27 Kenichi Handa <handa@m17n.org>
7175
7176 * fileio.c (report_file_error): Fix handling of multibyte error string.
7177
7178 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7179
7180 * xterm.c (x_term_init): Temporarily hide the partially
7181 initialized terminal while calling vendor-specific-keysyms.
7182
7183 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7184
7185 * msdos.c (internal_terminal_init): Most initializations done only
7186 once, especially initial_screen_colors[] and termscript open.
7187
7188 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7189
7190 * eval.c (Fcondition_case): Doc fix.
7191
7192 * widgetprv.h (EmacsFramePart): Change font member to the new font
7193 struct.
7194
7195 * widget.c: Include character.h and font.h for XSETFONT.
7196 (setup_frame_gcs): Compute X font id from font struct, just once.
7197
7198 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7199
7200 * term.c (get_named_tty): Fix last change.
7201
7202 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7203
7204 * indent.c (Fvertical_motion): If moving forward starting from a
7205 multi-line string, move the iterator to the last line of that string.
7206
7207 2008-08-25 Eli Zaretskii <eliz@gnu.org>
7208
7209 * frame.c (do_switch_frame): Mark previously displayed frame as
7210 obscured for FRAME_MSDOS_P frames as well.
7211
7212 2008-08-24 Eli Zaretskii <eliz@gnu.org>
7213
7214 * frame.c (make_terminal_frame): Initialize f->terminal,
7215 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7216 Set the top frame to newly created frame.
7217 (Fmake_terminal_frame): Reuse the_only_display_info.
7218
7219 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7220 estimating available memory.
7221
7222 2008-08-23 David Reitter <david.reitter@gmail.com>
7223
7224 * nsterm.m (ns_draw_window_cursor): Don't call
7225 NSDisableScreenUpdates and NSEnableScreenUpdates on
7226 non-NS_IMPL_COCOA systems.
7227
7228 2008-08-23 Andreas Schwab <schwab@suse.de>
7229
7230 * process.c (procfs_system_process_attributes): Fix use of
7231 uninitialized variables.
7232
7233 2008-08-23 Eli Zaretskii <eliz@gnu.org>
7234
7235 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7236
7237 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7238 calling tty-set-up-initial-frame-faces.
7239
7240 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7241 Allow MSDOS frames along with X frames.
7242
7243 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7244 addition to output_termcap.
7245
7246 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7247
7248 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7249 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7250 highlight.
7251
7252 * process.c [!subprocesses]: Define QCname.
7253 (syms_of_process): Intern and staticpro it.
7254
7255 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
7256 Adjust for changes in encoding/decoding routines.
7257 Use encode_coding_object and decode_coding_object instead of
7258 encode_coding and decode_coding.
7259
7260 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
7261
7262 * dosfns.c: Include frame.h before termhooks.h.
7263 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7264 variable termscript.
7265
7266 * s/msdos.h (USER_FULL_NAME): Define.
7267 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7268
7269 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7270 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7271 pw->pw_gecos.
7272
7273 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7274 SELECTED_FRAME as additional (1st) argument.
7275 (tty_read_avail_input): Handle output_msdos_raw in
7276 addition to output_termcap.
7277
7278 * msdos.c: Include frame.h before termhooks.h.
7279 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7280 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7281 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7282 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7283 (IT_set_terminal_modes, IT_reset_terminal_modes)
7284 (IT_set_frame_parameters): Use tty->termscript instead of a global
7285 variable termscript.
7286 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7287 global variable terminal_coding. Don't refer to
7288 Vnonascii_translation_table.
7289 (internal_terminal_init): Set Vwindow_system in current_kboard.
7290 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7291 Announce date and time of session start, if termscript is open.
7292 Don't zero out the_only_display_info (it is done in
7293 term.c:init_tty). Open termscript only of not already open.
7294 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
7295 here instead of dos_ttraw. Don't initialize display if this is an
7296 initial tty. Don't set FRAME_FONT.
7297 (Vwindow_system_version): Bump to 23.
7298 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7299 is available, set up mouse_position_hook.
7300 (dos_ttraw, IT_set_terminal_modes): If called with initial
7301 terminal, do nothing.
7302 (IT_set_frame_parameters): Handle the Qtty_type frame
7303 parameter by calling internal_terminal_init.
7304 (dos_set_window_size, show_mouse_face)
7305 (clear_mouse_face, IT_note_mode_line_highlight)
7306 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7307 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7308 (initialize_msdos_display): New function.
7309 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7310 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7311 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7312 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
7313 Accept additional argument: a pointer to a frame. Update all callers.
7314 (request_sigio, unrequest_sigio): Don't define, now defined on
7315 sysdep.c.
7316 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7317
7318 * term.c [MSDOS]: Include msdos.h.
7319 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7320 conditional to DOS_NT. Allow only one call to this function in a
7321 session. Don't allocate a new struct tty_display_info; instead,
7322 reuse the_only_display_info. Call get_tty_size to get screen
7323 dimensions. Call init_baud_rate to set bad_rate.
7324 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7325 (Fsuspend_tty) [MSDOS]: Don't close input and output.
7326 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
7327 (get_tty_terminal, get_named_tty, Ftty_type)
7328 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7329 output_termcap.
7330 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7331 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
7332 only when subprocesses are supported.
7333
7334 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7335 f->output_data.x.
7336 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7337 terminal devices.
7338
7339 * msdos.h: Remove definition of struct x_display_info and struct
7340 x_output.
7341 (FRAME_FONT): Use output_data.tty.
7342 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
7343 (struct x_display_info): Rename from display_info. Update all users in
7344 msdos.c.
7345 (struct x_output): Remove background_pixel and foreground_pixel.
7346 (the_only_display_info): Rename from the_only_x_display.
7347 (dos_ttraw): Update prototype.
7348
7349 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7350 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7351
7352 2008-08-23 Jason Rumney <jasonr@gnu.org>
7353
7354 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7355 (fn_TIFFSetDirectory): New library function used.
7356 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7357 (tiff_load): Use :index to select among multiple images. Set count
7358 property when multiple images exist.
7359 (gif_format): Use :index, not :image.
7360
7361 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
7362
7363 * xdisp.c (try_scrolling): Check INT_MAX instead of
7364 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7365 to obtain INT_MAX.
7366
7367 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7368
7369 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7370
7371 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7372
7373 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7374 GNUstep library location.
7375
7376 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
7377
7378 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7379 before using it.
7380
7381 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7382
7383 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7384
7385 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7386 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7387 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7388 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7389 (EmacsApp-cursor_blink_handler): Remove declaration.
7390 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7391 match 01 Feb 2008 changes in xterm.c.
7392 (ns_read_socket): Add cast to avoid warning.
7393 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7394 GNUstep.
7395
7396 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
7397
7398 * xselect.c (x_get_foreign_selection): Return nil if desired
7399 selection could not be obtained, instead of signalling an error.
7400
7401 2008-08-20 David Reitter <david.reitter@gmail.com>
7402
7403 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7404 * nsterm.m: Remove ns-specific code for cursor blinking.
7405 (ns_draw_window_cursor): Clear cursor properly rather than
7406 redrawing the area. Respect width of bar cursors.
7407 These changes enable the use of generic blink-cursor-mode and
7408 generic cursor types in NS and support smooth cursor movements (do
7409 not blink off after command).
7410 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7411 Nextstep, too.
7412
7413 2008-08-19 Kenichi Handa <handa@m17n.org>
7414
7415 * font.c (Vfont_log_deferred): New variable.
7416 (font_add_log): Check Vfont_log_deferred.
7417 (font_deferred_log): New function.
7418
7419 * font.h (font_deferred_log): Extern it.
7420
7421 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7422 for sorting.
7423 (face_for_char): Use deferred log.
7424
7425 2008-08-18 Kenichi Handa <handa@m17n.org>
7426
7427 * fontset.c (face_for_char): Add font log.
7428
7429 * font.c (font_add_log): Add the font properties :script, :lang,
7430 and :otf in the log.
7431
7432 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
7433
7434 * xdisp.c: Remove dead code.
7435 (handle_invisible_prop, next_overlay_string): Defer call to
7436 setup_for_ellipsis.
7437 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7438
7439 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
7440
7441 * xfaces.c (lookup_derived_face): Properly handle possible zero
7442 return value of get_lface_attributes.
7443 (merge_faces): Don't tell lookup_derived_face to signal an error
7444 if face is not found.
7445
7446 * dired.c (Fdirectory_files): Doc fix.
7447
7448 * process.c (make_process): Initialize kill_without_query struct
7449 member.
7450
7451 2008-08-15 Eli Zaretskii <eliz@gnu.org>
7452
7453 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7454 Alternative calculation of totphys for Visual Studio 6.
7455
7456 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7457
7458 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7459 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7460 All users changed.
7461 (stat): Only root directory passed to GetDriveType. Allow RAM
7462 disk as well as local fixed disk when w32-get-true-file-attributes
7463 is set to `local'.
7464 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7465 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7466 (w32_cached_id, w32_add_to_cache): New functions.
7467 (get_name_and_id): Look account names in the cache before calling
7468 lookup_account_sid.
7469 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7470 New initialization flags.
7471 (globals_of_w32): Initialize them to zero.
7472 (w32_system_process_attributes): Use w32_cached_id and
7473 w32_add_to_cache.
7474
7475 2008-08-14 Lawrence Mitchell <wence@gmx.li>
7476
7477 * lread.c (Fread_char, Fread_char_exclusive): If no character
7478 event is read before timeout is reached, return nil, rather than
7479 converting to a number.
7480
7481 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
7482
7483 * fns.c (use_dialog_box): Doc fix.
7484
7485 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7486 on OS X.
7487
7488 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
7489
7490 * frame.c (Qns_parse_geometry): New var.
7491 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7492
7493 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
7494
7495 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7496 space character in calculating tabs.
7497
7498 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7499
7500 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7501
7502 2008-08-10 Glenn Morris <rgm@gnu.org>
7503
7504 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7505 silence gcc "limited range of data type" warnings in some
7506 make_fixnum_or_float calls.
7507
7508 2008-08-09 Eli Zaretskii <eliz@gnu.org>
7509
7510 * w32.c (w32_system_process_attributes): If the process does not
7511 exist, return nil.
7512
7513 * w32.c: Include thelp32.h, psapi.h and coding.h.
7514 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7515 declarations.
7516 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7517 (Process32Next_Proc): New typedefs.
7518 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7519 (g_b_init_process32_next, g_b_init_open_thread_token)
7520 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7521 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7522 (g_b_init_get_process_working_set_size)
7523 (g_b_init_global_memory_status_ex): New static variables.
7524 (globals_of_w32): Initialize them.
7525 (create_toolhelp32_snapshot, process32_first, process32_next)
7526 (open_thread_token, impersonate_self, revert_to_self)
7527 (get_process_memory_info, get_process_working_set_size)
7528 (global_memory_status, global_memory_status_ex): New wrapper
7529 functions.
7530 (w32_list_system_processes, w32_system_process_attributes)
7531 (enable_privilege, restore_privilege, ltime, process_times):
7532 New functions.
7533 (convert_time_raw): New function.
7534 (convert_time): Remove conversion of FILETIME into time in 100
7535 nsec units, call convert_time_raw instead.
7536
7537 * process.h (w32_list_system_processes, w32_system_process_attributes):
7538 Add prototypes.
7539 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7540 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7541 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7542 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7543
7544 * process.c (Fsystem_process_attributes): Doc fix.
7545
7546 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
7547
7548 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7549 a continued multi-char glyph; if so, advance to the actual glyph.
7550
7551 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7552
7553 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7554
7555 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7556 (.m.o): Use it.
7557 * config.in: Regenerate.
7558
7559 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
7560
7561 * xdisp.c (redisplay_window): Revert last change.
7562 (try_window): Check bottom scroll margin too.
7563
7564 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7565
7566 * config.in: Regenerate.
7567
7568 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7569 -list-load-path-shadows'.
7570 (nsgui.h): Reduce number of things depending on it.
7571
7572 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
7573
7574 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7575 instead of window-end which does the wrong thing at eob.
7576 (try_cursor_movement): Minor optimization.
7577 (redisplay_window): If scroll margin is defined, don't assume
7578 window doesn't need scrolling.
7579
7580 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7581
7582 * config.in: Regenerate.
7583
7584 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7585 (mostlyclean): Don't delete *.d under NS.
7586
7587 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7588
7589 2008-08-06 Kenichi Handa <handa@m17n.org>
7590
7591 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7592
7593 2008-08-06 Andreas Schwab <schwab@suse.de>
7594
7595 * config.in: Regenerate.
7596
7597 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
7598
7599 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7600 forcing a window start.
7601
7602 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7603 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7604
7605 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7606
7607 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7608 argument.
7609
7610 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
7611
7612 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7613 <scroll-down-aggressively, before-change-functions>:
7614 <after-change-functions>: Reflow docstrings.
7615
7616 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7617 Ken Raeburn <raeburn@gnu.org>
7618
7619 Dock menu customization, based on a patch by Ken Raeburn, plus some
7620 other fixes.
7621 * nsmenu.m (dockMenu): New variable.
7622 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7623
7624 * nsterm.h (dockMenu): Declare.
7625
7626 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7627 (ns_term_init): Initialize dockMenu.
7628 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7629 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7630 left.
7631
7632 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7633
7634 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7635
7636 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7637
7638 * config.in: Regenerate.
7639
7640 2008-08-04 Seiji Zenitani <zenitani@mac.com>
7641
7642 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7643
7644 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7645
7646 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7647
7648 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7649
7650 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7651
7652 * keyboard.h: Comment an #endif.
7653
7654 * lisp.h (have_menus_p): Adjust comment.
7655
7656 * menu.c (find_and_return_menu_selection): Fix comparison with
7657 client_data.
7658
7659 * nsmenu.m (popup_activated_flag): New variable.
7660 (popup_activated): New function.
7661 (menu-or-popup-active-p): New exported lisp definition.
7662 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7663 when popup done.
7664 (ns_popup_dialog): Set popup_activated_flag.
7665
7666 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7667 version for GNUstep (handled by conditional typedef in nsterm.m).
7668 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7669 in rgb.txt).
7670
7671 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7672
7673 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7674
7675 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7676
7677 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7678 shortcircuit if popup_activated like GTK and X toolkit.
7679
7680 * m/inter386.h: Change DARWIN to DARWIN_OS.
7681
7682 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7683 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7684 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7685 comment on NO_SOCK_SIGIO.
7686
7687 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
7688
7689 * nsterm.m (windowDidResize): Remove stopModal call.
7690
7691 2008-08-03 Andreas Schwab <schwab@suse.de>
7692
7693 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7694 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7695
7696 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
7697
7698 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7699 Don't use uninitialized pointer variable when using getrlimit.
7700
7701 2008-08-02 Jason Rumney <jasonr@gnu.org>
7702
7703 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7704
7705 2008-08-02 Eli Zaretskii <eliz@gnu.org>
7706
7707 * alloc.c (NSTATICS): Bump to 0x640.
7708
7709 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7710
7711 * lisp.h: Add prototype for directory_files_internal.
7712
7713 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7714 New functions.
7715 (syms_of_process): Defsubr them. Add initializations for various
7716 Q* symbols used in procfs_system_process_attributes.
7717 (procfs_list_system_processes, procfs_system_process_attributes)
7718 [HAVE_PROCFS]: New functions.
7719 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7720 (procfs_get_total_memory): New functions.
7721
7722 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7723
7724 * xfaces.c (Fx_load_color_file): Fix previous change;
7725 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7726
7727 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
7728
7729 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7730
7731 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7732
7733 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7734
7735 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
7736
7737 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7738
7739 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7740 define NSApplicationDelegateReplySuccess.
7741 (EmacsView -converstationIdentifier): Use long instead of
7742 NSInteger for GNUstep, since it doesn't have NSInteger.
7743
7744 * xmenu.c: Revert last change.
7745
7746 * keyboard.h: Fix last change.
7747
7748 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7749
7750 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7751 on Windows.
7752
7753 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7754
7755 Warning clearing and clean-up in NS port.
7756 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7757 Add prototypes.
7758 * nsgui.h (FACE_DEFAULT): Remove, unused.
7759 (XGCValues): Change colors to unsigned long.
7760 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7761 nsterm.m.
7762 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7763 (ns_list_fonts): Remove, unused.
7764 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7765 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7766 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7767 (nsfont_draw): Compare face colors to 0, not nil.
7768 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7769 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7770 (-addSubmenuWithTitle:): Use NSMenuItem class.
7771 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7772 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7773 (ns_clip_to_row): Make gc arg a BOOL.
7774 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7775 ns_clip_to_row() call.
7776 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7777 used). Cast FRAME_FONT assignments.
7778 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7779 (ns_string_to_lispmod): Change arg to const char.
7780 (ns_term_init): Use NSMenuItem class.
7781 (EmacsApp -openFile:): Move to different section of file.
7782 (EmacsApp -application:openFiles:): Don't return a value, call
7783 -replyToOpenOrPrint:.
7784 (EmacsView -keyDown:): Fix up cast.
7785 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7786 (EmacsView -menuDown:): Cast tag in call to
7787 find_and_call_menu_selection().
7788 (ns_list_fonts): Remove, unused.
7789 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7790 (ns_fontname_to_xlfd): Make static.
7791 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7792 Remove prototypes (now in keyboard.h).
7793 (next_menubar_widget_id): Remove, unused.
7794 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7795 Remove prototypes (now in keyboard.h).
7796 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7797
7798 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7799
7800 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7801 (floatfns.o): Depend on syssignal.h.
7802 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7803
7804 * systty.h: Fix previous change that removed BSD_TERMIOS.
7805 Add comments to #ifdefs.
7806
7807 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7808
7809 * w32fns.c (w32-load-color-file): Remove.
7810 (x-open-connection): Use renamed Fx_load_color_file.
7811 * xfaces.c (x-load-color-file): Add.
7812 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7813 Emacs.clr.
7814 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7815
7816 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
7817
7818 * dbusbind.c (Fdbus_call_method_asynchronously)
7819 (Fdbus_method_error_internal): New defuns.
7820 (xd_read_message): Handle also reply messages.
7821 (Vdbus_registered_functions_table): Extend docstring.
7822
7823 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
7824
7825 * keyboard.c (gobble_input): Fix previous change.
7826
7827 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7828
7829 * bitmaps/README:
7830 * xfns.c:
7831 * termcap.c:
7832 * term.c:
7833 * syswait.h:
7834 * systty.h:
7835 * systime.h:
7836 * syssignal.h:
7837 * sysdep.c:
7838 * process.h:
7839 * process.c:
7840 * print.c:
7841 * ndir.h:
7842 * lread.c:
7843 * keyboard.c:
7844 * getpagesize.h:
7845 * floatfns.c:
7846 * fileio.c:
7847 * emacs.c:
7848 * doc.c:
7849 * dispnew.c:
7850 * dired.c:
7851 * data.c:
7852 * callproc.c:
7853 * buffer.c:
7854 * README:
7855 * Makefile.in:
7856 * s/template.h:
7857 * s/msdos.h:
7858 * m/vax.h: Remove VMS support.
7859 * s/vms.h:
7860 * vlimit.h:
7861 * uaf.h:
7862 * temacs.opt:
7863 * param.h:
7864 * ioctl.h: Remove file.
7865
7866 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7867
7868 * s/ms-w32.h (MULTI_KBOARD): Remove.
7869 * xterm.c:
7870 * xselect.c:
7871 * xfns.c:
7872 * window.c:
7873 * w32term.c:
7874 * w32fns.c:
7875 * terminal.c:
7876 * termhooks.h:
7877 * term.c:
7878 * sysdep.c:
7879 * keyboard.h:
7880 * keyboard.c:
7881 * frame.h:
7882 * frame.c:
7883 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7884 * config.in: Regenerate.
7885
7886 2008-07-30 Jason Rumney <jasonr@gnu.org>
7887
7888 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7889
7890 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7891 (w32font_open_internal): Get unicode version of textmetrics.
7892 Don't enable or disable glyph indices here.
7893 (w32font_open): Disable use of glyph indices.
7894
7895 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7896
7897 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
7898
7899 * minibuf.c (Vread_buffer_function): Doc fix.
7900
7901 2008-07-30 John Paul Wallington <jpw@pobox.com>
7902
7903 * minibuf.c (read_buffer_completion_ignore_case): New var.
7904 (Fread_buffer): Use it.
7905
7906 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7907
7908 * systty.h (sensemode): Remove empty #if. Remove reference to
7909 BSD_TERMIOS, unused.
7910
7911 * sysdep.c: Remove reference to DGUX.
7912 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7913
7914 * config.in: Regenerate.
7915
7916 2008-07-30 Jason Rumney <jasonr@gnu.org>
7917
7918 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7919
7920 2008-07-29 Jason Rumney <jasonr@gnu.org>
7921
7922 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7923 is populated.
7924 (uniscribe_encode_char): Always use uniscribe.
7925 Avoid using context if cache is populated.
7926
7927 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7928
7929 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7930 open menu.
7931
7932 * gtkutil.c (menu_nav_ended): Remove.
7933 (create_menus): Remove signal connect for menu_nav_ended.
7934
7935 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
7936
7937 * xdisp.c (redisplay_window): Check return value of
7938 compute_window_start_on_continuation_line before forcing a window
7939 start.
7940
7941 2008-07-28 Jason Rumney <jasonr@gnu.org>
7942
7943 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7944
7945 * w32term.c (w32_enable_unicode_output, cleartype_active):
7946 Remove obsolete display options.
7947 (x_draw_glyph_string_background): Don't use old cleartype_active
7948 workaround.
7949 (w32_initialize): Remove cleartype_active initialization.
7950 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7951
7952 2008-07-28 Andreas Schwab <schwab@suse.de>
7953
7954 * lisp.h (init_weak_hash_tables, syms_of_font)
7955 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7956 (remove_hash_entry): Don't declare.
7957 * eval.c (maybe_call_debugger): Make static and move before use.
7958 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7959 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7960 * xterm.h (x_set_frame_alpha): Declare.
7961
7962 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7963
7964 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7965 (create_menus): Connect selection-done to menu_nav_ended.
7966
7967 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7968
7969 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7970 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7971 parameter with read of 'alpha' one.
7972 (Qns_frame_parameter): Remove.
7973 * nsselect.m (selection-coding-system)
7974 (next-selection-coding-system, Vselection_coding_system)
7975 (Vnext_selection_coding_system): Drop.
7976
7977 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7978
7979 * nsfns.m (do-applescript, do_applescript): Rename to
7980 ns-do-applescript, ns_do_applescript, and move within file.
7981
7982 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7983
7984 Remove support for Mac Carbon.
7985 * mactoolbox.c:
7986 * macterm.h:
7987 * macterm.c:
7988 * macselect.c:
7989 * macmenu.c:
7990 * macgui.h:
7991 * macfns.c:
7992 * mac.c: Remove file.
7993 * s/darwin.h:
7994 * m/intel386.h:
7995 * xfaces.c:
7996 * xdisp.c:
7997 * window.c:
7998 * tparam.c:
7999 * termhooks.h:
8000 * termcap.c:
8001 * term.c:
8002 * syssignal.h:
8003 * sysselect.h:
8004 * sysdep.c:
8005 * process.c:
8006 * lread.c:
8007 * lisp.h:
8008 * keyboard.c:
8009 * image.c:
8010 * fringe.c:
8011 * frame.h:
8012 * frame.c:
8013 * fontset.c:
8014 * font.h:
8015 * font.c:
8016 * fns.c:
8017 * fileio.c:
8018 * emacs.c:
8019 * dispnew.c:
8020 * dispextern.h:
8021 * config.in:
8022 * atimer.c:
8023 * Makefile.in: Remove code for Carbon.
8024
8025 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8026
8027 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8028
8029 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8030
8031 * macterm.h (kCGBitmapByteOrder32Host): New define for
8032 non-universal SDKs.
8033
8034 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8035 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8036
8037 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8038 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8039
8040 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8041
8042 * w32inevt.c: Include dispextern.h.
8043
8044 2008-07-26 Andreas Schwab <schwab@suse.de>
8045
8046 * print.c (print_object): Fix off-by-one in last change.
8047
8048 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
8049
8050 * term.c (syms_of_term): Don't initialize default_orig_pair,
8051 default_set_foreground and default_set_background on Windows.
8052
8053 2008-07-25 Jason Rumney <jasonr@gnu.org>
8054
8055 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8056 ScriptItemize. Clean up return value checking. Remove unused
8057 variables.
8058 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8059 shaping engine.
8060
8061 * w32font.c (w32font_has_char): Handle the case where we can't
8062 determine the script for a character.
8063
8064 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8065
8066 * term.c (syms_of_term): Initialize default_orig_pair,
8067 default_set_foreground, and default_set_background.
8068
8069 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8070 clash (bug#86).
8071 (getloadavg): Callers changed.
8072
8073 * image.c (svg_load_image): Fix last change.
8074 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8075 image size is valid. Use g_object_unref instead of deprecated
8076 rsvg_handle_free to free rsvg handle.
8077 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8078
8079 2008-07-25 Jason Rumney <jasonr@gnu.org>
8080
8081 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8082 surrogates before looking up glyph index.
8083 (w32font_text_extents): Encode as surrogates if falling back to
8084 functions that need UTF-16 wide chars.
8085
8086 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8087 BMP as surrogates before looking up glyph index.
8088
8089 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8090
8091 * image.c (svg_load_image): Check for failure in return value of
8092 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8093
8094 2008-07-25 Jason Rumney <jasonr@gnu.org>
8095
8096 * w32font.c (Fx_select_font): Reverse sense of second arg.
8097
8098 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8099
8100 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8101 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8102
8103 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8104 (PURESIZE): Use it.
8105
8106 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8107
8108 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8109 * m/alpha.h (TEXT_END):
8110 * m/ibmrs6000.h (TEXT_END):
8111 * m/macppc.h (TEXT_END):
8112 * s/darwin.h (TEXT_END):
8113 * s/msdos.h (TEXT_END): Remove, unused.
8114 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8115 * s/cygwin.h: Remove comment.
8116
8117 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8118 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8119 * m/intel386.h (DOT_GLOBAL_START):
8120 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8121 (USG): Remove, file not used on USG platforms.
8122
8123 * Makefile.in (HAVE_X11): Remove empty #else.
8124
8125 2008-07-24 Andreas Schwab <schwab@suse.de>
8126
8127 * fileio.c (Finsert_file_contents): Properly adjust undo list
8128 after format conversion.
8129
8130 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8131
8132 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8133 (menu_nav_ended): Remove.
8134 (create_menus): Remove signal connect for menu_nav_ended.
8135 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8136 create_menus.
8137 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8138
8139 2008-07-23 Jason Rumney <jasonr@gnu.org>
8140
8141 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8142 with opened font.
8143 (w32font_open): Set font type to gdi.
8144
8145 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8146
8147 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8148
8149 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8150 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8151 defines it.
8152 * unexec.c (ADDR_CORRECT): Define unconditionally.
8153
8154 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8155
8156 * unexec.c: Remove code depending on !COFF and USG, the file is
8157 not used for such systems.
8158
8159 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8160 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8161 (LD_SWITCH_SYSTEM_1): Remove, update users.
8162
8163 * s/darwin.h (DATA_END):
8164 * m/intel386.h (DATA_END):
8165 * m/ibmrs6000.h (DATA_END):
8166 * m/alpha.h (DATA_END): Remove, unused.
8167
8168 * config.in: Regenerate.
8169 * s/ms-w32.h (subprocesses): Define unconditionally.
8170 * s/template.h (subprocesses): Update comment.
8171 * s/vms.h (subprocesses):
8172 * s/usg5-4.h (subprocesses):
8173 * s/hpux10-20.h (subprocesses):
8174 * s/gnu-linux.h (subprocesses):
8175 * s/cygwin.h (subprocesses):
8176 * s/bsd-common.h (subprocesses):
8177 * s/aix4-2.h (subprocesses):
8178 * s/darwin.h (subprocesses): Do not define, defined by default now.
8179
8180 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8181 Remove all references.
8182 (temacs): Add GNUstep specific ld flags.
8183
8184 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8185 similarly to what X does.
8186
8187 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8188
8189 * nsfns.m (x-list-fonts): Remove.
8190 (syms_of_nsfns): Drop the x-list-fonts declaration.
8191 * nsterm.m: Get rid of remaining "//" comments.
8192
8193 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
8194
8195 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8196
8197 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8198 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8199 (Fns_own_selection_internal, Fx_disown_selection_internal)
8200 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8201
8202 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8203 ... */' style of docstrings. Doc fixes.
8204
8205 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8206
8207 * terminfo.c (UP, BC, PC): Undo previous change.
8208
8209 * nsfns.m: Rename ns prefixed functions/variables to the
8210 corresponding x versions. Update references.
8211
8212 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8213
8214 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8215
8216 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8217
8218 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8219 Remove forwarding functions.
8220 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8221 non-static.
8222 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8223 non-static.
8224 (ns_frame_parm_handlers): Use the new names.
8225 (syms_of_nsfns): Move to the end of file.
8226
8227 * nsterm.m (syms_of_nsterm): Move to the end of file.
8228
8229 * dispnew.c (init_display): Remove code for X10.
8230
8231 2008-07-22 Jason Rumney <jasonr@gnu.org>
8232
8233 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8234 bare drive.
8235
8236 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8237
8238 * nsterm.m (syms_of_nsterm): Remove debugging println.
8239
8240 2008-07-22 David Reitter <david.reitter@gmail.com>
8241
8242 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8243 Carbon implementation of the same functionality: execute arbitrary
8244 AppleScript code.
8245
8246 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8247
8248 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8249 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8250 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8251 (Fx_display_mm_height, Fx_display_mm_width)
8252 (Fx_display_backing_store, Fx_display_visual_class)
8253 (Fx_display_save_under, Fx_open_connection)
8254 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8255 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8256 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8257 (Fx_display_pixel_width, Fx_display_pixel_height)
8258 (Fx_display_usable_bounds, Fx_display_planes)
8259 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8260 ... */' style of docstrings.
8261
8262 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8263
8264 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8265 on this platform.
8266 (mips):
8267 * m/iris4d.h (mips): Do not define.
8268 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8269
8270 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8271
8272 * image.c:
8273 * nsfns.m:
8274 * nsselect.m:
8275 * nsterm.h:
8276 * nsterm.m: Rename ns prefixed functions/variables to the
8277 corresponding x versions. Update references.
8278
8279 * m/ibms390x.h (NO_REMAP): Do not undefine.
8280
8281 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8282
8283 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
8284
8285 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8286 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8287 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8288 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8289 (Fns_display_mm_height, Fns_display_mm_width)
8290 (Fns_display_backing_store, Fns_display_visual_class)
8291 (Fns_display_save_under, Fns_open_connection)
8292 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8293 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8294 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8295 (Fns_display_pixel_width, Fns_display_pixel_height)
8296 (Fns_display_usable_bounds, Fx_display_planes)
8297 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8298
8299 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8300
8301 * print.c (print_object): Check print_depth before searching for
8302 circularities.
8303
8304 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
8305
8306 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8307 only sprintf.
8308
8309 2008-07-21 Kenichi Handa <handa@m17n.org>
8310
8311 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8312
8313 2008-07-20 Andreas Schwab <schwab@suse.de>
8314
8315 * syntax.c (find_start_pos, find_start_value)
8316 (find_start_value_byte, find_start_begv, find_defun_start)
8317 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8318
8319 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8320
8321 * s/sol2-3.h: Insert contents of s/sol2.h.
8322 (LD_SWITCH_SYSTEM): Remove redundant definition.
8323 * s/sol2.h: Remove, unused.
8324
8325 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8326
8327 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8328
8329 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8330
8331 * Makefile.in (ns_appdir): Fix typo in find command.
8332
8333 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8334
8335 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8336
8337 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8338 added not supported anymore.
8339
8340 * s/usg5-4-2.h (LIBS_SYSTEM):
8341 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8342
8343 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8344 * s/lynxos.h (GETPGRP_NO_ARG):
8345 * s/hpux10-20.h (NO_SIOCTL_H):
8346 * s/gnu.h (GETPGRP_NO_ARG):
8347 * s/gnu-linux.h (NO_SIOCTL_H):
8348 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8349 * s/cygwin.h (GETPGRP_NO_ARG):
8350 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8351 (C_DEBUG_SWITCH): Remove duplicate definition.
8352
8353 * m/ibms390.h: Remove boilerplate comments.
8354
8355 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8356
8357 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8358 (wait_reading_process_output): Remove code for SunOS, platform not
8359 supported anymore. Use SOLARIS2 instead of sun.
8360
8361 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8362
8363 * font.c (font_open_by_name): Under NS, default lface height to zero.
8364 (font_open_for_lface): Under NS, set size based on frame fontsize.
8365 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8366 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8367
8368 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8369
8370 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8371 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8372 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8373 YES/NO.
8374 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8375 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8376 * Makefile.in (clean): Clear out build destination dir.
8377
8378 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8379
8380 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8381 xterm, xselect.
8382 * lisp.h: Remove declaration of hash_remove.
8383 * nsgui.h: Remove redefinitions of hash_remove.
8384 * fns.c (hash_remove): Rename to hash_remove_from_table.
8385
8386 2008-07-19 Seiji Zenitani <zenitani@mac.com>
8387
8388 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8389 strdup() the family UTF8String before modifying it.
8390
8391 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8392
8393 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8394 NS_FACE_BACKGROUND with 0 instead of nil.
8395 * nsfont.m (nsfont_draw): Same.
8396
8397 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
8398
8399 * nsfns.m (ns_set_background_color): Fix crash.
8400
8401 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
8402
8403 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8404
8405 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8406
8407 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8408
8409 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8410
8411 * gtkutil.c: Include <config.h> instead of "config.h".
8412
8413 * lisp.h (Foverlay_buffer): Add EXFUN.
8414
8415 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8416 child process to complete child_setup. Undo 2005-09-21 change.
8417
8418 * s/darwin.h: Mention setsid after vfork.
8419
8420 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8421
8422 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8423 Depend on macgui.h.
8424
8425 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8426 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8427
8428 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8429 and f19.
8430 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8431
8432 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8433 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8434 Remove enumerators.
8435
8436 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8437 Check if FACE_FROM_ID returns NULL.
8438
8439 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8440
8441 * w32inevt.c (change_frame_size): Remove extern declaration.
8442 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8443 change_frame_size.
8444
8445 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8446
8447 * getloadavg.c: Revert last change (2008-07-15).
8448
8449 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8450
8451 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
8452 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
8453 from configure.
8454
8455 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8456
8457 * s/sol2.h:
8458 * s/sol2-4.h: Reorganize conditionals.
8459
8460 * ecrt0.c: Remove code depending on m68000, not used anymore.
8461
8462 * fns.c (hash_remove): Make static.
8463 * lisp.h (hash_remove): Don't prototype.
8464
8465 * m/ibmrs6000.h:
8466 * m/ibms390x.h:
8467 * m/macppc.h: Remove boilerplate comments.
8468
8469 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8470 Solaris, which does not need them.
8471
8472 * m/vax.h: Remove comments about unsupported systems.
8473
8474 * s/darwin.h: Reorganize ifdefs.
8475
8476 2008-07-17 Andreas Schwab <schwab@suse.de>
8477
8478 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8479
8480 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8481
8482 Use SDATA. Follow coding convention of placing operators at
8483 beginning of next line rather than end of previous line, and placing
8484 spaces around infix operators.
8485
8486 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8487 in case it was defined already.
8488 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8489 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8490 ns_default.
8491 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8492 Lisp_Objects.
8493 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8494 (ns_defined_color, ns_color_to_lisp): Declare.
8495 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8496 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8497 it's accepted even with USE_LISP_UNION_TYPE.
8498 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8499 (update_frame_tool_bar): Remove apparently obsolete tests for
8500 non-integerness of f->tool_bar_lines.
8501 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8502 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8503 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8504 (nsfont_open): Don't confuse NULL for Qnil.
8505 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8506 * menu.h (find_and_call_menu_selection):
8507 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8508 (find_and_return_menu_selection): Always return something.
8509 * frame.h: Include dispextern.h for Display_Info.
8510 (display_x_get_resource): Declare.
8511
8512 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8513
8514 * syntax.c: Remove stdio.h include accidentally introduced in
8515 Emacs.app commit.
8516 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8517 NS_IMPL_COCOA.
8518 * keyboard.c (handle_async_input, input_available_signal): Remove
8519 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8520
8521 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8522
8523 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8524 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8525 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8526 Use SDATA.
8527
8528 * keymap.c: Remove all NS-specific code.
8529 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8530 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8531 where_is_preferred_modifier, return a different value depending on how
8532 preferred is the binding.
8533 (where_is_internal): Adjust accordingly.
8534 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8535 Adjust to new preferred_sequence_p.
8536 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8537 * keyboard.c (parse_solitary_modifier): Not static any more.
8538 * keyboard.h (parse_solitary_modifier): Declare.
8539
8540 2008-07-16 Andreas Schwab <schwab@suse.de>
8541
8542 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8543 of easymenu.
8544
8545 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
8546
8547 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8548 that we don't move off the line.
8549
8550 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8551
8552 * keyboard.c (Qsuper): Remove.
8553 (parse_menu_item): Don't call where_is_internal specially for NS.
8554
8555 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8556
8557 * s/gnu-linux.h: Remove boilerplate comments.
8558
8559 * m/alpha.h (__ELF__): Consolidate conditions.
8560
8561 * m/m68k.h (linux): Use GNU_LINUX instead.
8562 Remove boilerplate comments.
8563
8564 * m/intel386.h: Undo refactoring from previous change.
8565 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8566 too, remove dead code.
8567 (linux): Use GNU_LINUX instead.
8568
8569 2008-07-16 Jason Rumney <jasonr@gnu.org>
8570
8571 * w32gui.h: Repeat 26 June changes lost by last change.
8572
8573 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8574
8575 * systty.h: Remove code for Aix on 386, unsupported platform.
8576
8577 * s/ms-w32.h: Remove boilerplate comments.
8578 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8579
8580 * s/gnu-linux.h (TERM): Remove support.
8581 (HAVE_SYSVIPC): Remove, unused.
8582 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8583 for this system.
8584
8585 * process.c: Remove support for IRIS, unused.
8586 Remove support for TERM, not relevant anymore.
8587
8588 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8589 used with the definition.
8590
8591 * s/aix4-2.h (static): Do not undef.
8592
8593 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8594 only used on Aix.
8595 (HAVE_SYSVIPC): Remove, unused.
8596
8597 * m/hp800.h (CANNOT_DUMP): Do not undef.
8598
8599 * m/alpha.h: Fix comment.
8600
8601 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8602 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8603 used by this configuration.
8604 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8605 * unexec.c: Remove code depending on HPUX and
8606 USG_SHARED_LIBRARIES, not used with this file. Remove code
8607 depending on IRIS, unused. Remove if 0-ed code.
8608
8609 * s/template.h: Remove comments about static.
8610
8611 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8612 Remove if 0-ed code.
8613 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8614 were the same as the default.
8615 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8616 Remove boilerplate comments.
8617 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8618 (HAVE_SYSVIPC): Remove, unused.
8619 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8620
8621 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8622 Remove boilerplate comments.
8623 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8624 Remove boilerplate comments.
8625 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8626 Remove boilerplate comments.
8627 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8628
8629 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8630 USG systems which do not use DATA_SEG_BITS.
8631 Refactor code. Remove boilerplate comments.
8632
8633 * m/ibms390.h:
8634 * m/m68k.h:
8635 * s/bsd-common.h:
8636 * s/cygwin.h:
8637 * s/darwin.h:
8638 * s/freebsd.h:
8639 * s/gnu.h:
8640 * s/msdos.h: Remove boilerplate comments.
8641
8642 * m/iris4d.h: Remove boilerplate comments and code for systems that
8643 do not use this file.
8644 (IRIS_4D): Remove, unused.
8645
8646 * m/mips.h: Remove boilerplate comments and code for systems that
8647 do not use this file.
8648 (SIGN_EXTEND_CHAR):
8649 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8650 * unexmips.c: Remove file, unused.
8651
8652 * editfns.c (Fuser_full_name): Replace the only use of
8653 USER_FULL_NAME with its value.
8654 * config.in: Regenerate.
8655
8656 2008-07-16 David Reitter <david.reitter@gmail.com>
8657
8658 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8659 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8660
8661 2008-07-16 Glenn Morris <rgm@gnu.org>
8662
8663 * emacs.c (system-type): Doc fix.
8664
8665 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8666
8667 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8668 If the cache doesn't work, let's fix it, rather than work around it.
8669
8670 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8671
8672 * Makefile.in: Correct additions for nsfont.o in last commit.
8673 * nsfont.m: New file (forgot last commit).
8674
8675 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8676
8677 * callproc.c (set_initial_environment): Initialize
8678 Vprocess_environment under CANNOT_DUMP (fixes crash when
8679 batch-compiling for bootstrap).
8680
8681 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8682 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8683
8684 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8685 fix crash due to different init order.
8686
8687 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8688
8689 Changes and additions for NeXTstep windowing system (Cocoa and
8690 GNUstep) support.
8691
8692 * Makefile.in:
8693 * config.in: Support defines and build commands for NS port.
8694 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8695 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8696 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8697 windowing.
8698 (struct face): Add synth_ital field.
8699 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8700 (init_display): Initialize Vinitial_window_system to "ns" when so
8701 compiled.
8702 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8703 (display_arg): Use under NS.
8704 (main): Under NS, allocate autorelease pool and handle command line
8705 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8706 (standard_args): Add NS-specific args.
8707 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8708 * font.c (DEFAULT_ENCODING): New variable.
8709 (font_find_for_lface): Use it.
8710 (syms_of_font): Load syms_of_nsfont under NS.
8711 * font.h: Declare nsfont_driver when compiled under NS.
8712 * fontset.c: When compiling under NS, include nsterm.h.
8713 (fontset_from_font): Autoconstruct fontset under NS.
8714 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8715 symbol, document and use it.
8716 (do_switch_frame): When for_deletion under Cocoa, add
8717 Fraise_frame(Qnil).
8718 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8719 (x_get_arg): Allow "yes" and "no" as boolean values.
8720 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8721 Qright under Cocoa.
8722 (focus-follows-mouse): Default to 0 under NS.
8723 * frame.h (enum output_method): Add output_ns.
8724 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8725 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8726 (FRAME_WINDOW_P): NS-specific definition.
8727 * fringe.c (max_used_fringe_bitmap): Make public.
8728 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8729 (getloadavg): Use NeXT code under descendant OS's.
8730 * image.c (includes and header section, x_create_bitmap_from_data)
8731 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8732 (image_background_transparent, x_clear_image_1)
8733 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8734 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8735 (x_to_xcolors, x_from_xcolors, x_disable_image)
8736 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8737 other GUIs, including XPM support using code originally written for
8738 Carbon GUI.
8739 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8740 using NS API.
8741 (image_ascent): Use font metrics macros instead of direct struct field
8742 access.
8743 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8744 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8745 Also, handle NS as GTK for menu bar purposes.
8746 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8747 toolkit where they differ.
8748 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8749 use cachelist, still needed under NS.
8750 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8751 (struct widget_value): Define it here for menu.c.
8752 * keymap.c (includes): Include modifier internals.
8753 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8754 NS.
8755 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8756 support for preferring sequences using certain modifiers, specified by
8757 the FIRSTONLY argument.
8758 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8759 under NS GNUstep implementation.
8760 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8761 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8762 * menu.c: Include nsterm.h under NS.
8763 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8764 (free_menubar_widget_tree_value, update_submenu_strings)
8765 (find_and_call_menu_selection): Treat NS as X and NT.
8766 (find_and_return_menu_selection): New function, used for popup menus.
8767 * nsgui.h:
8768 * nsterm.h:
8769 * nsfns.m:
8770 * nsimage.m:
8771 * nsmenu.m:
8772 * nsselect.m:
8773 * nsterm.m: New files.
8774 * process.c (wait_reading_process_output): Under NS, call ns_select()
8775 instead of plain select().
8776 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8777 beginning of buffer.
8778 * sysselect.h (init_process): Rename when compiling under Cocoa to
8779 avoid name conflict.
8780 * termhooks.h (display_info): Add ns_display_info to union.
8781 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8782 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8783 COCOA environment.
8784 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8785 unexec() signature. (Note, this will dump, but the resulting file
8786 crashes; unexosx is used instead; keeping around for reference and
8787 possible aid in getting dump working under GNUstep.)
8788 * w32gui.h (button_type, widget_value): Remove definitions (now in
8789 keyboard.h).
8790 * window.c: Include nsterm.h when compiling under NS.
8791 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8792 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8793 other GUI windowing systems.
8794 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8795 GTK.
8796 (x_consider_frame_title): Under NS, set icon type and frame
8797 modified-state indicator; use ns_set_name_as_filename() when using
8798 formatted title.
8799 (update_window_cursor): Make public when compiling under NS.
8800 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8801 (hourglass_atimer, Vhourglass_delay
8802 * xfaces.c (header section, init_frame_faces, clear_font_table)
8803 (defined_color, unload_color, x_face_list_fonts)
8804 (prepare_face_for_display): Add NS support parallel to other GUIs.
8805 Emulate GCs like other non-X GUIs.
8806 (split_font_name): Don't lowercase font name under NS.
8807 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8808 under NS.
8809 * s/darwin.h: Add support for compilation under NS.
8810
8811 2008-07-15 Jason Rumney <jasonr@gnu.org>
8812
8813 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8814 (w32_show_hourglass): Rename from show_hourglass.
8815 (w32_hide_hourglass): Rename from hide_hourglass.
8816 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8817 (Vhourglass_delay): Declare extern.
8818 (hourglass_started): Remove.
8819
8820 * xdisp.c (Vhourglass_delay): Remove static.
8821 (hourglass_started, start_hourglass, cancel_hourglass):
8822 Don't include these versions on WINDOWSNT.
8823
8824 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8825
8826 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8827 variables (formerly in xfns.c).
8828 (show_hourglass, hide_hourglass): New prototypes (same).
8829 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8830 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8831 in xfns.c).
8832 (syms_of_xdisp): Declare/initialize display-hourglass,
8833 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8834 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8835 formerly in xfns.c.
8836 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8837 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8838 (start_hourglass, cancel_hourglass): Remove.
8839 (show_hourglass, hide_hourglass): Remove prototypes and static
8840 modifiers.
8841 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8842 hourglass_atimer, hourglass_shown_p declaration/initialization.
8843 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8844 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8845 (start_hourglass, cancel_hourglass): Remove.
8846 (show_hourglass, hide_hourglass): Remove prototypes and static
8847 modifiers.
8848 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8849 hourglass_atimer, hourglass_shown_p declaration/initialization.
8850 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8851 (DEFAULT_HOURGLASS_DELAY): Remove.
8852 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8853 hourglass_shown_p declaration/initialization.
8854
8855 2008-07-14 Jason Rumney <jasonr@gnu.org>
8856
8857 * w32fns.c (w32_get_arg): Remove wrapper function.
8858 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8859 directly.
8860 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8861
8862 2008-07-14 Kenichi Handa <handa@m17n.org>
8863
8864 * xfont.c (xfont_open): Add workaround for X's bug.
8865
8866 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8867
8868 * fontset.c: Include <stdio.h> unconditionally.
8869
8870 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
8871
8872 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8873 for filtering.
8874
8875 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8876
8877 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8878
8879 * m/macppc.h:
8880 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8881
8882 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8883 (SPECIAL_EMACS_INT):
8884 * m/ia64.h (SPECIAL_EMACS_INT):
8885 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8886 * s/gnu.h (NLIST_STRUCT):
8887 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8888 * s/gnu-linux.h (LINUX):
8889 * s/msdos.h (HAVE_FACES):
8890 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8891
8892 * systty.h:
8893 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8894 anymore.
8895
8896 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8897
8898 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8899 always defined as int.
8900
8901 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8902 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8903 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8904 * s/freebsd.h (HAVE_WAIT_HEADER):
8905 * s/bsd-common.h (HAVE_UNION_WAIT):
8906 * s/aix4-2.h (HAVE_WAIT_HEADER):
8907 * m/mips.h (HAVE_UNION_WAIT):
8908 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8909 (COFF, static): Do not define, they are undefined later in the file.
8910
8911 * process.c (update_status): Don't use a union.
8912 (status_convert):
8913 (sigchld_handler): Use int instead of WAITTYPE.
8914
8915 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
8916
8917 * indent.c (Fvertical_motion): Restore hscroll before moving to
8918 goal column.
8919
8920 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8921
8922 * lisp.h: Remove left over code.
8923
8924 2008-07-11 Andreas Schwab <schwab@suse.de>
8925
8926 * lisp.h: Fix logic in last change.
8927
8928 * menu.h: New file.
8929 * menu.c: Include it.
8930 * xmenu.c: Likewise.
8931 * Makefile.in: Update dependencies.
8932
8933 2008-07-11 Kenichi Handa <handa@m17n.org>
8934
8935 * fontset.c (fontset_from_font): Cancel the previous change.
8936
8937 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8938
8939 * lisp.h:
8940 * w32heap.c:
8941 * emacs.c:
8942 * alloc.c: Replace all references of NO_UNION_TYPE with
8943 USE_LISP_UNION_TYPE.
8944
8945 * m/xtensa.h (NO_UNION_TYPE):
8946 * m/vax.h (NO_UNION_TYPE):
8947 * m/template.h (NO_UNION_TYPE):
8948 * m/sparc.h (NO_UNION_TYPE):
8949 * m/mips.h (NO_UNION_TYPE):
8950 * m/macppc.h (NO_UNION_TYPE):
8951 * m/m68k.h (NO_UNION_TYPE):
8952 * m/iris4d.h (NO_UNION_TYPE):
8953 * m/intel386.h (NO_UNION_TYPE):
8954 * m/ibms390x.h (NO_UNION_TYPE):
8955 * m/ibms390.h (NO_UNION_TYPE):
8956 * m/ibmrs6000.h (NO_UNION_TYPE):
8957 * m/ia64.h (NO_UNION_TYPE):
8958 * m/hp800.h (NO_UNION_TYPE):
8959 * m/arm.h (NO_UNION_TYPE):
8960 * m/amdx86-64.h (NO_UNION_TYPE):
8961 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8962 defining it the same.
8963
8964 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
8965
8966 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8967
8968 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8969
8970 * fileio.c:
8971 * sysdep.c
8972 * systty.h:
8973 * m/ibmrs6000.h:
8974 * m/iris4d.h:
8975 * s/aix4-2.h:
8976 * s/freebsd.h:
8977 * s/gnu-linux.h:
8978 * s/hpux10-20.h:
8979 * s/hpux11.h:
8980 * s/netbsd.h:
8981 * s/sol2-3.h:
8982 * s/sol2-4.h:
8983 * s/sol2.h:
8984 * s/usg5-4.h:
8985 * s/vms.h: Remove references to unused variables.
8986
8987 2008-07-10 Andreas Schwab <schwab@suse.de>
8988
8989 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8990 pattern before matching the generic family.
8991
8992 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8993
8994 * unexec.c:
8995 * s/vms.h:
8996 * s/usg5-4-2.h:
8997 * s/sol2-5.h:
8998 * s/freebsd.h:
8999 * s/darwin.h: Remove dead code.
9000
9001 * m/template.h:
9002 * m/sparc.h:
9003 * m/mips.h:
9004 * m/m68k.h:
9005 * m/iris4d.h:
9006 * m/intel386.h:
9007 * m/ibms390x.h:
9008 * m/ibms390.h:
9009 * m/ia64.h:
9010 * m/hp800.h:
9011 * m/arm.h:
9012 * m/amdx86-64.h: Remove dead code and references to unused
9013 and compiler defined symbols.
9014
9015 * unexmips.c:
9016 * unexelf.c: Remove references to desupported systems.
9017
9018 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9019
9020 * m/powermac.h: Remove boilerplate comments.
9021 (NO_REMAP): Remove unused definition.
9022
9023 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9024 define them.
9025
9026 2008-07-10 Kenichi Handa <handa@m17n.org>
9027
9028 * xfont.c (xfont_open): Log the reason of failure.
9029
9030 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9031
9032 * fontset.c (fontset_get_font_group):
9033 * font.c (font_check_otf): Specify argument types.
9034
9035 2008-07-09 Kenichi Handa <handa@m17n.org>
9036
9037 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9038 non-ASCII char is found.
9039
9040 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9041 (reorder_font_vector): Change the arg preferred_family to font.
9042 Prefer the spec matching with font.
9043 (fontset_get_font_group): New function.
9044 (fontset_find_font): Change the format of an element of a realized
9045 fontset. Use fontset_get_font_group.
9046 (fontset_font): Try the current fontset, the default fontset, the
9047 fallbacks of the current fontset, and the fallbacks of the default
9048 fontset in this order.
9049 (face_for_char): Delete the shortcut to use the current font.
9050 (fontset_from_font): Don't set fonts for Latin in the fontset.
9051
9052 * font.h (font_make_object, font_match_p): Adjust prototypes.
9053
9054 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9055
9056 * font.c (font_make_object): New arg entity and pixelsize.
9057 (font_check_otf_features, font_check_otf): New functions.
9058 (font_match_p): Check :lang, :script, and :otf properties.
9059
9060 * xfont.c (xfont_open): Adjust it for the change of
9061 font_make_object.
9062 (xfont_text_extents): Fix initial setting of metrics.
9063
9064 * ftfont.c (struct ftfont_info): New member index, delete member
9065 fc_charset_idx. Make the member order compatible with struct
9066 xftfont_info.
9067 (fc_charset_table): Change charset names to registry names.
9068 (ftfont_pattern_entity): Delete the args registry and
9069 fc_charset_idx. Change the value of :font-entity property
9070 to (FONTNAME . INDEX). Always set :registry property to
9071 `iso10646-1'.
9072 (struct ftfont_cache_data): New struct.
9073 (ftfont_lookup_cache): New arg for_face.
9074 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9075 (ftfont_driver): Set the member otf_capability.
9076 (ftfont_get_charset): Adjust it for the change of
9077 fc_charset_table.
9078 (OTF_TAG_SYM): New macro.
9079 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9080 for the change of fc_charset_table.
9081 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9082 ftfont_pattern_entity. Add FC_INDEX to objset.
9083 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9084 and ftfont_pattern_entity.
9085 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9086 font_make_object, struct ftfont_info.
9087 (ftfont_has_char): Use ftfont_get_fc_charset.
9088 (ftfont_otf_features, ftfont_otf_capability): New functions.
9089 (ftfont_shape): Use ftfont_get_otf.
9090 (ftfont_text_extents): Fix initial setting of metrics.
9091
9092 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9093 member order compatible with struct ftfont_info.
9094 (xftfont_open): Add FC_CHARSET to the pattern. Set
9095 xftfont_info->ft_size. Don't unlock the face. Check BDF
9096 properties if appropriate.
9097 (xftfont_close): Unlock the face.
9098 (xftfont_anchor_point, xftfont_shape): Deleted.
9099 (syms_of_xftfont): Don't set members anchor_point and shape of
9100 xftfont_driver.
9101
9102 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9103 font_make_object.
9104
9105 * w32font.c (w32font_open): Adjust it for the change of
9106 font_make_object.
9107 (w32font_open_internal): Don't set properties of font_object here.
9108
9109 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
9110
9111 * macfns.c (x_create_tip_frame):
9112 * w32fns.c (x_create_tip_frame):
9113 * xfns.c (x_create_tip_frame): Pass parameter argument to
9114 face-set-after-frame-default.
9115
9116 * xfaces.c (Finternal_merge_in_global_face): Save merged
9117 attributes for the default face back into the face vector.
9118
9119 2008-07-08 Andreas Schwab <schwab@suse.de>
9120
9121 * fontset.h: Declare fontset_from_font. Don't declare
9122 new_fontset_from_font and fontset_from_font_name.
9123 * xterm.c: Include "fontset.h".
9124 * Makefile.in (xterm.o): Update dependencies.
9125
9126 2008-07-08 Glenn Morris <rgm@gnu.org>
9127
9128 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9129 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9130
9131 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
9132
9133 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9134 (x_set_frame_parameters): Don't bind it.
9135
9136 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
9137
9138 * w32fns.c (map_w32_filename): Declare extern.
9139
9140 2008-07-07 Jason Rumney <jasonr@gnu.org>
9141
9142 * w32term.c (WS_EX_LAYERED): Define if not already.
9143
9144 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
9145
9146 * xfaces.c (set_font_frame_param): Don't try to set the font
9147 parameter if it is still unspecified in the lface.
9148
9149 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9150
9151 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9152 face if it didn't already exist.
9153
9154 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9155
9156 2008-07-05 Andreas Schwab <schwab@suse.de>
9157
9158 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9159
9160 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9161
9162 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9163 word-wrapping.
9164 (IT_DISPLAYING_WHITESPACE): New macro.
9165 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9166 when word-wrapping. Simplify word-wrapping logic. Use correct
9167 pixel positions when saving copies of the iterator.
9168 (display_line): Use proper wrap point if the last character on a
9169 line was preceded by whitespace.
9170
9171 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9172
9173 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9174
9175 2008-07-04 Kenichi Handa <handa@m17n.org>
9176
9177 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9178
9179 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9180
9181 2008-07-02 Jason Rumney <jasonr@gnu.org>
9182
9183 * xfns.c (syms_of_xfns): Only define x-select-font when both
9184 HAVE_FREETYPE and USE_GTK.
9185
9186 * xdisp.c (next_element_from_display_vector): Move assignment out
9187 of if statement.
9188
9189 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9190
9191 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9192
9193 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9194 (syms_of_fileio): Initialize and export them.
9195 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9196
9197 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9198 (Fsystem_move_file_to_trash): New function.
9199 (syms_of_w32fns): Export it to lisp.
9200
9201 2008-07-01 Jason Rumney <jasonr@gnu.org>
9202
9203 * w32font.c (w32font_text_extents): Don't count overhang as part
9204 of width.
9205
9206 2008-06-30 Miles Bader <miles@gnu.org>
9207
9208 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9209 Add `avoid_cursor_p' field.
9210
9211 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9212 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9213 (append_glyph, append_composite_glyph, produce_image_glyph)
9214 (append_stretch_glyph): Initialize avoid_cursor_p.
9215 (get_it_property): Rename from `get_line_height_property'.
9216 (x_produce_glyphs): Use get_it_property.
9217 (handle_line_prefix, push_display_prop): New functions.
9218 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9219 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9220 New variables.
9221 (syms_of_xdisp): Initialize them.
9222
9223 2008-06-30 Kenichi Handa <handa@m17n.org>
9224
9225 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9226 XftDefaultSubstitute (they are called in XftFontMatch).
9227 (xftfont_open): Fix args to ftfont_font_format.
9228
9229 * ftfont.c (fc_charset_table): New member lang.
9230 (ftfont_resolve_generic_family): New arg pattern.
9231 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
9232 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9233 (ftfont_open): Fix args to ftfont_font_format.
9234 (ftfont_font_format): New arg filename.
9235
9236 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
9237
9238 * xfaces.c (Finternal_merge_in_global_face): If default face was
9239 modified, realize it again. Update the font face attribute.
9240
9241 2008-06-29 Jason Rumney <jasonr@gnu.org>
9242
9243 * w32term.c (x_set_frame_alpha): Fix logic.
9244
9245 2008-06-29 Kenichi Handa <handa@m17n.org>
9246
9247 * fontset.c (Finternal_char_font): Return font-object instead of
9248 font-name.
9249
9250 * composite.c (get_composition_id): Fix the width calculation for TAB.
9251
9252 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9253
9254 * indent.c (Fvertical_motion): Properly handle float column arg.
9255
9256 2008-06-28 Jason Rumney <jasonr@gnu.org>
9257
9258 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9259 (pfnSetLayeredWindowAttributes): New function pointer.
9260 (w32_initialize): Initialize it when supported.
9261 (x_set_frame_alpha): New function.
9262
9263 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9264 (w32_frame_parm_handlers): Set alpha handler.
9265
9266 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9267
9268 2008-06-27 Jason Rumney <jasonr@gnu.org>
9269
9270 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9271 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9272 (w32_to_x_charset, x_to_w32_charset)
9273 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9274 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9275 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9276 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9277 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9278 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9279 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9280 (Qw32_charset_unicode): Remove.
9281 (syms_of_w32fns): Update for above changes.
9282
9283 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9284 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9285 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9286 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9287 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9288 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9289 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9290 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9291 (syms_of_w32font): Update for above changes.
9292
9293 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9294
9295 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9296 removed #if.
9297 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9298
9299 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9300 Eli Zaretskii <eliz@gnu.org>
9301
9302 * makefile.w32-in (LOCAL_FLAGS):
9303 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9304
9305 * sysdep.c (_spawnlp, _getpid):
9306 Declare with explicit _cdecl instead of _CRTAPI1.
9307
9308 * editfns.c (Fget_internal_run_time):
9309 Check for WINDOWSNT with #ifdef, not #if.
9310
9311 2008-06-26 Jason Rumney <jasonr@gnu.org>
9312
9313 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9314
9315 * w32term.c (x_draw_glyph_string_foreground)
9316 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9317 Use FONT_HANDLE macro.
9318 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9319
9320 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9321 (uniscribe_encode_char): Use FONT_HANDLE macro.
9322
9323 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9324 (w32font_text_extents): Use precast w32_font.
9325 (w32font_close): Free cached metrics.
9326 (w32font_open_internal): Allocate space for name on stack.
9327
9328 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
9329
9330 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9331
9332 2008-06-26 Jason Rumney <jasonr@gnu.org>
9333
9334 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9335 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9336
9337 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9338
9339 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9340
9341 2008-06-26 Jason Rumney <jasonr@gnu.org>
9342
9343 * w32bdf.c, w32bdf.h: Remove obsolete files.
9344
9345 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9346
9347 * w32gui.h: Don't include w32bdf.h.
9348 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9349 Remove obsolete font support.
9350
9351 * w32font.h (struct w32font_info): Remove compat_w32_font.
9352 Add hfont member.
9353 (FONT_COMPAT): Remove obsolete macro.
9354
9355 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9356 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9357 (w32font_open_internal): Remove compat code. Set new hfont member.
9358 (Fx_select_font): Use new hfont member.
9359
9360 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9361 (uniscribe_encode_char): Use new hfont member.
9362
9363 * w32term.c (x_draw_glyph_string_foreground)
9364 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9365 (x_draw_glyph_string): Use metrics in w32font_info.
9366
9367 2008-06-26 Kenichi Handa <handa@m17n.org>
9368
9369 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9370
9371 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9372
9373 * unexnext.c:
9374 * m/ews4800.h:
9375 * m/hp9000s300.h:
9376 * m/ibm370aix.h:
9377 * m/mips-siemens.h:
9378 * m/ncr386.h:
9379 * m/next.h:
9380 * m/pmax.h:
9381 * m/powerpcle.h:
9382 * m/tandem-s2.h:
9383 * s/386bsd.h:
9384 * s/bsd386.h:
9385 * s/bsd4-1.h:
9386 * s/bsd4-2.h:
9387 * s/bsdos2-1.h:
9388 * s/bsdos2.h:
9389 * s/bsdos3.h:
9390 * s/bsdos4.h:
9391 * s/nextstep.h:
9392 * s/ultrix4-3.h:
9393 * s/usg5-0.h:
9394 * s/usg5-2-2.h:
9395 * s/usg5-2.h:
9396 * s/usg5-4-3.h:
9397 * s/ux4800.h:
9398 * s/uxpds.h:
9399 * s/uxpv.h: Remove support for obsolete systems.
9400 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
9401 Remove, insert contents in s/hpux10-20.h.
9402 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9403 Remove, insert contents in s/aix4-2.h.
9404 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9405 * s/bsd4-3.h: Rename to ...
9406 * s/bsd-common.h: ... this.
9407 * data.c:
9408 * doc.c:
9409 * ecrt0.c:
9410 * emacs.c:
9411 * fileio.c:
9412 * floatfns.c:
9413 * keyboard.c:
9414 * mem-limits.h:
9415 * print.c:
9416 * process.c:
9417 * sysdep.c:
9418 * syssignal.h:
9419 * systty.h:
9420 * syswait.h:
9421 * term.c:
9422 * unexec.c:
9423 * unexelf.c:
9424 * unexhp9k800.c:
9425 * m/hp800.h:
9426 * m/ibmrs6000.h:
9427 * m/mips.h:
9428 * m/vax.h:
9429 * s/darwin.h:
9430 * s/freebsd.h:
9431 * s/gnu.h:
9432 * s/ms-w32.h:
9433 * s/msdos.h:
9434 * s/netbsd.h:
9435 * s/template.h: Remove references to obsolete variables.
9436
9437 * Makefile.in: Add dependencies for all unexec files.
9438 (admindir): Remove unused variable.
9439 (UNEXEC_SRC): Remove references.
9440
9441 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
9442
9443 * xfns.c (x_default_font_parameter): If Xft is available, first
9444 try Monospace-12 for the default font.
9445
9446 2008-06-25 Jason Rumney <jasonr@gnu.org>
9447
9448 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9449
9450 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9451
9452 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9453
9454 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9455
9456 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
9457
9458 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9459 <scroll-conservatively>: Fix typo in docstring.
9460
9461 * xselect.c (Fx_send_client_event): Doc fix.
9462
9463 2008-06-25 Kenichi Handa <handa@m17n.org>
9464
9465 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9466
9467 * font.c (font_parse_fcname): Remove unused variables.
9468 (font_sort_entites): Delete the arg SPEC. Caller changed.
9469 Fix for the case of ! best_only.
9470 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9471
9472 * lisp.h (Fstring_to_unibyte): EXFUN it.
9473
9474 * character.h (str_to_unibyte): Extern it.
9475
9476 * character.c (str_to_unibyte): New function.
9477
9478 * fns.c (Fstring_to_unibyte): New function.
9479 (syms_of_fns): Defsubr it.
9480
9481 2008-06-24 Kenichi Handa <handa@m17n.org>
9482
9483 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9484 DPI too.
9485 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9486
9487 2008-06-24 Andreas Schwab <schwab@suse.de>
9488
9489 * Makefile.in (${lispsource}loaddefs.el): Rename from
9490 ../lisp/loaddefs.el.
9491 (bootstrap-clean): Do what distclean does but don't remove
9492 Makefile.
9493 (distclean): Depend on bootstrap-clean and remove Makefile.
9494
9495 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
9496
9497 * buffer.h (struct buffer): New member word_wrap.
9498
9499 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9500 word-wrap.
9501 (init_buffer_once): Initialize them.
9502
9503 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9504 line_wrap enum possessing three possible values.
9505
9506 * termopts.h: Replace truncate_partial_width_windows with
9507 Vtruncate_partial_width_windows.
9508
9509 * dispnew.c (direct_output_for_insert): Avoid direct output when
9510 inserting a space with word wrap on.
9511
9512 * indent.c (compute_motion): Obey integer values of
9513 truncate-partial-width-windows.
9514
9515 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9516 replacing truncate_partial_width_windows.
9517 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9518 truncate only if the window width is below that integer.
9519 (start_display, resize_mini_window, produce_stretch_glyph)
9520 (display_string, move_it_in_display_line_to): Use line_wrap.
9521 (back_to_previous_visible_line_start, reseat_1): Reset
9522 string_from_display_prop_p.
9523 (display_line): Extend default face to end of line when wrapping.
9524
9525 2008-06-24 Kim F. Storm <storm@cua.dk>
9526
9527 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9528 to wrap continued lines at word boundaries.
9529
9530 2008-06-24 Jason Rumney <jasonr@gnu.org>
9531
9532 * font.c (Ffont_face_attributes): Multiply pixel size before point
9533 conversion to avoid multiplying rounding error.
9534
9535 2008-06-23 Jason Rumney <jasonr@gnu.org>
9536
9537 * w32term.c (x_draw_glyph_string_background)
9538 (x_draw_glyph_string): Remove old bdf font code.
9539
9540 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9541
9542 2008-06-22 Kenichi Handa <handa@m17n.org>
9543
9544 * font.c (font_find_for_lface): Try the adstyle specified in
9545 the property of LFACE_FONT of LFACE (if any).
9546
9547 2008-06-21 Seiji Zenitani <zenitani@mac.com>
9548 Ryo Yoshitake <ryo@shiftmode.net>
9549
9550 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9551
9552 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9553
9554 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9555 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9556 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9557 (witness-emacs): Remove.
9558 (lisp, shortlisp): Move loaddefs.el earlier.
9559 (mostlyclean): Forget about witness-emacs.
9560
9561 2008-06-22 Glenn Morris <rgm@gnu.org>
9562
9563 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9564 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9565
9566 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9567
9568 * Makefile.in (PRECOMP): Remove.
9569 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9570 (witness-emacs): Run `compile-first'.
9571 (.el.elc): Use the new compile-onefile target.
9572
9573 2008-06-21 Kenichi Handa <handa@m17n.org>
9574
9575 * xftfont.c (xftfont_open): Handle QCembolden only when
9576 FC_EMBOLDEN is defined.
9577
9578 2008-06-21 Andreas Schwab <schwab@suse.de>
9579
9580 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9581 (.el.elc): Likewise.
9582
9583 2008-06-21 Miles Bader <miles@gnu.org>
9584
9585 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9586 build dir, not the lisp source dir.
9587
9588 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9589
9590 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9591 (bootstrapclean): Remove.
9592 (.el.elc): New rule.
9593 (PRECOMP): New var.
9594 (../lisp/subdirs.el): Remove.
9595 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9596 (witness-emacs): New target.
9597 (mostlyclean): Remove witness-emacs as well.
9598 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9599 Add witness-emacs dependency.
9600
9601 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
9602
9603 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9604 defined by the font.
9605
9606 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9607
9608 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9609 (bootstrap-clean): New target that keeps TAGS around.
9610 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9611 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9612
9613 2008-06-20 Jason Rumney <jasonr@gnu.org>
9614
9615 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9616 Remove obsolete font code.
9617
9618 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9619 to determine language support.
9620
9621 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9622
9623 * sysdep.c (cfsetspeed): New fun extracted from the code.
9624 (cfmakeraw): Move before first use.
9625
9626 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9627
9628 * sysdep.c (cfmakeraw): Provide fallback implementation.
9629 (serial_configure): Provide fallback implementation of cfsetspeed.
9630
9631 2008-06-20 Kenichi Handa <handa@m17n.org>
9632
9633 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9634 the pattern.
9635
9636 * fontset.c (fontset_from_font): Copy font_spec before changing
9637 the elements.
9638
9639 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9640
9641 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9642
9643 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9644 for explicit `font' parameters.
9645
9646 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9647
9648 2008-06-19 Kenichi Handa <handa@m17n.org>
9649
9650 * frame.c: Include <ctype.h>.
9651 (x_set_font_backend): Allow spacing characters in the X resource
9652 for FontBackend.
9653
9654 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9655
9656 * w32fns.c, xfns.c (Qfont_param): New var.
9657 (syms_of_w32fns): Initialize it.
9658 (x_default_font_parameter): Record explicit `font' into
9659 `font-parameter'.
9660
9661 2008-06-18 Kenichi Handa <handa@m17n.org>
9662
9663 * font.c (font_parse_xlfd): Fix previous change.
9664 (font_parse_fcname): Don't use :fc-unknown-spec.
9665 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9666 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9667 (font_add_log): Prepend the driver name to the resulting fonts.
9668
9669 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9670 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9671 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9672
9673 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9674 (QCembolden): New variables.
9675 (syms_of_xftfont): DEFSYM them.
9676 (xftfont_open): Call XftFontMatch. Don't trust the result of
9677 XftTextExtents8 if the pixel_size is less than 5.
9678
9679 2008-06-18 Andreas Schwab <schwab@suse.de>
9680
9681 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9682 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9683
9684 2008-06-18 Jason Rumney <jasonr@gnu.org>
9685
9686 * w32font.c (w32font_list, w32font_match): Add logging.
9687
9688 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9689
9690 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
9691
9692 * font.c (font_parse_fcname): Store divider characters for
9693 unknown-spec list. For known key symbols, intern using correct
9694 symbol name.
9695
9696 2008-06-17 Kenichi Handa <handa@m17n.org>
9697
9698 * xfaces.c (realize_default_face): If the frame is not on window
9699 system, set the fontset of face to nil.
9700
9701 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9702
9703 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9704
9705 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9706
9707 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9708 (build_font_name_from_vector): Delete externs.
9709
9710 * xfaces.c (struct font_name): Don't declare.
9711
9712 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9713
9714 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9715
9716 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9717
9718 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9719
9720 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9721
9722 * font.c (Ffont_spec): Fix usage in docstring.
9723 (Ffont_face_attributes): Doc fix.
9724
9725 2008-06-16 Andreas Schwab <schwab@suse.de>
9726
9727 * font.c (Ffont_face_attributes): Fix definition.
9728
9729 2008-06-16 Jason Rumney <jasonr@gnu.org>
9730
9731 * font.h (font_style_symbolic_from_value): Remove.
9732
9733 * font.c (font_style_symbolic_from_value): Remove.
9734 (font_style_symbolic): Revert to pre 2008-06-13 version.
9735
9736 * w32font.c (w32_to_fc_weight): New function.
9737 (w32font_full_name, logfont_to_fcname): Use it.
9738
9739 2008-06-16 Kenichi Handa <handa@m17n.org>
9740
9741 * font.c (font_check_object): Delete it.
9742 (font_clear_cache): Check if a font-object is alive.
9743 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9744 font-object to nil.
9745 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9746 (font_at): Don't call font_check_object.
9747 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9748
9749 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9750
9751 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9752
9753 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9754
9755 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9756
9757 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
9758
9759 * font.c (font_parse_fcname): Only one decimal point.
9760 (font_unparse_fcname): Handle data in family and foundry indices
9761 as symbols, not strings.
9762 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9763
9764 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9765
9766 * font.h (font_unparse_gtkname): Add prototype.
9767
9768 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9769
9770 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9771
9772 2008-06-15 Andreas Schwab <schwab@suse.de>
9773
9774 * font.c (font_update_drivers): Fix crash when no drivers match.
9775
9776 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9777
9778 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9779 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9780
9781 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9782
9783 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9784
9785 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9786
9787 * process.c (Fserial_process_configure, Fprocess_send_eof):
9788 Use EQ to compare Lisp_Objects.
9789
9790 2008-06-13 Jason Rumney <jasonr@gnu.org>
9791
9792 * w32fns.c (Fw32_select_font): Remove old font API function.
9793
9794 * w32font.c (logfont_to_fcname): New function.
9795 (Fx_select_font): New font dialog function compatible with
9796 GTK/fontconfig version.
9797
9798 * font.c (font_style_symbolic_from_value): New function.
9799 (font_style_symbolic): Use it.
9800
9801 * font.h (font_style_symbolic_from_value): Declare new function.
9802
9803 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
9804
9805 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9806 <font-width-table>: Fix typos in docstrings.
9807
9808 2008-06-13 Daniel Engeler <engeler@gmail.com>
9809
9810 These changes add serial port access.
9811 * process.c: Add HAVE_SERIAL.
9812 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9813 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9814 (list_processes_1, select_wrapper, Fstop_process)
9815 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9816 (status_notify): Modify to handle serial processes.
9817 [HAVE_SERIAL] (Fserial_process_configure)
9818 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9819 New functions.
9820 * process.h (struct Lisp_Process): Add `type'.
9821 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9822 New functions.
9823 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9824 serial ports.
9825 (serial_open, serial_configure): New functions.
9826 * w32.h: Add FILE_SERIAL.
9827 (struct _child_process): Add ovl_read, ovl_write.
9828
9829 2008-06-13 Kenichi Handa <handa@m17n.org>
9830
9831 * dispextern.h (enum lface_attribute_index): New member
9832 LFACE_FOUNDRY_INDEX.
9833
9834 * font.c (font_score): Delete arg alternate_families. Check only
9835 weight, slant, width, and size. Ignore the difference of alias
9836 style symbols.
9837 (font_sort_entites): Adjust for the above change. Reflect the
9838 order of font-driver to scores.
9839 (font_list_entities): Don't check alternate_familes here.
9840 (font_clear_prop): Handle foundry.
9841 (font_update_lface): Don't parse "foundry-family" form here.
9842 Handle FONT_FOUNDRY_INDEX.
9843 (font_find_for_lface): Likewise. Handle alternate families here.
9844 If registry is nil, try iso8859-1 and ascii-0.
9845 (font_open_for_lface): Pay attention to size in ENTITY.
9846 (font_open_by_name): Simplify by calling font_load_for_lface.
9847 (free_font_driver_list): Delete it.
9848 (font_update_drivers): Preserve the order of backends.
9849 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9850 of font_score and font_sort_entites.
9851 (font_update_sort_order): Likewise.
9852
9853 * xfaces.c (LFACE_FOUNDRY): New macro.
9854 (check_lface_attrs): Check foundry.
9855 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9856 (merge_face_vectors): Check foundry.
9857 (merge_face_ref): Likewise.
9858 (Finternal_set_lisp_face_attribute): Likewise.
9859 (x_update_menu_appearance): Likewise.
9860 (Finternal_get_lisp_face_attribute): Likewise.
9861 (lface_hash): Likewise.
9862 (lface_same_font_attributes_p): Likewise.
9863 (x_supports_face_attributes_p): Likewise.
9864 (tty_supports_face_attributes_p): Likewise.
9865 (Finternal_set_alternative_font_family_alist): Intern strings.
9866 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9867 (realize_default_face): Set LFACE_FOUNDRY (lface).
9868
9869 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9870 font-driver at first.
9871
9872 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9873
9874 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9875
9876 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9877
9878 2008-06-12 Jim Meyering <meyering@redhat.com>
9879
9880 Make unexec_free handle NULL the same way free does.
9881 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9882
9883 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9884
9885 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9886 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9887 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9888 (WEAK_ALIAS): Simplify.
9889 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9890 when searching a unibyte buffer.
9891
9892 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
9893
9894 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9895
9896 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
9897
9898 * w32font.c: Include ctype.h.
9899
9900 2008-06-11 Jason Rumney <jasonr@gnu.org>
9901
9902 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9903 misreported as space.
9904 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9905 as aliases for registry iso10646-1.
9906
9907 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9908
9909 * buffer.c (clone_per_buffer_values): Skip `name'.
9910
9911 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
9912
9913 * font.c (font_parse_fcname): Fix last change; accept decimal
9914 points in font size.
9915
9916 2008-06-10 Jason Rumney <jasonr@gnu.org>
9917
9918 * w32uniscribe.c (add_opentype_font_name_to_list):
9919 Skip non unicode fonts.
9920
9921 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9922
9923 * xfns.c (Fx_font_dialog): New function.
9924
9925 * gtkutil.c (xg_dialog_response_cb): Rename from
9926 xg_file_response_callback.
9927 (pop_down_dialog): Rename from pop_down_file_dialog.
9928 (xg_get_file_name): Callers changed.
9929 (xg_get_font_name): New function.
9930
9931 * gtkutil.h (xg_get_font_name): Insert prototype.
9932
9933 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9934
9935 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9936 x_underline_minimum_display_offset.
9937 (syms_of_xdisp): Declare it here rather than in xterm.c.
9938 * dispextern.h (underline_minimum_offset): Declare it.
9939 * w32term.c (x_draw_glyph_string): Use it.
9940 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9941 (syms_of_xterm): Don't declare it any more.
9942 (x_draw_glyph_string): Adjust to the new name.
9943
9944 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
9945
9946 * xterm.c (x_underline_minimum_display_offset): New var.
9947 (x_draw_glyph_string): Use it.
9948 (syms_of_xterm): Declare it.
9949
9950 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
9951
9952 * font.c (font_parse_fcname): Accept GTK-style font names too.
9953
9954 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9955
9956 * dired.c (file_name_completion): Don't return t if the match is exact
9957 but with different capitalization.
9958 * minibuf.c (Ftry_completion): Simplify.
9959
9960 * window.c (Vwindow_point_insertion_type): New var.
9961 (set_window_buffer): Use it.
9962 (syms_of_window): Init and export it to Lisp.
9963
9964 2008-06-10 Kenichi Handa <handa@m17n.org>
9965
9966 * font.h (font_intern_prop): Prototype adjusted.
9967
9968 * font.c (font_intern_prop): New arg force_symbol.
9969 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9970 Adjust for the change of font_intern_prop.
9971
9972 * ftfont.c (ftfont_pattern_entity):
9973 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9974 (w32_registry):
9975 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9976 the change of font_intern_prop.
9977
9978 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
9979
9980 * w32menu.c (digest_single_submenu): Declare extern.
9981
9982 2008-06-09 Jason Rumney <jasonr@gnu.org>
9983
9984 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9985
9986 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9987 (parse_single_submenu): Remove.
9988 (digest_single_submenu): Remove.
9989 (syms_of_w32menu): Don't initialise variables that have moved
9990 to menu.c.
9991 (set_frame_menubar): Sync with version in xmenu.c.
9992 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9993
9994 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9995 Make static again.
9996
9997 2008-06-09 Jason Rumney <jasonr@gnu.org>
9998
9999 Changes to w32 files related to the move of common menu code
10000 to menu.c on 2008-06-08 by Chong Yidong.
10001
10002 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10003 defs to w32gui.h.
10004 (single_keymap_panes, push_menu_item, push_menu_pane):
10005 Make globally visible.
10006
10007 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10008 (local_free, malloc_widget_value, free_widget_value)
10009 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10010 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10011 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10012 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10013 (menu_items, menu_items_allocated, menu_items_used)
10014 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10015 (init_menu_items, finish_menu_items, discard_menu_items)
10016 (grow_menu_items, push_submenu_start, push_submenu_end)
10017 (push_left_right_boundary, push_menu_pane, push_menu_item)
10018 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10019 (free_menubar_widget_tree_value, parse_single_submenu)
10020 (update_submenu_strings): Remove functions.
10021 (xmalloc_widget_value): Remove and declare extern.
10022
10023 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10024 (OBJ1): Build it.
10025
10026 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10027 (local_heap, local_alloc, local_free, malloc_widget_value)
10028 (free_widget_value): Define here.
10029
10030 2008-06-09 Kenichi Handa <handa@m17n.org>
10031
10032 * font.h (Qascii_0): Extern it.
10033
10034 * font.c (Qascii_0): New variable.
10035 (syms_of_font): DEFSYM it.
10036 (font_open_by_name): If the registry "iso8859-1" fails, try also
10037 "ascii-0".
10038
10039 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10040
10041 2008-06-08 Kenichi Handa <handa@m17n.org>
10042
10043 * .gdbinit (xfont): New command.
10044
10045 2008-06-08 Andreas Schwab <schwab@suse.de>
10046
10047 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10048 * Makefile.in (menu.o): Update dependencies.
10049
10050 * Makefile.in (obj): Always add menu.o.
10051 * emacs.c (main): Always call syms_of_menu.
10052 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10053
10054 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
10055
10056 * Makefile.in: Compile menu.c.
10057
10058 * lisp.h: Declare syms_of_menu.
10059
10060 * emacs.c (main): Call syms_of_menu.
10061
10062 * keyboard.h: Relocate platform-independent menu definitions from
10063 xmenu.c.
10064
10065 * menu.c: New file. Relocate platform-independent menu
10066 definitions from xmenu.c. Suggested by Adrian Robert.
10067
10068 * xmenu.c: Remove platform-independent menu definitions.
10069 (menu_items menu_items_inuse, menu_items_allocated)
10070 (menu_items_used, menu_items_n_panes)
10071 (menu_items_submenu_depth): Move to keyboard.h.
10072 (init_menu_items, finish_menu_items, unuse_menu_items)
10073 (discard_menu_items, restore_menu_items, save_menu_items)
10074 (grow_menu_items, push_submenu_start, push_submenu_end)
10075 (push_left_right_boundary, push_menu_pane, push_menu_item)
10076 (keymap_panes, single_keymap_panes, single_menu_item)
10077 (list_of_panes, list_of_items, find_and_call_menu_selection)
10078 (xmalloc_widget_value, free_menubar_widget_value_tree)
10079 (parse_single_submenu, digest_single_submenu)
10080 (update_submenu_strings): Move to menu.c.
10081
10082 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10083
10084 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10085
10086 2008-06-06 Miles Bader <miles@gnu.org>
10087
10088 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10089 face, not frame default.
10090
10091 2008-06-05 Martin Rudalics <rudalics@gmx.at>
10092
10093 * window.c (pop_up_windows, pop_up_frames)
10094 (display_buffer_reuse_frames, Vpop_up_frame_function)
10095 (Vdisplay_buffer_function, Veven_window_heights)
10096 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10097 (Vspecial_display_function, Vsame_window_buffer_names)
10098 (Vsame_window_regexps, split_height_threshold)
10099 (Vsplit_window_preferred_function): Move those vars to window.el.
10100 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10101 (Fdisplay_buffer): Move those functions to window.el.
10102 (syms_of_window): Remove corresponding declarations.
10103 (display_buffer): New function.
10104 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10105 * dispnew.c (Flast_nonminibuf_frame): New function.
10106 * buffer.c (Fpop_to_buffer): Move to window.el.
10107
10108 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10109
10110 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10111
10112 2008-06-05 Kenichi Handa <handa@m17n.org>
10113
10114 * coding.c (detect_coding): Fix previous change.
10115 (detect_coding_system): Likewise.
10116
10117 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10118
10119 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10120
10121 * keymap.c (Vminibuffer_local_filename_must_match_map):
10122 Rename from Vminibuffer_local_must_match_filename_map.
10123 (syms_of_keymap):
10124 * minibuf.c (Fcompleting_read): Adjust accordingly.
10125 * commands.h: Rename declaration as well.
10126
10127 2008-06-05 Kenichi Handa <handa@m17n.org>
10128
10129 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10130 family name.
10131 (Ffont_put): Likewise.
10132
10133 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10134 current font-spec.
10135
10136 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10137 is unspecified.
10138
10139 * xfaces.c (realize_x_face): If the font-related face attributes
10140 are the same as those of default face, realize a new fontset from
10141 default->fontset.
10142 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10143
10144 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10145
10146 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10147 (move_it_in_display_line): New wrapper.
10148
10149 * window.c (window_scroll_pixel_based_preserve_x)
10150 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10151 (window_scroll_pixel_based, window_scroll_line_based):
10152 Use them to preserve column positions.
10153 (syms_of_window): Initialize them.
10154
10155 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10156 (HPOS . VPOS) pair.
10157
10158 * dispextern.h (move_it_in_display_line): Declare.
10159
10160 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
10161
10162 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10163 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10164 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10165
10166 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
10167
10168 * window.c (Fset_window_parameter): Doc fix.
10169 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10170
10171 2008-06-04 Joakim Verona <joakim@verona.se>
10172
10173 * window.h (struct window): Add new member window_parameters.
10174
10175 * window.c (Fwindow_parameters, Fwindow_parameter)
10176 (Fset_window_parameter): New defuns.
10177 (syms_of_window): Defsubr the new defuns.
10178 (make_window): Initialize window_parameters to nil.
10179
10180 2008-06-04 John Paul Wallington <jpw@pobox.com>
10181
10182 * eval.c (Fdefmacro): Doc fix.
10183
10184 2008-06-04 Kenichi Handa <handa@m17n.org>
10185
10186 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10187 Be sure to call setup_coding_system when we find a proper coding system.
10188 (detect_coding_system): Fix handling of coding->head_ascii.
10189
10190 2008-06-03 Andreas Schwab <schwab@suse.de>
10191
10192 * font.c (font_prop_validate_spacing): Fix last change.
10193
10194 2008-06-03 Kenichi Handa <handa@m17n.org>
10195
10196 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10197 (font_parse_fcname): Fix handling of unknown key.
10198
10199 * xfont.c (xfont_list): Try an alias.
10200
10201 * charset.c (char_charset): Return NULL if the arg charset_list is
10202 specified and C doesn't belong to any of them.
10203
10204 2008-06-02 Chip Coldwell <coldwell@redhat.com>
10205
10206 * font.c (font_pixel_size): Don't take cdr of an integer.
10207
10208 2008-06-02 Jim Meyering <meyering@redhat.com>
10209
10210 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10211 * alloc.c (xfree): Return right away for a NULL arg.
10212 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10213 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10214 * mac.c (create_apple_event_from_event_ref): Likewise.
10215 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10216 Likewise.
10217 * doprnt.c (doprnt1): Likewise.
10218 * frame.c (frame): Likewise.
10219 * keyboard.c (wipe_kboard): Likewise.
10220 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10221 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10222 * term.c (tty_default_color_capabilities, maybe_fatal)
10223 (delete_tty): Likewise.
10224 * w16select.c (string): Likewise.
10225 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10226 * w32bdf.c (w32_free_bdf_font): Likewise.
10227 * w32fns.c (w32_unload_font): Likewise.
10228 * w32font.c (w32font_close): Likewise.
10229 * window.c (size_window): Likewise.
10230 * xselect.c (receive_incremental_selection): Likewise.
10231 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10232 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10233 * w32.c (stat): Likewise.
10234
10235 Remove useless if-before-free tests.
10236 * editfns.c (Fset_time_zone_rule): Likewise.
10237 * lread.c (nosuffix): Likewise.
10238 * ralloc.c (get_bloc): Likewise.
10239 * regex.c (reg_free): Likewise.
10240 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10241 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10242 * xsmfns.c (smc_save_yourself_CB): Likewise.
10243
10244 2008-06-02 Kenichi Handa <handa@m17n.org>
10245
10246 * font.c (font_find_for_lface): Handle float font size.
10247 (font_open_for_lface): Likewise.
10248
10249 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10250 comparing the properties.
10251
10252 2008-06-01 Jason Rumney <jasonr@gnu.org>
10253
10254 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10255 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10256 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10257 Don't add empty script list.
10258 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10259
10260 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10261
10262 * Makefile.in (dot, dotdot): Remove, update users.
10263 ".." has been used elsewhere in the file for a long time.
10264 (LIBXT_STATIC): Remove conditional based on unused variable.
10265
10266 2008-06-01 Miles Bader <miles@gnu.org>
10267
10268 * xfaces.c (Vface_remapping_alist): New variable.
10269 (syms_of_xfaces): Initialize it.
10270 (enum named_merge_point_kind): New type.
10271 (struct named_merge_point): Add `named_merge_point_kind' field.
10272 (push_named_merge_point): Make cycle detection respect different
10273 named-merge-point kinds.
10274 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10275 Remove face-name alias resolution.
10276 (lface_from_face_name): New definition using
10277 `lface_from_face_name_no_resolve'.
10278 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10279 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10280 (get_lface_attributes): New definition that layers face-remapping on
10281 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10282 (lookup_basic_face): New function.
10283 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10284 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10285 `get_lface_attributes'.
10286 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10287 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10288 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10289
10290 * xdisp.c (init_iterator): Pass base_face_id through
10291 `lookup_basic_face' when we actually use it as a face-id.
10292 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10293 DEFAULT_FACE_ID.
10294
10295 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10296 lookup the initial face-id.
10297
10298 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10299
10300 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
10301
10302 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10303 (Fremove_text_properties): Fix typos in docstrings.
10304
10305 2008-05-31 Kenichi Handa <handa@m17n.org>
10306
10307 * font.c (font_list_entities): Fix the car part of data to be
10308 stored in the cache.
10309
10310 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10311
10312 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10313
10314 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10315 Add a `test' argument so another predicate than `equal' can be used.
10316 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10317 (map_char_table): Remove unused vars `c' and `i'.
10318 * lisp.h (Foptimize_char_table): Adjust declaration.
10319 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10320
10321 2008-05-30 Kenichi Handa <handa@m17n.org>
10322
10323 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10324 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10325 defined.
10326
10327 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10328
10329 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10330 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10331 frame-local settings for the same variable.
10332
10333 2008-05-30 Kenichi Handa <handa@m17n.org>
10334
10335 * fontset.c (Ffont_info): Move to font.c.
10336 (syms_of_fontset): Delete defsubr of Sfont_info.
10337
10338 * font.c (font_style_to_value, font_score): Delete casting of the
10339 args to xstcasecmp.
10340 (register_font_driver): Increment num_font_drivers only when
10341 registering the driver globally.
10342 (Ffont_info): Move from fontset.c. Handle a font object too.
10343 (syms_of_font): Defsubr Sfont_info.
10344
10345 2008-05-29 Kenichi Handa <handa@m17n.org>
10346
10347 * coding.h (enum define_coding_utf8_arg_index): New enum.
10348 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10349 coding_attr_utf_bom.
10350 (enum utf_bom_type): Rename from utf_16_bom_type.
10351 (struct utf_16_spec): Adjust for the above change.
10352 (struct coding_system): Add utf_8_bom in `spec' union.
10353
10354 * coding.c (CODING_UTF_8_BOM): New macro.
10355 (enum coding_category): Delete coding_category_utf_8, add
10356 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10357 coding_category_utf_8_sig.
10358 (CATEGORY_MASK_UTF_8): Delete it.
10359 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10360 (CATEGORY_MASK_UTF_8_SIG): New macros.
10361 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10362 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10363 CATEGORY_MASK_UTF_8_SIG.
10364 (CATEGORY_MASK_UTF_8): New macro.
10365 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10366 (detect_coding_utf_8): Check BOM.
10367 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10368 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10369 (encode_coding_utf_16): Likewise.
10370 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10371 (detect_coding, detect_coding_system): Handle utf-8-auto.
10372 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10373 (syms_of_coding): Fix setting up of Vcoding_category_table.
10374
10375 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10376
10377 * process.c (Faccept_process_output): If `millisec' is non-nil,
10378 `seconds' default to 0.
10379 (wait_reading_process_output): Also return non-nil if we read output
10380 from a non-running process.
10381
10382 2008-05-29 Jason Rumney <jasonr@gnu.org>
10383
10384 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10385 `raster' specified.
10386 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10387 in the uniscribe backend, but disallow any font that has no
10388 unicode subrange support.
10389
10390 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
10391
10392 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10393 Fix typos in docstrings.
10394
10395 2008-05-29 Kenichi Handa <handa@m17n.org>
10396
10397 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10398 (Fx_family_fonts): Set frame correctly.
10399
10400 2008-05-28 Jason Rumney <jasonr@gnu.org>
10401
10402 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10403
10404 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10405
10406 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10407 calling build_annotations.
10408
10409 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
10410
10411 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10412 (Fencode_coding_string):
10413 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10414 <latin-extra-code-table>: Fix typos in docstrings.
10415 (syms_of_coding) <coding-system-alist>: Doc fix.
10416 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10417
10418 2008-05-28 Kenichi Handa <handa@m17n.org>
10419
10420 * fontset.c (Ffont_info): Don't call font_close_object.
10421
10422 * font.c (font_parse_family_registry): Use Ffont_put to validate
10423 foundry and family.
10424 (font_delete_unmatched): Don't check spacing.
10425 (font_list_entities): Add spacing to the spec to list fonts.
10426
10427 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10428 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10429
10430 * coding.c (encode_coding_raw_text): Fix previous change.
10431 (encode_coding_object): When the dst_object is a buffer and is
10432 different from src_object, move gap to PT.
10433
10434 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10435
10436 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10437
10438 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10439
10440 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10441 all branches. Compute it differently.
10442
10443 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10444
10445 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
10446
10447 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10448 into "else if () ... else ...".
10449
10450 2008-05-27 Jason Rumney <jasonr@gnu.org>
10451
10452 * w32font.c (w32font_open_internal): Determine if glyph indices
10453 are likely to work here.
10454
10455 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10456
10457 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10458 draw overlap glyphs with appropriate highlighting.
10459
10460 2008-05-27 Kenichi Handa <handa@m17n.org>
10461
10462 * xfont.c (xfont_open): Fix calculation of font->average_width.
10463
10464 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10465
10466 * casefiddle.c (casify_object): Try to guess better whether the
10467 argument is a byte or a char.
10468
10469 2008-05-26 Andreas Schwab <schwab@suse.de>
10470
10471 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10472 Always send multiples of format size.
10473
10474 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10475
10476 2008-05-26 Jason Rumney <jasonr@gnu.org>
10477
10478 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10479 (compute_metrics): Don't set failure if we just cleared the cache.
10480 (w32_weight_table): Remove unused variable.
10481 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10482 backwards compatibility.
10483
10484 2008-05-25 Kenichi Handa <handa@m17n.org>
10485
10486 * w32term.c (x_draw_glyph_string):
10487 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10488
10489 * xfaces.c: Delete unused function prototypes.
10490 (xstrlwr, font_frame): Delete them.
10491 (clear_face_cache): Delete unused variable.
10492
10493 * xftfont.c (xftfont_open): Delete unused variable.
10494 If underline_thickness is not 1, adjust underline_position.
10495
10496 * ftxfont.c (ftxfont_open): Delete unused variable.
10497
10498 * fontset.c (face_for_char): Optimize for the case of no charset
10499 property.
10500
10501 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10502 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10503 (otf_open, font_otf_capability, generate_otf_features)
10504 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10505 Comment out by surrounding "#if 0" and "#endif" for the moment.
10506 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10507 (syms_of_font): Codes for accessing above commented out.
10508
10509 2008-05-24 Eli Zaretskii <eliz@gnu.org>
10510
10511 * w32proc.c: Include dispextern.h.
10512
10513 * w32.c: Include dispextern.h.
10514
10515 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
10516
10517 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10518 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10519 Fix typos in docstrings.
10520
10521 2008-05-23 Jason Rumney <jasonr@gnu.org>
10522
10523 * xsmfns.c: Remove includes that are already included by config.h.
10524
10525 2008-05-23 Kenichi Handa <handa@m17n.org>
10526
10527 * charset.c (Qemacs, charset_emacs): New variables.
10528 (char_charset): Fix for non-Unicode characters.
10529 (syms_of_charset): Define charset_emacs.
10530
10531 * w32term.c (x_draw_glyph_string): Be sure to update
10532 s->underline_thickness and s->underline_position. Be sure to draw
10533 underline within the current line area.
10534
10535 * xterm.c (x_draw_glyph_string): Be sure to update
10536 s->underline_thickness and s->underline_position. Be sure to draw
10537 underline within the current line area.
10538
10539 * fontset.c: Delete unused variables and add casting for char *
10540 throughout the file.
10541 (fontset_font): Try the fallback fonts of the current fontset
10542 before consulting the default fontset.
10543
10544 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10545
10546 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10547
10548 2008-05-22 Jason Rumney <jasonr@gnu.org>
10549
10550 * font.c: Don't include strings.h.
10551
10552 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10553
10554 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10555 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10556 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10557 to call xstrcasecmp.
10558
10559 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10560
10561 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10562
10563 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10564
10565 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10566
10567 2008-05-22 Kenichi Handa <handa@m17n.org>
10568
10569 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10570
10571 * font.c (font_prop_validate_style): Adjust for the format
10572 change of font_style_table.
10573
10574 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10575 two args.
10576
10577 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10578 two args.
10579
10580 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10581
10582 * minibuf.c (keys_of_minibuf): Delete.
10583 * lisp.h (keys_of_minibuf): Delete.
10584 * emacs.c (main): Don't call keys_of_minibuf.
10585
10586 2008-05-22 Kenichi Handa <handa@m17n.org>
10587
10588 * ftfont.c (ftfont_resolve_generic_family): Rename from
10589 ftfont_list_generic_family. Return a single family for each
10590 generic family.
10591 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10592 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10593 Call font_add_log.
10594 (ftfont_match): Call font_add_log.
10595
10596 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10597 (FONT_DEBUG): Define it.
10598 (font_add_log): Extern it.
10599 (font_assert): Rename from xassert.
10600
10601 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10602 (xfont_list_family): Call font_add_log.
10603 (xfont_match): Likewise.
10604 (memq_no_quit): Delete.
10605
10606 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10607 call of Ffont_xlfd_name.
10608
10609 * xfaces.c (struct table_entry, slant_table, weight_table)
10610 (swidth_table): Move to font.c.
10611
10612 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10613 xassert are changed to font_assert. Delete many unused variables.
10614 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10615 New variables.
10616 (struct table_entry): Move from xfaces.c and modified.
10617 (weight_table, slant_table, width_table): Move from xfaces.c and
10618 contents adjusted for the change of struct table_entry.
10619 (font_style_to_value, font_style_symbolic): Adjust for the
10620 format change of font_style_table.
10621 (font_parse_family_registry): Don't overwrite existing foundry and
10622 family of font_spec.
10623 (font_score): Fix calculation of diff for sizes.
10624 (font_sort_entites): Call font_add_log.
10625 (font_delete_unmatched): Return a newly created list.
10626 (font_list_entities): Fix previous change. Call font_add_log.
10627 (font_matching_entity, font_open_entity, font_close_entity):
10628 Call font_add_log.
10629 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10630 (Finternal_set_font_style_table): Delete.
10631 (BUILD_STYLE_TABLE): New macro.
10632 (build_style_table): New function.
10633 (Vfont_log, font_log_env_checked): New variables.
10634 (font_add_log): New function.
10635 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10636 Declare Lisp variables "font-weight-table", "font-slant-table",
10637 "font-width-table", and "font-log". Initialize font_style_table.
10638
10639 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10640
10641 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10642
10643 2008-05-21 Seiji Zenitani <zenitani@mac.com>
10644 Ryo Yoshitake <ryo@shiftmode.net>
10645
10646 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10647 (Vframe_alpha_lower_limit): New variable.
10648 (x_set_alpha): New function.
10649
10650 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10651
10652 * xfns.c (x-create-frame, Qalpha):
10653 Initialize the frame parameter `alpha'.
10654 * xterm.c (OPAQUE, OPACITY): New.
10655 (x_set_frame_alpha): New function.
10656 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10657
10658 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10659 * w32fns.c (w32_frame_parm_handlers): Likewise.
10660
10661 2008-05-20 Jason Rumney <jasonr@gnu.org>
10662
10663 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10664 truetype fonts to opentype list.
10665
10666 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
10667
10668 * fontset.c (Ffontset_info): Doc fix.
10669 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10670 <ignore-relative-composition>: Fix typos in docstrings.
10671
10672 * font.c (syms-of-font) <font-encoding-alist>:
10673 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10674 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10675 (Ffont_otf_alternates): Doc fixes.
10676
10677 2008-05-20 Kenichi Handa <handa@m17n.org>
10678
10679 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10680 font.h through out the file.
10681 (FONT_DRIVERS): Rename from FONTOBJ.
10682 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10683 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10684
10685 * emacs.c (main): Call syms_of_font unconditionally.
10686
10687 * font.h (find_font_encoding): Extern it.
10688
10689 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10690 fontset.c.
10691 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
10692 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10693 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10694 only when HAVE_WINDOW_SYSTEM is defined.
10695 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10696 when HAVE_WINDOW_SYSTEM is defined.
10697
10698 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10699 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10700
10701 * xfaces.c: Include font.h unconditionally.
10702 (merge_face_ref, merge_face_vectors)
10703 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10704
10705 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10706
10707 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10708 indirect_variable.
10709 * eval.c (lisp_indirect_variable): New fun.
10710 (Fuser_variable_p): Use it.
10711
10712 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10713
10714 * lisp.h (indirect_variable):
10715 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10716 Use Lisp_Symbol pointers rather than Lisp_Object.
10717 Adjust callers.
10718 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10719 To this end, change calling-convention.
10720
10721 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10722 if some non-hidden buffers are selected by string&pred.
10723
10724 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
10725
10726 * process.c (wait_reading_process_output): Always check status
10727 when in batch mode.
10728
10729 2008-05-19 Kenichi Handa <handa@m17n.org>
10730
10731 * font.c (font_list_entities): Fix handling of cache.
10732 (font_matching_entity): Likewise.
10733
10734 * ftfont.c (cs_iso8859_1): Delete.
10735 (ft_face_cache): New variable.
10736 (struct ftfont_info): New member fc_charset_idx.
10737 (ftfont_build_basic_charsets): Delete.
10738 (fc_charset_table): New variable.
10739 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10740 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10741 Callers changed.
10742 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10743 (ftfont_spec_pattern): New argument fc_charset_idx.
10744 Check registry more rigidly. Change callers.
10745 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10746 change of :font-entity property of the font.
10747
10748 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10749 property of the font.
10750
10751 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
10752
10753 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10754 (Funencodable_char_position, Fcheck_coding_systems_region)
10755 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10756 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10757 (Ffind_operation_coding_system, Fset_coding_system_priority)
10758 (Fcoding_system_eol_type): Doc fixes.
10759
10760 2008-05-17 Glenn Morris <rgm@gnu.org>
10761
10762 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10763
10764 2008-05-16 Eli Zaretskii <eliz@gnu.org>
10765
10766 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10767 and st_gid.
10768
10769 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10770 HAVE_WINDOW_SYSTEM is not defined.
10771
10772 * xfaces.c (merge_face_ref, merge_face_vectors)
10773 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10774 HAVE_WINDOW_SYSTEM is defined.
10775 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10776
10777 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10778
10779 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10780
10781 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10782
10783 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10784
10785 2008-05-15 Kenichi Handa <handa@m17n.org>
10786
10787 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10788 preference.
10789
10790 2008-05-15 Glenn Morris <rgm@gnu.org>
10791
10792 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10793
10794 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
10795
10796 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10797 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10798
10799 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10800
10801 2008-05-15 Kenichi Handa <handa@m17n.org>
10802
10803 * ftfont.c (ftfont_list): Downcase family name to check generic
10804 families.
10805
10806 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10807 font-spec for QCfont value.
10808
10809 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10810 buffer. Check the return value of it.
10811
10812 2008-05-14 Jason Rumney <jasonr@gnu.org>
10813
10814 * w32term.c (w32_get_glyph_overhangs): Remove.
10815 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10816
10817 2008-05-14 Kenichi Handa <handa@m17n.org>
10818
10819 * font.c (font_prop_validate): Make nil a valid value.
10820 (font_clear_cache): Check if the cached vector of entities is nil
10821 or not.
10822
10823 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10824
10825 * emacs.c (main_thread): Conditionalize on
10826 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10827 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10828
10829 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10830 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10831 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10832
10833 2008-05-14 Kenichi Handa <handa@m17n.org>
10834
10835 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10836 has no corresponding coding system.
10837
10838 2008-05-14 Jason Rumney <jasonr@gnu.org>
10839
10840 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10841
10842 * w32font.h (w32font_open_internal): Update declaration.
10843
10844 * w32font.c (w32font_open_internal): Change last argument from
10845 w32font_info struct to font object. Fill in font object from
10846 font_entity. Get Outline metrics if possible. Use them to
10847 calculate underline position and thickness. Use xlfd name as name
10848 property. Don't set codepage.
10849 (w32font_open): Pass font_object to w32font_open_internal. Don't
10850 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10851 (w32font_draw): Use s->font.
10852 (clear_cached_metrics): Don't clear non-existent blocks.
10853
10854 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10855 font was not found.
10856 (x_draw_glyph_string): Use underline position and thickness from font.
10857
10858 * w32uniscribe.c (uniscribe_open): Pass font_object to
10859 w32font_open_internal.
10860
10861 2008-05-14 Kenichi Handa <handa@m17n.org>
10862
10863 These changes are to delete all legacy font-handling codes, and
10864 make Emacs use only font-backends.
10865
10866 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10867 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10868
10869 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10870
10871 * charset.h (Vcharset_non_preferred_head)
10872 (Vcurrent_iso639_language): Extern them.
10873
10874 * charset.c (Vcharset_non_preferred_head): New variable.
10875 (Vcurrent_iso639_language): New variable.
10876 (syms_of_charset): Declare it as a Lisp variable.
10877 (char_charset): Don't check non preferred charsets. As a last
10878 resort, return charset_unicode.
10879 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10880
10881 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10882 conditionals. Don't check enable_font_backend. Delete all codes
10883 used only when USE_FONT_BACKEND is not defined.
10884
10885 * dispextern.h (struct glyph_string): Change type of `font' to
10886 `struct font *'.
10887 (struct glyph_string): New member underline_position and
10888 underline_thickness.
10889 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10890 (struct face): Change type of `font' to `struct font *'. Remove
10891 members `font_name', `font_info_id'.
10892 (per_char_metric, encode_char): Delete externs.
10893 (calc_pixel_width_or_height): Adjust the prototype.
10894
10895 * emacs.c (enable_font_backend): Delete extern.
10896 (main): Don't set enable_font_backend. Don't check the command
10897 line argument "-disable-font-backend".
10898
10899 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10900 (enum font_property_index): New members FONT_DPI_INDEX,
10901 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10902 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10903 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10904 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10905 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10906 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10907 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10908 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10909 (struct font_spec, struct font_entity): New structs.
10910 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10911 (struct font): Many members from old "struct font_info" moved to
10912 here. Members font and entity deleted.
10913 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10914 the new font-related objects.
10915 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10916 (CHECK_FONT_GET_OBJECT): Likewise.
10917 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10918 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10919 (struct font_driver): New members case_sensitive anc check. Type
10920 of the member list and open changed.
10921 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10922 (font_symbolic_width, font_find_object, font_get_spec)
10923 (font_set_lface_from_name): Delete extern.
10924 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10925
10926 * font.c: Include <strings.h>.
10927 (enable_font_backend): Delete it.
10928 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10929 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10930 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10931 (null_string): Delete it.
10932 (null_vector): Make it static.
10933 (font_family_alist): Delete it.
10934 (Qnormal): Extern it.
10935 (QCextra, QClanguage): Delete it.
10936 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10937 (font_make_spec, font_make_entity, font_make_object)
10938 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10939 the string. Callers changed.
10940 (font_pixel_size): Adjusted for the format change of font-related
10941 objects.
10942 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10943 (font_style_to_value, font_style_symbolic): New function.
10944 (build_font_family_alist): Delete it.
10945 (font_registry_charsets): Use Fassoc_string instead of
10946 assq_no_quit.
10947 (font_prop_validate_symbol): Don't return null_string.
10948 (font_prop_validate_style): Adjusted for the change of
10949 style-related values in a font vector.
10950 (font_property_table): Delete entries for QClanguage and
10951 QCantialias, add entries for QCavgwidth.
10952 (get_font_prop_index): Delete the 2nd argument FROM.
10953 (font_prop_validate): Arguments changed.
10954 (font_put_extra): Adjusted for the change of font-related objects.
10955 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10956 (font_parse_fcname, font_unparse_fcname)
10957 (font_prepare_composition): Likewise.
10958 (font_parse_family_registry): Renamed from font_merge_old_spec.
10959 (otf_open): Delete the 1st arg entity.
10960 (font_otf_capability): Adjusted for the above change.
10961 (font_score): New arg alternate_families. Adjusted for the change
10962 of font-related objects.
10963 (font_sort_entites): New arg best_only.
10964 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10965 Delete them.
10966 (font_match_p): Check alternate families.
10967 (font_find_object): Delete it.
10968 (font_check_object): New function.
10969 (font_clear_cache): Adjusted for the change of font-related objects.
10970 (font_delete_unmatched): New arg.
10971 (font_list_entities): Call font_driver->list with a spec that
10972 doesn't specify style-related properties.
10973 (font_matching_entity): Arguments changed. Caller changed.
10974 (font_open_entity): Adjusted for the change of font-related objects.
10975 (font_close_object, font_has_char, font_encode_char)
10976 (font_get_name, font_get_spec): Likewise.
10977 (font_spec_from_name, font_clear_prop, font_update_lface):
10978 New functions.
10979 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10980 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10981 (font_at): Adjusted for the change of font-related objects.
10982 (font_range): New function.
10983 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10984 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10985 (Fcopy_font_spec, Fmerge_font_spec): New function.
10986 (Ffont_family_list): Renamed from list-families.
10987 (Finternal_set_font_style_table): Arguments changed.
10988 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10989 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10990 change of font-related objects.
10991 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10992
10993 * fontset.h (struct font_info): Delete it. Most members go to
10994 struct font.
10995 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10996 (enum FONT_SPEC_INDEX): Delete it.
10997 (font_info, list_fonts_func, load_font_func, query_font_func)
10998 (set_frame_fontset_func, find_ccl_program_func)
10999 (get_font_repertory_func, new_fontset_from_font_name): Delete
11000 externs.
11001 (fontset_from_font_name): Extern it.
11002 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11003 (FONT_INFO_FROM_FACE): Deleted.
11004 (face_for_font): Adjust prototype.
11005
11006 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11007 conditionals. Don't check enable_font_backend. Delete all codes
11008 used only when USE_FONT_BACKEND is not defined.
11009 (get_font_info_func, list_font_func, load_font_func)
11010 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11011 (get_font_repertory_func): Delete them.
11012 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11013 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11014 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11015 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11016 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11017 (fontset_compare_rfontdef): New function.
11018 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11019 rfont-defs by qsort. Adjusted for the change of font-group vector.
11020 (load_font_get_repertory): Deleted.
11021 (fontset_find_font): Use new macros to ref/set elements of
11022 font-def and rfont-def.
11023 (fontset_font): Fix the timing of remembering that no font for C.
11024 (free_face_fontset): Do nothing if the face has no fontset.
11025 (face_suitable_for_char_p): Use new macros to ref/set elements of
11026 rfont-def.
11027 (face_for_char): Likewise. Call face_for_char with font_object.
11028 (fs_load_font): Delete. Delete #pragma surrounding it.
11029 (fs_query_fontset): Use strcasecmp instead of strcmp.
11030 (generate_ascii_font_name): Adjusted for the format change of
11031 font-spec.
11032 (Fset_fontset_font): Likewise. Use new macros to set elements of
11033 font-def.
11034 (Fnew_fontset): Use font_unparse_xlfd to generate
11035 FONTSET_ASCII (fontset).
11036 (new_fontset_from_font_name): Deleted.
11037 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11038 a fontset is already created for the font. FIx updating of
11039 Vfontset_alias_alist.
11040 (fontset_ascii_font): Deleted.
11041 (Ffont_info): Adjusted for the format change of font-spec.
11042 (Finternal_char_font): Likewise.
11043 (Ffontset_info): Likewise.
11044 (syms_of_fontset): Don't check load_font_func.
11045
11046 * fns.c (internal_equal): Handle PREV_FONT.
11047
11048 * frame.h: Delete USE_FONT_BACKEND conditional.
11049
11050 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11051 conditionals. Don't check enable_font_backend. Delete all codes
11052 used only when USE_FONT_BACKEND is not defined.
11053 (x_set_font): Call x_new_font, not x_new_fontset2.
11054 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11055 already set for the frame.
11056
11057 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11058 a font-entity by font_make_entity. Use font_intern_prop instead
11059 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11060 font property. If a font is scalable, set avgwidth property to 0.
11061 Set font-entity property by font_put_extra.
11062 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11063 (ffont_driver): Adjusted for the change of struct font_driver.
11064 (ftfont_spec_pattern): New function.
11065 (ftfont_list): Return a list, not vector.
11066 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11067 (ftfont_list_family): Don't downcase names.
11068 (ftfont_free_entity): Deleted.
11069 (ftfont_open): Return a font-object. Adjusted for the change of
11070 struct font. Get underline_thickness and underline_position from
11071 font property. Don't update dpyinfo->smallest_font_height and
11072 dpyinfo->smallest_char_width.
11073 (ftfont_close): Don't free `struct font'.
11074 (ftfont_has_char): Adjusted for the format change of font-entity.
11075 (ftfont_encode_char, ftfont_text_extents): Likewise.
11076
11077 * ftxfont.c (ftxfont_list): Return a list, not vector.
11078 (ftxfont_open): Return a font-object. Adjusted for the change of
11079 struct font. Get underline_thickness and underline_position from
11080 font property. Don't update dpyinfo->smallest_font_height and
11081 dpyinfo->smallest_char_width.
11082 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11083 (ftxfont_draw): Adjusted for the change of struct font.
11084
11085 * image.c (image_ascent): Don't include "charset.h". Include
11086 "character.h" and "font.h".
11087
11088 * lisp.h (enum pvec_type): New member PREV_FONT.
11089 (Fassoc_string): EXFUN it.
11090
11091 * print.c: Include font.h.
11092 (print_object): Handle font-related objects.
11093
11094 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11095 conditionals. Don't check enable_font_backend. Delete all codes
11096 used only when USE_FONT_BACKEND is not defined.
11097 (handle_auto_composed_prop): Do nothing if it->f is not on a
11098 window system. Check how many following characters can be
11099 displayed by the same font.
11100 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11101 'struct font *'.
11102 (get_char_face_and_encoding): Assign the whole encoding task to
11103 the `encode-char' method of a font driver.
11104 (fill_composite_glyph_string): Adjusted for the change of `struct
11105 face' and `struct glyph_string'.
11106 (fill_glyph_string): Likewise.
11107 (get_per_char_metric): Arguments changed.
11108 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11109 and `struct glyph_string'.
11110 (produce_stretch_glyph, calc_line_height_property)
11111 (x_produce_glyphs): Likewise.
11112
11113 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11114 conditionals. Don't check enable_font_backend. Delete all codes
11115 used only when USE_FONT_BACKEND is not defined. Use
11116 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11117 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11118 (Qp): Extern them.
11119 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11120 Deleted.
11121 (struct font_name): Deleted.
11122 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11123 (compare_fonts_by_sort_order): New function.
11124 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11125 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11126 Deleted.
11127 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11128 compare_fonts_by_sort_order.
11129 (Fx_font_family_list): Call Ffont_family_list.
11130 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11131 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11132 (face_symbolic_slant, face_symbolic_swidth)
11133 (split_font_name_into_vector, build_font_name_from_vector)
11134 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11135 (font_rescale_ratio, split_font_name, build_font_name)
11136 (free_font_names, sort_fonts, x_face_list_fonts)
11137 (face_font_available_p, sorted_font_list, cmp_font_names)
11138 (font_list_1, concat_font_list, font_list, remove_duplicates):
11139 Deleted.
11140 (Fx_list_fonts): Use Ffont_list.
11141 (LFACE_AVGWIDTH): Deleted.
11142 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11143 by FONTP.
11144 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11145 (set_lface_from_font_name): Delete it.
11146 (set_lface_from_font): Renamed from
11147 set_lface_from_font_and_fontset. Caller changed. Don't set
11148 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11149 for face.
11150 (merge_face_vectors): Copy font-spec if necessary.
11151 Clear properties of the font-spec if necessary.
11152 (merge_face_ref): Clear properties of the font-spec if necessary.
11153 (Finternal_set_lisp_face_attribute): Likewise.
11154 (set_font_frame_param): Use font_load_for_lface to load a
11155 font-object, and call Fmodify_frame_parameters with it.
11156 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11157 font name by Ffont_xlfd_name.
11158 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11159 QCslant, and QCwidth.
11160 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11161 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11162 Compare fonts by EQ.
11163 (lookup_non_ascii_face): Deleted.
11164 (face_for_font): The 2nd argument changed.
11165 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11166 Check atomic font properties by case insensitive.
11167 (realize_non_ascii_face): Set face->overstrike correctly.
11168 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11169 (dump_realized_face): Get font name from
11170 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11171
11172 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11173 conditionals. Don't check enable_font_backend. Delete all codes
11174 used only when USE_FONT_BACKEND is not defined.
11175 (xic_create_xfontset): Original code deleted and renamed from
11176 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11177 (x_make_gc): Don't set GCFont in GCs.
11178 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11179 opened by "fixed".
11180 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11181 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11182 get_font_repertory_func.
11183
11184 * xfont.c: Include <stdlib.h> and "ccl.h".
11185 (struct xfont_info): New structure.
11186 (xfont_query_font): Deleted.
11187 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11188 moved from xterm.c.
11189 (xfont_driver): Adjusted for the change of struct font_driver.
11190 (compare_font_names): New function.
11191 (xfont_list_pattern): Sort font names case insensitively. Make
11192 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11193 (xfont_list): Return a list, not vector.
11194 (xfont_match): If the font doesn't have QCname property, generate
11195 a name from the other font properties.
11196 (xfont_open): Return a font-object. Adjusted for the change of
11197 struct font. Get underline_thickness and underline_position from
11198 font property. Don't update dpyinfo->smallest_font_height and
11199 dpyinfo->smallest_char_width.
11200 (xfont_close): Don't free struct font.
11201 (xfont_prepare_face): Adjusted for the change of struct font.
11202 (xfont_done_face): Deleted.
11203 (xfont_has_char): Adjusted for the change of struct font.
11204 (xfont_encode_char, xfont_draw): Likewise.
11205 (xfont_check): New function.
11206
11207 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11208 callback function.
11209 (xftfont_match): Adjusted for the format change of font-entity.
11210 (xftfont_open): Adjusted for the format change of font-entity and
11211 font-object. Adjusted for the change of struct font. Return a
11212 font-object. Don't update dpyinfo->smallest_font_height and
11213 dpyinfo->smallest_char_width.
11214 (xftfont_close): Block input while calling XftFontClose.
11215 (xftfont_prepare_face): Don't block input while calling
11216 xftfont_get_colors. Adjusted for the change of struct font.
11217 (xftfont_shape): Return value of error case fixed.
11218
11219 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11220
11221 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11222 conditionals.
11223 (FONT_WIDTH): Return (f)->max_width.
11224 (struct x_display_info): Delete member `font'.
11225 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11226 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11227 (struct x_output): Change type of `font' to `struct font *'.
11228
11229 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11230 conditionals. Don't check enable_font_backend. Delete all codes
11231 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11232 (x_per_char_metric, x_encode_char): Deleted.
11233 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11234 (x_compute_glyph_string_overhangs): Adjusted for the change of
11235 `struct face'.
11236 (x_draw_glyph_string_foreground)
11237 (x_draw_composite_glyph_string_foreground): Likewise.
11238 (x_draw_glyph_string): Likewise. Use font->underline_position and
11239 font->underline_thickness.
11240 (x_new_font): Renamed from x_new_fontset2.
11241 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11242 (x_check_font): Call `check' method of a font driver.
11243 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11244 (x_query_font, x_get_font_repertory): Deleted.
11245 (x_find_ccl_program): Renamed and moved to xfont.c.
11246 (x_redisplay_interface): Adjusted for the change of `struct
11247 redisplay_interface'.
11248
11249 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11250 conditionals. Don't check enable_font_backend. Delete all codes
11251 used only when USE_FONT_BACKEND is not defined. Surround non-used
11252 code by "#ifdef OLD_FONT" and "endif".
11253 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11254
11255 * w32font.h (struct w32font_info): New member.
11256 (FONT_COMPAT): New macro.
11257 (w32font_open_internal): Prototype adjusted.
11258
11259 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11260 OLD_FONT" and "endif".
11261
11262 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11263 conditionals. Don't check enable_font_backend. Delete all codes
11264 used only when USE_FONT_BACKEND is not defined.
11265 (w32font_open): Return a font-object. Make a font-object by
11266 font_make_object. Adjusted for the change of struct w32font_info.
11267 (w32font_close): Don't free struct font. Adjusted for the change
11268 of struct w32font_info.
11269 (w32font_encode_char, w32font_text_extents, w32font_draw):
11270 Adjusted for the change of struct w32font_info.
11271 (w32font_draw): Likewise.
11272 (w32font_list_internal): Return a list, not vector.
11273 (w32font_open_internal): Change the 4th arg to font-object.
11274 Adjusted for the change of struct w32font_info and font-object format.
11275 (add_font_name_to_list): Don't downcase names.
11276 (w32_enumfont_pattern_entity): Make a font-entity by
11277 font_make_entity. Adjusted for the format change of font-entity.
11278 Use FONT_SET_STYLE to set a style-related font property. If a
11279 font is scalable, set avgwidth property to 0. Set font-entity
11280 property by font_put_extra.
11281 (font_matches_spec): Adjusted for the format change of font-entity.
11282 (w32_weight_table, w32_decode_weight): New variables.
11283 (w32_encode_weight): New function.
11284 (fill_in_logfont): Adjusted for the format change of font-spec.
11285 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11286 weight value.
11287 (w32font_driver): Adjusted for the change of struct font_driver.
11288
11289 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11290 conditionals. Don't check enable_font_backend. Surround non-used
11291 code by "#ifdef OLD_FONT" and "endif".
11292 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11293 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11294
11295 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11296 conditionals. Don't check enable_font_backend. Delete all codes
11297 used only when USE_FONT_BACKEND is not defined. Surround non-used
11298 code by "#ifdef OLD_FONT" and "endif".
11299
11300 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11301 (uniscribe_open): Return value changed to font-object.
11302 Adjusted for the format change of font-object.
11303 (uniscribe_otf_capability): Adjusted for the change of struct font.
11304 (add_opentype_font_name_to_list): Don't downcase names.
11305 (uniscribe_font_driver): Adjusted for the change of struct
11306 font_driver.
11307
11308 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
11309
11310 * dispnew.c (update_frame_1): Check if tty output is still valid
11311 before flushing it.
11312
11313 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11314
11315 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11316 to Gtk+ menus.
11317
11318 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11319
11320 * dired.c (file_name_completion): Tweak the code so as to always do it
11321 in a single pass. Tighten the scope of some variables.
11322
11323 * dired.c (Qdefault_directory): New var.
11324 (file_name_completion): Use it instead of Fexpand_file_name.
11325 (syms_of_dired): Initialize it.
11326
11327 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11328
11329 * fileio.c (double_dollars): Remove dead code.
11330
11331 2008-05-10 Eli Zaretskii <eliz@gnu.org>
11332
11333 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11334 Mention w32-get-true-file-attributes in doc string.
11335
11336 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11337
11338 2008-05-09 Glenn Morris <rgm@gnu.org>
11339
11340 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11341 2008-04-23.
11342
11343 2008-05-09 Eli Zaretskii <eliz@gnu.org>
11344
11345 Support for reporting owner and group of each file on MS-Windows:
11346 * dired.c (stat_uname, stat_gname): New functions, with special
11347 implementation for w32.
11348 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11349
11350 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11351 (dflt_group_name): New static variable.
11352 (dflt_group): Rename from the_group.
11353 (init_user_info): Init dflt_group fields. Get user's group name
11354 from LookupAccountSid.
11355 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11356 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11357 New initialization states.
11358 (globals_of_w32): Initialize them to zero. Initialize the default
11359 group name to "None".
11360 (GetFileSecurity_Name): New global var, the name of the function
11361 to call for GetFileSecurity.
11362 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11363 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11364 (get_file_security, get_security_descriptor_owner)
11365 (get_security_descriptor_group, is_valid_sid)
11366 (get_file_security_desc, get_rid, get_name_and_id)
11367 (get_file_owner_and_group): New functions.
11368 (stat): Use get_file_security_desc and get_file_owner_and_group to
11369 report the owner and primary group of each file. Don't ignore the
11370 high 32 bits of file's size, now that st_size is 64-bit wide.
11371 Fix test when to get true file attributes.
11372 (init_user_info): Use get_rid instead of equivalent inline code.
11373 (fstat): Don't ignore the high 32 bits of file's size.
11374
11375 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
11376
11377 * image.c (png_load): Use correct bit-depth for setting background
11378 color.
11379
11380 2008-05-08 Eli Zaretskii <eliz@gnu.org>
11381
11382 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11383 epa-hook.elc.
11384
11385 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
11386
11387 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11388
11389 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11390
11391 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11392 because the original parameters are in pure storage now.
11393 (mac_window): Remove unused params. Update callers.
11394
11395 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11396
11397 * lread.c (substitute_object_recurse): Use lower-level primitives.
11398 Don't signal errors when traversing sub-char-tables.
11399 Don't loop over all the possible characters when traversing char-tables.
11400
11401 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11402 just like we do in print.c.
11403
11404 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11405
11406 * minibuf.c (Ftry_completion): Remove code left over from when we used
11407 scmp instead of Fcompare_strings.
11408
11409 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
11410
11411 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11412
11413 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11414
11415 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11416 Create bitmap context in native byte order.
11417
11418 * macterm.c (XDrawLine)
11419 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11420 context in native byte order.
11421
11422 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11423
11424 * config.in: Regenerate.
11425
11426 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11427 New definitions for Image I/O support.
11428 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11429 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11430 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11431 (mac_data_provider_release_data, image_load_image_io)
11432 [USE_MAC_IMAGE_IO]: New functions.
11433 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11434 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11435 (init_image_func_pointer) [MAC_OSX]: Remove function.
11436 (image_load_quartz2d) [MAC_OSX]: Check availability of
11437 CGImageCreateWithPNGDataProvider at compile time.
11438 Use lowercase `false' for boolean constant.
11439 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11440 Use image_load_image_io.
11441 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11442 Don't check MyCGImageCreateWithPNGDataProvider.
11443 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11444 Don't call init_image_func_pointer.
11445
11446 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11447
11448 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11449 Make variable non-static.
11450 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11451 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11452
11453 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11454 (RED_FROM_ULONG): Mask off higher bits.
11455 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11456
11457 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11458 Include AvailabilityMacros.h.
11459 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11460 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11461
11462 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11463
11464 * chartab.c (Fset_char_table_range): If range is t, really set all
11465 chars to that value.
11466
11467 2008-05-03 Eli Zaretskii <eliz@gnu.org>
11468
11469 * dired.c (Ffile_attributes): Don't allow the device number become
11470 negative.
11471
11472 2008-05-02 Daiki Ueno <ueno@unixuser.org>
11473
11474 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11475
11476 2008-05-02 Juri Linkov <juri@jurta.org>
11477
11478 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11479 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11480 DEFAULT argument as a list of default values in docstrings.
11481
11482 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
11483
11484 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11485
11486 2008-05-01 Martin Rudalics <rudalics@gmx.at>
11487
11488 * dispnew.c (change_frame_size_1): Preserve small windows when
11489 shrinking frames by calling set_window_height|width with third
11490 arg 2.
11491
11492 * window.h (struct window): Replace field too_small_ok by field
11493 resize_proportionally.
11494
11495 * window.c (make_window): Initialize resize_proportionally.
11496 (enlarge_window): Temporarily set resize_proportionally to make
11497 sure that shrink_windows does scale the window proportionally.
11498 (shrink_windows): When window has resize_proportionally set try
11499 to shrink it proportionally by stealing from other windows.
11500 (struct saved_window, Fset_window_configuration)
11501 (compare_window_configurations): Handle resize_proportionally.
11502 (WINDOW_TOTAL_SIZE): New macro.
11503 (window_min_size, shrink_windows, size_window): Use it.
11504 (check_min_window_sizes): Remove. Invalid values of
11505 window-min-height|width are handled by window_min_size_2 now.
11506 (size_window, Fsplit_window, enlarge_window)
11507 (adjust_window_trailing_edge, grow_mini_window): Don't call
11508 check_min_window_sizes.
11509 (window_min_size_2, window_min_size_1, window_min_size):
11510 New argument safe_p for retrieving "safe" minimum sizes.
11511 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11512 (adjust_window_trailing_edge, grow_mini_window):
11513 Adjust arguments of window_min_size... functions.
11514 (shrink_windows): Argument min_size removed. New argument
11515 safe_p allows shrinking windows to their safe minimum sizes.
11516 Calculate minimum size and decide whether a window shall be
11517 deleted for each window individually.
11518 (size_window): When nodelete_p equals 2, tell shrink_windows to
11519 delete windows only if their new minimum size is no more safe.
11520 (shrink_window_lowest_first): Call window_min_size_1 to make
11521 sure to preserve modeline of bottom-most window when resizing
11522 the minibuffer.
11523 (Fset_window_configuration, Fcurrent_window_configuration)
11524 (compare_window_configurations): Do not handle
11525 window-min-height|width any more.
11526 (syms_of_window): Clarify window-min-height|width doc-strings.
11527
11528 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11529
11530 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11531 some more. Copy some of the code from Ftry_completions.
11532 Remove special case code that dates back to initial revision when the
11533 slash was only added when necessary and that can't trigger nowadays.
11534
11535 2008-04-27 Kenichi Handa <handa@m17n.org>
11536
11537 * font.c (font_prop_validate): Signal `error' instead of `font'.
11538
11539 2008-04-29 Jason Rumney <jasonr@gnu.org>
11540
11541 * w32fns.c (Fw32_battery_status): New defun.
11542 (syms_of_w32fns): Defsubr it.
11543
11544 2008-04-28 Andreas Schwab <schwab@suse.de>
11545
11546 * dired.c (file_name_completion): Fix another mixing of encoded
11547 and decoded names.
11548
11549 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
11550
11551 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11552
11553 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
11554
11555 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11556
11557 2008-04-27 Andreas Schwab <schwab@suse.de>
11558
11559 * dired.c (file_name_completion): Fix inappropriate mixing of
11560 encoded and decoded names.
11561
11562 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11563
11564 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11565
11566 2008-04-26 Eli Zaretskii <eliz@gnu.org>
11567
11568 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11569 2008-03-31, it's not needed anymore with `struct stat' definition
11570 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11571 for the same reasons.
11572
11573 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11574
11575 * m/sparc.h: Additional redefinitions for GNU/Linux.
11576
11577 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11578
11579 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11580 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11581 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11582 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11583 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11584 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11585 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11586 Likewise.
11587
11588 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11589 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11590 (mac_ax_number_of_characters): Add externs.
11591 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11592 [USE_MAC_TSM]: Likewise.
11593 (mac_handle_text_input_event) [MAC_OSX]:
11594 Handle kEventTextInputOffsetToPos for no active input area case.
11595 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11596 (mac_handle_document_access_event)
11597 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11598 (install_application_handler) [MAC_OSX]: Register handlers for
11599 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11600 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11601 Register mac_handle_document_access_event.
11602
11603 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11604 Make functions non-static.
11605
11606 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11607
11608 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11609 (read_file_name_completion_ignore_case, insert_default_directory)
11610 (Qdefault_directory): Move to minibuffer.el.
11611 (Fread_file_name): Call the new `read-file-name' instead.
11612
11613 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11614
11615 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11616 Make function non-static.
11617 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11618 Remove function.
11619 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11620 Move to mactoolbox.c.
11621 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11622
11623 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11624 (mac_rect_make): New macro.
11625
11626 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11627 instead of float.
11628 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11629 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11630 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11631 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11632 CGRectMake.
11633 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11634 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11635 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11636 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11637 instead of WindowRef in argument type.
11638 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11639 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11640 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11641 instead of DISPLAY. All uses changed.
11642 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11643 (x_calc_absolute_position): Simplify so as not to use
11644 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11645
11646 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11647 instead of WindowRef in argument type.
11648 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11649 [TARGET_API_MAC_CARBON]: Remove externs.
11650 (create_apple_event, mac_event_parameters_to_lisp)
11651 [TARGET_API_MAC_CARBON]: Add externs.
11652
11653 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11654 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11655 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11656 is clicked.
11657 (x_activate_menubar): Remove extern for saved_menu_event_location.
11658 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11659 Move from mac.c.
11660
11661 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11662
11663 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11664 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11665
11666 2008-04-23 Jason Rumney <jasonr@gnu.org>
11667
11668 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11669 attributes only for local files.
11670
11671 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11672 default to Qlocal.
11673
11674 2008-04-22 Juri Linkov <juri@jurta.org>
11675
11676 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11677 read-buffer-to-switch instead of using the letter "B".
11678
11679 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11680
11681 * fileio.c (Qdefault_directory): New variable.
11682 (Fread_file_name): Use it to pass `dir' to the completion functions.
11683
11684 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
11685
11686 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11687
11688 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11689
11690 * keyboard.c (Vpre_help_message): Remove.
11691 (show_help_echo): Remove default C code.
11692
11693 * dired.c (directory_files_internal, file_name_completion):
11694 Only call ENCODE_FILE if the string is indeed decoded.
11695
11696 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11697
11698 * Makefile.in (TOOLKIT_DEFINES): Remove.
11699 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11700
11701 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11702
11703 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11704 (mactoolbox.o): New target.
11705
11706 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11707 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11708
11709 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11710 Use mac_set_frame_window_background instead of XSetWindowBackground.
11711 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11712 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11713 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11714 instead of SetWindowTitleWithCFString.
11715 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11716 Move function to mactoolbox.c.
11717 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11718 Use mac_set_window_modified instead of SetWindowModified.
11719 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11720 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11721 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11722 FrontNonFloatingWindow. Use mac_activate_window instead of
11723 ActivateWindow. Use mac_active_non_floating_window instead of
11724 ActiveNonFloatingWindow.
11725 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11726 Use mac_show_hourglass and mac_hide_hourglass.
11727 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11728 instead of GetGlobalMouse.
11729 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11730 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11731 Use mac_bring_window_to_front instead of BringToFront.
11732 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11733 mactoolbox.c.
11734 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11735 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11736 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11737 mactoolbox.c.
11738
11739 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11740 (XtPointer): Move typedef from macmenu.c.
11741 (enum button_type): Move enum from macmenu.c.
11742 (widget_value): Move typedef from macmenu.c.
11743 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11744 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11745 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11746 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11747 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11748 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11749 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11750 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11751 (Selection): Move typedef from macselect.c.
11752 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11753 macterm.c.
11754 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11755 (mac_is_window_collapsed, mac_bring_window_to_front)
11756 (mac_send_window_behind, mac_hide_window, mac_show_window)
11757 (mac_collapse_window, mac_front_non_floating_window)
11758 (mac_active_non_floating_window, mac_activate_window)
11759 (mac_move_window_structure, mac_move_window, mac_size_window)
11760 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11761
11762 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11763 (enum mac_menu_kind): Move enum to mactoolbox.c.
11764 (min_menu_id): Move variable to mactoolbox.c.
11765 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11766 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11767 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11768 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11769 [TARGET_API_MAC_CARBON]: Likewise.
11770 (XtPointer): Move typedef to macgui.h.
11771 (enum button_type): Move enum to macgui.h.
11772 (widget_value): Move typedef to macgui.h.
11773 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11774 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11775 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11776 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11777 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11778 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11779 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11780 (popup_activated_flag): Make variable non-static.
11781 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11782 (add_menu_item, fill_menu, dispose_menus):
11783 Move functions to mactoolbox.c.
11784 (restore_show_help_function, menu_target_item_handler)
11785 (install_menu_target_item_handler, mac_handle_dialog_event)
11786 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11787 [TARGET_API_MAC_CARBON]: Likewise.
11788 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11789 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11790 (find_and_call_menu_selection, name_is_separator): Make function
11791 non-static.
11792 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11793 to mactoolbox.c.
11794 (set_frame_menubar): Don't call install_menu_quit_handler.
11795 (menu_item_selection): New variable.
11796 (mac_menu_show): Use create_and_show_popup_menu.
11797 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11798 selection but set variable menu_item_selection. All uses changed.
11799 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11800 Call install_menu_quit_handler. Move to mactoolbox.c.
11801
11802 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11803 (Selection): Move typedef to macgui.h.
11804 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11805 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11806 Make variables non-static.
11807 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11808 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11809 Make functions non-static.
11810 (Vmac_service_selection) [MAC_OSX]: Likewise.
11811 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11812 (mac_valid_selection_target_p, mac_clear_selection)
11813 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11814 (mac_put_selection_value, mac_selection_has_target_p)
11815 (mac_get_selection_value, mac_get_selection_target_list)
11816 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11817 Move functions to mactoolbox.c.
11818 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11819 Likewise.
11820 (copy_scrap_flavor_data, mac_handle_service_event)
11821 (install_service_handler) [MAC_OSX]: Likewise.
11822 (syms_of_macselect) <Vmac_dnd_known_types>:
11823 Use mac_dnd_default_known_types.
11824
11825 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11826 Move to mactoolbox.c.
11827 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11828 (Fx_selection_owner_p): Add EXFUN.
11829 (install_window_handler, remove_window_handler, XSetWindowBackground):
11830 Remove externs.
11831 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11832 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11833 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11834 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11835 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11836 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11837 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11838 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11839 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11840 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11841 (mac_valid_selection_target_p, mac_clear_selection)
11842 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11843 (mac_put_selection_value, mac_selection_has_target_p)
11844 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11845 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11846 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11847 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11848 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11849 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11850 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11851 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11852 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11853
11854 * mactoolbox.c: New file.
11855
11856 2008-04-18 Jason Rumney <jasonr@gnu.org>
11857
11858 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11859
11860 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11861
11862 * character.c (Fmultibyte_char_to_unibyte):
11863 Return latin1 chars unchanged.
11864
11865 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11866 relocated if it points to `name'.
11867
11868 2008-04-17 Kenichi Handa <handa@m17n.org>
11869
11870 * data.c (Faset): Allow setting a multibyte character in an
11871 ASCII-only unibyte string.
11872
11873 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11874
11875 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11876
11877 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11878 done in config.h.
11879
11880 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
11881
11882 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11883 (Fchar_direction): Add usage in the docstring.
11884
11885 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
11886
11887 * keyboard.c (read_key_sequence): Remove always-true checks.
11888
11889 2008-04-14 Jason Rumney <jasonr@gnu.org>
11890
11891 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11892 compatibility struct, for better underline positioning.
11893
11894 2008-04-13 David Hansen <david.hansen@gmx.net>
11895
11896 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11897 string.
11898
11899 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11900
11901 * m/hp800.h (XUINT, XSET): Remove.
11902
11903 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
11904
11905 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11906 previous change.
11907
11908 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11909
11910 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11911 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11912
11913 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11914
11915 * keymap.h (map_keymap_canonical): Declare.
11916 * xmenu.c (single_keymap_panes): Use it.
11917
11918 2008-04-11 Glenn Morris <rgm@gnu.org>
11919
11920 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11921 set the target's value to that of the alias.
11922
11923 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11924
11925 * term.c (set_tty_color_mode): Left over typo.
11926
11927 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
11928
11929 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11930 only after check for file name handler functions. Signal, when
11931 native functionality is not supported.
11932 (syms_of_fileio): Declare it unconditionally.
11933
11934 2008-04-10 Jason Rumney <jasonr@gnu.org>
11935
11936 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11937 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11938
11939 * w32.c (logon_network_drive): Also logon to remote drives that
11940 are mapped to drive letters.
11941
11942 2008-04-10 Glenn Morris <rgm@gnu.org>
11943
11944 * xdisp.c (truncate-partial-width-windows): Doc fix.
11945
11946 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11947
11948 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11949 Move functions to minibuffer.el.
11950 (syms_of_fileio): Don't declare them.
11951
11952 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11953
11954 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11955 (syms_of_minibuf): Remove its initialization.
11956
11957 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11958
11959 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
11960
11961 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11962
11963 2008-04-09 Jason Rumney <jasonr@gnu.org>
11964
11965 * makefile.w32-in (distclean): Delete makefile too.
11966 (maintainer-clean): New target.
11967
11968 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11969
11970 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11971 for new font backend and composite cases.
11972
11973 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11974
11975 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11976 Most of the code moved to run_timers.
11977 (do_pending_atimers): Call run_timers.
11978 (run_timers): New function.
11979
11980 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11981 run atimers.
11982
11983 * process.c (wait_reading_process_output): The same as above.
11984
11985 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11986
11987 * minibuf.c (last_exact_completion): Remove variable.
11988 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11989 (complete_and_exit_1, complete_and_exit_2)
11990 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11991 (Fdisplay_completion_list, display_completion_list_1)
11992 (Fminibuffer_completion_help, Fself_insert_and_exit)
11993 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11994 minibuffer.el.
11995 (syms_of_minibuf): Remove corresponding initializations.
11996
11997 * keyboard.c (Qdeactivate_mark): New var.
11998 (command_loop_1): Use it to call `deactivate-mark'.
11999 (syms_of_keyboard): Initialize it.
12000
12001 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12002 to another frame.
12003 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12004 Don't call set_tty_color_mode.
12005 (store_frame_param): Reset previous_frame rather than call
12006 set_tty_color_mode.
12007 * term.c (set_tty_color_mode): Rewrite.
12008 * dispextern.h (set_tty_color_mode): New type.
12009 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12010
12011 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12012
12013 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12014 for generic chars, which do not exist any more in emacs-unicode.
12015
12016 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
12017
12018 * coding.c (detect_coding_emacs_mule)
12019 (Ffind_operation_coding_system): Fix typo.
12020
12021 2008-04-08 Jason Rumney <jasonr@gnu.org>
12022
12023 * w32uniscribe.c (SNAME): Extract only symbol name.
12024
12025 * w32font.h (struct w32_metric_cache): New struct.
12026 (w32font_info): Use it.
12027 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12028 (CACHE_BLOCKSIZE): New constants.
12029
12030 * w32font.c (Qja, Qko, Qzh): New symbols.
12031 (syms_of_w32font): Initialise them.
12032 (font_matches_spec): Use them to filter by language.
12033 (recompute_cached_metrics): Remove function.
12034 (compute_metrics, clear_cached_metrics): New functions.
12035 (w32font_encode_char): Use them to manage metric cache.
12036 (w32font_text_extents): Cache metrics for all glyphs on demand.
12037 Delay converting glyph indices to WORD until needed.
12038 (w32font_open_internal): Initialize metric cache to empty.
12039 (registry_to_w32_charset): Charset should always be a symbol.
12040 (fill_in_logfont, list_all_matching_fonts): Family should
12041 always be a symbol.
12042
12043 2008-04-06 Jason Rumney <jasonr@gnu.org>
12044
12045 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12046 Give up if glyph indices not supported. Use uniscribe obtained
12047 ABC widths for individual metrics. Map glyph clusters back to
12048 characters using fClusterStart flag. Return number of glyphs
12049 produced, not chars processed.
12050 (uniscribe_shape): Map char at FROM to current glyph.
12051
12052 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12053
12054 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12055 Use SetMenuItemHierarchicalMenu.
12056
12057 2008-04-05 Jason Rumney <jasonr@gnu.org>
12058
12059 * image.c (pbm_load): Allow color values up to 65535.
12060 Throw an error if max_color_idx is outside the supported range.
12061 Report an error when image size is invalid.
12062 Read two bytes at a time when raw images have max_color_idx above 255.
12063
12064 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12065
12066 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12067 cFileName a file name that includes `?' characters, use the 8+3
12068 alias in cAlternateFileName instead.
12069
12070 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12071
12072 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12073 append "CCL: Quitted" when the CCL program is quitted.
12074 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12075
12076 * ccl.h (struct ccl_program): New member quit_silently.
12077
12078 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
12079
12080 * search.c (compile_pattern_1): Treat non-nil and non-string of
12081 search-spaces-regexp as nil.
12082
12083 * minibuf.c (Fassoc_string): Tweak docstring.
12084
12085 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12086
12087 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12088 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12089 2008-03-14 to force inode be positive.
12090
12091 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12092 _S_* ones, since we now use our own sys/stat.h.
12093 (stat, fstat): Don't mangle the inode number.
12094 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12095
12096 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12097
12098 * frame.h (struct frame): Give one more bit to `visible' since we use
12099 values larger than 1 to indicate obscured frames on ttys.
12100
12101 * keymap.c (Qkeymap_canonicalize): New var.
12102 (Fmap_keymap_internal): New fun.
12103 (describe_map): Use keymap-canonicalize.
12104
12105 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12106 (Fundo_boundary): Set them.
12107 (syms_of_undo): Initialize them.
12108 (record_point): Use them instead of last_point_position*.
12109 (last_undo_buffer): Change type.
12110
12111 2008-04-04 Jason Rumney <jasonr@gnu.org>
12112
12113 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12114 (recompute_cached_metrics): Don't set ascent and descent per char.
12115
12116 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12117 (uniscribe_check_otf): Add GC protection before consing.
12118 Rearrange loop for counting features.
12119
12120 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12121
12122 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12123 buffer with byte-size of source buffer.
12124
12125 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
12126
12127 * callint.c (Fcall_interactively): Handle temporary region even
12128 when shift-select-mode is off.
12129
12130 2008-04-03 Jason Rumney <jasonr@gnu.org>
12131
12132 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12133
12134 2008-04-03 Kenichi Handa <handa@m17n.org>
12135
12136 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12137 (CATEGORY_MASK_UTF_16): Likewise.
12138 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12139 binary file.
12140 (detect_coding): Add null-byte detection for a binary file.
12141 (detect_coding_system): Likewise.
12142
12143 2008-04-03 Jason Rumney <jasonr@gnu.org>
12144
12145 * w32uniscribe.c: New file.
12146
12147 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12148
12149 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12150
12151 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12152 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12153 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12154 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12155 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12156 (Qphonetic): New symbols.
12157 (syms_of_w32font): Initialize them.
12158 (font_supported_scripts): Use them.
12159 (w32font_list_family): List all charsets.
12160 (w32font_text_extents, recompute_cached_metrics): Fix metric
12161 calculations.
12162 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12163 Give opentype fonts their own format.
12164 (font_matches_spec): New arguments backend and logfont.
12165 Handle :otf spec for uniscribe backend.
12166 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12167 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12168
12169 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12170 font backend.
12171 (globals_of_w32fns): Initialize uniscribe font backend.
12172
12173 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12174 dependencies.
12175 (w32uniscribe.$(O)): New file to build.
12176 (FONT_OBJ): Include w32uniscribe.$(O).
12177 (LIBS): Add uniscribe libraries.
12178
12179 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12180
12181 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
12182
12183 * callint.c (Vshift_select_mode): New var.
12184 (Finteractive): Document new ^ spec.
12185 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12186 is present.
12187
12188 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12189 (command_loop_1): Avoid running the direct display versions of
12190 forward-char and backward-char if shift-selection may occur.
12191 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12192 shift-translation takes place.
12193
12194 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12195 avoid clobbering by define-minor-mode.
12196
12197 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12198 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12199
12200 * syntax.c (Fforward_word): Add ^ interactive spec.
12201
12202 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12203 (Fscroll_right): Add ^ interactive spec.
12204
12205 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12206
12207 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12208
12209 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12210
12211 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12212
12213 2008-03-31 Juri Linkov <juri@jurta.org>
12214
12215 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12216
12217 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12218
12219 * gtkutil.c (xg_set_geometry): Fix indentation.
12220 (xg_resize_outer_widget): Remove.
12221 (x_wm_size_hint_off): Fix indentation.
12222 (xg_frame_set_char_size): Call flush_and_sync after
12223 gtk_window_resize.
12224 (x_wm_set_size_hint): Pass NULL as geometry window to
12225 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12226 Add menu bar and tool bar height to base height.
12227 (xg_update_frame_menubar, free_frame_menubar)
12228 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12229 (update_frame_tool_bar, free_frame_tool_bar):
12230 Change xg_resize_outer_widget to xg_frame_set_char_size.
12231
12232 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
12233
12234 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12235 (Fdbus_call_method): New parameter TIMEOUT.
12236 (dbus-send-signal): Optimize UNGCPRO call.
12237
12238 2008-03-29 Juri Linkov <juri@jurta.org>
12239
12240 * window.c (Fdisplay_buffer): Move call to
12241 Vsplit_window_preferred_function out of conditions that check
12242 if window is eligible for vertical splitting.
12243 When Vsplit_window_preferred_function is non-nil, call it and use
12244 its non-nil return value as window. Otherwise, continue doing
12245 vertical splitting using Fsplit_window with arg horflag=nil.
12246 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12247 default value from `split-window' to nil.
12248
12249 2008-03-29 Juri Linkov <juri@jurta.org>
12250
12251 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12252 for interactive code letters 'b' and 'B'.
12253
12254 2008-03-29 Eli Zaretskii <eliz@gnu.org>
12255
12256 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12257 multibyte string.
12258
12259 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12260
12261 * keyboard.c (pending_funcalls): New var.
12262 (timer_check): Run it.
12263 (syms_of_keyboard): Initialize it.
12264 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12265 (Vdelete_terminal_functions): New vars.
12266 (syms_of_terminal): Initialize them.
12267 (Fdelete_terminal): Run delete-terminal-functions.
12268 * xdisp.c (safe_eval): Rewrite.
12269 (safe_call2): New fun.
12270 * frame.c (Qdelete_frame_functions): New var.
12271 (syms_of_frame): Initialize it.
12272 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12273 * lisp.h (safe_call2, pending_funcalls): Declare.
12274
12275 2008-03-28 Andreas Schwab <schwab@suse.de>
12276
12277 * indent.c (Fmove_to_column): Move declaration before statements.
12278
12279 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12280
12281 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12282 (struct frame): Use bit fields for boolean vars.
12283
12284 * process.c (server_accept_connection): Simplify naming.
12285 (emacs_get_tty_pgrp): Use SDATA.
12286
12287 * coding.c (decode_coding_object): Fix last change.
12288
12289 2008-03-27 Jason Rumney <jasonr@gnu.org>
12290
12291 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12292
12293 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12294
12295 * charset.c (Fdefine_charset_internal): Change the way of
12296 registering charsets in Vcharset_order_list.
12297 (syms_of_charset): Make the charset `eight-bit' supplementary.
12298
12299 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12300
12301 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12302 operations, to avoid having the difference between pointers
12303 overflow.
12304
12305 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12306
12307 * indent.c (check_display_width): New fun.
12308 (scan_for_column): Use it.
12309
12310 * data.c (syms_of_data): Mark most-positive-fixnum and
12311 most-negative-fixnum as constants.
12312
12313 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12314
12315 * indent.c (scan_for_column): Extract from current_column_1.
12316 Merge with the same code from Fmove_to_column.
12317 (current_column_1, Fmove_to_column): Use it.
12318
12319 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12320
12321 * keymap.c (map_keymap_internal): New fun.
12322 (map_keymap): Use it.
12323 (Fmap_keymap_internal): New fun.
12324 (Fmap_keymap): Remove left-out test from before make_save_value.
12325
12326 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12327
12328 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12329 Use XCAR/XCDR.
12330
12331 * process.h (struct Lisp_Process): Remove filter_multibyte.
12332 * process.c (QCfilter_multibyte): Remove.
12333 (setup_process_coding_systems): Don't use filter_multibyte.
12334 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12335 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12336 (Fset_process_filter_multibyte): Change the coding-system to
12337 approximate the previous behavior.
12338 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12339 coding-system.
12340
12341 * coding.c (decode_coding_object): When not decoding into a buffer,
12342 obey the coding system's preference of (uni|multi)byte.
12343
12344 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12345
12346 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12347 every char is changed and has a different byte-length.
12348 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12349 Fix int -> EMACS_INT.
12350
12351 2008-03-23 David Hansen <david.hansen@gmx.net>
12352
12353 * dbusbind.c (xd_read_message): Remove extra copying of message
12354 strings. Check for NULL `interface' or `member'.
12355
12356 2008-03-22 Eli Zaretskii <eliz@gnu.org>
12357
12358 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12359 cFileName a file name that includes `?' characters, use the 8+3
12360 alias in cAlternateFileName instead.
12361
12362 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12363
12364 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12365
12366 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12367
12368 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12369 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12370 work on current_buffer only instead (that was already the case
12371 for some of the code anyway).
12372 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12373 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12374 (SET_PT, SET_PT_BOTH): Adjust.
12375 * intervals.h (set_point, temp_set_point, set_point_both)
12376 (temp_set_point_both): Remove redundant declarations.
12377
12378 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12379
12380 * fileio.c (Finsert_file_contents):
12381 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12382 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12383 when buffer != current_buffer anyway.
12384
12385 2008-03-20 Andreas Schwab <schwab@suse.de>
12386
12387 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12388 as default.
12389
12390 2008-03-19 Jason Rumney <jasonr@gnu.org>
12391
12392 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12393 (syms_of_w32fns): Initialize them.
12394 (HOURGLASS_ID): New constant.
12395 (x_window_to_frame): Don't check hourglass_window.
12396 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12397 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12398 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12399 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12400 Only change the cursor if hourglass is not active.
12401 (Fx_create_frame): Initialize frame's current_cursor.
12402 (hourglass_atimer): Remove.
12403 (hourglass_started): New function.
12404 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12405 (show_hourglass): Adapt to w32, changing argument to frame.
12406
12407 * w32term.h (struct w32_output): Remove hourglass_window.
12408 Add current_cursor.
12409
12410 * eval.c (call_debugger, Fsignal):
12411 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12412 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12413 (Fexecute_extended_command, cancel_hourglass_unwind):
12414 * minibuf.c (read_minibuf):
12415 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12416
12417 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12418
12419 * window.c (run_funs): New fun.
12420 (run_window_configuration_change_hook): Use it to run the buffer-local
12421 and the global part of the hook.
12422
12423 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12424 (unwind_format_mode_line): Restore selected window.
12425 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12426
12427 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12428
12429 * editfns.c (Fchar_equal): Check they are valid characters.
12430
12431 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12432
12433 2008-03-17 Andreas Schwab <schwab@suse.de>
12434
12435 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12436 against a charset.
12437
12438 * lisp.h (Fbuffer_list): Declare.
12439
12440 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
12441
12442 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12443 handlebox_widget is != 0.
12444
12445 2008-03-16 Juri Linkov <juri@jurta.org>
12446
12447 * callint.c (Fcall_interactively): For interactive code letters
12448 'b' and 'B' put the buffer list into the list of default "future"
12449 values of the minibuffer.
12450
12451 2008-03-16 Andreas Schwab <schwab@suse.de>
12452
12453 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12454 modifiers.
12455
12456 * regex.c (re_match_2_internal): Correct matching of a charset
12457 against latin-1 characters.
12458
12459 2008-03-16 Kenichi Handa <handa@m17n.org>
12460
12461 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12462 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12463 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12464 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12465 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12466 CHAR_STRING_ADVANCE.
12467 (produce_chars): Fix for the case that the source and the
12468 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12469 instead of CHAR_STRING_ADVANCE.
12470 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12471 STRING_CHAR_ADVANCE.
12472
12473 2008-03-15 Andreas Schwab <schwab@suse.de>
12474
12475 * regex.c (re_match_2_internal): Correct matching of eight bit
12476 characters in unibyte strings.
12477
12478 2008-03-15 Martin Rudalics <rudalics@gmx.at>
12479
12480 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12481 at end of range when it coincides with the end of the buffer.
12482
12483 2008-03-14 Eli Zaretskii <eliz@gnu.org>
12484
12485 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12486
12487 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12488
12489 2008-03-14 Jason Rumney <jasonr@gnu.org>
12490
12491 * editfns.c (initial_tz): New variable.
12492 (syms_of_editfns): Initialize it.
12493 (Fset_time_zone_rule): Set it when first called.
12494 Use it when TZSTRING is nil.
12495
12496 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12497 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12498 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12499 (globals_of_w32fns): Initialize them.
12500 (compute_tip_xy): Use them to position tooltips.
12501
12502 2008-03-14 Glenn Morris <rgm@gnu.org>
12503
12504 * emacs.c (main): Revert previous change.
12505 (standard_args): Revert -internal-script back to -scriptload,
12506 and remove the long-option form.
12507
12508 2008-03-13 Glenn Morris <rgm@gnu.org>
12509
12510 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12511 Remove option -enable-font-backend.
12512
12513 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12514
12515 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12516
12517 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12518
12519 * xterm.c (x_connection_closed): For GTK: If this is the last
12520 terminal just exit without closing the display.
12521
12522 2008-03-11 Jason Rumney <jasonr@gnu.org>
12523
12524 * w32font.c (w32font_full_name): Use floor to round.
12525
12526 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
12527
12528 * sound.c (alsa_configure): Declare vol at beginning of block.
12529
12530 * fontset.c (Ffontset_info): Remove extra semicolon.
12531
12532 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12533
12534 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12535 size of resulting string.
12536
12537 2008-03-10 Jason Rumney <jasonr@gnu.org>
12538
12539 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12540
12541 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12542
12543 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12544 Don't pretend as if characters with display property haven't been
12545 consumed for string-replacing-string case.
12546
12547 2008-03-08 Kim F. Storm <storm@cua.dk>
12548
12549 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12550 (get_next_display_element, next_element_from_string)
12551 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12552
12553 2008-03-08 Andreas Schwab <schwab@suse.de>
12554
12555 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12556
12557 2008-03-06 Jason Rumney <jasonr@gnu.org>
12558
12559 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12560 when charset not specified. Only translate ANSI to unicode when
12561 font_type is truetype.
12562 (w32font_coverage_ok): New function.
12563 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12564
12565 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12566
12567 * lread.c (Fread_char): Resolve modifiers.
12568 (Fread_char_exclusive): Likewise.
12569
12570 * character.c (char_resolve_modifier_mask): New function.
12571 (char_string): Use char_resolve_modifier_mask.
12572 (Fchar_resolve_modifiers): New function.
12573 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12574 function.
12575
12576 2008-03-04 Jason Rumney <jasonr@gnu.org>
12577
12578 * makefile.w32-in: Always include w32font.c in the build.
12579 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12580
12581 2008-03-04 Andreas Schwab <schwab@suse.de>
12582
12583 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12584 (versionclean): Likewise.
12585
12586 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
12587
12588 * .cvsignore: Add oo.
12589
12590 2008-03-03 Andreas Schwab <schwab@suse.de>
12591
12592 * coding.c (decode_coding_object): Inhibit gap shrinking while
12593 decoding in place.
12594
12595 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12596
12597 * w32term.c: Remove unused include "gnu.h".
12598 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12599
12600 * gnu.h: Rename to ...
12601 * emacs-icon.h: ... this.
12602 * xterm.c: Use emacs-icon.h instead of gnu.h.
12603 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12604
12605 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
12606
12607 * w32font.c: Include math.h.
12608
12609 2008-03-03 Jason Rumney <jasonr@gnu.org>
12610
12611 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12612 Compute options separately.
12613 (w32font_open_internal): Set glyph_idx before caching metrics.
12614
12615 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12616 Define if system headers don't.
12617 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12618 (w32font_encode_char): Don't declare here.
12619
12620 * w32font.c (Quniscribe, QCformat): New symbols.
12621 (syms_of_w32font): Define them.
12622 (w32font_has_char): Indicate uncertainty.
12623 (w32font_encode_char): Encode as glyph point. Make static.
12624 (recompute_cached_metrics): New function.
12625 (w32font_open_internal): Use it. Set font to use glyph points
12626 initially. Set format based on type of font.
12627 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12628 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12629 on it. Set format based on information available here.
12630 (add_font_entity_to_list): Identify backend based on opentype_only.
12631
12632 2008-03-02 Andreas Schwab <schwab@suse.de>
12633
12634 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12635
12636 * coding.c (decode_coding_big5, produce_chars):
12637 Fix typos in last change.
12638
12639 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12640
12641 * gnu.h: New icon.
12642
12643 2008-03-02 Kenichi Handa <handa@m17n.org>
12644
12645 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12646 `dos', don't decode '\r' if that is the last in the source.
12647 (decode_coding_utf_16, decode_coding_emacs_mule)
12648 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12649 (decode_coding_raw_text, decode_coding_charset): Likewise.
12650 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12651
12652 2008-03-01 Jason Rumney <jasonr@gnu.org>
12653
12654 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12655
12656 2008-03-01 Kim F. Storm <storm@cua.dk>
12657
12658 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12659
12660 2008-03-01 Jason Rumney <jasonr@gnu.org>
12661
12662 * w32font.c (w32font_full_name): New function.
12663 (w32font_open_internal): Use it.
12664
12665 2008-03-01 Kim F. Storm <storm@cua.dk>
12666
12667 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12668
12669 2008-03-01 Jason Rumney <jasonr@gnu.org>
12670
12671 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12672
12673 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12674
12675 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12676 xg_frame_resized when the event is for the edit widget.
12677
12678 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12679
12680 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12681 set_char_size.
12682 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12683 operations on widgets here. Just set frame size if needed.
12684 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12685 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12686 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12687 the whole frame.
12688 (xg_create_tool_bar): Move attachment of the tool bar to
12689 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12690 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12691
12692 2008-03-01 Jason Rumney <jasonr@gnu.org>
12693
12694 * w32fns.c (w32_msg_pump): Disable debug code.
12695
12696 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12697
12698 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12699
12700 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12701
12702 * xdisp.c (next_overlay_string): Don't set
12703 overlay_strings_at_end_processed_p if we're currently reading from
12704 a display string.
12705
12706 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12707
12708 * xdisp.c (get_overlay_strings_1): Fix typo.
12709
12710 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12711
12712 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12713
12714 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12715
12716 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12717
12718 * xdisp.c (display_mode_element): Cancel the previous change.
12719 (decode_mode_spec): Likewise.
12720 (handle_auto_composed_prop): Don't make composition if it->string
12721 is a string.
12722
12723 2008-02-27 Kim F. Storm <storm@cua.dk>
12724
12725 * lisp.h (GLYPH): Change type from int to struct with separate char
12726 and face_id members.
12727 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12728 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12729 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12730 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12731 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12732 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12733 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12734 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12735 handle new Lisp glyph code encoding, either an integer or a cons.
12736
12737 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12738 (GLYPH_ALIAS): Delete.
12739 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12740 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12741 (GLYPH_FROM_CHAR): Replace macro by ...
12742 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12743
12744 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12745 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12746 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12747 (GLYPH_INVALID_P): New macro.
12748 (spec_glyph_lookup_face): Update prototype.
12749
12750 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12751 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12752 new glyph code encoding.
12753 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12754 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12755
12756 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12757 Adapt to new glyph type and new glyph code encoding.
12758
12759 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12760
12761 * indent.c (current_column, current_column_1, Fmove_to_column)
12762 (compute_motion): Adapt to new glyph code encoding.
12763
12764 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12765
12766 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
12767
12768 * process.c (wait_reading_process_output): Check for window
12769 changes caused by timers.
12770 Suggested by Johan Bockgård.
12771
12772 2008-02-27 Glenn Morris <rgm@gnu.org>
12773
12774 * emacs.c (USAGE1): Add `--disable-font-backend'.
12775
12776 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12777
12778 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12779 is made to the buffer.
12780
12781 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12782
12783 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12784 (face_at_string_position):
12785 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12786 (face_at_string_position):
12787 * xdisp.c (display_string, next_overlay_change):
12788 * buffer.h (overlays_at):
12789 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12790 Update callers.
12791
12792 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
12793
12794 * editfns.c (Fformat): Doc fix.
12795
12796 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
12797
12798 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12799 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12800 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12801
12802 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12803
12804 * buffer.c (Fbuffer_swap_text): New function.
12805 (syms_of_buffer): Defsubr it.
12806
12807 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
12808
12809 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12810
12811 2008-02-25 Jason Rumney <jasonr@gnu.org>
12812
12813 * w32font.c (w32font_draw): Draw one character at a time when padding.
12814
12815 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12816
12817 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12818 Handle a nil arg. Use run_window_configuration_change_hook.
12819 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12820 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12821 Use run_window_configuration_change_hook.
12822
12823 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12824
12825 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12826 1-pixel width.
12827
12828 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12829
12830 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12831 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12832 if the glyph in the font is zero pixel with.
12833
12834 * dispextern.h (struct glyph_string): New member padding_p.
12835
12836 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12837
12838 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12839
12840 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12841
12842 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12843
12844 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12845
12846 2008-02-25 Jason Rumney <jasonr@gnu.org>
12847
12848 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12849
12850 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12851
12852 Allow fine-grained image-cache flushing.
12853 * dispextern.h (struct image): Add `dependencies' field.
12854 (clear_image_caches): Change arg to Lisp_Object.
12855 * image.c (make_image): Initialize `dependencies' field.
12856 (clear_image_cache): Change arg to allow fine-grained flushing.
12857 Perform the flush even if image-cache-eviction-delay is nil.
12858 (clear_image_caches): Change arg to Lisp_Object.
12859 (Fclear_image_cache): Expand meaning of the argument.
12860 (mark_image): Mark `dependencies' field.
12861 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12862 (lface_hash): Use XHASH rather than XFASTINT.
12863 (face_at_buffer_position): Fix int -> EMACS_INT position.
12864 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12865 (select_frame_for_redisplay): Remove code duplication.
12866 (redisplay_internal): Adapt arg to call to clear_image_caches.
12867
12868 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12869
12870 * s/vms4-0.h:
12871 * s/vms4-2.h:
12872 * s/vms4-4.h:
12873 * s/vms5-5.h: Remove, unused.
12874
12875 * s/irix5-2.h:
12876 * s/irix6-0.h:
12877 * s/riscos5.h:
12878 * s/mach-bsd4-3.h:
12879 * m/mips4.h: Remove files for obsolete systems.
12880
12881 * Makefile.in:
12882 * filelock.c:
12883 * unexmips.c:
12884 * m/hp9000s300.h:
12885 * m/iris4d.h:
12886 * s/aix3-1.h:
12887 * s/hpux.h:
12888 * s/msdos.h:
12889 * s/usg5-0.h:
12890 * s/usg5-2-2.h:
12891 * s/usg5-2.h:
12892 * s/usg5-3.h: Remove references to obsolete variables.
12893
12894 * s/irix5-0.h: Remove, move all the contents ...
12895 * s/irix6-5.h: ... here. Simplify.
12896 * config.in: Regenerate.
12897
12898 2008-02-24 Jason Rumney <jasonr@gnu.org>
12899
12900 * w32term.c (x_draw_glyph_string_background): Clear the background
12901 manually when cleartype is in use.
12902 (x_draw_glyph_string_foreground): Draw text transparently when
12903 cleartype is in use.
12904
12905 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12906 a font into it unless we have to.
12907
12908 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12909
12910 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12911 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
12912
12913 2008-02-18 Jason Rumney <jasonr@gnu.org>
12914
12915 * w32fns.c (Fw32_shell_execute): Encode parameters.
12916
12917 2008-02-09 Eli Zaretskii <eliz@gnu.org>
12918
12919 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12920
12921 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
12922
12923 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12924
12925 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12926
12927 * xterm.c (x_set_offset): Don't change the gravity if
12928 CHANGE_GRAVITY is -1.
12929
12930 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
12931
12932 * fileio.c (auto_save_error_occurred): New var.
12933 (auto_save_error): Set it.
12934 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12935 error occurred.
12936
12937 2008-02-23 Eli Zaretskii <eliz@gnu.org>
12938
12939 * w32.c (globals_of_w32): Add initializations for
12940 g_b_init_get_sid_sub_authority and
12941 g_b_init_get_sid_sub_authority_count.
12942
12943 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12944
12945 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12946 (font_parse_xlfd): Use them for sanity check.
12947 (Finternal_set_font_style_table): Make sure the table is bijective.
12948
12949 Consolidate the image_cache to the terminal struct.
12950 * termhooks.h (P_): Remove redundant def.
12951 (struct terminal): New field `image_cache'.
12952 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12953 of FRAME_X_IMAGE_CACHE.
12954 * xterm.h (struct x_display_info): Remove image_cache field.
12955 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12956 * w32term.h (struct w32_display_info): Remove image_cache field.
12957 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12958 * macterm.h (struct mac_display_info): Remove image_cache field.
12959 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12960 * xterm.c (x_term_init):
12961 * w32term.c (w32_term_init):
12962 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12963 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12964 Remove declarations.
12965 (clear_image_caches, mark_image_cache): New declarations.
12966 * xfaces.c (clear_face_cache):
12967 * xdisp.c (redisplay_internal): Use clear_image_caches.
12968 * image.c (clear_image_cache): Don't check that a frame is on
12969 a window-system before checking if it shares the same cache.
12970 (clear_image_caches): New function.
12971 (Fclear_image_cache): Use it.
12972 (mark_image): Move from allo.c.
12973 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12974 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12975 (mark_object): Don't call mark_image_cache for frames.
12976 (mark_terminals): Call mark_image_cache.
12977
12978 * lisp.h (Fdelete_terminal): Declare.
12979
12980 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12981 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12982 wrong_type_argument.
12983
12984 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12985
12986 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12987 malayalam.el, and tamil.el. Add sinhala.el.
12988
12989 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12990
12991 * xterm.c (x_connection_closed): Consolidate identical tests.
12992 (x_delete_terminal): Don't crash if called via x_connection_closed.
12993
12994 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12995
12996 * xdisp.c (decode_mode_spec): New arg string.
12997 (display_mode_element): Adjust for the above change.
12998
12999 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13000
13001 * callint.c (Fcall_interactively): Use AREF.
13002
13003 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13004
13005 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13006
13007 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13008
13009 * xfns.c (Fx_show_tip): Set string to " " if empty.
13010
13011 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13012
13013 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13014 with Qt.
13015
13016 2008-02-17 Kenichi Handa <handa@m17n.org>
13017
13018 * ftfont.c (ftfont_shape): Return Lispy number.
13019
13020 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13021 for GCs.
13022 (Finternal_set_font_selection_order): Call font_update_sort_order
13023 only when enable_font_backend is set.
13024 (realize_x_face): Set face->font_info to that of default face only
13025 when enable_font_backend is set.
13026
13027 * xdisp.c (handle_composition_prop): Set it->c to the fist
13028 character of the composed region.
13029 (fill_composite_glyph_string): Set base_face->font_info to
13030 s->font_info. Get a face for ascii from base_face->ascii_face.
13031 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13032 with a face already decided.
13033 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13034 non-negative.
13035 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13036 call font_prepare_composition unconditionally.
13037
13038 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13039
13040 * xterm.h (struct x_display_info): New member font.
13041
13042 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13043 (x_set_mouse_face_gc, x_new_font): Likewise.
13044 (x_term_init): Setup display_info->font.
13045 (x_delete_terminal): Free display_info->font.
13046
13047 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13048
13049 * ftxfont.c (ftxfont_default_fid): Delete it.
13050 (ftxfont_open): Set xfont->fid to 0.
13051 (ftxfont_end_for_frame): Clear data specific to the frame and the
13052 font-driver.
13053
13054 * xftfont.c (xftfont_default_fid): Delete it.
13055 (xftfont_open): Set xfont->fid to 0.
13056
13057 * fontset.c (FONTSET_OBJLIST): New macro.
13058 (fontset_find_font): Update font-object list of the fontset.
13059 (free_realized_fontset): New function.
13060 (free_face_fontset): Call free_realized_fontset.
13061 (Ffont_info): Call font_close_object only when enable_font_backend
13062 is set.
13063
13064 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13065 [HAVE_NTGUI]: Include w32term.h.
13066 [MAC_OS]: Include macterm.ch.
13067 (font_otf_ValueRecord): Use make_number.
13068 (font_finish_cache): Fix handling of reference count.
13069 (font_clear_cache): Update num_fonts.
13070 (font_open_entity): Update smallest_char_width and
13071 smallest_font_height of the frame.
13072 (font_close_object): Update num_fonts.
13073 (Fclear_font_cache): Fix finding the target cache data.
13074
13075 2008-02-16 Glenn Morris <rgm@gnu.org>
13076
13077 * fontset.c (Finternal_char_font): Fix compilation warning.
13078
13079 2008-02-16 Eli Zaretskii <eliz@gnu.org>
13080
13081 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13082 instead of char arrays. Enlarge the size of array passed to
13083 get_token_information.
13084
13085 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13086 warnings.
13087
13088 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13089
13090 * .gdbinit: Don't set `args', it breaks gdb --args.
13091
13092 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13093
13094 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13095 within a narrowed buffer.
13096
13097 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13098
13099 * coding.c (decode_coding_object, encode_coding_object):
13100 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13101
13102 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13103
13104 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13105 hardcoding 1.
13106 (detect_coding_system):
13107 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13108 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13109 * insdel.c (insert_from_gap):
13110 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13111 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13112 (string_to_multibyte):
13113 * character.c (chars_in_text, multibyte_chars_in_text):
13114 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13115
13116 * character.h (FETCH_STRING_CHAR_ADVANCE)
13117 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13118 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13119 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13120
13121 * casefiddle.c (casify_region): Only call after-change and composition
13122 functions on the part of the region that was changed.
13123
13124 * keyboard.c (read_avail_input):
13125 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13126
13127 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13128
13129 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13130 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13131
13132 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
13133
13134 * w32menu.c (push_submenu_start, push_submenu_end)
13135 (push_left_right_boundary, push_menu_pane, push_menu_item):
13136 * keyboard.c (read_key_sequence): Don't pass args with side effects
13137 to AREF, it fails when compiling with -DENABLE_CHECKING.
13138
13139 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13140
13141 * Makefile.in (${lispsource}international/charprop.el):
13142 Delete this target.
13143
13144 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13145 emacs-unicode-2.
13146
13147 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13148
13149 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13150
13151 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13152
13153 * frame.c (Qnoelisp): New symbol.
13154 (syms_of_frame): Initialize it.
13155 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13156 harmless Elisp code, from a strong `force' from x_connection_closed.
13157 * frame.h (Qnoelisp): Declare.
13158 * xterm.c (x_connection_closed): Pass `noelisp'.
13159
13160 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13161 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13162 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13163 rather than `int' for the type of `type'.
13164
13165 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13166
13167 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13168
13169 * Makefile.in (GNUC): Remove support for gcc-1.x.
13170
13171 2008-02-10 Richard Stallman <rms@gnu.org>
13172
13173 * lisp.h (ASET): Use AREF, not ASLOT.
13174
13175 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13176
13177 * lisp.h (ASET): Check bounds.
13178
13179 2008-02-10 Glenn Morris <rgm@gnu.org>
13180
13181 * buffer.c (mode-name): Doc fix.
13182
13183 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13184
13185 * Makefile.in:
13186 * emacs.c:
13187 * gmalloc.c:
13188 * keyboard.c:
13189 * lisp.h:
13190 * m/ibm370aix.h:
13191 * process.c:
13192 * regex.c:
13193 * s/hpux.h:
13194 * sysdep.c:
13195 * sysselect.h:
13196 * systty.h:
13197 * unexec.c:
13198 * w32term.c:
13199 * xsmfns.c:
13200 * xterm.c: Remove code that deals with obsolete variables.
13201
13202 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13203
13204 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13205 nothing else needs it anymore.
13206
13207 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13208
13209 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13210 instead of unibyte_char_to_multibyte.
13211
13212 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13213
13214 * s/gnu-linux.h: Remove commented out code.
13215
13216 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13217
13218 * Makefile.in: Update what RMS says about using autoconf.
13219 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13220 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13221 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13222 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13223
13224 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13225
13226 * keymap.c (Fkey_description): Move side effect outside of macro call.
13227
13228 * xfaces.c (Finternal_make_lisp_face):
13229 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13230
13231 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13232 (syms_of_fontset): Use ASET.
13233
13234 * fns.c (concat): Move side effect outside of macro call.
13235 (hash_clear): Use ASET.
13236
13237 2008-02-08 Richard Stallman <rms@gnu.org>
13238
13239 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13240 If FORCE, and frame has a surrogate minibuffer for another frame,
13241 delete the other frame first.
13242
13243 2008-02-07 Timo Savola <timo.savola@iki.fi>
13244
13245 * xterm.c (x_detect_focus_change): Handle embed client message.
13246 (handle_one_xevent): Ditto.
13247 (handle_one_xevent): If embedded and we get a button press/release,
13248 request focus.
13249 (xembed_set_info, xembed_send_message): New functions.
13250 (x_make_frame_visible): Call xembed_set_info if embedded.
13251 (x_make_frame_invisible): Call xembed_set_info if embedded.
13252 (x_term_init): Initialize Xatom_XEMBED.
13253 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13254 (x_iconify_frame): Ditto.
13255
13256 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13257 (enum xembed_info, enum xembed_message, enum xembed_focus)
13258 (enum xembed_modifier, enum xembed_accelerator): New.
13259 (xembed_set_info, xembed_send_message): Declare.
13260 (FRAME_X_EMBEDDED_P): New.
13261
13262 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13263 gtk_plug_new.
13264
13265 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13266 window ID of a frame.
13267 (x_window): Reparent frame if embedded.
13268 (Fx_create_frame): Don't set border width if embedded.
13269
13270 * emacs.c (USAGE3): Add --parent-id.
13271 (standard_args): Ditto.
13272
13273 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13274
13275 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13276
13277 2008-02-07 Jim Meyering <meyering@redhat.com>
13278
13279 Use "do...while (0)", not "if (1)...else" in macro definitions.
13280 The latter provokes a warning from gcc about the empty else, when
13281 followed by ";". Also, without that trailing semicolon, it would
13282 silently swallow up any following statement.
13283 * syntax.h (SETUP_SYNTAX_TABLE)
13284 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13285 * buffer.h (DECODE_POSITION): Likewise.
13286 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13287 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13288 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13289 (FETCH_CHAR_ADVANCE): Likewise.
13290 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13291
13292 2008-02-07 Jim Meyering <meyering@redhat.com>
13293
13294 * lread.c [lint]: Don't include <sys/inode.h>.
13295
13296 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13297
13298 * xselect.c (x_handle_dnd_message):
13299 * xmenu.c (digest_single_submenu, xmenu_show):
13300 * xdisp.c (with_echo_area_buffer_unwind_data)
13301 (format_mode_line_unwind_data, unwind_format_mode_line)
13302 (display_menu_bar):
13303 * eval.c (Ffetch_bytecode):
13304 * doc.c (store_function_docstring):
13305 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13306 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13307 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13308
13309 2008-02-07 Kenichi Handa <handa@m17n.org>
13310
13311 * ftxfont.c (ftxfont_open): Don't set
13312 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13313
13314 * ftfont.c (ftfont_open): Fix previous change.
13315
13316 2008-02-06 Jason Rumney <jasonr@gnu.org>
13317
13318 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13319 Use cached metrics for ASCII characters.
13320 (w32font_open_internal): Don't set font's owning_frame.
13321 Cache metrics for ASCII characters.
13322
13323 * w32font.h (struct w32font_info): Add ascii_metrics.
13324 Remove owning_frame.
13325
13326 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13327
13328 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13329 to negative value.
13330
13331 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13332
13333 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13334
13335 * charset.c (syms_of_charset): Set QCtest and Qeq.
13336
13337 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13338
13339 * process.c (Fstart_process):
13340 * callproc.c (Fcall_process): Handle the case where
13341 Funhandled_file_name_directory returns nil.
13342
13343 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13344 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13345 * font.c (check_gstring): Use them and AREF to access the vector before
13346 we know it's really a gstring.
13347 (Ffont_shape_text): Fix typo.
13348 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
13349
13350 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13351 Declare.
13352
13353 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13354
13355 2008-02-05 Jason Rumney <jasonr@gnu.org>
13356
13357 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13358 Set smallest_font_height and smallest_char_width in display info.
13359
13360 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13361
13362 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13363
13364 2008-02-05 Miles Bader <miles@gnu.org>
13365
13366 * xfaces.c (get_lface_attributes, merge_named_face)
13367 (lookup_named_face, lookup_derived_face, realize_named_face):
13368 Revert 2008-02-01 change by cyd@stupidchicken.com.
13369
13370 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13371
13372 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13373 fallback fonts.
13374 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13375
13376 2008-02-04 Jason Rumney <jasonr@gnu.org>
13377
13378 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13379 set full_name.
13380 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13381
13382 2008-02-03 Jason Rumney <jasonr@gnu.org>
13383
13384 * makefile.w32-in (OBJ1): Include font.o here.
13385 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13386
13387 2008-02-02 Jason Rumney <jasonr@gnu.org>
13388
13389 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13390
13391 2008-02-01 Jason Rumney <jasonr@gnu.org>
13392
13393 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13394
13395 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13396
13397 2008-02-01 Andreas Schwab <schwab@suse.de>
13398
13399 * Makefile.in (shortlisp, lisp): Update for rename of
13400 ../lisp/language/myanmar.el.
13401
13402 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
13403
13404 * xfaces.c (get_lface_attributes): Delete function.
13405 (merge_named_face, lookup_named_face, lookup_derived_face)
13406 (realize_named_face): Call lface_from_face_name directly, and use
13407 the fact that merge_face_vectors does not alter its FROM argument.
13408
13409 2008-02-01 Jason Rumney <jasonr@gnu.org>
13410
13411 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13412 input in the default locale. Handle non-Unicode multibyte input.
13413
13414 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13415
13416 * fontset.c (reorder_font_vector): Exclude nil elements from the
13417 font group. Don't try multiple fonts.
13418 (fontset_font): Adjust for the above change.
13419 (Finternal_char_font): Return nil if the found font doesn't
13420 contain the character ch.
13421
13422 * Makefile.in (lisp, shortlisp): Add cham.el.
13423
13424 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13425
13426 * font.h (FONTP): Make it return 1 also for a font-object.
13427
13428 * .gdbinit (xfontset): New function.
13429
13430 * font.c (font_find_for_lface): Check if the character C is
13431 supported or not only for the first font.
13432
13433 * fontset.c (reorder_font_vector): Fix typo.
13434 (fontset_find_font): Don't add a font-spec specifying a script.
13435 Use 0 (not Qt) for the indication of empty font-group. Change the
13436 format of RFONT-DEF. Return Qt if no font in the font-group
13437 support the character.
13438 (fontset_font): Adjust for the above change. If no font was
13439 found the character, remember that.
13440 (face_for_char): Adjust for the change of RFONT-DEF.
13441 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13442 no font for the target.
13443 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13444
13445 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13446
13447 * font.c (font_load_for_face): Handle the case that the font in
13448 face->lface is a string.
13449
13450 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13451
13452 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13453
13454 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13455
13456 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13457 Fix previous change. If the frame is not on a window system,
13458 signal an error.
13459
13460 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13461
13462 * coding.c (decode_coding_object, encode_coding_object): Adjust
13463 marker positions after conversion.
13464
13465 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13466
13467 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13468
13469 * font.c (font_find_for_lface): Fix the handling of the return
13470 value of font_has_char.
13471 (Ffont_shape_text): Fix previous change.
13472
13473 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13474 (fontset_ref_and_range): Delete it.
13475 (fontset_find_font): Call char_table_ref_and_range instead of
13476 FONTSET_REF_AND_RANGE.
13477 (make_fontset): Don't setup font groups of Latin here.
13478 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13479 (new_fontset_from_font): Make the specified font the default for
13480 all Latin characters.
13481
13482 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13483
13484 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13485 is on a window system before accessing the fontset of the frame.
13486
13487 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13488
13489 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13490
13491 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13492 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13493
13494 * font.c (Ffont_shape_text): If the font driver doesn't have a
13495 shaper function, make zero-width glyphs to have at least one-pixel
13496 width. Fix setting of `to' field of glyphs.
13497
13498 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13499
13500 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13501 glyphs.
13502
13503 * font.h (struct font_driver): Improve docstring of member `shape'.
13504
13505 2008-02-01 Kenichi Handa <handa@m17n.org>
13506
13507 * composite.c (syms_of_composite): Fix docstring of
13508 auto-composition-function.
13509
13510 * font.h (LGLYPH_SIZE): New macro.
13511
13512 * font.c (Ffont_fill_gstring): Stop filling when a character not
13513 supported by the font is found.
13514 (Ffont_shape_text): When a shape callback function returns nil,
13515 try at most two more times with larger gstring.
13516 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13517
13518 * xdisp.c (handle_auto_composed_prop): Change the argument to
13519 auto-composition-function.
13520
13521 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13522 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13523 Lispy glyph and store it in the lgstring.
13524
13525 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13526
13527 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13528
13529 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13530
13531 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13532
13533 * fontset.c (Vfont_encoding_charset_alist): New variable.
13534 (syms_of_fontset): DEFVAR it.
13535 (reorder_font_vector, fontset_find_font): Optimize for the case of
13536 no need of reordering.
13537 (face_for_char): Map the charset property by
13538 Vfont_encoding_charset_alist.
13539
13540 2008-02-01 Jason Rumney <jasonr@gnu.org>
13541
13542 * w32font.c (logfonts_match): Don't check adstyle here.
13543 (font_matches_spec): Check here against physical font instead.
13544 (add_font_entity_to_list): Avoid some substitutions.
13545
13546 * font.c (font_parse_fcname): Default weight and slant to normal.
13547 (font_score): Prefer normal fonts if weight or slant unspecified.
13548 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13549 match freetype scores.
13550
13551 2008-02-01 Jason Rumney <jasonr@gnu.org>
13552
13553 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13554 font, as it may have been deleted.
13555 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13556 most common hyphenless variation.
13557 (logfonts_match): Check generic family.
13558 (font_matches_spec): Don't check generic family here.
13559 (fill_in_logfont): Set generic family based on adstyle.
13560
13561 * w32font.h (w32font_get_cache): Update declaration.
13562
13563 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13564
13565 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13566
13567 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13568 If none of the new drivers are available, call font_update_drivers
13569 with the old drivers.
13570
13571 * w32font.c (w32font_get_cache): Adjust the argument type.
13572
13573 * xfont.c (xfont_get_cache): Adjust the argument type.
13574
13575 * font.h (struct font_driver): Change argument type of get_cache.
13576
13577 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13578
13579 * font.c (Ffont_get): Fix arguments to Fassoc.
13580 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13581 (font_clear_cache): New function.
13582 (font_list_entities, font_matching_entity): Use font_get_cache.
13583 (font_update_drivers): Call font_clear_cache when finishing a driver.
13584
13585 * fontset.c (fontset_find_font): Fix previous change.
13586
13587 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13588
13589 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13590 dpyinfo->font_table.
13591 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13592 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13593
13594 * font.c (font_at): Handle the case that the arg C is negative.
13595 Handle the unibyte case.
13596 (Ffont_at): Call font_at with the arg C -1.
13597
13598 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13599 the position here, and call font_at with the arg C -1.
13600 Don't check the range of the existing composition at the point.
13601
13602 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13603
13604 * fontset.c (fontset_add): New args charset_id and family.
13605 Change caller.
13606 (load_font_get_repertory, fontset_find_font): Assume that
13607 font_spec is always a font-spec object.
13608 (Fset_fontset_font): Always store a font-spec object in a fontset.
13609
13610 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13611 instead of get_property_and_range.
13612
13613 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13614
13615 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13616 (xftfont_open): Don't keep locking face.
13617 (xftfont_close): Don't unlock face.
13618 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13619
13620 * fontset.c (fontset_find_font): Don't prefer a font of
13621 supplementary charset.
13622
13623 2008-02-01 Kenichi Handa <handa@m17n.org>
13624
13625 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13626 script, langsys_tag to langsys, new member script.
13627 (OTF_TAG_STR): Terminate by '\0'.
13628 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
13629 listing to the script specified in that property. Fix arg to
13630 OTF_check_features.
13631
13632 2008-02-01 Jason Rumney <jasonr@gnu.org>
13633
13634 * w32font.h: New file.
13635
13636 * w32font.c: Include it.
13637 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13638 (w32font_open): Set owning_frame.
13639 (w32font_text_extents): Use owning_frame.
13640 (struct font_callback_data): Add opentype_only field.
13641 (add_font_entity_to_list): Use it to filter fonts.
13642 Don't check against full name.
13643 (w32font_list_internal): New function.
13644 (w32font_list): Use it.
13645 (w32font_match_internal): New function.
13646 (w32font_match): Use it.
13647 (w32font_open_internal): New function.
13648 (w32font_open): Use it.
13649 (w32font_get_cache, w32font_close, w32font_has_char)
13650 (w32font_encode_char, w32font_text_extents, w32font_draw):
13651 Make non-static.
13652
13653 * makefile.w32-in (w32font.o): Depend on w32font.h.
13654
13655 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13656
13657 * charset.c (Fdefine_charset_internal): Record a supplementary
13658 charset at the tail of Vcharset_order_list.
13659
13660 * font.c (Ffont_shape_text): Fix the return value.
13661
13662 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13663
13664 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13665
13666 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13667
13668 * ftfont.c (struct OpenTypeSpec): New struct.
13669 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13670 (ftfont_get_open_type_spec): New function.
13671 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13672
13673 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13674
13675 2008-02-01 Jason Rumney <jasonr@gnu.org>
13676
13677 * w32font.c (add_font_entity_to_list): Compare only the beginning
13678 of full name.
13679
13680 2008-02-01 Kenichi Handa <handa@m17n.org>
13681
13682 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13683 Never return HANDLED_RECOMPUTE_PROPS.
13684
13685 2008-02-01 Kenichi Handa <handa@m17n.org>
13686
13687 * font.c (font_gstring_produce): Delete it.
13688
13689 * composite.h (COMPOSITION_METHOD):
13690 Handle COMPOSITION_WITH_GLYPH_STRING.
13691
13692 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13693
13694 * xfont.c (Qx): Delete.
13695 (syms_of_xfont): Don't initialize Qx.
13696
13697 * composite.h (enum composition_method):
13698 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13699
13700 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13701
13702 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13703 (choose_face_font): Accept new form of font-spec.
13704
13705 * frame.h (font_driver_list): Declare it unconditionally.
13706 (struct frame): Define members font_driver_list and font_data_list
13707 unconditionally.
13708
13709 * fontset.c: Include "font.h" unconditionally.
13710 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13711 (Fset_fontset_font): Accept a font-spec object.
13712
13713 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13714 PIXEL_SIZE part a wild card.
13715
13716 * dispextern.h (struct glyph_string): Define members clip and
13717 num_clips unconditionally.
13718 (struct face): Define members font_info and extra unconditionally.
13719
13720 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13721 ftfont_info only when HAVE_LIBOTF is defined.
13722
13723 2008-02-01 Andreas Schwab <schwab@suse.de>
13724
13725 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13726 and end.
13727
13728 2008-02-01 Jason Rumney <jasonr@gnu.org>
13729
13730 * w32font.c (w32font_driver): Add new fields.
13731
13732 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13733
13734 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13735 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13736 (LIBES): Add @M17N_FLT_CFLAGS@.
13737
13738 * composite.c (compose_text): Don't treat the new style
13739 composition specially.
13740
13741 * emacs.c (main): Call syms_of_font unconditionally.
13742
13743 * font.h (FONT_ENTITY_NOT_LOADABLE)
13744 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13745 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13746 (struct font_driver): New member shape.
13747 (font_registry_charsets): Extern it.
13748 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13749 (font_otf_capability, font_drive_otf): Delete their externs.
13750
13751 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13752 (font_charset_alist, font_registry_charsets): Move from xfont.c
13753 and rename.
13754 (font_prop_validate_otf): New function.
13755 (font_property_table): Register it for QCotf.
13756 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13757 (font_drive_otf): Delete.
13758 (font_prepare_composition): New arg F. Adjust for the change of
13759 lispy gstring.
13760 (font_find_for_lface): New arg C.
13761 (font_load_for_face): Adjust for the change of font_find_for_lface.
13762 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13763 lispy gstring.
13764 (Ffont_shape_text): New function.
13765 (Fopen_font): If the font size is not given, use 12-pixel.
13766 (Ffont_at): New arg STRING.
13767 (syms_of_font): Initalize font_charset_alist.
13768 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13769 conditionally.
13770
13771 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13772 fonts of the same font-spec. Change the format of RFONT-DEF.
13773 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13774 Adjust for the change of RFONT-DEF.
13775 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13776
13777 * ftfont.h: New file.
13778
13779 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13780 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13781 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13782 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13783 font_otf_capability and font_drive_otf, set ftfont_shape.
13784 (ftfont_list): Adjust for the change of :otf property value.
13785 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13786 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13787 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13788 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13789 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13790 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13791
13792 * w32term.c (x_draw_composite_glyph_string_foreground):
13793 Adjust for the change of lispy gstring.
13794
13795 * xdisp.c (handle_composition_prop): Adjust for the change of
13796 lispy gstring. Call a function for auto-composition with the
13797 third arg it->window.
13798 (fill_composite_glyph_string): Adjust for the change of lispy string.
13799 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13800
13801 * xfaces.c (set_font_frame_param): Adjust for the change of
13802 font_find_for_lface.
13803
13804 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13805 (xfont_registry_charsets): Likewise. Change caller.
13806 (syms_of_xfont): Don't handle x_font_charset_alist.
13807
13808 * xftfont.c: Include "ftfont.h".
13809 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13810 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13811 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13812 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13813 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13814 Set xftfont_driver.shape to xftfont_shape.
13815
13816 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13817 the change of lispy gstring.
13818
13819 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13820
13821 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13822
13823 2008-02-01 Jason Rumney <jasonr@gnu.org>
13824
13825 * w32font.c (w32font_draw): Fill background manually.
13826
13827 2008-02-01 Jason Rumney <jasonr@gnu.org>
13828
13829 * font.c (Qfontp): Remove unused symbol.
13830 (QCantialias): New symbol.
13831 (syms_of_font): Define it.
13832 (font_property_table): Set a validator for QCantialias.
13833
13834 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13835 Define if not already.
13836 (QCfamily): Share with xfaces.c.
13837 (Qstandard, Qsubpixel, Qnatural): New symbols.
13838 (syms_of_w32font): Define them. Don't define QCfamily here.
13839 (w32_antialias_type, lispy_antialias_type): New functions.
13840 (w32_enumfont_pattern_entity): New arg requested_font.
13841 Set antialias parameter if non-default was requested.
13842 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13843
13844 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13845
13846 * lread.c (read1): Undo the previous change.
13847
13848 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13849
13850 * frame.c (Fdelete_frame): Call font_update_drivers only when
13851 USE_FONT_BACKEND is defined.
13852
13853 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13854
13855 * font.h (struct font_bitmap): New member bits_per_pixel.
13856 (struct font_driver): New members start_for_frame and end_for_frame.
13857 (struct font_data_list): New struct.
13858 (font_put_frame_data, font_get_frame_data): Extern them.
13859
13860 * frame.h (struct frame): New member font_data_list.
13861
13862 * font.c (font_update_drivers): Call driver->start_for_frame and
13863 driver->end_for_frame at proper timings.
13864 (font_put_frame_data, font_get_frame_data): New functions.
13865 (Ffont_spec): Add usage in the docstring.
13866
13867 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13868 (Fdelete_frame): Call font_update_drivers.
13869
13870 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13871 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13872 (xftfont_get_xft_draw): New function.
13873 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13874 (xftfont_end_for_frame): New function.
13875 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13876
13877 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13878 Change argument. Cache GCs in the per-frame data.
13879 (struct ftxfont_frame_data): New struct.
13880 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13881 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13882 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13883 (ftxfont_end_for_frame): New function.
13884 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13885
13886 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13887
13888 2008-02-01 Kenichi Handa <handa@m17n.org>
13889
13890 * xselect.c (Vselection_coding_system)
13891 (Vnext_selection_coding_system): Delete them.
13892 (syms_of_xselect): Don't declare selection-coding-system and
13893 next-selection-coding-system. They are declared in select.el.
13894
13895 2008-02-01 Jason Rumney <jasonr@gnu.org>
13896
13897 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13898
13899 * w32fns.c: Include imm.h.
13900 (get_composition_string_fn, get_ime_context_fn): New optional
13901 system functions.
13902 (globals_of_w32fns): Load them from imm32.dll.
13903 (ignore_ime_char): New flag.
13904 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13905 WM_IME_ENDCOMPOSITION messages.
13906
13907 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13908 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13909
13910 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13911
13912 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13913 (READCHAR_REPORT_MULTIBYTE): New macro.
13914 (readchar): New 2nd arg MULTIBYTE.
13915 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13916 Make symbol's name multibyte according to the multibyteness of the
13917 source.
13918
13919 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13920
13921 * xfaces.c (face_for_overlay_string): Call lookup_face with
13922 correct arguments (fix of synching with the trunk).
13923
13924 2008-02-01 Kenichi Handa <handa@m17n.org>
13925
13926 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13927 (font_prop_validate_non_neg, font_prop_validate_spacing):
13928 Delete argument prop_index.
13929 (font_property_table): Change arguments to validater. Change Callers.
13930 (font_lispy_object): Delete.
13931 (font_at): Use font_find_object instead fo font_lispy_object.
13932
13933 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13934
13935 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13936 and file names.
13937
13938 2008-02-01 Jason Rumney <jasonr@gnu.org>
13939
13940 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13941 (font_matches_spec): Remove debug output.
13942 (add_font_entity_to_list): Avoid using substituted fonts.
13943
13944 2008-02-01 Jason Rumney <jasonr@gnu.org>
13945
13946 * doc.c (Fsnarf_documentation):
13947 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13948
13949 2008-02-01 Miles Bader <miles@gnu.org>
13950
13951 * dispextern.h (struct glyph_row): Only define "clip" field if
13952 HAVE_WINDOW_SYSTEM is defined.
13953
13954 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13955
13956 Fix up multi-tty merge.
13957
13958 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13959 and indentation.
13960
13961 * xfaces.c (free_realized_face, clear_face_gcs):
13962 Include font_done_for_face in the input_blocked section, just in case.
13963
13964 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13965 (get_char_face_and_encoding): Undo last change and remove the *other*
13966 duplicate definition (i.e. keep the one that's better scoped and that
13967 includes code for the font-backend).
13968
13969 * terminal.c (create_terminal): Default keyboard_coding to
13970 `no-conversion' and terminal_coding to `undecided'.
13971
13972 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13973
13974 * fontset.c (free_realized_fontsets): Check that the table entry does
13975 contain a fontset before trying to compare it to `base'.
13976
13977 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13978 syms_of_charset, and syms_of_coding earlier because init_window_once
13979 now needs Vcoding_system_hash_table to be setup.
13980
13981 * coding.h (default_buffer_file_coding): Remove.
13982
13983 * coding.c (default_buffer_file_coding): Remove.
13984 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13985 than ->symbol, and use the terminal-local coding system.
13986 (syms_of_coding): Don't setup the coding-systems that are not
13987 terminal-local.
13988 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13989
13990 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13991 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13992
13993 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13994 in chartab.c and were re-added here by mistake.
13995 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13996
13997 * doc.c (Fsnarf_documentation):
13998 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13999 src to etc.
14000
14001 * ChangeLog.10: Add mistakenly removed entry.
14002
14003 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14004
14005 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14006
14007 2008-02-01 Miles Bader <miles@gnu.org>
14008
14009 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14010 Add extra args to FACE_FOR_CHAR.
14011
14012 2008-02-01 Kenichi Handa <handa@m17n.org>
14013
14014 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14015 in sequence.
14016
14017 * chartab.c (map_sub_char_table, map_char_table): If the range
14018 contains just one character, call the function with that character
14019 even if the depth is not 3.
14020
14021 2008-02-01 Jason Rumney <jasonr@gnu.org>
14022
14023 * w32font.c (w32font_text_extents): Calculate metrics for the
14024 whole string.
14025
14026 2008-02-01 Jason Rumney <jasonr@gnu.org>
14027
14028 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14029
14030 2008-02-01 Jason Rumney <jasonr@gnu.org>
14031
14032 * w32term.c (x_set_glyph_string_clipping): Use
14033 get_glyph_string_clip_rects.
14034 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14035 Adjust for the change of struct glyph_string.
14036
14037 * w32font.c (w32font_draw): Do clipping here.
14038
14039 2008-02-01 Kenichi Handa <handa@m17n.org>
14040
14041 * xftfont.c (xftfont_draw): Adjust for the change of struct
14042 glyph_string.
14043
14044 * xterm.c (x_set_glyph_string_clipping): Use
14045 get_glyph_string_clip_rects.
14046 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14047 Adjust for the change of struct glyph_string.
14048
14049 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14050 the resulting clip(s}.
14051 (expose_overlaps): Add arg r. Change callers. Set it to
14052 row->clip temporarily.
14053 (expose_window): Redraw rows overlapping the exposed area.
14054
14055 * dispextern.h (struct glyph_row): New member clip.
14056 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14057 clip_height, new member clip, and num_clips.
14058
14059 2008-02-01 Kenichi Handa <handa@m17n.org>
14060
14061 * data.c (Fchar_or_string_p): Fix docstring.
14062
14063 2008-02-01 Kenichi Handa <handa@m17n.org>
14064
14065 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14066 create a temporary XftDraw object.
14067
14068 2008-02-01 Kenichi Handa <handa@m17n.org>
14069
14070 * font.c (Ffontp): Fix docstring.
14071
14072 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14073 strong evidence of ISO-2022.
14074
14075 2008-02-01 Kenichi Handa <handa@m17n.org>
14076
14077 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14078 SYNTAX_ENTRY_FOLLOW_PARENT.
14079
14080 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14081
14082 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14083 its type.
14084 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14085 Update to the new type of weak_hash_tables and next_weak.
14086
14087 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14088 a plain C pointer to Lisp_Hash_Table.
14089
14090 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14091 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14092 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14093 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14094 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14095 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14096 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14097 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14098 (GC_EQ): Remove since they've been identical to their non-GC_
14099 alter-egos ever since the markbit was eradicated.
14100
14101 * alloc.c:
14102 * buffer.c:
14103 * buffer.h:
14104 * data.c:
14105 * fileio.c:
14106 * filelock.c:
14107 * fns.c:
14108 * frame.h:
14109 * lisp.h:
14110 * macterm.c:
14111 * print.c:
14112 * process.c:
14113 * w32fns.c:
14114 * w32menu.c:
14115 * w32term.c:
14116 * xfns.c:
14117 * xmenu.c:
14118 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14119
14120 2008-02-01 Kenichi Handa <handa@m17n.org>
14121
14122 * chartab.c (map_sub_char_table): Make it work for the top-level
14123 char-table. Fix handling of parent char-table.
14124 (map_char_table): Adjust for the above change.
14125
14126 2008-02-01 Jason Rumney <jasonr@gnu.org>
14127
14128 * w32font.c (Qgdi): Rename from Qw32.
14129
14130 2008-02-01 Jason Rumney <jasonr@gnu.org>
14131
14132 * w32bdf.c (get_quoted_string): Make function static.
14133
14134 2008-02-01 Kenichi Handa <handa@m17n.org>
14135
14136 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14137 bigger ascent and descent than those of the font, use them as
14138 font's ascent and descent.
14139
14140 2008-02-01 Kenichi Handa <handa@m17n.org>
14141
14142 * Makefile.in (${lispsource}international/charprop.el): Move this
14143 target within "#ifdef HAVE_UNIDATA" and "#endif".
14144
14145 2008-02-01 Kenichi Handa <handa@m17n.org>
14146
14147 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14148 (shortlisp): Add ../lisp/language/tai-viet.el.
14149
14150 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
14151
14152 * Makefile.in (${lispsource}international/charprop.el): Depend on
14153 temacs${EXEEXT}.
14154
14155 2008-02-01 Jason Rumney <jasonr@gnu.org>
14156
14157 * w32font.c (w32font_close): Delete the GDI font object.
14158
14159 * w32menu.c: Include character.h.
14160
14161 * w32proc.c: Likewise.
14162
14163 * w32select.c: Likewise.
14164
14165 * makefile.w32-in (w32proc.o): Depend on character.h.
14166
14167 2008-02-01 Jason Rumney <jasonr@gnu.org>
14168
14169 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14170
14171 * w32menu.c (syms_of_w32menu): Likewise.
14172
14173 * w32proc.c (syms_of_ntproc): Likewise.
14174
14175 * w32select.c (syms_of_w32select): Likewise.
14176
14177 * w32term.c (syms_of_w32term): Likewise.
14178
14179 2008-02-01 Jason Rumney <jasonr@gnu.org>
14180
14181 * w32font.c (w32font_draw): Delete brush after using it.
14182
14183 2008-02-01 Jason Rumney <jasonr@gnu.org>
14184
14185 * w32font.c (w32font_open): Don't set font_idx.
14186 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14187 to font settings.
14188 (w32font_draw): Fill background explicitly.
14189
14190 2008-02-01 Jason Rumney <jasonr@gnu.org>
14191
14192 * w32term.c (w32_initialize): Don't call w32font_initialize.
14193
14194 * w32font.c (w32font_info): Remove subranges.
14195 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14196 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14197 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14198 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14199 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14200 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14201 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14202 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14203 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14204 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14205 New symbols.
14206 (font_callback_data): New struct.
14207 (w32font_list, w32font_match): Use it.
14208 (w32font_open): Don't populate subranges.
14209 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14210 (w32font_encode_char): Always return unicode code-point as-is.
14211 (w32font_text_extents): Supply a transformation matrix to
14212 GetGlyphOutline. Never look up by glyph index. Avoid looping
14213 twice. Use unicode version of GetTexExtentPoint32 instead of
14214 glyph index version.
14215 (set_fonts_frame): Remove.
14216 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14217 set frame parameter. Use backward compatible fake foundries.
14218 Save generic family in extra slot under QCfamily. Make width slot
14219 constant. Save QCspacing value. Save list of scripts instead of
14220 binary subranges.
14221 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14222 (add_font_entity_to_list): Use font_callback_data struct. Filter
14223 unwanted fonts.
14224 (add_one_font_entity_to_list): Use font_callback_data struct.
14225 (w32_registry): Default to iso10646_1.
14226 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14227 string font registries. Don't fill in font name if it is a generic
14228 family name, fill family instead. Use spacing, family and script
14229 extra info to fill pitch, family and charset fields.
14230 (list_all_matching_fonts): Use font_callback_data struct.
14231 (unicode_range_for_char): Remove.
14232 (font_supported_scripts): New function.
14233 (w32font_initialize): Remove.
14234 (syms_of_w32font): Update which symbols are defined.
14235
14236 2008-02-01 Jason Rumney <jasonr@gnu.org>
14237
14238 * font.c (font_pixel_size): Reverse assq_no_quit args.
14239
14240 * w32term.h (FONT_WIDTH): Report max width, not average.
14241 (FONT_MAX_WIDTH): Remove.
14242 (FONT_AVG_WIDTH): New macro.
14243
14244 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14245 redefinition of FONT_WIDTH.
14246
14247 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14248 (w32_cache_char_metrics): Use FONT_WIDTH.
14249
14250 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14251
14252 2008-02-01 Jason Rumney <jasonr@gnu.org>
14253
14254 * w32font.c (w32font_open): Make lfHeight negative.
14255
14256 * w32fns.c (x_default_font_parameter): Use new style font name.
14257 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14258
14259 2008-02-01 Jason Rumney <jasonr@gnu.org>
14260
14261 * w32font.c (QCsubranges): New symbol.
14262 (w32font_open, w32font_has_char): Get subranges from subproperty
14263 of extra.
14264 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14265 (syms_of_w32font): Define :subranges symbol.
14266
14267 * font.c (font_put_extra): Expose externally.
14268
14269 * font.h (font_put_extra): Move declaration from font.c.
14270
14271 * font.c (Ffont_get): Use font driver to determine otf capability.
14272 (adjust_anchor): Check if driver defines anchor_point before using.
14273
14274 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14275 (w32font_draw): Use options.
14276 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14277 Fix detection of truetype fonts.
14278 (registry_to_w32_charset): Handle charsets other than iso8859-1
14279 expressed as lisp symbols.
14280 (w32_registry): Express charset as lisp symbol.
14281 (fill_in_logfont): Reverse pixel and point height logic.
14282 Don't set width here. Set quality to default.
14283
14284 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14285 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14286
14287 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14288 Remove redundant loop and allocation.
14289
14290 * makefile.w32-in (font.o, w32font.o): New objects.
14291 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14292 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14293
14294 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14295 STORE_XCHARB a valid l-value.
14296
14297 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14298 calculations for non-Truetype fonts.
14299 (x_draw_glyph_string): Sync with xterm.c.
14300 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14301 Remove redundant code.
14302 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14303
14304 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14305 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14306
14307 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14308 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14309
14310 * w32font.c: New file for w32 font backend.
14311
14312 2008-02-01 Kenichi Handa <handa@m17n.org>
14313
14314 * term.c: Don't include "buffer.h" twice.
14315
14316 2008-02-01 Kenichi Handa <handa@m17n.org>
14317
14318 * character.c (Funibyte_string): New function.
14319 (syms_of_character): Defsubr it.
14320
14321 2008-02-01 Jason Rumney <jasonr@gnu.org>
14322
14323 * w32term.c [USE_FONT_BACKEND]:
14324 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14325 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14326 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14327 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14328 (x_free_frame_resources): Sync with xterm.c.
14329
14330 2008-02-01 Andreas Schwab <schwab@suse.de>
14331
14332 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14333 char-table size.
14334
14335 2008-02-01 Kenichi Handa <handa@m17n.org>
14336
14337 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14338
14339 2008-02-01 Kenichi Handa <handa@m17n.org>
14340
14341 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14342 font_otf_gpos, add font_drive_otf.
14343
14344 * fontset.c (fontset_find_font): Pay attention to font size
14345 specified for a font.
14346 (reorder_font_vector): Check contents of font_def.
14347
14348 * font.c (struct otf_list): Delete it.
14349 (otf_list): Make it a lisp variable.
14350 (otf_open): Use lispy otf_list.
14351 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14352 (check_otf_features): New function.
14353 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14354 New functions.
14355 (font_drive_otf): New function merging font_otf_gsub and
14356 font_otf_gpos.
14357 (font_open_for_lface): New arg spec. Change argument order.
14358 (font_load_for_face): Adjust for the change of font_open_for_lface.
14359 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14360 Ffont_otf_gpos.
14361 (syms_of_font): Staticpro otf_list. Delete defsubr of
14362 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14363
14364 * xfaces.c (set_font_frame_param): Adjust for the change of
14365 font_open_for_lface.
14366
14367 * font.h (font_open_for_lface): Adjust prototype.
14368 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14369 member otf_drive.
14370 (font_otf_gsub, font_otf_gpos): Delete externs.
14371 (font_drive_otf): Extern it.
14372
14373 2008-02-01 Kenichi Handa <handa@m17n.org>
14374
14375 * font.c (font_at): If the window W is not on a window system,
14376 return Qnil.
14377
14378 * coding.c (produce_chars, encode_coding): Don't call
14379 insert_from_gap if no characters to produce.
14380
14381 2008-02-01 Kenichi Handa <handa@m17n.org>
14382
14383 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14384 Fclear_face_cache.
14385
14386 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14387
14388 2008-02-01 Miles Bader <miles@gnu.org>
14389
14390 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14391 Parse "--disable-font-backend" option.
14392 (standard_args): Add "--disable-font-backend" option.
14393
14394 2008-02-01 Kenichi Handa <handa@m17n.org>
14395
14396 * fontset.c (fontset_find_font): New function.
14397 (fontset_font): Use fontset_find_font.
14398 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14399 Register the specified font for all Latin characters.
14400 (new_fontset_from_font): Register the specified font for all Latin
14401 characters.
14402 (dump_fontset): For a realized fontset, include the base fontset
14403 name in the returned vector.
14404
14405 2008-02-01 Kenichi Handa <handa@m17n.org>
14406
14407 * character.h (CHAR_STRING): Cast C to unsigned on calling
14408 char_string.
14409
14410 * character.c (char_string): Type of arg C changed to unsigned.
14411 Signal an error if C is an invalid character code.
14412
14413 * editfns.c (general_insert_function, Fchar_to_string):
14414 Use CHARACTERP, not INTEGERP.
14415
14416 2008-02-01 Kenichi Handa <handa@m17n.org>
14417
14418 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14419 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14420
14421 * regex.c (analyse_first): Fix for multibyte characters in "case
14422 charset:" and "case categoryspec:".
14423
14424 2008-02-01 Andreas Schwab <schwab@suse.de>
14425
14426 * Makefile.in (LIBES): Move standard libraries to the end.
14427
14428 2008-02-01 Kenichi Handa <handa@m17n.org>
14429
14430 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14431 nonzero, don't shrink the buffer nextb.
14432
14433 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14434
14435 * coding.c (coding_alloc_by_making_gap): New arg offset.
14436 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14437 offset.
14438 (decode_coding_iso_2022): Update coding->safe_charsets.
14439 (decode_coding_gap): Temporarily set
14440 current_buffer->text->inhibit_shrinking to 1.
14441
14442 2008-02-01 Kenichi Handa <handa@m17n.org>
14443
14444 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14445 indexing into elements of s->cmp and s->char2b.
14446
14447 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
14448
14449 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14450
14451 2008-02-01 Kenichi Handa <handa@m17n.org>
14452
14453 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14454 target_multibyte instead of multibyte.
14455 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14456 (bcmp_translate): Change the argument name from multibyte to
14457 target_multibyte.
14458
14459 2008-02-01 Kenichi Handa <handa@m17n.org>
14460
14461 These changes are to compile a regexp into a pattern that can be
14462 used both for multibyte and unibyte targets.
14463
14464 * Makefile.in (search.o): Depend on charset.h.
14465
14466 * character.c (multibyte_char_to_unibyte_safe): New function.
14467
14468 * search.c: Include "charset.h".
14469 (compile_pattern_1): Delete argument multibyte. Don't set
14470 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14471 (compile_pattern): Don't compare cp->buf.target_multibyte.
14472 Compare cp->buf.charset_unibyte.
14473 (compile_pattern): Set cp->buf.target_multibyte.
14474
14475 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14476
14477 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14478
14479 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14480 multibyte. Change callers.
14481 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14482 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14483 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14484 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14485 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14486 (regex_compile): Make the compiled pattern usable both for
14487 multibyte and unibyte targets.
14488 (analyse_first): Make the fastmap usable both for multibyte and
14489 unibyte targets.
14490 (TRANSLATE_VIA_MULTIBYTE): Delete.
14491 (re_match_2_internal): Pay attention to the case that the
14492 multibyteness of bufp and target may be different.
14493
14494 2008-02-01 Kenichi Handa <handa@m17n.org>
14495
14496 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14497 empty box occupy at least one column width.
14498
14499 2008-02-01 Miles Bader <miles@gnu.org>
14500
14501 * Makefile.in: Remove redundant HAVE_XFT clause.
14502
14503 2008-02-01 Kenichi Handa <handa@m17n.org>
14504
14505 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14506
14507 2008-02-01 Kenichi Handa <handa@m17n.org>
14508
14509 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14510 being nil.
14511
14512 2008-02-01 Kenichi Handa <handa@m17n.org>
14513
14514 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14515
14516 2008-02-01 Kenichi Handa <handa@m17n.org>
14517
14518 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14519
14520 2008-02-01 Kenichi Handa <handa@m17n.org>
14521
14522 * search.c (simple_search): Fix previous change.
14523
14524 2008-02-01 Kenichi Handa <handa@m17n.org>
14525
14526 * xftfont.c (ftfont_font_format): Extern declaration.
14527
14528 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14529
14530 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14531 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14532
14533 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14534 (ftfont_font_format): Fix previous change.
14535
14536 * font.h (Ffont_xlfd_name): EXFUN it.
14537
14538 * font.c (font_parse_xlfd): Fix the array size of `f'.
14539 (register_font_driver): Use EQ to compare driver->type.
14540
14541 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14542 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14543 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14544
14545 2008-02-01 Kenichi Handa <handa@m17n.org>
14546
14547 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14548 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14549
14550 2008-02-01 Kenichi Handa <handa@m17n.org>
14551
14552 * xfont.c (xfont_open): Set font->format.
14553
14554 * xftfont.c (xftfont_open): Set font->format.
14555
14556 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14557 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14558 (ftfont_open): Set font->format.
14559 (ftfont_font_format): New function.
14560
14561 * font.h (struct font): New member format.
14562
14563 * font.c (Qopentype): New variable.
14564 (syms_of_font): Defsym it.
14565 (Fquery_font): Change the format of the last element of the return
14566 value.
14567
14568 2008-02-01 Kenichi Handa <handa@m17n.org>
14569
14570 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14571 last resort.
14572
14573 2008-02-01 Kenichi Handa <handa@m17n.org>
14574
14575 * coding.c (detect_coding_charset): Fix detection of multi-byte
14576 charset.
14577
14578 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14579
14580 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14581
14582 2008-02-01 Kenichi Handa <handa@m17n.org>
14583
14584 * xdisp.c (get_next_display_element): Set it->face_id for the
14585 first component of a composition.
14586 (x_produce_glyphs): Check if the font is changed or not for composition.
14587
14588 2008-02-01 Kenichi Handa <handa@m17n.org>
14589
14590 * fontset.c (Qlatin): New variable.
14591 (syms_of_fontset): Define it as a lisp symbol.
14592 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14593
14594 2008-02-01 Kenichi Handa <handa@m17n.org>
14595
14596 * font.c (font_unparse_fcname): Pay attention to the case that
14597 some of font property is a null string.
14598
14599 2008-02-01 Kenichi Handa <handa@m17n.org>
14600
14601 * term.c: Include "composite.h".
14602 (encode_terminal_code): Output all components of composition.
14603 Check the size of encode_terminal_src.
14604 (produce_glyphs): For composition, call produce_composite_glyph.
14605 (append_composite_glyph, produce_composite_glyph): New functions.
14606
14607 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14608 is not found, get font_info from the current ascii face.
14609
14610 2008-02-01 Kenichi Handa <handa@m17n.org>
14611
14612 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14613 buffer-file-name to Qnil before calling insert_from_buffer.
14614
14615 * font.c (font_unparse_fcname): Pay attention to the case that
14616 foundry is a null string.
14617
14618 2008-02-01 Kenichi Handa <handa@m17n.org>
14619
14620 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14621
14622 * font.c (Qunicode_sip): New variable.
14623 (syms_of_font): Declare it as a Lisp symbol.
14624
14625 * font.h (Qunicode_sip): Extern it.
14626
14627 2008-02-01 Kenichi Handa <handa@m17n.org>
14628
14629 * composite.c (get_composition_id): Pay attention to TAB component.
14630
14631 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14632 TAB. Adjust for the change of s->char2b which always points to
14633 the first element of allocated memory.
14634
14635 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14636
14637 * xdisp.c (handle_composition_prop): Set it->c to the first
14638 non-TAB component.
14639 (fill_composite_glyph_string): Change argument.
14640 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14641 (x_produce_glyphs): Fix handling of left/right padding.
14642
14643 2008-02-01 Kenichi Handa <handa@m17n.org>
14644
14645 * coding.c (detect_coding_system): Fix for handling off
14646 inhibit_iso_escape_detection. Fix for the case that no coding
14647 system is defined for a specific coding category.
14648
14649 2008-02-01 Kenichi Handa <handa@m17n.org>
14650
14651 * font.c (font_matching_entity): Delete unused local var.
14652
14653 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14654 opening a font.
14655
14656 * fileio.c (Finsert_file_contents): On recovering a file, assume
14657 Unix-like eol.
14658 (choose_write_coding_system): On auto-saving a file, force
14659 Unix-like eol.
14660
14661 * coding.c (setup_coding_system): Fix setting of
14662 coding->common_flags based on eol_type.
14663 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14664 inherit from it.
14665
14666 2008-02-01 Kenichi Handa <handa@m17n.org>
14667
14668 * alloc.c (NSTATICS): Increas to 0x600.
14669
14670 2008-02-01 Kenichi Handa <handa@m17n.org>
14671
14672 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14673 (ftfont_list): Don't check :name property.
14674 (ftfont_match): New function.
14675 (ftfont_pattern_entity): If the pattern doesn't contain
14676 FC_SPACING, don't assume FC_MONO.
14677
14678 * font.h (struct font_driver): New member `match'.
14679 (font_update_drivers): Adjust prototype.
14680
14681 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14682 property of FONT.
14683 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14684 them unconditionally.
14685 (font_matching_entity): New function.
14686 (font_open_by_name): Try font_matching_entity if exact match is
14687 not found.
14688 (font_update_drivers): Delete the arg FONT. Return a list of
14689 actually used backends. Don't free faces, font caches here.
14690 Don't store data in frame parameters. Don't call x_set_font.
14691 (Ffont_spec): Store :name property as is.
14692 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14693 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14694 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14695 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14696 Call font->driver->otf_gsub instead of font_otf_gsub.
14697
14698 * frame.c (x_set_font_backend): Do more works that were done in
14699 font_update_drivers before.
14700
14701 * xfont.c (xfont_match): New function.
14702 (xfont_driver): Set xfont_driver.match to xfont_match.
14703 (xfont_draw): Set font in GC if necessary.
14704
14705 * ftxfont.c (ftxfont_match): New function.
14706 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14707
14708 * xftfont.c (xftfont_match): New function.
14709 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14710
14711 2008-02-01 Kenichi Handa <handa@m17n.org>
14712
14713 * font.h (struct font): New member scalable.
14714 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14715 (font_otf_gsub): Adjust prototype.
14716
14717 * font.c (font_otf_capability): Fix handling of the default langsys.
14718 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14719 Check the contents of SPEC.
14720 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14721 (check_gstring): New function.
14722 (REPLACEMENT_CHARACTER): New macro.
14723 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14724 glyph codes of GSTRING.
14725 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14726 (font_prepare_composition): Set cmp->glyph_len.
14727 (font_open_entity): Set font->scalable.
14728 (Ffont_get): Handle :otf property.
14729 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14730 functions.
14731 (Fquery_font): Use font->font.full_name.
14732 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14733 Sfont_otf_alternates.
14734
14735 * ftfont.c (ftfont_open): Set font->font.full_name and
14736 font->font.name properly. Fix calculation of font->font.height
14737 and font->min_width.
14738
14739 * ftxfont.c (ftxfont_create_gcs): New function.
14740 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14741 (ftxfont_draw_backgrond): Fix filling region.
14742 (ftxfont_default_fid): New function.
14743 (ftxfont_open): Set xfont->fid to the return value of
14744 ftxfont_default_fid.
14745 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14746 (ftxfont_done_face): Free only GCs that are created by
14747 ftxfont_create_gcs.
14748 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14749
14750 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14751 Clip to src->width, etc (not src->clip_XXX).
14752
14753 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14754 FontBackend frame parameter.
14755
14756 2008-02-01 Kenichi Handa <handa@m17n.org>
14757
14758 * font.h (struct font_driver_list): New member `on'.
14759 (Fclear_font_cache): EXFUN it.
14760 (font_update_drivers): Extern it.
14761
14762 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14763 (font_list_entities): Check driver_list->on.
14764 (register_font_driver): Initalize `on' member to 0.
14765 (font_update_drivers): New function.
14766 (Fclear_font_cache): Check driver_list->on.
14767
14768 * frame.h (Qfont_backend): Extern it.
14769 (x_set_font_backend): Extern it.
14770
14771 * frame.c (Qfont_backend): New variable.
14772 (frame_parms): New element for font-backend.
14773 (x_set_font_backend): New function.
14774
14775 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14776 FontBackend frame parameter.
14777 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14778 x_set_font_backend.
14779
14780 * xfont.c (xfont_list): Don't try listing by :name property if the
14781 name is not for XLFD.
14782
14783 2008-02-01 Kenichi Handa <handa@m17n.org>
14784
14785 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14786 (LGLYPH_SET_TO): New macros.
14787 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14788 element of G is vector or not.
14789 (font_at): Extern it.
14790
14791 * font.c: Include window.h.
14792 (font_lispy_object): New function.
14793 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14794 end of valid glyph.
14795 (font_close_object): Fix getting (struct font *).
14796 (font_at): New function.
14797 (Ffont_get): If FONT is a font-object, get entity from it.
14798 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14799 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14800 range check.
14801 (Ffont_at): New function.
14802 (syms_of_font): Defsubr Sfont_at.
14803
14804 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14805 before the entry for Qcomposition.
14806 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14807 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14808 the font in gstring.
14809 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14810 LGLYPH_FORM (g) to detect the end of valid glyph.
14811 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14812 we are composing with gstring.
14813
14814 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14815 Check if adjustment is vector or not.
14816
14817 * Makefile.in (font.o): Make it depends on window.h.
14818
14819 2008-02-01 Kenichi Handa <handa@m17n.org>
14820
14821 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14822 adjustment is vector or not.
14823
14824 2008-02-01 Miles Bader <miles@gnu.org>
14825
14826 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14827
14828 2008-02-01 Kenichi Handa <handa@m17n.org>
14829
14830 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14831 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14832 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14833
14834 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14835 (DEVICE_DELTA): Fix typo.
14836 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14837 LGLYPH format.
14838
14839 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14840 the change of LGLYPH format.
14841
14842 2008-02-01 Kenichi Handa <handa@m17n.org>
14843
14844 * ftfont.c (ftfont_list): Fix typo.
14845 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14846
14847 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14848
14849 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14850
14851 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14852 xftface_info is non-NULL.
14853
14854 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14855
14856 * ftfont.c (ftfont_list): Move misplaced #endif.
14857
14858 2008-02-01 Kenichi Handa <handa@m17n.org>
14859
14860 * ftfont.c (ftfont_list): Pay attention to the case that
14861 FC_CAPABILITY is not defined.
14862
14863 2008-02-01 Kenichi Handa <handa@m17n.org>
14864
14865 * xftfont.c (xftfont_open): Set charset related members to -1.
14866
14867 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14868 QCname.
14869 (ftfont_open): Set charset related members to -1.
14870
14871 * fontset.c (Votf_script_alist): New variable.
14872 (syms_of_fontset): Initialize it.
14873 (fontset_font): Delete unused variable.
14874
14875 * fontset.h (Votf_script_alist): Extern it.
14876
14877 * font.c (font_find_for_lface): Optimize code.
14878
14879 * font.h (font_close_object, font_merge_old_spec): Extern them.
14880
14881 2008-02-01 Kenichi Handa <handa@m17n.org>
14882
14883 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14884 (syms_of_font): Initialize them.
14885 (font_pixel_size): Allow float value in dpi.
14886 (font_prop_validate_type): Delete.
14887 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14888 Change caller.
14889 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14890 (font_prop_validate_extra): Delete.
14891 (font_prop_validate_spacing): New function.
14892 (font_property_table): Add elements for all known properties.
14893 (get_font_prop_index): Rename from check_font_prop_name. New
14894 argument FROM. Change caller.
14895 (font_prop_validate): Validate all known properties.
14896 (font_put_extra): Delete argument force. Change caller.
14897 (font_expand_wildcards): Make it static. Fix the way of shrinking
14898 the possible range.
14899 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14900 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14901 Change caller.
14902 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14903 (font_parse_fcname): Delete argument merge. Fix parsing of point
14904 size. Don't validate properties values here. Change caller.
14905 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14906 (font_open_by_name): Delete unused variable.
14907 (Ffont_spec): Likewise. Validate property values.
14908 (Ffont_match_p): New function.
14909
14910 * font.h (QCscalable): Extern it.
14911 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14912
14913 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14914
14915 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14916 (xfont_list_pattern): New function.
14917 (xfont_list): Use xfont_list_pattern.
14918
14919 2008-02-01 Kenichi Handa <handa@m17n.org>
14920
14921 * font.h (Flist_fonts): EXFUN it.
14922
14923 2008-02-01 Jason Rumney <jasonr@gnu.org>
14924
14925 * w32term.c (w32_initialize): Add back smoothing_type and
14926 smoothing_enabled definitions.
14927
14928 2008-02-01 Kenichi Handa <handa@m17n.org>
14929
14930 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14931 s->face->font on determining underline position.
14932
14933 2008-02-01 Kenichi Handa <handa@m17n.org>
14934
14935 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14936 (font_has_char): Accept font-object too.
14937 (font_find_for_lface): Try at first with a size specified in face.
14938
14939 2008-02-01 Kenichi Handa <handa@m17n.org>
14940
14941 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14942 font_open_by_name.
14943
14944 2008-02-01 Kenichi Handa <handa@m17n.org>
14945
14946 * font.h (QCspacing, QCdpi): Extern them.
14947 (enum font_spacing): New enum.
14948 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14949
14950 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14951 (QCspacing, QCdpi): New variables.
14952 (syms_of_font): Initialize them.
14953 (font_pixel_size): New function.
14954 (font_put_extra): New function.
14955 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14956 in FONT_EXTRA.
14957 (font_parse_fcname): Handle enumerated values (e.g. bold).
14958 Fix handling font size. Add QCname property that contains only
14959 unknown properties.
14960 (font_score): Change argument. Change caller. Pay attention to
14961 FONT_PIXEL_SIZE_QUANTUM.
14962 (font_sort_entites, font_list_entities, font_find_for_lface)
14963 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14964 (Ffont_spec): Add QCname property that contains only unknown properties.
14965
14966 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14967 include weight in listing pattern, instead check weight of each
14968 listed font. Don't include scalable in pattern. Pay attention to
14969 FONT_PIXEL_SIZE_QUANTUM.
14970
14971 2008-02-01 Kenichi Handa <handa@m17n.org>
14972
14973 * font.c (font_parse_fcname): Fix parsing of point-size.
14974 (font_unparse_fcname): Produce symbolic names for style properties.
14975 (font_list_entities): Handle float size correctly.
14976 (font_open_by_name): Prefer `normal' property values if the name
14977 doesn't specify them.
14978
14979 * fontset.c (Finternal_char_font): Use font_get_name, not
14980 Ffont_xlfd_name.
14981
14982 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14983 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14984 pattern. Don't force scalable.
14985
14986 * xftfont.c (xftfont_open): For generating a name, start from
14987 96-byte buffer.
14988
14989 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14990
14991 * frame.h (x_new_fontset2): Fix prototype.
14992
14993 2008-02-01 Kenichi Handa <handa@m17n.org>
14994
14995 * font.h (struct font_driver): Delete member parse_name.
14996 (font_match_p, font_get_spec, font_parse_fcname)
14997 (font_unparse_fcname): Extern them.
14998 (font_get_name): Adjust prototype.
14999
15000 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15001 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15002 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15003 unnecessary checks for weight, slant, and swidth.
15004 (font_parse_fcname): New function.
15005 (font_unparse_fcname): New function.
15006 (font_parse_name): New function.
15007 (font_match_p): New function.
15008 (font_get_name): Change return value to Lisp string.
15009 (font_get_spec): New function.
15010 (Qunspecified, Qignore_defface): Don't extern them.
15011 (font_find_for_lface): Assume that LFACE is fully specified.
15012 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15013 object, use it for FACE.
15014 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15015 driver->parse_name.
15016 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15017
15018 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15019 prototype.
15020
15021 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15022 argument F. Don't call Fnew_fontset. Instead, directly call
15023 make_fontset.
15024
15025 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15026
15027 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15028 of x_new_fontset2.
15029
15030 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15031 (Qsans__serif): New variables.
15032 (ftfont_generic_family_list): New variable.
15033 (syms_of_ftfont): Initialize the above variables.
15034 (ftfont_pattern_entity): Delete argument NAME.
15035 (ftfont_list_generic_family): New function.
15036 (ftfont_parse_name): Delete this function.
15037 (ftfont_list): Try generic family only when FcFontList found no font.
15038 (ftfont_list_family): Fix args to FcObjectSetBuild.
15039
15040 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15041 object in attrs[LFACE_FONT_INDEX].
15042 (set_lface_from_font_name): Cancel all changes for font-backend.
15043 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15044 function.
15045 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15046 font object in QCfont attribute.
15047 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15048 (realize_default_face) [USE_FONT_BACKEND]: Call
15049 set_lface_from_font_and_fontset.
15050
15051 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15052 "fixed", and signal error here if no suitable font was found.
15053
15054 * xfont.c (xfont_parse_name): Delete this function.
15055
15056 * xftfont.c (xftfont_open): Change coding style of error
15057 handling. Generate fontconfig's fontname pattern.
15058
15059 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15060 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15061
15062 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15063 Both args FONTSET and FONT_OBJECT must be existing ones.
15064
15065 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15066
15067 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15068
15069 2008-02-01 Kenichi Handa <handa@m17n.org>
15070
15071 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15072
15073 * font.h (struct font): Fix typo.
15074
15075 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15076 XLFD_XXX_INDEX.
15077 (enum xlfd_field_mask): New enum.
15078 (intern_font_field): Changed argument. Change caller. If digits
15079 are followed by non-digits, return a symbol.
15080 (font_expand_wildcards): New function.
15081 (font_parse_xlfd): Fix wildcard handling.
15082 (Ffont_spec): If :name is specified, reflect the info in the other
15083 properties.
15084
15085 * ftfont.c (ftfont_pattern_entity): Fix typo.
15086 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15087 locale.
15088
15089 2008-02-01 Kenichi Handa <handa@m17n.org>
15090
15091 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15092
15093 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15094 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15095 registry doesn't specify encoding part.
15096 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15097 (font_open_by_name): At first try parsing the name.
15098 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15099 as Lisp symbols.
15100
15101 * fontset.c (reorder_font_vector): Pay attention to the case that
15102 the 3rd element of font_def is nil.
15103 (fontset_font): For the default fontset, append one more fontset
15104 elements for a script-based font specification. Don't add script
15105 attribute on finding a font.
15106 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15107 font name.
15108 (fontset_ascii_font): If a font can't be opened, return nil.
15109
15110 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15111 (ftfont_pattern_entity): New function.
15112 (ftfont_get_cache): Assume that freetype_font_cache is already
15113 initialized.
15114 (ftfont_list): Handle the case that a file is specified in font
15115 name. Use ftfont_pattern_entity to generate entities.
15116 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15117 (syms_of_ftfont): Initialize freetype_font_cache.
15118
15119 * xftfont.c (xftfont_open): Make the font name fontconfig's
15120 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15121 (xftfont_close): Free font->font.name if not NULL.
15122
15123 * xfont.c (xfont_list): If script is specified for a font, return
15124 null_vector.
15125 (xfont_list_family): Declare argument type.
15126
15127 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15128 name, set LFACE_FONT (lface) to nil.
15129
15130 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15131 return Qnil.
15132
15133 2008-02-01 Kenichi Handa <handa@m17n.org>
15134
15135 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15136 (standard_args): Add "-enable-font-backend".
15137
15138 2008-02-01 Kenichi Handa <handa@m17n.org>
15139
15140 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15141 (struct xftdraw_list, xftdraw_list): Delete them.
15142 (register_xftdraw, check_xftdraw): Delete them.
15143 (xftfont_prepare_face): Don't call register_xftdraw.
15144 (xftfont_done_face): Don't call check_xftdraw.
15145 (xftfont_draw): Get background color only when with_background is
15146 nonzero.
15147
15148 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15149
15150 2008-02-01 Kenichi Handa <handa@m17n.org>
15151
15152 These changes are for the new font handling codes.
15153
15154 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15155 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15156 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15157 (FONTSRC, FONTOBJ): New variables.
15158 (obj): Add $(FONTOBJ).
15159 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15160 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15161 @LIBOTF_LIBS@.
15162 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15163 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15164
15165 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15166
15167 * character.h (Vscript_representative_chars): Extern it.
15168
15169 * character.c (Vscript_representative_chars): New variable.
15170 (syms_of_character): Declare it as a Lisp variable.
15171
15172 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15173 enable_font_backend is nonzero, accept the composition method
15174 COMPOSITION_WITH_GLYPH_STRING.
15175
15176 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15177 enumeration COMPOSITION_WITH_GLYPH_STRING.
15178
15179 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15180 members clip_x, clip_y, clip_width, and clip_height.
15181 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15182
15183 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15184 --enable-font-backend. Call syms_of_font.
15185
15186 * fns.c (assoc_no_quit): New function.
15187
15188 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15189 (face_for_font, new_fontset_from_font)
15190 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15191
15192 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15193 (fontset_font, fontset_ascii, face_for_char)
15194 (make_fontset_for_ascii_face, Ffont_info)
15195 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15196 is nonzero, use font-backend mechanism.
15197 (find_font_encoding): Make it non-static.
15198 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15199 New functions.
15200
15201 * frame.h (struct frame): New members resx and resy.
15202 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15203 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15204
15205 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15206 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15207
15208 * lisp.h (assoc_no_quit): Extern it.
15209
15210 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15211 Through out the file, use FONT_INFO_FROM_FACE instead of
15212 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15213 rif->per_char_metric.
15214 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15215 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15216 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15217 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15218 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15219 nonzero, use font-backend mechanism.
15220 (get_per_char_metric): New function.
15221
15222 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15223 (set_lface_from_font_name)
15224 (set_font_frame_param, free_realized_face)
15225 (prepare_face_for_display, clear_face_gcs)
15226 (Finternal_set_font_selection_order, realize_x_face)
15227 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15228 font-backend mechanism.
15229 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15230 (load_face_font) [USE_FONT_BACKEND]: Abort.
15231 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15232 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15233
15234 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15235 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15236 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15237 nonzero, register all available font drivers. Call
15238 x_default_font_parameter for deciding a font.
15239 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15240
15241 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15242 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15243 (x_set_glyph_string_clipping_exactly)
15244 (x_compute_glyph_string_overhangs)
15245 (x_draw_glyph_string_foreground)
15246 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15247 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15248 enable_font_backend is nonzero, use font-backend mechanism.
15249 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15250
15251 2008-02-01 Kenichi Handa <handa@m17n.org>
15252
15253 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15254 system_eol_type.
15255 (syms_of_coding): Initialize system_eol_type.
15256
15257 * process.c (Fset_process_coding_system): Inherit system's eol
15258 format if necessary.
15259
15260 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15261
15262 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15263
15264 2008-02-01 Kenichi Handa <handa@m17n.org>
15265
15266 * coding.c (decode_eol): Pay attention to buffer relocation in
15267 del_range_2.
15268 (decode_coding): Call decode_eol before restoring undo_list.
15269
15270 2008-02-01 Kenichi Handa <handa@m17n.org>
15271
15272 * charset.c (Fdefine_charset_internal): Fix setting of
15273 emacs_mule_bytes.
15274
15275 2008-02-01 Kenichi Handa <handa@m17n.org>
15276
15277 * keyboard.c (read_char): Check if C is a character or not before
15278 looking up Vkeyboard_translate_table.
15279
15280 2008-02-01 Kenichi Handa <handa@m17n.org>
15281
15282 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15283 condition to terminate the loop.
15284
15285 2008-02-01 Kenichi Handa <handa@m17n.org>
15286
15287 * coding.c (produce_composition): Compare charbuf[i] instead of
15288 args[i] against 0.
15289 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15290
15291 2008-02-01 Kenichi Handa <handa@m17n.org>
15292
15293 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15294 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15295 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15296 detect_coding.
15297 (emacs_mule_char): Handle old style (Emacs 20) component character
15298 of a composition.
15299 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15300 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15301 composition rule.
15302 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15303
15304 2008-02-01 Kenichi Handa <handa@m17n.org>
15305
15306 * coding.c (encode_coding_ccl): Allocate destination dynamically
15307 when necessary.
15308
15309 2008-02-01 Kenichi Handa <handa@m17n.org>
15310
15311 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15312 the loop. When quitted, show a proper error message.
15313
15314 2008-02-01 Kenichi Handa <handa@m17n.org>
15315
15316 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15317 src->clip_head and src->clip_tail temporarily instead of src->hl.
15318
15319 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15320 character sequence.
15321 (Fccl_execute_on_string): Use ASET, not XSET.
15322
15323 2008-02-01 Kenichi Handa <handa@m17n.org>
15324
15325 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15326
15327 2008-02-01 Kenichi Handa <handa@m17n.org>
15328
15329 * coding.c (decode_coding): Fix the condition of terminating the
15330 decoding loop.
15331
15332 2008-02-01 Kenichi Handa <handa@m17n.org>
15333
15334 * data.c (Faset): On setting a character bigger than 255 in a
15335 unibyte string, signal an error instead of make the string multibyte.
15336
15337 2008-02-01 Kenichi Handa <handa@m17n.org>
15338
15339 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15340 made by a mapping table.
15341
15342 2008-02-01 Kenichi Handa <handa@m17n.org>
15343
15344 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15345 not.
15346 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15347 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15348
15349 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15350 s->face is NULL or not.
15351
15352 2008-02-01 Kenichi Handa <handa@m17n.org>
15353
15354 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15355 (x_draw_glyph_string): Fix drawing of right_overhang and
15356 left_overhang around/on cursor.
15357
15358 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15359
15360 2008-02-01 Kenichi Handa <handa@m17n.org>
15361
15362 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15363
15364 2008-02-01 Kenichi Handa <handa@m17n.org>
15365
15366 * coding.c (Fdefine_coding_system_internal)
15367 (Fdefine_coding_system_alias): Avoid a duplicated element in
15368 Vcoding_system_alist.
15369
15370 2008-02-01 Kenichi Handa <handa@m17n.org>
15371
15372 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15373
15374 * coding.c (Qcoding_system_define_form): New variable.
15375 (syms_of_coding): Intern and staticpro it.
15376 (Fcoding_system_p): Check Qcoding_system_define_form.
15377 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15378
15379 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15380 Fcoding_system_p.
15381 (CHECK_CODING_SYSTEM): If ID is not available, call
15382 Fcheck_coding_system.
15383 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15384 Try also Fcheck_coding_system.
15385
15386 2008-02-01 Kenichi Handa <handa@m17n.org>
15387
15388 * coding.c (code_conversion_restore): GCPRO arg.
15389
15390 2008-02-01 Kenichi Handa <handa@m17n.org>
15391
15392 * character.c (lisp_string_width): Check multibyteness of STRING.
15393
15394 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15395
15396 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15397 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15398 (decode_mac_font_name): Use decode_coding_c_string instead of
15399 decode_coding.
15400 (x_load_font): Initialize fontp->fontset to -1. Set
15401 fontp->encoding_type.
15402
15403 2008-02-01 Kenichi Handa <handa@m17n.org>
15404
15405 * search.c (search_buffer): Give up BM search on case-fold-search
15406 if one of a target character has a case-equivalence of different
15407 byte length even if that target charcter is an ASCII.
15408 (simple_search): Fix calculation of byte length of matched text.
15409 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15410
15411 2008-02-01 Kenichi Handa <handa@m17n.org>
15412
15413 * coding.c (decode_coding): Fix handling of invalid bytes.
15414
15415 2008-02-01 Kenichi Handa <handa@m17n.org>
15416
15417 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15418 Unicode characters.
15419
15420 2008-02-01 Kenichi Handa <handa@m17n.org>
15421
15422 * coding.c (encode_coding_object): If a pre-write-conversion
15423 function makes a new buffer, kill it.
15424
15425 2008-02-01 Kenichi Handa <handa@m17n.org>
15426
15427 * coding.c (QCascii_compatible_p): New variable.
15428 (syms_of_coding): Initialize it.
15429 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15430 calling string_char.
15431 (record_conversion_result): Add `default:' case.
15432 (coding_charset_list): Delete unused variable `coding_type'.
15433 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15434 property in the plist of the coding system.
15435 (Fcoding_system_put): Check QCascii_compatible_p.
15436
15437 2008-02-01 Miles Bader <miles@gnu.org>
15438
15439 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15440 removed calculation of frame `f', as it's now used.
15441
15442 2008-02-01 Kenichi Handa <handa@m17n.org>
15443
15444 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15445 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15446 (UNIDATA): New variable.
15447 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15448 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15449 $(RUN_TEMACS) unconditionally.
15450
15451 2008-02-01 Kenichi Handa <handa@m17n.org>
15452
15453 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15454 (admindir): New variable.
15455 ($(lispsource)international/charprop.el): New target.
15456
15457 2008-02-01 Miles Bader <miles@gnu.org>
15458
15459 * character.c (chars-in-region): Remove obsolete function.
15460 (syms_of_character): Remove its initialization.
15461
15462 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15463
15464 * w32select.c (validate_coding_system)
15465 (setup_windows_coding_system): New functions.
15466 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15467 setup_windows_coding_system.
15468 (setup_config, Fw32_get_clipboard_data): Use
15469 validate_coding_system.
15470 (Fx_selection_exists): Move call to setup_config to a place
15471 where signals are allowed.
15472
15473 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15474 (Fcheck_coding_system): Add declarations.
15475
15476 2008-02-01 Kenichi Handa <handa@m17n.org>
15477
15478 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15479
15480 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15481
15482 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15483 string as the second argument for x_new_fontset.
15484
15485 2008-02-01 Kenichi Handa <handa@m17n.org>
15486
15487 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15488 (encode_coding_object): Use safe_call instead of call2.
15489
15490 2008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15493
15494 * Makefile.in (lisp): Include charprop.el.
15495
15496 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15497
15498 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15499 Not sure if it's unnecessary.
15500
15501 2008-02-01 Steven Tamm <steventamm@mac.com>
15502
15503 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15504 some possibly unnecessary fontset checking code that crashed
15505 when creating a new frame.
15506
15507 2008-02-01 Kenichi Handa <handa@m17n.org>
15508
15509 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15510 lookup_face.
15511
15512 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15513
15514 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15515
15516 2008-02-01 Kenichi Handa <handa@m17n.org>
15517
15518 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15519 (coding_charset_list): New function.
15520
15521 * coding.h (coding_charset_list): Extern it.
15522
15523 2008-02-01 Kenichi Handa <handa@m17n.org>
15524
15525 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15526 concatenation of family and registry.
15527
15528 2008-02-01 Kenichi Handa <handa@m17n.org>
15529
15530 * character.h (BYTE8_STRING): Fix typo.
15531
15532 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15533 string to multibyte (sync to HEAD).
15534
15535 * casefiddle.c (casify_region): Handle changes in byte-length
15536 using replace_range_2 (sync to HEAD).
15537
15538 2008-02-01 Andreas Schwab <schwab@suse.de>
15539
15540 * chartab.c (map_char_table): GCPRO table and arg.
15541
15542 2008-02-01 Kenichi Handa <handa@m17n.org>
15543
15544 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15545 already at limit.
15546
15547 2008-02-01 Kenichi Handa <handa@m17n.org>
15548
15549 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15550 instead of fast_c_string_match_ignore_case.
15551 (find_font_encoding): Change argument to Lisp_Object. Use
15552 fast_string_match_ignore_case instead of
15553 fast_c_string_match_ignore_case. Change caller.
15554
15555 2008-02-01 Kenichi Handa <handa@m17n.org>
15556
15557 * xdisp.c (get_next_display_element): In unibyte case, decide to
15558 display in octal form by checking a character by
15559 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15560
15561 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15562
15563 * character.c (unibyte_has_multibyte_table): New variable.
15564
15565 * character.h (unibyte_has_multibyte_table): Extern it.
15566 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15567
15568 2008-02-01 Kenichi Handa <handa@m17n.org>
15569
15570 * coding.c (encode_coding_iso_2022): Fix handling of charset
15571 annotation.
15572
15573 2008-02-01 Kenichi Handa <handa@m17n.org>
15574
15575 * coding.c (setup_coding_system): If coding_system is nil, use
15576 Qundecided.
15577 (Fterminal_coding_system): Return nil if terminal coding system is
15578 `undecided'.
15579 (syms_of_coding): Define coding-system `undecided' here. Setup
15580 terminal_coding as `undecided'.
15581
15582 2008-02-01 Kenichi Handa <handa@m17n.org>
15583
15584 * xdisp.c (message_dolog, set_message_1): Call
15585 unibyte_char_to_multibyte with arg type int.
15586
15587 * lread.c (read1): Fix reading of a char-table.
15588
15589 * print.c (print_object): Include sub char-table in circularities
15590 detection.
15591
15592 2008-02-01 Kenichi Handa <handa@m17n.org>
15593
15594 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15595 Append the found sequences in car of ARGS instead of prepending.
15596
15597 2008-02-01 Kenichi Handa <handa@m17n.org>
15598
15599 * fileio.c (report_file_error): Make a unibyte string from
15600 strerror (errorno).
15601 (Fsubstitute_in_file_name): Fix the arg to
15602 unibyte_char_to_multibyte. It is evaluated twice.
15603
15604 2008-02-01 Kenichi Handa <handa@m17n.org>
15605
15606 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15607
15608 2008-02-01 Kenichi Handa <handa@m17n.org>
15609
15610 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15611 BOM is not found.
15612 (detect_coding, detect_coding_system): Optimization for ISO-2022
15613 when no 8-bit data is found.
15614
15615 2008-02-01 Jason Rumney <jasonr@gnu.org>
15616
15617 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15618
15619 2008-02-01 Kenichi Handa <handa@m17n.org>
15620
15621 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15622 CHARS.
15623
15624 2008-02-01 Steven Tamm <steventamm@mac.com>
15625
15626 * macterm.c (mac_encode_char): Add charset argument and update
15627 to use encoding_type.
15628 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15629 switch to pure fontset.
15630 (decode_mac_font_name): Temporarily remove decoding.
15631 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15632 (x_load_font): Temporarily remove encoding.
15633
15634 2008-02-01 Kenichi Handa <handa@m17n.org>
15635
15636 * xfaces.c (Fface_font): If frame is not on a window system,
15637 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15638 refer to face->font.
15639 (split_font_name_into_vector, build_font_name_from_vector)
15640 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15641 when HAVE_WINDOW_SYSTEM is defined.
15642
15643 2008-02-01 Kenichi Handa <handa@m17n.org>
15644
15645 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15646 (x_produce_glyphs): Fix setting of members of cmp in case
15647 cmp->glyph_len is zero.
15648
15649 * fontset.c (Fset_fontset_font): Fix docstring.
15650 (Ffontset_info): Make it backward compatible. New arg ALL.
15651
15652 2008-02-01 Kim F. Storm <storm@cua.dk>
15653
15654 * process.c (read_process_output): Grow decoding_buf when needed;
15655 this could cause a crash in allocate_string and compact_small_strings.
15656
15657 2008-02-01 Kenichi Handa <handa@m17n.org>
15658
15659 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15660
15661 2008-02-01 Kenichi Handa <handa@m17n.org>
15662
15663 * coding.c (setup_coding_system): Set coding->common_flags
15664 correctly for raw-text.
15665 (consume_chars): On encoding unibyte text by raw-text, don't check
15666 multibyte form.
15667 (encode_coding): On encoding by raw-text, never use translation tables.
15668
15669 * fileio.c (e_write): Short cut for the case of no encoding.
15670
15671 2008-02-01 Kenichi Handa <handa@m17n.org>
15672
15673 * coding.c (detect_coding, detect_coding_system): Delete unused
15674 variables.
15675
15676 2008-02-01 Kenichi Handa <handa@m17n.org>
15677
15678 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15679 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15680
15681 2008-02-01 Kenichi Handa <handa@m17n.org>
15682
15683 * coding.c (Ffind_coding_systems_region_internal): Include
15684 raw-text and no-conversion in the result.
15685
15686 2008-02-01 Kenichi Handa <handa@m17n.org>
15687
15688 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15689 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15690 FONT_DEF.
15691 (font_def_arg, add_arg, from_arg, to_arg): New args.
15692 (set_fontset_font): Change argument.
15693 (Fset_fontset_font): Fix for the case that TARGET is a script
15694 name and charset name.
15695 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15696
15697 2008-02-01 Kenichi Handa <handa@m17n.org>
15698
15699 * fontset.c (fontset_font): Rename from fontset_face. Change return
15700 value.
15701 (face_suitable_for_char_p, face_for_char): Adjust for the change
15702 of fontset_font.
15703 (make_fontset_for_ascii_face): Fix setting of the fontset element
15704 for ASCII.
15705 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15706 to get a font name.
15707 (Ffontset_info): Adjust for the change of fontset_font.
15708
15709 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15710
15711 * character.h (LEADING_CODE_LATIN_1_MIN)
15712 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15713
15714 2008-02-01 Kenichi Handa <handa@m17n.org>
15715
15716 * editfns.c (check_translation): New function.
15717 (Ftranslate_region_internal): Handle M:N mapping.
15718
15719 2008-02-01 Kenichi Handa <handa@m17n.org>
15720
15721 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15722
15723 2008-02-01 Kenichi Handa <handa@m17n.org>
15724
15725 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15726 goto invalid_code.
15727 (decode_coding_iso_2022): Fix handling of invalid designation.
15728
15729 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15730 after calling code_conversion_save.
15731
15732 2008-02-01 Kenichi Handa <handa@m17n.org>
15733
15734 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15735
15736 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15737
15738 * fontset.c: Include "intervals.h".
15739 (fontset_face): Fix comparing of Lisp_Objects.
15740 (free_face_fontset, new_fontset_from_font_name): Fix
15741 Lisp_Object/int mixup.
15742
15743 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15744
15745 * coding.c: Add many prototypes for static functions.
15746 (get_translation_table): Allow max_lookup to be NULL.
15747 (decode_coding, Ffind_coding_systems_region_internal)
15748 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15749 get_translation_table with max_lookup NULL.
15750
15751 2008-02-01 Kenichi Handa <handa@m17n.org>
15752
15753 * coding.c (get_translation_table): Declare it as Lisp_Object.
15754 (LOOKUP_TRANSLATION_TABLE): New macro.
15755 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15756 instead of CHAR_TABLE_REF.
15757
15758 2008-02-01 Kenichi Handa <handa@m17n.org>
15759
15760 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15761 annotation data format.
15762 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15763 Change arguments FROM and TO to single argument NCHARS. Change caller.
15764 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15765 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15766 (decode_coding_ccl, decode_coding_charset): Pay attention to
15767 coding->charbuf_used.
15768 (get_translation): New function.
15769 (produce_chars): New arguments translation_table and last_block.
15770 Translate characters here. Return number of carryover chars.
15771 Change caller.
15772 (produce_composition): New argument pos. Change caller.
15773 Adjust for the change of annotation data format.
15774 (produce_charset, produce_annotation): Likewise.
15775 (decode_coding, encode_coding): Don't call translate_chars.
15776 (consume_chars): New arg translation_table. Change caller.
15777 (translate_chars): Delete.
15778 (syms_of_coding): Make translation-table's number of extra slots 2.
15779
15780 2008-02-01 Kenichi Handa <handa@m17n.org>
15781
15782 * search.c (simple_search): Fix setting this_pos_byte in backward
15783 search.
15784
15785 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15786 byte sequence.
15787 (detect_coding_ccl): Fix setting of the variable valids.
15788
15789 2008-02-01 Kenichi Handa <handa@m17n.org>
15790
15791 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15792
15793 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15794
15795 * editfns.c (Ftranslate_region_internal): Rename from
15796 Ftranslate_region. Accept a char-table in TABLE.
15797 (syms_of_editfns): Defsubr Stranslate_region_internal.
15798
15799 * xfaces.c (set_lface_from_font_name): If a font is specified for
15800 a frame, generate a fontset from the font.
15801 (build_scalable_font_name): If the scalable font is requested for
15802 a specific size, don't change that size.
15803 (try_font_list): Try a scalable font also in the case that a
15804 pattern string is specified.
15805
15806 2008-02-01 Kenichi Handa <handa@m17n.org>
15807
15808 * xfaces.c (Fface_font): New optional arg CHARACTER.
15809
15810 2008-02-01 Kenichi Handa <handa@m17n.org>
15811
15812 * charset.h (CHARSET_OFFSET): New macro.
15813
15814 2008-02-01 Kenichi Handa <handa@m17n.org>
15815
15816 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15817
15818 * fontset.c (fontset_face): Handle the case that repertory is a
15819 char-table.
15820 (find_font_encoding): Return nil for unknown encoding.
15821 (Fset_fontset_font): Ignore a font of unknown encoding.
15822
15823 2008-02-01 Kenichi Handa <handa@m17n.org>
15824
15825 * keymap.c (describe_vector): Handle default value of a char table.
15826
15827 * fontset.c (fontset_face): Handle fallback fonts correctly.
15828 (Ffontset_info): Return infomation about fallback fonts.
15829
15830 2008-02-01 Kenichi Handa <handa@m17n.org>
15831
15832 * fontset.c (FONTSET_DEFAULT): New macro.
15833 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15834 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15835 the case that it is nil.
15836 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15837 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15838
15839 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15840 subset or superset.
15841
15842 2008-02-01 Kenichi Handa <handa@m17n.org>
15843
15844 * emacs.c (main): Call init_charset after syms_of_XXX.
15845
15846 * charset.c (Vcharset_map_directory): Delete.
15847 (Vcharset_map_path): New variable.
15848 (load_charset_map_from_file): Use Vcharset_map_path instead.
15849 (init_charset): Initialize Vcharset_map_path.
15850 (syms_of_charset): Delete declaration of "charset-map-directory",
15851 add declaration of "charset-map-path".
15852
15853 2008-02-01 Kenichi Handa <handa@m17n.org>
15854
15855 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15856 ASCII only string.
15857
15858 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15859
15860 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15861 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15862
15863 2008-02-01 Kenichi Handa <handa@m17n.org>
15864
15865 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15866
15867 * coding.c (QCmnemonic, QCdefalut_char)
15868 (QCdecode_translation_table, QCencode_translation_table)
15869 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15870 (get_translation_table): Return a list of translation tables if
15871 necessary.
15872 (decode_coding): Call get_translation_table with ENCODEP 0.
15873 (char_encodable_p): If translation_table is non-nil, always call
15874 translate_char.
15875 (Fdefine_coding_system_internal): Accept list of translation
15876 tables as :encode-translation-table and :decode-translation-table.
15877 (Fcoding_system_put): New function.
15878 (syms_of_coding): Declare new symbols. Defsubr
15879 Scoding_system_put.
15880 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15881 typically JISX0212.
15882
15883 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15884 when the charset is superset type.
15885
15886 * character.c (translate_char): Accept list of translation tables.
15887
15888 2008-02-01 Kenichi Handa <handa@m17n.org>
15889
15890 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15891 (CODING_ATTR_TRANS_TBL): New macro.
15892
15893 * coding.c (get_translation_table): New function.
15894 (translate_chars): Fix the bug of skipping annotation data.
15895 (decode_coding, encode_coding): Utilize get_translation_table.
15896 (char_encodable_p, Funencodable_char_position): Translate char if
15897 necessary.
15898 (Ffind_coding_systems_region_internal)
15899 (Fcheck_coding_systems_region): Setup translation table for encode
15900 in a coding system attribute vector in advance.
15901 (Fdefine_coding_system_internal): Allow a symbol as translation
15902 table. For shift-jis type coding system, allow 4th charset.
15903
15904 2008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15907
15908 * xdisp.c (get_next_display_element): Pass -1 as POS to
15909 FACE_FOR_CHAR if displaying a C-string.
15910
15911 2008-02-01 Kenichi Handa <handa@m17n.org>
15912
15913 * composite.c (get_composition_id): Handle xoff and yoff in a
15914 composition rule.
15915
15916 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15917 (struct composition): New member lbearing and rbearing.
15918
15919 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15920 (x_get_glyph_overhangs): Handle a composition glyph.
15921 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15922
15923 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15924 composition glyph.
15925
15926 2008-02-01 Kenichi Handa <handa@m17n.org>
15927
15928 * print.c: Include charset.h.
15929 (Vprint_charset_text_property): New variable.
15930 (Qdefault): Extern it.
15931 (PRINT_STRING_NON_CHARSET_FOUND)
15932 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15933 (print_check_string_result): New variable.
15934 (print_check_string_charset_prop): New function.
15935 (print_prune_charset_plist): New variable.
15936 (print_prune_string_charset): New function.
15937 (print_object): Call print_prune_string_charset if
15938 Vprint_charset_text_property is not t.
15939 (print_interval): Print nothing if interval->plist is nil.
15940 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15941 variable. Init and staticpro print_prune_charset_plist.
15942
15943 2008-02-01 Kenichi Handa <handa@m17n.org>
15944
15945 * fontset.c (new_fontset_from_font_name): Use the specified font
15946 for all characters in the new fontset.
15947
15948 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15949 OBJECT args.
15950
15951 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15952 OBJECT args for composition too.
15953
15954 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15955 OBJECT args.
15956
15957 2008-02-01 Kenichi Handa <handa@m17n.org>
15958
15959 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15960
15961 * fontset.c (reorder_font_vector): Adjust for the change of
15962 FONT_DEF format.
15963 (fontset_face): New arg id. Change caller.
15964 (face_for_char): New args pos and object.
15965 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15966 (fs_query_fontset): Check NAME by Fassoc too.
15967 (Fset_fontset_font): Allow non-XLFD font name.
15968 (Ffontset_info): Adjust for the change of FONT_DEF format.
15969
15970 * fontset.h (face_for_char): Adjust prototype.
15971
15972 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15973 (append_space, extend_face_to_end_of_line)
15974 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15975 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15976
15977 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15978 POS and OBJECT args.
15979
15980 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15981 POS and OBJECT args.
15982
15983 2008-02-01 Jason Rumney <jasonr@gnu.org>
15984
15985 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15986 of GlobalAlloc'ed memory.
15987
15988 2008-02-01 Kenichi Handa <handa@m17n.org>
15989
15990 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15991
15992 * charset.h (charset_table_used): Delete extern.
15993
15994 * charset.c (charset_table_used): Make it static.
15995 (map_charset_chars): Fix args to c_function with.
15996
15997 * chartab.c (map_sub_char_table_for_charset): Fix args to
15998 c_function with.
15999
16000 * coding.h (enum coding_result_code): Delete
16001 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16002
16003 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16004 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16005 (Vlast_code_conversion_error): New variables.
16006 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16007 (ONE_MORE_BYTE): Record error if any instead of signaling an
16008 error. If non-ASCII multibyte char is found, return the negative
16009 value of the code. All callers changed to check it.
16010 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16011 (record_conversion_result): New function. Change all codes setting
16012 coding->result to call this function.
16013 (detect_coding_utf_8, decode_coding_utf_8)
16014 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16015 Don't use the local variable incomplete.
16016 (emacs_mule_char): Change the second arg to `const'.
16017 (decode_coding): Fix of flushing out unprocessed data.
16018 (make_conversion_work_buffer): Fix making of a work buffer.
16019 (decode_coding_object): Return coding->dst_object.
16020
16021 * fontset.c (set_fontset_font): Fix args.
16022
16023 * lisp.h (CHARACTERBITS): Define as 22.
16024
16025 * process.c (send_process): Be sure to set coding->src_multibyte.
16026
16027 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16028
16029 2008-02-01 Kenichi Handa <handa@m17n.org>
16030
16031 * xdisp.c (handle_auto_composed_prop): Give limit to
16032 Fnext_single_char_property_change.
16033
16034 2008-02-01 Kenichi Handa <handa@m17n.org>
16035
16036 * composite.c (syms_of_composite): Don't make the composition hash
16037 table weak.
16038
16039 * fontset.c (Fset_fontset_font): Fix docstring.
16040
16041 * lisp.h (detect_coding_system): Adjust prototype.
16042
16043 * fileio.c (kill_workbuf_unwind): Delete this function.
16044 (Finsert_file_contents): Adjust the call of detect_coding_system.
16045 Get conversion_buffer by code_conversion_save. Use the macro
16046 CODING_MAY_REQUIRE_DECODING. After decoding, update
16047 coding_system.
16048
16049 * coding.h (make_conversion_work_buffer): Delete extern.
16050 (code_conversion_save): Extern it.
16051
16052 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16053 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16054 (decode_coding_utf_8): Don't do eol converion.
16055 (detect_coding_utf_16): Check coding->src_chars, not
16056 coding->src_bytes. Add heuristics for those that have no signature.
16057 (decode_coding_emacs_mule, decode_coding_iso_2022)
16058 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16059 Don't do eol converion.
16060 (adjust_coding_eol_type): Return a new coding system.
16061 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16062 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16063 each change.
16064 (decode_coding): Pay attention to undo_list. Do eol conversion for
16065 all types of coding-systems (if necessary).
16066 (Vcode_conversion_work_buf_list): Delete it.
16067 (Vcode_conversion_reused_workbuf): Rename from
16068 Vcode_conversion_reused_work_buf.
16069 (Vcode_conversion_workbuf_name): New variable.
16070 (reused_workbuf_in_use): New variable.
16071 (make_conversion_work_buffer): Delete the arg DEPTH.
16072 (code_conversion_restore): Change argument to cons.
16073 (code_conversion_save): Delete the argument BUFFER. Change callers.
16074 (detect_coding_system): New argument src_chars. Change callers.
16075 Fix for utf-16 detection.
16076 (init_coding_once): Don't use ISO_carriage_return.
16077 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16078 reused_workbuf_in_use.
16079
16080 2008-02-01 Kenichi Handa <handa@m17n.org>
16081
16082 * keymap.c (store_in_keymap): Pay attention to the case that idx
16083 is a cons specifying a character range.
16084
16085 2008-02-01 Kenichi Handa <handa@m17n.org>
16086
16087 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16088 HANDLED_RECOMPUTE_PROPS.
16089
16090 * coding.c (Fdefine_coding_system_internal): Fix checking of
16091 ascii compatibility.
16092
16093 2008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * charset.c (find_charsets_in_text): Delete unused locale variable.
16096 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16097
16098 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16099 Resync charset_list to Vemacs_mule_charset_list.
16100
16101 * keymap.c (store_in_keymap): Pay attention to the case that idx
16102 is a cons specifying a character range.
16103
16104 2008-02-01 Kenichi Handa <handa@m17n.org>
16105
16106 * composite.c (update_compositions): Bind inhibit-read-only, etc
16107 to t before calling remove-list-of-text-properties.
16108
16109 * print.c (print_object): Always print ASCII chars as is.
16110
16111 2008-02-01 Kenichi Handa <handa@m17n.org>
16112
16113 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16114
16115 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16116 is a char table.
16117
16118 2008-02-01 Kenichi Handa <handa@m17n.org>
16119
16120 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16121
16122 2008-02-01 Kenichi Handa <handa@m17n.org>
16123
16124 * xfaces.c (set_lface_from_font_name): Fix for the case that
16125 FONTNAME is not fontset name.
16126
16127 2008-02-01 Kenichi Handa <handa@m17n.org>
16128
16129 * fns.c (base64_encode_1): Fix previous change.
16130
16131 2008-02-01 Kenichi Handa <handa@m17n.org>
16132
16133 * fontset.c (set_fontset_font): New function.
16134 (Fset_fontset_font): If a font is specified for a charset, use
16135 map_charset_chars to store the font spec in a fontset.
16136
16137 2008-02-01 Kenichi Handa <handa@m17n.org>
16138
16139 * fontset.c (fontset_face): Create a fallback fontset on demand.
16140 (make_fontset): Don't create a fallback fontset here.
16141 (free_face_fontset): Free a fallback fontset (if any) too.
16142 (n_auto_fontsets): Delete this variable.
16143 (auto_fontset_alist): New variable.
16144 (new_fontset_from_font_name): Check auto_fontset_alist.
16145 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16146 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16147 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16148 Defsubr Sfontset_list_all.
16149
16150 2008-02-01 Kenichi Handa <handa@m17n.org>
16151
16152 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16153
16154 2008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16157
16158 2008-02-01 Kenichi Handa <handa@m17n.org>
16159
16160 * editfns.c (Fgoto_char): Fix docstring.
16161
16162 2008-02-01 Kenichi Handa <handa@m17n.org>
16163
16164 * insdel.c (insert_from_gap): Adjust intervals correctly.
16165
16166 2008-02-01 Jason Rumney <jasonr@gnu.org>
16167
16168 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16169 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16170 (w32_initialize): Try to load it.
16171 (x_get_font_repertory): Use it if available.
16172 (w32_encode_char): Add shortcut for unicode output.
16173
16174 * w32fns.c (w32_load_system_font): Default charset to -1.
16175 (x_to_w32_charset): Match all fonts for unicode.
16176 (w32_to_x_charset): New parameter matching. Don't return partial
16177 or wildcard charsets.
16178 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16179 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16180 (w32_to_x_font): Match charset to real charset.
16181 (enum_font_cb2): Always list unicode versions.
16182
16183 * makefile.w32-in (temacs): Increase EMHEAP.
16184
16185 2008-02-01 Jason Rumney <jasonr@gnu.org>
16186
16187 * w32term.c (w32_encode_char): New charset parameter.
16188 font_info.encoding becomes encoding_type.
16189 (x_get_font_repertory): New function. Warning: stub only!
16190 (x_new_font): Return quickly if font already set.
16191 (x_new_fontset): fontsetname parameter is Lisp_Object.
16192 Use new fs_query_fontset. Try new_fontset_from_font_name.
16193 Use fontset_name for return value.
16194
16195 * w32term.h: Declare x_get_font_repertory.
16196
16197 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16198 place of find_charset_in_text. Use encode_coding_object in place
16199 of encode_coding.
16200 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16201 decode_coding.
16202
16203 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16204 of x_new_fontset.
16205 (w32_load_system_font): Initialize charset as unicode.
16206 font_info.encoding becomes encoding_type.
16207 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16208 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16209 (syms_of_w32fns): Set get_font_repertory_func.
16210
16211 * w32console.c: Include character.h. Use terminal_encode_buffer
16212 from term.c.
16213 (write_glyphs): Use new version of encode_terminal_code. Use
16214 encode_coding_object in place of encode_coding.
16215
16216 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16217 encoding becomes encoding_type.
16218
16219 * term.c (terminal_encode_buffer): Make externally visible.
16220
16221 * makefile.w32-in: Add character.h dependancies.
16222 (character.o, chartab.o): New targets.
16223
16224 2008-02-01 Kenichi Handa <handa@m17n.org>
16225
16226 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16227 CODING_ID_EOL_TYPE.
16228
16229 2008-02-01 Andreas Schwab <schwab@suse.de>
16230
16231 * coding.c (produce_chars): Revert last change.
16232
16233 2008-02-01 Kenichi Handa <handa@m17n.org>
16234
16235 * charset.h (charset_unicode): Extern it.
16236
16237 * charset.c (string_xstring_p): Check by (C >= 0x100).
16238 (find_charsets_in_text): Change format of the arc CHARSETS. New
16239 arg MULTIBYTE.
16240 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16241 change of find_charsets_in_text.
16242 (Fsplit_char): Fix doc. Never return unknown.
16243
16244 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16245
16246 * coding.c (Fdefine_coding_system_alias): Update
16247 Vcoding_system_list.
16248
16249 * fontset.c (load_font_get_repertory): Pay attention to the case
16250 that ENCODING of a font is specified by a char-table.
16251
16252 * xterm.c (x_get_font_repertory): Handle the case that the
16253 encoding of font is other than Unicode.
16254
16255 2008-02-01 Kenichi Handa <handa@m17n.org>
16256
16257 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16258 if a character is encodable by the terminal coding system. If
16259 not, produces proper number of `?'s. Update
16260 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16261 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16262
16263 2008-02-01 Kenichi Handa <handa@m17n.org>
16264
16265 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16266 variables.
16267 (encode_terminal_code): Change argument. Encode multiple
16268 characters at once. Store the result of encoding in
16269 terminal_encode_buffer.
16270 (write_glyphs, insert_glyphs): Adjust for the change of
16271 encode_terminal_code.
16272 (term_init): Initialize terminal_encode_buffer and
16273 terminal_encode_buf_size.
16274
16275 * coding.c (consume_chars): If coding->src_object is nil, don't
16276 check annotation.
16277
16278 2008-02-01 Kenichi Handa <handa@m17n.org>
16279
16280 * character.c (char_string): Use ASCII_CHAR_P instead of
16281 SINGLE_BYTE_CHAR_P.
16282
16283 2008-02-01 Kenichi Handa <handa@m17n.org>
16284
16285 * xdisp.c (handle_auto_composed_prop): Check if the last
16286 characters of auto-composed region is newly composed with the
16287 following characters.
16288 (handle_composition_prop): Fix checking of point being inside
16289 composition.
16290
16291 2008-02-01 Kenichi Handa <handa@m17n.org>
16292
16293 * fns.c (concat): Don't change multibyteness of the result by
16294 concatenating an 8-bit character.
16295
16296 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16297 multibyteness of the result when newelt is an 8-bit character.
16298
16299 2008-02-01 Dave Love <fx@gnu.org>
16300
16301 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16302 EMACS_INT.
16303
16304 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16305
16306 * xfaces.c (face_numeric_value): Declare dim size_t.
16307 (Finternal_lisp_face_equal_p): Remove unused f.
16308
16309 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16310 (MATRIX_ROW): Remove unused vars.
16311 (draw_glyphs, x_insert_glyphs, fast_find_position)
16312 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16313 byte/char counts.
16314
16315 * regex.c (regex_compile): Remove unused var.
16316
16317 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16318
16319 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16320 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16321
16322 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16323
16324 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16325
16326 * fileio.c (Fwrite_region): Remove unused var.
16327
16328 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16329 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16330
16331 * composite.c (Fremove_list_of_text_properties): Declare.
16332
16333 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16334 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16335 (coding_inherit_eol_type): Remove unused attrs.
16336 (detect_coding): Cast arg of detect_eol.
16337
16338 * charset.c (syms_of_charset): Remove unused var p.
16339 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16340 byte/char counts.
16341
16342 * casetab.c (set_case_table): Remove unused var.
16343
16344 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16345 unused vars.
16346
16347 2008-02-01 Dave Love <fx@gnu.org>
16348
16349 * xterm.c (x_bitmap_mask): Declare.
16350
16351 2008-02-01 Dave Love <fx@gnu.org>
16352
16353 * xterm.c (x_term_init): Fix type error.
16354
16355 * lisp.h: Add Funibyte_char_to_multibyte.
16356
16357 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16358 (Fset_coding_system_priority): Doc fix.
16359
16360 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16361
16362 * indent.c (check_composition): Make start and end EMACS_INT.
16363
16364 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16365
16366 * xdisp.c (handle_composition_prop, check_point_in_composition):
16367 Make buffer positions EMACS_INT.
16368
16369 * composite.c (find_composition, run_composition_function)
16370 (update_compositions, Ffind_composition_internal): Make buffer
16371 positions EMACS_INT.
16372
16373 * composite.h (find_composition, update_compositions): Make
16374 position args EMACS_INT.
16375
16376 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16377
16378 * intervals.c (get_property_and_range):
16379 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16380
16381 * unexalpha.c: Don't include varargs.h.
16382
16383 2008-02-01 Dave Love <fx@gnu.org>
16384
16385 * coding.h (ENCODE_UTF_8): New.
16386
16387 * Makefile.in (gtkutil.o): Depend on coding.h.
16388
16389 * coding.c (Fset_coding_system_priority): Doc fix.
16390
16391 2008-02-01 Kenichi Handa <handa@m17n.org>
16392
16393 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16394 the case of auto saving.
16395
16396 2008-02-01 Andreas Schwab <schwab@suse.de>
16397
16398 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16399 `range' from GC.
16400
16401 2008-02-01 Kenichi Handa <handa@m17n.org>
16402
16403 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16404
16405 2008-02-01 Kenichi Handa <handa@m17n.org>
16406
16407 * fileio.c (choose_write_coding_system): Return a decided coding system.
16408 (Fwrite_region): Set Vlast_coding_system_used to the return value
16409 of choose_write_coding_system.
16410
16411 2008-02-01 Kenichi Handa <handa@m17n.org>
16412
16413 * charset.c (Fset_charset_priority): Pay attention to duplicated
16414 arguments.
16415
16416 * coding.c (QCcategory): New variable.
16417 (syms_of_coding): Defsym it. Set all elements of
16418 Vcoding_category_table and their symbol values.
16419 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16420 coding-category-XXX, and coding-category-list.
16421 (Fdefine_coding_system_internal): Add category in the plist.
16422
16423 2008-02-01 Kenichi Handa <handa@m17n.org>
16424
16425 * callproc.c (Fcall_process): Handle carryover correctly.
16426
16427 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16428 (raw_text_coding_system): Check NILP (coding_system).
16429 (coding_inherit_eol_type): Check NILP (coding_system) and
16430 NILP (parent).
16431 (consume_chars): Fix for the case of raw-text.
16432
16433 * process.c (read_process_output): Handle carryover correctly.
16434
16435 2008-02-01 Dave Love <fx@gnu.org>
16436
16437 * regex.c (re_search_2): Fix last change.
16438
16439 2008-02-01 Kenichi Handa <handa@m17n.org>
16440
16441 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16442 target_multibyte. Even in a unibyte case, return a converted
16443 multibyte char.
16444 (GET_CHAR_AFTER): New macro.
16445 (PATFETCH): Translate via multibyte char.
16446 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16447 (SETUP_MULTIBYTE_RANGE): New macro.
16448 (regex_compile): Setup compiled code so that its multibyteness
16449 matches that of a target. Fix the handling of "[X-YZ]" using
16450 SETUP_MULTIBYTE_RANGE.
16451 (analyse_first) <charset>: For filling fastmap for all multibyte
16452 characters, don't check by BASE_LEADING_CODE_P.
16453 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16454 the same as RE_MULTIBYTE_P (bufp) now.
16455 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16456 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16457 (TRANSLATE_VIA_MULTIBYTE): New macro.
16458 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16459 It is the same as RE_MULTIBYTE_P (bufp) now.
16460 <exactn>: Translate via multibyte.
16461 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16462 translate it.
16463 <charset, charset_not>: Fetch a character by
16464 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16465 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16466 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16467 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16468 by GET_CHAR_AFTER.
16469 (bcmp_translate): Likewise.
16470
16471 * search.c (compile_pattern): Check the member target_multibyte,
16472 not the member multibyte of buf.
16473
16474 * lread.c (read1): While reading a string, set force_singlebyte
16475 and force_multibyte correctly.
16476
16477 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16478 up of unibyte_to_multibyte_table.
16479
16480 2008-02-01 Kenichi Handa <handa@m17n.org>
16481
16482 * coding.c (setup_coding_system): If coding has
16483 post-read-conversion or pre-write-conversion, set
16484 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16485 respectively.
16486 (decode_coding_gap): Run post-read-conversion if any.
16487
16488 * fileio.c (Finsert_file_contents): Even if we read into a
16489 unibyte buffer, check if we must decode the result or not.
16490
16491 2008-02-01 Kenichi Handa <handa@m17n.org>
16492
16493 * coding.c (make_conversion_work_buffer): Change the work buffer
16494 name to the same one as that of Emacs 21.
16495
16496 2008-02-01 Kenichi Handa <handa@m17n.org>
16497
16498 * coding.h (make_conversion_work_buffer): Adjust prototype.
16499 (code_conversion_restore): Don't extern it.
16500
16501 * coding.c (detected_mask): Delete unused variable.
16502 (decode_coding_iso_2022): Pay attention to the byte sequence of
16503 CTEXT extended segment, and retain those bytes as is.
16504 (decode_coding_ccl): Delete unused variable `valids'.
16505 (setup_coding_system): Delete unused variable `category'.
16506 (consume_chars): Delete unused variable `category'. Make it work
16507 for non-multibyte case.
16508 (make_conversion_work_buffer): Change argument.
16509 (saved_coding): Delete unused variable.
16510 (code_conversion_restore): Don't check saved_coding->destination.
16511 (code_conversion_save): New function.
16512 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16513 instead of record_unwind_protect.
16514 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16515 (detect_coding_system): Delete unused variable `mask'.
16516 (Fdefine_coding_system_internal): Delete unused variable id.
16517
16518 * fileio.c (kill_workbuf_unwind): New function.
16519 (Finsert_file_contents): On replacing, call
16520 make_conversion_work_buffer with correct args, and call
16521 record_unwind_protect with the first arg kill_workbuf_unwind.
16522
16523 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16524
16525 2008-02-01 Kenichi Handa <handa@m17n.org>
16526
16527 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16528 (fontset_add): Fix for the case that TO is less than TO1.
16529 (Ffontset_info): Don't use fallback fontset on checking the
16530 default fontset.
16531 (dump_fontset): New function for debugging.
16532
16533 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16534 coding_type is Qcharset.
16535
16536 2008-02-01 Kenichi Handa <handa@m17n.org>
16537
16538 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16539 (map_char_table): Don't inherit the value from the parent on
16540 initializing VAL. Adjust for the above change.
16541
16542 2008-02-01 Kenichi Handa <handa@m17n.org>
16543
16544 * coding.c (Qsignature, Qendian): Delete these variables.
16545 (syms_of_coding): Don't initialize them.
16546 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16547 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16548 detect_info->found.
16549 (decode_coding_utf_16): Don't detect BOM here.
16550 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16551 is NOT utf_16_without_bom.
16552 (setup_coding_system): For a coding system of type utf-16, check
16553 if the attribute :endian is Qbig or not (not nil or not), and set
16554 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16555 (detect_coding): If coding type is utf-16 and BOM detection is
16556 required, detect it.
16557 (Fdefine_coding_system_internal): For a coding system of type
16558 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16559
16560 2008-02-01 Kenichi Handa <handa@m17n.org>
16561
16562 * coding.c (coding_set_source): Fix for the case that the current
16563 buffer is different from coding->src_object.
16564 (decode_coding_object): Don't use the conversion work buffer if
16565 DST_OBJECT is a buffer.
16566
16567 2008-02-01 Dave Love <fx@gnu.org>
16568
16569 * lread.c (read_emacs_mule_char) [len==2]: Index
16570 emacs_mule_charset correctly.
16571
16572 2008-02-01 Dave Love <fx@gnu.org>
16573
16574 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16575 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16576 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16577 treated specially.)
16578 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16579 (detected_mask): Remove Big5 bits.
16580
16581 2008-02-01 Kenichi Handa <handa@m17n.org>
16582
16583 The following changes are to make the font rescaling facility
16584 compatible with Emacs 21.
16585
16586 * xfaces.c (Vface_font_rescale_alist): Rename from
16587 Vface_resizing_fonts.
16588 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16589 (font_rescale_ratio): Rename from font_resizing_ratio.
16590 (split_font_name): Set font->rescale_ratio.
16591 (better_font_p): Pay attention to font->rescale_ratio.
16592 (build_scalable_font_name): Likewise. Change RESX, and RESY
16593 fields.
16594 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16595
16596 2008-02-01 Kenichi Handa <handa@m17n.org>
16597
16598 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16599 (Qutf_16_le): Remove these variables.
16600 (syms_of_coding): Don't DEFSYM them.
16601 (decode_coding_utf_16): Fix handling of BOM.
16602 (encode_coding_utf_16): Fix handling of BOM.
16603
16604 2008-02-01 Kenichi Handa <handa@m17n.org>
16605
16606 * fileio.c (Finsert_file_contents): On replacing, before decoding
16607 the file into the work buffer, set point of the work buffer to the end.
16608
16609 2008-02-01 Dave Love <fx@gnu.org>
16610
16611 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16612
16613 2008-02-01 Dave Love <fx@gnu.org>
16614
16615 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16616 and fix C types.
16617
16618 2008-02-01 Kenichi Handa <handa@m17n.org>
16619
16620 * xdisp.c (SKIP_GLYPHS): New macro.
16621 (set_cursor_from_row): Pay attention to string display properties.
16622
16623 * category.c (copy_category_entry): Fix for the case that RANGE
16624 is an integer.
16625
16626 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16627
16628 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16629
16630 2008-02-01 Kenichi Handa <handa@m17n.org>
16631
16632 * charset.c (Fcharset_id_internal): New function.
16633 (syms_of_charset): Defsubr it.
16634
16635 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16636 with the last arg charset_list acquired from coding.
16637 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16638 the attribute coding_attr_ccl_valids.
16639
16640 * coding.h (enum define_coding_ccl_arg_index): Set the first
16641 member coding_arg_ccl_decoder to coding_arg_max.
16642
16643 * ccl.h (ccl_driver): Adjust prototype.
16644
16645 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16646 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
16647 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
16648 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16649 last arg Qnil.
16650
16651 2008-02-01 Kenichi Handa <handa@m17n.org>
16652
16653 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16654 call encode_char.
16655
16656 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16657
16658 2008-02-01 Dave Love <fx@gnu.org>
16659
16660 * composite.c (syms_of_composite): Make composition_hash_table weak.
16661
16662 2008-02-01 Kenichi Handa <handa@m17n.org>
16663
16664 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16665 (font_name_registry): Don't extern them.
16666 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16667
16668 * fontset.h (Qfontset): Don't extern it.
16669 (new_fontset_from_font_name): Extern it.
16670
16671 * fontset.c: Give 8 extra slots to fontset objects.
16672 (Qfontset_info): New variable.
16673 (syms_of_fontset): Defsym it.
16674 (FONTSET_FALLBACK): New macro.
16675 (fontset_face): Try also the default fontset.
16676 (make_fontset): Realize a fallback fontset from the default fontset.
16677 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16678 using split_font_name_into_vector and build_font_name_from_vector.
16679 (Fset_fontset_font): Access the elements of font_spec by enum
16680 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16681 name by using split_font_name_into_vector.
16682 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16683 generate a proper font name from the fontset name. Update
16684 Vfontset_alias_alist.
16685 (n_auto_fontsets): New variable.
16686 (new_fontset_from_font_name): New function.
16687 (Ffont_info): Store the information about fonts generated from the
16688 default fontset in the first extra slot of the returned char-table.
16689
16690 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16691 (font_name_registry): Delete function.
16692 (split_font_name_into_vector): New function.
16693 (build_font_name_from_vector): New function.
16694 (font_list): The argument REGISTRY is now a list of registry names.
16695 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16696 specifies an explicit font name, return the name as is. Make a
16697 list of registy names.
16698
16699 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16700 of x_new_fontset.
16701 (Fx_create_frame): Don't call x_new_fontset here. Just use
16702 x_list_fonts to check the existence of fonts.
16703
16704 * xterm.h (x_new_fontset): Adjust prototype.
16705
16706 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16707 string. Use new_fontset_from_font_name to create a fontset from a
16708 font name.
16709
16710 2008-02-01 Kenichi Handa <handa@m17n.org>
16711
16712 * syntax.c (Vfind_word_boundary_function_table): New name for
16713 Vnext_word_boundary_function_table.
16714 (find-word-boundary-function-table): New name for
16715 next-word-boundary-function-table.
16716
16717 2008-02-01 Dave Love <fx@gnu.org>
16718
16719 * Makefile.in: Fix some dependencies.
16720
16721 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16722 set it to nil before returning.
16723
16724 * composite.c (update_compositions): Fix type error.
16725
16726 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16727
16728 2008-02-01 Kenichi Handa <handa@m17n.org>
16729
16730 * xterm.c (x_new_font): Optimize for the case that the font is
16731 already set for the frame.
16732
16733 2008-02-01 Kenichi Handa <handa@m17n.org>
16734
16735 * chartab.c (char_table_ascii): Check if the char table contents
16736 is sub-char-table or not.
16737 (char_table_set, char_table_set_range): Fix argument to
16738 char_table_ascii.
16739
16740 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16741 (detect_coding_utf_8, detect_coding_utf_16)
16742 (detect_coding_emacs_mule, detect_coding_iso_2022)
16743 (detect_coding_sjis, detect_coding_big5)
16744 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16745 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16746 sequence is valid in this coding system. Change callers.
16747 (MAX_ANNOTATION_LENGTH): New macro.
16748 (ADD_ANNOTATION_DATA): New macro.
16749 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16750 ADD_ANNOTATION_DATA. Change the format of annotation data.
16751 (ADD_CHARSET_DATA): New macro.
16752 (emacs_mule_char): New argument ID. Change callers.
16753 (decode_coding_emacs_mule, decode_coding_iso_2022)
16754 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16755 Produce charset annotation data in coding->charbuf.
16756 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16757 to charset annotation data in coding->charbuf.
16758 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16759 coding->common_flags if the coding system is iso-2022 based and
16760 uses designation.
16761 (produce_composition): Adjust for the new annotation data format.
16762 (produce_charset): New function.
16763 (produce_annotation): Handle charset annotation.
16764 (handle_composition_annotation, handle_charset_annotation): New
16765 functions.
16766 (consume_chars): Handle charset annotation. Utilize the above two
16767 functions.
16768 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16769 buffer, get the deleted text as a string and set
16770 coding->src_object to that string.
16771 (detect_coding, detect_coding_system): Use the new struct
16772 coding_detection_info.
16773
16774 * coding.h (struct coding_detection_info): New structure.
16775 (struct coding_system): Adjust prototype of the member `detector'.
16776 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16777
16778 2008-02-01 Kenichi Handa <handa@m17n.org>
16779
16780 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16781
16782 2008-02-01 Dave Love <fx@gnu.org>
16783
16784 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16785 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16786 to new local and nullify apropos_accumulate before returning.
16787 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16788
16789 2008-02-01 Kenichi Handa <handa@m17n.org>
16790
16791 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16792 correctly.
16793
16794 2008-02-01 Dave Love <fx@gnu.org>
16795
16796 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16797
16798 2008-02-01 Kenichi Handa <handa@m17n.org>
16799
16800 The following changes are to make character composition happen
16801 automatically on displaying.
16802
16803 * Makefile.in (lisp, shortlisp): Add composite.elc.
16804
16805 * composite.h (Qauto_composed, Vauto_composition_function)
16806 (Qauto_composition_function): Extern them.
16807
16808 * composite.c (Vcomposition_function_table)
16809 (Qcomposition_function_table): Delete variables.
16810 (Qauto_composed, Vauto_composition_function)
16811 (Qauto_composition_function): New variables.
16812 (run_composition_function): Don't call
16813 compose-chars-after-function.
16814 (update_compositions): Clear `auto-composed' text property.
16815 (compose_chars_in_text): Delete this function.
16816 (syms_of_composite): Staticpro Qauto_composed and
16817 Qauto_composition_function. Declare Vauto_composition_function as
16818 a Lisp variable.
16819
16820 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16821
16822 * xdisp.c (it_props): Add an entry for Qauto_composed.
16823 (handle_auto_composed_prop): New function.
16824
16825 * xselect.c (selection_data_to_lisp_data): Don't call
16826 compose_chars_in_text.
16827
16828 2008-02-01 Dave Love <fx@gnu.org>
16829
16830 * keyboard.c (read_char): Modify checking around use of
16831 Vkeyboard_translate_table.
16832
16833 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16834 and fix C types.
16835
16836 2008-02-01 Kenichi Handa <handa@m17n.org>
16837
16838 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16839 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16840 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16841 the case that the last byte is '\r' correctly.
16842 (decode_coding): Flush out the unprocessed data correctly.
16843 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16844
16845 2008-02-01 Dave Love <fx@gnu.org>
16846
16847 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16848 Add XK_ISO... case.
16849 (xaw_scroll_callback): Revert last change.
16850
16851 2008-02-01 Kenichi Handa <handa@m17n.org>
16852
16853 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16854
16855 2008-02-01 Kenichi Handa <handa@m17n.org>
16856
16857 * xfaces.c (Vface_resizing_fonts): New variable.
16858 (struct font_name): New member `resizing_ratio'.
16859 (font_resizing_ratio): New function.
16860 (split_font_name): Set font->resizing_ratio.
16861 (better_font_p): Pay attention to font->resizing_ratio.
16862 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16863 RESX, and RESY fields.
16864 (try_alternative_families): Try scalable fonts if
16865 Vscalable_fonts_allowed is not Qt.
16866 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16867
16868 2008-02-01 Dave Love <fx@gnu.org>
16869
16870 * xterm.c (xaw_scroll_callback): Cast correctly.
16871
16872 2008-02-01 Dave Love <fx@gnu.org>
16873
16874 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16875 (lispy_kana_keys): Comment out.
16876 (make_lispy_event) [XK_kana_A]: Comment out.
16877
16878 * xterm.c (xaw_scroll_callback): Cast call_data.
16879 (XTread_socket): Deal with ASCII keysyms.
16880 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16881
16882 2008-02-01 Dave Love <fx@gnu.org>
16883
16884 * xterm.c (Vx_keysym_table): New.
16885 (syms_of_xterm): Initialize it.
16886 (XTread_socket): Use it.
16887 From head: Eliminate incorrect optimization that tried to avoid
16888 decoding the output of X*LookupString.
16889 (x_get_font_repertory): Delete charset declaration.
16890
16891 2008-02-01 Kenichi Handa <handa@m17n.org>
16892
16893 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16894 return 0.
16895 (Fdefine_coding_system_internal): Setup
16896 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16897
16898 2008-02-01 Dave Love <fx@gnu.org>
16899
16900 * coding.c (Fcheck_coding_system): Doc fix.
16901
16902 * editfns.c (Finsert_byte): Return a proper value.
16903
16904 2008-02-01 Kenichi Handa <handa@m17n.org>
16905
16906 * coding.c (decode_coding): Fix args to translate_chars. Pay
16907 attention to Vstandard_translation_table_for_decode.
16908 (encode_coding): Fix args to translate_chars. Pay attention to
16909 Vstandard_translation_table_for_encode.
16910
16911 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16912 SINGLE_BYTE_CHAR_P.
16913
16914 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16915 not by SINGLE_BYTE_CHAR_P.
16916
16917 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16918 SINGLE_BYTE_CHAR_P.
16919
16920 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16921 SINGLE_BYTE_CHAR_P.
16922
16923 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16924 by SINGLE_BYTE_CHAR_P.
16925
16926 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16927 SINGLE_BYTE_CHAR_P.
16928
16929 2008-02-01 Dave Love <fx@gnu.org>
16930
16931 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16932
16933 2008-02-01 Dave Love <fx@gnu.org>
16934
16935 * fns.c (Flanginfo): Fix typo.
16936
16937 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16938
16939 2008-02-01 Kenichi Handa <handa@m17n.org>
16940
16941 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16942 (detect_coding_emacs_mule, detect_coding_iso_2022)
16943 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16944 incomplete byte sequence. Don't update *mask when correctly detected.
16945 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16946 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16947 (detect_coding, detect_coding_system): Adjust for the changes above.
16948
16949 2008-02-01 Kenichi Handa <handa@m17n.org>
16950
16951 * character.c (char_string): Rename from
16952 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16953 (string_char): Rename from string_char.
16954
16955 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16956 if C is greater than MAX_3_BYTE_CHAR.
16957 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16958 string_char instead of string_char_with_unification.
16959
16960 2008-02-01 Dave Love <fx@gnu.org>
16961
16962 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16963
16964 2008-02-01 Kenichi Handa <handa@m17n.org>
16965
16966 * keymap.c (push_key_description): Pay attention to force_multibyte.
16967
16968 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16969
16970 2008-02-01 Dave Love <fx@gnu.org>
16971
16972 * charset.c (define_charset_internal): Rename `supprementary'.
16973
16974 * Makefile.in (lisp, shortlisp): Remove latin-N.
16975
16976 2008-02-01 Dave Love <fx@gnu.org>
16977
16978 * xfns.c (x_window, x_window): Use use_xim.
16979
16980 * xterm.c (use_xim): Initialize.
16981 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16982 (x_term_init): Maybe set use_xim.
16983
16984 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16985
16986 2008-02-01 Kenichi Handa <handa@m17n.org>
16987
16988 * search.c (search_buffer): Fix case-fold-search of multibyte
16989 characters.
16990 (boyer_moore): Rename the last argument to char_high_bits.
16991
16992 2008-02-01 Kenichi Handa <handa@m17n.org>
16993
16994 * xdisp.c (display_string): Fix for the case of zero width glyph.
16995
16996 * xfns.c (x_set_font): Change the error message of the case that
16997 x_new_fontset returns Qt.
16998
16999 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17000 (Finternal_set_lisp_face_attribute): Use signal_error for the
17001 error of invalid fontset.
17002
17003 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17004 fontset, return Qt.
17005
17006 2008-02-01 Dave Love <fx@gnu.org>
17007
17008 * unexelf.c (unexec): Make .got handling not SGI-specific.
17009
17010 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17011
17012 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17013
17014 * keyboard.c (read_key_sequence): Fix type error.
17015
17016 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17017 type error.
17018
17019 * fontset.c (fontset_add): Return Lisp_Object.
17020
17021 2008-02-01 Dave Love <fx@gnu.org>
17022
17023 * charset.h (charset_ordered_list_tick): Declare extern.
17024
17025 2008-02-01 Kenichi Handa <handa@m17n.org>
17026
17027 The following changes (and some of 2008-02-01 changes of mine) are
17028 for handling syntax, category, and case conversion for unibyte
17029 characters by converting them to multibyte on the fly. With these
17030 changes, we don't have to setup syntax and case tables for unibyte
17031 characters in each language environment.
17032
17033 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17034 multibyte if necessary.
17035
17036 * bytecode.c (Fbyte_code): Likewise.
17037
17038 * character.h (LEADING_CODE_LATIN_1_MIN)
17039 (LEADING_CODE_LATIN_1_MAX): New macros.
17040 (unibyte_to_multibyte_table): Extern it.
17041 (unibyte_char_to_multibyte): New macro.
17042 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17043 (CHAR_LEADING_CODE): New macro.
17044 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17045
17046 * character.c (unibyte_to_multibyte_table): New variable.
17047 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17048 (multibyte_char_to_unibyte): If C is an eight-bit character,
17049 convert it to the corresponding byte value.
17050
17051 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17052 not 1, signals an error. Update the elements of
17053 unibyte_to_multibyte_table.
17054 (init_charset_once): Initialize unibyte_to_multibyte_table.
17055 (syms_of_charset): Define the charset `iso-8859-1'.
17056
17057 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17058 as is without converting it to unibyte. In a unibyte buffer,
17059 convert C to multibyte before checking the syntax.
17060
17061 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17062
17063 * minibuf.c (Fminibuffer_complete_word): Use the macro
17064 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17065
17066 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17067
17068 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17069 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17070 that is zero, convert an eight-bit char to multibyte.
17071 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17072 non-emacs case.
17073 (PATFETCH): Convert an eight-bit char to multibyte.
17074 (HANDLE_UNIBYTE_RANGE): New macro.
17075 (regex_compile): Setup the compiled pattern for multibyte chars
17076 even if the given regex string is unibyte. Use PATFETCH_RAW
17077 instead of PATFETCH in many places. To handle `charset'
17078 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17079 only for ASCII chars.
17080 (analyse_first) <exactn>: Simplify because the compiled pattern
17081 is multibyte.
17082 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17083 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17084 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17085 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17086 multibyte always 1.
17087 (re_search_2): In emacs, set the locale variable multibyte to 1,
17088 otherwise to 0. New local variable target_multibyte. Check it
17089 to decide the multibyteness of STR1 and STR2. If
17090 target_multibyte is zero, convert unibyte chars to multibyte
17091 before translating and checking fastmap.
17092 (TARGET_CHAR_AND_LENGTH): New macro.
17093 (re_match_2_internal): In emacs, set the locale variable multibyte
17094 to 1, otherwise to 0. New local variable target_multibyte. Check
17095 it to decide the multibyteness of STR1 and STR2. Use
17096 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17097 <charset, charset_not>: If multibyte is nonzero, check fastmap
17098 only for ASCII chars. Call bcmp_translate with
17099 target_multibyte, not with multibyte.
17100 <begline>: Declare the local variable C as `unsigned'.
17101 (bcmp_translate): Change the last arg name to target_multibyte.
17102
17103 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17104 the regexp pattern and the matching target. Set cp->buf.multibyte
17105 to the multibyteness of the regexp pattern. Set
17106 cp->but.target_multibyte to the multibyteness of the matching target.
17107 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17108 FETCH_STRING_CHAR_ADVANCE.
17109 (Freplace_match): Convert unibyte chars to multibyte.
17110
17111 * syntax.c (char_quoted, back_comment, scan_words)
17112 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17113 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17114 unibyte chars to multibyte.
17115 (skip_chars): Delete the arg syntaxp, and move the code for
17116 handling syntaxes to skip_syntaxes. Change callers.
17117 Fix the case that the multibyteness of STRING and the current
17118 buffer doesn't match.
17119 (skip_syntaxes): New function.
17120 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17121 SINGLE_BYTE_CHAR_P.
17122
17123 2008-02-01 Kenichi Handa <handa@m17n.org>
17124
17125 * xfaces.c (QCfontset): New variable.
17126 (LFACE_FONTSET): New macro.
17127 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17128 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17129 (Finternal_set_lisp_face_attribute)
17130 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17131 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17132 check also LFACE_FONTSET_INDEX.
17133 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17134 attrs[LFACE_FONT_INDEX].
17135 (syms_of_xfaces): Intern and staticpro QCfontset.
17136
17137 * dispextern.h (enum lface_attribute_index): New member
17138 LFACE_FONTSET_INDEX.
17139
17140 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17141
17142 2008-02-01 Kenichi Handa <handa@m17n.org>
17143
17144 * coding.c (coding_set_destination): Fix coding->destination for
17145 the case converting a region.
17146 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17147 (encode_coding_object): Fix coding->dst_pos and
17148 coding->dst_pos_byte for the case converting a region.
17149
17150 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17151
17152 * character.h (BYTE8_STRING): New macro.
17153
17154 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17155
17156 2008-02-01 Kenichi Handa <handa@m17n.org>
17157
17158 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17159 characters by octal form.
17160
17161 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17162
17163 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17164 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17165 _fetch_multibyte_char_len.
17166 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17167
17168 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17169
17170 * casefiddle.c (casify_object): Simplify. Handle the case that
17171 the case conversion change the byte length.
17172 (casify_region): Likewise.
17173
17174 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17175
17176 * character.c (_fetch_multibyte_char_len): Delete this variable.
17177 (syms_of_character): Setup Vprintable_chars.
17178
17179 * editfns.c (Fchar_equal): Fix for the unibyte case.
17180 (Finsert_byte): New function.
17181 (syms_of_editfns): Defsubr it.
17182
17183 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17184 of direct code 0x3ffff.
17185
17186 * search.c (Freplace_match): Fix for the unibyte case.
17187
17188 2008-02-01 Kenichi Handa <handa@m17n.org>
17189
17190 * lread.c (safe_to_load_p): Fix the logic.
17191
17192 * syntax.c (scan_words): Don't treat characters belonging to
17193 different scripts as constituting a word.
17194
17195 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17196
17197 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17198
17199 * emacs.c (main): In the case of --unibyte, instead of aborting on
17200 finding non-empty buffer, make it unibyte.
17201
17202 2008-02-01 Kenichi Handa <handa@m17n.org>
17203
17204 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17205 to create a fontset.
17206
17207 2008-02-01 Dave Love <fx@gnu.org>
17208
17209 * character.c (Funibyte_char_to_multibyte): Doc fix.
17210
17211 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17212
17213 2008-02-01 Kenichi Handa <handa@m17n.org>
17214
17215 * fontset.c (fontset_add): Make the type `int'.
17216 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17217
17218 * character.c (unibyte_char_to_multibyte)
17219 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17220 charset_unibyte, not charset_primary.
17221
17222 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17223
17224 * charset.c (charset_unibyte): Rename from charset_primary.
17225 (Funibyte_charset): Rename from Fprimary_charset.
17226 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17227 (syms_of_charset): Adjust for the above changes.
17228
17229 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17230 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17231 it->multibyte_p is zero.
17232
17233 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17234 Delete extern.
17235
17236 2008-02-01 Kenichi Handa <handa@m17n.org>
17237
17238 * coding.c (Fdefine_coding_system_internal): Fix category setting
17239 for a coding system of type iso-2022.
17240
17241 2008-02-01 Kenichi Handa <handa@m17n.org>
17242
17243 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17244
17245 2008-02-01 Kenichi Handa <handa@m17n.org>
17246
17247 * syntax.c (Vnext_word_boundary_function_table): New variable.
17248 (next-word-boundary-function-table): Declare it as a Lisp variable
17249 in syms_of_syntax.
17250 (scan_words): Call functions in Vnext_word_boundary_function_table
17251 if any.
17252
17253 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17254
17255 * fontset.c (fs_load_font): If fontp->charset is not negative,
17256 return fontp without setting its members.
17257
17258 2008-02-01 Dave Love <fx@gnu.org>
17259
17260 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17261
17262 * m/sparc.h (HAVE_ALLOCA): Delete.
17263
17264 * s/irix6-5.h: Don't include strings.h.
17265 (bcopy, bzero, bcmp): Don't undef.
17266
17267 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17268
17269 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17270 (TIOCSIGSEND): Don't test IRIX6.
17271 (bcopy, bzero, bcmp): Define conditionally.
17272
17273 2008-02-01 Kenichi Handa <handa@m17n.org>
17274
17275 * buffer.c (Qas, Qmake, Qto): New variables.
17276 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17277 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17278
17279 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17280 we are inserting a process output into a multibyte buffer.
17281
17282 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17283 multibyte_char_to_unibyte.
17284
17285 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17286 by the primary charset, make it eight-bit char.
17287 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17288
17289 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17290 (charset_8_bit__control, charset_8_bit_graphic)
17291 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17292 (define_charset_internal): New function.
17293 (syms_of_charset): Call define_charset_internal for pre-defined
17294 charsets.
17295
17296 * charset.h (charset_8_bit): Extern it.
17297
17298 * coding.c (make_conversion_work_buffer): Adjust for the change
17299 of Fset_buffer_multibyte.
17300 (encode_coding_raw_text): Increment p0 in the loop.
17301
17302 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17303
17304 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17305 for the change of Fset_buffer_multibyte.
17306
17307 * fns.c (Fstring_to_multibyte): New function.
17308 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17309
17310 2008-02-01 Dave Love <fx@gnu.org>
17311
17312 * xfns.c (x_put_x_image): Declare args.
17313
17314 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17315 (try_font_list): Declare an arg.
17316
17317 * xdisp.c (message2_nolog, set_message): Declare an arg.
17318
17319 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17320
17321 * syntax.c (scan_sexps_forward): Declare an arg.
17322
17323 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17324 Declare an arg.
17325
17326 * lisp.h (Fnew_fontset): Declare.
17327
17328 * keymap.c (push_key_description): Call CHARACTERP correctly.
17329
17330 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17331 (face_for_char): Delete unused vars.
17332 (Fset_fontset_font): Doc fix. Delete unused vars.
17333
17334 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17335
17336 * composite.c (update_compositions): Declare arg.
17337
17338 * cm.c (calccost, cmgoto): Declare args.
17339
17340 * charset.c: Remove `emacs' conditional. Doc fixes.
17341 (map_char_table_for_charset): Declare.
17342
17343 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17344
17345 * ccl.c: Remove `emacs' conditional.
17346
17347 2008-02-01 Kenichi Handa <handa@m17n.org>
17348
17349 The following changes are to allow specifying multiple font
17350 patterns for a character range (specified by script or charset).
17351
17352 * Makefile.in (abbrev.o): Depend on syntax.h.
17353 (xfaces.o): Depend on charset.h.
17354
17355 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17356 SINGLE_BYTE_CHAR_P.
17357
17358 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17359
17360 * character.h (Vchar_script_table): Extern it.
17361
17362 * character.c (Vscript_alist): Delete.
17363 (Vchar_script_table, Qchar_script_table): New variable.
17364 (syms_of_character): Declare Vchar_script_table as a lisp variable
17365 and initialize it.
17366
17367 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17368 have property char-table-extra-slots, make no extra slot.
17369
17370 * dispextern.h (struct face): Delete member `charset'.
17371 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17372 SINGLE_BYTE_CHAR_P.
17373 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17374 Add prototypes.
17375 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17376 (generate_ascii_font_name): Rename from generate_ascii_font.
17377
17378 * fontset.h (get_font_repertory_func): New prototype.
17379 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17380 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17381
17382 * fontset.c (Qprepend, Qappend): New variables.
17383 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17384 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17385 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17386 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17387 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17388 (load_font_get_repertory): New functions.
17389 (fontset_set): Delete.
17390 (fontset_face): New arg FACE. Return face ID, not face.
17391 Complete re-write to handle new fontset structure. Change caller.
17392 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17393 (face_for_char): Don't call lookup_face.
17394 (make_fontset_for_ascii_face): New arg FACE.
17395 (fs_load_font): New arg CHARSET_ID. Don't check
17396 Vfont_encoding_alist here.
17397 (find_font_encoding): New function.
17398 (list_fontsets): Use STRINGP, not ! NILP.
17399 (accumulate_script_ranges): New function.
17400 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17401 re-written to handle new fontset structure.
17402 (Ffontset_font): Return a copy of element.
17403 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17404 docstring of font-encoding-alist.
17405
17406 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17407 (Fset_fotset_font): Fix arguments to 5.
17408
17409 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17410
17411 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17412 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17413 (highlight_trailing_whitespace): Adjust for the change of
17414 lookup_named_face.
17415
17416 * xfaces.c: Include charset.h.
17417 (load_face_font): Delete argument C. Change caller.
17418 (generate_ascii_font_name): Rename from generate_ascii_font.
17419 (font_name_registry): New function.
17420 (cache_face): Store ascii faces before non-ascii faces in buckets.
17421 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17422 Lookup only ascii faces.
17423 (lookup_non_ascii_face): New function.
17424 (lookup_named_face): Delete argument C. Change caller.
17425 (lookup_derived_face): Delete argument C. Change caller.
17426 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17427 a string, just call font_list with it.
17428 (choose_face_font): Delete arguments FACE and C. New arg
17429 FONT_SPEC. Change caller.
17430 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17431 Change caller.
17432 (realize_non_ascii_face): New function.
17433 (realize_x_face): Call load_face_font here.
17434 (realize_tty_face): Delete argument C. Change caller.
17435 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17436 get a face ID.
17437 (dump_realized_face): Don't print charset of FACE.
17438
17439 * xfns.c (x_set_font): Always call x_new_fontset and
17440 store_frame_parameter.
17441 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17442 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17443
17444 * xterm.h (x_get_font_repertory): Extern it.
17445
17446 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17447 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17448 it->multibyte_p is zero.
17449 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17450 (x_new_fontset): If FONTSETNAME doesn't match any existing
17451 fontsets, create a new one.
17452 (x_get_font_repertory): New function.
17453
17454 2008-02-01 Kenichi Handa <handa@m17n.org>
17455
17456 * coding.c (Ffind_coding_systems_region_internal): Detect an
17457 ASCII only string correctly.
17458
17459 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17460 version is 0.
17461
17462 2008-02-01 Kenichi Handa <handa@m17n.org>
17463
17464 * lread.c: Include "coding.h".
17465 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17466 (load_each_byte, unread_char): New variables.
17467 (readchar_backlog): Delete.
17468 (readchar): Return a character unless load_each_byte is nonzero.
17469 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17470 cons. If unread_char is not -1, simply return it.
17471 (unreadchar): Handle the case that readcharfun is
17472 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17473 (read_multibyte): Delete.
17474 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17475 (read_emacs_mule_char): New functions.
17476 (Fload): Even if the file doesn't have the extension ".elc", if
17477 safe_to_load_p returns a positive version number, assume that the
17478 file contains bytecompiled code. If the version is less than 22,
17479 load the file while decoding multibyte sequences by emacs-mule.
17480 (readevalloop): Don't use readchar_backlog.
17481 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17482 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17483 (read_escape): Delete the arg BYTEREP.
17484 (read1): Set load_each_byte to 1 temporarily while handling
17485 #@NUMBER. Don't call read_multibyte.
17486 (read_vector): Call Fread with a cons. If readcharfun is
17487 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17488 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17489 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17490 and Qload_force_doc_strings.
17491
17492 2008-02-01 Kenichi Handa <handa@m17n.org>
17493
17494 * xdisp.c (face_before_or_after_it_pos): Call
17495 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17496
17497 2008-02-01 Kenichi Handa <handa@m17n.org>
17498
17499 * character.h (TRAILING_CODE_P): New macro.
17500 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17501 (string_char_with_unification): Fix prototype.
17502 (Vscript_alist): Extern it.
17503
17504 * character.c (Vscript_alist): New variable.
17505 (string_char_with_unification, str_as_unibyte)
17506 (string_escape_byte8): Add `const' to local variables.
17507 (syms_of_character): Declare script-alist as a Lisp variable.
17508
17509 * charset.h (Vcharset_ordered_list): Extern it.
17510 (charset_ordered_list_tick): Extern it.
17511 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17512 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17513 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17514 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17515 (Funify_charset): Adjust for the change of Funify_charset.
17516
17517 * charset.c (charset_ordered_list_tick): New variable.
17518 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17519 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17520 deunify intead of unify a charset.
17521 (string_xstring_p): Add `const' to local variables.
17522 (find_charsets_in_text): Add `const' to arguments and local variables.
17523 (encode_char): Adjust for the change of Funify_charset. Fix
17524 detecting of invalid code.
17525 (Fset_charset_priority): Increment charset_ordered_list_tick.
17526 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17527 and TO_CODE.
17528
17529 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17530 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17531 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17532 (decode_coding_ccl, consume_chars)
17533 (Ffind_coding_systems_region_internal)
17534 (Fcheck_coding_systems_region): Add `const' to local variables.
17535
17536 * print.c (print_object): Use octal form for printing the
17537 contents of a bool vector.
17538
17539 2008-02-01 Dave Love <fx@gnu.org>
17540
17541 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17542 <version == 20>: Refuse to load.
17543
17544 2008-02-01 Dave Love <fx@gnu.org>
17545
17546 * fns.c: Move coding.h.
17547 (Qcodeset, Qdays, Qmonths): New.
17548 (concat): Use CHARACTERP instead of INTEGERP.
17549 (Flocale_codeset): Delete.
17550 (Flanginfo): New function.
17551 (syms_of_fns): Change accordingly.
17552
17553 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17554
17555 2008-02-01 Dave Love <fx@gnu.org>
17556
17557 * casetab.c (init_casetab_once, init_casetab_once): Fix
17558 CHAR_TABLE_SET call.
17559
17560 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17561
17562 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17563
17564 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17565 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17566 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17567
17568 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17569
17570 * coding.c (ENCODE_DESIGNATION, decode_eol)
17571 (make_conversion_work_buffer, code_conversion_restore)
17572 (Fdefine_coding_system_internal): Convert Lisp types.
17573 (code_conversion_restore): Use EQ, not ==.
17574 (Fencode_coding_string): Fix code_convert_string call.
17575
17576 * coding.h (code_convert_region): Fix prototype.
17577
17578 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17579
17580 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17581 (Ffontset_info): Convert Lisp types.
17582
17583 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17584
17585 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17586
17587 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17588
17589 * chartab.c: Include "...h", not <...h> in some cases.
17590
17591 * callproc.c (Fcall_process): Remove unused variables.
17592
17593 2008-02-01 Dave Love <fx@gnu.org>
17594
17595 * coding.c (Fset_coding_system_priority): Allow null arg list.
17596
17597 2008-02-01 Dave Love <fx@gnu.org>
17598
17599 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17600 (Fself_insert_and_exit): Use CHARACTERP.
17601
17602 * callproc.c (Fcall_process): Remove unused vars.
17603
17604 * xterm.c (XTread_socket): Add extra dead keysyms.
17605
17606 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17607
17608 * dispextern.h: Remove prototypes for redraw_frame,
17609 redraw_garbaged_frames.
17610
17611 * cmds.c (Fself_insert_command): Use CHARACTERP.
17612
17613 * chartab.c (make_sub_char_table): Remove unused var.
17614 (Fset_char_table_default, Fmap_char_table): Doc fix.
17615
17616 * keymap.c (access_keymap): Remove generic char code.
17617 (push_key_description): Use CHARACTERP.
17618
17619 2008-02-01 Dave Love <fx@gnu.org>
17620
17621 * charset.c: Doc fixes.
17622 (Funify_charset): Extra checking.
17623
17624 2008-02-01 Dave Love <fx@gnu.org>
17625
17626 * lread.c: Remove some unused variables.
17627 (safe_to_load_p): If safe, return the magic number version byte.
17628 (Fload): Maybe use load-with-code-conversion.
17629
17630 2008-02-01 Kenichi Handa <handa@m17n.org>
17631
17632 * category.c (Fmodify_category_entry): Don't modify the contents
17633 of category_set for characters out of the range. Avoid
17634 unnecessary modification.
17635
17636 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17637 Vchar_unify_table. The default value of the table is now nil.
17638
17639 * character.c (syms_of_character): Setup Vchar_width_table for
17640 eight-bit-control and raw-byte chars.
17641
17642 * charset.h (enum define_charset_arg_index): Delete
17643 charset_arg_parents and add charset_arg_subset and
17644 charset_arg_superset.
17645 (enum charset_attr_index): Delete charset_parents and add
17646 charset_subset and charset_superset.
17647 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17648 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17649 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17650 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17651 (CHARSET_SUPERSET): New macros.
17652 (charset_work): Extern it.
17653 (ENCODE_CHAR): Use charset_work.
17654 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17655 (map_charset_chars): Extern it.
17656
17657 * charset.c (load_charset_map): Set the default value of encoder
17658 and deunifier char-tables to nil.
17659 (map_charset_chars): Change argument. Change callers. Use
17660 map_char_table_for_charset instead of map_char_table.
17661 (Fmap_charset_chars): New optional args from_code and to_code.
17662 (Fdefine_charset_internal): Adjust for the change of
17663 `define-charset' (:parents -> :subset or :superset).
17664 (charset_work): New variable.
17665 (encode_char, syms_of_charset): Adjust for the change of
17666 Fdefine_charset_internal.
17667 (Ffind_charset_string): Setup the vector `charsets' correctly.
17668
17669 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17670 the previous change.
17671 (char_table_ref_and_range): Adjust for the above change.
17672 (map_sub_char_table_for_charset): New function.
17673 (map_char_table_for_charset): New function.
17674
17675 * keymap.c (describe_vector): Handle a char-table directly here.
17676 (describe_char_table): Delete.
17677
17678 * lisp.h (map_charset_chars): Delete.
17679
17680 2008-02-01 Dave Love <fx@gnu.org>
17681
17682 * fns.c (count_combining): Comment out (unused).
17683 (Flocale_codeset): New.
17684 (syms_of_fns): Defsubr it.
17685
17686 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17687 (size_t): Remove.
17688
17689 2008-02-01 Dave Love <fx@gnu.org>
17690
17691 * Makefile.in (chartab.o): Depend on charset.h.
17692
17693 2008-02-01 Kenichi Handa <handa@m17n.org>
17694
17695 * character.c (syms_of_character): Set the default value of
17696 Vprintable_chars to Qnil.
17697
17698 2008-02-01 Dave Love <fx@gnu.org>
17699
17700 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17701
17702 2008-02-01 Kenichi Handa <handa@m17n.org>
17703
17704 * charset.c (load_charset_map): Handle the case that from < to
17705 correctly.
17706
17707 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17708 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17709 Pay attention to raw-8-bit chars.
17710
17711 2008-02-01 Kenichi Handa <handa@m17n.org>
17712
17713 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17714 It is not bytecompiled now.
17715
17716 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17717 (charset_jisx0208): New variables.
17718 (Fdefine_charset_internal): Setup them if appropriate.
17719 (init_charset_once): Initialize them to -1.
17720
17721 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17722 (charset_jisx0208): Extern them.
17723
17724 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17725 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17726 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17727 (setup_iso_safe_charsets): Fix arguments to Fassq.
17728 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17729 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17730 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17731 (encode_coding_iso_2022): Change the 1st arg to
17732 ENCODE_ISO_CHARACTER to a variable.
17733
17734 2008-02-01 Kenichi Handa <handa@m17n.org>
17735
17736 * charset.h (enum define_charset_arg_index): New enums
17737 charset_arg_min_code and charset_arg_max_code.
17738 (struct charset): New member char_index_offset.
17739
17740 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17741 Take charset->char_index_offset into account.
17742 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17743 args[charset_arg_max_code]. Setup charset.char_index_offset.
17744 (syms_of_charset): Fix args to Fdefine_charset_internal.
17745
17746 2008-02-01 Dave Love <fx@gnu.org>
17747
17748 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17749
17750 2008-02-01 Dave Love <fx@gnu.org>
17751
17752 * coding.c: Doc fixes.
17753 (Fcoding_system_aliases): Fix return value.
17754 (Qmac): Remove (duplicated) definition.
17755
17756 2008-02-01 Dave Love <fx@gnu.org>
17757
17758 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17759 New functions.
17760
17761 * character.c (Fstring): Doc fix.
17762
17763 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17764
17765 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
17766 (font-encoding-alist): Doc fix.
17767
17768 2008-02-01 Dave Love <fx@gnu.org>
17769
17770 * term.c (costs_set): Declare static, non-initialized for pcc.
17771 (encode_terminal_code): Remove unused var.
17772
17773 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17774 for K&R.
17775
17776 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17777
17778 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17779 (suffixes): Move out of make_subsidiaries for K&R.
17780
17781 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17782
17783 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17784
17785 2008-02-01 Dave Love <fx@gnu.org>
17786
17787 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17788
17789 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17790
17791 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17792
17793 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17794
17795 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17796
17797 2008-02-01 Kenichi Handa <handa@m17n.org>
17798
17799 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17800 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17801
17802 2008-02-01 Kenichi Handa <handa@m17n.org>
17803
17804 * coding.c (decode_coding_charset): Adjust for the change of
17805 Fdefine_coding_system_internal.
17806 (Fdefine_coding_system_internal): For a coding system of
17807 `charset' type, store a list of charset IDs in
17808 `charset_attr_charset_valids' element of coding attributes.
17809
17810 2008-02-01 Kenichi Handa <handa@m17n.org>
17811
17812 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17813 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17814 caller. Handle 2-byte and 3-byte charsets correctly.
17815 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17816 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17817 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17818 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17819 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17820 sequence.
17821 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17822 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17823 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17824 and alt&rule composition.
17825 (decode_coding_iso_2022): Handle composition correctly.
17826 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17827
17828 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17829 re-defining a charset. If the charset has :emacs-mule-id, setup
17830 emacs_mule_bytes.
17831 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17832
17833 2008-02-01 Kenichi Handa <handa@m17n.org>
17834
17835 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17836 (encode_coding_big5, encode_coding_charset): If coding requires safe
17837 encoding, produce a character specified by
17838 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17839
17840 2008-02-01 Dave Love <fx@gnu.org>
17841
17842 * xterm.c (XSetIMValues): Declare.
17843
17844 * process.c: Conditionally include sys/wait.h, pty.h.
17845
17846 * print.c (print_object): Fix print format for 64-bit systems.
17847
17848 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17849
17850 * buffer.c (emacs_strerror): Declare.
17851
17852 * fontset.c (Fclear_face_cache): Declare.
17853 (accumulate_font_info): Comment-out (unused).
17854 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17855 variables.
17856
17857 * character.h (string_escape_byte8): Declare.
17858
17859 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17860 unused vars.
17861 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17862 (Fmap_charset_chars): Doc fix.
17863
17864 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17865 (Fset_coding_system_priority, Fset_coding_system_priority)
17866 (Fdefine_coding_system_internal): Doc fix.
17867
17868 2008-02-01 Dave Love <fx@gnu.org>
17869
17870 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17871
17872 2008-02-01 Kenichi Handa <handa@m17n.org>
17873
17874 * character.c (string_escape_byte8): Make multibyte string with
17875 correct size.
17876
17877 * charset.c (Fmake_char): Delete unnecessary code.
17878
17879 2008-02-01 Kenichi Handa <handa@m17n.org>
17880
17881 * xfns.c (x_encode_text): Allocate coding.destination here, and
17882 call encode_coding_object with dst_object Qnil.
17883
17884 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17885 multibyte form correctly.
17886
17887 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17888 against Vfont_encoding_alist.
17889
17890 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17891 handling of charset list.
17892 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17893 (decode_coding_object): Move point to coding->dst_pos before
17894 calling post-read-conversion function.
17895 (encode_coding_object): Give correct arguments to
17896 pre-write-conversion. Ignore the return value of
17897 pre-write-conversion function. Pay attention to the case that
17898 pre-write-conversion changes the current buffer. If dst_object is
17899 Qt, even if coding->src_bytes is zero, allocate at least one byte
17900 to coding->destination.
17901
17902 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17903
17904 * charset.c (Fmake_char): Make it more backward compatible.
17905 (Fmap_charset_chars): Fix docstring.
17906
17907 2008-02-01 Dave Love <fx@gnu.org>
17908
17909 * coding.c: Doc fixes.
17910 (Fdefine_coding_system_alias): Use names, not symbols, in
17911 coding-system-alist.
17912
17913 2008-02-01 Kenichi Handa <handa@m17n.org>
17914
17915 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17916 of calling free_realized_face.
17917
17918 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17919
17920 * charset.c (read_hex): Don't treat SPC as a comment starter.
17921 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17922 (Fdecode_char): Fix typo.
17923
17924 2008-02-01 Kenichi Handa <handa@m17n.org>
17925
17926 * charset.h (struct charset): New member `code_space_mask'.
17927
17928 * coding.c (coding_set_source): Delete the local variable beg_byte.
17929 (encode_coding_charset, Fdefine_coding_system_internal):
17930 Delete the local variable charset.
17931 (Fdefine_coding_system_internal): Setup
17932 attrs[coding_attr_charset_valids] correctly.
17933
17934 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17935 member to check if CODE is valid or not.
17936 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17937 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17938 is within the range of charset->min_code and carset->max_code.
17939
17940 2008-02-01 Dave Love <fx@gnu.org>
17941
17942 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17943
17944 * dispextern.h (generate_ascii_font): Fix return type.
17945
17946 * xfaces.c (generate_ascii_font): Fix arg declaration.
17947
17948 * coding.c (coding_inherit_eol_type)
17949 (Fset_terminal_coding_system_internal)
17950 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17951
17952 2008-02-01 Kenichi Handa <handa@m17n.org>
17953
17954 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17955 multiple charsets correctly.
17956
17957 2008-02-01 Kenichi Handa <handa@m17n.org>
17958
17959 * search.c (boyer_moore): Fix handling of multibyte character
17960 translation.
17961
17962 * xdisp.c (display_mode_element): When the variable `elt' is
17963 changed, update `this' and `lisp_string'.
17964
17965 2008-02-01 Kenichi Handa <handa@m17n.org>
17966
17967 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17968
17969 * callproc.c (Fcall_process): Be sure to give the current buffer
17970 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17971
17972 * charset.c (struct charset_map_entries): New struct.
17973 (load_charset_map): Rename from parse_charset_map. New args
17974 entries and n_entries. Change caller.
17975 (load_charset_map_from_file): Rename from load_charset_map.
17976 Change caller. New arg control_flag. Call load_charset_map at
17977 the tail.
17978 (load_charset_map_from_vector): New function.
17979 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17980 (encode_char): If the charset is compact, change a character index
17981 to a code point.
17982
17983 * coding.c (coding_alloc_by_making_gap): Check the case that the
17984 source and destination are the same correctly.
17985 (decode_coding_raw_text): Set coding->consumed_char and
17986 coding->consumed to 0.
17987 (produce_chars): If coding->chars_at_source is nonzero, update
17988 coding->consumed_char and coding->consumed before calling
17989 alloc_destination.
17990 (Fdefine_coding_system_alias): Register ALIAS in
17991 Vcoding_system_alist.
17992 (syms_of_coding): Define `no-conversion' coding system at the tail.
17993
17994 * fileio.c (Finsert_file_contents): Set coding_system instead of
17995 val. If the current buffer is multibyte, always call
17996 decode_coding_gap.
17997
17998 * xfaces.c (try_font_list): Give higher priority to fontset's
17999 family than face's family.
18000
18001 2008-02-01 Kenichi Handa <handa@m17n.org>
18002
18003 * callproc.c (Fcall_process): Be sure to give the current buffer
18004 to decode_coding_c_string.
18005
18006 * xfaces.c (try_font_list): Give a family specified in a fontset
18007 higher priority than a family specified in a face.
18008
18009 2008-02-01 Kenichi Handa <handa@m17n.org>
18010
18011 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18012 Fix arguments to insert_from_buffer.
18013
18014 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18015
18016 2008-02-01 Kenichi Handa <handa@m17n.org>
18017
18018 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18019 (decode_coding_gap): Set coding->dst_multibyte correctly.
18020
18021 2008-02-01 Kenichi Handa <handa@m17n.org>
18022
18023 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18024 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18025 (encode_coding_utf_16): Substitute coding->default_char for
18026 non-Unicode characters.
18027 (decode_coding): Don't call record_insert here.
18028 (setup_coding_system): Initialize `surrogate' of
18029 coding->spec.utf_16 to 0.
18030 (EMIT_ONE_BYTE): Fix for multibyte case.
18031
18032 * insdel.c (insert_from_gap): Call record_insert.
18033
18034 2008-02-01 Kenichi Handa <handa@m17n.org>
18035
18036 * casefiddle.c (casify_region): Fix multibyte case.
18037
18038 * character.c (c_string_width): Add return type `int'.
18039 (char_string_with_unification): Delete arg ADVANCED.
18040
18041 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18042 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18043 (CHAR_STRING_ADVANCE): Make it do-while statement.
18044
18045 * chartab.c (sub_char_table_set_range): Optimize for the case
18046 DEPTH == 3. Add workaround code for a GCC optimization bug.
18047
18048 * charset.c (parse_charset_map): Remove an unused variable.
18049
18050 * coding.c: Delete unused variables.
18051
18052 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18053 earlier. If inserted is zero and the coding system doesn't
18054 require flushing, don't call decode_coding_gap.
18055
18056 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18057
18058 2008-02-01 Kenichi Handa <handa@m17n.org>
18059
18060 The following changes are for using Unicode as an internal
18061 character model, and use UTF-8 format for buffer/string
18062 representation.
18063
18064 * .gdbinit (xchartable): Adjust for the change of char table structure.
18065 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18066
18067 * Makefile.in (obj): Add character.o and chartab.o.
18068 (lisp, shortlisp): Remove utf-8.elc.
18069 (*.o): For many files, change dependency on charset.h to
18070 character.h, and add dependency on character.h.
18071 (character.o, chartab.o): New targets.
18072
18073 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18074 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18075 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18076 of "charset.h".
18077
18078 * dired.c, filelock.c: Include "character.h".
18079
18080 * alloc.c: Include "character.h" instead of "charset.h".
18081 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18082 (syms_of_alloc): Remove defsubr for Smake_char_table.
18083
18084 * buffer.c: Include "character.h" instead of "charset.h", don't
18085 include "coding.h".
18086 (Fset_buffer_multibyte): Adjust for UTF-8.
18087
18088 * buffer.h: EXFUN Fbuffer_live_p.
18089
18090 * callproc.c: Include "character.h" instead of "charset.h".
18091 (Fcall_process): Big change for the new code-conversion APIs.
18092
18093 * casetab.c: Include "character.h" instead of "charset.h".
18094 (set_canon, set_identity, shuffle): Adjust for the new
18095 map_char_table spec.
18096 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18097 accessing the char table structure.
18098
18099 * chartab.c: New file that implements char table.
18100
18101 * category.c: Include "character.h".
18102 (copy_category_entry): New function.
18103 (copy_category_table): Call map_char_table and copy_category_entry.
18104 (Fmake_category_table): Initialize all top-level slots.
18105 (char_category_set): New function.
18106 (modify_lower_category_set): Delete.
18107 (Fmodify_category_entry): Call char_table_ref_and_range.
18108
18109 * category.h (CATEGORY_SET): Just call char_category_set.
18110
18111 * ccl.c: Include "character.h".
18112 (Qccl, Qcclp): New variables.
18113 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18114 it's less than 256.
18115 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18116 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18117 and DST type.
18118 (ccl_driver): Change types of argument, adjust code accordingly.
18119 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18120 ccl_driver.
18121 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18122
18123 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18124 New members src_multibyte, dst_multibyte, consumed, and produced.
18125 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18126 (CODING_SPEC_CCL_PROGRAM): New macro.
18127 (ccl_driver): Update prototype.
18128 (Qccl, Qcclp, Fccl_program_p): Extern them.
18129 (CHECK_CCL_PROGRAM): New macro.
18130
18131 * character.c, character.h, chartab.c: New files.
18132
18133 * charset.c: Mostly re-written. Move character and multibyte sequence
18134 handling codes to character.c.
18135
18136 * charset.h: Mostly re-written. Move character and multibyte sequence
18137 handling codes to character.h.
18138
18139 * coding.c, coding.h: Mostly re-written.
18140
18141 * composite.c: Include "character.h" instead of "charset.h".
18142 (CHAR_WIDTH): Move to character.h.
18143 (HASH_KEY, HASH_VALUE): Delete.
18144
18145 * composite.h (enum composition_method): Change order of enumeration
18146 symbols.
18147
18148 * data.c: Include "character.h" instead of "charset.h".
18149 (Faref): Call CHAR_TABLE_REF for a char table.
18150 (Faset): Call CHAR_TABLE_SET for a char table.
18151
18152 * dispextern.h (free_realized_face, check_face_attribytes)
18153 (generate_ascii_font): Extern them.
18154 (free_realized_multibyte_face): Delete extern.
18155
18156 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18157 table structure.
18158
18159 * editfns.c: Include "character.h" instead of "charset.h".
18160 (Fchar_to_string): Always call CHAR_STRING.
18161
18162 * emacs.c (main): Call init_charset_once, init_charset,
18163 syms_of_chartab, and syms_of_character.
18164
18165 * fileio.c: Include "character.h" instead of "charset.h".
18166 (Finsert_file_contents): Big change for the new code-conversion API.
18167 (choose_write_coding_system, Fwrite_region): Likewise.
18168 (build_annotations_2): Delete.
18169 (e_write): Big change for the new code-conversion API.
18170
18171 * fns.c: Include "character.h" instead of "charset.h".
18172 (copy_sub_char_table): Move to chartab.c.
18173 (Fcopy_sequence): Call copy_char_table for a char table.
18174 (concat): Delete codes calling count_multibyte.
18175 (string_char_to_byte, string_byte_to_char): Adjust for the new
18176 multibyte form.
18177 (internal_equal): Adjust for the change of char table structure.
18178 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18179 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18180 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18181 (char_table_translate, optimize_sub_char_table)
18182 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18183 chartab.c.
18184 (char_table_ref_and_index): Delete.
18185 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18186 (Fmd5): Call preferred_coding_system instead of accessing
18187 Vcoding_category_list. Adjust for the new code-conversion API.
18188 (syms_of_fns): Move defsubr for char table related functions to
18189 chartab.c.
18190
18191 * fontset.c: Mostly re-written.
18192
18193 * fontset.h (struct font_info): Change type of the member encoding_type.
18194 (enum FONT_SPEC_INDEX): New enum.
18195 (fontset_font_pattern, fs_load_font): Update prototype.
18196 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18197
18198 * indent.c: Include "character.h" instead of "charset.h".
18199 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18200
18201 * insdel.c: Include "character.h" instead of "charset.h".
18202 (copy_text): Don't refer to Vnonascii_translation_table.
18203 (insert_from_gap): New function.
18204
18205 * keyboard.c: Include "character.h" instead of "charset.h".
18206 (command_loop_1): Never call direct_output_forward_char before
18207 a non-ASCII character.
18208 (read_char): If Vkeyboard_translate_table is a char table, always
18209 translate a character.
18210
18211 * keymap.c: Include "character.h".
18212 (store_in_keymap): Handle the case that IDX is a cons.
18213 (Fdefine_key): Handle the case that KEY is a cons and the car part
18214 is also a cons (range).
18215 (push_key_description): Adjust for the new character code.
18216 (describe_vector): Call describe_char_table for a char table.
18217 (describe_char_table): New function.
18218
18219 * keymap.h (describe_char_table): Extern it.
18220
18221 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18222 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18223 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18224 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18225 Delete.
18226 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18227 structure.
18228 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18229 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18230 (CHARTAB_SIZE_BITS_3): New macros.
18231 (chartab_size): Extern it.
18232 (struct Lisp_Char_Table): Re-design.
18233 (struct Lisp_Sub_Char_Table): New structure.
18234 (HASH_KEY, HASH_VALUE): Move from fns.c.
18235 (CHARACTERBITS): Define as 22.
18236 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18237 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18238 (GC_SUB_CHAR_TABLE_P): New macro.
18239 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18240 (code_convert_string_norecord): Deleted extern.
18241 (init_character_once, syms_of_character, init_charset)
18242 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18243
18244 * lread.c: Include "character.h".
18245 (read_multibyte): New arg NBYTES.
18246 (read_escape): Change the meaning of returned *BYTEREP.
18247 (to_multibyte): Delete.
18248 (read1): Adjust the handling of char table and string.
18249
18250 * print.c: Include "character.h" instead of "charset.h".
18251 (print_string): Convert 8-bit raw bytes to octal form by
18252 string_escape_byte8.
18253 (print_object): Adjust for the new multibyte form. Print 8-bit
18254 raw bytes always in octal form. Handle sub char table correctly.
18255
18256 * process.c: Include "character.h" instead of "charset.h".
18257 (read_process_output, send_process): Adjust for the new
18258 code-conversion API.
18259
18260 * puresize.h (BASE_PURESIZE): Increase.
18261
18262 * regex.c: Include "character.h" instead of "charset.h".
18263 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18264 (regex_compile): Accept a range whose starting and ending
18265 character have different leading bytes.
18266 (analyse_first): Adjust for the above change.
18267
18268 * search.c: Include "character.h" instead of "charset.h".
18269 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18270 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18271
18272 * syntax.c: Include "character.h" instead of "charset.h".
18273 (syntax_parent_lookup): Delete.
18274 (Fmodify_syntax_entry): Accept a cons as CHAR.
18275 (skip_chars): Adjust for the new multibyte form.
18276 (init_syntax_once): Call char_table_set_range instead of directly
18277 accessing the structure of a char table.
18278
18279 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18280 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18281 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18282 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18283
18284 * term.c: Include "buffer.h" and "character.h".
18285 (encode_terminal_code, write_glyphs): Adjust for the new
18286 code-conversion API.
18287 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18288
18289 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18290
18291 * xdisp.c: Include "character.h".
18292 (get_next_display_element): Adjust for the new multibyte form.
18293 (disp_char_vector): Adjust for the new char table structure.
18294 (decode_mode_spec_coding): Adjust for the new structure of
18295 coding system.
18296 (decode_mode_spec): Adjust for the new code-conversion API.
18297
18298 * xfaces.c: Include "character.h" instead of "charset.h".
18299 (load_face_font): Adjust for the change of choose_face_font and
18300 FS_LOAD_FONT.
18301 (generate_ascii_font): New function.
18302 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18303 (set_font_frame_param): Adjust for the change of choose_face_font.
18304 (free_realized_face): Make it public.
18305 (free_realized_faces_for_fontset): Rename from
18306 free_realized_multibyte_face. Free also faces realized for ASCII.
18307 (choose_face_font): Change arguments. Adjust for the change of
18308 fontset_font_pattern and FS_LOAD_FONT.
18309
18310 * xfns.c: Include "character.h".
18311 (x_encode_text): Adjust for the new code-conversion API.
18312
18313 * xselect.c: Don't include "charset.h".
18314 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18315
18316 * xterm.c: Include "character.h".
18317 (x_encode_char): New argument CHARSET. Change caller.
18318 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18319 Call ENCODE_CHAR instead of SPLIT_CHAR.
18320 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18321 CHAR_WIDTH instead of CHARSET_WIDTH.
18322 (XTread_socket): Adjust for the new code-conversion API.
18323 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18324 (x_load_font): Adjust for the change of struct font.
18325
18326 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18327
18328 * xfaces.c (face_at_buffer_position): Remove unused vars.
18329
18330 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18331
18332 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18333 Fix overflow checking.
18334
18335 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18336
18337 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18338 Cancel previous change.
18339
18340 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18341
18342 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18343 ccl->eight_bit_control. Fix check for buffer overflow.
18344 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18345 (ccl_driver): Initialize extra_bytes to 0.
18346
18347 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18348
18349 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18350 return it ORed with ctrl_modifier.
18351
18352 2008-01-29 Miles Bader <miles@gnu.org>
18353
18354 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18355
18356 2008-01-28 Jason Rumney <jasonr@gnu.org>
18357
18358 * w32.c (stat): Don't double check for networked drive.
18359
18360 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18361
18362 * window.c (run_window_configuration_change_hook): New function.
18363 Code extracted from set_window_buffer. Set the selected frame.
18364 (set_window_buffer): Use it.
18365 * window.h (run_window_configuration_change_hook): Declare.
18366 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18367
18368 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18369
18370 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18371
18372 * Makefile.in: Remove references to unused macros.
18373
18374 2008-01-26 Eli Zaretskii <eliz@gnu.org>
18375
18376 * w32.c (g_b_init_get_sid_sub_authority)
18377 (g_b_init_get_sid_sub_authority_count): New static variables.
18378 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18379 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18380 (init_user_info): Use them to retrieve uid and gid.
18381 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18382 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18383 st_uid and st_gid of the file.
18384
18385 2008-01-26 Jason Rumney <jasonr@gnu.org>
18386
18387 * w32.c (logon_network_drive): New function.
18388 (stat): Use it.
18389
18390 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
18391
18392 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18393 invisible text covered with an ellipsis.
18394
18395 2008-01-25 Richard Stallman <rms@gnu.org>
18396
18397 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18398 jump back to beginning. Move some other initializations after that.
18399 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18400 New variables.
18401 (syms_of_xdisp): Init them.
18402
18403 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18404
18405 * buffer.c (reset_buffer_local_variables):
18406 Implement `permanent-local-hook'.
18407 (Qpermanent_local_hook): New variable.
18408 (syms_of_buffer): Init and staticpro it.
18409
18410 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
18411
18412 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18413
18414 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18415
18416 * fns.c (Fclrhash): Return TABLE.
18417
18418 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18419
18420 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18421 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18422 is set even without positional changes.
18423 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18424
18425 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18426
18427 2008-01-23 Jason Rumney <jasonr@gnu.org>
18428
18429 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18430
18431 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18432 the unicode range available in MULE by locale-coding-system.
18433 Improve dbcs lead byte detection. Set event timestamp and modifiers
18434 earlier.
18435
18436 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18437
18438 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18439 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18440 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18441 when used on child processes.
18442
18443 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
18444
18445 * dbusbind.c (Fdbus_method_return_internal): Rename from
18446 Fdbus_method_return.
18447 (Fdbus_unregister_object): Move to dbus.el.
18448 (Fdbus_call_method, Fdbus_method_return_internal)
18449 (Fdbus_send_signal): Improve debug messages.
18450
18451 2008-01-20 Martin Rudalics <rudalics@gmx.at>
18452
18453 * undo.c (undo_inhibit_record_point): New variable.
18454 (syms_of_undo): Initialize it.
18455 (record_point): Don't record point when undo_inhibit_record_point
18456 is set.
18457
18458 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18459
18460 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18461
18462 * xdisp.c (Qauto_hscroll_mode): New var.
18463 (syms_of_xdisp): Initialize it.
18464 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18465 window's buffer.
18466 (hscroll_windows): Don't check automatic_hscrolling_p here.
18467
18468 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18469 vscroll if we're setting window-buffer to the value it already has.
18470
18471 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18472
18473 * m/intel386.h: Remove references to XENIX.
18474
18475 2008-01-17 Andreas Schwab <schwab@suse.de>
18476
18477 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18478 instead of HAVE_X86_64_LIB64_DIR.
18479 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18480
18481 2008-01-17 Glenn Morris <rgm@gnu.org>
18482
18483 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18484 to HAVE_X86_64_LIB64_DIR.
18485
18486 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18487
18488 * s/irix3-3.h:
18489 * s/irix4-0.h:
18490 * s/386-ix.h:
18491 * s/domain.h:
18492 * s/hpux9-x11r4.h:
18493 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18494
18495 * sysdep.c: Remove code containing references to symbols defined
18496 by unsupported systems.
18497
18498 2008-01-16 Glenn Morris <rgm@gnu.org>
18499
18500 * coding.c (select-safe-coding-system-function): Doc fix.
18501
18502 2008-01-15 Glenn Morris <rgm@gnu.org>
18503
18504 * config.in: Revert 2008-01-13 change: this is a generated file.
18505
18506 2008-01-13 Tom Tromey <tromey@redhat.com>
18507
18508 * lisp.h: Fix typo.
18509
18510 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18511
18512 * m/sequent-ptx.h:
18513 * m/sequent.h:
18514 * s/ptx.h:
18515 * s/ptx4-2.h:
18516 * s/ptx4.h: Remove files for systems no longer supported.
18517
18518 * callproc.c (Fcall_process): Fix previous change.
18519
18520 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18521
18522 * unexsunos4.c: Remove file, system not supported anymore.
18523
18524 * m/mips.h:
18525 * m/intel386.h:
18526 * callproc.c:
18527 * config.in:
18528 * ecrt0.c:
18529 * emacs.c:
18530 * fileio.c:
18531 * frame.c:
18532 * getpagesize.h:
18533 * keyboard.c:
18534 * lread.c:
18535 * process.c:
18536 * puresize.h:
18537 * sysdep.c:
18538 * systty.h:
18539 * syswait.h:
18540 * unexec.c:
18541 * xdisp.c:
18542 * alloc.c: Remove code containing references to symbols defined by
18543 unsupported systems.
18544
18545 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18546
18547 * coding.c (detect_coding_mask): Fix previous change.
18548
18549 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18550
18551 * coding.c (detect_coding_iso2022): New arg
18552 latin_extra_code_state. Allow Latin extra codes only
18553 when *latin_extra_code_state is nonzero.
18554 (detect_coding_mask): If there is a NULL byte, detect the encoding
18555 as UTF-16 or binary. If Latin extra codes exist, detect the
18556 encoding as ISO-2022 only when there's no other proper encoding is
18557 found.
18558
18559 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18560
18561 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18562 #ifdef MAC_OS.
18563
18564 2008-01-08 Richard Stallman <rms@gnu.org>
18565
18566 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18567
18568 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
18569
18570 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18571 menu bar in parentheses.
18572
18573 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18574
18575 * m/7300.h:
18576 * m/acorn.h:
18577 * m/alliant-2800.h:
18578 * m/alliant.h:
18579 * m/alliant1.h:
18580 * m/alliant4.h:
18581 * m/altos.h:
18582 * m/amdahl.h:
18583 * m/apollo.h:
18584 * m/att3b.h:
18585 * m/aviion-intel.h:
18586 * m/aviion.h:
18587 * m/celerity.h:
18588 * m/clipper.h:
18589 * m/cnvrgnt.h:
18590 * m/convex.h:
18591 * m/cydra5.h:
18592 * m/delta88k.h:
18593 * m/dpx2.h:
18594 * m/dual.h:
18595 * m/elxsi.h:
18596 * m/f301.h:
18597 * m/gould-np1.h:
18598 * m/gould.h:
18599 * m/i860.h:
18600 * m/ibmps2-aix.h:
18601 * m/ibmrt-aix.h:
18602 * m/ibmrt.h:
18603 * m/irist.h:
18604 * m/is386.h:
18605 * m/isi-ov.h:
18606 * m/mega68.h:
18607 * m/mg1.h:
18608 * m/news-r6.h:
18609 * m/news-risc.h:
18610 * m/news.h:
18611 * m/nh3000.h:
18612 * m/nh4000.h:
18613 * m/ns16000.h:
18614 * m/ns32000.h:
18615 * m/nu.h:
18616 * m/orion.h:
18617 * m/orion105.h:
18618 * m/paragon.h:
18619 * m/pfa50.h:
18620 * m/plexus.h:
18621 * m/pyramid.h:
18622 * m/pyrmips.h:
18623 * m/sh3el.h:
18624 * m/sps7.h:
18625 * m/sr2k.h:
18626 * m/stride.h:
18627 * m/sun1.h:
18628 * m/sun2.h:
18629 * m/sun3-68881.h:
18630 * m/sun3-fpa.h:
18631 * m/sun3-soft.h:
18632 * m/sun3.h:
18633 * m/sun386.h:
18634 * m/symmetry.h:
18635 * m/tad68k.h:
18636 * m/tahoe.h:
18637 * m/targon31.h:
18638 * m/tek4300.h:
18639 * m/tekxd88.h:
18640 * m/tower32.h:
18641 * m/tower32v3.h:
18642 * m/ustation.h:
18643 * m/wicat.h:
18644 * m/xps100.h:
18645 * s/cxux.h:
18646 * s/cxux7.h:
18647 * s/dgux.h:
18648 * s/dgux4.h:
18649 * s/dgux5-4-3.h:
18650 * s/dgux5-4r2.h:
18651 * s/esix.h:
18652 * s/esix5r4.h:
18653 * s/hiuxmpp.h:
18654 * s/hiuxwe2.h:
18655 * s/iris3-5.h:
18656 * s/iris3-6.h:
18657 * s/isc2-2.h:
18658 * s/isc3-0.h:
18659 * s/isc4-0.h:
18660 * s/isc4-1.h:
18661 * s/newsos5.h:
18662 * s/newsos6.h:
18663 * s/osf1.h:
18664 * s/osf5-0.h:
18665 * s/riscix1-1.h:
18666 * s/riscix12.h:
18667 * s/sco4.h:
18668 * s/sco5.h:
18669 * s/sunos4-0.h:
18670 * s/sunos4-1.h:
18671 * s/sunos413.h:
18672 * s/sunos4shr.h:
18673 * s/umax.h:
18674 * s/unipl5-2.h:
18675 * s/xenix.h:
18676 * cxux-crt0.s:
18677 * unexapollo.c:
18678 * unexconvex.c:
18679 * unexenix.c:
18680 * unexsni.c: Remove files for systems no longer supported.
18681
18682 * m/intel386.h: Remove references to unsupported systems.
18683
18684 * w32.c (get_emacs_configuration): Remove reference to i860.
18685
18686 * sysdep.c: Remove dead code.
18687
18688 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18689
18690 * s/rtu.h:
18691 * m/masscomp.h: Remove files. Platform is obsolete.
18692
18693 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
18694
18695 * dbusbind.c (Fdbus_method_return): New function.
18696 (xd_read_message): Add the serial number to the event.
18697 (Fdbus_register_method): Activate the function.
18698
18699 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18700
18701 * keyboard.c (read_key_sequence): Fix typo.
18702
18703 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
18704
18705 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18706 (xd_signature, xd_append_arg): Handle element type detection for
18707 empty arrays.
18708 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18709 SDATA () calls; this must be solved more general.
18710 (Fdbus_register_signal): Use SBYTES instead of strlen.
18711
18712 2008-01-03 Magnus Henoch <magnus@zemdatav>
18713
18714 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18715 unsigned int for byte values (necessary for big-endian platform).
18716 (Fdbus_call_method): Handle the case of no returned arguments.
18717
18718 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18719
18720 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18721
18722 2007-12-31 Magnus Henoch <mange@freemail.hu>
18723
18724 * dbusbind.c (xd_signature): Signature of variant is just "v".
18725
18726 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
18727
18728 * dbusbind.c: Fix several errors and compiler warnings.
18729 Reported by Tom Tromey <tromey@redhat.com>.
18730 (XD_ERROR, XD_DEBUG_MESSAGE)
18731 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18732 (xd_append_arg): Part for basic D-Bus types rewritten.
18733 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18734 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18735 appropriate.
18736 (xd_read_message): Return Qnil. Don't signal an error; it is not
18737 useful during event reading.
18738 (Fdbus_register_signal): Signal an error if the check for
18739 FUNCTIONP fails.
18740 (Fdbus_register_method): New function. The implementation is not
18741 complete, the call of the function signals an error therefore.
18742 (Fdbus_unregister_object): New function, renamed from
18743 Fdbus_unregister_signal. The initial check signals an error, if
18744 the object is not well formed.
18745
18746 2007-12-30 Richard Stallman <rms@gnu.org>
18747
18748 * textprop.c (get_char_property_and_overlay):
18749 Signal error if POSITION is out of range in a buffer.
18750
18751 2007-12-29 Martin Rudalics <rudalics@gmx.at>
18752
18753 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18754 because the original parameters are in pure storage now.
18755
18756 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18757
18758 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18759
18760 2007-12-22 Eli Zaretskii <eliz@gnu.org>
18761
18762 * callint.c (syms_of_callint) <command-history>: Add reference to
18763 history-length in the doc string.
18764
18765 2007-12-17 Jason Rumney <jasonr@gnu.org>
18766
18767 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18768 before passing as wParam.
18769
18770 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
18771
18772 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18773 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18774 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18775 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18776 as number.
18777 (Fdbus_call_method): Fix docstring.
18778
18779 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
18780
18781 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18782 New macros.
18783 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18784 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18785 Simplify.
18786 (xd_signature): New function.
18787 (xd_append_arg): Compute also signatures. Major rewrite.
18788 (xd_retrieve_arg): Make debug messages friendly.
18789 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18790 Check for signatures of arguments.
18791
18792 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
18793
18794 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18795 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18796 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18797 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18798 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18799 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18800 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18801 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18802 (xd_retrieve_value): Remove. Functionality included in ...
18803 (xd_append_arg): New function.
18804 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18805
18806 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
18807
18808 * dbusbind.c (top): Include <stdio.h>.
18809 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18810 dbus_message_new_method_call and dbus_message_new_signal.
18811 (Fdbus_register_signal): Rename unique_name to uname.
18812 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18813 non-existing unique name. Fix typos in matching rule. Return an
18814 object which is useful in Fdbus_unregister_signal.
18815 (Fdbus_unregister_signal): Reimplementation, in order to remove
18816 only the corresponding entry.
18817 (Vdbus_registered_functions_table): Change the order of entries.
18818 Apply these changes in xd_read_message and Fdbus_register_signal.
18819
18820 2007-12-16 Andreas Schwab <schwab@suse.de>
18821
18822 * fileio.c (Finsert_file_contents): Fix overflow check to not
18823 depend on undefined integer overflow.
18824
18825 2007-12-14 Jason Rumney <jasonr@gnu.org>
18826
18827 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18828 for characters above 127.
18829
18830 2007-12-13 Jason Rumney <jasonr@gnu.org>
18831
18832 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18833 before dereferencing array.
18834 (lookup_vk_code): Remove zero comparison.
18835
18836 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
18837
18838 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18839 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18840 Use `unsigned int' instead of `uint'.
18841 (xd_read_message, Fdbus_register_signal): Split expressions into
18842 multiple lines before operators "&&" and "||", according to the
18843 GNU Coding Standards.
18844
18845 2007-12-14 Eli Zaretskii <eliz@gnu.org>
18846
18847 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18848
18849 2007-12-12 Juri Linkov <juri@jurta.org>
18850
18851 * buffer.c (Frename_buffer): In interactive spec replace
18852 `read-buffer' with `read-string' that uses `buffer-name-history'
18853 as history, and the current buffer's name as default.
18854
18855 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18856
18857 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18858 manipulating the backtrace manually.
18859 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18860 (struct backtrace, backtrace_list): Remove.
18861 (command_loop_1): Remove dead var `no_direct'.
18862
18863 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18864 preserve non-built-in buffer-local variables.
18865 (Fkill_all_local_variables): Don't re-create&re-set permanent
18866 buffer-local variables.
18867
18868 2007-12-09 Juri Linkov <juri@jurta.org>
18869
18870 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18871 Lisp code that uses `read-buffer' with current buffer as default.
18872
18873 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
18874
18875 * dbusbind.c (xd_read_message): Generate an event for every
18876 registered handler. There might be several handlers registered
18877 for the same signal.
18878 (Fdbus_register_signal): Don't overwrite a registration for the
18879 same signal. Add a new registration if handlers are different.
18880 (Vdbus_registered_functions_table): Rework doc string.
18881
18882 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
18883
18884 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18885 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18886 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18887 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18888 Unify argument lists.
18889 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18890 arguments and hash table keys. Use unique name for service.
18891 (Fdbus_unregister_signal): Remove checks.
18892 (Vdbus_registered_functions_table): Fix doc string.
18893
18894 2007-12-05 Magnus Henoch <mange@freemail.hu>
18895
18896 * process.c (make_process): Initialize pty_flag to 0.
18897
18898 2007-12-05 Jason Rumney <jasonr@gnu.org>
18899
18900 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18901 specified XBMs.
18902
18903 2007-12-05 Richard Stallman <rms@gnu.org>
18904
18905 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18906
18907 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18908
18909 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18910 New variable.
18911 (mac_try_close_socket) [MAC_OSX]: New function.
18912 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18913 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18914
18915 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18916 Use mac_try_close_socket.
18917
18918 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18919
18920 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18921 reloc_base.
18922 (copy_dysymtab): Compute relocation base here.
18923 (rebase_reloc_address) [__ppc64__]: New function.
18924 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18925 changed.
18926
18927 2007-12-05 Jason Rumney <jasonr@gnu.org>
18928
18929 * w32proc.c (sys_spawnve): Quote args with wildcards.
18930
18931 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18932
18933 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18934 __objc_* sections.
18935 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18936
18937 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
18938
18939 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18940 Move check for Vdbus_registered_functions_table to
18941 xd_read_queued_messages.
18942 (xd_read_queued_messages): Protect xd_read_message calls by
18943 internal_condition_case_1.
18944
18945 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
18946
18947 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18948 Qdbus_system_bus and Qdbus_session_bus, respectively.
18949 (Vdbus_intern_symbols): Remove.
18950 (Vdbus_registered_functions_table): New hash table.
18951 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18952 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18953 Rewrite in order to manage registered functions by hash table
18954 Vdbus_registered_functions_table.
18955
18956 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18957
18958 * xterm.c: Update URL to Window Manager Specification in comment.
18959
18960 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
18961
18962 * config.in (HAVE_DBUS): Add.
18963
18964 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18965 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18966 (obj): Add $(DBUS_OBJ).
18967 (LIBES): Add $(DBUS_LIBS).
18968 (dbusbind.o): New target.
18969
18970 * dbusbind.c: New file.
18971
18972 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18973
18974 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18975 (Qdbus_event): New Lisp symbol.
18976 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18977 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
18978 (keys_of_keyboard): Define dbus-event.
18979
18980 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18981
18982 2007-12-01 Richard Stallman <rms@gnu.org>
18983
18984 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18985
18986 2007-11-30 Jason Rumney <jasonr@gnu.org>
18987
18988 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18989 (w32con_reset_terminal_modes): Clear screen buffer.
18990 (w32_face_attributes): Don't use color indexes that are out of range.
18991 Only reverse the default colors.
18992
18993 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18994 WINDOWSNT.
18995
18996 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18997
18998 2007-11-29 Jason Rumney <jasonr@gnu.org>
18999
19000 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19001 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19002 if the terminal colors are initialized.
19003 (unspecified_fg, unspecified_bg): Remove unused declarations.
19004
19005 2007-11-29 Andreas Schwab <schwab@suse.de>
19006
19007 * keyboard.c (apply_modifiers): Fix typo.
19008
19009 2007-11-29 Richard Stallman <rms@gnu.org>
19010
19011 * keymap.c (Fcurrent_local_map): Doc fix.
19012
19013 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19014
19015 * s/gnu-kfreebsd.h: New file.
19016
19017 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19018
19019 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19020 Don't cast redundantly.
19021
19022 * keyboard.c (KEY_TO_CHAR): New macro.
19023 (parse_modifiers, apply_modifiers): Accept integer arguments.
19024 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19025 for chars and symbol keys.
19026 After doing such remapping, apply function-key-map again.
19027
19028 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19029
19030 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19031 compiled anymore.
19032
19033 2007-11-26 Andreas Schwab <schwab@suse.de>
19034
19035 * process.c (list_processes_1): Fix indentation level of the
19036 command column.
19037
19038 2007-11-23 Andreas Schwab <schwab@suse.de>
19039
19040 * editfns.c (Fformat): Handle %c specially since it requires the
19041 argument to be of type int.
19042
19043 2007-11-23 Markus Triska <markus.triska@gmx.at>
19044
19045 * emacs.c (main): Call init_editfns before init_process, since
19046 init_process sets Vprocess_connection_type depending on OS release.
19047
19048 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19049
19050 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19051 (find_symbol_value): Use do_symval_forwarding.
19052
19053 * data.c (set_internal): Set the value in the `cons-cell' (for
19054 Buffer_Local_values) not only for frame-local variables.
19055
19056 2007-11-22 Andreas Schwab <schwab@suse.de>
19057
19058 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19059 values to sprintf.
19060 * keymap.c (Fsingle_key_description): Likewise.
19061 * print.c (print_object): Likewise.
19062
19063 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19064
19065 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19066 file for image is nil.
19067
19068 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19069
19070 * term.c: Include stdarg.h.
19071 (fatal): Implement using varargs.
19072 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19073
19074 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19075
19076 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19077 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19078 Update call to buffer_slot_type_mismatch.
19079 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19080 (buffer_slot_type_mismatch): Update.
19081 * buffer.c (buffer_local_types): Remove.
19082 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19083 (defvar_per_buffer): Set the type in the buffer_objfwd.
19084
19085 2007-11-21 Jason Rumney <jasonr@gnu.org>
19086
19087 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19088 CreateFileMapping returns NULL on failure.
19089
19090 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19091
19092 * search.c (Fset_match_data): Remove the `evaporate' feature.
19093 (unwind_set_match_data): Don't use the `evaporate' feature.
19094
19095 2007-11-21 Jason Rumney <jasonr@gnu.org>
19096
19097 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19098
19099 * w32console.c (w32con_write_glyphs): Remove unused variables.
19100
19101 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19102
19103 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19104
19105 * s/darwin.h (MULTI_KBOARD): Remove.
19106
19107 * macfns.c (x_create_tip_frame, Fx_create_frame)
19108 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19109
19110 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19111
19112 * buffer.c (Fbuffer_local_value): Remove redundant test.
19113 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19114 than in `current-buffer' to match the comment.
19115 Do the swap using swap_in_global_binding.
19116
19117 * data.c (store_symval_forwarding, set_internal):
19118 * eval.c (specbind): Remove dead code.
19119
19120 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19121 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19122 Since we do not want to see internal Lisp_*fwd objects here.
19123
19124 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19125
19126 * sysdep.c (init_system_name): Use getaddrinfo if available.
19127
19128 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19129 (x_scroll_bar_note_movement): start, end, with, height in struct
19130 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19131
19132 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19133
19134 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19135
19136 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19137
19138 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19139 This undoes Richard's change of 14-Oct-2002.
19140
19141 * alloc.c (allocate_other_vector):
19142 * lisp.h (allocate_other_vector): Remove.
19143
19144 * window.c (struct save_window_data): Move non-lisp data to the end
19145 and make it `int' rather than Lisp_Object.
19146 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19147 Done wrap/unwrap integer values.
19148 (Fset_window_configuration, compare_window_configurations):
19149 Update use of fields to their new types.
19150
19151 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19152 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19153 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19154 (SET_SCROLL_BAR_X_WINDOW): Remove.
19155 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19156 Access the new x_window field directly.
19157 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19158 Don't wrap/unwrap integers into Lisp_Objects.
19159 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19160 (x_scroll_bar_report_motion):
19161 Don't wrap/unwrap integers into Lisp_Objects.
19162 (x_term_init): Use SDATA.
19163 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19164 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19165 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19166 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19167 * xfns.c (x_set_background_color):
19168 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19169 Access the new x_window field directly.
19170
19171 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19172 (allocate_pseudovector): Make non-static.
19173
19174 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19175 (allocate_pseudovector): Declare.
19176 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19177
19178 2007-11-15 Andreas Schwab <schwab@suse.de>
19179
19180 * editfns.c (Fformat): Correctly format EMACS_INT values.
19181 Also take precision into account when formatting an integer.
19182
19183 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19184
19185 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19186
19187 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19188 (syms_of_keyboard): Defsubr it.
19189
19190 * data.c (swap_in_global_binding): Fix longstanding bug where
19191 store_symval_forwarding was not called with the right second argument,
19192 thus causing objfwd-ing from being dropped.
19193
19194 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19195
19196 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19197 (Fx_display_pixel_height, Fx_display_planes)
19198 (Fx_display_color_cells, Fx_server_max_request_size)
19199 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19200 (Fx_display_visual_class, Fx_display_save_under):
19201 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19202 (Fx_display_pixel_height, Fx_display_planes)
19203 (Fx_display_color_cells, Fx_server_max_request_size)
19204 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19205 (Fx_display_mm_height, Fx_display_mm_width)
19206 (Fx_display_backing_store, Fx_display_visual_class)
19207 (Fw32_select_font, Fx_display_save_under):
19208 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19209 (Fx_display_pixel_height, Fx_display_planes)
19210 (Fx_display_color_cells, Fx_server_max_request_size)
19211 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19212 (Fx_display_save_under): Fix typos in docstrings.
19213
19214 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19215
19216 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19217 corresponding to deleted entries; they are an implementation detail.
19218 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19219 Remove variables.
19220 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19221 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19222 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19223 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19224 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19225 (Fw32_define_rgb_color, Fw32_load_color_file)
19226 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19227 Fix typos in docstrings.
19228 (Fx_server_version): Reflow docstring.
19229 (Fw32_shell_execute): Doc fixes.
19230
19231 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
19232
19233 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19234 if w32_parse_hot_key returned nil.
19235
19236 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19237
19238 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19239
19240 2007-11-09 Jason Rumney <jasonr@gnu.org>
19241
19242 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19243
19244 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19245
19246 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19247 Remove W32_SCROLL_BAR_CLICK_EVENT.
19248
19249 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19250 Add MULTIMEDIA_KEY_EVENT.
19251
19252 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19253 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19254 (make_lispy_event) [WINDOWSNT]: Use it to translate
19255 MULTIMEDIA_KEY_EVENT.
19256
19257 * w32term.h (WM_APPCOMMAND): Define if not already.
19258 (GET_APPCOMMAND_LPARAM): Likewise.
19259
19260 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19261 WM_APPCOMMAND.
19262
19263 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19264 (syms_of_w32fns): Export and initialize it.
19265 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19266
19267 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
19268
19269 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19270 twice.
19271
19272 * xdisp.c (handle_face_prop): Fix last change.
19273
19274 2007-11-09 Richard Stallman <rms@gnu.org>
19275
19276 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19277 not just for after-strings and before-strings.
19278 Call face_for_overlay_string and pass the overlay to it.
19279 (handle_display_prop): Determine whether property came from an overlay.
19280 Pass OVERLAY arg to handle_single_display_spec.
19281 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19282 (load_overlay_strings): Fill in it->string_overlays.
19283 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19284
19285 * xfaces.c (face_for_overlay_string): Function renamed from
19286 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19287
19288 * dispextern.h (struct it): New elt string_overlays.
19289 New elt from_overlay, also in stack.
19290 Rearrange a few elements.
19291 (face_for_overlay_string): Decl renamed from
19292 face_at_buffer_position_no_overlays, and add argument.
19293
19294 2007-11-09 Richard Stallman <rms@gnu.org>
19295
19296 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19297 to get the base face for an overlay string.
19298
19299 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19300
19301 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19302
19303 * xdisp.c (handle_stop): Move some code out of loop.
19304
19305 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19306
19307 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19308 Fix conversion from Lisp object to ATSUFontID.
19309
19310 2007-11-09 Jason Rumney <jasonr@gnu.org>
19311
19312 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19313
19314 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19315
19316 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19317 Don't assume regions are aligned to page boundary.
19318 (print_load_command_name): Add LC_UUID if defined.
19319
19320 2007-11-09 Richard Stallman <rms@gnu.org>
19321
19322 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19323
19324 2007-11-07 Jason Rumney <jasonr@gnu.org>
19325
19326 * s/windows95.h: Remove.
19327
19328 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19329
19330 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19331 abort with a message on unhandled store_type values.
19332
19333 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19334
19335 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19336 Remove HAVE_X11R5 and HAVE_X11R4.
19337
19338 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19339
19340 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19341
19342 2007-11-01 Johan Bockgård <bojohan@gnu.org>
19343
19344 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19345 Don't set s->stippled_p here, since it has already been set by
19346 x_set_glyph_string_gc from x_draw_glyph_string.
19347
19348 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19349
19350 * sunfns.c: Remove file.
19351
19352 * m/sun386.h:
19353 * m/sun2.h:
19354 * m/sparc.h: Remove Sun windows code.
19355
19356 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19357
19358 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19359 (init_keyboard): Set current_kboard's window-system to nil.
19360 (tty_read_avail_input): Typo.
19361 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19362
19363 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19364
19365 * s/usg5-4.h:
19366 * s/usg5-3.h:
19367 * s/ptx.h:
19368 * m/is386.h:
19369 * m/ibmps2-aix.h:
19370 * Makefile.in: Remove all mentions of X10.
19371
19372 * dispnew.c (syms_of_display): Don't mention version 10.
19373
19374 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
19375
19376 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19377 ($(BLD)/abbrev.$(O)): Remove.
19378
19379 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19380
19381 Rewrite abbrev.c in Elisp.
19382 * image.c (Qcount): Don't declare as extern.
19383 (syms_of_image): Initialize and staticpro `Qcount'.
19384 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19385 * emacs.c (main): Don't call syms_of_abbrev.
19386 * Makefile.in (obj): Remove abbrev.o.
19387 (abbrev.o): Remove.
19388 * abbrev.c: Remove.
19389
19390 2007-10-26 Martin Rudalics <rudalics@gmx.at>
19391
19392 * window.c (window_min_size_2): Don't count header-line.
19393
19394 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19395
19396 * frame.h (struct frame): Move all bit fields after the first bit
19397 field to take advantage of the available space. Group all the
19398 chars together to reduce wasted space due to padding.
19399
19400 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
19401
19402 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19403
19404 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19405 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19406 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19407 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19408 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19409 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19410 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19411 (last_marked, mark_object_loop_halt): Make static.
19412
19413 * frame.c (syms_of_frame) <delete-frame-functions>:
19414 Fix typo in docstring.
19415
19416 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
19417
19418 * w32.c (init_environment): Fix tiny memory leak.
19419 (w32_get_resource): Remove unused variable `ok'.
19420
19421 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19422
19423 Make `window-system' into a keyboard-local variable (rather than
19424 frame-local as done originally by multi-tty).
19425
19426 * keyboard.h (struct kboard): Add Vwindow_system.
19427 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19428 (mark_kboards): Mark Vwindow_system.
19429
19430 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19431 (init_display): Don't set the obsolete `window-system' frame-param.
19432
19433 * xterm.c (x_term_init):
19434 * w32term.c (w32_create_terminal):
19435 * term.c (init_tty): Set Vwindow_system.
19436 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19437 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19438
19439 * xfns.c (Fx_create_frame, x_create_tip_frame):
19440 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19441 * macfns.c (Fx_create_frame):
19442 Don't set the obsolete `window-system' frame-param.
19443
19444 * frame.h (Qwindow_system): Remove.
19445 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19446 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19447
19448 2007-10-24 Richard Stallman <rms@gnu.org>
19449
19450 * frame.c (x_figure_window_size): For fullscreen case,
19451 set USPosition | PPosition without clobbering rest of window_prompting.
19452
19453 * keyboard.c (Fcurrent_idle_time): Doc fix.
19454
19455 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19456
19457 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19458
19459 * process.c (unwind_request_sigio): Only define if __ultrix__.
19460
19461 * callproc.c (child_setup): Remove spurious *.
19462
19463 * lisp.h (Fget_text_property): Declare.
19464 (have_menus_p): Declare it here rather than in sys-dep header files.
19465 * macterm.h (have_menus_p):
19466 * msdos.h (have_menus_p):
19467 * xterm.h (have_menus_p): Remove.
19468
19469 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19470 (Fmake_variable_frame_local): Just check the variable's const-ness
19471 rather than checking nil or t.
19472
19473 2007-10-22 Jason Rumney <jasonr@gnu.org>
19474
19475 * w32fns.c: Include math.h.
19476 (w32_abort): Declaration moved to nt/config.nt.
19477
19478 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19479 (abort): Redefinition moved to nt/config.nt.
19480
19481 * m/windowsnt.h: Remove.
19482
19483 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
19484
19485 * emacs.c (Fdump_emacs): Fix typo in message.
19486 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19487 <installation-directory>: Reflow docstring.
19488
19489 2007-10-22 Juri Linkov <juri@jurta.org>
19490
19491 * minibuf.c: Allow minibuffer default to be a list of default values.
19492 With empty input use the first element of this list as returned default.
19493 (string_to_object)
19494 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19495 (read_minibuf): If defalt is cons, set histstring to its car.
19496 (Fread_string): If default_value is cons, set val to its car.
19497 (Fread_buffer): If def is cons, use its car.
19498 (Fcompleting_read): If defalt is cons, set val to its car.
19499
19500 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
19501
19502 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19503
19504 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
19505
19506 * doc.c (Fdocumentation): Check for advice in all cases.
19507
19508 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
19509
19510 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19511
19512 2007-10-19 Richard Stallman <rms@gnu.org>
19513
19514 * doc.c (Fdocumentation): Check for and handle an advised function.
19515
19516 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
19517
19518 * process.c (Fset_process_filter): Doc fix.
19519
19520 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19521
19522 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19523 which caused key-translation-map to applied repeatedly (thus breaking
19524 double-mode).
19525
19526 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19527
19528 * xselect.c (x_own_selection, x_handle_selection_clear)
19529 (x_clear_frame_selections):
19530 * w32menu.c (list_of_panes, list_of_items):
19531 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19532 * textprop.c (validate_plist, interval_has_all_properties)
19533 (interval_has_some_properties, interval_has_some_properties_list)
19534 (add_properties, text_property_list):
19535 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19536 * minibuf.c (Fassoc_string):
19537 * macselect.c (x_own_selection, x_clear_frame_selections)
19538 (Fx_disown_selection_internal):
19539 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19540 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19541
19542 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
19543
19544 * process.c: Link to libs for calling res_init() if available.
19545 (Fmake_network_process): Call res_init() before getaddrinfo or
19546 gethostbyname, if possible.
19547
19548 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19549
19550 * lread.c (read1): Set pvectype for char_tables.
19551
19552 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19553 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19554 Add type checks.
19555 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19556
19557 * alloc.c (free_misc): Use XMISCTYPE.
19558 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19559
19560 2007-10-17 Glenn Morris <rgm@gnu.org>
19561
19562 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19563 (syms_of_minibuf): Add Qcompletion_ignore_case.
19564 * dired.c (Qcompletion_ignore_case): Change to external.
19565 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19566 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19567 (Fread_file_name): Use it rather than intern'ing.
19568
19569 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19570 (Fread_coding_system): Ignore case of user input.
19571
19572 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19573
19574 * xdisp.c (handle_display_prop): Ignore display specs after
19575 replacing one when string text is being replaced.
19576 (handle_single_display_spec): Pretend as if characters with display
19577 property haven't been consumed only when buffer text is being replaced.
19578
19579 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19580
19581 * xfns.c (Fx_create_frame, Fx_display_list):
19582 * window.c (window_fixed_size_p, enlarge_window)
19583 (shrink_window_lowest_first):
19584 * macterm.c (init_font_name_table):
19585 * macfns.c (Fx_create_frame, Fx_display_list):
19586 * lread.c (close_load_descs):
19587 * keyboard.c (read_char_x_menu_prompt):
19588 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19589 * coding.c (code_convert_region_unwind): Test the type of an object
19590 rather than just !NILP before extracting data from it.
19591
19592 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19593
19594 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19595 (XMISCANY): New macro.
19596 (XMISCTYPE): Use it.
19597 (struct Lisp_Misc_Any): New type.
19598 (union Lisp_Misc): Use it.
19599 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19600 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19601 (find_symbol_value, set_internal, default_value, Fset_default)
19602 (Fmake_variable_buffer_local, Fmake_local_variable)
19603 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19604 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19605 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19606 * alloc.c (allocate_buffer): Set the size and tag.
19607 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19608 Use XMISCANY.
19609 (die): Follow the GNU convention for error messages.
19610 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19611 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19612 tag any more.
19613 (set_buffer_internal_1):
19614 * frame.c (store_frame_param):
19615 * eval.c (specbind):
19616 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19617
19618 * doc.c (Fsnarf_documentation): Simplify.
19619
19620 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19621
19622 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19623 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19624
19625 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19626
19627 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19628
19629 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19630
19631 * eval.c (do_autoload): Don't save autoloads.
19632
19633 * data.c (Ffset): Save autoload of the function being set.
19634
19635 2007-10-07 John Paul Wallington <jpw@pobox.com>
19636
19637 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19638 parameter before setting up faces.
19639
19640 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19641
19642 * ccl.c (Fregister_code_conversion_map):
19643 * keyboard.c (append_tool_bar_item): Reformat last change.
19644
19645 * lisp.h (eabs): Rename from `abs'. All callers changed.
19646
19647 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19648
19649 * buffer.c (add_overlay_mod_hooklist):
19650 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19651 * fontset.c (make_fontset):
19652 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19653 (append_tool_bar_item):
19654 * macmenu.c (grow_menu_items):
19655 * w32menu.c (grow_menu_items):
19656 * xmenu.c (grow_menu_items): Use larger_vector.
19657
19658 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19659
19660 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19661 selected frame'' on MSDOS).
19662
19663 2007-10-12 Martin Rudalics <rudalics@gmx.at>
19664
19665 * frame.c (Qexplicit_name): New variable.
19666 (x_report_frame_params): Report it in parameter alist.
19667 (syms_of_frame): Intern and staticpro it.
19668
19669 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19670
19671 * macfns.c (x_create_tip_frame): Set terminal for frame.
19672
19673 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19674
19675 * frame.c (Qenvironment): Remove.
19676 (syms_of_frame) <Qenvironment>: Don't initialize.
19677 (Fdelete_frame): Don't treat the `environment' param specially.
19678 * frame.h (Qenvironment): Don't declare.
19679 * callproc.c (set_initial_environment): Don't set unused frame param.
19680
19681 * frame.c (Fframe_with_environment): Remove.
19682 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19683
19684 * lisp.h (Fframe_with_environment): Don't declare.
19685
19686 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
19687
19688 * indent.c (indent_tabs_mode, last_known_column)
19689 (last_known_column_modified): Make static.
19690 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19691
19692 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19693
19694 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19695
19696 2007-10-09 Jason Rumney <jasonr@gnu.org>
19697
19698 * w32term.c (x_set_window_size): Disable code that attempts to tell
19699 Lisp code about a size change before it actually happens.
19700
19701 2007-10-09 Richard Stallman <rms@gnu.org>
19702
19703 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19704 return HANDLED_RETURN.
19705
19706 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19707
19708 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19709 when there's an unread command event.
19710
19711 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19712 window autoselection act appropriately when leaving selected frame.
19713 (syms_of_frame): Initialize focus_follows_mouse.
19714 * frame.h (focus_follows_mouse): Extern it.
19715 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19716 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19717 * msdos.c (dos_rawgetc): Likewise.
19718 * w32term.c (w32_read_socket): Likewise.
19719 * xterm.c (handle_one_xevent): Likewise.
19720 * xdisp.c (syms_of_xdisp): In doc-string of
19721 mouse-autoselect-window mention focus-follows-mouse.
19722
19723 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19724
19725 * macterm.c (mac_load_query_font): Fix missing return value.
19726 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19727 Add BLOCK_INPUT.
19728
19729 2007-10-08 Richard Stallman <rms@gnu.org>
19730
19731 * xdisp.c (get_window_cursor_type): Implement documented behavior
19732 for cursor-in-non-selected-windows = t.
19733
19734 2007-10-08 Jason Rumney <jasonr@gnu.org>
19735
19736 * w32.c (w32_get_resource): Always close registry keys.
19737
19738 2007-10-08 Jason Rumney <jasonr@gnu.org>
19739
19740 * makefile.w32-in (LIBS): Add COMCTL32.
19741
19742 * w32fns.c (globals_of_w32fns): Init common controls.
19743
19744 2007-10-08 Richard Stallman <rms@gnu.org>
19745
19746 * image.c (our_memory_buffer): Rename from omfib_buffer.
19747
19748 2007-10-08 Richard Stallman <rms@gnu.org>
19749
19750 * buffer.c (Foverlays_at): Doc fix.
19751
19752 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19753
19754 * fns.c (Fplist_put): Preserve uneven tail data.
19755
19756 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19757
19758 * termhooks.h (enum event_kind): Remove trailing comma.
19759
19760 * frame.h (enum): Remove trailing comma.
19761
19762 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19763
19764 * w32proc.c (delete_child): Don't terminate threads of zombies.
19765
19766 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19767
19768 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19769
19770 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19771 last-repeatable-command.
19772 (init_kboard): Initialize Vlast_repeatable_command.
19773 (command_loop_1): Set it to real_this_command unless that was
19774 bound to an input event.
19775 (mark_kboards): Mark it.
19776
19777 2007-10-08 Richard Stallman <rms@gnu.org>
19778
19779 * eval.c (condition-case): Doc fix.
19780
19781 2007-10-08 Masatake YAMATO <jet@gyve.org>
19782
19783 * xfaces.c (tty_supports_face_attributes_p): Fix code
19784 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19785 was copied and not edited.
19786
19787 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19788
19789 Add new `input-decode-map' keymap and use it for terminal
19790 escape sequences.
19791 * keyboard.h (struct kboard): Add Vinput_decode_map.
19792 Remove Vlocal_key_translation_map.
19793 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19794 (init_kboard): Init input-decode-map.
19795 Replace local-key-translation-map back with key-translation-map.
19796 (syms_of_keyboard): Declare input-decode-map.
19797 Remove local-key-translation-map. Update docstrings.
19798 (mark_kboards): Mark Vinput_decode_map.
19799 Don't mark Vlocal_key_translation_map.
19800 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19801 Replace local-key-translation-map back with key-translation-map.
19802 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19803 Bind in input-decode-map rather than function-key-map.
19804
19805 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19806 This was made redundant by the previous introduction of XSETPVECTYPE.
19807
19808 2007-10-09 Richard Stallman <rms@gnu.org>
19809
19810 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19811
19812 2007-09-29 Richard Stallman <rms@gnu.org>
19813
19814 * eval.c (internal_condition_case_2, internal_condition_case_1)
19815 (internal_condition_case): Reenable abort if x_catching_errors ()
19816 to see if that really happens and why.
19817
19818 2007-10-06 Andreas Schwab <schwab@suse.de>
19819
19820 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19821
19822 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
19823
19824 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19825
19826 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19827
19828 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19829
19830 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19831
19832 * window.h (struct window):
19833 * window.c (struct save_window_data, struct saved_window):
19834 * termhooks.h (struct terminal):
19835 * process.h (struct Lisp_Process):
19836 * frame.h (struct frame):
19837 * buffer.h (struct buffer):
19838 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19839 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19840 The size field of (pseudo)vectors is now unsigned.
19841 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19842
19843 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19844 Turn `count' into an integer.
19845
19846 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19847 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19848 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19849 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19850 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19851
19852 * alloc.c (allocate_pseudovector): New fun.
19853 (ALLOCATE_PSEUDOVECTOR): New macro.
19854 (allocate_window, allocate_terminal, allocate_frame)
19855 (allocate_process): Use it.
19856 (mark_vectorlike): New function.
19857 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19858 (mark_terminals): Use it.
19859 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19860 (Fmake_byte_code): Use XSETPVECTYPE.
19861
19862 * frame.c (Fframe_parameters): Minor simplification.
19863
19864 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19865
19866 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19867
19868 * buffer.c (Fget_buffer_create, init_buffer_once):
19869 * lread.c (defsubr):
19870 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19871
19872 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19873 defined differently in the m/*.h files.
19874 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19875 (XSETPVECTYPE): New macro.
19876 (XSETPSEUDOVECTOR): Use it.
19877
19878 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19879 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19880
19881 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19882 * lread.c (defvar_per_buffer):
19883 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19884
19885 * window.c (candidate_window_p): Only consider as visible frames that
19886 are on the same terminal.
19887
19888 * m/ibms390x.h (MARKBIT): Remove unused macro.
19889
19890 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
19891
19892 * lread.c (Fload): Fix typo in docstring.
19893
19894 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19895
19896 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19897 of a non-zero value can't yield zero.
19898
19899 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19900
19901 * term.c (term_clear_mouse_face, term_mouse_highlight)
19902 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19903
19904 * print.c (safe_debug_print): Use XHASH.
19905
19906 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19907 Lisp elements such as tags.
19908 (XHASH): New macro.
19909 (EQ): Use it.
19910 (SREF, SSET, STRING_COPYIN): Use SDATA.
19911 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19912
19913 * alloc.c (mark_terminal): Remove left-over declaration.
19914 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19915 (allocate_vectorlike): Remove type argument. Adjust callers.
19916 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19917 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19918
19919 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19920 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19921 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19922 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19923 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19924 Use them.
19925
19926 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19927 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19928 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19929
19930 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19931
19932 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19933 loaded by default.
19934
19935 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19936
19937 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19938 on this tty.
19939 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19940
19941 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19942 Update all users.
19943 (handle_one_term_event): Use Gpm_DrawPointer.
19944 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19945 Signal errors instead of returning nil. Always return nil.
19946 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19947 Make it a noop if gpm-mouse was not activated.
19948 (syms_of_term): Update names.
19949
19950 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19951
19952 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19953 (init_sys_modes): Check that gpm_tty is the current tty.
19954
19955 * alloc.c (allocate_terminal): Set the vector size to only count the
19956 lisp fields. Initialize those to nil.
19957 (mark_object): Don't treat terminals specially.
19958 (mark_terminal): Remove.
19959 (mark_terminals): Use mark_object instead.
19960
19961 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19962 the GC to the beginning.
19963
19964 * indent.h:
19965 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19966
19967 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19968
19969 2007-09-25 Jason Rumney <jasonr@gnu.org>
19970
19971 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19972
19973 * w32console.c (create_w32cons_output): Remove.
19974
19975 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19976
19977 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19978 (reset_sys_modes): Use reset_terminal_modes_hook.
19979
19980 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19981
19982 * eval.c (do_autoload): Don't output any message.
19983
19984 2007-09-24 Juri Linkov <juri@jurta.org>
19985
19986 * emacs.c (standard_args): Change priority of "--no-splash"
19987 from 40 to 3. Add "--no-desktop" with the same priority.
19988
19989 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19990
19991 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19992 and optimize the case where they are all 1.
19993
19994 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
19995
19996 * lisp.h (abs): Define if not defined.
19997 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19998 Don't define `abs', since it's defined in lisp.h.
19999
20000 2007-09-22 Eli Zaretskii <eliz@gnu.org>
20001
20002 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20003 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20004 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20005 (init_tty): Use DEV_TTY instead of "/dev/tty".
20006 [WINDOWSNT]: No need to protect from NAME arg being null.
20007
20008 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20009
20010 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20011 up the tty state.
20012
20013 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20014
20015 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20016 (gpm_tty): Change its type.
20017 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20018 (gpm_tty): Change its type and initialize it.
20019 (Fterm_open_connection): Check the frame is indeed a tty.
20020 Use the new gpm_tty.
20021 (Fterm_close_connection): Use the new gpm_tty.
20022 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20023 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20024
20025 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
20026
20027 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20028 underline_color, to draw strike-through.
20029
20030 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20031
20032 * lisp.h (allocate_terminal): Declare.
20033
20034 * window.c (candidate_window_p): Consider frames that are being placed
20035 by the user as somewhere between visible and iconified.
20036 (window_loop): Prefer windows on the current frame.
20037 (Fselect_window): Move the use of select-frame to the beginning so we
20038 can just delegate all the work (it'll call us back anyway).
20039
20040 * frame.c (Qdisplay_environment_variable):
20041 * frame.h (Qdisplay_environment_variable): Delete.
20042
20043 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20044 of the first arg, since that value may be a union.
20045
20046 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20047 parameter rather than Qdisplay_environment_variable. If all else
20048 fails, look for DISPLAY in initial-environment.
20049
20050 2007-09-21 Glenn Morris <rgm@gnu.org>
20051
20052 * Makefile.in (emacstool): Remove target.
20053 (lisp, shortlisp): Remove termdev.elc.
20054
20055 2007-09-21 Markus Triska <markus.triska@gmx.at>
20056
20057 * xterm.c (x_delete_display): Compile session management conditionally.
20058
20059 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20060
20061 * callproc.c (getenv_internal_1): New function.
20062 (getenv_internal): Use it.
20063 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20064
20065 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20066 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20067 (Fset_terminal_parameter): Work with dead terminals as well.
20068 (Fmodify_terminal_parameters): Remove.
20069
20070 * terminal.c (get_terminal): Handle terminals.
20071 Make sure the terminal returned is live.
20072 (create_terminal): Use allocate_terminal.
20073 (mark_terminals): Move to alloc.c.
20074 (delete_terminal): Use terminal->name as liveness status.
20075 NULL out fields after freeing their contents.
20076 Don't deallocate the object.
20077 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20078 rather than an int.
20079 (Fterminal_live_p): Accept non-integer arguments.
20080 (Fterminal_list): Return terminal objects rather than an ints.
20081
20082 * alloc.c (enum mem_type): New member for `terminal' objects.
20083 (allocate_terminal): New function.
20084 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20085 Handle terminals.
20086 (mark_terminal): New fun.
20087 (mark_terminals): Move from terminal.c.
20088
20089 * term.c (get_tty_terminal): Don't treat output_initial specially.
20090 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20091 (delete_tty): Use terminal->name as liveness status.
20092
20093 * termhooks.h (struct terminal): Make it into a pseudovector.
20094 Remove `deleted' replaced by checking `name's nullness.
20095
20096 * print.c (print_object): Handle terminals.
20097
20098 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20099 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20100
20101 * frame.c (make_terminal_frame):
20102 * keyboard.c (tty_read_avail_input):
20103 * w32term.c (x_delete_terminal):
20104 * xfns.c (Fx_create_frame, x_create_tip_frame):
20105 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20106
20107 2007-09-20 Glenn Morris <rgm@gnu.org>
20108
20109 * process.c (Fmake_network_process): Doc fix.
20110
20111 2007-09-19 Jason Rumney <jasonr@gnu.org>
20112
20113 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20114
20115 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20116
20117 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20118 Fix a C warning regarding variable constness.
20119
20120 * xterm.c (handle_one_xevent): Fix a C warning.
20121
20122 2007-09-18 Jason Rumney <jasonr@gnu.org>
20123
20124 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20125
20126 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20127
20128 * gtkutil.c (gdpy_def): New variable.
20129 (xg_initialize): Initialize gdpy_def.
20130 (xg_display_close): If no other display exists, set gdpy_def to a
20131 new connection.
20132
20133 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20134
20135 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20136 when we have no file name for the icon.
20137 (xg_tool_bar_expose_callback): Remove.
20138 (xg_create_tool_bar): Don't connect expose signal to
20139 xg_tool_bar_expose_callback.
20140 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20141
20142 2007-09-16 Andreas Schwab <schwab@suse.de>
20143
20144 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20145 values instead of zapping them.
20146
20147 2007-09-14 Glenn Morris <rgm@gnu.org>
20148
20149 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20150 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20151 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20152 scope and rename to omfib_buffer for clarity.
20153 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20154
20155 2007-09-14 Kenichi Handa <handa@m17n.org>
20156
20157 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20158
20159 2007-09-13 Jason Rumney <jasonr@gnu.org>
20160
20161 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20162
20163 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20164
20165 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20166 (mac_term_init): Call here instead, passing rif.
20167
20168 2007-09-13 Glenn Morris <rgm@gnu.org>
20169
20170 * s/hpux.h: No longer define `static' as nothing.
20171
20172 2007-09-13 Johan Bockgård <bojohan@gnu.org>
20173
20174 * callint.c (Fcall_interactively): Remove unused var `fun'.
20175
20176 2007-09-12 Romain Francoise <romain@orebokech.com>
20177
20178 * window.c (prefer_window_split_horizontally, display_buffer):
20179 Revert 2007-09-08 change.
20180
20181 2007-09-12 Glenn Morris <rgm@gnu.org>
20182
20183 * alloca.c: Remove file.
20184 * Makefile.in (alloca): Do not undef.
20185 (allocaobj, alloca.o): Remove.
20186 (otherobj): Remove allocaobj.
20187 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20188 * regex.c (C_ALLOCA): Remove all references and code that was only
20189 used when this was defined.
20190 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20191 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20192 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20193
20194 * Makefile.in (SOURCES, unlock, relock): Delete.
20195
20196 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20197 (menu_grab_callback): All uses changed.
20198
20199 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20200 (x_reply_selection_request): All uses changed.
20201
20202 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20203
20204 * lread.c (load_warn_old_style_backquotes): Change message to look
20205 better when it appears in the middle of byte-compiler messages.
20206
20207 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20208
20209 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20210
20211 * xterm.c (x_create_terminal): Add comment.
20212
20213 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20214
20215 2007-09-10 Richard Stallman <rms@gnu.org>
20216
20217 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20218
20219 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20220
20221 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20222 (DEFUN): Document `intspec', use it instead of `prompt'.
20223
20224 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20225
20226 * data.c (Finteractive_form): If the interactive specification starts
20227 with a `(', use it as a Lisp form.
20228
20229 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20230 name and file modes.
20231
20232 * callint.c (Fcall_interactively): Comment fixes.
20233
20234 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20235
20236 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20237 and compiled functions.
20238
20239 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20240
20241 * window.c (prefer_window_split_horizontally): New variable.
20242 (display_buffer): Consider splitting window horizontally depending
20243 on prefer_window_split_horizontally.
20244
20245 2007-09-08 Eli Zaretskii <eliz@gnu.org>
20246
20247 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20248
20249 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20250
20251 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20252
20253 * frame.c (x_set_frame_parameters): Check number is positive before
20254 using XFASTINT.
20255
20256 * window.c (freeze_window_start): Don't presume selected_window holds
20257 a window object.
20258 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20259
20260 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20261
20262 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20263
20264 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20265
20266 * window.c (Vsplit_window_preferred_function): New var.
20267 (Fdisplay_buffer): Use it.
20268 (syms_of_window): Export, and initialize it.
20269
20270 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20271
20272 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20273
20274 2007-09-06 Glenn Morris <rgm@gnu.org>
20275
20276 * gtkutil.c (menu_grab_callback) <cnt>:
20277 * xselect.c (x_reply_selection_request) <cnt>: Move static
20278 variable to file scope.
20279
20280 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20281
20282 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20283 consistent values of selected_frame and selected_window.
20284
20285 2007-09-04 Jason Rumney <jasonr@gnu.org>
20286
20287 * w32console.c (initialize_w32_display): Zero unused hooks.
20288
20289 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20290
20291 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20292 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20293
20294 2007-09-04 Jason Rumney <jasonr@gnu.org>
20295
20296 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20297 in w32console.c. Set up input. Remove XXX comments that have been
20298 confirmed as correct.
20299
20300 * s/ms-w32.h (MULTI_KBOARD): Define.
20301
20302 * w32console.c (one_and_only_w32cons): Remove.
20303 (initialize_w32_display): Take terminal argument.
20304
20305 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20306 initialize_w32_display.
20307 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20308
20309 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20310
20311 * keyboard.c (discard_mouse_events): Discard it.
20312 (make_lispy_event): Translate it to a lisp event.
20313 (lispy_wheel_names): Add wheel-left and right events.
20314 (syms_of_keyboard): Enlarge wheel_syms.
20315
20316 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20317 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20318
20319 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20320
20321 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20322 from WM_MOUSEHWHEEL.
20323 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20324
20325 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20326 terminal.
20327
20328 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20329 keyboard for the terminal.
20330
20331 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20332
20333 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20334 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20335 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20336 and resume-tty-function to resume-tty-hook.
20337 (Fsuspend_tty, Fresume_tty): Use new names.
20338
20339 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20340
20341 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20342 if it starts with "n:".
20343
20344 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20345
20346 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20347
20348 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20349
20350 * frame.h:
20351 * frame.c (Qterm_environment_variable): Remove.
20352 (syms_of_frame): Don't init and staticpro it.
20353
20354 * callproc.c (getenv_internal): Remove special case for $TERM.
20355
20356 * callproc.c (Vinitial_environment): New variable.
20357 (set_initial_environment): Initialize it.
20358 (syms_of_callproc): Declare it.
20359 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20360 TERM under which a process runs is never related to the TERM in which
20361 Emacs is running.
20362
20363 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20364
20365 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20366 * s/darwin.h: ... do it here.
20367
20368 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20369
20370 * lisp.h (set_initial_environment): Rename from set_global_environment.
20371
20372 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20373 removed by mistake on the multi-tty branch.
20374
20375 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20376 (Fmodify_frame_parameters): Return a value.
20377
20378 * image.c (png_load): Comment-out var only used in commented-out code.
20379
20380 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20381 before passing it to mark_object.
20382
20383 * xfaces.c (internal_resolve_face_name): Return a value.
20384 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20385
20386 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20387 (x_icon): Comment-out var only used in commented-out code.
20388
20389 2007-08-29 Romain Francoise <romain@orebokech.com>
20390
20391 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20392 QUIT hasn't been provided.
20393
20394 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20395
20396 * callproc.c (child_setup, getenv_internal): Use the
20397 display-environment-variable and term-environment-variable frame params.
20398 (set_initial_environment): Initialise Vprocess_environment.
20399
20400 * config.in: Disable multi-keyboard support on a mac.
20401
20402 * frame.c (Qterm_environment_variable)
20403 (Qdisplay_environment_variable): New variables.
20404 (syms_of_frame): Intern and staticpro them.
20405 (Fmake_terminal_frame): Disable output method test.
20406
20407 * frame.h: Declare them here.
20408
20409 * macfns.c (x_set_mouse_color): Get rif from the frame.
20410 (x_set_tool_bar_lines): Don't use updating_frame.
20411 (mac_window): Add 2 new parameters for consistency with other systems.
20412 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20413 frame parameters following what is done in X11 and w32. Don't use
20414 FRAME_MAC_DISPLAY_INFO.
20415 (Fx_open_connection, start_hourglass): Remove window-system check.
20416 (x_create_tip_frame): Get the keyboard from the terminal.
20417
20418 * macmenu.c: Reorder includes.
20419 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20420
20421 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20422 terminal parameter.
20423 (x_clear_frame): Add a frame parameter.
20424 (note_mouse_movement): Get rif from the frame.
20425 (mac_term_init): Initialize the terminal.
20426 (mac_initialize): Make static and move terminal initialization ...
20427 (mac_create_terminal): ... to this new function.
20428
20429 * macterm.h (struct mac_display_info): Add terminal.
20430 (mac_initialize): Delete declaration.
20431
20432 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20433
20434 * sysdep.c: Comment out text after #endif.
20435
20436 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20437 is defined. Better initialize ttys in windows. Use terminal
20438 specific mouse_position_hook.
20439
20440 * termhooks.h (union display_info): Add mac_display_info.
20441
20442 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20443 Set the default minibuffer frame, window_system and the rest of the
20444 frame parameters following what is done in X11.
20445
20446 * w32term.c (w32_initialize): Make static.
20447
20448 * xselect.c (x_handle_selection_clear): Only access
20449 terminal->kboard when MULTI_KBOARD is defined.
20450
20451 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20452 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20453
20454 2007-08-29 Jason Rumney <jasonr@gnu.org>
20455
20456 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20457 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20458
20459 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20460 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20461
20462 * keyboard.c (restore_kboard_configuration): Only define when
20463 MULTI_KBOARD defined.
20464
20465 * makefile.w32-in: Update dependancies from Makefile.in.
20466 (OBJ1): Add terminal.$(O)
20467
20468 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20469 Don't define function body.
20470 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20471
20472 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20473
20474 * w32.c (request_sigio, unrequest_sigio): Remove.
20475
20476 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20477 (w32con_clear_frame, w32con_clear_end_of_line)
20478 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20479 (w32con_delete_glyphs, w32con_set_terminal_window)
20480 (scroll_line, w32_sys_ring_bell): Add frame arg.
20481 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20482 Add terminal arg.
20483 (PICK_FRAME): Remove.
20484 (w32con_write_glyphs): Use frame specific terminal coding.
20485 (one_and_only_w32cons): New global variable.
20486 (initialize_w32_display): Use it for storing hooks.
20487 (create_w32cons_output): New function.
20488
20489 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20490 arg a frame.
20491
20492 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20493 Set window_system.
20494 (x_set_tool_bar_lines): Don't use updating_frame.
20495 (Fx_create_frame): Set terminal and ref count.
20496 (Fx_open_connection): Remove window-system check.
20497
20498 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20499
20500 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20501 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20502 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20503 Add frame arg.
20504 (x_delete_terminal, w32_create_terminal): New functions.
20505 (w32_term_init): Create a terminal.
20506 (w32_initialize): Move terminal specific initialization to
20507 w32_create_terminal.
20508
20509 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20510 (w32_clear_rect, w32_clear_area): Use background from frame.
20511 (w32_display_info): Add terminal.
20512 (w32_sys_ring_bell, x_delete_display): Declare here.
20513
20514 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20515
20516 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20517
20518 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20519
20520 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20521 Fix get_named_tty calls for the controlling tty.
20522
20523 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20524
20525 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
20526
20527 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20528
20529 * term.c (tty_insert_glyphs): Add missing first parameter.
20530
20531 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20532
20533 * buffer.c (Fbuffer_list, Fbury_buffer):
20534 Take frame->buried_buffer_list into account.
20535
20536 * cm.c (current_tty): New variable, for cmputc().
20537 (cmputc): Use it.
20538 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20539 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20540 (cmgoto): Add tty parameter. Pass it on to calccost().
20541 Use emacs_tputs() instead of tputs().
20542
20543 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20544 tputs().
20545 (current_tty): New variable, for cmputc().
20546 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20547
20548 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20549 (internal_condition_case, internal_condition_case_1)
20550 (internal_condition_case_2): Don't abort when x_catching_errors.
20551
20552 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20553 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20554 prevent crashes caused by bogus longjmps in read_char.
20555
20556 * keymap.h (Fset_keymap_parent): Add EXFUN.
20557
20558 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20559 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20560 Remove redundant definition.
20561
20562 * macfns.c (x_set_mouse_color, x_make_gc):
20563 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20564
20565 * w32term.c (x_free_frame_resources):
20566 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20567 (w32_initialize): Use the accessor macros for terminal characteristics.
20568
20569 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20570 Use the accessor macros for terminal characteristics.
20571 * msdos.c (internal_terminal_init): Use the accessor macros for
20572 terminal characteristics.
20573 (ScreenVisualBell, internal_terminal_init):
20574 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20575
20576 * termopts.h (no_redraw_on_reenter): Declare.
20577
20578 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20579 (mark_terminals, mark_ttys): Declare.
20580 (Fgarbage_collect): Call them.
20581 (mark_object): Mark buried_buffer_list.
20582
20583 * prefix-args.c: Include stdlib.h for exit.
20584
20585 * syssignal.h: Add comment.
20586
20587 * indent.c: Include stdio.h.
20588
20589 * window.h (Vinitial_window_system): Declare.
20590 (Vwindow_system): Delete declaration.
20591
20592 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20593
20594 * image.c (lookup_image): Don't initialize `c' until the xasserts
20595 have been run.
20596
20597 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20598 FRAME_FOREGROUND_PIXEL.
20599
20600 * print.c (print_preprocess): Don't lose print_depth levels while
20601 iterating.
20602
20603 * widget.c (update_from_various_frame_slots):
20604 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20605
20606 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20607 frames.
20608 (window_internal_height): Remove bogus make_number call.
20609 (init_window_once): Call make_terminal_frame with two zero parameters.
20610
20611 * fileio.c (Fread_file_name): Update comment.
20612
20613 * callint.c (Fcall_interactively):
20614 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20615 Make sure it is correctly unwound.
20616
20617 * xsmfns.c (x_session_close): New function.
20618
20619 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20620 Delete declarations.
20621
20622 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20623 (x_output): Remove background_pixel and foreground_pixel fields.
20624 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20625 (x_delete_device, x_session_close): Declare.
20626
20627 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20628 (read_filtered_event): Call `read_char' with a local
20629 `wrong_kboard_jmpbuf'.
20630
20631 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20632 Don't call single_kboard_state. Use FRAME_RIF.
20633
20634 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20635 systems.
20636
20637 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20638 (Fframe_with_environment, Fset_input_meta_mode)
20639 (Fset_quit_char): EXFUN.
20640 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20641 (init_sys_modes, reset_sys_modes): Update prototypes.
20642 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20643
20644 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20645 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20646 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20647 Delete declarations.
20648 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20649 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20650 New declarations.
20651
20652 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20653 already does that during init_display(). Call syms_of_keymap
20654 before syms_of_keyboard. Call `syms_of_terminal'.
20655 Call set_initial_environment, not set_process_environment.
20656 (shut_down_emacs): Call reset_all_sys_modes() instead of
20657 reset_sys_modes().
20658
20659 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20660 (internal_resolve_face_name, resolve_face_name_error): New functions.
20661 (resolve_face_name): Protect against loops and errors thrown by Fget.
20662 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20663 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20664
20665 * scroll.c: Replace CURTTY() with local variables throughout the
20666 file (where applicable).
20667 (calculate_scrolling, calculate_direct_scrolling)
20668 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20669 characteristics.
20670
20671 * keymap.c (Vfunction_key_map): Remove.
20672 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20673 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20674 (Vkey_translation_map): Remove.
20675 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20676 (Fdescribe_buffer_bindings)
20677 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20678 Update for terminal-local key-translation-map.
20679
20680 * Makefile.in (callproc.o): Update dependencies.
20681 (lisp, shortlisp): Add termdev.elc.
20682 (obj): Add terminal.o.
20683 (terminal.o): Add dependencies.
20684 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20685 (data.o, fns.o): Add termhooks.h dependency.
20686 (SOME_MACHINE_LISP): Add dnd.elc.
20687 (minibuf.o): Fix typo.
20688 Update dependencies.
20689
20690 * data.c (do_symval_forwarding, store_symval_forwarding)
20691 (find_symbol_value): Use the selected frame's keyboard, not
20692 current_kboard.
20693
20694 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20695 Vwindow_system.
20696
20697 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20698 Fmenu_bar_open.
20699 (syms_of_xmenu): Update defsubr.
20700 (mouse_position_for_popup, Fx_popup_menu)
20701 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20702 (set_frame_menubar, free_frame_menubar)
20703 (create_and_show_popup_menu, xmenu_show)
20704 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20705 an X frame.
20706
20707 * xselect.c (x_own_selection): Abort if not an X frame.
20708 (some_frame_on_display): Check if it is an X frame.
20709 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20710
20711 * coding.c: Include frame.h and termhooks.h.
20712 (terminal_coding, keyboard_coding): Delete.
20713 (Fset_terminal_coding_system_internal)
20714 (Fset_keyboard_coding_system_internal)
20715 (Fkeyboard_coding_system)
20716 (Fterminal_coding_system): Add a terminal parameter.
20717 Get terminal_coding from the terminal.
20718 (init_coding_once): Don't call setup_coding_system here.
20719
20720 * dispextern.h (set_scroll_region, turn_off_insert)
20721 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20722 (tty_clear_end_of_line, tty_setup_colors)
20723 (delete_tty, updating_frame)
20724 (produce_special_glyphs, produce_glyphs, write_glyphs)
20725 (insert_glyphs): Remove.
20726 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20727 (tty_turn_off_highlight, get_tty_size): Add declaration.
20728 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20729
20730 * frame.h (enum output_method): Add output_initial.
20731 (struct x_output): Delete.
20732 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20733 Access foreground_pixel and background_pixel directly from the frame.
20734 (tty_display): Delete.
20735 (struct frame): Add buried_buffer_list, foreground_pixel,
20736 background_pixel and terminal. Delete kboard.
20737 (union output_data): Add tty.
20738 (FRAME_KBOARD): Get the kboard from the terminal.
20739 (FRAME_INITIAL_P): New macro.
20740 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20741 (Qterm_environment_variable, Qdisplay_environment_variable)
20742 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20743 New declarations.
20744
20745 * termchar.h (tty_output, tty_display_info): New structures.
20746 (tty_list): Declare.
20747 (FRAME_TTY, CURTTY): New macros.
20748 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20749 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20750 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20751 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20752
20753 * callproc.c: Include frame.h and termhooks.h, for terminal
20754 parameters.
20755 (add_env): New function.
20756 (child_setup): Use it.
20757 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20758 (getenv_internal): Fix get_terminal_param call.
20759 (Fgetenv_internal, egetenv): Update doc.
20760 (syms_of_callproc): Initialize Vprocess_environment to nil.
20761 Register and initialize them. Remove obsolete defvars. Update doc
20762 strings.
20763 (child_setup): Handle Vlocal_environment_variables.
20764 (getenv_internal): Add terminal parameter.
20765 Handle Vlocal_environment_variables.
20766 (Fgetenv_internal): Add terminal parameter.
20767 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20768 environment in a frame (not terminal) parameter. Update doc strings.
20769 (set_initial_environment): Rename from set_global_environment.
20770 Store Emacs environment in initial frame parameter.
20771
20772 * xdisp.c (redisplay_internal): Update references to
20773 `previous_terminal_frame'.
20774 (display_mode_line, Fformat_mode_line): Replace calls to
20775 `push_frame_kboard' with `push_kboard'.
20776 (get_glyph_string_clip_rects): Add extra parentheses and
20777 braces to prevent compiler warnings.
20778 (calc_pixel_width_or_height): Add xassert to check that the
20779 frame is alive. Don't call `lookup_image' on a termcap frame.
20780 (message2_nolog, message3_nolog, redisplay_internal)
20781 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20782 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20783 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20784 (Fx_display_pixel_width, Fx_display_pixel_height)
20785 (Fx_display_planes, Fx_display_color_cells)
20786 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20787 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20788 (Fx_display_backing_store, Fx_display_visual_class)
20789 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20790 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20791
20792 * xfns.c (x_set_foreground_color x_set_background_color)
20793 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20794 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20795 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20796 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20797 terminal that is being deleted.
20798 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20799 frame parameter, and make sure it overrides any user-supplied setting.
20800 (Fx_close_connection, Fx_synchronize): Unify argument names with
20801 the rest of the DEFUNs.
20802
20803 * dispnew.c (Fsend_string_to_terminal): Update call to
20804 `get_tty_terminal'.
20805 (Fredraw_frame, Fsend_string_to_terminal)
20806 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20807 FRAME_TERMCAP_P and FRAME_TTY.
20808 (window_change_signal): Don't believe width/height values that are
20809 impossibly small.
20810 (Vinitial_window_system): Rename from Vwindow_system.
20811 (termscript, Wcm, rif): Delete.
20812
20813 * termhooks.h (struct terminal): New struct containing the
20814 previously global text display hooks and new members NAME,
20815 DELETED and PARAM_ALIST.
20816 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20817 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20818 (FRAME_RIF): New macros.
20819 (get_terminal_param, get_device): New declarations.
20820 (termscript): Delete declaration.
20821
20822 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20823 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20824 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20825 FRAME_FOREGROUND_PIXEL.
20826 (x_fully_uncatch_errors): Disable definition.
20827 (x_scroll_bar_expose): Fix reference to foreground pixel.
20828 (XTread_socket): Disable loop on all X displays.
20829 (x_delete_terminal): Don't set terminal->deleted and let
20830 delete_terminal delete the frames on the terminal.
20831 (x_delete_display): Doc update to reflect changes in
20832 delete_terminal.
20833 (x_display_info) <terminal>: Move member earlier in the struct.
20834 (deleting_tty): Remove old variable.
20835 (Fsuspend_tty): Call clear_tty_hooks.
20836 (Fresume_tty, init_tty): Call set_tty_hooks.
20837 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20838 errors on X frames.
20839 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20840 (handle_one_xevent): Initialize `f' to NULL.
20841 (x_delete_terminal, x_create_terminal): New functions.
20842 (XTset_terminal_modes, XTreset_terminal_modes)
20843 (XTread_socket, x_connection_closed, x_term_init)
20844 (x_term_init, x_delete_display): Add terminal parameter.
20845 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20846 X connections.
20847
20848 * frame.c: Include termchar.h.
20849 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20850 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20851 (Qdisplay_environment_variable): New vars.
20852 (Fframep): Deal with output_initial.
20853 (Fframe-live-p): Doc fix.
20854 (Fwindow-system): New function.
20855 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20856 (make_terminal_frame): Don't create frames on a terminal that is
20857 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20858 (store_frame_param): Check for found_for_frame before calling XFRAME.
20859 (Fmake_terminal_frame): Handle NULL tty names correctly.
20860 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20861 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20862 frames to refer to a deleted frame in their 'environment parameter.
20863 (Fframe_with_environment): New function.
20864 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20865 (get_future_frame_param): New function.
20866 (Fmake_terminal_frame): Use it.
20867 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20868
20869 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20870 * sysdep.c (reset_sys_modes): Update for renames.
20871
20872 * keyboard.c (tty_read_avail_input): New function.
20873 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20874 (syms_of_keyboard): Defsubr them.
20875 (Fset_input_meta_mode, Fset_quit_char): New functions.
20876 (Fset_input_mode): Split to above functions.
20877 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20878 parameter. Use it in call to `read_char'.
20879 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20880 Set wrong_kboard_jmpbuf correctly in recursive calls.
20881 Use current_kboard to access Vkeyboard_translate_table.
20882 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20883 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20884 Update longjmp invocations. Remember the original current_kboard,
20885 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20886 changes it. Comment out unnecessary calls to
20887 `record_single_kboard_state' and `any_kboard_state'.
20888 Update recursive calls.
20889 (wrong_kboard_jmpbuf): Remove global variable.
20890 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20891 Handle deleted interrupted_kboards correctly; that is a legal
20892 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20893 and read_char calls. Abort if interrupted_kboard died in read_char.
20894 (any_kboard_state, single_kboard_state)
20895 (push_frame_kboard): Remove function.
20896 (pop_kboard): Switch out of single_kboard mode if the kboard has
20897 been deleted. Remove unused variable. Help debugging by not
20898 changing current_kboard unnecessarily. Set current_kboard to the
20899 kboard of the selected frame when the stored kboard object has
20900 been deleted before pop_kboard.
20901 (temporarily_switch_to_single_kboard): Change first parameter to a
20902 frame pointer. Throw an error when caller wants to change kboards
20903 while in single_kboard mode. Don't push_kboard if we weren't in
20904 single kboard state. Don't pop_kboard if we popped into any
20905 kboard state.
20906 (restore_kboard_configuration): Abort if pop_kboard changed the
20907 kboard in single_kboard mode. Call pop_kboard only after setting
20908 up single_kboard mode.
20909 (Frecursive_edit): Switch to single_kboard mode only in nested
20910 command loops.
20911 (cmd_error, command_loop, command_loop_1, timer_check):
20912 Comment out unnecessary call to `any_kboard_state' and
20913 `record_single_kboard_state'.
20914 (delete_kboard): Exit single_kboard mode if we have just deleted
20915 that kboard. Use FRAME_KBOARD.
20916 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20917 `fatal_error_signal'.
20918 (record_single_kboard_state): Don't push_kboard if we weren't in
20919 single kboard state. Don't pop_kboard if we popped into any
20920 kboard state.
20921 (push_frame_kboard): Rename to push_kboard.
20922 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20923 (read_avail_input): Read input from all terminals.
20924 (mark_kboards): Also mark Vkeyboard_translate_table.
20925 (kbd_buffer_store_event_hold): Simplify condition.
20926 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20927 (Vkeyboard_translate_table): Move to struct kboard.
20928 (init_kboard): Initialize Vkeyboard_translate_table.
20929 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20930 Vkeyboard_translate_table. Update doc strings. Update docs of
20931 local-function-key-map and function-key-map.
20932
20933 * terminal.c: New file.
20934
20935 * term.c: Include errno.h.
20936 (Vring_bell_function, device_list, initial_device)
20937 (next_device_id, ring_bell, update_begin, update_end)
20938 (set_terminal_window, cursor_to, raw_cursor_to)
20939 (clear_to_end, clear_frame, clear_end_of_line)
20940 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20941 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20942 (syms_of_term): Move their initialization to terminal.c.
20943 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20944 (Ftty_display_color_cells)
20945 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20946 (clear_tty_hooks, set_tty_hooks)
20947 (init_tty, maybe_fatal): New functions.
20948 (Ftty_type): Return nil if terminal is not on a tty instead of
20949 throwing an error. Doc update.
20950 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20951 Doc update. Initialize new subrs and variables.
20952 (delete_tty): Use terminal->deleted.
20953 (tty_set_terminal_modes): Rename from set_terminal_modes.
20954 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20955 (set_scroll_region): Rename to `tty_set_scroll_region'.
20956 (turn_on_insert): Rename to `tty_turn_on_insert'.
20957 (turn_off_insert): Rename to `tty_turn_off_insert'.
20958 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20959 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20960 (toggle_highligh): Rename to `tty_toggle_highlight'.
20961 (background_highlight): Rename to `tty_background_highlight'.
20962 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20963 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20964 (tty_set_scroll_region, tty_background_highlight)
20965 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20966 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20967 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20968 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20969 Add static modifier.
20970 (tty_reset_terminal_modes, tty_set_terminal_window)
20971 (tty_set_scroll_region, tty_background_highlight)
20972 (tty_highlight_if_desired, tty_cursor_to)
20973 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20974 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20975 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20976 renames.
20977
20978 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20979
20980 * keyboard.c: Qrtl is new.
20981 (parse_tool_bar_item): Handle :rtl keyword.
20982 (syms_of_keyboard): Intern :rtl keyword.
20983
20984 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20985
20986 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20987 so no Lisp code is executed.
20988 (file_for_image, find_rtl_image): New functions.
20989 (xg_get_image_for_pixmap): Use file_for_image.
20990 (update_frame_tool_bar): If direction is RTL, use RTL image if
20991 defined. Use Gtk stock images if defined.
20992
20993 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20994
20995 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20996 for nonexistent or zero-width glyph in composition glyph.
20997
20998 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20999
21000 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21001
21002 * xdisp.c (Finvisible_p): New function.
21003 (syms_of_xdisp): defsubr it.
21004
21005 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
21006
21007 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21008 Doc fixes.
21009
21010 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21011
21012 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21013
21014 2007-08-24 Martin Rudalics <rudalics@gmx.at>
21015
21016 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21017 whether decoding has modified buffer contents.
21018
21019 2007-08-24 Jason Rumney <jasonr@gnu.org>
21020
21021 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21022 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21023 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21024 (init_svg_functions) [HAVE_NTGUI]: New function.
21025 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21026 (svg_load_image): Use them.
21027 (svg_load_image) [HAVE_NTGUI]: Implement background.
21028
21029 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21030
21031 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21032 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21033 (LIBX): Remove @RSVG_LIBS@.
21034 (LIBES): Add $(RSVG_LIBS).
21035
21036 * image.c (svg_load_image): Blend with specified background if exists.
21037 Use IMAGE_BACKGROUND. Add Mac OS Support.
21038
21039 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21040 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21041 Remove macros.
21042 [MAC_OSX] (socket_callback): Do nothing.
21043 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21044 ReceiveNextEvent.
21045 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21046 socket_callback.
21047 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21048
21049 2007-08-22 Glenn Morris <rgm@gnu.org>
21050
21051 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21052
21053 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21054
21055 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21056
21057 * image.c: Add support for SVG images. Some additional comments
21058 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21059 (svg_image_p): New function to test for SVG image.
21060 (svg_load): New function to load SVG image.
21061 (svg_load_image): New function, helper for svg_load.
21062 (Qsvg): New Lisp_object.
21063 (svg_keyword_index): New enum.
21064 (svg_format): New static `image_keyword' struct.
21065 (svg_type): New static `image_type' struct.
21066 (librsvg/rsvg.h): Include it.
21067
21068 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21069
21070 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21071
21072 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21073
21074 * lread.c (Qold_style_backquotes): New var.
21075 (syms_of_lread): Init and staticpro it.
21076 (load_warn_old_style_backquotes): New fun.
21077 (Fload): Use them to warn about old style backquotes.
21078 (end_of_file_error, Fload): Remove unused vars.
21079
21080 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21081
21082 * lread.c (Vold_style_backquotes): New var.
21083 (syms_of_lread): Init and export it to Elisp.
21084 (read1): Set it when we find an old-style (back)quote.
21085
21086 2007-08-22 Jason Rumney <jasonr@gnu.org>
21087
21088 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21089
21090 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21091
21092 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21093
21094 2007-08-19 Richard Stallman <rms@gnu.org>
21095
21096 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21097
21098 2007-08-19 Andreas Schwab <schwab@suse.de>
21099
21100 * alloc.c (pure): Round PURESIZE up.
21101
21102 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21103
21104 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21105 active frame.
21106
21107 2007-08-16 Richard Stallman <rms@gnu.org>
21108
21109 * eval.c (Fcommandp): Add parens to clarify.
21110
21111 * minibuf.c (Fall_completions): Use enum for type of table.
21112
21113 * emacs.c (USAGE2): Improve text.
21114
21115 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21116
21117 * term.c (tty_default_color_capabilities): Declare static
21118 variables in file scope, to avoid HPUX compiler problem.
21119
21120 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21121
21122 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21123 to gtk_toolbar_insert.
21124
21125 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21126
21127 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21128
21129 * insdel.c (reset_var_on_error): New fun.
21130 (signal_before_change, signal_after_change):
21131 Use it to reset (after|before)-change-functions to nil in case of error.
21132 Bind inhibit-modification-hooks to t.
21133 Don't bind (after|before)-change-functions to nil while they run.
21134
21135 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21136
21137 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21138 filling pixmap with stippled background.
21139
21140 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21141
21142 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21143 Don't use invisible frame as parent window for repositioning.
21144
21145 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21146
21147 * print.c (new_backquote_output): Rename from old_backquote_output.
21148 (print): Inverse its logic (according to its name) so as to match the
21149 behavior of new_backquote_flag in lread.c.
21150
21151 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21152
21153 * gmalloc.c (posix_memalign): New function.
21154
21155 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21156 ActivateControl/DeactivateControl here.
21157 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21158 frame-notice-user-settings is non-nil.
21159 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21160 for kEventParamFMFontStyle.
21161 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21162 mac_pass_command_to_system and mac_pass_control_to_system here.
21163 (XTread_socket): Call ActivateControl/DeactivateControl here.
21164 (XTread_socket) [TARGET_API_MAC_CARBON]:
21165 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21166 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21167 for window repositioning.
21168
21169 2007-08-08 Glenn Morris <rgm@gnu.org>
21170
21171 * Replace `iff' in doc-strings and comments.
21172
21173 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
21174
21175 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21176
21177 2007-08-07 Martin Rudalics <rudalics@gmx.at>
21178
21179 * fileio.c (Finsert_file_contents): Run format-decode and
21180 after_insert_file_functions on entire buffer when REPLACE is
21181 non-nil and inhibit modification_hooks and point_motion_hooks.
21182 For consistency, run after_insert_file_functions iff something
21183 got inserted. Move signal_after_change and update_compositions
21184 after code running after_insert_file_functions. Make sure that
21185 undo_list doesn't record intermediate steps of the decoding process.
21186
21187 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21188
21189 * emacs.c (main)
21190 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21191 Call malloc_enable_thread on interactive startup.
21192
21193 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21194 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21195 [USE_PTHREAD]: Conditionalize with it.
21196 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21197 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21198 New functions.
21199
21200 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
21201
21202 * xdisp.c (redisplay_window): When restoring original buffer
21203 position, make sure it is still valid.
21204
21205 * image.c (png_load): Ignore png-supplied background color.
21206
21207 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21208
21209 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21210 Use kCFAbsoluteTimeIntervalSince1970.
21211
21212 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21213 New variable.
21214 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21215 event loop should be quit.
21216 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21217 Quit dialog event loop if quit_dialog_event_loop is set.
21218
21219 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21220 (Selection): New typedef. Use instead of ScrapRef.
21221 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21222 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21223 (mac_clear_selection): Rename from clear_scrap.
21224 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21225 scrap_has_target_type. All uses changed.
21226 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21227 (mac_selection_has_target_p): New functions.
21228 (mac_put_selection_value): Rename from put_scrap_string.
21229 (mac_get_selection_value): Rename from get_scrap_string.
21230 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21231 (put_scrap_private_timestamp, scrap_has_target_type)
21232 (get_scrap_private_timestamp): Remove functions.
21233 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21234 (x_own_selection, x_get_local_selection):
21235 Use mac_valid_selection_value_p.
21236 (x_own_selection): Don't use put_scrap_private_timestamp.
21237 Record OWNERSHIP-INFO into Vselection_alist instead.
21238 (x_get_local_selection): Don't check type if request is local.
21239 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21240 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21241
21242 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21243
21244 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21245 add comment explaining why.
21246
21247 2007-08-03 Richard Stallman <rms@gnu.org>
21248
21249 * fileio.c (Fvisited_file_modtime): Use make_time.
21250
21251 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21252
21253 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21254 build.
21255
21256 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21257
21258 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21259
21260 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21261
21262 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21263
21264 2007-07-30 Richard Stallman <rms@gnu.org>
21265
21266 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21267
21268 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21269
21270 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21271
21272 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
21273
21274 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21275 remote default-directory.
21276
21277 * buffer.c (mode-line-format): Update doc string.
21278
21279 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21280
21281 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21282 scroll bar gap.
21283 (x_scroll_bar_create): Set bar->fringe_extended_p.
21284 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21285 on frame edge. Check fringe background extension. Don't clear
21286 extended fringe background area.
21287
21288 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21289 (w32_fill_area): Enclose multiple statements with do ... while (0).
21290
21291 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21292 Extend fringe background to scroll bar gap.
21293 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21294 Set bar->fringe_extended_p.
21295 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21296 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21297 background extension. Don't clear extended fringe background area.
21298
21299 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21300 New member fringe_extended_p.
21301
21302 2007-07-25 Glenn Morris <rgm@gnu.org>
21303
21304 * Relicense all FSF files to GPLv3 or later.
21305
21306 * COPYING: Switch to GPLv3.
21307
21308 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21309
21310 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21311
21312 * data.c (Finteractive_form): Check for the presence of an
21313 `interactive-form' symbol property more thoroughly.
21314
21315 * data.c (Finteractive_form): Use an `interactive-form' property if
21316 present, analogous to the function-documentation property.
21317
21318 2007-07-24 Jason Rumney <jasonr@gnu.org>
21319
21320 * w32fns.c (x_real_positions): Get real position from OS instead of
21321 calculating it.
21322
21323 2007-07-23 Jason Rumney <jasonr@gnu.org>
21324
21325 * filelock.c (current_lock_owner): Allow for @ sign in username.
21326
21327 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
21328
21329 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21330 remote default-directory.
21331
21332 * buffer.c (mode-line-format): Describe above case in doc string.
21333
21334 2007-07-20 Eli Zaretskii <eliz@gnu.org>
21335
21336 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21337 Define if not defined.
21338
21339 2007-07-18 Jason Rumney <jasonr@gnu.org>
21340
21341 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21342
21343 2007-07-18 Richard Stallman <rms@gnu.org>
21344
21345 * data.c (Fsetq_default): Doc fix.
21346
21347 * eval.c (Fsetq): Doc fix.
21348
21349 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
21350
21351 * coding.c (Ffind_operation_coding_system):
21352 * eval.c (For, Fand): Doc fixes.
21353 Reported by Johan Bockgård.
21354
21355 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21356
21357 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21358
21359 * xterm.h: Declare x_ewmh_activate_frame.
21360
21361 * xterm.c (x_ewmh_activate_frame): New function.
21362 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21363
21364 2007-07-17 Martin Rudalics <rudalics@gmx.at>
21365
21366 * window.c (Fdisplay_buffer): If largest or LRU window is the
21367 only window, split it even if it is not eligible for splitting.
21368 This restores the original behavior broken by the 2007-07-15
21369 change.
21370
21371 2007-07-17 Glenn Morris <rgm@gnu.org>
21372
21373 * abbrev.c (abbrev_check_chars): New function.
21374 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21375 Call abbrev_check_chars to check abbrev characters are word
21376 constituents. Doc fix.
21377
21378 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21379
21380 * process.c (Fstart_process, Fmake_network_process)
21381 (read_process_output): Fix up last changes.
21382
21383 2007-07-16 Eli Zaretskii <eliz@gnu.org>
21384
21385 * makefile.w32-in (clean): Don't delete *~.
21386
21387 2007-07-16 Andreas Schwab <schwab@suse.de>
21388
21389 * window.c (Fdisplay_buffer): Use NILP.
21390 (Fset_window_scroll_bars): Likewise.
21391
21392 2007-07-15 Martin Rudalics <rudalics@gmx.at>
21393
21394 * window.c (window_min_size_2): New function.
21395 (window_min_size_1, size_window, Fdisplay_buffer)
21396 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21397 windows without mode- or header-lines when window-min-height is
21398 too small.
21399 (size_window): Reset nodelete_p after testing it, following an
21400 earlier note by Kim F. Storm.
21401 (display_buffer): Do not set split_height_threshold to twice the
21402 value of window_min_height to avoid changing the value of a
21403 customizable variable. Rather explicitly check whether the
21404 height of the window that shall be splitted is at least as large
21405 as split_height_threshold.
21406 (Fwindow_full_width_p): New defun.
21407 (syms_of_window): Defsubr it.
21408
21409 * window.h: Add EXFUN for Fwindow_full_width_p.
21410
21411 2007-07-14 Jason Rumney <jasonr@gnu.org>
21412
21413 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21414
21415 2007-07-14 Richard Stallman <rms@gnu.org>
21416
21417 * eval.c (maybe_call_debugger): New function.
21418 (find_handler_clause): Use maybe_call_debugger.
21419 Call it when the handler says `debug'.
21420 Eliminate DEBUGGER_VALUE_PTR.
21421 (Fsignal): Eliminate debugger_value.
21422 (Qdebug): New variable.
21423 (syms_of_eval): Initialize it.
21424
21425 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
21426
21427 * eval.c (Fprogn):
21428 * keyboard.c (Ftrack_mouse):
21429 * print.c (Fwith_output_to_temp_buffer):
21430 * window.c (Fsave_window_excursion): Doc fix.
21431
21432 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21433
21434 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21435
21436 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21437
21438 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21439 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21440 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21441 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21442 Remove unused encoding_carryover.
21443 * process.c: Adjust all functions accordingly.
21444
21445 2007-07-12 Richard Stallman <rms@gnu.org>
21446
21447 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21448
21449 2007-07-11 Jason Rumney <jasonr@gnu.org>
21450
21451 * makefile.w32-in (LIBS): Include OLE32.
21452
21453 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21454 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21455
21456 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21457
21458 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21459 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21460 from a Lisp_Object into a bare pointer.
21461 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21462 Adjust the code correspondingly.
21463
21464 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21465
21466 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21467 (term_show_mouse_face): Remove unused var `j'.
21468 (handle_one_term_event): Remove unused vars `i' and `j'.
21469 Don't cast return value of ttyname since it's not necessary.
21470
21471 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21472
21473 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21474 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21475
21476 * fns.c (map_char_table): Use an array of int for `indices' rather than
21477 an array of Lisp_Objects (which are only ever integers anyway).
21478 (Fmap_char_table): Update caller.
21479 * lisp.h: Update prototype.
21480 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21481 * fontset.c (Ffontset_info):
21482 * casetab.c (set_case_table): Update callers.
21483
21484 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21485
21486 * keymap.c (struct accessible_keymaps_data)
21487 (struct where_is_internal_data): New structures.
21488 (accessible_keymaps_1, where_is_internal_1): Use them to change
21489 interface to adhere to the one used by map_keymap.
21490 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21491 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21492
21493 * keymap.h (map_keymap_function_t): More informative prototype.
21494
21495 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21496
21497 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21498 (looking_at_1): Don't change search_regs and last_thing_searched
21499 if `inhibit-changing-match-data' is non-nil.
21500 (string_match_1, search_buffer, set_search_regs): Likewise.
21501 (syms_of_search): Add Lisp level definition for
21502 `inhibit-changing-match-data' and set it to nil.
21503 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21504 start and end of the match, instead of using values in search_regs.
21505
21506 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21507
21508 * minibuf.c (Fcompleting_read): New value `confirm-only'
21509 for `require-match'.
21510
21511 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21512
21513 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21514 part of the 2007-06-27 change to syms_of_fileio.
21515
21516 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21517
21518 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21519 Check WINDOWP before using XWINDOW. Consolidate return statements.
21520
21521 2007-06-27 Richard Stallman <rms@gnu.org>
21522
21523 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21524
21525 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
21526
21527 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21528
21529 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21530
21531 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21532 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21533 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21534 (_free_internal, memalign): Use them.
21535 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21536 Initialize to PTHREAD_MUTEX_INITIALIZER.
21537 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21538 (morecore_nolock): Rename from morecore. All uses changed.
21539 Use only nolock versions of internal allocation functions.
21540 (_malloc_internal_nolock, _realloc_internal_nolock)
21541 (_free_internal_nolock): New functions created from
21542 _malloc_internal, _realloc_internal, and _free_internal.
21543 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21544 Copy hook value to automatic variable before its use.
21545 (memalign): Copy hook value to automatic variable before its use.
21546
21547 2007-06-26 Kenichi Handa <handa@m17n.org>
21548
21549 * coding.c (Ffind_operation_coding_system): Docstring improved.
21550 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21551
21552 2007-06-25 David Kastrup <dak@gnu.org>
21553
21554 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21555 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21556 cater for additional parameter.
21557
21558 * keymap.h: Adjust number of parameters to `current-active-maps'.
21559
21560 * doc.c (Fsubstitute_command_keys): Adjust call of
21561 `current-active-maps'.
21562
21563 2007-06-25 David Kastrup <dak@gnu.org>
21564
21565 * callint.c (Fcall_interactively): Make the parsing of interactive
21566 specs somewhat more readable.
21567
21568 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21569
21570 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21571 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21572 if extended background has already been filled.
21573
21574 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21575
21576 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21577 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21578
21579 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21580 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21581 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21582 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21583 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21584 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21585 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21586 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21587 Run timers during dialog popup.
21588 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21589
21590 2007-06-21 Jason Rumney <jasonr@gnu.org>
21591
21592 * image.c (convert_mono_to_color_image): Swap fore and background.
21593
21594 2007-06-20 Jason Rumney <jasonr@gnu.org>
21595
21596 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21597 (w32_free_bdf_font): Unmap memory not handle.
21598
21599 2007-06-20 Sam Steingold <sds@gnu.org>
21600
21601 * gmalloc.c (__morecore): Fix the declaration to comply with the
21602 definition.
21603
21604 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
21605
21606 * w32term.c (w32_delete_display): Remove leftover declaration.
21607 (w32_define_cursor, w32_initialize): Make static.
21608
21609 * w32.c (_wsa_errlist): Fix typo in error message.
21610 (init_environment): Ignore any environment variable from the
21611 registry having a null value.
21612
21613 2007-06-20 Glenn Morris <rgm@gnu.org>
21614
21615 * Makefile.in (LIBGIF): Default to -lgif.
21616
21617 2007-06-17 Jason Rumney <jasonr@gnu.org>
21618
21619 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21620 unicode strings.
21621
21622 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
21623
21624 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21625 Fix typo in docstring.
21626
21627 2007-06-16 Eli Zaretskii <eliz@gnu.org>
21628
21629 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21630 and their keybindings.
21631
21632 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
21633
21634 * composite.c (update_compositions): Fix last fix.
21635
21636 2007-06-14 Jason Rumney <jasonr@gnu.org>
21637
21638 * w32.c (get_process_times_fn): New function pointer.
21639 (globals_of_w32): Intialize it if present in kernel32.dll.
21640 (w32_get_internal_run_time): New function.
21641
21642 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21643
21644 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21645
21646 * composite.c (update_compositions): Check the validness of
21647 compositions.
21648
21649 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21650
21651 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21652 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21653
21654 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21655 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21656
21657 * macgui.h (USE_MAC_TOOLBAR): New define.
21658
21659 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21660 Return immediately unless popup is activated.
21661
21662 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21663 background to scroll bar gap.
21664 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21665 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21666 scroll bars on frame edge. Check fringe background extension.
21667 Don't clear extended fringe background area.
21668 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21669 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21670 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21671 [USE_MAC_TOOLBAR]: New macros.
21672 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21673 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21674 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21675 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21676 [USE_MAC_TOOLBAR]: New functions.
21677 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21678 manually if previous repositioning has failed.
21679 (mac_handle_keyboard_event): Use precomputed event kind.
21680 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21681 as tool bar item click. Handle mouse movement over tool bar items.
21682
21683 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21684 toolbar_win_gravity.
21685 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21686 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21687 Add externs.
21688
21689 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21690 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21691
21692 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
21693
21694 * image.c (search_image_cache): Remove unused variable.
21695
21696 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
21697
21698 * xfns.c, xmenu.c: Link to xaw3d if available.
21699
21700 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21701
21702 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21703 frame_foreground and frame_background.
21704
21705 * image.c (lookup_image): Save frame foreground and background colors.
21706 (search_image_cache): Check if saved and current frame colors match.
21707
21708 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21709
21710 * regex.c (regex_compile): Remove the `regnum' counter.
21711 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21712
21713 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21714
21715 * term.c: Include intervals.h to declare Fget_text_property.
21716
21717 2007-06-10 Jason Rumney <jasonr@gnu.org>
21718
21719 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21720
21721 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
21722
21723 * callint.c (Fcall_interactively):
21724 * editfns.c (Fdelete_and_extract_region):
21725 * fileio.c (Fread_file_name):
21726 * fns.c (Fmapconcat):
21727 * keyboard.c (cmd_error_internal):
21728 * keymap.c (Fkey_description):
21729 * lread.c (openp):
21730 * minibuf.c (read_minibuf):
21731 * search.c (wordify):
21732 * sunfns.c (sel_read):
21733 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21734 * xfns.c (x_default_scroll_bar_color_parameter):
21735 * xmenu.c (menu_help_callback):
21736 * xselect.c (Fx_get_atom_name):
21737 * xterm.c (x_term_init): Use empty_unibyte_string.
21738
21739 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21740
21741 * alloc.c (init_strings): Initialize canonical empty strings.
21742 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21743 canonical empty string when the requested size is 0.
21744
21745 * emacs.c (empty_unibyte_string): Rename from empty_string.
21746 (empty_multibyte_string): New canonical empty string.
21747 (syms_of_emacs): Don't initialize empty_string.
21748
21749 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21750 string, if appropriate.
21751 (empty_unibyte_string, empty_multibyte_string): New externs.
21752 (empty_string): Remove extern.
21753
21754 * lread.c (syms_of_lread): Use empty_unibyte_string.
21755
21756 2007-06-07 Jason Rumney <jasonr@gnu.org>
21757
21758 * s/ms-w32.h: Don't define HAVE_TZNAME.
21759
21760 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21761
21762 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21763
21764 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21765
21766 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21767 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21768
21769 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21770 Don't call next handler.
21771 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21772 Remove argument. Install handler to application.
21773 (set_frame_menubar): Don't change deep_p.
21774 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21775 FRAME_OUTER_TO_INNER_DIFF_Y.
21776 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21777 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21778 [HAVE_DIALOGS]: New macros.
21779 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21780 Use them.
21781 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21782
21783 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21784 init_service_handler. All callers changed. Return OSStatus value.
21785
21786 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21787 All callers changed so as not to call SetPortWindowPort.
21788 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21789 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21790 mac_draw_string_common.
21791 (mac_draw_image_string_qd): Likewise.
21792 (mac_draw_string_common): Use them. Add INLINE.
21793 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21794 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21795 GetGlobalMouse.
21796 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21797 and FRAME_OUTER_TO_INNER_DIFF_Y.
21798 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21799 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21800 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21801 repositioning window to mac_handle_window_event.
21802 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21803 saving window location to mac_handle_window_event
21804 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21805 (install_menu_target_item_handler): Remove argument in extern.
21806 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21807 Also accept command events.
21808 (do_keystroke): New function created from XTread_socket.
21809 (init_command_handler): Remove functions.
21810 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21811 and save window location by kEventWindowShowing and kEventWindowHiding
21812 handlers here. Don't call next handler for window state change and
21813 focus events.
21814 (mac_handle_application_event, mac_handle_keyboard_event)
21815 [TARGET_API_MAC_CARBON]: New functions.
21816 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21817 kEventWindowShowing and kEventWindowHiding events. Move installation
21818 of mouse, font, text input and menu target item handlers to
21819 install_application_handler.
21820 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21821 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21822 New function.
21823 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21824 Register it.
21825 (XTread_socket) [TARGET_API_MAC_CARBON]:
21826 Consolidate SendEventToEventTarget calls.
21827 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21828 Move application activation handler to mac_handle_application_event.
21829 Move keyboard handler to mac_handle_keyboard_event.
21830 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21831 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21832 init_command_handler. Call install_application_handler.
21833
21834 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21835 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21836
21837 2007-06-07 Glenn Morris <rgm@gnu.org>
21838
21839 * emacs.c (main): Use `emacs-copyright' in --version output.
21840
21841 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
21842
21843 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21844
21845 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21846
21847 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21848
21849 * macgui.h: Replace WindowPtr with WindowRef.
21850
21851 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21852 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21853 Replace ControlHandle with ControlRef.
21854 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21855
21856 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21857 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21858 Replace ControlHandle with ControlRef.
21859 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21860 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21861
21862 * macterm.h (struct scroll_bar): Rename member control_handle_low
21863 and control_handle_high to control_ref_low and control_ref_high.
21864 All uses changed.
21865 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21866 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21867 respectively. All uses changed.
21868 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21869 (install_window_handler, remove_window_handler): Replace WindowPtr
21870 with WindowRef in externs.
21871
21872 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
21873
21874 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21875
21876 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
21877
21878 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21879
21880 * frame.c (Fmouse_position, Fmouse_pixel_position):
21881 Condition on HAVE_GPM too.
21882
21883 * term.c (term_mouse_highlight): Remove unused variables.
21884 (Fterm_open_connection): Set gpm_zerobased to 1.
21885 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21886 Use zero based co-ordinates.
21887 (handle_one_term_event): Report a drag as mouse movement too.
21888
21889 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21890
21891 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
21892
21893 * image.c (search_image_cache): New function. Require background
21894 color match if background color is unspecified in the image spec.
21895 (uncache_image, lookup_image): Use it.
21896
21897 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
21898
21899 * window.c (Fshrink_window): Reflow docstring.
21900
21901 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
21902
21903 * Version 22.1 released.
21904
21905 2007-06-01 Richard Stallman <rms@gnu.org>
21906
21907 * xfns.c (x_encode_text): Add GCPRO.
21908
21909 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21910
21911 * xfns.c (x_set_name_internal): Save encoded name before
21912 x_encode_text in case string data is relocated.
21913
21914 2007-05-31 Richard Stallman <rms@gnu.org>
21915
21916 * buffer.c (syms_of_buffer): Doc fix.
21917
21918 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
21919
21920 * sysdep.c (init_sys_modes): Add rather than replace with
21921 O_NONBLOCK.
21922
21923 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21924 term_mouse_moveto.
21925
21926 * termhooks.h (term_mouse_moveto): New extern.
21927
21928 * term.c (mouse_face_window): Rename...
21929 (Qmouse_face_window): ...to this.
21930 (term_show_mouse_face, term_clear_mouse_face)
21931 (term_mouse_highlight): Use Qmouse_face_window.
21932 (term_mouse_moveto): New function.
21933 (term_mouse_position): Make it work.
21934 (syms_of_term): Uncomment assignment to mouse_position_hook.
21935 Staticpro Qmouse_face_window.
21936
21937 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21938
21939 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21940 around current_column call.
21941
21942 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21943
21944 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21945 * xdisp.c (next_element_from_buffer):
21946 * window.c (delete_window):
21947 * term.c (term_mouse_highlight):
21948 * msdos.c (getdefdir):
21949 * macterm.c (mac_create_bitmap_from_bitmap_data)
21950 (init_font_name_table):
21951 * fns.c (Fsxhash):
21952 * data.c (Fmake_local_variable):
21953 * ccl.c (ccl_driver): Likewise.
21954
21955 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21956
21957 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21958 Call mac_wakeup_from_rne on window size change.
21959
21960 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
21961
21962 * image.c (uncache_image): Fix typo.
21963
21964 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21965
21966 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21967
21968 2007-05-22 Richard Stallman <rms@gnu.org>
21969
21970 * xterm.c (x_connection_closed): Remove NO_RETURN.
21971
21972 2007-05-22 Martin Rudalics <rudalics@gmx.at>
21973
21974 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21975
21976 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
21977
21978 * image.c (uncache_image): New function.
21979 (Fimage_refresh): New function.
21980
21981 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21982
21983 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21984
21985 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21986
21987 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21988 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21989
21990 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
21991
21992 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21993 conditional on [HAVE_GPM_H].
21994
21995 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21996
21997 * syntax.c (skip_chars): Update syntax-table only after we checked that
21998 the new location is valid.
21999
22000 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22001
22002 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22003 mac_get_window_bounds.
22004
22005 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22006
22007 * Makefile.in (LIBGPM): Allow it to be set from configure.
22008 If set then link Emacs with it.
22009
22010 * config.in: Regenerate.
22011
22012 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22013 New externs.
22014
22015 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22016 Include gpm.h.
22017 (handle_one_term_event, term_gpm): New externs.
22018
22019 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22020 and allow it to be interrupted by SIGIO.
22021
22022 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22023 (wait_reading_process_output): Wait on gpm_fd too.
22024 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22025 (add_gpm_wait_descriptor_called_flag): New variable.
22026 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22027
22028 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22029 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22030 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22031 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22032 (make_lispy_event): Add case GPM_CLICK_EVENT.
22033 (read_avail_input): Handle mouse input.
22034
22035 * term.c (write_glyphs_with_face): New function.
22036 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22037 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22038 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22039 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22040 (last_mouse_x, last_mouse_y): New variables.
22041 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22042 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22043 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22044 (Fterm_close_connection): New functions.
22045 (term_init): Initialise mouse_face_window.
22046
22047 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
22048
22049 * xdisp.c (redisplay_window): If first window line is a
22050 continuation line, recompute the new window start instead of
22051 recentering.
22052
22053 2007-05-18 Glenn Morris <rgm@gnu.org>
22054
22055 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22056 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22057
22058 2007-05-17 Glenn Morris <rgm@gnu.org>
22059
22060 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22061
22062 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22063
22064 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22065 dead key repeat and up events.
22066
22067 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
22068
22069 * image.c (pbm_load): Check image size for monochrome pbm.
22070
22071 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
22072
22073 * xterm.c (XTread_socket): Revert last change.
22074
22075 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
22076
22077 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22078
22079 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22080
22081 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22082
22083 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22084 mixup (YAILOM).
22085
22086 2007-05-07 Andreas Schwab <schwab@suse.de>
22087
22088 * keymap.c (Flookup_key): Fix typo in last change.
22089
22090 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22091
22092 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22093 mapping for unibyte strings.
22094
22095 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22096
22097 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22098 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22099
22100 2007-04-29 Richard Stallman <rms@gnu.org>
22101
22102 * insdel.c (replace_range): For undo, record insertion first.
22103
22104 2007-04-29 Andreas Schwab <schwab@suse.de>
22105
22106 * lisp.h (VECSIZE): Use OFFSETOF.
22107
22108 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22109
22110 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22111 disabled lines.
22112
22113 2007-04-28 Richard Stallman <rms@gnu.org>
22114
22115 * lread.c (read_escape): In a string, \s is always space.
22116
22117 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22118
22119 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22120
22121 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22122 submenu for menu bar items.
22123
22124 See ChangeLog.10 for earlier changes.
22125
22126 ;; Local Variables:
22127 ;; coding: utf-8
22128 ;; add-log-time-zone-rule: t
22129 ;; End:
22130
22131 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
22132
22133 This file is part of GNU Emacs.
22134
22135 GNU Emacs is free software: you can redistribute it and/or modify
22136 it under the terms of the GNU General Public License as published by
22137 the Free Software Foundation, either version 3 of the License, or
22138 (at your option) any later version.
22139
22140 GNU Emacs is distributed in the hope that it will be useful,
22141 but WITHOUT ANY WARRANTY; without even the implied warranty of
22142 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22143 GNU General Public License for more details.
22144
22145 You should have received a copy of the GNU General Public License
22146 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22147
22148 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40