merge emacs-23
[bpt/emacs.git] / src / ChangeLog
CommitLineData
9fa82824
DP
12010-10-13 Damyan Pepper <damyanp@gmail.com>
2
3 Fix handling of font properties on Windows (bug#6303).
4 * font.c (font_filter_properties): New function, refactored from
5 ftfont_filter_properties.
6 * font.h (font_filter_properties): Declare.
7 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
8 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
9 (w32font_filter_properties): New function.
10 (w32font_driver): Add w32font_filter_properties.
11
51e4f4a8
JB
122010-10-12 Juanma Barranquero <lekktu@gmail.com>
13
c0943d3d 14 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
15 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
16
a2e35ef5
JD
172010-10-10 Jan Djärv <jan.h.d@swipnet.se>
18
19 * nsterm.m (Qleft): Declare.
20 (ns_right_alternate_modifier): New variable
21 (NSRightAlternateKeyMask): New define.
22 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
23 ns_right_alternate_modifier isn't Qleft.
24 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
25 as emacs modifier for NSRightAlternateKeyMask.
26 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
27
2e828c79
MA
282010-10-08 Michael Albinus <michael.albinus@gmx.de>
29
30 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
31 (xd_pending_messages): Catch xd_get_dispatch_status calls.
32
93d50df8
KH
332010-10-08 Kenichi Handa <handa@m17n.org>
34
2b7c9342 35 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 36
a79b0f28
MA
372010-10-03 Michael Albinus <michael.albinus@gmx.de>
38
39 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
40 (Fdbus_init_bus): ... here. (Bug#7113)
41
7b2bf907
GM
422010-10-03 Glenn Morris <rgm@gnu.org>
43
44 * buffer.c (before-change-functions, after-change-functions):
45 Three-year overdue doc fix following 2007-08-13 change.
46
1911a33b
KH
472010-10-02 Kenichi Handa <handa@m17n.org>
48
49 * coding.c (coding_inherit_eol_type): If parent doesn't specify
50 eol-format, inherit from the system's default.
51 (complement_process_encoding_system): Make a new coding system
52 inherit the original eol-format.
53
fcaf8878
KH
542010-09-30 Kenichi Handa <handa@m17n.org>
55
56 * coding.c (complement_process_encoding_system): New function.
57
58 * coding.h (complement_process_encoding_system): Extern it.
59
60 * callproc.c (Fcall_process): Complement the coding system for
61 encoding arguments.
62 (Fcall_process_region): Complement the coding system for encoding
63 the input to the process.
64
65 * process.c (Fstart_process): Complement the coding system for
66 encoding arguments.
67 (send_process): Complement the coding system for encoding what
68 sent to the process.
69
18acb5ad
KH
702010-09-29 Kenichi Handa <handa@m17n.org>
71
72 * xfont.c (xfont_open): Fix setting of font->average_width from
73 :avgwidth property (Bug#7123).
74
dec83468
MA
752010-09-28 Michael Albinus <michael.albinus@gmx.de>
76
77 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
78 is more portable.
79
80 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
81 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
82 has not defined SIGIO.
83
e0720500
MA
842010-09-27 Michael Albinus <michael.albinus@gmx.de>
85
11a5af7c 86 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
87 (Bug#7113)
88
42d3022b
J
892010-09-26 Jan Djärv <jan.h.d@swipnet.se>
90
91 * xgselect.c (xg_select): Clear file descriptors not set from
92 rfds and wfds.
93
fbb3da77
SM
942010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
95
96 * syntax.c (back_comment): Detect the case where a 1-char comment
97 starter is also the 2nd char of a 2-char comment ender.
98
2b5b82db
J
992010-09-17 Jan Djärv <jan.h.d@swipnet.se>
100
101 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
102
5f61a25c
J
1032010-09-12 Jan Djärv <jan.h.d@swipnet.se>
104
105 * xterm.c (get_current_vm_state): New function.
106 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
107 want_fullscreen so set_wm_state calls are few (Bug#7013).
108 (x_handle_net_wm_state): Move code to get_current_vm_state and
109 call that function.
110
65c92e31 1112010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
112
113 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
114
a552b35a
KH
1152010-09-08 Kenichi Handa <handa@m17n.org>
116
117 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
118 we may use designation or locking-shift.
119
396475b7
KH
1202010-09-07 Kenichi Handa <handa@m17n.org>
121
122 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
123 sequence when the source is multibyte.
124
d419e1d9
KH
1252010-08-31 Kenichi Handa <handa@m17n.org>
126
127 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
128 characters.
129
130 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
131 (produce_glyphs): Don't set it->char_to_display here.
132 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
133 (produce_special_glyphs): Set temp_it.char_to_display before
134 calling produce_glyphs.
135
136 * xdisp.c (get_next_display_element): Set it->char_to_display
137 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
138 characters.
139 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
140 calling PRODUCE_GLYPHS.
141 (append_space_for_newline): Save and store it->char_to_display.
142 Set it->char_to_display before calling PRODUCE_GLYPHS.
143 (extend_face_to_end_of_line): Set it->char_to_display before
144 calling PRODUCE_GLYPHS.
145 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
146 character to its byte value.
147 (get_char_glyph_code): New function.
148 (produce_stretch_glyph): Set it2.char_to_display too before
149 calling x_produce_glyphs.
150 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
151 non-ASCII characters. Don't set it->char_to_display here.
152 Don't handle unibyte-display-via-language-environment here. For a
c0943d3d 153 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 154
769ae9e1
KH
1552010-08-29 Kenichi Handa <handa@m17n.org>
156
157 * term.c (encode_terminal_code): Encode byte chars to the
158 correspnding bytes.
159
b72e0717
AS
1602010-08-17 Andreas Schwab <schwab@linux-m68k.org>
161
162 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
163 instead of SAFE_ALLOCA.
164
3a7a9129
CY
1652010-08-17 Chong Yidong <cyd@stupidchicken.com>
166
167 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
168 (Bug#6214).
169
983b8302
J
1702010-08-14 Jan Djärv <jan.h.d@swipnet.se>
171
172 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
173
7d1b9df3
J
1742010-08-13 Jan Djärv <jan.h.d@swipnet.se>
175
176 * doc.c (Fsnarf_documentation): Initialize skip_file before
177 build-files test.
178
2294b255
PG
1792010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
180
65b3d997
A
181 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
182 New definitions.
2294b255
PG
183 (HAVE_TERMIO): Remove.
184
7a84eee5
KH
1852010-08-06 Kenichi Handa <handa@m17n.org>
186
187 * charset.c: Include <stdlib.h>
188 (struct charset_sort_data): New struct.
189 (charset_compare): New function.
c0943d3d 190 (Fsort_charsets): New function.
7a84eee5
KH
191 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
192
193 * coding.c (decode_coding_iso_2022): Fix checking of dimension
194 number in CTEXT extended segment.
195
f5f6c0e0
JB
1962010-08-01 Juanma Barranquero <lekktu@gmail.com>
197
198 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
199 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
200
b756c005
JB
2012010-07-30 Juanma Barranquero <lekktu@gmail.com>
202
203 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
204 (Fhash_table_size): Fix typos in docstrings.
205 (Fmake_hash_table): Doc fix.
206
b4f588fa
JB
2072010-07-28 Juanma Barranquero <lekktu@gmail.com>
208
209 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
210 Doc fix (bug#5625).
211
9f8c08a7
KB
2122010-07-27 Ken Brown <kbrown@cornell.edu>
213
214 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
215 the MSDOS definition.
216
a2a0d36b
CS
2172010-07-25 Christoph Scholtes <cschol2112@gmail.com>
218
219 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
220
a77cfeaf
CS
2212010-07-22 Christoph Scholtes <cschol2112@gmail.com>
222
223 * window.c (Fwindow_height): Doc fix (bug#6518).
224
14fb5704
JB
2252010-07-21 Juanma Barranquero <lekktu@gmail.com>
226
227 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
228
499322ce
J
2292010-07-17 Jan Djärv <jan.h.d@swipnet.se>
230
231 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
232 is related to the menu bar (Bug#6499).
233
b78f9767
J
2342010-07-14 Jan Djärv <jan.h.d@swipnet.se>
235
236 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
237
238 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
239
240 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
241 i.e. don't put back ButtonRelease (Bug#6608).
242
243 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
244 instead of Window. Call xg_event_is_for_menubar when
245 USE_GTK (Bug#6499).
246
247 * gtkutil.h (xg_event_is_for_menubar): Declare.
248
249 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
250
1f60c16a
EZ
2512010-07-14 Eli Zaretskii <eliz@gnu.org>
252
253 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
254 when it's the same as the old foreground. (Bug#6609)
255
7c33a057
CY
2562010-07-10 Chong Yidong <cyd@stupidchicken.com>
257
258 * xfaces.c (realize_face): Garbage the frame if a face is removed
259 (Bug#6593).
260
9d70a3fc
AS
2612010-07-05 Andreas Schwab <schwab@linux-m68k.org>
262
263 * keyboard.c: Remove duplicate <setjmp.h>.
264 (read_key_sequence): Remove volatile qualifiers.
265
5a874e95
YM
2662010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
267
268 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
269 (struct glyph_row): New members left_fringe_offset and
270 right_fringe_offset.
271
272 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
273 specially.
274 * w32term.c (w32_draw_fringe_bitmap): Likewise.
275 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
276
277 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
278 Take account of bitmap offset.
279 (draw_window_fringes): Take account of window vscroll.
280 (update_window_fringes): Likewise. Extend top-aligned top indicator
281 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
282 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
283 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
284
0682186e
JB
2852010-07-04 Juanma Barranquero <lekktu@gmail.com>
286
287 * w32fns.c (Qtooltip): Declare.
288 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
289
ad3e6f44
J
2902010-07-03 Jan Djärv <jan.h.d@swipnet.se>
291
292 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
293 grab on just Press (Bug#6499).
294
54ee7410
CY
2952010-07-02 Chong Yidong <cyd@stupidchicken.com>
296
297 * frame.c (Qtooltip): New var.
298 (delete_frame): Use it. Fix faulty if statement. Don't update
299 mode line for tooltip frames. Suggested by Martin Rudalics.
300
301 * xfns.c (x_create_tip_frame):
302 * w32fns.c (x_create_tip_frame): Use it.
303
3d8416fc
NA
3042010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
305
306 * xftfont.c (xftfont_open): Check font width one by one also when
307 spacing is dual.
308
309 * ftfont.c (ftfont_open): Ditto.
310
b1feb9b4
AS
3112010-06-26 Andreas Schwab <schwab@linux-m68k.org>
312
313 * alloc.c (Fmake_byte_code): Don't access undefined argument
314 (Bug#6517).
315
c7dd9743
CY
3162010-06-25 Chong Yidong <cyd@stupidchicken.com>
317
318 * xdisp.c (next_element_from_image): Ensure that after-strings are
319 read the next time we hit handle_stop (Bug#1336).
320
5721b4ed
AS
3212010-06-23 Andreas Schwab <schwab@linux-m68k.org>
322
323 * lread.c (read1): Signal error if #s is not followed by paren.
324
277c5f18
CY
3252010-06-19 Chong Yidong <cyd@stupidchicken.com>
326
52ab9bb2
CY
327 * image.c (free_image): Mark frame as garbaged (Bug#6426).
328
277c5f18
CY
329 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
330
6fda6a0c
GM
3312010-06-15 Glenn Morris <rgm@gnu.org>
332
333 * editfns.c (Fbyte_to_string): Pacify compiler.
334
e454a4a3
SM
3352010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
336
337 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
338 Check `object's type before accessing its guts.
339
657d4c0b
AS
3402010-06-08 Andreas Schwab <schwab@linux-m68k.org>
341
342 * minibuf.c (Fall_completions): Add more checks.
343
9b27fd9f
JB
3442010-06-08 Juanma Barranquero <lekktu@gmail.com>
345
346 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
347
0eb7675e
AS
3482010-06-03 Andreas Schwab <schwab@linux-m68k.org>
349
350 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 351 address. (Bug#6346)
0eb7675e 352
78edd3b7
JB
3532010-06-03 Juanma Barranquero <lekktu@gmail.com>
354
355 * ccl.c (Fccl_program_p): Fix typo in docstring.
356
1ab8293c
SM
3572010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
358
359 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
360 of bug#6305).
361
5ca3929b
CY
3622010-05-27 Chong Yidong <cyd@stupidchicken.com>
363
364 * xdisp.c (redisplay_window): After redisplay, check if point is
365 still valid before setting it (Bug#6177).
366
f5b416d2 3672010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
368
369 * s/netbsd.h: If terminfo is found, use it in preference to
370 termcap. (Bug#6190) [Backport from trunk]
371
aeb77d46
CY
3722010-05-20 Kevin Ryde <user42@zip.com.au>
373
374 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
375 (Voverriding_terminal_local_map, Vsystem_key_alist)
376 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
377
c3bb441d
SM
3782010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
379
380 * editfns.c (Fbyte_to_string): New function.
381
754790b6
CY
3822010-05-18 Chong Yidong <cyd@stupidchicken.com>
383
384 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
385 prevent stack overflow if number of arguments is too large
386 (Bug#6214).
387
c8670ded
EZ
3882010-05-11 Eli Zaretskii <eliz@gnu.org>
389
390 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
391
392 * w32fns.c: Include w32.h.
393 (Fw32_shell_execute): Decode the error message before passing it
394 to `error'. (Bug#6126)
395
3ffd4615 3962010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
397
398 * ftfont.c: Fix incorrect parentheses of #if condition for
399 definining M17N_FLT_USE_NEW_FEATURE.
400
61a808e8
CY
4012010-05-07 Chong Yidong <cyd@stupidchicken.com>
402
403 * Version 23.2 released.
404
5dcde606
AS
4052010-04-30 Andreas Schwab <schwab@linux-m68k.org>
406
407 * composite.c (autocmp_chars): Save point as marker before calling
408 auto-composition-function (Bug#5984).
409
410 * lisp.h (restore_point_unwind): Add prototype.
411
412 * fileio.c (restore_point_unwind): Remove static attribute.
413
c4170e32
KH
4142010-04-23 Kenichi Handa <handa@m17n.org>
415
416 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
417 new feature of libotf and m17n-flt.
65b3d997
A
418 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
419 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
420 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
421 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
422 that OUT is NULL. Use OTF_drive_gsub_with_log and
423 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
424 OTF_drive_gpos.
425 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
426 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
427 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 428
e42cd1a7
JB
4292010-04-19 Juanma Barranquero <lekktu@gmail.com>
430
431 * dired.c (Ffile_attributes): Fix typo in docstring.
432
79353a53
AR
4332010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
434
435 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
436 NSInteger (Bug#5811).
437
658b9b93
YM
4382010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
439
440 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
441 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
442
16009a0e
YM
4432010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
444
445 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
446
f016f225
JD
4472010-04-07 Jan Djärv <jan.h.d@swipnet.se>
448
449 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
450 FRAME_LINE_TO_PIXEL_Y.
451
452 * xterm.c (x_set_window_size_1): Don't add border_width/height to
453 pixelwidth/height.
454
84257d93
CY
4552010-04-05 Chong Yidong <cyd@stupidchicken.com>
456
457 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
458 terminal frames (Bug#5837).
459
95b1abcf
CY
4602010-03-31 Chong Yidong <cyd@stupidchicken.com>
461
462 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
463 * nsterm.h: Fix prototype.
464
4a217bed
EZ
4652010-03-31 Eli Zaretskii <eliz@gnu.org>
466
467 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
468 in this function. (Bug#5703)
469
4f103e04
CY
4702010-03-31 Chong Yidong <cyd@stupidchicken.com>
471
472 * nsterm.h: Fix last change.
473
a6d676d9
CY
4742010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
475
476 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
477
67fee863
JD
4782010-03-30 Jan Djärv <jan.h.d@swipnet.se>
479
480 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
481 invisible (Bug#5766).
482
9ae6e189
CY
4832010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
484
485 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
486 HAVE_NS conditionals.
194d44e7 487 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
488
489 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
490 filename for the title.
491 (ns_set_doc_edited): Do nothing if the selected window is a
492 minibuffer window.
493
494 * nsterm.h: Add prototypes for ns_set_name_as_filename and
495 ns_set_doc_edited.
496
497 * nsterm.m: Remove unneeded prototype.
498
25c72475
GM
4992010-03-28 Glenn Morris <rgm@gnu.org>
500
501 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
502 in the DOC file. (Bug#5336)
503
f79a01db
CY
5042010-03-24 Chong Yidong <cyd@stupidchicken.com>
505
506 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
507
93318cbd
JD
5082010-03-20 Jan Djärv <jan.h.d@swipnet.se>
509
510 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
511
512 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
513
514 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
515
ad13a3ee
YM
5162010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
517
518 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
519 XLoadQueryFont.
520
fbdc1721
KH
5212010-03-16 Kenichi Handa <handa@m17n.org>
522
523 * coding.c (decode_coding_ccl): Fix previous change for the
524 multibyte case.
fb608df3
KH
525 (encode_coding_ccl): Don't setup ccl program here. Fix for the
526 case that the output buffer is fullfilled.
527 (encode_coding): Setup ccl program here.
fbdc1721 528
35cd7cd6
CY
5292010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
530
531 * editfns.c (Fformat): Account for string precision when computing
532 field width (Bug#5710).
533
618db430
SM
5342010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
535
c0335e02
SM
536 Make it possible to C-g in a tight bytecode loop again (bug#5680).
537 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
538 (QUIT): Use it to consolidate code and remove redundancy.
539 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
540
254c06a8
SM
541 * regex.c (regex_compile): Setup gl_state as well.
542
618db430
SM
543 * syntax.c (skip_chars): Setup gl_state (bug#3823).
544 (in_classes): Use CONSP before XCAR/XCDR.
545
233f0c9f
CY
5462010-03-03 Chong Yidong <cyd@stupidchicken.com>
547
548 * keymap.c (Fwhere_is_internal): Use Fequal to compare
549 definitions, so that keyboard macros are correctly handled
550 (Bug#5481).
551
75f80e63
EZ
5522010-03-02 Eli Zaretskii <eliz@gnu.org>
553
554 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
555 text that could be relocated inside the call to emacs_mule_char.
556 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
557 (CODING_DECODE_CHAR): Add a comment describing its purpose.
558
dcfb9bc4
KH
5592010-03-02 Kenichi Handa <handa@m17n.org>
560
fc9a17bc
KH
561 * character.c (parse_str_as_multibyte): Fix handling of the
562 multibyte form of raw-bytes.
563 (str_as_multibyte): Likewise.
564
dcfb9bc4
KH
565 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
566 form of raw-bytes.
567
412c01b6
CY
5682010-02-28 Chong Yidong <cyd@stupidchicken.com>
569
570 * charset.c (load_charset_map_from_file)
571 (load_charset_map_from_vector): Zero out allocated
572 charset_map_entries before using them.
573
df7e1ea0
AS
5742010-02-27 Andreas Schwab <schwab@linux-m68k.org>
575
576 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
577
fe69a722
CY
5782010-02-27 Chong Yidong <cyd@stupidchicken.com>
579
4ed28cf4
CY
580 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
581 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 582
7379cfce
KH
5832010-02-26 Kenichi Handa <handa@m17n.org>
584
f88cc4d6
KH
585 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
586
7379cfce
KH
587 * xdisp.c (reseat_to_string): Fix previous change.
588
cf2fdcfb
CY
5892010-02-26 David Reitter <david.reitter@gmail.com>
590
591 * nsfont.m (nsfont_draw): ns_antialias_text should be a
592 Lisp_Object (Bug#4736).
593
cc6c7c75
KH
5942010-02-25 Kenichi Handa <handa@m17n.org>
595
596 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
597
32e737d7
JD
5982010-02-24 Jan Djärv <jan.h.d@swipnet.se>
599
600 * xterm.c (XTflash): Move declarations before statements.
601
602 * gtkutil.c (xg_get_gdk_display): Remove (unused).
603 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
604 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
605 (xg_create_tool_bar): Remove unused variables.
606 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 607 (xg_create_frame_widgets): Remove variable grav.
32e737d7 608
676cae9f
CY
6092010-02-21 Chong Yidong <cyd@stupidchicken.com>
610
611 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
612
886cc2b8
SM
6132010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
614
615 * term.c (fatal): Add a final \n if needed (bug#5596).
616
ddb2d8e2
CY
6172010-02-18 Chong Yidong <cyd@stupidchicken.com>
618
619 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
620
2a4f8d3d
GM
6212010-02-18 Glenn Morris <rgm@gnu.org>
622
623 * callint.c (Finteractive): Doc fix.
624
ebaf11b6
KH
6252010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
626
886cc2b8
SM
627 * coding.c (record_conversion_result):
628 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
629 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
630 memory allocation error.
631
d0396581
KH
6322010-02-17 Kenichi Handa <handa@m17n.org>
633
886cc2b8
SM
634 * coding.c (decode_coding_ccl): Don't setup ccl program here.
635 Fix for the case that the output buffer is fullfilled.
d0396581
KH
636 (decode_coding): Setup ccl program here. Keep looping when the
637 decoder stopped because the output buffer is
638 fullfilled (bug#5534).
639
640 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
641
98599f74
JD
6422010-02-13 Jan Djärv <jan.h.d@swipnet.se>
643
471e4f04 644 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 645 bug #5571.
886cc2b8 646 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 647 overdrawn.
98599f74 648
182659ae
JD
6492010-02-10 Jan Djärv <jan.h.d@swipnet.se>
650
651 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
652 doing_interact here.
653 (ice_connection_closed): New function.
654 (x_session_check_input, smc_die_CB, ice_io_error_handler)
655 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
656 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
657 returns I/O error.
658 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
659 bug #5512.
660
9be32c4e 6612010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
662
663 * nsfont.m (nsfont_open): The system's value for the font descent
664 is negative, so round it down to avoid clipping.
665
a2f3eb19
CY
6662010-02-06 Chong Yidong <cyd@stupidchicken.com>
667
668 * charset.c (load_charset_map_from_file)
669 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 670 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 671
3088147c
CY
6722010-02-05 Chong Yidong <cyd@stupidchicken.com>
673
674 * charset.c (load_charset_map_from_file): Allocate large
675 charset_map_entries structure on the heap rather than the stack.
676 (Bug#5526).
677
b57d9029
KH
6782010-01-31 Kenichi Handa <handa@m17n.org>
679
680 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 681 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 682
c67d885b
CY
6832010-01-31 Chong Yidong <cyd@stupidchicken.com>
684
685 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
686 <deactivated@gmail.com> (Bug#3605).
687
8fab2362
CY
6882010-01-31 David De La Harpe Golden <david@harpegolden.net>
689
690 * fileio.c (Frename_file): Correctly rename symlinks to
691 directories (Bug#5496).
692
cb2a62f2
CY
6932010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
694
695 * nsterm.m (ns_ring_bell): Handle visible bell like X.
696
944c7a26
AS
6972010-01-30 Andreas Schwab <schwab@linux-m68k.org>
698
699 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
700
c024ac08
CY
7012010-01-29 Chong Yidong <cyd@stupidchicken.com>
702
703 * frame.c (DEFAULT_ROWS): Change default to 35.
704
705 * xfns.c (x_default_font_parameter): Change default XFT font to
706 monospace-10 (Bug#3643).
707
af93af83
EZ
7082010-01-29 Eli Zaretskii <eliz@gnu.org>
709
710 * w32inevt.c (key_event): Remove unnecessary comparison of
711 event->uChar.AsciiChar with 128.
712
ca0eb708
CY
7132010-01-28 Chong Yidong <cyd@stupidchicken.com>
714
b242dbfc
CY
715 * fileio.c (Frename_file): Fix last change (Bug#5487).
716
ca0eb708
CY
717 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
718
719 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
720
45d45af5
JD
7212010-01-28 Jan Djärv <jan.h.d@swipnet.se>
722
723 * xfns.c (Fx_create_frame): Remove window size matching code from
724 2010-01-15.
a73f9c9d 725 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 726
7e233730
JR
7272010-01-27 Jason Rumney <jasonr@gnu.org>
728
729 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 730 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 731
86e893e3
KH
7322010-01-27 Kenichi Handa <handa@m17n.org>
733
734 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 735 pattern string (Bug#4209).
86e893e3 736
8719abec
CY
7372010-01-27 David De La Harpe Golden <david@harpegolden.net>
738
739 * fileio.c (Frename_file): Call copy-directory and
740 delete-directory for directories, in order to handle cross-device
741 renaming (Bug#3353).
742
844794c8
JD
7432010-01-25 Jan Djärv <jan.h.d@swipnet.se>
744
aa3e13b5 745 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 746 sizes 24 and 10. Bug #3643.
844794c8 747
bd4b5750
SM
7482010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
749
8dc1adf6 750 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
751 * keymap.c (shadow_lookup): Add `remap' arg.
752 (describe_map, describe_vector): Update calls to shadow_lookup.
753 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
754 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
755 perform remapping during shadow_lookup check of remapped_sequences.
756
285d07e2
CY
7572010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
758
759 * image.c (png_load): Use png_sig_cmp instead of the obsolete
760 png_check_sig, which has been removed in libpng 1.4.
761
c6d09b8d
CY
7622010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
763
764 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
765 lacks this header file).
766
3d782998
YM
7672010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
768
769 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
770 as in Emacs 22.
771
2aff7c53
YM
7722010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
773
774 * lisp.h (make_pure_string): String pointer arg now points to const.
775
776 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
777 args now point to const.
778
74327f7a
EZ
7792010-01-22 Eli Zaretskii <eliz@gnu.org>
780
781 * lread.c (Fload): Don't treat files without .elc extension as
782 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
783 them. (bug#5303)
784
4d1e6632
KH
7852010-01-20 Kenichi Handa <handa@m17n.org>
786
787 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
788 treat the source as actual byte sequence.
789
1fdede8f
AM
7902010-01-19 Alan Mackenzie <acm@muc.de>
791
792 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 793 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
794 `signal_after_change_p' to `coherent_change_p', and make the
795 invocation of `modify_region' conditional on it.
796
67477f30
JD
7972010-01-19 Jan Djärv <jan.h.d@swipnet.se>
798
799 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
800 for debug purpose.
801 (syms_of_xsettings): Declare xft-settings.
802
244b023e
CY
8032010-01-18 Chong Yidong <cyd@stupidchicken.com>
804
805 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
806
617364fe
CY
8072010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
808
809 * xterm.c (event_handler_gdk): Block input (Bug#5037).
810
4fe22cdf
CY
8112010-01-16 Chong Yidong <cyd@stupidchicken.com>
812
813 * emacs.c (standard_args): Adjust arg priorities to reflect how
814 they are processed in startup.el.
815
e118d2be
AS
8162010-01-16 Andreas Schwab <schwab@linux-m68k.org>
817
818 * Makefile.in (lisp, shortlisp): Update.
819
523ae620
SM
8202010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
821
822 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
823 code, link the new kboard into all_kboard before running Lisp code,
824 and protect the new terminal with GCPRO (Bug#5365).
825 (x_term_init): Remove unused var `atom'.
826 (x_delete_display, x_delete_terminal): Remove unused var `i'.
827
f0d13888
JD
8282010-01-15 Jan Djärv <jan.h.d@swipnet.se>
829
830 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
831 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
832 to find out usable size of the desktop. Don't make frames larger than
ac146f82 833 this. Bug #3643.
f0d13888 834
cc320f07
KH
8352010-01-15 Kenichi Handa <handa@m17n.org>
836
837 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
838
7ffdf101
CY
8392010-01-15 Chong Yidong <cyd@stupidchicken.com>
840
841 * nsterm.m (Qnone): Define.
842
843 * nsfns.m (Qnone): Move definition to nsterm.m.
844
d12bd917
KH
8452010-01-14 Kenichi Handa <handa@m17n.org>
846
847 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
848 systems.
849
d9a7c140
KH
8502010-01-14 Kenichi Handa <handa@m17n.org>
851
852 Make auto-composition work on all buffers even if they are
853 fundamental mode.
854
855 * composite.c (Vauto_composition_mode): New variable.
856 (composition_compute_stop_pos): Check Vauto_composition_mode
857 instead of Vauto_composition_function.
858 (composition_adjust_point, Ffind_composition_internal): Likewise.
859 (syms_of_composite): Declare Lisp variable
860 "auto-composition-mode" here.
861
63286bb2
CY
8622010-01-13 Chong Yidong <cyd@stupidchicken.com>
863
864 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
865 during call to vendor-specific-keysyms (Bug#5365).
866
c2623ee7
YM
8672010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
868
869 * keyboard.c (input_available_signal) [SYNC_INPUT]:
870 Call SIGNAL_THREAD_CHECK (Bug#5333).
871
872 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
873 Call SIGNAL_THREAD_CHECK.
874
0b5397c2
SM
8752010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
876
877 Try to fix bug#5314. This is probably not the final word, tho.
878 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
879 recent-auto-save-p as a side-effect.
880 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
881 * buffer.c (Fkill_buffer, reset_buffer):
882 * editfns.c (Fsubst_char_in_region):
883 * fileio.c (Finsert_file_contents, Fdo_auto_save)
884 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
885
dc954cb2
KH
8862010-01-13 Kenichi Handa <handa@m17n.org>
887
888 Display buffer name, etc. in mode line by composing correctly.
889
890 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
891 STRING is not nil.
0b5397c2 892 (display_mode_element): Adjust for the change of
dc954cb2
KH
893 decode_mode_spec and display_line.
894 (decode_mode_spec): Change arg MULTIBYTE to STRING.
895 (display_string): Handle the case that STRING is non-null and
896 LISP_STRING is not nil.
897
0b5397c2
SM
898 * xterm.c (x_draw_composite_glyph_string_foreground):
899 Pay attention to s->face->overstrike.
dc954cb2
KH
900
901 * composite.c (composition_reseat_it): Don't check PT if STRING is
902 non nil.
903
4a00eaca
YM
9042010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
905
906 * keyboard.c (read_char): Don't apply previous change when current
907 buffer is unchanged by command execution.
908
60abb287
JD
9092010-01-12 Jan Djärv <jan.h.d@swipnet.se>
910
911 * keyboard.c (read_char): Return after executing from special map.
912
893db5bc
GM
9132010-01-12 Glenn Morris <rgm@gnu.org>
914
915 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
916 bug-gnu-emacs rather than emacs-pretest-bug.
917
4d03ece0
CY
9182010-01-11 Chong Yidong <cyd@stupidchicken.com>
919
920 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
921 initializing the Lisp variables that depend on them.
922
1df47e38
YM
9232010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
924
925 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
926 Clear areas that will not be updated after change of menu bar lines.
927 Clear the menu bar window's current matrix when the window gets empty.
928
2f1c6384
CY
9292010-01-09 Chong Yidong <cyd@stupidchicken.com>
930
e398c61c
CY
931 * intervals.h, textprop.c (extend_property_ranges): Return value
932 and args changed. Discard properties that begin at or after the
933 new end (Bug#5306).
934
935 * editfns.c (Fformat): Caller changed.
936
e5a29a10
CY
937 * nsterm.m (ns_set_default_prefs): Delete function.
938 (syms_of_nsterm): Initialize ns_command_modifier,
939 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
940 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
941
2f1c6384
CY
942 * xdisp.c (pos_visible_p): Check for invisible text at the correct
943 position (Bug#4040).
944
d427a9fa
EZ
9452010-01-09 Eli Zaretskii <eliz@gnu.org>
946
947 * editfns.c (Ffloat_time): Doc fix.
948
21b9df2f
JD
9492010-01-09 Jan Djärv <jan.h.d@swipnet.se>
950
951 * xfns.c (Fx_create_frame): Don't create frame larger than display
952 by default bug#3643.
953
4b00d3b1
YM
9542010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
955
956 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
957 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
958 windows above internal border.
959
960 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
961 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
962 windows above internal border.
963
964 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
965 tool bar windows specially.
966
967 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
968
969 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
970 specially.
971 (XTflash): Take account of menu bar height.
972
973 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
974 specially.
975
5075d853
JD
9762010-01-08 Jan Djärv <jan.h.d@swipnet.se>
977
ac146f82 978 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
979 also be true before we can return early (bug #5339).
980
474217c8
CY
9812010-01-06 David Reitter <david.reitter@gmail.com>
982
983 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
984 (Fns_display_usable_bounds): Rewrite, computing bounds properly
985 (Bug#3233).
986
c0e6d47d
JD
9872010-01-06 Jan Djärv <jan.h.d@swipnet.se>
988
d0cf45b7
JD
989 * font.c (font_open_entity): Enable chache and call cached_font_ok
990 for the driver if defined.
991 (QCuser_spec): New symbol.
992 (font_spec_from_name): Save name as user-spec.
993 (font_load_for_lface): Keep user-spec instead of name.
994 (font_open_by_name): Save name as user-spec.
995 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 996 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
997
998 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
999 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1000 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1001
1002 * font.h (struct font_driver): Add cached_font_ok.
1003
c0e6d47d
JD
1004 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1005
7c583cd8
JD
10062010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1007
1008 * xterm.c (x_new_font): Move code for setting rows/cols before
1009 resizing ...
ac146f82 1010 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1011
1012 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1013 (xg_frame_resized, xg_frame_set_char_size):
1014 Call xg_clear_under_internal_border.
7c583cd8 1015 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1016
03f77f0a
CY
10172010-01-05 Chong Yidong <cyd@stupidchicken.com>
1018
1019 * keyboard.c (read_key_sequence): Catch keyboard switch after
1020 making a new tty frame (Bug#5095).
1021
2a1ef5be
KH
10222010-01-05 Kenichi Handa <handa@m17n.org>
1023
1024 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1025
e3eb1dae
SM
10262010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1027
1028 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1029 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1030 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1031
777013f2
MA
10322010-01-03 Michael Albinus <michael.albinus@gmx.de>
1033
1034 * dbusbind.c (xd_add_watch): Improve debug message.
1035 (xd_remove_watch): Improve debug message. If DATA is the session
1036 bus, unset D-Bus session environment.
1037 (Fdbus_init_bus): Pass the bus as argument to
1038 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1039
8932b1c2
CY
10402010-01-01 Chong Yidong <cyd@stupidchicken.com>
1041
87231e2c
CY
1042 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1043
4801c5fa
CY
1044 * lread.c (syms_of_lread): Make it clearer that these are the
1045 names of loaded files (Bug#5068).
1046
8932b1c2
CY
1047 * eval.c (run_hook_with_args): Handle the case where the global
1048 value has the obsolete single-function form (Bug#5026).
1049
11e3c684
CY
10502009-12-27 Chong Yidong <cyd@stupidchicken.com>
1051
1052 * minibuf.c (Fall_completions): Minor optimization.
1053
5b28ce35
EZ
10542009-12-26 Eli Zaretskii <eliz@gnu.org>
1055
5ce6e4f4
JB
1056 * .gdbinit (pgx): Fix display of composite glyphs.
1057 Display cmp.from and cmp.to as well.
1058 (pitx): Fix last change.
5b28ce35 1059
bcffff46
KH
10602009-12-25 Kenichi Handa <handa@m17n.org>
1061
1062 * composite.h (composition_adjust_point): Update prototype.
1063
1064 * composite.c (composition_reseat_it): Don't make a composition
1065 spanning over point.
1066 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1067 composable characters.
1068 (composition_adjust_point): New arg NEW_PT. Callers changed.
1069
1070 * keyboard.c (command_loop_1): Force redisplay if the last point
1071 was within a composition.
1072 (adjust_point_for_property): Don't adjust point for automatic
1073 composition when called after buffer modification.
1074
3f670e9a
EZ
10752009-12-19 Eli Zaretskii <eliz@gnu.org>
1076
5ce6e4f4
JB
1077 * .gdbinit (pitx): Don't use enum names, use their values.
1078 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1079 (pgx): Don't use enum names, use their values.
1080 (pitmethod): New helper command.
1081 (pitx): Use it to display iteration method.
1082 (pgrowit): New command.
1083
ad903955
EZ
1084 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1085
3f670e9a
EZ
1086 Update dependencies in Makefile.in.
1087
1088 * Makefile.in (alloc.o): Depend on termhooks.h.
1089 (atimer.o): Depend on blockinput.h.
1090 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1091 and frame.h.
1092 (callint.o): Depend on systime.h, coding.h, and composite.h.
1093 (callproc.o): Depend on buffer.h.
1094 (casefiddle.o): Don't depend on charset.h.
1095 (casetab.o): Depend on character.h.
1096 (ccl.o): Depend on composite.h.
1097 (chartab.o): Depend on ccl.h.
1098 (cm.o): Depend on dispextern.h.
1099 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1100 (coding.o): Don't depend on $(INTERVALS_H).
1101 (composite.o): Don't depend on dispextern.h explicitly (it's in
1102 $(INTERVALS_H)). Depend on ccl.h.
1103 (data.o): Depend on systime.h, coding.h, composite.h,
1104 dispextern.h, font.h, and ccl.h.
1105 (dired.o): Depend on composite.h.
1106 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1107 composite.h (it's in $(INTERVALS_H)).
1108 (doc.o): Depend on systime.h, coding.h, and composite.h.
1109 (editfns.o): Don't depend explicitly on dispextern.h.
1110 (emacs.o): Depend on frame.h and coding.h.
1111 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1112 (fileio.o): Depend on frame.h and commands.h. Don't depend
1113 explicitly on dispextern.h.
1114 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1115 composite.h.
1116 (fns.o): Don't depend on termhooks.h.
1117 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1118 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1119 coding.h, $(INTERVALS_H), window.h, xterm.h.
1120 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1121 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1122 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1123 fontset.h, ccl.h, and ftfont.h.
1124 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1125 (gtkutil.o): Depend on dispextern.h and composite.h.
1126 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1127 termhooks.h, and ccl.h.
1128 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1129 (intervals.o): Depend on systime.h and coding.h.
1130 (keyboard.o): Depend on composite.h and coding.h.
1131 (keymap.o): Depend on coding.h and frame.h.
1132 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1133 (macros.o): Depend on systime.h, coding.h, and composite.h.
1134 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1135 and atimer.h.
1136 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1137 dispextern.h explicitly.
0b5397c2
SM
1138 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1139 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1140 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1141 (regex.o): Don't depend on charset.h.
1142 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1143 (search.o): Don't depend explicitly on composite.h.
1144 (sound.o): Depend on atimer.h and systime.h.
1145 (syntax.o): Don't depend explicitly on composite.h.
1146 (sysdep.o): Depend on coding.h and composite.h.
1147 (term.o): Depend on xterm.h and buffer.h.
1148 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1149 (textprop.o): Don't depend on dispextern.h explicitly.
1150 (undo.o): Depend on dispextern.h.
1151 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1152 dispextern.h and composite.h explicitly.
1153 (xdisp.o): Depend on ccl.h.
1154 (xfaces.o): Depend on coding.h and ccl.h.
1155 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1156 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1157 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1158 ftfont.h.
1159 (xgselect.o): New dependency.
1160 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1161 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1162 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1163 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1164 (xsmfns.o): Depend on frame.h and dispextern.h.
1165 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1166 sysselect.h.
1167
7a6f7fea
AS
11682009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1169
1170 * font.c (Fclear_font_cache): Pass correct cache argument to
1171 font_clear_cache.
1172
f4c21026
AS
11732009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1174
1175 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1176 twice.
1177
f7ab0997
CY
11782009-12-15 Chong Yidong <cyd@stupidchicken.com>
1179
1180 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1181 calling file-remote-p. Reported by Jim Meyering.
1182
fa8e045a
MA
11832009-12-15 Michael Albinus <michael.albinus@gmx.de>
1184
1185 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1186 avoid compiler warnings. (Bug #5217)
fa8e045a 1187
a63dba42
KH
11882009-12-14 Kenichi Handa <handa@m17n.org>
1189
1190 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1191 in 8-bit encoding.
1192
5ce6e4f4 11932009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1194
1195 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1196 tooltip windows.
1197
223e5fc6
JD
11982009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1199
36acb2a7
JD
1200 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1201 Xatom_net_window_type.
1202
1203 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1204 Xatom_net_window_type.
1205
b8f00677
JD
1206 * xterm.c (my_log_handler): New function.
1207 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1208 so we can filter out buggy messages. (Bug #5120).
b8f00677 1209
e5f0bc9a
JD
1210 * xterm.c (xg_scroll_callback): Parameter list changed,
1211 use parameter GtkScrollType to determine scroll/line/page.
1212 Only allow dragging if a button < 4 is grabbed (bug #5177).
1213 (xg_end_scroll_callback): New function.
1214 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1215 xg_create_scroll_bar.
1216
1217 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1218 (scroll_end_callback): Remove.
1219 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1220 button-release-event. Replace value-changed event with change-value,
1221 bug #5177,
1222 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1223 bug #5177.
1224
1225 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1226 (xg_create_scroll_bar): Add GCallback end_callback.
1227
223e5fc6
JD
1228 * xftfont.c (QClcdfilter): New variable.
1229 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1230 (syms_of_xftfont): Initialize QClcdfilter.
1231
3c055b77
JD
12322009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1233
1234 * xsettings.c (struct xsettings): Add member seen.
1235 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1236 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1237 (apply_xft_settings): Only update Xft settings with what member seen
1238 indicates as new.
1239
05fe33ff
EZ
12402009-12-12 Eli Zaretskii <eliz@gnu.org>
1241
1242 * dispextern.h (struct text_pos): Use EMACS_INT;
1243 (struct glyph): Use EMACS_INT for charpos.
1244 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1245 region_beg_charpos, region_end_charpos,
1246 redisplay_end_trigger_charpos, and also for
1247 iterator_stack_entry.end_charpos and
1248 iterator_stack_entry.stop_charpos.
1249
e8d7886a
JD
12502009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1251
5ce6e4f4 1252 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1253 (xg_create_scroll_bar): Call scroll_end_callback on button release
1254 event (bug #5177).
1255 (xg_event_is_for_scrollbar): != replaced with ==.
1256
d0db2ec8
KH
12572009-12-12 Kenichi Handa <handa@m17n.org>
1258
1259 * ftfont.c (struct ftfont_info): New member matrix.
1260 (ftfont_open): Setup xftfont_info->matrix.
1261 (MFLTFontFT): New member matrix.
1262 (FLOOR, CEIL, ROUND): New macros.
1263 (ftfont_get_metrics): Handle matrix transformation.
1264 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1265
1266 * xftfont.c (struct xftfont_info): New member matrix.
1267 (xftfont_open): Setup xftfont_info->matrix.
1268
12692009-12-10 Kenichi Handa <handa@m17n.org>
1270
1271 * xdisp.c (append_space_for_newline): Consider face-remapping.
1272
2cc7b62f
AS
12732009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1274
b87dd913
AS
1275 * xsettings.c: Include "keyboard.h".
1276
eba5eb94
AS
1277 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1278
2cc7b62f
AS
1279 Fix implicit function declarations.
1280 * cmds.c: Include "frame.h".
1281 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1282 * frame.h: Move declaration of delete_frame outside of
1283 HAVE_WINDOW_SYSTEM.
1284
a4ef73c8
CY
12852009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1286
1287 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1288
1289 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1290 GTK builds.
1291
944a300c
AS
12922009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1293
1294 * unexelf.c (unexec): Don't search for .data twice.
1295
022eef62
CY
12962009-12-05 Chong Yidong <cyd@stupidchicken.com>
1297
426ac949
CY
1298 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1299 if push failed.
1300 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1301 of push_display_prop (Bug#5000).
1302
022eef62
CY
1303 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1304 value of font_list_entities (Bug#5085).
1305
be95bee9
JB
13062009-12-04 Juanma Barranquero <lekktu@gmail.com>
1307
1308 Fix `string-to-number' to deal consistently with integers and floats.
1309 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1310 trailing characters, not just whitespace.
1311 (read1): Pass new arg 0 to keep old behavior.
1312 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1313 trailing chars, as it is already done for integers. Doc fixes.
1314 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1315
24c2d7ce
EZ
13162009-12-04 Eli Zaretskii <eliz@gnu.org>
1317
0b5397c2
SM
1318 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1319 Delete unused enumeration value.
24c2d7ce 1320
7e694795
EZ
13212009-12-03 Eli Zaretskii <eliz@gnu.org>
1322
1323 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1324
84b31826
SM
13252009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1326
1327 * process.c (Fmake_network_process): Fix up the tests for
1328 "connectionless socket", so they DTRT for seqpacket sockets as well.
1329
f00c449b
SM
13302009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1331
1332 * process.c (Qseqpacket): New symbol.
1333 (HAVE_SEQPACKET): New macro.
1334 (Fmake_network_process): Accept new :type `seqpacket'.
1335 (init_process): Add `seqpacket' feature when applicable.
1336 (syms_of_process): Initialize Qseqpacket.
1337
8096a0ff
YM
13382009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1339
1340 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1341 if entity is Qnil.
1342
3e0de07f
SM
13432009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1344
1345 * print.c (print_preprocess): Preprocess the key_and_value table of
1346 hashtables, even tho they're "hidden" (bug#5082).
1347
abeafb2a
JD
13482009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1349
1350 * frame.c (frame_make_pointer_invisible)
1351 (frame_make_pointer_visible): Declare f before statements.
1352
4bf47195
EZ
13532009-11-28 Eli Zaretskii <eliz@gnu.org>
1354
1355 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1356 omitted dependencies on lisp.h.
1357
c525b3f2
JD
13582009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1359
ece2d4ed
JD
1360 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1361 is NULL.
1362
1363 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1364
1365 * frame.c (frame_make_pointer_invisible)
3e0de07f 1366 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1367 frame.
1368
c525b3f2
JD
1369 * search.c (simple_search): Remove warning by making *p const.
1370
2f00e299
DN
13712009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1372
1373 * xdisp.c (power_letter): Remove duplicate const.
1374
084b049b
JD
13752009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1376
a1fadc6f
JD
1377 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1378
5ce6e4f4 1379 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1380 defaults (bug #5025).
1381
28259cac
SM
13822009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1383
1384 * insdel.c (adjust_markers_for_delete): Move it in the
1385 right direction! (bug#4803)
1386
e8e14166
YM
13872009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1388
1389 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1390
1391 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1392
86677b58
GM
13932009-11-24 Glenn Morris <rgm@gnu.org>
1394
1395 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1396
581e51e8
JD
13972009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1398
cfc86c7a
JD
1399 * Makefile.in: Must create deps for ecrt0.o in its rule.
1400
581e51e8
JD
1401 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1402 because that is what Gtk+ font dialog understands.
1403
1404 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1405 of Fcopy_sequence.
1406 (font_open_by_name): Put name given into QCname for font-object returned.
1407
1408 * frame.c (x_set_font): Save original font name as frame parameter
1409 font-parameter.
1410
1411 * xsettings.c (set_default_xft_settings): New function.
1412 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1413 is found.
1414
8b264ecb
AS
14152009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1416
1417 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1418 searching backwards through multibyte buffer.
1419
872870b2
JD
14202009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1421
1422 * xterm.c: #include xgselect.h.
1423 (x_initialize): Call xgselect_initialize.
1424
1425 * xsettings.c (something_changedCB): C++ comments => C comments.
1426 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1427 does that now.
1428
1429 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1430 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1431 (scroll_bar_button_cb): Remove.
5ce6e4f4 1432 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1433 event.
1434 (xg_create_scroll_bar): Don't bind button-press-event and
1435 button-release-event.
1436
1437 * process.c: Include xgselect.h if defined (USE_GTK) ||
1438 defined (HAVE_GCONF).
1439 (wait_reading_process_output): Call xg_select for the same condition.
1440
1441 * xgselect.c (xg_select): New function to better integrate with
1442 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1443
1444 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1445
1446 * Makefile.in (XOBJ): Add xgselect.o.
1447
62a6e103
AS
14482009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1449
0b5397c2
SM
1450 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1451 Remove ignored second argument. All callers changed.
62a6e103
AS
1452 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1453 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1454 * xdisp.c (string_char_and_length): Likewise.
1455
b0ca0f33
DN
14562009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1457
1458 * xterm.c (x_new_font):
1459 * print.c (print_object):
1460 * cmds.c (Fself_insert_command): Move declarations before statements.
1461
dd5a6279
CY
14622009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1463
1464 * s/cygwin.h: Remove unneeded linker flags.
1465
4a8e097d
JD
14662009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1467
0d1d0d26
JD
1468 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1469
1470 * xsettings.h: Declare xsettings_get_system_font.
1471
1472 * xsettings.c (xsettings_get_system_font): New function.
1473 (init_gconf): No use initiating gconf unless we have Xft also.
1474 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1475 HAVE_GCONF.
1476
4a8e097d
JD
1477 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1478 add a blank entry so it doesn't collapse into nothing.
1479
8ab1650e
SM
14802009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1481
1482 * lread.c (Funintern): Comment out last change.
1483
82c602f0
RS
14842009-11-19 Richard Stallman <rms@gnu.org>
1485
1486 * lread.c (Funintern): Error if symbol is t or nil.
1487
87e32266
SM
14882009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1489
1490 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1491 representation of Lisp integers.
1492 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1493
1b9ac145
AS
14942009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1495
1496 * lisp.h: Remove declaration of Ffont_get_system_font.
1497 * xfns.c: Move include of "xsettings.h".
1498 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1499
dfb3c4c6
JD
15002009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1501
87e32266
SM
1502 * xsettings.c (something_changedCB, Ffont_get_system_font):
1503 Check use_system_font.
dfb3c4c6
JD
1504 (syms_of_xsettings): DEFVAR font-use-system-font.
1505
9370c1d8
AS
15062009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1507
25fe851a
AS
1508 * xfns.c (x_default_font_parameter): Remove dead assignment.
1509
9370c1d8
AS
1510 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1511
637fa988
JD
15122009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1513
87e32266 1514 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1515 not have FC_LCD_*. #define them if not there.
a6eb20d8 1516
87e32266 1517 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1518
637fa988
JD
1519 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1520
1521 * xterm.c (handle_one_xevent): Call xft_settings_event for
1522 ClientMessage, PropertyNotify and DestroyNotify.
1523 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1524 Call xsettings_initialize.
1525
1526 * xftfont.c (xftfont_fix_match): New function.
1527 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1528 Call xftfont_fix_match after XftFontMatch.
1529
1530 * xfont.c (xfont_driver): Initialize all members.
1531
87e32266
SM
1532 * xfns.c (x_default_font_parameter):
1533 Try font from Ffont_get_system_font.
637fa988
JD
1534 Do not get font from x_default_parameter if we got one from
1535 Ffont_get_system_font.
87e32266 1536 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1537
1538 * w32font.c (w32font_driver): Initialize all members.
1539
1540 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1541
1542 * lisp.h: Declare syms_of_xsettings.
1543
87e32266
SM
1544 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1545 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1546
1547 * ftfont.c (ftfont_filter_properties): New function.
1548
1549 * frame.c (x_set_font): Remove unused variable lval.
1550
87e32266 1551 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1552
1553 * font.c (font_put_extra): Don't return if val is nil, it means
1554 boolean option is off.
1555 (font_parse_fcname): Collect all extra properties in extra_props
1556 and call filter_properties for all drivers with extra_props and
1557 font as parameter.
87e32266
SM
1558 (font_open_entity): Do not use cache, it does not pick up new
1559 fontconfig settings like hinting.
637fa988
JD
1560 (font_load_for_lface): If spec had a name in it, store it in entity.
1561
a73f9c9d 1562 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
1563
1564 * config.in: HAVE_GCONF is new.
1565
1566 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1567 xsettings.o is new.
1568
5a942932
KH
15692009-11-17 Kenichi Handa <handa@m17n.org>
1570
1571 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1572 back to the default font in case that no suitable font is found.
1573
b7c7a4d1
SM
15742009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1575
1576 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1577 Suggested by Chad Brown <yandros@mit.edu>.
1578 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1579
072f1e39
JD
15802009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1581
1582 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1583
5d1e70a2
AS
15842009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1585
87e32266 1586 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1587
a53cfbe5
JD
15882009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1589
473a99b7
JD
1590 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1591 has a parent.
1592
a53cfbe5 1593 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1594 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1595
1596 * config.in: Generated (AUTO_DEPEND).
1597
f04bb9b2
MA
15982009-11-13 Michael Albinus <michael.albinus@gmx.de>
1599
b7c7a4d1 1600 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1601 Vdbus_registered_functions_table, because it contains also
1602 properties. Fix docstring.
b7c7a4d1 1603 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1604
8f11f7ec
SM
16052009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1606
1607 * alloc.c (mark_object): Don't reprocess marked strings.
1608 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1609 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1610
8a605fe8
KH
16112009-11-13 Kenichi Handa <handa@m17n.org>
1612
8f11f7ec 1613 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1614 semantics of Vword_combining_categories.
1615 (Vword_combining_categories): Describe the slight change of the
1616 semantics.
1617
241c4680
EZ
16182009-11-13 Eli Zaretskii <eliz@gnu.org>
1619
1620 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1621
1622 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1623
5d58e44c
SM
16242009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1625
1626 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1627
5e13f9d3
JB
16282009-11-12 Juanma Barranquero <lekktu@gmail.com>
1629
1630 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1631
cf54c754
DR
16322009-11-11 David Reitter <david.reitter@gmail.com>
1633
1634 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1635 variables to fix 2009-11-09 change.
1636
a4ada374
DN
16372009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1638
91433552
DN
1639 * process.c (ifflag_def): Make flag_sym constant.
1640 (Fnetwork_interface_info): Use a constant pointer.
1641 (ifflag_table):
1642 * xfns.c (cursor_bits):
1643 * xdisp.c (power_letter):
1644 * termcap.c (speeds, esctab):
1645 * sysdep.c (baud_convert):
1646 * keyboard.c (lispy_accent_codes, modifier_names):
1647 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1648 (jpeg_format, tiff_format, gif_format, svg_format)
1649 (interlace_start, interlace_increment, gs_format):
1650 * gtkutil.c (separator_names):
1651 * fringe.c (swap_nibble):
1652 * fns.c (base64_value_to_char, base64_char_to_value):
1653 * fileio.c (make_temp_name_tbl):
1654 * coding.c (suffixes): Make constant.
1655
f4265f6c
DN
1656 * frame.c (make_initial_frame):
1657 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1658 build_string.
1659 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1660
04420943
DN
1661 * s/freebsd.h:
1662 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1663
0a5d24ae
DN
1664 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1665 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1666
a4ada374
DN
1667 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1668 * xterm.c (syms_of_xterm):
1669 * xfaces.c (syms_of_xfaces):
1670 * xdisp.c (syms_of_xdisp):
1671 * lread.c (syms_of_lread):
1672 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1673 build_string.
91433552 1674
a4ada374
DN
1675 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1676
af98fc7f
SM
16772009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1678
8ab1650e 1679 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1680
e90292a9
JD
16812009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1682
1683 * keyboard.h: Declare timer_check.
1684
1685 * keyboard.c (timer_check_2): New function that does what the old
1686 timer_check did.
1687 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1688 returned, i.e. don't return -1 with timers pending.
1689
1690 * process.c: Remove extern declaration of timer_check.
1691
1692 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1693 even if timer_check returned -1.
1694
af98fc7f
SM
1695 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1696 xg_dialog_data.
e90292a9
JD
1697 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1698 the event loop.
1699 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1700 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1701 Destroy the dialog after xg_dialog_run.
1702
045b83c0
SM
17032009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1704
1705 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1706
1fb99a3a
JD
17072009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1708
1709 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1710
04e452cb
JB
17112009-11-09 Juanma Barranquero <lekktu@gmail.com>
1712
1713 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1714
ef7417fd
SM
17152009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1716
1717 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1718 w32menu.c, and nsmenu.m.
1719 Simplify the obsolete case where position is nil.
1720 (cleanup_popup_menu): New function, moved from nsmenu.m.
1721 (struct skp): Remove slot `notreal'.
1722 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1723 adjust callers.
1724 (single_menu_item): Adjust call to parse_menu_item.
1725 (syms_of_menu): Defsubr x-popup-menu.
1726 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1727 (keymap_panes): Don't export any more.
1728 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1729 (xmenu_show): Declare.
1730 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1731 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1732 * keyboard.h (parse_menu_item): Update declaration.
1733 * xmenu.c (Fx_popup_menu): Remove.
1734 (syms_of_xmenu): Don't defsubr x-popup-menu.
1735 * w32menu.c (Fx_popup_menu): Remove.
1736 (syms_of_w32menu): Don't defsubr x-popup-menu.
1737 * nsmenu.m (cleanup_popup_menu): Remove.
1738 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1739 moved to menu.c's Fx_popup_menu.
1740 (Fx_popup_menu): Remove.
1741 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1742 menu_items (it's done in menu.c already).
1743
424d6179
SM
17442009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1745
1746 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1747 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1748
c0df13a6 17492009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1750
1751 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1752 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1753 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1754 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1755
2de9f71c
SM
17562009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1757
1758 Let integers use up 2 tags to give them one extra bit and thus double
1759 their range.
1760 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1761 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1762 New macros.
1763 (enum Lisp_Type): Use them. Give explicit values.
1764 (Lisp_Type_Limit): Remove.
1765 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1766 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1767 Pay attention to USE_2_TAGS_FOR_INTS.
1768 (INTEGERP): Use LISP_INT_TAG_P.
1769 * fns.c (internal_equal): Simplify the default case.
1770 (sxhash): Use case_Lisp_Int.
1771 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1772 any more.
1773 (Ftype_of): Use case_Lisp_Int.
1774 (store_symval_forwarding): Take into account the fact that Ints can
1775 now have more than one tag.
1776 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1777 buffer_slot_type_mismatch):
1778 * xfaces.c (face_attr_equal_p):
1779 * print.c (print_object):
1780 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1781 Use case_Lisp_Int.
1782
323637a2
EZ
17832009-11-06 Eli Zaretskii <eliz@gnu.org>
1784
7ac65b38
EZ
1785 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1786
323637a2
EZ
1787 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1788 warning.
1789
e511451f
JD
17902009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1791
1792 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1793
1794 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1795
1796 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1797 ButtonPressRelease and MotionNotify (bug#4870).
1798
5e2327cf
DN
17992009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1800
5adc433e
DN
1801 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1802
d67b4f80
DN
1803 * xterm.c (syms_of_xterm):
1804 * xselect.c (syms_of_xselect):
1805 * xmenu.c (syms_of_xmenu):
1806 * xfns.c (syms_of_xfns):
1807 * xfaces.c (syms_of_xfaces):
1808 * xdisp.c (syms_of_xdisp):
1809 * window.c (syms_of_window):
1810 * w32fns.c (syms_of_w32fns):
1811 * undo.c (syms_of_undo):
1812 * textprop.c (syms_of_textprop):
1813 * terminal.c (syms_of_terminal):
1814 * syntax.c (syms_of_syntax):
1815 * sound.c (syms_of_sound):
1816 * search.c (syms_of_search):
1817 * print.c (syms_of_print):
1818 * minibuf.c (syms_of_minibuf):
1819 * macros.c (syms_of_macros):
1820 * keymap.c (syms_of_keymap, initial_define_key)
1821 (initial_define_lispy_key):
1822 * keyboard.c (syms_of_keyboard):
1823 * insdel.c (syms_of_insdel):
1824 * image.c (syms_of_image):
1825 * fringe.c (syms_of_fringe):
1826 * frame.c (syms_of_frame):
1827 * fontset.c (syms_of_fontset):
1828 * fns.c (syms_of_fns):
1829 * fns.c (syms_of_fns):
1830 * fileio.c (syms_of_fileio):
1831 * fileio.c (syms_of_fileio):
1832 * eval.c (syms_of_eval):
1833 * doc.c (syms_of_doc):
1834 * dispnew.c (syms_of_display):
1835 * dired.c (syms_of_dired):
1836 * dbusbind.c (syms_of_dbusbind):
1837 * data.c (syms_of_data):
1838 * composite.c (syms_of_composite):
1839 * coding.c (syms_of_coding):
1840 * cmds.c (syms_of_cmds):
1841 * charset.c (define_charset_internal, syms_of_character):
1842 * ccl.c (syms_of_ccl):
1843 * category.c (syms_of_category, init_category_once):
1844 * casetab.c (syms_of_casetab):
1845 * casefiddle.c (syms_of_casefiddle):
1846 * callint.c (syms_of_callint):
1847 * bytecode.c (syms_of_bytecode):
1848 * buffer.c (keys_of_buffer, syms_of_buffer):
1849 * alloc.c (syms_of_alloc):
1850 * process.c (syms_of_process, init_process):
1851 * lread.c (syms_of_lread, init_obarray):
1852 * font.c (build_style_table):
1853 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1854 intern_c_string, calls to make_pure_string with
1855 make_pure_c_string. Use pure_cons instead of Fcons.
1856
5e2327cf
DN
1857 * process.c (socket_options): Make it const.
1858 (set_socket_option, init_process): Use a const pointer.
1859
1860 * lread.c (intern_c_string): New function.
1861 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1862 (defvar_int): Uset it. Make the name const char*.
1863
1864 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1865 (defvar_int): Update prototypes.
1866 (DEFUN, EXFUN): Support for prototypes is now required.
1867 (intern_c_string): New prototype.
1868 (struct Lisp_Subr): Make symbol_name constant.
1869
1870 * font.c (struct table_entry): Remove unused member. Make NAMES
1871 constant.
1872 (weight_table, slant_table, width_table): Make constant.
1873
1874 * emacs.c (struct standard_args): Make name and longname constant.
1875
1876 * character.h (DEFSYM): Use intern_c_string.
1877
a56eaaef
DN
18782009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1879
1880 * alloc.c (make_pure_c_string): New function.
1881
1882 * eval.c (Fautoload): Purecopy all arguments.
1883
f6a07420
KH
18842009-11-05 Kenichi Handa <handa@m17n.org>
1885
1886 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1887 the buffer in case of replace.
1888
5d28d4b1
DN
18892009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1890
1891 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1892
b349d111
SM
18932009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1894
d528b1ce
SM
1895 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1896 when applicable (bug#4851).
1897
b349d111
SM
1898 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1899 (P_): Support for prototypes is now required.
1900
c38eb027
CY
19012009-10-31 Chong Yidong <cyd@stupidchicken.com>
1902
1903 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1904 (Bug#4827).
1905
0405f8d9
EZ
19062009-10-30 Eli Zaretskii <eliz@gnu.org>
1907
d528b1ce 1908 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1909
ca0a881a
DN
19102009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1911
1912 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1913
d528b1ce
SM
1914 * lread.c (Fload): Purecopy the file name when building
1915 Vpreloaded_file_list.
ca0a881a 1916
47e0e0e4
JR
19172009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1918
1919 * w32fns.c (syms_of_w32fns): Change default value of
1920 w32-scroll-lock-modifier to nil. (Bug#2827)
1921
057bce6f
JB
19222009-10-26 Juanma Barranquero <lekktu@gmail.com>
1923
782a943e 1924 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1925
242bc74c
AS
19262009-10-26 Andreas Schwab <schwab@redhat.com>
1927
1928 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1929
522d013a
JB
19302009-10-26 Juanma Barranquero <lekktu@gmail.com>
1931
1932 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1933 For delta < 0, skip check that only makes sense when the mini-window
1934 is going to be enlarged. (Bug#4534)
1935
18060980
CY
19362009-10-25 Chong Yidong <cyd@stupidchicken.com>
1937
1938 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1939 string in menu maps (Bug#4471).
1940
fec8f0fe
CY
19412009-10-24 Chong Yidong <cyd@stupidchicken.com>
1942
1943 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1944 FRAME_NS_VIEW on terminal frames (Bug#4765).
1945
10d66ec0
AS
19462009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1947
1cae01f7
AS
1948 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1949 DBUS_TYPE_UINTnn separately to get proper sign extension.
1950
58a12889
AS
1951 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1952 can properly handle unsigned types.
d528b1ce 1953 (make_uid, make_gid): Remove.
58a12889 1954
987c9327
AS
1955 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1956 types again.
1957
522d013a 1958 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1959 (system_process_attributes): Likewise.
1960
905a9ed3
DN
19612009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1962
1963 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1964
1965 * eval.c (Fautoload): Purecopy the filename. Simplify.
1966
1967 * category.c (Fdefine_category): Purecopy docstring.
1968
a599b3e8
AS
19692009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1970
7b792fc9
AS
1971 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1972
a599b3e8
AS
1973 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1974
b35ac83e
CY
19752009-10-23 Chong Yidong <cyd@stupidchicken.com>
1976
1977 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1978 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1979 (Bug#4775).
1980
e8903e00
SM
19812009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1982
1983 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1984 (init_fileio_once):
1985 * lisp.h (init_fileio_once): Remove.
1986 * emacs.c (main): Don't call init_fileio_once.
1987
8f43cbf3
DN
19882009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1989
1990 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1991
26898943
AS
19922009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1993
1994 * doprnt.c (doprnt): Fix overflow check.
1995
5c646d5a
JD
19962009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1997
3132a7ea
JD
1998 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1999
5c646d5a
JD
2000 * xterm.h (x_wait_for_event): Declare it.
2001
2002 * xterm.c (pending_event_wait): New variable.
2003 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2004 see pending_event_wait.eventtype.
2005 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2006 (x_new_font): Call change_frame_size with new rows/columns before we
2007 try to resize the frame.
5c646d5a 2008 (x_wait_for_event): New function.
d528b1ce
SM
2009 (x_set_window_size_1): Don't change gravity unless change_gravity
2010 is set.
5c646d5a
JD
2011 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2012 don't change frame size, instead wait for the ConfigureNotify.
2013 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2014 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2015 (x_initialize): Initialize pending_event_wait.
2016
2017 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2018 size.
2019
2020 * widget.c (EmacsFrameSetValues): Add comment.
2021 (EmacsFrameSetCharSize): Just call x_set_window_size.
2022
2023 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2024 x_wait_for_event.
d528b1ce 2025 (flush_and_sync): Remove again.
5c646d5a
JD
2026 (xg_get_font_name): Suggest monospace if no previous font is known.
2027
e9c1637d
SM
20282009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2029
2030 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2031 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2032
5a72cccb
YM
20332009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2034
2035 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2036 processing pending events when event is filtered for input method.
ab04798f 2037 (Bug#3681)
5a72cccb 2038
2629aa37
JB
20392009-10-20 Juanma Barranquero <lekktu@gmail.com>
2040
2041 * fns.c: Add #endif accidentally removed in previous change.
2042
c3417a74
DN
20432009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2044
2045 * fns.c: Remove code for unsupported system: MAC_OS.
2046 * image.c: Likewise. Include setjmp.h.
2047
9685cef2
JD
20482009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2049
2050 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2051 pixel -1 (bug #4742).
2052
d7306fe6
DN
20532009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2054
019d2c4c
DN
2055 * process.c (create_pty): Remove conditionals for no longer
2056 supported systems: UNIPLUS and RTU.
2057
ee6bacd4
DN
2058 * xterm.c:
2059 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2060
d7306fe6
DN
2061 * alloc.c: Do not define struct catchtag.
2062 * eval.c: Move struct catchtag definition ...
2063 * lisp.h: ... here.
2064
2065 * image.c: Move png.h #include earlier to avoid warnings.
2066
2067 * xterm.c:
2068 * xsmfns.c:
2069 * xselect.c:
2070 * xrdb.c:
2071 * xmenu.c:
2072 * xftfont.c:
2073 * xfont.c:
2074 * xfns.c:
2075 * xfaces.c:
2076 * xdisp.c:
2077 * window.c:
2078 * widget.c:
2079 * w32xfns.c:
2080 * w32uniscribe.c:
2081 * w32term.c:
2082 * w32select.c:
2083 * w32reg.c:
2084 * w32proc.c:
2085 * w32menu.c:
2086 * w32inevt.c:
2087 * w32heap.c:
2088 * w32font.c:
2089 * w32fns.c:
2090 * w32console.c:
2091 * w32.c:
2092 * w16select.c:
2093 * vm-limit.c:
2094 * unexsol.c:
2095 * unexec.c:
2096 * unexcw.c:
2097 * unexaix.c:
2098 * undo.c:
2099 * tparam.c:
2100 * textprop.c:
2101 * terminfo.c:
2102 * terminal.c:
2103 * termcap.c:
2104 * term.c:
2105 * syntax.c:
2106 * sound.c:
2107 * sheap.c:
2108 * search.c:
2109 * scroll.c:
2110 * region-cache.c:
2111 * regex.c:
2112 * ralloc.c:
2113 * process.c:
2114 * print.c:
b024548b
DN
2115 * nsterm.m:
2116 * nsselect.m:
2117 * nsmenu.m:
2118 * nsimage.m:
2119 * nsfont.m:
2120 * nsfns.m:
d7306fe6
DN
2121 * msdos.c:
2122 * minibuf.c:
2123 * menu.c:
2124 * marker.c:
2125 * macros.c:
2126 * keymap.c:
2127 * keyboard.c:
2128 * intervals.c:
2129 * insdel.c:
2130 * indent.c:
2131 * gtkutil.c:
2132 * ftxfont.c:
2133 * ftfont.c:
2134 * fringe.c:
2135 * frame.c:
2136 * fontset.c:
2137 * font.c:
2138 * fns.c:
2139 * floatfns.c:
2140 * filelock.c:
2141 * fileio.c:
2142 * emacs.c:
2143 * editfns.c:
2144 * dosfns.c:
2145 * doprnt.c:
2146 * doc.c:
2147 * dispnew.c:
2148 * dired.c:
2149 * dbusbind.c:
2150 * data.c:
2151 * composite.c:
2152 * coding.c:
2153 * cmds.c:
2154 * cm.c:
2155 * chartab.c:
2156 * charset.c:
2157 * character.c:
2158 * ccl.c:
2159 * category.c:
2160 * casetab.c:
2161 * casefiddle.c:
2162 * callproc.c:
2163 * callint.c:
2164 * bytecode.c:
2165 * buffer.c:
2166 * atimer.c: Include setjmp.h. (Bug#4643)
2167
fd5f21e6
SM
21682009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2169
4c0354d7
SM
2170 Remove leftover table unibyte_to_multibyte_table.
2171 * character.c (unibyte_to_multibyte_table): Remove.
2172 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2173 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2174 * character.h (UNIBYTE_TO_CHAR): New macro.
2175 (MAKE_CHAR_MULTIBYTE): Use it.
2176 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2177 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2178 (message_dolog, set_message_1):
2179 * search.c (Freplace_match):
2180 * editfns.c (Fcompare_buffer_substrings):
2181 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2182 (concat):
2183 * insdel.c (copy_text, count_size_as_multibyte):
2184 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2185 * term.c (produce_glyphs):
2186 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2187 * regex.c (RE_CHAR_TO_MULTIBYTE):
2188 * cmds.c (internal_self_insert):
2189 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2190
fd5f21e6
SM
2191 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2192
4418646e
DN
21932009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2194
2195 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2196
35f5c1d2
JB
21972009-10-16 Juanma Barranquero <lekktu@gmail.com>
2198
2199 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2200
a0cd8f6b
AR
22012009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2202
2203 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2204 still needed under Tiger.
2205
2206 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2207
2208 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2209 __Apple__.
2210
2211 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2212
01a8d3fa
KH
22132009-10-15 Kenichi Handa <handa@m17n.org>
2214
2215 * print.c (print_object): Escape a symbol like "2E10" too.
2216
bf6c75c9 22172009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2218
2219 Cleanups and changes for 64-bit compile under Snow Leopard.
2220 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2221
2222 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2223
c5959062 2224 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2225 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2226 cast argument.
2227 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2228 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2229
2230 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2231
2232 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2233 where appropriate.
2234
2235 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2236 where appropriate.
6e4780c5
JB
2237 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2238 Use stringWithUTF8String.
bf6c75c9
AR
2239 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2240
6e4780c5
JB
2241 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2242 Add formal protocol mention to inheritance.
bf6c75c9
AR
2243 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2244
6e4780c5
JB
2245 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2246 Fix printf format.
bf6c75c9
AR
2247 (ns_query_color): Use CGFloat where appropriate.
2248 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2249 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2250 argument.
2251
3d87f118
AR
2252 * config.in (NS_HAVE_NSINTEGER): Drop.
2253
a95c8102
AR
2254 * dbusbind.c (dbus-method-return-internal)
2255 (dbus-method-error-internal): Use long format in printf, and cast
2256 argument.
2257
2258 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2259 in printf, and cast argument.
2260
6873acca 2261 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2262 cast argument.
2263
9ec6f100
GM
22642009-10-11 Glenn Morris <rgm@gnu.org>
2265
2266 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2267
5be883cd
JD
22682009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2269
2270 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2271 menu bar with a small width so it doesn't enlarge the frame.
2272
d7a39b51
JB
22732009-10-08 Juanma Barranquero <lekktu@gmail.com>
2274
2275 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2276
0c2b6f8e
GM
22772009-10-06 Glenn Morris <rgm@gnu.org>
2278
2279 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2280 SOME_MACHINE_LISP (this enters indirectly via DOC).
2281
e02131a2
EZ
22822009-10-05 Eli Zaretskii <eliz@gnu.org>
2283
2284 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2285
b4744254
EZ
22862009-10-04 Eli Zaretskii <eliz@gnu.org>
2287
2288 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2289 Doc fix.
2290
dbf64827
JB
22912009-10-03 Martin Rudalics <rudalics@gmx.at>
2292
2293 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2294
e9a0aef8
MA
22952009-10-02 Michael Albinus <michael.albinus@gmx.de>
2296
d528b1ce 2297 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2298 used anymore outside fileio.c.
2299
2300 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2301
64eb2b56
JB
23022009-10-01 Juanma Barranquero <lekktu@gmail.com>
2303
2304 * lisp.h (Qdelete_directory_internal):
2305 Declare, instead of Qdelete_directory.
2306
2307 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2308
9d28c33e
SM
23092009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2310
2311 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2312
9d8f3bd9
MA
23132009-10-01 Michael Albinus <michael.albinus@gmx.de>
2314
9d28c33e 2315 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2316 Fdelete_directory. It is not a command anymore. It has no file
2317 name handler.
2318
9694740b
SM
23192009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2320
2321 * xdisp.c (get_next_display_element): Use an enum in last change.
2322
748e162f
KH
23232009-09-28 Kenichi Handa <handa@m17n.org>
2324
9694740b 2325 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2326 unibyte_display_via_language_environment in handling
2327 Vnobreak_char_display.
2328
17efd58d
AR
23292009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2330
2331 * nsterm.h (ns_app_name): New extern variable.
2332
2333 * nsterm.m (ns_app_name): New variable.
2334 (ns_term_init): Set and use it.
2335 (ns_term_shutdown): Use it.
2336
2337 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2338 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2339
2340 * nsfns.m (ns_set_name_iconic, ns_set_name)
2341 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2342 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2343
9694740b
SM
2344 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2345 Remove double-casting in client_data comparison.
31c2d412 2346
3208cb35
YM
23472009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2348
2349 * keyboard.c (make_lispy_event): Remember last wheel direction.
2350 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2351
b7d552d6
GM
23522009-09-26 Glenn Morris <rgm@gnu.org>
2353
2354 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2355 internal.elc. Add term/pc-win.elc.
2356 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2357 term/x-win.elc.
2358 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2359 term/w32-win.elc.
2360 (NS_SUPPORT): New.
2361 (lisp): Add NS_SUPPORT.
2362 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2363
4ff670a8
DR
23642009-09-25 David Reitter <david.reitter@gmail.com>
2365
2366 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2367 on Mac OS X 10.6+ (bug#4513).
2368
feabfb6c
JB
23692009-09-24 Juanma Barranquero <lekktu@gmail.com>
2370
2371 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2372 some parts of Emacs code (like font selection) don't grok them.
2373 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2374
de59072a
AS
23752009-09-24 Andreas Schwab <schwab@redhat.com>
2376
2377 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2378
a489517b
JB
23792009-09-24 Juanma Barranquero <lekktu@gmail.com>
2380
2381 * dired.c (Fdirectory_files): Fix typo in docstring.
2382
0592970c
AR
23832009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2384
2385 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2386 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2387 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2388 under GNUstep.
2389 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2390
2391 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2392 glyph advancement.
2393
48e8a88b
AR
23942009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2395
2396 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2397 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2398
2399 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2400 deleted (bug #4492).
2401
e14f0a78
AR
2402 * nsfont.m (Vns_reg_to_script): New lisp variable.
2403 (syms_of_nsfont): Declare it.
2404 (ns_registry_to_script): New function.
2405 (ns_get_req_script): Call it.
2406 (ns_findfonts): Don't give up on non-unicode registry.
2407
2408 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2409
5b650faa
SM
24102009-09-20 Tom Tromey <tromey@redhat.com>
2411
2412 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2413 batch mode (bug#4228).
2414
a489517b 24152009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2416
2417 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2418 carefully. (Bug #4339)
0bae4e09 2419
fcfe06f3
CY
24202009-09-18 Chong Yidong <cyd@stupidchicken.com>
2421
d798ba87 2422 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2423
31642728
AR
24242009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2425
2426 * emacs.c (inhibit_x_resources): Update doc string for NS.
2427 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2428 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2429
2430 * nsterm.h (ns_no_defaults): Remove.
2431
2432 * nsterm.m (ns_no_defaults): Remove.
2433 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2434 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2435 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2436 don't update the NSWindow itself.
2437 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2438 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2439
2440 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2441 ns_use_qd_smoothing.
2442
2443 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2444 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2445 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2446 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2447
8686ac71
JB
24482009-09-17 Juanma Barranquero <lekktu@gmail.com>
2449
2450 * emacs.c (inhibit_x_resources): New variable.
2451 (main) [HAVE_NS]: Don't process --quick command line option.
2452 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2453
2454 * lisp.h (inhibit_x_resources): Declare it extern.
2455
2456 * w32reg.c (x_get_string_resource):
2457 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2458
e227ba05
EZ
24592009-09-17 Eli Zaretskii <eliz@gnu.org>
2460
362654a6
JB
2461 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2462 Add lisp/term/internal.elc.
e227ba05 2463
742d40e8
SM
24642009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2465
2466 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2467 (bug#4461).
2468
005bd5a2
DN
24692009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2470
2471 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2472
2473 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2474 (OBJECTS_MACHINE): Remove, unused.
2475
f9af9719
SM
24762009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2477
2478 * frame.c (x_get_resource_string): Remove unused.
2479
0307c7d2
JD
24802009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2481
2482 * xterm.c (x_new_font): Call change_frame_size before calling
2483 x_set_window_size, in case frame size won't change.
2484
2485 * frame.c (x_set_font): Remove dead code.
2486
428b13d6
SM
24872009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2488
2489 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2490
5766c380
SM
24912009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2492
2493 * lread.c (Fload): Don't output a message after loading an obsolete
2494 package any more (done in Lisp now).
2495
2fd0161b
CY
24962009-09-12 Chong Yidong <cyd@stupidchicken.com>
2497
2498 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2499
bc5e75b6
SM
25002009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2501
2502 * keymap.c (Fwhere_is_internal): Use nconc2.
2503
c31c985e
AM
25042009-09-11 Alan Mackenzie <acm@muc.de>
2505
2506 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2507 batch mode.
2508
78012bd2
AS
25092009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2510
2511 * xdisp.c (display_mode_element): Detect cycles.
2512
9d889332
SM
25132009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2514
2515 * keymap.c (where_is_internal): Don't erroneously return nil right after
2516 filling the cache.
2517 (where_is_internal_1): Fix up typo.
2518
7ab5d780
GM
25192009-09-11 Glenn Morris <rgm@gnu.org>
2520
2521 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2522 share a common doc-string.
2523
5238a749
SM
25242009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2525
66d77eda
SM
2526 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2527 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2528
5238a749
SM
2529 * keymap.c (QCadvertised_binding): New constant.
2530 (syms_of_keymap): Initialize it.
2531 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2532 if applicable.
2533
19f48442
SM
25342009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2535
50d4ba39
SM
2536 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2537 (parse_menu_item): Streamline since bindings are recomputed all the
2538 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2539 more and don't support lmenu's menu-alias any more either.
2540
a88a5372
SM
2541 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2542 (where_is_internal): Strip it down to only traverse the keymaps.
2543 Move the cache handling from Fwhere_is_internal to here.
2544 (Fwhere_is_internal): Move the handling of remapping and the choice of
2545 the best binding from where_is_internal to here.
2546 Unify the cached/noncached paths, so remapping is also handled
2547 correctly when the cache is used, and so the cache can be used to
2548 speed up remap-handling when applicable.
2549 Give preference to non-remapped bindings.
2550 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2551 non-remapped bindings.
2552 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2553 command remapping.
2554
19f48442
SM
2555 * xdisp.c (display_mode_element): Move list length limit from 50 to
2556 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2557
599498c3 25582009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2559
2560 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2561
f9b7b5ac
SM
25622009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2563
a53af587
JB
2564 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2565 (Bug#4334)
2566
f9b7b5ac
SM
2567 * keymap.c (where_is_internal): Filter out shadowed remappings.
2568 Assume that where_is_internal returns unshadowed bindings to simplify
2569 the code and get rid of the gotos. Use ASIZE.
2570
04f4b72d
JD
25712009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2572
4da146f2
JD
2573 * xterm.c (x_focus_changed): If we get a focusout and pointer
2574 is invisible, make it visible.
2575
04f4b72d
JD
2576 * xterm.h: Remove condition for declaration of
2577 x_*_window_to_frame.
2578
7cef7ce3
SM
25792009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2580
2581 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2582 initial terminal as well.
2583
a54fa5b7
JD
25842009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2585
2586 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2587 x_menubar_window_to_frame.
a54fa5b7
JD
2588
2589 * xterm.c: Remove declarations also in xterm.h
2590 (XTmouse_position): Do not return valid positions
2591 for clicks in the menubar and the toolbar for Gtk+.
2592
2593 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2594 if the widget for the event has the same top level as a frame,
2595 return the frame.
2596 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2597 internal windows, bug #4122.
2598 (x_non_menubar_window_to_frame): Remove.
2599
5a021dd0
GM
26002009-09-02 Glenn Morris <rgm@gnu.org>
2601
2602 * buffer.c (default-major-mode): Move most of the doc from here...
2603 (major-mode): ... to here.
2604
548fe2f3
NR
26052009-08-30 Nick Roberts <nickrob@snap.net.nz>
2606
2607 * process.c (wait_reading_process_output): Keep the descriptor
2608 when pty is used by a non-child process, e.g., in I/O buffer of
2609 GDB this allows inferior to be restarted.
2610
e0840eef
EZ
26112009-08-29 Eli Zaretskii <eliz@gnu.org>
2612
2613 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2614 both branches into one.
2615
82e98df4
SM
26162009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2617
2618 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2619 (main): Use enable-multibyte-characters rather than
2620 default-enable-multibyte-characters. Output a warning message when
2621 running a unibyte session.
2622
890617cb
YM
26232009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2624
2625 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2626 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2627 (copy_data_segment): Also copy __program_vars section.
2628 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2629 (dump_it) [LC_DYLD_INFO]: Use it.
2630
2631 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2632
e7adeadc
EZ
26332009-08-28 Eli Zaretskii <eliz@gnu.org>
2634
2635 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2636 $(SRC)/buildobj.h.
2637 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2638 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2639 $(SRC)/buildobj.h.
2640 (clean): Add buildobj.h.
2641
3ed8bbdc
TZ
26422009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2643
2644 * print.c (print_object): Set escapeflag to 1 when printing
2645 hashtable keys and values.
2646
155a6764
SM
26472009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2648
2649 * lread.c (read_integer): Use doubles (and potentially return a float
2650 number) as we do in string-to-number.
2651 (read1): Use strtol to read integers, signal errors on strtol's
2652 overflow and use floats if strtol's output is too large for
2653 Elisp integers.
2654
877610de
EZ
26552009-08-27 Eli Zaretskii <eliz@gnu.org>
2656
2657 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2658 (make-buildobj-SH): Fix last change.
2659 (SRC): Move to before where it's first used.
2660
ef73e7be
KH
26612009-08-27 Kenichi Handa <handa@m17n.org>
2662
550c8289
KH
2663 * process.c (send_process): Use encode_coding_object instead of
2664 encode_coding_string to perform eol-conversion even if the string
2665 is unibyte.
2666
60afa08d
KH
2667 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2668 character.
2669
ef73e7be 2670 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2671 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2672
7b3a82d7
DN
26732009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2674
5654bf63
DN
2675 * callproc.c (Fcall_process): Remove always true #if.
2676
7b3a82d7
DN
2677 * lisp.h: Replace #if 0 code for checking with text pointing to
2678 the --enable-checking configure flag.
2679
2680 * emacs.c (main): Mention the --enable-profiling configure flag
2681 instead of using CFLAGS.
2682
878bde49
KR
26832009-08-26 Ken Raeburn <raeburn@raeburn.org>
2684
2685 * Makefile.in (buildobj.h): New target.
2686 (doc.o): Depend on it.
2687 (temacs${EXEEXT}): Don't generate buildobj.lst.
2688 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2689 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2690 ($(BLD)/doc.$(O)): Depend on it.
2691 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2692 provided by Eli Zaretskii.)
2693 ($(TEMACS)): Don't generate buildobj.lst.
2694 * doc.c: Include buildobj.h.
2695 (buildobj): New static variable.
2696 (Fsnarf_documentation): Use it, instead of opening and reading
2697 buildobj.lst.
2698
1574224c
MA
26992009-08-25 Michael Albinus <michael.albinus@gmx.de>
2700
2701 * dbusbind.c (Fdbus_call_method)
2702 (Fdbus_call_method_asynchronously): Use English numeric format for
2703 timeout values in doc string.
2704
d9da2f45
KH
27052009-08-25 Kenichi Handa <handa@m17n.org>
2706
ef73e7be
KH
2707 * alloc.c (mark_char_table): New function.
2708 (mark_object): Use mark_char_table for a char-table.
2709
d9da2f45
KH
2710 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2711 (CHAR_TABLE_REF): Use it.
2712
c8edcc01
KR
27132009-08-23 Ken Raeburn <raeburn@raeburn.org>
2714
2715 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2716 before invoking the newly build emacs to check for load-path
2717 shadowing.
2718
7763401b
GM
27192009-08-22 Glenn Morris <rgm@gnu.org>
2720
2721 * Makefile.in (bootstrap_exe): New variable.
2722 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2723 Use ${bootstrap_exe}.
2724
729eadda
EZ
27252009-08-22 Eli Zaretskii <eliz@gnu.org>
2726
2727 * coding.h (encode_coding_string): Don't encode unibyte strings.
2728 (Bug#4047)
2729
eb4c6ace
MA
27302009-08-22 Michael Albinus <michael.albinus@gmx.de>
2731
2732 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2733
2734 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2735 intended as hotfix only.
2736 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2737
36e34d1b
AR
27382009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2739
2740 * nsterm.m (ns_get_color): Update documentation properly for last
2741 change, and clean up loose ends in the code left by it. Fix
2742 longstanding bug with 16-bit hex parsing, and add support for
2743 yet another X11 format (rgb:r/g/b) for compatibility.
2744 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2745 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2746
f983eb8a
SM
27472009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2748
2749 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2750
3f56d3c6
MA
27512009-08-20 Michael Albinus <michael.albinus@gmx.de>
2752
2753 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2754 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2755 (xd_initialize, xd_pending_messages): Check, whether
2756 $DBUS_SESSION_BUS_ADDRESS is set.
2757
fb641d68
YM
27582009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2759
2760 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2761
2762 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2763
cf59a374
GM
27642009-08-20 Glenn Morris <rgm@gnu.org>
2765
2766 * emacs.c (system-type): Doc fix.
2767
1373f3be
SM
27682009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2769
2770 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2771 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2772
058ed861
MA
27732009-08-18 Michael Albinus <michael.albinus@gmx.de>
2774
1373f3be
SM
2775 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2776 New functions.
058ed861
MA
2777 (xd_initialize): Revert change from 2009-08-16.
2778
563a866e 27792009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2780
2781 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2782 font-group vector, return nil.
5fc05db0 2783
e42bdf01
CY
27842009-08-17 Chong Yidong <cyd@stupidchicken.com>
2785
2786 * process.c (status_notify): Don't perform redisplay.
2787 (Fdelete_process, list_processes_1, process_send_signal):
2788 Expliticly perform redisplay.
2789 (wait_reading_process_output): Always check process status, but
2790 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2791
4230ab74
KR
27922009-08-17 Ken Raeburn <raeburn@raeburn.org>
2793
1373f3be 2794 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2795 (XFLOAT_INIT): New macro for storing a float value.
2796 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2797 * fns.c (sxhash): Copy out the value of a float in order to
2798 examine its bytes.
2799 * dbusbind.c (xd_append_arg): Likewise.
2800
4230ab74
KR
2801 * emacs.c (main): Don't call syms_of_data twice.
2802
a0645cdd
MA
28032009-08-16 Michael Albinus <michael.albinus@gmx.de>
2804
2805 * dbusbind.c (xd_initialize): Add connection file descriptor to
2806 input_wait_mask, in order to let select() detect, whether a new
2807 message has been arrived.
ca4f31ea 2808 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2809
485db0ba
MA
28102009-08-15 Michael Albinus <michael.albinus@gmx.de>
2811
1373f3be
SM
2812 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2813 New functions.
485db0ba
MA
2814
2815 * lisp.h (xd_pending_messages): Declare.
2816
2817 * keyboard.c (readable_events): Call xd_pending_messages.
2818
b5b98ff4
CY
28192009-08-15 Chong Yidong <cyd@stupidchicken.com>
2820
1373f3be 2821 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2822
f8354c6e
CY
2823 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2824
b5b98ff4
CY
2825 * buffer.c (set_buffer_internal_1)
2826 (swap_out_buffer_local_variables): Check for unbound local
2827 variables (Bug#4138).
2828
8b9fc636
EZ
28292009-08-14 Eli Zaretskii <eliz@gnu.org>
2830
2831 * process.c (create_pty): Fix last change.
2832
ce959360
CY
28332009-08-13 Chong Yidong <cyd@stupidchicken.com>
2834
2835 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2836 (xbm_load_image): Caller changed.
64b807c9 2837 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2838
c7baf7e9
NR
28392009-08-13 Nick Roberts <nickrob@snap.net.nz>
2840
2841 * process.c (create_pty): New function.
2842 (Fstart_process): Use it to allow Emacs to just associate a pty
2843 with the buffer. See associated change in gdb-mi.el.
2844 (list_processes_1): Deal with no program name.
2845 (start_process_unwind): Use pid == -2 to mean no process.
2846
1ac9108a
SM
28472009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2848
2849 * cmds.c (nonundocount): New global variable.
2850 (keys_of_cmds): Initialize it.
2851 (Fself_insert_command): Use it to combine upto 20 sequential chars
2852 into a single undo entry, just like the Qself_insert_command code in
2853 keyboard.c does.
2854 Call frame_make_pointer_invisible, also like the Qself_insert_command
2855 code in keyboard.c does.
2856 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2857 than its own local replacement for it.
2858
e267324c
KR
28592009-08-10 Ken Raeburn <raeburn@raeburn.org>
2860
1ac9108a 2861 * fns.c (concat): Don't re-set string length to its current value.
77437343 2862
1ac9108a
SM
2863 * coding.h (decode_coding_string, encode_coding_string):
2864 Use SBYTES macro.
f0bed503 2865
1ac9108a 2866 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2867 (doprnt): Merge with doprnt1, discarding lispstrings code.
2868 * lisp.h (doprnt_lisp): Don't declare.
2869
416e006d
JL
28702009-08-07 Juri Linkov <juri@jurta.org>
2871
2872 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2873
6f7d5780
DN
28742009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2875
2876 * print.c (syms_of_print): Undo previous change.
2877
f19a0f5b
TZ
28782009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2879
2880 * lread.c (read1, syms_of_lread): Read hashtables back from the
2881 readable format.
2882
2883 * print.c (print_preprocess, print_object): Print hashtables fully
2884 and readably.
2885 (syms_of_print): Provide 'hashtable-print-readable.
2886
b9173dc2
AR
28872009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2888
2889 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2890 no family set.
2891 (nsfont_open): Handle case when entity has no family.
2892
1586503c
AR
28932009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2894
2895 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2896 element, not a list, for match case.
2897
087048cd
KH
28982009-07-28 Kenichi Handa <handa@m17n.org>
2899
2900 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2901 rigidly.
2902
2903 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2904 font_parse_xlfd. Check font properties more rigidly.
2905
780c2506
DN
29062009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2907
31fd7c5c
JB
2908 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2909 bsd-common.h.
780c2506 2910
a8c0cc18
KH
29112009-07-27 Kenichi Handa <handa@m17n.org>
2912
2913 * xfaces.c (face_with_height): Call font_clear_prop.
2914
4fbe2306
CY
29152009-07-26 Chong Yidong <cyd@stupidchicken.com>
2916
111d9af3
CY
2917 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2918
2919 * xterm.c (x_term_init): Use Qx.
2920
4fbe2306
CY
2921 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2922
1ac9108a 2923 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2924 (ns_get_color): Revert 2009-07-16 change.
2925
beb0b7f9
EZ
29262009-07-25 Eli Zaretskii <eliz@gnu.org>
2927
2928 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2929 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2930
2baf5e76
KR
29312009-07-25 Ken Raeburn <raeburn@raeburn.org>
2932
1ac9108a
SM
2933 * coding.h (decode_coding_string, encode_coding_string):
2934 Use SCHARS macro.
8890e5f5 2935
2baf5e76 2936 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2937 (load_depth): Delete.
2baf5e76
KR
2938 (Qload_in_progress): New variable.
2939 (load_unwind): Don't reference load_depth or load_in_progress.
2940 (Fload): Likewise; specbind Qload_in_progress instead.
2941 (init_lread): Don't initialize load_depth.
2942 (syms_of_lread): Initialize and protect Qload_in_progress.
2943
1395c6f5
AR
29442009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2945
2946 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2947
4e2f36cf
AR
29482009-07-23 Yavor Doganov <yavor@gnu.org>
2949
2950 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2951
5dd9a6f7
AR
29522009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2953
2954 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2955 Bugs 3792, 3720, 2402.
2956 (ns_lookup_indexed_color): Check for bad index.
2957 (ns_index_color): Init unused slot to 0.
2958 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2959 Bug 3714, possibly 3082.
5dd9a6f7 2960
c902b920
JR
29612009-07-22 Jason Rumney <jasonr@gnu.org>
2962
1ac9108a
SM
2963 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2964 Position IME window at cursor (Bug#2570).
c902b920
JR
2965 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2966 (globals_of_w32fns): Dynamically load functions required above.
2967
2968 * w32term.c (w32_draw_window_cursor): Send message to reposition
2969 any IME window.
2970
090101cf
CY
29712009-07-21 Chong Yidong <cyd@stupidchicken.com>
2972
2973 * fileio.c: Revert 2009-07-16 changes.
2974 (Vauto_save_include_big_deletions): New variable.
2975 (Fdo_auto_save): Disable auto-save only if
2976 auto-save-include-big-deletions is nil.
2977
e6583e3d
CY
29782009-07-21 Chong Yidong <cyd@stupidchicken.com>
2979
2980 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2981 the overflowed pixels into account (Bug#3879).
2982
ece435a5
KR
29832009-07-21 Ken Raeburn <raeburn@raeburn.org>
2984
2985 * lread.c (load_depth): New variable.
2986 (Fload, load_unwind, init_lread): Set it to the load recursion
2987 depth; set load_in_progress as a simple boolean based on the
2988 current load_depth. (Bug#3892)
2989
40b2d973
AR
29902009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2991
2992 * nsfont.m (ns_has_attribute): Remove.
2993 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2994
10be7e0d
JL
29952009-07-18 Juri Linkov <juri@jurta.org>
2996
2997 * process.c (Fset_process_query_on_exit_flag): Mention killing
2998 a buffer in docstring.
2999
fa055055
KH
30002009-07-17 Kenichi Handa <handa@m17n.org>
3001
3002 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3003
042f7b69
YM
30042009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3005
3006 * nsfns.m (Fns_set_alpha): Remove function.
3007 (syms_of_nsfns): Don't defsubr it.
3008
3009 * nsterm.m (ns_get_color): Remove incompatible color formats.
3010 (ns_color_to_lisp): Generate #rrggbb color format string.
3011
4be941e3
RS
30122009-07-16 Richard Stallman <rms@gnu.org>
3013
3014 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3015 (Fset_buffer_auto_saved): Handle save_length = -2.
3016
4e6b227d
CY
30172009-07-16 Chong Yidong <cyd@stupidchicken.com>
3018
3019 * xterm.c (Qx_gtk_map_stock): New var.
3020
3021 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3022 of calling intern each time.
3023
a1856973
YM
30242009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3025
3026 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3027 does tiling.
3028
3029 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3030
497e54d8
KH
30312009-07-14 Kenichi Handa <handa@m17n.org>
3032
72d36834
KH
3033 * font.c (font_vconcat_entity_vectors): New function.
3034 (struct font_sort_data): New member font_driver_preference.
3035 (font_compare): Check font_driver_preference.
3036 (font_sort_entities): The format of the first argument changed.
3037 (font_delete_unmatched): Likewise.
3038 (font_list_entities): The return type changed.
3039 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3040 (font_find_for_lface): Adjuste for the above changes.
3041 Don't suppress the checking of C even if the repertory supports it.
3042 (Flist_fonts): Adjust for the above changes.
72d36834 3043
1ac9108a
SM
3044 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3045 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3046 Reject a font who has adstyle property that is different from a
3047 langname derived from registry property.
1ac9108a 3048 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3049
b6046155
EZ
30502009-07-13 Eli Zaretskii <eliz@gnu.org>
3051
3052 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3053 local copy of dirfilename.
3054
fb6b6049
KH
30552009-07-13 Kenichi Handa <handa@m17n.org>
3056
e2402a5e
KH
3057 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3058 against max_char.
3059
fb6b6049
KH
3060 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3061 calling XSYMBOL (sym).
3062
65156807
EZ
30632009-07-11 Eli Zaretskii <eliz@gnu.org>
3064
1ac9108a
SM
3065 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3066 New function.
3067 (directory_files_internal) [WINDOWSNT]:
3068 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3069 the filesystem of the directory is fast or slow.
3070
3071 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3072 file name.
3073 (is_slow_fs): New function.
3074 (stat): Use it to determine whether to issue more system calls to
3075 get accurate file attributes, when w32-get-true-file-attributes is
3076 `local'.
3077
e0ab5fcf
JD
30782009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3079
3080 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3081 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3082 parameter font-parameter as default to the font dialog.
3083
784ceded
KH
30842009-07-10 Kenichi Handa <handa@m17n.org>
3085
3086 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3087
fb8edc0b
EZ
30882009-07-09 Eli Zaretskii <eliz@gnu.org>
3089
1ac9108a 3090 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3091
fb8edc0b
EZ
3092 * w32.c (stat): Treat UNC file names as residing on remote
3093 drives. (Bug#3542)
3094
635c75b1
KH
30952009-07-09 Kenichi Handa <handa@m17n.org>
3096
3097 * fontset.c (fontset_find_font): Fix previous change.
3098
c1d5ce94
MA
30992009-07-08 Michael Albinus <michael.albinus@gmx.de>
3100
3101 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3102 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3103 error flag.
3104
edb61b39
KH
31052009-07-08 Kenichi Handa <handa@m17n.org>
3106
374bf7e4
KH
3107 * fontset.c (fontset_find_font): Fix the logic of handling
3108 charset_matched.
3109 (font_for_char): Delete unused var.
3110 (generate_ascii_font_name): Delete it.
3111
edb61b39
KH
3112 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3113
3114 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3115 (encode_coding_sjis): Fix the code range check.
3116
0f3f018c
CY
31172009-07-07 Chong Yidong <cyd@stupidchicken.com>
3118
3119 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3120 (Fexpand_file_name): Copy string data properly (Bug#3772).
3121
fcaf6f3a
JD
31222009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3123
3124 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3125 first MapNotify.
3126
6809ca75
KH
31272009-07-07 Kenichi Handa <handa@m17n.org>
3128
3129 * character.h (unibyte_has_multibyte_table): Delete extern.
3130 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3131
3132 * charset.c (Fset_charset_priority): Update charset_unibyte.
3133 (syms_of_charset): Initialize charset_unibyte.
3134
3135 * character.c (unibyte_has_multibyte_table): Delete it.
3136 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3137 charset_unibyte.
3138 (multibyte_char_to_unibyte_safe): Likewise.
3139 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3140
1ac9108a 3141 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3142 (x_produce_glyphs): Likewise.
3143
3144 * .gdbinit (xcharset): Fix the treating $arg0.
3145
ad9e2d54
EZ
31462009-07-04 Eli Zaretskii <eliz@gnu.org>
3147
3148 Emulation of `getloadavg' on MS-Windows.
3149 * w32.c: Include float.h
3150 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3151 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3152 (get_native_system_info, get_system_times): New functions.
3153 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3154 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3155 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3156 g_b_init_get_system_times, and num_of_processors.
3157
0a3472c7
JR
31582009-07-03 Jason Rumney <jasonr@gnu.org>
3159
3160 * w32term.c (w32_initialize): Use standard types.
3161
80904120
EZ
31622009-07-03 Eli Zaretskii <eliz@gnu.org>
3163
3164 * dired.c (Ffile_attributes): Decode user and group names by the
3165 locale's encoding. (Bug#3443)
3166
6978862d
DN
31672009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3168
f8d23104
DN
3169 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3170 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3171
3172 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3173
3174 * term.c (init_tty): Remove spurious #ifdef.
3175
6978862d
DN
3176 * m/mips.h: Mention this file is also used for netbsd.
3177 * m/pmax.h: Remove file.
3178
e044e4fc
JD
31792009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3180
3181 * xterm.h (struct x_display_info): Add invisible_cursor.
3182 (struct x_output): Add current_cursor.
3183
3184 * xterm.c (XTtoggle_invisible_pointer): New function.
3185 (x_define_frame_cursor): Don't define cursor if invisible or the
3186 same as before. Set current_cursor.
3187 (x_create_terminal): Set toggle_invisible_pointer_hook.
3188
3189 * xfns.c (make_invisible_cursor): New function.
3190 (x_set_mouse_color): Call make_invisible_cursor.
3191 Set current_cursor.
3192 (x_window): Set current_cursor.
3193
3194 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3195
3196 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3197 inserting a character.
3198 (read_avail_input): Call frame_make_pointer_visible.
3199
3200 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3201 (frame_make_pointer_invisible, frame_make_pointer_visible):
3202 New functions.
e044e4fc
JD
3203 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3204
3205 * frame.h: Declare frame_make_pointer_invisible and
3206 frame_make_pointer_visible.
3207 (struct frame): Add pointer_invisible.
3208
574c8efa
JD
32092009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3210
7b507248
JD
3211 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3212 frame isn't visible.
3213 (xg_frame_resized): If width/height is -1, get size of window
3214 from X server.
3215
3216 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3217 for MapNotify.
3218
835bdaa7 3219 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3220 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3221 (flush_and_sync): Reintroduce.
574c8efa 3222
3f1c6666 32232009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3224
31fd7c5c 3225 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3226
3227 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3228 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3229
3230 * frame.h: Declare Qsticky.
3231
cad9ef74
JD
3232 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3233
3234 * nsfns.m (ns_frame_parm_handlers): Ditto.
3235
3236 * frame.c: Declare Qsticky.
3237 (frame_parms): Add sticky.
3238
3239 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3240
3241 * xterm.h: Declare x_set_sticky.
3242
3243 * xterm.c (x_set_sticky): New function.
3244
69b16610
JD
3245 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3246 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3247 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3248
3249 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3250
3251 * frame.c: Qmaximized is new.
3252 (x_set_frame_parameters): Do not handle fullscreen specially.
3253 Only set width and height if explicitly set.
3254 (x_set_fullscreen): Handle Qmaximized.
3255 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3256 (syms_of_frame): Initialize Qmaximized.
3257
1ac9108a
SM
3258 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3259 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3260
3261 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3262 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3263 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3264 set gravity to NorthWestGravity when USE_GTK.
3265 (set_wm_state): New function.
31fd7c5c 3266 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3267 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3268 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3269 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3270 to x_real_positions and x_fullscreen_adjust.
3271
3272 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3273 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3274 flush_and_sync.
3275 (xg_height_changed): New function.
3276 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3277 and gtk_window_set_policy. Set frame gravity after parsing the
3278 geometry string.
3f1c6666
JD
3279 (xg_update_frame_menubar, free_frame_menubar)
3280 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3281 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3282 Remove calls to xg_frame_set_char_size.
3283
fd503d99
KH
32842009-07-01 Kenichi Handa <handa@m17n.org>
3285
3286 * keyboard.c (decode_keyboard_code): New function.
3287 (tty_read_avail_input): Decode the input bytes if necessary.
3288
1ac9108a
SM
3289 * coding.c (setup_coding_system):
3290 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3291 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3292 use Qno_conversion.
3293
24ed93fb
YM
32942009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3295
3296 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3297
99061dfc
CY
32982009-06-30 Chong Yidong <cyd@stupidchicken.com>
3299
1ac9108a 3300 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3301
ff90fbde
JR
33022009-06-30 Jason Rumney <jasonr@gnu.org>
3303
3304 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3305 is already loaded.
3306 Set user model ID if supported (bug#1849).
3307
5f445726
JM
33082009-06-29 Jim Meyering <meyering@redhat.com>
3309
3310 Remove useless if-before-xfree test.
3311 * nsfont.m (nsfont_close): Remove useless test.
3312 * term.c (delete_tty): Likewise.
3313 * w32.c (system_process_attributes): Likewise.
3314 * w32font.c (w32font_close): Likewise.
3315 * xfaces.c (x_free_gc): Likewise.
3316 * xselect.c (buffer): Likewise.
3317
b9607587
AS
33182009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3319
3320 * process.c (send_process): Keep decoded string in a local
3321 variable and protect it from GC. (Bug#3521)
3322
89ba96f4
EZ
33232009-06-28 Eli Zaretskii <eliz@gnu.org>
3324
3325 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3326 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3327
098a1589
CY
33282009-06-28 Chong Yidong <cyd@stupidchicken.com>
3329
485422be
CY
3330 * xdisp.c (start_display, handle_face_prop)
3331 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3332 (redisplay_window, try_window_id, produce_image_glyph):
3333 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3334
098a1589
CY
3335 * xterm.c (x_update_window_begin, x_new_focus_frame)
3336 (x_scroll_bar_handle_click, handle_one_xevent)
3337 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3338 (x_make_frame_visible, x_make_frame_invisible)
3339 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3340 code chunks that are now obsolete.
3341
78c38319
MA
33422009-06-28 Michael Albinus <michael.albinus@gmx.de>
3343
3344 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3345 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3346 for hours, when optimzation is enabled.
3347 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3348 (xd_read_message): Make them static.
3349
4189ed40
CY
33502009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3351
3352 * term.c (turn_on_face): Allow simultaneously bold and dim
3353 terminal faces (Bug#3530).
3354
cd9b5e16
CY
33552009-06-27 Chong Yidong <cyd@stupidchicken.com>
3356
4e23bedb
CY
3357 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3358
cd9b5e16
CY
3359 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3360 truncation glyphs (Bug#3686).
3361
07cc3c35
GM
33622009-06-27 Glenn Morris <rgm@gnu.org>
3363
3364 * m/pmax.h: Restore file, with only netbsd portions.
3365
31fd7c5c 33662009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3367
cd9b5e16 3368 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3369
42d4a64f
KH
33702009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3371
3372 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3373 the arg FORCE_SYMBOL.
3374
930fe55b 33752009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3376
3377 * fontset.c (fontset_find_font): When a usable rfont_def is found
3378 in a fallback font-group, make it the first element of the group.
3379
57ebc3fd
CY
33802009-06-24 Chong Yidong <cyd@stupidchicken.com>
3381
3382 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3383
f084f942
KH
33842009-06-24 Kenichi Handa <handa@m17n.org>
3385
3386 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3387 set for C.
3388 (fontset_font): Record the availability of a font for C both in
3389 the realized fontsets of the current one and the default one.
3390
2f686c87
DN
33912009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3392
3393 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3394 conditional, it is always defined on AIX.
3395
666e158e
MB
33962009-06-23 Miles Bader <miles@gnu.org>
3397
3398 * window.c (Vrecenter_redisplay): New variable.
3399 (syms_of_window): Initialize it.
3400 (Qtty): New extern declaration.
3401 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3402
c6da7cd2
JM
34032009-06-23 Jim Meyering <meyering@redhat.com>
3404
1ac9108a
SM
3405 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3406 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3407 pointer dereferences are guaranteed to be valid.
c6da7cd2 3408
678dca3d
KH
34092009-06-23 Kenichi Handa <handa@m17n.org>
3410
74d75424
KH
3411 * emacs.c (main): Call init_font ().
3412
3413 * font.h (Vfont_log): Extern it.
3414 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3415
3416 * font.c (font_sort_entities, font_list_entities)
3417 (font_matching_entity, font_open_entity)
3418 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3419 (Vfont_log): Delete static.
3420 (font_log_env_checked): Delete this variable.
3421 (font_add_log): Don't check font_log_env_checked.
3422 (font_deferred_log): Check Vfont_log.
3423 (init_font): New function.
3424
678dca3d
KH
3425 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3426
3427 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3428
3429 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3430
3431 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3432
3433 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3434 (face_for_char): Don't call font_deferred_log here.
3435 (font_for_char): Likewise.
3436
8a668709
CY
34372009-06-22 Chong Yidong <cyd@stupidchicken.com>
3438
9a01ee33
CY
3439 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3440 rather than its background_width for drawing the overline and
3441 underline (Bug#489).
3442
3443 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3444 rather than its background_width for drawing the overline and
3445 underline (Bug#489).
ec7c9926
CY
3446 (xg_default_icon_file): New variable.
3447 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3448 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3449
8a668709
CY
3450 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3451 (load_overlay_strings): Remove externs.
3452 (fast_find_position): Function deleted.
3453 (mouse_face_from_buffer_pos): New function, based on
3454 fast_find_position. Correctly handle before-strings,
3455 display-strings, and after-strings (Bug#1220).
3456 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3457
4d4c02d8
CY
34582009-06-21 Chong Yidong <cyd@stupidchicken.com>
3459
1ac9108a 3460 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3461 (move_it_in_display_line_to, move_it_in_display_line_to)
3462 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3463
70243478
CY
34642009-06-21 Chong Yidong <cyd@stupidchicken.com>
3465
3466 * Branch for 23.1.
3467
13087e59
JR
34682009-06-21 Jason Rumney <jasonr@gnu.org>
3469
3470 * w32term.c (keyboard_codepage): New static variable.
3471 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3472 (w32_read_socket) [WM_CHAR]: Use it to decode character
3473 input (bug#3237).
3474 (w32_initialize): Initialize it.
3475 (codepage_for_locale): New function.
3476
4735b74e
KR
34772009-06-20 Ken Raeburn <raeburn@raeburn.org>
3478
3479 * process.c (status_message): Pass Faset index argument as a lisp
3480 object, so as to work with USE_LISP_UNION_TYPE.
3481
0e727afa
YM
34822009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3483
3484 * coding.c (Ffind_coding_systems_region_internal):
3485 Cache checked characters.
3486
cf299835
KH
34872009-06-18 Kenichi Handa <handa@m17n.org>
3488
1ac9108a 3489 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3490
90f20d94
AS
34912009-06-18 Andreas Schwab <aschwab@redhat.com>
3492
3493 * xdisp.c (redisplay_internal): Check that the frame is still
3494 live after redisplay of its windows.
3495 (redisplay_windows): Check that the window is still live.
3496
7f1faf1c
KH
34972009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3498
3499 * coding.c (detect_coding_utf_16): Fix previous change.
3500
cc13543e
KH
35012009-06-16 Kenichi Handa <handa@m17n.org>
3502
3503 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3504 UTF-16 by checking the dispersion of Eth and Oth bytes.
3505
977b85f4
AS
35062009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3507
3508 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3509
66bd43d1
KH
35102009-06-15 Kenichi Handa <handa@m17n.org>
3511
3512 * process.c (status_message): Fix previous change. Be sure to
3513 decode a localized string.
3514
cb5ca9c5
YM
35152009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3516
3517 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3518 add comment explaining why.
3519
ec7709ba 35202009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3521
ec7709ba 3522 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3523
4b7f335c
AR
35242009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3525
3526 * nsfont.m (ns_attribute_value): Remove.
3527 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3528 (ns_has_attribute): Shrink the normal range.
3529 (ns_findfonts): Don't worry about requested spec in determining
3530 need for synthItal.
e41820ee 3531 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3532
73b26103
SZ
35332009-06-14 Seiji Zenitani <zenitani@mac.com>
3534
3535 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3536
5753e4da
KH
35372009-06-11 Kenichi Handa <handa@m17n.org>
3538
3539 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3540 overhang for the static composition case.
3541
3561b671
KH
35422009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3543
5753e4da
KH
3544 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3545 overhang for the automatic composition case.
3546
3561b671
KH
3547 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3548 composition case.
3549
852bbd41
CY
35502009-06-10 Chong Yidong <cyd@stupidchicken.com>
3551
3552 * xdisp.c (get_next_display_element): When handling wrap-prefix
3553 and line-prefix, treat \n as a control character (bug#3502).
3554
9903d1e6
KH
35552009-06-10 Kenichi Handa <handa@m17n.org>
3556
3557 * font.c (font_parse_family_registry): Fix for one-char foundry.
3558 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3559
0bcbaaaa
CY
35602009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3561
3562 * process.c (status_message): Fix handling of multibyte signal
3563 string (Bug#3499).
3564
40aa3f13
JM
35652009-06-09 Jim Meyering <meyering@redhat.com>
3566
1f80c7e2
CY
3567 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3568 color name is missing.
40aa3f13 3569
72d51285
KH
35702009-06-09 Kenichi Handa <handa@m17n.org>
3571
3572 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3573 FROM-CODE and TO-CODE are codepoints of CHARSET.
3574
c1d04d84
AR
35752009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3576
3577 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3578
35792009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3580
3581 Changes to support :script/:lang/:otf in NS font driver.
3582 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3583 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3584 indicate not part of font driver interface, and change callers.
3585 (ns_get_family): Remove pointless null check.
3586 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3587 ns_spec_to_descriptor, ns_descriptor_to_entity.
3588 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3589 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3590 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3591 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3592 (ns_get_req_script, ns_accumulate_script_ranges)
3593 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3594 New functions.
3595 (nsfont_list, nsfont_match): Use ns_findfonts.
3596 (nsfont_open): Use font descriptor instead of traits.
3597 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3598 (dump_glyphstring): Rename to ns_dump_glyphstring.
3599
c7eb9816
AR
3600 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3601
c1d04d84
AR
3602 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3603
3604 * fontset.c (fontset_from_font): Remove NS-specific code.
3605
ec7709ba 36062009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3607
3608 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3609 nonactive windows.
3610
31fd7c5c 36112009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3612
1ac9108a 3613 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3614
68852c13 36152009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3616
3617 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3618
6756cd1d
CY
36192009-06-07 Chong Yidong <cyd@stupidchicken.com>
3620
3621 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3622 account for the overflowing of newlines into the last glyph on the
3623 display line (Bug#3482).
3624
28bf482a
DR
36252009-06-05 David Reitter <david.reitter@gmail.com>
3626
ec7709ba
JB
3627 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3628 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3629 Fns_selection_exists_p, Fns_selection_owner_p.
3630
fdb55376
JR
36312009-06-03 Jason Rumney <jasonr@gnu.org>
3632
3633 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3634 available. (Bug#3379)
3635
05129fbe
KH
36362009-05-29 Kenichi Handa <handa@m17n.org>
3637
1ac9108a
SM
3638 * coding.c (get_translation_table):
3639 Check Venable_character_translation.
05129fbe 3640
ec7709ba 36412009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3642
ec7709ba
JB
3643 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3644 (x_make_frame_visible): Move frame to front rather than calling
15891144 3645 ns_raise_frame().
ec7709ba 3646 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3647 isn't key window.
ec7709ba 3648 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3649 drawRect may be called by NSView even if the frame is hidden.
3650
ec7709ba
JB
3651 * nsfns.m (Fx_create_frame): Follow other ports in
3652 determining visibility; default to t. Ensure async_visible is set.
15891144 3653
21f73755
EZ
36542009-05-23 Eli Zaretskii <eliz@gnu.org>
3655
3656 * dired.c (Ffile_attributes): Doc fix.
3657
34001e41
CY
36582009-05-22 Chong Yidong <cyd@stupidchicken.com>
3659
3660 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3661
46306a17
SM
36622009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3663
3664 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3665 and xfont_scratch_props.
3666 (syms_of_xfont): Do it here instead.
3667 (xfont_find_ccl_program): Delete, unused.
3668 (xfont_open): Delete unused var `i'.
3669
ef6e0694
KH
36702009-05-21 Kenichi Handa <handa@m17n.org>
3671
3672 * fontset.c (Qlatin): Don't make it static.
3673
46306a17
SM
3674 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3675 New functions.
ef6e0694
KH
3676 (xfont_scripts_cache, xfont_scratch_props): New variables.
3677 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3678 (xfont_list_pattern): Argument changed. Callers changed.
3679 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3680 (xfont_list): Don't reject a font spec with :script property.
3681 (xfont_has_char): Fix setting of encoding.
3682 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3683 xfont_scratch_props.
3684
36852009-05-19 Kenichi Handa <handa@m17n.org>
3686
46306a17 3687 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3688 Callers changed.
3689
36902009-05-18 Kenichi Handa <handa@m17n.org>
3691
3692 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3693
ac71ced7
SM
36942009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3695
3696 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3697 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3698
1c6d1051
YM
36992009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3700
3701 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3702 (x_delete_terminal): Dissociate resource database from display and
3703 then call XrmDestroyDatabase before closing display.
3704
9b9b779c
AR
37052009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3706
3707 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3708 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3709 whether selected frame is viable before raising it (based on patch
3710 by David Reitter), and improve commentary.
3711 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3712
cccd42d5
KH
37132009-05-15 Kenichi Handa <handa@m17n.org>
3714
3715 * font.c (Ffont_spec): Check arguments.
3716
337fbd17
CY
37172009-05-14 Chong Yidong <cyd@stupidchicken.com>
3718
3719 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3720 weight when testing attributes (Bug#3282).
3721
47a6002f
JD
37222009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3723
3724 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3725 what we expect to get in the next ConfigureNotify event.
3726
9cb363db
YM
3727 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3728 before Xft one (Bug#1696).
3729
b9126609
CY
37302009-05-07 David Reitter <david.reitter@gmail.com>
3731
3732 * nsfns.m (Fx_display_planes): Compute bitplanes using
3733 NSBitsPerPixelFromDepth (Bug#3207).
3734
27a69fd9
CY
37352009-05-10 Chong Yidong <cyd@stupidchicken.com>
3736
3737 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3738
00f37552
TTN
37392009-05-10 Ulrich Mueller <ulm@gentoo.org>
3740
3741 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3742
2d82a920
DR
37432009-05-07 David Reitter <david.reitter@gmail.com>
3744
ec7709ba
JB
3745 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3746 Respect mouse face background.
2d82a920 3747
46b0d52d
DR
37482009-05-07 David Reitter <david.reitter@gmail.com>
3749
ec7709ba
JB
3750 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3751 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3752 in ns_update_begin and ns_update_end.
3753
ce1b23bb
SM
37542009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3755
5996e1b7
SM
3756 * nsfns.m (ns_get_screen): Rewrite.
3757 Don't presume selected-frame is of type `ns'.
3758
ba98e3a0
SM
3759 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3760 all drivers.
3761
ce1b23bb
SM
3762 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3763
bcda200f
YM
37642009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3765
3766 * keyboard.h (add_user_signal): Fix typo in extern.
3767
3768 * lisp.h (add_user_signal): Remove extern.
3769
3770 * unexelf.c (unexec): Consider a section to precede the .bss section
3771 if its addresses overlap that of .bss.
3772 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3773 instead of dumping process.
3774
864660a2
SM
37752009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3776
3777 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3778
50da4e56
SM
37792009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3780
3781 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3782
51520a1a
DN
37832009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3784
3785 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3786 any statements.
3787
409ea3a1
AS
37882009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3789
59c4c60f
AS
3790 * process.c (read_process_output): Make sure the current buffer is
3791 always restored.
3792
409ea3a1
AS
3793 * coding.c (record_conversion_result): Don't modify
3794 Vlast_code_conversion_error for successful result.
3795 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3796
56f00ed2
KH
37972009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3798
3799 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3800 (load_charset_map): Remove unnecessary code.
56f00ed2 3801
4491c9d2
DR
38022009-04-30 David Reitter <david.reitter@gmail.com>
3803
35f5b128 3804 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3805 through f24.
3806
6970f632
CY
38072009-04-30 Chong Yidong <cyd@stupidchicken.com>
3808
3809 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3810
3811 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3812 face_at_buffer_position.
3813 (face_before_or_after_it_pos, get_next_display_element)
3814 (note_mouse_highlight): Update face_at_buffer_position call.
3815
3816 * term.c (term_mouse_highlight):
3817 * msdos.c (IT_note_mouse_highlight):
3818 * fontset.c (Finternal_char_font):
35f5b128 3819 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3820
3821 * dispextern.h (face_at_buffer_position): Update prototype.
3822
0c616f63
KH
38232009-04-30 Kenichi Handa <handa@m17n.org>
3824
35f5b128 3825 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3826
ad3aaf33
AS
38272009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3828
3829 * callproc.c (Fcall_process): Fix GC protection. Make sure
3830 current buffer is always restored.
3831
c3c963a0
YM
38322009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3833
3834 * atimer.c (init_atimer): Also clear stopped_atimers.
3835
3836 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3837
7e3386cb
YM
3838 * process.c (create_process): Clean up merger residues of
3839 2008-07-17 change.
3840
91f68422
CY
38412009-04-29 Ulrich Mueller <ulm@gentoo.org>
3842
3843 * lread.c (Vread_circle): New variable.
3844 (read1): Disable recursive read if Vread_circle is nil.
3845
24b34550
KH
38462009-04-29 Kenichi Handa <handa@m17n.org>
3847
3848 * fontset.h (set_default_ascii_font): Delete extern.
3849
3850 * fontset.c (set_default_ascii_font): Delete this unused function.
3851
3852 * frame.c (x_set_font): When ARG is a font-object, check if the
3853 font-object matches with the ASCII font-spec of the frame's
9c358bda 3854 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3855
77bf07e1
AS
38562009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3857
3858 * fns.c (Flocale_info): Protect vector from GC during decoding.
3859
3860 * process.c (Fstart_process): Protect argv strings from GC during
3861 encoding.
3862
2c55aacf
AS
38632009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3864
3865 * sysdep.c: Include <ctype.h>.
3866
b892d3c9
DR
38672009-04-27 David Reitter <david.reitter@gmail.com>
3868
35f5b128 3869 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3870 Remove commented-out code.
3871
9d0644c4
JB
38722009-04-26 Johan Bockgård <bojohan@gnu.org>
3873
3874 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3875
b7053016
JR
38762009-04-25 Jason Rumney <jasonr@gnu.org>
3877
3878 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3879
4e8231f3
YM
38802009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3881
3882 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3883 Swap bytes in short integer if fringe bitmap width > 8.
3884
493dcf2c
KH
38852009-04-23 Kenichi Handa <handa@m17n.org>
3886
3887 * xfaces.c (Fx_list_fonts): If a font size is specified in
3888 PATTERN, set it in returned scalable fonts.
3889
401e9e57
CY
38902009-04-22 Chong Yidong <cyd@stupidchicken.com>
3891
708e05dc
CY
3892 * keyboard.c (Fset_input_meta_mode): Doc fix.
3893
3894 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3895
1ac9108a 3896 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3897
3898 * coding.c (Fterminal_coding_system): Doc fix.
3899
3900 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3901 (Fx_display_pixel_height, Fx_display_planes)
3902 (Fx_display_color_cells, Fx_server_max_request_size)
3903 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3904 (Fx_display_mm_height, Fx_display_mm_width)
3905 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3906 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3907 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3908 (check_x_display_info): Handle terminal objects instead of
3909 terminal ids.
3910
401e9e57
CY
3911 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3912 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3913 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3914 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3915
df80c7f0
KH
39162009-04-21 Kenichi Handa <handa@m17n.org>
3917
5a8f12af 3918 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3919 (font_score): Check AVGWIDTH too.
908567ef 3920
df80c7f0
KH
3921 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3922 worst case.
1ac9108a
SM
3923 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3924 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3925
705af33f
JR
39262009-04-19 Jason Rumney <jasonr@gnu.org>
3927
3928 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3929 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3930
3931 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3932 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3933 get_phys_cursor_geometry.
3934
b71ac3dd 3935 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3936 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3937 using get_phys_cursor_geometry.
3938
3939 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3940 correctly calculated.
3941
dc2933eb
JD
39422009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3943
1ac9108a
SM
3944 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3945 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3946 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3947 is deprecated.
3948
973e7849
AS
39492009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3950
3951 * font.c (font_put_frame_data): Use xfree instead of free.
3952
314d66f4
JB
39532009-04-17 Juanma Barranquero <lekktu@gmail.com>
3954
3955 * w32font.c (Qja, Qko): Remove declarations.
3956 (syms_of_w32font): Don't DEFSYM them.
3957
cf702558
CY
39582009-04-17 Chong Yidong <cyd@stupidchicken.com>
3959
3960 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3961
3962 * font.h (Qja, Qko): Extern them.
3963
3964 * ftfont.c (Qja, Qko): Remove declarations.
3965
3966 * xfont.c (Qja, Qko): Remove declarations.
3967
b50504f5
KH
39682009-04-17 Kenichi Handa <handa@m17n.org>
3969
bde25748
KH
3970 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3971 string from a vector to handle Latin-1 characters correctly.
3972
b50504f5
KH
3973 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3974 entity even if the cache hits.
3975
f4646fff
AS
39762009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3977
3978 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3979 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3980
e7deaab0
AS
3981 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3982 * lisp.h: Adjust prototypes.
3983
0a0e7d49
CY
39842009-04-16 Chong Yidong <cyd@stupidchicken.com>
3985
3986 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3987 change (Bug#3003).
3988
3c908a57
KH
39892009-04-16 Kenichi Handa <handa@m17n.org>
3990
1ac9108a 3991 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3992
3993 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3994 adstyle.
3995
3996 * ftfont.c (Qja, Qko): Don't make them static.
3997 (enum ftfont_cache_for): New enum.
3998 (fc_charset_table): Undo the previous change.
3999 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4000 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4001 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4002 non-scarable font, try to get AVERAGE_WIDTH.
4003 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4004 Change ft_face_cache from a list of a hash-table. Don't check
4005 `ja' and `ko' adstyle here.
4006 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4007 FTFONT_CACHE_FOR_CHARET.
4008 (ftfont_get_charset): Undo the previous change.
1ac9108a 4009 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4010 (ftfont_close): Likewise.
4011 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4012
4013 * font.c (font_sort_entites): Change the meaning of the arg
4014 BEST-ONLY. Don't optimize for VEC of lenght 1.
4015 (font_select_entity): Just return the value of font_sort_entites.
4016
4017 * xfaces.c (merge_face_vectors): Reflect font properties in
4018 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4019 font_clear_prop if a face attribute doesn't change.
4020
3c908a57
KH
4021 * charset.h (charset_ksc5601): Extern it.
4022
4023 * charset.c (charset_ksc5601): New variable.
4024 (Fdefine_charset_internal): Set charset_ksc5601.
4025 (init_charset_once): Initialize charset_ksc5601 to -1.
4026
d65859c3
DN
40272009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4028
4029 * fileio.c (history_delete_duplicates): Remove unused declaration.
4030
4031 * callint.c (history_delete_duplicates): New declaration.
4032 (Fcall_interactively): Remove command history duplicates when
4033 history_delete_duplicates is true.
4034
3ba010e5
EZ
40352009-04-14 Eli Zaretskii <eliz@gnu.org>
4036
4037 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4038
06f19b91
KH
40392009-04-14 Kenichi Handa <handa@m17n.org>
4040
4041 * font.c (Ffont_info): Fix docstring. Fix the second element of
4042 the returned value (bug#2949).
4043
2cce8bfc
CY
40442009-04-14 Chong Yidong <cyd@stupidchicken.com>
4045
4046 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4047
d156542d
KH
40482009-04-14 Kenichi Handa <handa@m17n.org>
4049
4050 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4051 encoding charset is ascii_compatible.
4052
4053 * charset.c (Fdefine_charset_internal): Make charset
4054 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4055 code_offset is 0, and covers all ASCII characters.
4056
86fa089e
SM
40572009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4058
4059 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4060 (ns_string_to_pasteboard_internal):
4061 * nsmenu.m (process_dialog):
4062 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4063 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4064 * lisp.h (Fx_load_color_file): Declare.
4065
a8a3728b
KH
40662009-04-13 Kenichi Handa <handa@m17n.org>
4067
1ac9108a 4068 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4069 (font_select_entity): Suppress the code to optimize for the same
4070 kind of fonts.
4071 (font_load_for_lface): Get a font that supports at least ASCII
4072 characters.
4073
4074 * ftfont.c (Qja, Qko): New variables.
4075 (fc_charset_table): Delete uniquifier data for iso8859-1.
4076 (ftfont_get_latin1_charset): New function.
4077 (get_adstyle_property): New function.
4078 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4079 bitmap fonts.
4080 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4081 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4082 `ko' or `ja'.
4083 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4084 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4085 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4086 property.
4087 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4088 (syms_of_ftfont): DEFSYM Qja and Qko.
4089
483670b5
KH
40902009-04-09 Kenichi Handa <handa@m17n.org>
4091
12b55765
KH
4092 * charset.c (map_charset_chars): For a charset of `superset'
4093 method, fix calculation of code range.
4094
483670b5
KH
4095 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4096 from the list of extra properties.
4097 (font_clear_prop): Be sure to delete `:name' font property.
4098
57d3b93b
KH
40992009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4100
b4b2c2ca
YM
4101 * dispnew.c (redraw_overlapping_rows): Fix detection of
4102 overlapping for topmost and bottommost rows.
4103
1ac9108a 4104 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4105
472c3609
JR
41062009-04-06 Jason Rumney <jasonr@gnu.org>
4107
4108 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4109
ab193662
KH
41102009-04-06 Kenichi Handa <handa@m17n.org>
4111
4112 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4113
4114 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4115
0c26f026
KH
41162009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4117
4118 * ftfont.c (ftfont_open): Fix checking of the return value of
4119 FT_Load_Char. Fix setting font->underline_thickness.
4120
e173bbce
CY
41212009-04-04 Chong Yidong <cyd@stupidchicken.com>
4122
4123 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4124 (Fterminal_parameters, Fterminal_parameter)
4125 (Fset_terminal_parameter): In doc string, refer to terminal
4126 objects rather than terminal ids.
4127
693a2698
EZ
41282009-04-04 Eli Zaretskii <eliz@gnu.org>
4129
4130 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4131 ret_lim_data. (Bug#2867)
4132
d5221487
CY
41332009-04-03 Chong Yidong <cyd@stupidchicken.com>
4134
4135 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4136 so they don't get wider than the window, matching 2006-01-23
4137 change to the partner function in xdisp.c (Bug#2800).
4138
223509a3
KH
41392009-04-03 Kenichi Handa <handa@m17n.org>
4140
4141 * print.c (print_object): Make each lowest sub_char_table start a
4142 new line (Bug#2866).
4143
74fcd0b1
KH
41442009-04-02 Kenichi Handa <handa@m17n.org>
4145
4146 * fontset.c (fontset_font): Record no-font when a fontset
4147 explicitly tells not to try another font-specs.
4148
c542407d
SM
41492009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4150
4151 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4152
e3869731
KH
41532009-03-30 Kenichi Handa <handa@m17n.org>
4154
d8d2f142
KH
4155 * fontset.c (fontset_from_font): Specify only registry in a
4156 font-spec for all characters supported by that registry.
4157
e3869731
KH
4158 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4159 even if HAVE_M17N_FLT is not defined.
4160
5da5f805
CY
41612009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4162
4163 * ftfont.c: Conditionalize prototyping and use of
4164 ftfont_variation_glyphs.
4165
ab226c50
SM
41662009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4167
9628fed7
SM
4168 * frame.c (delete_frame): Work around compiler bug.
4169
4170 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4171 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4172 Some more EMACS_INT.
4173 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4174
4175 * xdisp.c (dump_glyph): Fix typo.
4176
ae19ba7c
SM
4177 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4178 (adjust_markers_gap_motion, adjust_markers_for_delete)
4179 (adjust_markers_for_insert, adjust_point)
4180 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4181 (make_gap, copy_text, count_size_as_multibyte, insert)
4182 (insert_and_inherit, insert_before_markers)
4183 (insert_before_markers_and_inherit, insert_1)
4184 (count_combining_before, count_combining_after, insert_1_both)
4185 (insert_from_string, insert_from_string_before_markers)
4186 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4187 (insert_from_buffer_1, adjust_after_replace)
4188 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4189 (replace_range_2, del_range, del_range_1, del_range_byte)
4190 (del_range_both, del_range_2, modify_region)
4191 (prepare_to_modify_buffer, signal_before_change)
4192 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4193 for buffer positions and sizes.
4194 * lisp.h: Adjust prototypes accordingly.
4195
4196 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4197 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4198 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4199
ab226c50
SM
4200 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4201
46dfb8fb
JD
42022009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4203
4204 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4205 lines and columns so we keep the same pixel height and width.
4206
4207 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4208 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4209 (x_handle_net_wm_state): New function to update frame parameter
4210 fullscreen.
4211 (x_term_init): Initialize atoms for _NET_WM_STATE.
4212
4213 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4214
d347e494
SM
42152009-03-27 Kevin Ryde <user42@zip.com.au>
4216
4217 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4218 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4219 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4220 (Fgpm_mouse_stop): Pass that new parameter.
4221 * termhooks.h (close_gpm): Adjust prototype.
4222
84db11d6
SM
42232009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4224
c95a5008
SM
4225 * lisp.h (Fx_focus_frame): Declare.
4226
84db11d6
SM
4227 * callint.c (Fcall_interactively): For '^' just delegate the work to
4228 handle-shift-selection.
4229 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4230
0a1958d6
CY
42312009-03-24 Chong Yidong <cyd@stupidchicken.com>
4232
0bfdff23
CY
4233 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4234
0a1958d6
CY
4235 * data.c (Qinteractive_form): New variable.
4236 (Finteractive_form): Use it.
4237
4238 * eval.c (Fcommandp): Use Qinteractive_form.
4239
58aec0d6
JR
42402009-03-24 Jason Rumney <jasonr@gnu.org>
4241
4242 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4243 Calculate total size precisely. Decode environment variables
4244 before substituting. (Bug#38)
4245
553dd618
KH
42462009-03-24 Kenichi Handa <handa@m17n.org>
4247
4248 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4249 encoding (Bug#2722).
553dd618 4250
c39ea606
JD
42512009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4252
4253 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4254 that gdpy is set.
4255
bc9b2b5e
AM
42562009-03-22 Alan Mackenzie <acm@muc.de>
4257
4258 * callint.c (Finteractive): Clarify the doc string - even
4259 promptless elements need \n separators.
4260
9f995a76
JR
42612009-03-22 Jason Rumney <jasonr@gnu.org>
4262
4263 * w32term.c (syms_of_w32term): Doc fix for
4264 x-use-underline-position-properties.
4265
22749e9a
EZ
42662009-03-21 Eli Zaretskii <eliz@gnu.org>
4267
4268 * w32.c (getpwuid): Change argument type to unsigned.
4269 (struct w32_id): Change type of `rid' member to unsigned.
4270 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4271 argument ID to unsigned. All callers changed.
4272 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4273
e00553bf
EZ
42742009-03-20 Eli Zaretskii <eliz@gnu.org>
4275
4276 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4277 negative, produce a float value.
4278
4279 * dired.c (make_uid, make_gid): New functions.
4280 (Ffile_attributes): Use them to avoid negative UID and GID.
4281
f761d6b6
JB
42822009-03-20 Juanma Barranquero <lekktu@gmail.com>
4283
4284 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4285 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4286 Fix typos in docstrings.
4287
d507f8d7
KH
42882009-03-19 Kenichi Handa <handa@m17n.org>
4289
4290 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4291 changed, use font_load_for_lface to get a new font object.
4292 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4293
4294 * frame.c (x_set_font): Handle the case that ARG is a cons.
4295
c68845e0
GM
42962009-03-19 Glenn Morris <rgm@gnu.org>
4297
4298 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4299
bfa49dd1
CY
43002009-03-19 Chong Yidong <cyd@stupidchicken.com>
4301
4302 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4303
8458d4c1
KH
43042009-03-19 Kenichi Handa <handa@m17n.org>
4305
4306 * charset.c (load_charset_map_from_file): When a mapfile can't be
4307 loaded, signal an error.
4308
78e7d1fe
EZ
43092009-03-18 Eli Zaretskii <eliz@gnu.org>
4310
4311 * dired.c (Ffile_attributes): Make sure UID and GID are always
4312 positive, even if the value is too large for a positive EMACS_INT.
4313 Doc fix.
4314
4315 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4316
5da9fdfa
YM
43172009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4318
4319 * xmenu.c (xdialog_show): Move Fredisplay call ...
4320 (Fx_popup_dialog): ... here.
4321
7519c40d
SM
43222009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4323
4324 * dired.c (file_name_completion): Disable the first optimization just
4325 installed, since it is not implemented correctly.
4326
2cd298e2
SM
43272009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4328
4329 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4330 only if the entry can affect bestmatch.
2cd298e2
SM
4331 Stop the search early, as Ftry_completion already does.
4332
48d37adf
CY
43332009-03-17 Chong Yidong <cyd@stupidchicken.com>
4334
e10c9c93 4335 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4336
9286b16a
CY
43372009-03-15 Chong Yidong <cyd@stupidchicken.com>
4338
4339 * keyboard.c (parse_menu_item): Don't display remappings as menu
4340 equivalent bindings (Bug#788).
4341
f7b146dc
JR
43422009-03-15 Jason Rumney <jasonr@gnu.org>
4343
4344 * w32term.h (WM_EMACS_PAINT): New message.
4345 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4346 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4347 before passing to lisp thread. (Bug#950)
4348
f761d6b6 43492009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4350
d93f9575
CY
4351 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4352 variable as it was never reset.
4353 (ns_term_init): Remove initialization of Lisp-settable defaults
4354 and ns_expand_space.
4355 (-setPanelFromDefaultValues): Remove ns_expand_space.
4356 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4357 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4358 i.e. no additional spacing, similar to Carbon port.
4359
d93f9575
CY
4360 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4361 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4362
305018ec
JD
43632009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4364
4365 * sound.c (alsa_configure): Remove call to deprecated
4366 snd_pcm_sw_params_set_xfer_align.
4367
f761d6b6 43682009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4369
4370 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4371 after clicking in a detached tool bar.
4372 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4373
46e722a9
SM
43742009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4375
348db3dd
SM
4376 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4377 int/Lisp_Object mixup).
46e722a9 4378
a3d16f39
KH
43792009-03-13 Kenichi Handa <handa@m17n.org>
4380
4381 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4382 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4383 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4384 (set_fontset_font): Change ARG to a vector. Handle range_list in
4385 ARG correctly.
4386 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4387 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4388 the above change.
4389 (fontset_from_font): Fix previous change.
fe24f56a 4390 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4391 entry. If FONTSET is the default fontset, don't set the extra
4392 slot of the returning char-table.
4393
b066e6b6
JB
43942009-03-12 Juanma Barranquero <lekktu@gmail.com>
4395
4396 * nsfns.m (Fx_close_connection): Doc fix.
4397 (Fns_do_applescript): Reflow docstring.
4398 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4399 (Fx_display_pixel_width, Fx_display_pixel_height)
4400 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4401 Fix typos in docstrings.
4402 (Fns_set_alpha): Fix typos in error messages.
4403
d472514e 44042009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4405
d472514e 4406 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4407 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4408 were used for such events.
4409
d472514e
JB
4410 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4411 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4412
d472514e 4413 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4414 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4415
fb930676
KH
44162009-03-11 Kenichi Handa <handa@m17n.org>
4417
ff85581a
KH
4418 * font.h (font_open_by_spec): Extern it.
4419
c50b7e98
KH
4420 * font.c (font_open_by_spec): New function.
4421 (font_open_by_name): Use font_open_by_spec.
4422
fb930676
KH
4423 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4424 fontset of the frame.
4425
4426 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4427 modify the default font of frames that use this fontset.
4428 (num_auto_fontsets): New variable.
4429 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4430 name. Be sure to set FONTSET_ASCII to the correct font name.
4431 (update_auto_fontset_alist): New function.
4432
df4e8455
JB
44332009-03-11 Juanma Barranquero <lekktu@gmail.com>
4434
4435 * makefile.w32-in: Update dependencies.
4436
0a375797
AR
44372009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4438
4439 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4440
61313fa3
SM
44412009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4442
4443 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4444
b55103fb
CY
44452009-03-10 Chong Yidong <cyd@stupidchicken.com>
4446
4447 * lread.c (Feval_buffer): Doc fix.
4448
dde2559c
KH
44492009-03-09 Kenichi Handa <handa@m17n.org>
4450
4451 * charset.c (Qfile_name_handler_alist): Extern it.
4452 (load_charset_map_from_file): Temporarily bind
4453 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4454
df4e8455 44552009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4456
47f588bb
GM
4457 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4458 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4459
4ddf94bd
AR
44602009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4461
4c9bdfc2
AR
4462 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4463 (x_set_window_size): Change back to calculated method of setting
4464 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4465 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4466 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4467
fe41ae9e
AR
4468 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4469
4c9bdfc2
AR
4470 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4471 accelerator in parens under GNUstep.
4472
825d0875
KH
44732009-03-06 Kenichi Handa <handa@m17n.org>
4474
4475 These changes are to detect incorrect composition sequence without
f3b3be74 4476 looking ahead the source. (Bug#2370)
825d0875
KH
4477
4478 * coding.h: Include "composite.h".
4479 (enum compisition_state): New enum.
4480 (struct compisition_status): New struct.
4481 (struct iso_2022_spec): New member cmp_status.
4482 (struct emacs_mule_spec): New struct.
4483 (struct coding_system): New members ctext_extended_segment_len and
4484 embedded_utf_8. Change the union member
4485 spec.emacs_mule_full_support to spec.emacs_mule.
4486
4487 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4488 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4489 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4490 (ADD_COMPOSITION_DATA): New arg nbytes.
4491 (emacs_mule_char): New arg cmp_status.
4492 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4493 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4494 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4495 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4496 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4497 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4498 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4499 (EMACS_MULE_COMPOSITION_END): New macro.
4500 (emacs_mule_finish_composition): New function.
4501 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4502 (decode_coding_emacs_mule): Avoid long looking ahead while
4503 handling composition.
4504 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4505 (ENCODE_COMPOSITION_RULE): New macro.
4506 (finish_composition): New function.
4507 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4508 (DECODE_COMPOSITION_START): New implementation.
4509 (DECODE_COMPOSITION_END): Likewise.
4510 (STORE_COMPOSITION_RULE): New macro.
4511 (decode_coding_iso_2022): Avoid long looking ahead while handling
4512 composition, CTEXT extended segment, and embedded UTF-8.
4513 (setup_coding_system): For a coding of type iso-2022, reset
4514 CODING_ISO_EXTSEGMENT_LEN (coding) and
4515 CODING_ISO_EMBEDDED_UTF_8 (coding).
4516 (get_translation): Delete arguments last_block, from_nchars,
4517 to_nchars. Callers changed.
4518 (produce_chars): Don't modify charbuf. Adjusted for the change of
4519 get_translation.
98a326f7 4520 (produce_composition): Adjust for the new annotation sequence.
825d0875 4521 (handle_composition_annotation): Likewise.
98a326f7 4522 (consume_chars): Adjust for the change of get_translation.
825d0875 4523
ccbc4452
AR
45242009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4525
4ddf94bd 4526 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4527
988a7ddb
KH
45282009-03-05 Kenichi Handa <handa@m17n.org>
4529
4530 * font.c (font_select_entity): New function.
4531 (font_find_for_lface): Use font_select_entity to select a font.
4532
4533 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4534 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4535 font with C restriction.
4536
98a326f7 45372009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4538
be1bce46 4539 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4540
10ea2b82
JR
45412009-03-04 Jason Rumney <jasonr@gnu.org>
4542
2c93b248 4543 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4544 characters that have already been read. (Bug#2569)
2c93b248 4545
10ea2b82
JR
4546 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4547 Log an error message if check_image_size failed.
4548 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4549 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4550
71a0c011
EZ
45512009-03-02 Eli Zaretskii <eliz@gnu.org>
4552
4553 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4554 when decoding process output.
4555
2f63bba8
RS
45562009-03-01 Richard M Stallman <rms@gnu.org>
4557
4558 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4559
4560 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4561
0a9564cb
EZ
45622009-02-28 Eli Zaretskii <eliz@gnu.org>
4563
4564 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4565 (decode_coding_emacs_mule, decode_coding_iso_2022)
4566 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4567 (decode_coding_raw_text, decode_coding_charset)
4568 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4569 Honor inhibit-eol-conversion. (Bug #2186)
4570
449148b3
JR
45712009-02-28 Jason Rumney <jasonr@gnu.org>
4572
4573 * coding.c (detect_coding_charset): If not checking latin extra,
4574 fail on characters between 0x80 and 0xA0. (Bug#2354)
4575
a4aee864
EZ
45762009-02-28 Eli Zaretskii <eliz@gnu.org>
4577
4578 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4579 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4580
d88bee5a
GM
45812009-02-27 Glenn Morris <rgm@gnu.org>
4582
4583 * callint.c (Finteractive): Doc fix.
4584
a808f22d
KH
45852009-02-27 Kenichi Handa <handa@m17n.org>
4586
4587 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4588
caf8d60c
CY
45892009-02-27 Chong Yidong <cyd@stupidchicken.com>
4590
4591 * font.c (font_style_to_value): Set value for unknown symbols to
4592 100 instead of 255.
b61137ea
CY
4593 (weight_table, slant_table, width_table): Treat "unspecified" as
4594 the default value.
caf8d60c 4595
1a0de25c
JB
45962009-02-26 Juanma Barranquero <lekktu@gmail.com>
4597
4598 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4599
8fc45744
JB
46002009-02-25 Juanma Barranquero <lekktu@gmail.com>
4601
107bd7d1
JB
4602 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4603 error as soon as a recursive load is detected.
8fc45744 4604
f097e223
AR
46052009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4606
4607 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4608 before caching.
4609
8810a12f
KH
46102009-02-24 Kenichi Handa <handa@m17n.org>
4611
4612 * fontset.c (fontset_find_font): Fix the condition for checking
4613 unavailable font.
4614
2c7d1565
GM
46152009-02-24 Glenn Morris <rgm@gnu.org>
4616
4617 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4618 whitespace that confuses documentation.
4619
a20878b6
MB
46202009-02-23 Miles Bader <miles@gnu.org>
4621
4622 * process.c (Flist_system_processes, Fprocess_attributes)
4623 (syms_of_process): Rename `system-process-attributes' to
4624 `process-attributes'.
4625
b3b58c01
AS
46262009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4627
1b3b981b
AS
4628 * coding.h (struct coding_system): Make safe_charsets a pointer to
4629 unsigned char.
4630 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4631 being 255.
4632 (SAFE_CHARSET_P): Likewise.
4633 (setup_iso_safe_charsets): Properly setup safe_charsets.
4634 (Fdefine_coding_system_internal): Likewise.
4635 (setup_coding_system): Likewise. Remove unneeded casts.
4636 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4637 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4638 unneeded casts.
4639
b3b58c01
AS
4640 * insdel.c (del_range_2): Don't modify gap contents when called
4641 from decode_coding_object. (Bug#1809)
4642
0b6f228c
CY
46432009-02-21 Chong Yidong <cyd@stupidchicken.com>
4644
4645 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4646 Qfont_object.
4647 (Ftype_of): Recognize font objects.
4648
4649 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4650
4651 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4652 moved to data.c.
4653
52f8870b
AR
46542009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4655
4656 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4657 async_iconified. Based on a patch by Christian Lynbech
4658 <christian.lynbech@tieto.com>.
4659 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4660
7087d5e9
GM
46612009-02-20 Glenn Morris <rgm@gnu.org>
4662
4663 * syntax.c (Fskip_chars_forward): Fix doc typo.
4664
41d2ceef
CY
46652009-02-20 Chong Yidong <cyd@stupidchicken.com>
4666
4667 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4668
1a3b7ca6
CY
46692009-02-19 Chong Yidong <cyd@stupidchicken.com>
4670
4671 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4672
73cce38d
KH
46732009-02-19 Kenichi Handa <handa@m17n.org>
4674
4675 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4676 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4677
a51092ee
DN
46782009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4679
4680 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4681
c423ecca
KH
46822009-02-18 Kenichi Handa <handa@m17n.org>
4683
4684 * font.c (font_check_otf_features): Fix handling of `nil' element.
4685 (Ffont_spec): Describe :lang and :otf in the docstring.
4686
4c1958f4
AS
46872009-02-16 Andreas Schwab <schwab@suse.de>
4688
4689 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4690 string.
4691
5704f39a
KH
46922009-02-16 Kenichi Handa <handa@m17n.org>
4693
4694 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4695 (Bug#1723)
5704f39a 4696
8f0085aa
CY
46972009-02-14 Chong Yidong <cyd@stupidchicken.com>
4698
a057d86a 4699 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4700
4701 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4702 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4703
aff01dd9
EZ
47042009-02-14 Eli Zaretskii <eliz@gnu.org>
4705
4706 * msdos.c (MAX_SCREEN_BUF): New macro.
4707 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4708 Encode the entire run of glyphs sharing the same face, instead of
4709 doing that one glyph at a time (fixes a bug with displaying
4710 double-size characters).
4711
ba301db3
AR
47122009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4713
4714 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4715
4716 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4717 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4718 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4719
4720 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4721 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4722
51d861de
SM
47232009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4724
ac146f82 4725 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4726 invisible areas.
4727
7fed8996
JR
47282009-02-12 Jason Rumney <jasonr@gnu.org>
4729
631ea4fb
JR
4730 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4731 (add_font_entity_to_list): Call check_face_name even when family
4732 is unspecified.
4733
cb4a3e42
JR
4734 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4735 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4736 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4737
7fed8996 4738 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4739 raster fonts. (Bug#2219)
7fed8996 4740
895416e3
KH
47412009-02-12 Kenichi Handa <handa@m17n.org>
4742
4743 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4744 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4745 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4746 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4747 (find_automatic_composition): While looking forward and backward,
4748 check static composition. Fix where to stop looking forward.
4749 (composition_adjust_point): Fix checking of static composition.
4750 (Fcomposition_get_gstring): Pay attention to
1dacf998 4751 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4752
4753 * lisp.h (fast_looking_at): Extern it.
4754
4755 * search.c (fast_looking_at): New function.
4756
51d861de 4757 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4758 <struct glyph>.u.cmp.to.
4759 (append_composite_glyph): Likewise.
4760
51d861de 4761 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4762 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4763 composition.
51d861de 4764 (append_composite_glyph): Adjust for the change of
895416e3
KH
4765 <strcut glyph>.u.cmp.to.
4766
8510724d
JB
47672009-02-11 Juanma Barranquero <lekktu@gmail.com>
4768
4769 * casetab.c (init_casetab_once):
4770 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4771 * font.c (font_update_lface):
4772 * fontset.c (Fnew_fontset):
4773 * ftfont.c (ftfont_drive_otf):
4774 * xfont.c (xfont_open):
4775 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4776
294fa707
SM
47772009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4778
4779 * fileio.c (Fwrite_region): !NILP -> CONSP.
4780
b5bfebec
AS
47812009-02-10 Andreas Schwab <schwab@suse.de>
4782
4783 * process.c (send_process): Properly relocate pointer into data
adab88bd 4784 when using encoded data. (Bug#2272)
b5bfebec 4785
cb84a2be
KH
47862009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4787
4788 * coding.c (detect_coding_charset): Fix previous change.
4789
89e09428
JR
47902009-02-08 Jason Rumney <jasonr@gnu.org>
4791
4792 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4793 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4794
4470a277
AS
47952009-02-07 Andreas Schwab <schwab@suse.de>
4796
4797 * unexelf.c (unexec): Fix error message.
4798
3175b12a
AR
47992009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4800
4801 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4802 when modal window is active. (Bug #2152)
3175b12a
AR
4803 (applicationShouldTerminate:): Remove now-unneeded while loop
4804 around NSRunAlertPanel.
4805
4806 * nsmenu.m (popupSession): New file-global variable.
4807 (pop_down_menu): End the popupSession before closing dialog.
4808 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4809 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4810 don't query NSApp for events (just sleep instead).
4811
8434d0b8
EZ
48122009-02-07 Eli Zaretskii <eliz@gnu.org>
4813
51d861de
SM
4814 * coding.c (syms_of_coding) <translation-table-for-input>:
4815 Modify doc string to discourage use for character code unification.
8434d0b8 4816
aa82edfd
CY
48172009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4818
4819 * atimer.c (run_timers): Update pending_atimers.
4820
2d283c7c
CY
48212009-02-06 Chong Yidong <cyd@stupidchicken.com>
4822
eb306cab
CY
4823 * image.c (svg_load_image): Fix last change.
4824
2d283c7c
CY
4825 * xfns.c (Fx_create_frame): Signal an error if no font is
4826 found (Bug#2147).
4827
4d8e170e
JB
48282009-02-05 Juanma Barranquero <lekktu@gmail.com>
4829
4830 * character.c (syms_of_character) <script-representative-chars>:
4831 Fix typo in docstring.
4832
c96169a0
AR
48332009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4834
4835 * nsmenu.m (pop_down_menu): New function.
4836 (ns_popup_dialog): Call it on unwind.
4837 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4838 call timer_check() (Bug#2154).
4839 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4840 handling_signal is set.
4841 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4842
31fd7c5c 4843 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4844
4845 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4846
4847 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4848
51d861de
SM
4849 * keyboard.c (poll_for_input_1, handle_async_input):
4850 Set handling_signal under HAVE_NS.
c96169a0 4851
aacd8ba1
GM
48522009-02-04 Glenn Morris <rgm@gnu.org>
4853
4854 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4855
4cb75c4b
KH
48562009-02-04 Kenichi Handa <handa@m17n.org>
4857
4858 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4859
4860 * charset.c (Fchar_charset): New optional arg restriction.
4861
4862 * coding.h (coding_system_charset_list): Extern it.
4863
4864 * coding.c (coding_system_charset_list): New function.
4865
4866 * composite.c: Include coding.h and termhooks.h.
4867 (composition_gstring_p): Fix for the terminal case.
4868 (composition_gstring_width): Likewise.
4869 (fill_gstring_body): Likewise.
4870 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4871 the frame.
4872 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4873 is within a composition.
867d4bb3 4874 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4875
4876 * term.c (encode_terminal_code): Fix handling of composition.
4877 (produce_composite_glyph): For static composition, get pixel_width
4878 from struct composition.
4879
826ba17e
AS
48802009-02-02 Andreas Schwab <schwab@suse.de>
4881
4882 * unexelf.c (unexec): Handle unaligned bss offset.
4883
8ad093db
AR
48842009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4885
4886 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4887 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4888
8ad093db
AR
4889 * keyboard.c (handle_interrupt): Don't call
4890 quit_throw_to_read_char() under NS.
d0a76a6e 4891
8ad093db
AR
4892 * blockinput.h: Remove NS-specific code.
4893
4d18a7a2
DN
48942009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4895
db878925
DN
4896 * dispnew.c (window_change_signal): Don't try to get the size of a
4897 suspended tty frame.
4898 * term.c (Fresume_tty): Resize if the size has changed while the
4899 tty was suspended.
4900
4d18a7a2
DN
4901 * alloc.c (mark_stack): Properly conditionalize previous change.
4902
8984df7c
JB
49032009-01-30 Juanma Barranquero <lekktu@gmail.com>
4904
4905 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4906 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4907 Remove; this code is not used on Windows.
4908
75f4f1ac
EZ
49092009-01-30 Eli Zaretskii <eliz@gnu.org>
4910
4911 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4912 EOLs that also has stray ^M characters.
4913
07a1e794
JB
49142009-01-30 Juanma Barranquero <lekktu@gmail.com>
4915
4916 * atimer.c (run_timers, alarm_signal_handler):
4917 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4918 * w32inevt.c (w32_console_read_socket):
4919 * w32term.c (w32_read_socket):
4920 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4921
a8b11cc9
CY
49222009-01-30 Chong Yidong <cyd@stupidchicken.com>
4923
4924 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4925 Initialize it as a relative filename pattern.
4926 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4927 (Fcall_process_region): Simplify temp file creation using
4928 temporary-file-directory.
4929
c279587b
EZ
49302009-01-29 Eli Zaretskii <eliz@gnu.org>
4931
4932 * msdos.c: Rename pending_signals to msdos_pending_signals.
4933 (sig_suspender, sigprocmask): Adjust.
4934
a8fe3242
CY
49352009-01-29 Chong Yidong <cyd@stupidchicken.com>
4936
4937 * keyboard.c (pending_signals): New var.
4938 (poll_for_input, input_available_signal, init_keyboard): Set it.
4939 (process_pending_signals): New function.
4940
4941 * lisp.h (QUIT): Check pending_signals instead of
4942 interrupt_input_pending. Use process_pending_signals.
4943
51d861de 4944 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4945
51d861de 4946 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4947
4948 * sysdep.c (emacs_write): Use process_pending_signals.
4949
4950 * xterm.c (XTread_socket): Update pending_signals.
4951
4952 * w32term.c (w32_read_socket): Update pending_signals.
4953
4954 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4955
6570a1c4
KH
49562009-01-29 Kenichi Handa <handa@m17n.org>
4957
4958 * xftfont.c (xftfont_has_char): New function.
4959 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4960
d72a4afa
AR
49612009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4962
4963 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4964 under GNUstep.
4965 (ns_query_color): New declaration.
4966
4967 * nsterm.m (ns_confirm_quit): New variable.
4968 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4969 (EmacsApp-applicationShouldTerminate:): Use it.
4970 (EmacsPrefsController): Let user set it.
4971 (ns_query_color): New function.
4972 (ns_defined_color): Use it.
4973 (ns_initialize): Drop.
4974 (ns_term_init): Add two lines from ns_initialize(), and set
4975 input_interrupt_mode to nil.
4976
4977 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4978 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4979
9fe78804
KH
49802009-01-28 Kenichi Handa <handa@m17n.org>
4981
4982 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4983 (fontset_get_font_group): Remember that no font-group is specified
4984 for C.
9fe78804 4985
fa57de36
CY
49862009-01-27 Chong Yidong <cyd@stupidchicken.com>
4987
930600e9
CY
4988 * fns.c (concat): Check for string overflow (bug#1787).
4989
fa57de36
CY
4990 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4991 Quadruple undo limits (bug#1501).
4992
7179ce7b
KH
49932009-01-27 Kenichi Handa <handa@m17n.org>
4994
4995 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4996 directly use GT_Get_Char_index.
4997
4998 * xftfont.c (struct xftfont_info): New member `index'.
4999
5000 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5001 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5002
5be8fcc0
CY
50032009-01-26 Kenichi Handa <handa@m17n.org>
5004
5005 * fontset.c (fontset_find_font): Fix handling of non-cons return
5006 value of fontset_get_font_group.
5007 (fontset_font): Revert last change.
5008
19ae3e61
JR
50092009-01-26 Jason Rumney <jasonr@gnu.org>
5010
5011 * w32font.c (w32font_list_internal): Return quickly if registry is
5012 unknown. Simplify final return.
5013 (add_font_entity_to_list): Break complex logic down into more
5014 manageable chunks. Move unknown registry check to
5015 w32font_list_internal.
5016
8612b71a
AR
50172009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5018
5019 Changes to remove Feval calls from GUI under NS.
5020
d8038940
JB
5021 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5022 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5023 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5024
5025 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5026 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5027 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5028 instead of NON_ASCII_KEYSTROKE_EVENT.
5029 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5030 (EmacsApp-applicationShouldTerminate:): Query user.
5031 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5032 instead of Feval.
5033
5034 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5035
5036 * keyboard.c (kbd_buffer_get_event): Check for it.
5037 (keys_of_keyboard): Define lispy keys for
5038 ns-put/unput-working-text.
5039
5040 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5041 versions.
5042 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5043
6288ae55
CY
50442009-01-25 Chong Yidong <cyd@stupidchicken.com>
5045
5046 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5047 setting current_buffer directly. (Bug#2044)
6288ae55 5048
289e7f8f
CY
50492009-01-24 Chong Yidong <cyd@stupidchicken.com>
5050
5ce87308 5051 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5052 any work. (Bug#1952, bug#1990).
5ce87308 5053
64cc3cf6 5054 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5055
b3243e6f
AR
50562009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5057
5058 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5059 (ns_no_defaults): New declaration.
5060 (main): Use it.
e0d2e69a 5061
d900b2af 5062 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5063
d900b2af 5064 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5065
d900b2af
AR
5066 * nsterm.m (ns_no_defaults): New variable.
5067 (ns_initialize): Don't read defaults when ns_no_defaults.
5068 (EmacsView-readSelectionFromPasteboard:)
5069 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5070 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5071 (ns_dumpglyphs_stretch): New function.
5072 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5073 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5074
e0d2e69a
AR
5075 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5076
3ac71f5d
CY
50772009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5078
5079 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5080 call for Sparc64.
5081
3fe53a83
AR
50822009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5083
5084 * nsfns.m:
5085 * nsgui.h:
5086 * nsmenu.m:
5087 * nsselect.m:
5088 * nsterm.h:
5089 * nsterm.m: Remove '23' comments that indicated code added during
5090 update from emacs-20 -> emacs-23.
5091
10f87c6f 50922009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5093
5094 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5095 ns_alternate_modifier. (Bug#1217)
a3b53a85 5096
c7cef62d
AR
5097 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5098 Display all shortcuts, including those w/o super modifier.
5099
575fb8bd
AR
5100 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5101
918b848b
CY
51022009-01-22 Chong Yidong <cyd@stupidchicken.com>
5103
5104 * fileio.c (Vwrite_region_post_annotation_function)
5105 (Vwrite_region_annotation_buffers): New vars.
5106 (build_annotations_unwind): Just reset
5107 Vwrite_region_annotation_buffers.
5108 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5109 Call write-region-post-annotation-function.
5110 (build_annotations): Add to Vwrite_region_annotation_buffers if
5111 buffer changes.
5112
a39e2539
AR
51132009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5114
5115 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5116 Tiger.
51d861de
SM
5117 * nsfns.m (ns_do_applescript):
5118 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5119
35ed44db
AR
51202009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5121
5122 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5123
cbe0b5bf
AR
51242009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5125
5126 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5127
6049d3a0
AR
5128 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5129
5130 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5131 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5132 handle Ctrl-tab. (Bug#1841)
5133 (ns_get_color): Use unsigned long long for scanned hex string value.
5134 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5135 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5136 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5137 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5138 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5139 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5140 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5141
d3810c21 5142 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5143 DPI. (Bug#1316)
d3810c21
AR
5144 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5145 values in onTiger section.
4c7077c3 5146
e301e634
CY
51472009-01-19 Chong Yidong <cyd@stupidchicken.com>
5148
7f82490b
CY
5149 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5150 Check return value of font_spec_from_name.
64cc3cf6 5151 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5152
5153 * font.c (font_spec_from_name): Return Qnil if font name could not
5154 be parsed.
5155 (font_parse_name): Treat a `?' character as part of an XLFD.
5156
e301e634
CY
5157 * fns.c (Fsubstring): Doc fix.
5158
1c0db158
KH
51592009-01-19 Kenichi Handa <handa@m17n.org>
5160
51d861de 5161 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5162 (ftfont_list): Likewise.
5163
acf20901
JB
51642009-01-18 Juanma Barranquero <lekktu@gmail.com>
5165
fff4e459
JB
5166 * dbusbind.c (Fdbus_register_signal):
5167 * process.c (conv_sockaddr_to_lisp):
5168 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5169
acf20901
JB
5170 * callproc.c (Fgetenv_internal): Doc fix.
5171
e7abcdfb
CY
51722009-01-16 Chong Yidong <cyd@stupidchicken.com>
5173
5174 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5175 it is not even used.
5176
b60861e6
GM
51772009-01-16 Glenn Morris <rgm@gnu.org>
5178
5179 * font.c (Ffont_variation_glyphs): Silence compiler.
5180
8db52afe
JB
51812009-01-15 Juanma Barranquero <lekktu@gmail.com>
5182
5183 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5184 Reported by David Robinow <drobinow@gmail.com>.
5185
4cddb209
KH
51862009-01-15 Kenichi Handa <handa@m17n.org>
5187
51d861de 5188 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5189
f247f67b
JR
51902009-01-14 Jason Rumney <jasonr@gnu.org>
5191
5192 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5193 never a fontset. (Bug#1562)
f247f67b 5194
f56a4450
KH
51952009-01-14 Kenichi Handa <handa@m17n.org>
5196
5197 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5198 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5199
4e99855e
CY
52002009-01-13 Chong Yidong <cyd@stupidchicken.com>
5201
5202 * font.c (font_clear_prop): If clearing the family, clear the font
5203 width index too.
5204
fff4e459 5205 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5206
24f01470
JB
52072009-01-12 Juanma Barranquero <lekktu@gmail.com>
5208
5209 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5210 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5211 functions, use sizeof.
5212
a41240a3
MR
52132009-01-12 Martin Rudalics <rudalics@gmx.at>
5214
5215 * keyboard.c (read_char): Fix case where last_nonmenu_event
5216 returned a bad value with submenus. (Bug#447)
5217
944636b8
CY
52182009-01-12 Chong Yidong <cyd@stupidchicken.com>
5219
5220 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5221 family, clear the font width index too.
5222
0dad7c6f
JR
52232009-01-11 Jason Rumney <jasonr@gnu.org>
5224
5225 * keyboard.c (cmd_error_internal): Exit when errors occur before
5226 frame creation and not in daemon mode. (Bug#1836)
5227
7c2363af
CY
52282009-01-10 Chong Yidong <cyd@stupidchicken.com>
5229
5230 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5231 of a display vector, backtrack.
5232 (try_window_reusing_current_matrix): Check glyph type before
5233 referencing charpos member.
5234
97b1b294
EZ
52352009-01-10 Eli Zaretskii <eliz@gnu.org>
5236
5237 Fix Bug #876:
5238
5239 * coding.c (inhibit_null_byte_detection): New variable.
5240 (detect_coding, detect_coding_system): Don't pay attention to null
5241 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5242 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5243 <inhibit-iso-escape-detection>: Doc fix.
5244
4624b6e3
JR
52452009-01-09 Jason Rumney <jasonr@gnu.org>
5246
5247 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5248 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5249 Only report Unicode Plane 2 fonts as unicode-sip.
5250
323b840c
CY
52512009-01-09 Chong Yidong <cyd@stupidchicken.com>
5252
51d861de
SM
5253 * xfaces.c (Fx_font_family_list): Delete function.
5254 Move compatibility version to faces.el.
323b840c 5255
51d861de 5256 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5257
eba7400d
MR
52582009-01-09 Martin Rudalics <rudalics@gmx.at>
5259
5260 * frame.c (x_set_frame_parameters): Remember requested value for
5261 fullscreen before it's reset by the parameter handler.
5262
4b09796d
GM
52632009-01-09 Glenn Morris <rgm@gnu.org>
5264
5265 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5266 (last_command_event): ... and update all users.
4b09796d
GM
5267 (last_input_char): For clarity, rename to...
5268 (last_input_event): ... and update all users.
5269 (last-command-char, last-input-char): Move to subr.el as aliases.
5270 * cmds.c, commands.h: Update for last_command_char rename.
5271
14ccea62
CY
52722009-01-08 Chong Yidong <cyd@stupidchicken.com>
5273
51d861de 5274 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5275
5f004711
JR
52762009-01-08 Jason Rumney <jasonr@gnu.org>
5277
5278 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5279 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5280 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5281 Don't declare.
fff4e459 5282 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5283 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5284
b71f6f73
KH
52852009-01-07 Kenichi Handa <handa@m17n.org>
5286
50b06221 5287 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5288 remember the coding system used for decoding in
50b06221
KH
5289 coding_system (Bug#1039).
5290
b71f6f73 5291 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5292 breaking the loop. (Bug#870)
b71f6f73
KH
5293 (decode_coding_utf_16, decode_coding_emacs_mule)
5294 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5295 (decode_coding_charset): Likewise.
5296
56f668f7
MR
52972009-01-05 Martin Rudalics <rudalics@gmx.at>
5298
5299 * frame.c (x_set_frame_parameters): Make sure height (width) get
5300 applied when fullwidth (fullheight) is set. (Bug#1522)
5301
5da9424d
JB
53022009-01-04 Juanma Barranquero <lekktu@gmail.com>
5303
5304 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5305 (utc_base): Declare as ULONGLONG, not long double.
5306 (convert_time_raw): Delete.
5307 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5308 (initialize_utc_base): New function.
5309 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5310 (convert_from_time_t): Use initialize_utc_base; compute result with
5311 64-bit arithmetic.
5312 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5313
c4605e09
EZ
53142009-01-03 Eli Zaretskii <eliz@gnu.org>
5315
9acef61c 5316 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5317 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5318 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5319 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5320 [!subprocesses]: Define.
5321 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5322 (Flist_system_processes, Fsystem_process_attributes)
5323 [!subprocesses]: Call list_system_processes and
5324 system_process_attributes instead of returning Qnil.
5325
9acef61c
JB
5326 * dosfns.c (system_process_attributes, list_system_processes):
5327 New functions.
c4605e09
EZ
5328
5329 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5330
5331 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5332 Don't use the default (no-op) implementation.
5333
8b7d0a16
JR
53342009-01-03 Jason Rumney <jasonr@gnu.org>
5335
a6d46bc1
JR
5336 * keyboard.c (parse_modifiers_uncached): Wheel events are
5337 clicks (bug#687).
5338
8b7d0a16
JR
5339 * w32term.c (x_query_colors, x_query_color): New functions.
5340
5341 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5342 (svg_load_image): Cast returned pointers from dynamically loaded
5343 functions. Eliminate W32 specific code.
5344
bfe11752
DN
53452009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5346
89e2438a
DN
5347 * nsfns.m (x_set_foreground_color, x_set_background_color)
5348 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5349 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5350 x_ prefix instead of ns_. Update references.
5351 (syms_of_nsfns): Add a FIXME comment.
5352
5353 * nsterm.m (x_set_cursor_type): New prototype.
5354 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5355
bfe11752
DN
5356 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5357 for Solaris instead of incorrectly providing Qutime and Qcutime.
5358
031da700
EZ
53592009-01-02 Eli Zaretskii <eliz@gnu.org>
5360
5361 * w32.c (process_times): Compute sum of utime and stime.
5362 (system_process_attributes): Add Qtime to the alist.
5363
5364 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5365 and add them to the alist.
5366
5367 * process.c (top level) <Qtime, Qctime>: New variables.
5368 (syms_of_process): staticpro them.
5369 (Fsystem_process_attributes): Add their documentation to the doc
5370 string.
5371
5372 * process.h: Declare Qtime and Qctime.
5373
df23bf08
JR
53742009-01-02 Jason Rumney <jasonr@gnu.org>
5375
9acef61c 5376 * image.c (Qgobject): New symbol.
df23bf08
JR
5377 (syms_of_image): Initialize it.
5378 (init_svg_functions): Load some functions from gobject library.
5379
5bbdf7aa
DN
53802009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5381
5382 * frame.c (make_terminal_frame): Remove redundant code and useless
5383 block.
5384
63136da6
AS
53852009-01-01 Andreas Schwab <schwab@suse.de>
5386
5387 * process.c (conv_sockaddr_to_lisp): Add workaround for
5388 getsockname bug on BSD.
5389
9ef69046
CY
53902009-01-01 Chong Yidong <cyd@stupidchicken.com>
5391
d6fafbe0
CY
5392 * xfns.c (x_create_tip_frame): Set border width of the X window.
5393
51d861de 5394 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5395
f9c34147
JR
53962009-01-01 Jason Rumney <jasonr@gnu.org>
5397
9acef61c 5398 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5399 Don't block input, as per earlier xterm.c changes.
5400
f5497e45
AR
54012008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5402
5403 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5404 (ns_appkit_version_int): New function.
5405 (x-server-version): Use ns_appkit_version_int and follow 21+
5406 convention of returning 3 integers.
5407
c19cab20
KH
54082008-12-30 Kenichi Handa <handa@m17n.org>
5409
5410 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5411 (CHAR_SURROGATE_PAIR_P): New macro.
5412
5413 * font.h (struct font_driver): New member get_variation_glyphs.
5414
9acef61c 5415 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5416 (Ffont_variation_glyphs): New function.
5417 (syms_of_font): Defsubr it.
5418
5419 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5420 ftfont_variation_glyphs.
5421 (setup_otf_gstring): New function.
5422 (ftfont_drive_otf): Use it.
5423 (ftfont_shape_by_flt): Handle variation selector.
5424 (ftfont_variation_glyphs): New function.
5425
28cd591f
MR
54262008-12-30 Martin Rudalics <rudalics@gmx.at>
5427
5428 * frame.c (Vemacs_iconified): Remove.
5429
7f714baf
JR
54302008-12-30 Jason Rumney <jasonr@gnu.org>
5431
5432 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5433 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5434
9d2d22ab
CY
54352008-12-30 Chong Yidong <cyd@stupidchicken.com>
5436
5437 * indent.c (Fvertical_motion): Don't advance iterator if we have
5438 reseated to the desired position.
5439
5440 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5441 checking for pos match.
5442
545312c2
KH
54432008-12-30 Kenichi Handa <handa@m17n.org>
5444
1ede3eb6
KH
5445 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5446 just get the low 8-bit of the code.
5447
545312c2
KH
5448 * font.c (font_intern_prop): Validate str as multibyte.
5449
bd7bbf29
DN
54502008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5451
31e0750e
DN
5452 * dispextern.h (struct face): Move lface and hash from the middle
5453 of bitfields.
5454
bd7bbf29
DN
5455 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5456
b5672e7c
DN
54572008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5458
5459 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5460 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5461 instead of intervals.h.
5462
d704470f
AS
54632008-12-26 Andreas Schwab <schwab@suse.de>
5464
5465 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5466 cons.
5467
54b33868
MR
54682008-12-26 Martin Rudalics <rudalics@gmx.at>
5469
5470 * textprop.c (Qminibuffer_prompt): New variable.
5471 (syms_of_textprop): Initialize it.
5472 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5473 in minibuffer-prompt face. (Bug#1662)
5474
40b615d6
JR
54752008-12-25 Jason Rumney <jasonr@gnu.org>
5476
5477 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5478
baae5c2d
JR
54792008-12-24 Jason Rumney <jasonr@gnu.org>
5480
5481 * ralloc.c (r_alloc_reset_variable): New function.
5482
5483 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5484 record of what points where. (Bug#716)
baae5c2d 5485
a9051c88
DN
54862008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5487
5488 * minibuf.c (read_minibuf): Follow the non-interactive case when
5489 running as a daemon, before detaching.
5490
8b146312
AS
54912008-12-22 Andreas Schwab <schwab@suse.de>
5492
5493 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5494 * gtkutil.c (free_widget_value): Use xfree instead of free.
5495
56f2de10
MR
54962008-12-22 Martin Rudalics <rudalics@gmx.at>
5497
5498 * frame.c (delete_frame): New function derived from
5499 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5500 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5501 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5502 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5503 * frame.h: Extern delete_frame.
5504 * window.c (window_loop):
5505 * terminal.c (delete_terminal):
5506 * xterm.c (x_connection_closed):
5507 * xfns.c (Fx_hide_tip):
9acef61c 5508 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5509
1fc200d6
JR
55102008-12-21 Jason Rumney <jasonr@gnu.org>
5511
5512 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5513 when character maps to .notdef character.
5514
5e252df2
SM
55152008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5516
5517 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5518
99b72cc4
JR
55192008-12-20 Jason Rumney <jasonr@gnu.org>
5520
5521 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5522 a graphical frame on Windows. (Bug#1325)
99b72cc4 5523
acc49a52
JD
55242008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5525
5526 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5527
6ea15123
CY
55282008-12-20 Chong Yidong <cyd@stupidchicken.com>
5529
5530 * minibuf.c (Fread_buffer): Doc fix.
5531
b2dab6c8
JR
55322008-12-20 Jason Rumney <jasonr@gnu.org>
5533
54ea0c87 5534 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5535 server name in UNC paths. (Bug#719)
54ea0c87 5536
b2dab6c8 5537 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5538 charbuf. (Bug#1035)
b2dab6c8 5539
6d1921be
DN
55402008-12-19 Daniel Engeler <engeler@gmail.com>
5541
5542 * sysdep.c (serial_configure): Fix typo.
5543
53934c98
DN
55442008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5545
5546 * sysdep.c: Include alloca.h.
f4f634e8
DN
5547 (system_process_attributes): Add implementation for Solaris.
5548
5549 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5550
06e111a6
DN
55512008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5552
5553 Reorganize implementation of Flist_system_processes and
5554 Fsystem_process_attributes. No functional changes.
5555 * process.c: Don't #include pwd.h, grp.h and limits.h.
5556 (Flist_system_processes): Just call list_system_processes.
5557 (Fsystem_process_attributes): Just call system_process_attributes.
5558 (procfs_list_system_processes, time_from_jiffies)
5559 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5560 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5561
5562 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5563 (list_system_processes): Rename from
5564 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5565 Provide a do nothing implementation.
5566 (system_process_attributes): Rename from
5567 procfs_list_system_processes.
5568 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5569 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5570
5571 * w32.c (list_system_processes): Rename from
5572 w32_list_system_processes.
5573 (system_process_attributes): Rename from
5574 w32_system_process_attributes.
5575
5576 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5577
5578 * process.h (w32_list_system_processes)
5579 (w32_system_process_attributes): Remove.
362654a6
JB
5580 (list_system_processes, system_process_attributes):
5581 New prototypes.
06e111a6 5582
6a705b23
KH
55832008-12-19 Kenichi Handa <handa@m17n.org>
5584
5585 * xfont.c (xfont_decode_coding_xlfd): New function.
5586 (xfont_encode_coding_xlfd): New function.
5587 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5588 (xfont_list): Decode and encode XLFD by iso-8859-1.
5589 (xfont_match): Likewise.
5590 (xfont_list_family): Likewise.
5591 (xfont_open): Likewise.
5592
d66c0241 5593 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5594 names are utf-8.
5595
d66c0241 5596 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5597 names are utf-8.
5598
5a130941
JD
55992008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5600
5601 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5602 changed.
bfd20325
JD
5603 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5604 clicked on a detached tool bar button.
5a130941 5605
fd95644b
DN
56062008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5607
5608 * emacs.c (main): Print and error and exit when no data is read
5609 from the pipe.
5610
e6eee6ae
JR
56112008-12-17 Jason Rumney <jasonr@gnu.org>
5612
5613 * w32font.c (w32font_has_char): Always return -1.
5614
a35dd56b
KH
56152008-12-16 Kenichi Handa <handa@m17n.org>
5616
5617 * font.c (font_open_entity): Fix previous change.
5618
0e3635c2
DN
56192008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5620
5621 * process.c: Include <limits.h>.
5622
d4835507 56232008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5624
5625 * font.c (font_update_drivers): Fix mistake in reconstructing the
5626 driver list.
5627
56282008-12-16 Chong Yidong <cyd@stupidchicken.com>
5629
5630 * font.c (font_clear_cache): Fix format of font cache data.
5631
e2cbc401
CY
56322008-12-15 Chong Yidong <cyd@stupidchicken.com>
5633
5634 * xftfont.c (xftfont_open): Free Xft font pattern if
5635 XftFontOpenPattern fails.
5636
5637 * xterm.c (x_free_frame_resources): Remove extraneous call to
5638 free_frame_faces.
5639
b131d535
CY
56402008-12-13 Chong Yidong <cyd@stupidchicken.com>
5641
5642 * xterm.c (x_delete_display): Move xim_close_dpy call to
5643 x_delete_terminal.
5644 (x_delete_terminal): Call xim_close_dpy.
5645
e6df5336
JR
56462008-12-13 Jason Rumney <jasonr@gnu.org>
5647
5648 * w32font.c (intern_font_name): New function.
5649 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5650 (w32font_open_internal, Fx_select_font): Decode font name.
5651 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5652
5653 * w32font.h (intern_font_name): Declare new function.
5654
5655 * w32uniscribe.c (add_opentype_font_name_to_list):
5656 Use intern_font_name.
5657
20d68145
CY
56582008-12-13 Chong Yidong <cyd@stupidchicken.com>
5659
9f2554de
CY
5660 * frame.c (Fdelete_frame): Call free_font_driver_list.
5661
3d9bec9a
CY
5662 * font.c (free_font_driver_list): Implement missing function.
5663
20d68145
CY
5664 * w32term.c (w32_term_init): Don't initialize the image cache
5665 here; it will be done in init_frame_faces.
5666
5667 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5668 (struct x_display_info): Remove unused member null_pixel. New
5669 member xim_callback_data.
5670
5671 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5672 (xim_initialize): Save pointer to callback function data.
5673 (xim_close_dpy): Free callback function data. Call XCloseIM,
5674 reverting 2008-11-04 change by David Smith.
5675 (x_term_init): Don't initialize the image cache here; it will be
5676 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5677 (x_delete_display): Free x_dnd_atoms member.
5678
96f9306b
KH
56792008-12-13 Kenichi Handa <handa@m17n.org>
5680
6dec9044
JB
5681 * font.c (font_rescale_ratio): Moved from xfaces.c.
5682 Argument type changed. Handle a font-spec too.
96f9306b 5683 (font_score): Check Vface_font_rescale_alist.
6dec9044 5684 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5685
5686 * xfaces.c (font_rescale_ratio): Moved to font.c.
5687
8d5b4964
CY
56882008-12-13 Chong Yidong <cyd@stupidchicken.com>
5689
5690 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5691
e6df5336
JR
56922008-12-12 Jason Rumney <jasonr@gnu.org>
5693
5694 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5695 Vwindow_system_version to the real w32 major version.
5696
97c6058a
DN
56972008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5698
5699 * term.c (init_tty): Move setting the terminal name before the
5700 potential user: maybe_fatal.
5701
ec4e88d7
CY
57022008-12-11 Chong Yidong <cyd@stupidchicken.com>
5703
d4835507
JB
5704 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5705 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5706
b4233ec9
JR
57072008-12-11 Jason Rumney <jasonr@gnu.org>
5708
8ec71e23 5709 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5710 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5711
b4233ec9 5712 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5713 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5714
011a0143
JB
57152008-12-11 Juanma Barranquero <lekktu@gmail.com>
5716
5717 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5718
3c309f34
JB
57192008-12-11 Juanma Barranquero <lekktu@gmail.com>
5720
5721 * process.c (Fsystem_process_attributes, syms_of_process):
5722 Fix typo in name of Ssystem_process_attributes.
5723 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5724
fedc6ab5
JB
57252008-12-11 Juanma Barranquero <lekktu@gmail.com>
5726
5727 * syntax.c (Fmodify_syntax_entry): Doc fix.
5728
ba3de0e8
JB
57292008-12-10 Juanma Barranquero <lekktu@gmail.com>
5730
5731 * font.c (Ffont_spec): Move usage to end of docstring.
5732
174f1c74
JR
57332008-12-10 Jason Rumney <jasonr@gnu.org>
5734
5735 * w32font.c (Qcham): New symbol.
5736 (font_supported_scripts): Add cham, and comments for other new
5737 scripts in bitfield from OpenType spec.
9d32f818
JR
5738 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5739 contain characters beyond the bmp.
174f1c74 5740
7b649478
KH
57412008-12-10 Kenichi Handa <handa@m17n.org>
5742
5743 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5744 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5745 Qunicode_sip.
5746
2133e2d1
JB
57472008-12-10 Juanma Barranquero <lekktu@gmail.com>
5748
5749 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5750 (Fcoding_system_put): Use QCdefault_char.
5751 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5752
9af886ee
CY
57532008-12-09 Chong Yidong <cyd@stupidchicken.com>
5754
74d819eb
CY
5755 * xftfont.c (syms_of_xftfont): Fix typo.
5756
4ccfa1c0 5757 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5758
7c19d3ae
DN
57592008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5760
5761 * emacs.c (main): Close daemon_pipe on exec.
5762
567826bb
CY
57632008-12-08 Chong Yidong <cyd@stupidchicken.com>
5764
5765 * termchar.h (struct tty): New members termcap_term_buffer and
5766 termcap_strings_buffer.
5767
5768 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5769 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5770 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5771 All callers changed.
5772 (init_tty): Store termcap data and string buffers in new struct
5773 tty members termcap_term_buffer and termcap_strings_buffer.
5774 (delete_tty): Free them.
4ccfa1c0 5775 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5776
aa96c42b
SZ
57772008-12-07 Seiji Zenitani <zenitani@mac.com>
5778
5779 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5780 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5781
b7e1d896
CY
57822008-12-06 Chong Yidong <cyd@stupidchicken.com>
5783
5784 * coding.c (make_conversion_work_buffer): Disable buffer
5785 modification hooks in the work buffer.
5786
b5ec91a5
EZ
57872008-12-05 Eli Zaretskii <eliz@gnu.org>
5788
5789 * process.c (procfs_system_process_attributes): If `nread' has a
5790 negative value, assign zero to it.
5791
a5d2a52b
CY
57922008-12-05 Chong Yidong <cyd@stupidchicken.com>
5793
68c5540b 5794 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5795
7bf1bb21
KH
57962008-12-05 Kenichi Handa <handa@m17n.org>
5797
5798 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5799 second character is a combining character.
5800
2fdc7d00
EZ
58012008-12-05 Eli Zaretskii <eliz@gnu.org>
5802
5803 * process.c (procfs_system_process_attributes): Don't use cmd,
5804 cmdsize, and q without initializing them first.
5805
bf6bfba8
JR
58062008-12-04 Jason Rumney <jasonr@gnu.org>
5807
5808 * w32font.c (w32font_draw): Initialize orig_clip before getting
5809 it, and delete it when finished.
5810
a3b1a468
DN
58112008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5812
5813 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5814 case when running as a daemon before detaching.
5815
8b8be8eb
JB
58162008-12-03 Juanma Barranquero <lekktu@gmail.com>
5817
805f2638 5818 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5819
b1bde622
KH
58202008-12-03 Kenichi Handa <handa@m17n.org>
5821
e500c47d
KH
5822 * font.c (font_at): Set `multibyte' at first.
5823
ca516334
KH
5824 * coding.c (decode_coding_charset): Check type of an element of
5825 vector VALIDS.
7bf1bb21 5826 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5827
4ccfa1c0 5828 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5829 (font_for_char): Likewise.
5830
1e5ecd37
CY
58312008-12-03 Chong Yidong <cyd@stupidchicken.com>
5832
d5b01609 5833 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5834 (font_update_lface): Handle fonts with corrupted size specs,
5835 i.e. non-int and non-float.
d5b01609 5836
11e3a6e4 5837 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5838 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5839 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5840
ab06788b
CY
5841 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5842
1e5ecd37 5843 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5844 underline_minimum_offset for underline position.
1e5ecd37 5845
63c125ab
DN
58462008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5847
5848 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5849
5850 * character.c (c_string_width): Specify the type for LEN.
5851
3a8406e1
KH
58522008-12-03 Kenichi Handa <handa@m17n.org>
5853
4ccfa1c0 5854 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5855 (decode_coding_utf_8): Likewise.
4ccfa1c0 5856 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5857 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5858
651df7d9
CY
58592008-12-02 Chong Yidong <cyd@stupidchicken.com>
5860
5861 * keyboard.c (make_lispy_position): Only use PT if the selected
5862 window is current.
5863
1f625c6c
AS
58642008-12-02 Andreas Schwab <schwab@suse.de>
5865
f7741ce9
AS
5866 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5867
1f625c6c
AS
5868 * doprnt.c (doprnt1): Fix size of charbuf.
5869
92bc2678
CY
58702008-12-02 Chong Yidong <cyd@stupidchicken.com>
5871
5872 * keyboard.c (timer_check): Revert last change.
5873
93b9e8cc
JB
58742008-12-02 Juanma Barranquero <lekktu@gmail.com>
5875
5876 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5877
fd7a37d5
JB
58782008-12-01 Juanma Barranquero <lekktu@gmail.com>
5879
5880 * makefile.w32-in: Update dependencies.
5881 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5882
c115043b
AS
58832008-12-01 Andreas Schwab <schwab@suse.de>
5884
5885 * font.c (register_font_driver): Use xmalloc.
5886 (font_put_frame_data): Likewise.
5887
f5668d2a
CY
58882008-12-01 Chong Yidong <cyd@stupidchicken.com>
5889
860d96be
CY
5890 * xfaces.c (realize_x_face): Make abort condition clearer.
5891
f5668d2a
CY
5892 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5893
379c17e7
CY
58942008-11-30 Chong Yidong <cyd@stupidchicken.com>
5895
5896 * keyboard.c (timer_check): After a timer runs, ensure that the
5897 selected window's buffer is current.
5898
35f36d65
JB
58992008-11-30 Juanma Barranquero <lekktu@gmail.com>
5900
f952c61c
JB
5901 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5902 It was accidentally restored by the Unicode merge.
5903
35f36d65
JB
5904 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5905
b23077df
JB
59062008-11-29 Juanma Barranquero <lekktu@gmail.com>
5907
5908 * w32proc.c: Include "coding.h".
5909 (Fw32_short_file_name): Encode filename passed to Windows API.
5910 (Fw32_long_file_name): Encode filename passed to Windows API and
5911 decode back the result. (Bug#1433)
5912
b8ebe9dd
KH
59132008-11-29 Kenichi Handa <handa@m17n.org>
5914
8cc53f96
KH
5915 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5916 not before accessing it.
5917
b8ebe9dd
KH
5918 * charset.c (Fdefine_charset_internal): After calculating
5919 min_char, max_char, and fastmap, copy the charset structure again.
5920 (encode_char): Fix the previous change.
5921
59bc82c0
SZ
59222008-11-28 Seiji Zenitani <zenitani@mac.com>
5923
5924 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5925
5926 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5927
5928 * nsterm.m (x_set_frame_alpha): New function.
5929
32247e3d
EZ
59302008-11-27 Eli Zaretskii <eliz@gnu.org>
5931
5932 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5933
b003e5ff
JB
59342008-11-27 Juanma Barranquero <lekktu@gmail.com>
5935
5936 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5937 pointer to check_face_name.
5938
708550f5
KH
59392008-11-27 Kenichi Handa <handa@m17n.org>
5940
5941 * category.h (SET_CATEGORY_SET): Call set_category_set.
5942 (set_category_set): Extern it.
5943
5944 * category.c (hash_get_category_set): New function.
5945 (Fmodify_category_entry): Adjusted for the change of
5946 char_table_ref_and_range. Call hash_get_category_set to get a
5947 category set to store in the table.
5948
5949 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5950 Funify_charset.
5951
2ae37cf0 5952 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5953 (DECODE_CHAR): Check if the decoder vector is ready.
5954 (ENCODE_CHAR): Check if the encoder char-table is ready.
5955 (maybe_unify_char): Extern it.
5956
5957 * charset.c (Vchar_unified_charset_table): Delete it.
5958 (inhibit_load_charset_map): New variable.
5959 (temp_charset_work): New variable.
5960 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5961 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5962 New macros.
5963 (load_charset_map): Meaning of control_flag changed. If
5964 inhibit_load_charset_map is nonzero, setup a table in
5965 temp_charset_work.
5966 (load_charset): New argument control_flag.
5967 (map_charset_for_dump): New function.
5968 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5969 map_charset_for_dump.
5970 (Fdefine_charset_internal): If the charset method is MAP, load
5971 mapping tables by calling load_charset.
5972 (Funify_charset): Don't load a mapping table but directly set
5973 Vchar_unify_table.
5974 (maybe_unify_char): New function.
5975 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5976 Handle the case of inhibit_load_charset_map being nonzero.
5977 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5978 Handle the case of inhibit_load_charset_map being nonzero.
5979 (Fclear_charset_maps): Just free temp_charset_work.
5980 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5981 variable.
5982
5983 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5984 change of char_table_ref_and_range.
5985 (char_table_ref_and_range): Change the meaning of argument FROM
5986 and TO. Now the caller must provide initial values for *FROM
5987 and *TO.
5988
5989 * fontset.c (fontset_add): Adjusted for the change of
5990 char_table_ref_and_range.
5991 (fontset_get_font_group): Likewise.
5992 (Ffontset_info): Likewise.
5993
5994 * keymap.c (describe_vector): Adjusted for the change of
5995 char_table_ref_and_range. For char-table, put boundary between
5996 non-ASCII and 8-bit characters.
5997
5998 * print.c (print_object): For bool-vector, delete unnecessary
5999 check of ASCII_BYTE_P.
6000
9196133b
JR
60012008-11-26 Jason Rumney <jasonr@gnu.org>
6002
6003 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6004 leading in font height. (Bug#879)
9196133b 6005
9f688acf
GM
60062008-11-26 Glenn Morris <rgm@gnu.org>
6007
6008 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6009 redefinition with ifdef. (Bug#1383)
6010
90d19aff
AR
60112008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6012
6013 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6014
4ccfa1c0 60152008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6016
6017 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6018 New EmacsView methods.
6019 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6020 Fixes bug #1048,1357,1414.
6021
60222008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6023
6024 Fix bug #1362.
6025 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6026 is not an indexed color.
6027 * nsterm.m (free_indexed_color): Add argument checking.
6028 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6029
e7d5ecb3
CY
60302008-11-24 Chong Yidong <cyd@stupidchicken.com>
6031
6032 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6033 Document confirm-after-completion value for
6034 minibuffer-completion-confirm.
6035
c285743c
JR
60362008-11-24 Jason Rumney <jasonr@gnu.org>
6037
6038 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6039 warning.
6040
b0857706
JR
60412008-11-23 Jason Rumney <jasonr@gnu.org>
6042
6043 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6044 restored before returning.
6045
6046 * w32font.c (check_face_name): New function.
6047 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6048 fonts. (Bug#642)
b0857706 6049
ee50ff07
MR
60502008-11-22 Martin Rudalics <rudalics@gmx.at>
6051
6052 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6053 confirm-nonexistent-file-or-buffer in doc-string.
6054
b8ff72fa
SM
60552008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6056
6057 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6058 Fix copy/paste typo. Add checks.
6059
cee53ed4
KH
60602008-11-21 Kenichi Handa <handa@m17n.org>
6061
6062 * coding.c (detect_coding_iso_2022): Reject invalid composition
6063 sequence.
6064 (DECODE_COMPOSITION_START): If the current source is the last
6065 block, and the current composition doesn't end, regard this
6066 sequence as invalid.
6067 (decode_coding_iso_2022): Handle invalid composition sequence.
6068
f6ef1e65
MR
60692008-11-20 Martin Rudalics <rudalics@gmx.at>
6070
6071 * window.c (coordinates_in_window): Don't return
6072 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6073 line when the window is not the rightmost one. (Bug#1372)
6074
e08b1705
MR
60752008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6076
6077 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6078
ad98e89f
EZ
60792008-11-15 Eli Zaretskii <eliz@gnu.org>
6080
6081 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6082 and bright_bg if noninteractive is non-zero.
6083
fb098a4b
CY
60842008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6085
6086 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6087 x_draw_glyph_string_background.
6088
6089 * w32term.c (x_draw_glyph_string): Likewise.
6090
ce952b6e
CY
60912008-11-15 Chong Yidong <cyd@stupidchicken.com>
6092
6093 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6094 the next glyph string once past the overhang width.
6095
6096 * nsterm.m (ns_draw_glyph_string): Likewise.
6097
6098 * w32term.c (x_draw_glyph_string): Likewise.
6099
26ea7079
CY
61002008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6101
6102 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6103 double file close.
6104
1c33c906
MR
61052008-11-14 Martin Rudalics <rudalics@gmx.at>
6106
6107 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6108 dedicated status of window before attempting to display another
6109 buffer in it.
6110
8fc29035
JB
61112008-11-14 Juanma Barranquero <lekktu@gmail.com>
6112
6113 * msdos.c (Fmsdos_long_file_names):
6114 (syms_of_msdos) <dos-unsupported-char-glyph>:
6115 * dosfns.c (Fint86): Fix typos in docstrings.
6116
55fb4286
EZ
61172008-11-14 Eli Zaretskii <eliz@gnu.org>
6118
6119 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6120
3fda0315
KY
61212008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6122
6123 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6124
7e849c17
CY
61252008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6126
6127 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6128
6129 * frame.h: Negative alpha means "don't touch".
6130
6131 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6132
6133 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6134
b9fd67bd
DN
61352008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6136
6137 * hftctl.c:
6138 * chpdef.h:
6139 * acldef.h: Remove files used only for systems no longer supported.
6140
6141 * Makefile.in: Fix .o alphabetical ordering.
6142 (hftctl.o): Remove dependency, file removed.
6143 (keymap.o, print.o): Depend on charset.h.
6144
d5998e03
KH
61452008-11-10 Kenichi Handa <handa@m17n.org>
6146
2ae37cf0 6147 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6148
be70e183
CY
61492008-11-08 Chong Yidong <cyd@stupidchicken.com>
6150
6151 * dired.c (file_name_completion): If completion_ignore_case is
6152 enabled, ignore case when checking completion-regexp-list.
6153
7cf94eac
EZ
61542008-11-08 Eli Zaretskii <eliz@gnu.org>
6155
6156 * vm-limit.c (get_lim_data): Fix last change.
6157
ee107a89
KH
61582008-11-08 Kenichi Handa <handa@m17n.org>
6159
6160 * character.c (Fget_byte): New function.
6161 (syms_of_character): Defsubr Fget_byte.
6162
5fd15622
CY
61632008-11-07 Chong Yidong <cyd@stupidchicken.com>
6164
6165 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6166 cursor position is valid after scrolling.
6167
13d62fad
JB
61682008-11-06 Juanma Barranquero <lekktu@gmail.com>
6169
6170 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6171
a1dd2936
GM
61722008-11-06 Glenn Morris <rgm@gnu.org>
6173
6174 * xterm.c (handle_one_xevent): Don't let popup menus cause
6175 mouse-autoselect-window related window switching. (Bug#1261)
6176
860cd236
CY
61772008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6178
6179 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6180
653a3150
AS
61812008-11-04 Andreas Schwab <schwab@suse.de>
6182
6183 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6184
870f5cac
CY
61852008-11-03 Chong Yidong <cyd@stupidchicken.com>
6186
6187 * xfns.c (Fx_wm_set_size_hint): New function.
6188
1e02f3cb
MR
61892008-11-03 Martin Rudalics <rudalics@gmx.at>
6190
6191 * textprop.c (Fprevious_single_char_property_change): Return 0
6192 when there's no change in a string. (Bug#1301)
6193
e630dfc6
MR
61942008-11-02 Martin Rudalics <rudalics@gmx.at>
6195
6196 * frame.c (do_switch_frame): New argument NORECORD passed to
6197 Fselect_window.
6198 (Fselect_frame): New argument NORECORD passed to
6199 do_switch_frame.
6200 (Fset_frame_selected_window): New argument NORECORD passed to
6201 Fselect_frame.
6202 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6203 in call of do_switch_frame.
6204 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6205 Handle NORECORD argument in call of Fselect_frame.
6206 * lisp.h (do_switch_frame, Fselect_frame)
6207 (Fset_frame_selected_window): Adjust declarations.
6208 * window.c (select_frame_norecord): New function.
6209 (run_window_configuration_change_hook): Use it and call
6210 Fselect_frame with NORECORD set.
6211 (Fselect_window): Pass NORECORD to Fselect_frame.
6212 (Fset_window_configuration): Handle NORECORD argument in call of
6213 do_switch_frame.
6214 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6215 Fset_frame_selected_window.
6216 * keyboard.c (command_loop_1): Handle NORECORD in call of
6217 Fselect_frame (currently ifdefd).
6218
9020b223
GM
62192008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6220
6221 * emacs.c (USAGE2): Untabify.
6222
793ffee8
SM
62232008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6224
6225 * composite.c (fill_gstring_header): Fix copy/paste typo.
6226
ab6d1131
MR
62272008-10-31 Martin Rudalics <rudalics@gmx.at>
6228
6229 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6230 (Fother_window): Rename argument and rewrite doc-string.
6231 (select_window_norecord): Fix return value. (Bug#1276)
6232
601a9cf1
JB
62332008-10-30 Juanma Barranquero <lekktu@gmail.com>
6234
6235 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6236 new frames overriding foreground for tooltips. Based on similar patch
6237 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6238
813b0652
CY
62392008-10-29 Chong Yidong <cyd@stupidchicken.com>
6240
6241 * emacs.c (Fdaemon_initialized): Initialize nfd.
6242
4414f58f
MR
62432008-10-29 Martin Rudalics <rudalics@gmx.at>
6244
6245 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6246 (Fwindow_text_height): Clarify doc-strings.
6247 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6248 doc-string of window-scroll-functions.
6249
ecdcaa09
RS
62502008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6251
6252 * category.c (syms_of_category): Fix typo in docstring.
6253
23fe745a
JB
62542008-10-28 Juanma Barranquero <lekktu@gmail.com>
6255
6256 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6257 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6258 Fix typos in docstrings.
6259
ff808935
DN
62602008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6261
6262 * emacs.c (daemon_pipe): Make non-static.
6263 (IS_DAEMON): Move definition ...
6264 * lisp.h (IS_DAEMON): ... here.
6265 (daemon_pipe): Declare.
6266 (is_daemon): Remove.
6267 * dispnew.c (init_display): Use IS_DAEMON.
6268
fc012771
SM
62692008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6270
6271 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6272 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6273
6274 * emacs.c (is_daemon): Remove.
6275 (main): Don't set is_daemon.
6276 (IS_DAEMON): New macro.
6277 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6278 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6279 parent exits.
6280 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6281
d8bdbe6f
CY
62822008-10-27 Chong Yidong <cyd@stupidchicken.com>
6283
d1a072bf
CY
6284 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6285 over-sized glyph, draw it with the default glyph width.
6286
e2e325aa
CY
6287 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6288 glyph, draw it with the default glyph width.
6289
6290 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6291 glyph, draw it with the default glyph width.
6292
d8bdbe6f
CY
6293 * xdisp.c (try_scrolling): When computing the distance from the
6294 scroll margin to PT, try moving some distance past the window
6295 bottom before giving up.
6296
7bfac547
MR
62972008-10-27 Martin Rudalics <rudalics@gmx.at>
6298
6299 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6300 (Fset_window_buffer): Explain in doc-string that a window can be
6301 "strongly" dedicated to its buffer.
6302
4ff029f6
DN
63032008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6304
6305 * emacs.c (daemon_name): New variable.
6306 (main): Deal with --daemon=SERVER_NAME.
6307 (Fdaemonp): Return a name if one was passed to --daemon.
6308
5790ef40
DN
63092008-10-26 Romain Francoise <romain@orebokech.com>
6310
f9bd0df9 6311 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6312 (main): Create a pipe before forking, make the parent exit only after
6313 the child has closed its end of the pipe. Move closing the
6314 descriptors ...
6315 (Fdaemon_initialized): ... here. New function.
6316
f5385255
SM
63172008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6318
4d632321
SM
6319 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6320 the previous unoptimized table.
6321
f5385255
SM
6322 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6323 the distinction between non-nil and non-t value of `dedicated'.
6324
6c56a0f3
CY
63252008-10-25 Chong Yidong <cyd@stupidchicken.com>
6326
6327 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6328 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6329
fec89261
MR
63302008-10-25 Martin Rudalics <rudalics@gmx.at>
6331
6332 * window.c (Fget_buffer_window, Fdelete_windows_on)
6333 (Freplace_buffer_in_windows): Make buffer argument optional and
6334 rename to buffer_or_name.
6335
34fcddd0
CY
63362008-10-24 Chong Yidong <cyd@stupidchicken.com>
6337
f5385255
SM
6338 * xdisp.c (handle_single_display_spec, handle_display_prop):
6339 Undo 2005-05-16 change.
34fcddd0
CY
6340 (handle_stop): Pop iterator if it's loaded with an empty string.
6341 (get_overlay_strings_1): Don't save iterator if it's loaded with
6342 an empty string (bug#1201).
6343
064766f2
KH
63442008-10-24 Kenichi Handa <handa@m17n.org>
6345
6346 * ftfont.c (ftfont_otf_features): Fix previous change.
6347 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6348 calling ftfont_otf_features.
6349
f9bd0df9 63502008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6351
6352 * font.c (font_match_p): Fix for the case that a vector of
6353 characters is in script-representative-chars.
6354
1dae9197
MA
63552008-10-24 Michael Albinus <michael.albinus@gmx.de>
6356
6357 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6358 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6359 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6360 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6361 macro. (Bug#1186)
1dae9197 6362
f9bd0df9 63632008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6364
6365 * s/sol2-10.h: New file.
6366
878a4584
JB
63672008-10-23 Juanma Barranquero <lekktu@gmail.com>
6368
6369 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6370 poor beast has survived 9+ years and the jump from xterm.c!).
6371
cd265ca6
MR
63722008-10-23 Martin Rudalics <rudalics@gmx.at>
6373
6374 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6375 Reword doc-string.
f5385255 6376 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6377
472a4dc9
JB
63782008-10-23 Juanma Barranquero <lekktu@gmail.com>
6379
6380 * character.c (syms_of_character) <script-representative-chars>:
6381 <unicode-category-table>: Doc fixes.
6382
159bd5a2
NF
63832008-10-23 Noah Friedman <friedman@splode.com>
6384
6385 * coding.c (make_conversion_work_buffer): Check that
6386 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6387 Fget_buffer_create.
6388
49f9c344
KH
63892008-10-23 Kenichi Handa <handa@m17n.org>
6390
6391 * font.c (font_add_log): Check the values of extra properties.
6392
12bb3111
MR
63932008-10-22 Martin Rudalics <rudalics@gmx.at>
6394
6395 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6396 Reword doc-string.
6397 (Fset_window_parameter): Use NILP.
6398 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6399 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6400
bbeb4e99
JB
64012008-10-22 Juanma Barranquero <lekktu@gmail.com>
6402
6403 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6404
64052008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6406
6407 * nsfns.m (ns_appkit_version): New function.
6408 (x-server-version): Use it.
6409 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6410 (x-server-vendor): Don't check_ns().
6411
6412 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6413
a9b555d3
JB
64142008-10-22 Juanma Barranquero <lekktu@gmail.com>
6415
6416 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6417 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6418
4626499f
KH
64192008-10-22 Kenichi Handa <handa@m17n.org>
6420
e3681952
KH
6421 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6422 scripts.
6423
4626499f
KH
6424 * category.c (word_boundary_p): Check scripts instead of charset.
6425 Handle nil value in word-separating-categories and
6426 word-combining-categories.
6427 (syms_of_category): Fix docstrings of word-separating-categories
6428 and word-combining-categories.
6429
1560f91a
EZ
64302008-10-21 Eli Zaretskii <eliz@gnu.org>
6431
6432 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6433 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6434
f4668441
MR
64352008-10-21 Martin Rudalics <rudalics@gmx.at>
6436
6437 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6438 Rename arg "buffer" to "buffer_or_name".
6439 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6440 it optional.
6441 (no_switch_window): Remove since the return value is not used.
a9b555d3 6442 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6443 Consider window as dedicated when Fwindow_dedicated_p returns a
6444 non-nil value.
6445 * lisp.h: Remove prototype for no_switch_window.
6446
fd75ddb2
JD
64472008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6448
6449 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6450 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6451
07295713
KH
64522008-10-21 Kenichi Handa <handa@m17n.org>
6453
6454 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6455 check Vlatin_extra_code_table.
6456
712adc82
EZ
64572008-10-20 Eli Zaretskii <eliz@gnu.org>
6458
6459 * fileio.c (Fset_file_modes): Doc fix.
6460
f549eb0b
MA
64612008-10-19 Michael Albinus <michael.albinus@gmx.de>
6462
6463 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6464 in arrays.
6465
aac0c6e3
MR
64662008-10-19 Martin Rudalics <rudalics@gmx.at>
6467
6468 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6469 Mention kill-buffer in doc-string.
6470 (Fset_window_buffer): Reinsert tem check removed in last commit.
6471 (Fenlarge_window, Fshrink_window): Have argument names and
6472 doc-string follow Elisp manual more closely.
6473
64742008-10-18 Eli Zaretskii <eliz@gnu.org>
6475
6476 * fileio.c (Fset_file_modes): Doc fix.
6477
64782008-10-18 Martin Rudalics <rudalics@gmx.at>
6479
6480 * window.c (Fwindow_width, Fset_window_start)
6481 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6482 (Fdelete_windows_on, Freplace_buffer_in_windows):
6483 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6484 (Fwindow_dedicated_p): Make window argument optional.
6485 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6486 (Fset_window_buffer): Respect any non-nil dedicated value for
6487 window. Rename "buffer" argument to "buffer_or_name".
6488
64892008-10-18 Ulrich Mueller <ulm@gentoo.org>
6490
6491 * m/sh3.h: New file, machine description for SuperH.
6492
64932008-10-17 Martin Rudalics <rudalics@gmx.at>
6494
6495 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6496
64972008-10-17 Kenichi Handa <handa@m17n.org>
6498
6499 * ftfont.c (ftfont_otf_features): Fix indexing
6500 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6501
65022008-10-16 Magnus Henoch <mange@freemail.hu>
6503
6504 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6505 (Fdbus_call_method_asynchronously): Ditto.
6506 This change makes C-h f display the argument list.
6507
65082008-10-16 Chong Yidong <cyd@stupidchicken.com>
6509
6510 * fileio.c (Fexpand_file_name): Doc fix.
6511
6512 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6513 of :foreground and :background equivalent to unspecified (20.x
6514 compatibility).
6515
65162008-10-15 Eli Zaretskii <eliz@gnu.org>
6517
6518 * buffer.c (syms_of_buffer): Doc fix.
6519
65202008-10-14 Kenichi Handa <handa@m17n.org>
6521
6522 * font.c (font_clear_prop): When clearing font width, clear the
6523 average width field too.
6524
65252008-10-12 Andreas Schwab <schwab@suse.de>
6526
6527 * ftfont.c (ftfont_shape_by_flt): Make static.
6528 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6529
6530 * font.c: Don't include <m17n-flt.h>.
6531
65322008-10-10 Eli Zaretskii <eliz@gnu.org>
6533
6534 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6535
65362008-10-09 Eli Zaretskii <eliz@gnu.org>
6537
6538 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6539 away code.
6540
65412008-10-09 Chong Yidong <cyd@stupidchicken.com>
6542
6543 * dispnew.c (update_text_area): Avoid looping due to large glyph
6544 overhangs (bug#1070).
6545
65462008-10-09 Kenichi Handa <handa@m17n.org>
6547
6548 * fontset.c (face_for_char): If face->fontset is negative, just
6549 return ascii_face.
6550
f5385255
SM
6551 * font.c (font_delete_unmatched): Fix previous change.
6552 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6553
65542008-10-09 Martin Rudalics <rudalics@gmx.at>
6555
6556 * frame.c (Fraise_frame): On text-only terminals select frame in
6557 order to make it visible. (Bug#1061)
6558
65592008-10-08 Chong Yidong <cyd@stupidchicken.com>
6560
6561 * fontset.c (fontset_find_font): Check frame validity.
6562
65632008-10-07 Chong Yidong <cyd@stupidchicken.com>
6564
a9b555d3 6565 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6566 (xg_display_close): Allow Emacs to close all displays (bug#985).
6567
65682008-10-06 Andreas Schwab <schwab@suse.de>
6569
f5385255 6570 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6571
65722008-10-06 Chong Yidong <cyd@stupidchicken.com>
6573
f5385255 6574 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6575
a9b555d3 6576 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6577
6578 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6579 during initialization.
6580
65812008-10-04 Eli Zaretskii <eliz@gnu.org>
6582
6583 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6584 whole thing on MSDOS frames as well as on a TTY.
6585
6586 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6587 well as for TTY.
6588 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6589 well as on a TTY.
6590
6591 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6592 as well as for TTY.
6593
6594 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6595
6596 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6597 MSDOS frames as well.
6598
65992008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6600
6601 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6602 correct arguments.
b71ac3dd 6603 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6604
66052008-10-03 Glenn Morris <rgm@gnu.org>
6606
6607 * emacs.c (USAGE1): Add --daemon.
6608
66092008-10-02 Eli Zaretskii <eliz@gnu.org>
6610
6611 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6612 100, so it's in percents as advertised.
6613
66142008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6615
6616 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6617 (ns_output.current_cursor, ns_output.desired_cursor)
6618 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6619 (FRAME_NEW_CURSOR_COLOR): Remove.
6620
6621 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6622 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6623 enumeration (HOLLOW_BOX_CURSOR, etc.).
6624
6625 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6626 (draw_window_cursor): Simplify code.
f5385255
SM
6627 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6628 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6629 updates manually.
a9b555d3
JB
6630 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6631 Use core Emacs cursor types.
aac0c6e3 6632
b8ff72fa 6633 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6634
66352008-10-02 Martin Rudalics <rudalics@gmx.at>
6636
6637 * process.c (Faccept_process_output): Fix doc-string.
6638
66392008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6640
6641 * gmalloc.c (__sbrk): Also define for uClibc.
6642
6643 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6644 for uClibc.
6645
66462008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6647
6648 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6649 styles.
6650 (nsfont_open): Reenable the cache.
6651
66522008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6653
6654 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6655 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6656
66572008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6658
6659 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6660 a suspended terminal.
6661
66622008-09-30 Michael Albinus <michael.albinus@gmx.de>
6663
6664 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6665
66662008-09-30 Eli Zaretskii <eliz@gnu.org>
6667
6668 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6669
66702008-09-30 Chong Yidong <cyd@stupidchicken.com>
6671
6672 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6673 in a continued line coincides with a line beginning.
6674
66752008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6676
6677 * nsfont.m (nsfont_trait_distance): Fix bug.
6678 (nsfont_list): Return a list rather than a vector (syncs with Handa
6679 changes of 2008-05-14).
6680 (nsfont_open): Improve logging.
6681
66822008-09-29 Andreas Schwab <schwab@suse.de>
6683
6684 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6685
66862008-09-28 Martin Rudalics <rudalics@gmx.at>
6687
6688 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6689 name as char-resolve-modifiers.
6690 Reported by: Markus Triska <markus.triska@gmx.at>
6691
66922008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6693
6694 * dispnew.c (init_display): Return earlier when running as a daemon.
6695
66962008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6697
6698 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6699
67002008-09-27 Eli Zaretskii <eliz@gnu.org>
6701
6702 * composite.c (Fcomposition_get_gstring)
6703 (Fcompose_region_internal, Fcompose_string_internal)
6704 (Ffind_composition_internal): Doc fix.
6705 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6706 (syms_of_composite) <auto-composition-function>: Doc fix.
6707 (syms_of_composite) <composition-function-table>: Doc fix.
6708
67092008-09-25 Chong Yidong <cyd@stupidchicken.com>
6710
6711 * search.c (wordify): New argument for lax word-ends.
6712 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6713
67142008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6715
6716 * lisp.h (is_daemon): Declare.
6717 * dispnew.c (init_display): Do not try to initialize the terminal
6718 when running as a daemon.
6719
67202008-09-22 Chong Yidong <cyd@stupidchicken.com>
6721
6722 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6723 x_display_pixel_height.
6724
67252008-09-22 Martin Rudalics <rudalics@gmx.at>
6726
6727 * undo.c (record_point): Don't call Fundo_boundary for first
6728 change. (Bug#731)
6729
67302008-09-22 Juanma Barranquero <lekktu@gmail.com>
6731
6732 * emacs.c (Fdaemonp): Doc fix.
6733
67342008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6735
6736 * emacs.c (main): Place #ifdef in the proper place.
6737
67382008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6739
6740 * emacs.c (standard_args): Add --daemon.
6741 (main): Disconnect from the terminal when --daemon is passed.
6742 (is_daemon): New variable.
6743 (Fdaemonp): New function.
6744 (syms_of_emacs): Defsubr it.
6745
67462008-09-20 Chong Yidong <cyd@stupidchicken.com>
6747
6748 * xdisp.c (get_next_display_element): Handle string display
6749 correctly when checking for the end of a box run.
6750
67512008-09-20 Glenn Morris <rgm@gnu.org>
6752
6753 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6754 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6755 (Frename_file): Avoid copying to trash if a rename involves
6756 a delete. (Bug#964).
6757
67582008-09-20 Eli Zaretskii <eliz@gnu.org>
6759
6760 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6761 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6762 frames as well as termcap frames.
6763 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6764 get_named_tty.
6765
67662008-09-19 Eli Zaretskii <eliz@gnu.org>
6767
6768 * process.c (procfs_system_process_attributes): Fix cmdline in
6769 case /proc/PID/cmdline is empty.
6770
6771 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6772 x_display_pixel_height.
6773
67742008-09-19 Juanma Barranquero <lekktu@gmail.com>
6775
6776 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6777
6778 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6779 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6780
67812008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6782
6783 * dispextern.h (struct it): Move line_wrap away from the middle of
6784 bitfields. Move voffset in struct iterator_stack_entry after the
6785 bitfields. Move tab_width near after another short.
6786
67872008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6788
6789 * frame.h (struct frame): Move alpha from the middle of bitfields.
6790
6791 * window.h (struct window): Move frozen_window_start_p after the
6792 rest of the bitfields to reduce padding.
6793
67942008-09-18 Chong Yidong <cyd@stupidchicken.com>
6795
6796 * xterm.h (x_display_info): Remove `height' and `width' members.
6797
6798 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6799
6800 * w32term.h (w32_display_info): Remove `height', `width',
6801 `height_in', and `width_in' members.
6802
b8ff72fa
SM
6803 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6804 New functions.
aac0c6e3
MR
6805 (x_calc_absolute_position): Use them.
6806 (x_term_init): Omit removed `height' and `width' members.
6807
b8ff72fa
SM
6808 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6809 New functions.
aac0c6e3
MR
6810 (w32_read_socket, x_calc_absolute_position): Use them.
6811 (w32_initialize_display_info, w32_term_init): Omit removed members
6812 of w32_display_info.
6813
b8ff72fa
SM
6814 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6815 New functions.
6816 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6817
b8ff72fa
SM
6818 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6819 New functions.
aac0c6e3
MR
6820 (x_calc_absolute_position): Use them.
6821 (x_term_init): Omit removed `height' and `width' members.
6822
6823 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6824 (compute_tip_xy):
6825 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6826 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6827 x_display_pixel_width.
6828
68292008-09-18 Kenichi Handa <handa@m17n.org>
6830
6831 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6832 (composition_compute_stop_pos): Fix handling of static composition.
6833 (Fcomposition_get_gstring): Check FROM and TO at first.
6834
68352008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6836
46e722a9 6837 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6838 mixup (YAILOM).
6839
68402008-09-17 Chong Yidong <cyd@stupidchicken.com>
6841
6842 * indent.c (Fvertical_motion): Use position reported by iterator
6843 instead of PT for determining screen motion (bug#943).
6844
68452008-09-17 Romain Francoise <romain@orebokech.com>
6846
6847 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6848
68492008-09-17 Kenichi Handa <handa@m17n.org>
6850
6851 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6852
6853 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6854 if necessary.
6855
68562008-09-16 Kenichi Handa <handa@m17n.org>
6857
6858 * coding.c (make_conversion_work_buffer): Avoid calling
6859 Fget_buffer_create if it is not necessary.
6860
68612008-09-15 Martin Rudalics <rudalics@gmx.at>
6862
6863 * window.c (Fselect_window): Don't update window_select_count and
6864 use_time when norecord is not nil.
6865
68662008-09-14 Kenichi Handa <handa@m17n.org>
6867
6868 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6869 specpdl_ptr.
6870
68712008-09-12 Kenichi Handa <handa@m17n.org>
6872
6873 * indent.c (scan_for_column): Don't handle automatic composition
6874 if the current buffer is not associated with a window.
6875
6876 * composite.c (composition_reseat_it): If the current buffer is
6877 not associated with a window, ignore the automatic composition.
6878 (find_automatic_composition): Likewise.
6879
68802008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6881
6882 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6883 (Fgpm_mouse_stop): Use it.
6884 * termhooks.h (close_gpm): Declare.
6885 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6886 connection if Gpm_GetEvent fails.
6887
6888 * window.c (set_window_buffer): Always preserve current-buffer.
6889
68902008-09-12 Glenn Morris <rgm@gnu.org>
6891
6892 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6893
68942008-09-11 Glenn Morris <rgm@gnu.org>
6895
6896 * charset.c (charset-map-path): Doc fix.
6897
68982008-09-10 Kenichi Handa <handa@m17n.org>
6899
6900 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6901
6902 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6903 compose a grapheme cluster with the preceding base glyph.
6904
6905 * composite.c (composition_compute_stop_pos): Fix previous change.
6906 Reset cmp_it->id to -1 at first.
6907
69082008-09-10 Glenn Morris <rgm@gnu.org>
6909
6910 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6911
69122008-09-09 Chong Yidong <cyd@stupidchicken.com>
6913
6914 * keyboard.c (read_key_sequence): Reapply translation maps when
6915 switching keyboards.
6916
69172008-09-09 Kenichi Handa <handa@m17n.org>
6918
6919 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6920 characters.
6921
6922 * composite.c (FORWARD_CHAR): Fix calculation
6923 of (POSITION).pos_byte.
6924 (composition_compute_stop_pos): Limit the search of composition to
6925 at most 500 characters ahead. If we reach the limit or find a
6926 newline, set cmp_it->ch to -2 and return 0.
6927 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6928
69292008-09-08 Kenichi Handa <handa@m17n.org>
6930
6931 * indent.c (Fvertical_motion): Be sure to set
6932 it_overshoot_expected if it.cmp_it.id is non-negative.
6933
69342008-09-07 Andreas Schwab <schwab@suse.de>
6935
6936 * callproc.c (Fcall_process): Don't hold references to string data
6937 across garbage collection. Move initialisation of new_argv down
6938 to avoid compiler bug.
6939
69402008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6941
6942 * process.c (Fsystem_process_attributes): Doc fix.
6943
69442008-09-07 Chong Yidong <cyd@stupidchicken.com>
6945
6946 * callproc.c (Fcall_process): Canonicalize current directory name.
6947
6948 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6949 iterator advances to the next line if the current line ends in a
6950 continued tab.
6951
69522008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6953
6954 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6955 member to point to cmp_from.
6956
6957 * xdisp.c: Doc fix for references to gidx data member.
6958
69592008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6960
6961 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6962
69632008-09-07 Kenichi Handa <handa@m17n.org>
6964
6965 * composite.c (FORWARD_CHAR): Check STOP after
6966 incrementing (POSITION).pos.
6967
69682008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6969
6970 * process.c (Fsystem_process_attributes): Doc fix.
6971
69722008-09-06 Chong Yidong <cyd@stupidchicken.com>
6973
6974 * keyboard.c (Ftop_level): Doc fix.
6975
69762008-09-06 Eli Zaretskii <eliz@gnu.org>
6977
6978 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6979 minibuffer, don't let lower part of menu invade the echo area.
6980
6981 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6982 "char *q" to access menu text and advance through it. Revert the
6983 change that displayed ">" instead of ASCII character 0x10.
6984
69852008-09-05 Eli Zaretskii <eliz@gnu.org>
6986
6987 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6988 toggle boxes and radio buttons on MS-DOS as well.
6989
69902008-09-05 Kenichi Handa <handa@m17n.org>
6991
6992 * composite.c (autocmp_chars): Check lookback count.
6993 (composition_compute_stop_pos): Set cmp_it->lookback.
6994 (composition_reseat_it): Check lookback count.
6995 (struct position_record): New struct.
6996 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6997 (find_automatic_composition): New function.
6998 (composition_adjust_point): Use find_automatic_composition.
6999
7000 * dispextern.h (struct composition_it): New member lookback.
7001
70022008-09-02 Chong Yidong <cyd@stupidchicken.com>
7003
7004 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7005 if moving by a single line.
7006
70072008-09-02 Andreas Schwab <schwab@suse.de>
7008
7009 * xterm.c (x_delete_display): Fix merge error.
7010
7011 * fileio.c (Fexpand_file_name): Remove unused variables.
7012
70132008-09-02 Eli Zaretskii <eliz@gnu.org>
7014
7015 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7016 storage on all platforms, not just on DOS_NT.
7017
70182008-09-02 Jason Rumney <jasonr@gnu.org>
7019
b8ff72fa
SM
7020 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7021 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7022
70232008-09-01 Chong Yidong <cyd@stupidchicken.com>
7024
7025 * xfaces.c (Finternal_set_alternative_font_family_alist)
7026 (Finternal_set_alternative_font_registry_alist): Properly copy
7027 entire alist structure.
7028
70292008-09-01 Kenichi Handa <handa@m17n.org>
7030
d66c0241 7031 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7032 representative chars of the script is a vector.
d66c0241
JB
7033 (ftfont_list): Handle the case where the representative chars of
7034 the script is a vector.
aac0c6e3
MR
7035
7036 * character.c (syms_of_character): Docstring of
7037 script-representative-chars fixed.
7038
70392008-08-31 Eli Zaretskii <eliz@gnu.org>
7040
7041 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7042 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7043 the menu. Allocate larger buffer for `text', to account for
7044 possible ^C characters.
7045
70462008-08-31 Martin Rudalics <rudalics@gmx.at>
7047
7048 * xdisp.c (prepare_menu_bars): Don't call
7049 Vwindow_size_change_functions with arg Qt.
7050
70512008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7052
7053 * font.h (font_range):
7054 * fileio.c (report_file_error):
46e722a9
SM
7055 * composite.c (composition_update_it): Yet another int/Lisp_Object
7056 mixup (YAILOM).
aac0c6e3
MR
7057
70582008-08-30 Glenn Morris <rgm@gnu.org>
7059
7060 * data.c (Fmake_variable_frame_local): Doc fix.
7061
7062 * frame.c (Fmodify_frame_parameters): Doc fix.
7063
70642008-08-30 Eli Zaretskii <eliz@gnu.org>
7065
7066 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7067 needed by GetTokenInformation.
7068 (w32_system_process_attributes): Check return values of all system
7069 APIs.
7070
7071 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7072 only when the state changes.
7073 (IT_update_begin, IT_update_end): Add termscript trace.
7074
7075 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7076 clipboard is unavailable. Set dst to NULL if it doesn't point to
7077 malloc'ed data.
7078 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7079 passing random values to xfree.
7080
7081 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7082 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7083
70842008-08-29 Jason Rumney <jasonr@gnu.org>
7085
7086 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7087
70882008-08-29 Eli Zaretskii <eliz@gnu.org>
7089
7090 * composite.c (fill_gstring_body): Avoid compiler warnings.
7091
7092 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7093 LGLYPH_SET_CODE to avoid compiler warnings.
7094
2ae37cf0 7095 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7096
7097 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7098
7099 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7100 LGLYPH_SET_CODE.
7101
71022008-08-29 Kenichi Handa <handa@m17n.org>
7103
7104 * fileio.c (report_file_error): Don't downcase the first character
7105 of errstring if it is still unibyte.
7106
71072008-08-29 Kenichi Handa <handa@m17n.org>
7108
7109 These changes are to re-implement the automatic composition so
7110 that it doesn't use text properties.
7111
7112 * Makefile.in (ftfont.o): Depend on composite.h.
7113 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7114
7115 * character.h (Vunicode_category_table): Extern it.
7116
7117 * character.c (Vunicode_category_table): New variable.
7118 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7119
7120 * chartab.c (optimize_sub_char_table): Perform more greedy
7121 optimization.
7122
b8ff72fa
SM
7123 * composite.h (enum composition_method):
7124 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7125 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7126 (Vcomposition_function_table): Extern it.
7127 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7128 (composition_gstring_put_cache, composition_gstring_from_id)
7129 (composition_gstring_p, composition_gstring_width)
7130 (composition_compute_stop_pos, composition_reseat_it)
7131 (composition_update_it, composition_adjust_point): Extern them.
7132 (Fcomposition_get_gstring): EXFUN it.
7133
d66c0241 7134 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7135 (Vcomposition_function_table)
7136 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7137 (gstring_hash_table, gstring_work, gstring_work_headers):
7138 New variables.
aac0c6e3
MR
7139 (gstring_lookup_cache, composition_gstring_put_cache)
7140 (composition_gstring_from_id, composition_gstring_p)
7141 (composition_gstring_width, fill_gstring_header)
7142 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7143 (composition_reseat_it, composition_update_it)
b8ff72fa 7144 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7145 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7146 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7147 Defsubr composition_get_gstring.
aac0c6e3
MR
7148
7149 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7150 cmp_id.
7151 (struct glyph_string): Delete the member gidx. New members
7152 cmp_id, cmp_from, and cmp_to.
7153 (enum it_method): Delete GET_FROM_COMPOSITION.
7154 (struct composition_it): New struct.
7155 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7156 Delete c, len, cmp_id, cmp_len in u.comp.
7157
7158 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7159 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7160 (enum lglyph_indices): Likewise.
b8ff72fa 7161 (font_range): Adjust extern.
aac0c6e3
MR
7162 (font_fill_lglyph_metrics): Extern it.
7163
7164 * font.c (QCf): New variable.
7165 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7166 (font_prepare_composition): Delete this function.
7167 (font_range): Type and arguments changed.
7168 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7169 (font_fill_lglyph_metrics): New function.
b8ff72fa 7170 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7171 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7172 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7173 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7174
7175 * fontset.h (font_for_char): Extern it.
7176
7177 * fontset.c (font_for_char): New function.
7178
7179 * ftfont.c: Include composite.h.
7180 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7181 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7182
7183 * indent.c: Include composite.h and dispextern.h.
7184 (check_composition): Delete this function.
7185 (scan_for_column): Handle composition by
7186 composition_compute_stop_pos, composition_reseat_it, and
7187 composition_update_it.
7188 (compute_motion): Likewise.
7189 (Fvertical_motion): Fix checking of composition.
7190
7191 * keyboard.c (adjust_point_for_property): Check composition by
7192 composition_adjust_point.
7193
b8ff72fa 7194 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7195 struct glyph_string.
7196
b8ff72fa
SM
7197 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7198 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7199 struct glyph.
7200 (produce_composite_glyph): Likewise.
7201
b8ff72fa
SM
7202 * w32term.c (x_draw_composite_glyph_string_foreground):
7203 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7204 (x_draw_glyph_string): Likewise.
7205
7206 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7207 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7208
7209 * xdisp.c: Include font.h.
7210 (it_props): Delete the entry for Qauto_composed.
7211 (init_iterator): Initialize it->cmp_it.id to -1.
7212 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7213 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7214 (handle_auto_composed_prop): Delete it.
7215 (handle_composition_prop): Handle only static composition.
7216 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7217 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7218 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7219 (pop_it): Likewise.
7220 (get_next_element): Delete next_element_from_composition.
7221 (CHAR_COMPOSED_P): New macro.
7222 (get_next_display_element): For automatic composition, get a face
7223 from the font in the glyph-string.
7224 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7225 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7226 (next_element_from_string): Check if the character at the current
7227 position is composed by CHAR_COMPOSED_P.
7228 (next_element_from_buffer): Likewise.
d66c0241
JB
7229 (next_element_from_composition): Adjust for the change of struct it.
7230 Update it->cmp_it.
b8ff72fa
SM
7231 (dump_glyph): Adjust for the change of struct glyph.
7232 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7233 it and struct glyph. Don't handle automatic composition here.
7234 (fill_gstring_glyph_string): New function.
7235 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7236 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7237 (BUILD_GSTRING_GLYPH_STRING): New macro.
7238 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7239 automatic composition.
b8ff72fa 7240 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7241 struct glyph.
b8ff72fa 7242 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7243
b8ff72fa 7244 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7245 the change of struct glyph_string.
7246 (x_draw_glyph_string): Likewise.
7247
72482008-08-29 Glenn Morris <rgm@gnu.org>
7249
7250 * buffer.c (word-wrap): Doc fix.
7251 * xdisp.c (truncate-partial-width-windows): Doc fix.
7252 Increase default to 50.
7253
72542008-08-29 Chong Yidong <cyd@stupidchicken.com>
7255
7256 * xdisp.c (update_tool_bar_unwind): New function.
7257 (update_tool_bar): Temporarily set selected frame before building
7258 tool-bar items.
7259
72602008-08-28 Michael Albinus <michael.albinus@gmx.de>
7261
7262 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7263 snprintf, respectively.
7264 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7265
72662008-08-28 Chong Yidong <cyd@stupidchicken.com>
7267
7268 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7269 LDFLAGS to GNUstep CC invocation.
7270
72712008-08-27 Chong Yidong <cyd@stupidchicken.com>
7272
7273 * indent.c (Fvertical_motion): Revert last change. Handle the
7274 general case where we are moving forward, and PT spans multiple
7275 screen lines.
7276
7277 * eval.c (find_handler_clause): Temporarily increase
7278 max-lisp-eval-depth while printing the backtrace buffer, to
7279 guarantee that help-mode code can run.
7280
72812008-08-27 Eli Zaretskii <eliz@gnu.org>
7282
7283 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7284 colors under -rv.
7285 (IT_set_frame_parameters): Don't swap foreground and background
7286 colors if `(reverse . t)' is present in the frame properties.
7287 (internal_terminal_init): Call init_frame_faces only for the
7288 initial frame.
7289
72902008-08-27 Andreas Schwab <schwab@suse.de>
7291
7292 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7293
72942008-08-27 Andreas Schwab <schwab@suse.de>
7295
7296 * search.c (search_buffer): Set char_base to zero only at the end.
7297
72982008-08-27 Kenichi Handa <handa@m17n.org>
7299
b8ff72fa 7300 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7301
73022008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7303
7304 * xterm.c (x_term_init): Temporarily hide the partially
7305 initialized terminal while calling vendor-specific-keysyms.
7306
73072008-08-26 Eli Zaretskii <eliz@gnu.org>
7308
7309 * msdos.c (internal_terminal_init): Most initializations done only
7310 once, especially initial_screen_colors[] and termscript open.
7311
73122008-08-26 Chong Yidong <cyd@stupidchicken.com>
7313
7314 * eval.c (Fcondition_case): Doc fix.
7315
7316 * widgetprv.h (EmacsFramePart): Change font member to the new font
7317 struct.
7318
7319 * widget.c: Include character.h and font.h for XSETFONT.
7320 (setup_frame_gcs): Compute X font id from font struct, just once.
7321
73222008-08-26 Eli Zaretskii <eliz@gnu.org>
7323
7324 * term.c (get_named_tty): Fix last change.
7325
73262008-08-26 Chong Yidong <cyd@stupidchicken.com>
7327
7328 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7329 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7330
73312008-08-25 Eli Zaretskii <eliz@gnu.org>
7332
7333 * frame.c (do_switch_frame): Mark previously displayed frame as
7334 obscured for FRAME_MSDOS_P frames as well.
7335
73362008-08-24 Eli Zaretskii <eliz@gnu.org>
7337
7338 * frame.c (make_terminal_frame): Initialize f->terminal,
7339 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7340 Set the top frame to newly created frame.
7341 (Fmake_terminal_frame): Reuse the_only_display_info.
7342
7343 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7344 estimating available memory.
7345
b97439ce 73462008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7347
7348 * nsterm.m (ns_draw_window_cursor): Don't call
7349 NSDisableScreenUpdates and NSEnableScreenUpdates on
7350 non-NS_IMPL_COCOA systems.
7351
73522008-08-23 Andreas Schwab <schwab@suse.de>
7353
7354 * process.c (procfs_system_process_attributes): Fix use of
7355 uninitialized variables.
7356
73572008-08-23 Eli Zaretskii <eliz@gnu.org>
7358
7359 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7360
7361 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7362 calling tty-set-up-initial-frame-faces.
7363
b8ff72fa
SM
7364 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7365 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7366
7367 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7368 addition to output_termcap.
7369
7370 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7371
7372 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7373 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7374 highlight.
7375
7376 * process.c [!subprocesses]: Define QCname.
7377 (syms_of_process): Intern and staticpro it.
7378
7379 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7380 Adjust for changes in encoding/decoding routines.
7381 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7382 encode_coding and decode_coding.
7383
b8ff72fa 7384 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7385
7386 * dosfns.c: Include frame.h before termhooks.h.
7387 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7388 variable termscript.
7389
7390 * s/msdos.h (USER_FULL_NAME): Define.
7391 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7392
7393 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7394 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7395 pw->pw_gecos.
7396
7397 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7398 SELECTED_FRAME as additional (1st) argument.
7399 (tty_read_avail_input): Handle output_msdos_raw in
7400 addition to output_termcap.
7401
7402 * msdos.c: Include frame.h before termhooks.h.
7403 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7404 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7405 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7406 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7407 (IT_set_terminal_modes, IT_reset_terminal_modes)
7408 (IT_set_frame_parameters): Use tty->termscript instead of a global
7409 variable termscript.
7410 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7411 global variable terminal_coding. Don't refer to
7412 Vnonascii_translation_table.
7413 (internal_terminal_init): Set Vwindow_system in current_kboard.
7414 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7415 Announce date and time of session start, if termscript is open.
7416 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7417 term.c:init_tty). Open termscript only of not already open.
7418 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7419 here instead of dos_ttraw. Don't initialize display if this is an
7420 initial tty. Don't set FRAME_FONT.
7421 (Vwindow_system_version): Bump to 23.
7422 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7423 is available, set up mouse_position_hook.
7424 (dos_ttraw, IT_set_terminal_modes): If called with initial
7425 terminal, do nothing.
7426 (IT_set_frame_parameters): Handle the Qtty_type frame
7427 parameter by calling internal_terminal_init.
7428 (dos_set_window_size, show_mouse_face)
7429 (clear_mouse_face, IT_note_mode_line_highlight)
7430 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7431 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7432 (initialize_msdos_display): New function.
7433 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7434 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7435 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7436 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7437 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7438 (request_sigio, unrequest_sigio): Don't define, now defined on
7439 sysdep.c.
7440 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7441
7442 * term.c [MSDOS]: Include msdos.h.
7443 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7444 conditional to DOS_NT. Allow only one call to this function in a
7445 session. Don't allocate a new struct tty_display_info; instead,
7446 reuse the_only_display_info. Call get_tty_size to get screen
7447 dimensions. Call init_baud_rate to set bad_rate.
7448 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7449 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7450 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7451 (get_tty_terminal, get_named_tty, Ftty_type)
7452 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7453 output_termcap.
b8ff72fa
SM
7454 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7455 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7456 only when subprocesses are supported.
aac0c6e3
MR
7457
7458 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7459 f->output_data.x.
7460 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7461 terminal devices.
7462
5582fbc7 7463 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7464 x_output.
7465 (FRAME_FONT): Use output_data.tty.
7466 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7467 (struct x_display_info): Rename from display_info. Update all users in
7468 msdos.c.
aac0c6e3 7469 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7470 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7471 (dos_ttraw): Update prototype.
7472
7473 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7474 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7475
74762008-08-23 Jason Rumney <jasonr@gnu.org>
7477
7478 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7479 (fn_TIFFSetDirectory): New library function used.
7480 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7481 (tiff_load): Use :index to select among multiple images. Set count
7482 property when multiple images exist.
7483 (gif_format): Use :index, not :image.
7484
74852008-08-23 Chong Yidong <cyd@stupidchicken.com>
7486
7487 * xdisp.c (try_scrolling): Check INT_MAX instead of
7488 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7489 to obtain INT_MAX.
7490
74912008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7492
7493 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7494
74952008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7496
7497 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7498 GNUstep library location.
7499
75002008-08-21 Chong Yidong <cyd@stupidchicken.com>
7501
7502 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7503 before using it.
7504
7505 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7506
75072008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7508
7509 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7510 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7511 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7512 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7513 (EmacsApp-cursor_blink_handler): Remove declaration.
7514 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7515 match 01 Feb 2008 changes in xterm.c.
7516 (ns_read_socket): Add cast to avoid warning.
7517 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7518 GNUstep.
7519
75202008-08-20 Chong Yidong <cyd@stupidchicken.com>
7521
7522 * xselect.c (x_get_foreign_selection): Return nil if desired
7523 selection could not be obtained, instead of signalling an error.
7524
75252008-08-20 David Reitter <david.reitter@gmail.com>
7526
7527 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7528 * nsterm.m: Remove ns-specific code for cursor blinking.
7529 (ns_draw_window_cursor): Clear cursor properly rather than
7530 redrawing the area. Respect width of bar cursors.
7531 These changes enable the use of generic blink-cursor-mode and
7532 generic cursor types in NS and support smooth cursor movements (do
7533 not blink off after command).
7534 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7535 Nextstep, too.
7536
75372008-08-19 Kenichi Handa <handa@m17n.org>
7538
7539 * font.c (Vfont_log_deferred): New variable.
7540 (font_add_log): Check Vfont_log_deferred.
7541 (font_deferred_log): New function.
7542
7543 * font.h (font_deferred_log): Extern it.
7544
7545 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7546 for sorting.
7547 (face_for_char): Use deferred log.
7548
75492008-08-18 Kenichi Handa <handa@m17n.org>
7550
7551 * fontset.c (face_for_char): Add font log.
7552
7553 * font.c (font_add_log): Add the font properties :script, :lang,
7554 and :otf in the log.
7555
75562008-08-17 Chong Yidong <cyd@stupidchicken.com>
7557
7558 * xdisp.c: Remove dead code.
7559 (handle_invisible_prop, next_overlay_string): Defer call to
7560 setup_for_ellipsis.
7561 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7562
75632008-08-15 Chong Yidong <cyd@stupidchicken.com>
7564
7565 * xfaces.c (lookup_derived_face): Properly handle possible zero
7566 return value of get_lface_attributes.
7567 (merge_faces): Don't tell lookup_derived_face to signal an error
7568 if face is not found.
7569
7570 * dired.c (Fdirectory_files): Doc fix.
7571
7572 * process.c (make_process): Initialize kill_without_query struct
7573 member.
7574
75752008-08-15 Eli Zaretskii <eliz@gnu.org>
7576
7577 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7578 Alternative calculation of totphys for Visual Studio 6.
7579
7580 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7581
7582 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7583 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7584 All users changed.
7585 (stat): Only root directory passed to GetDriveType. Allow RAM
7586 disk as well as local fixed disk when w32-get-true-file-attributes
7587 is set to `local'.
7588 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7589 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7590 (w32_cached_id, w32_add_to_cache): New functions.
7591 (get_name_and_id): Look account names in the cache before calling
7592 lookup_account_sid.
7593 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7594 New initialization flags.
7595 (globals_of_w32): Initialize them to zero.
7596 (w32_system_process_attributes): Use w32_cached_id and
7597 w32_add_to_cache.
7598
75992008-08-14 Lawrence Mitchell <wence@gmx.li>
7600
7601 * lread.c (Fread_char, Fread_char_exclusive): If no character
7602 event is read before timeout is reached, return nil, rather than
7603 converting to a number.
7604
76052008-08-14 Chong Yidong <cyd@stupidchicken.com>
7606
7607 * fns.c (use_dialog_box): Doc fix.
7608
7609 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7610 on OS X.
7611
76122008-08-13 Chong Yidong <cyd@stupidchicken.com>
7613
7614 * frame.c (Qns_parse_geometry): New var.
7615 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7616
76172008-08-11 Chong Yidong <cyd@stupidchicken.com>
7618
7619 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7620 space character in calculating tabs.
7621
76222008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7623
7624 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7625
76262008-08-10 Glenn Morris <rgm@gnu.org>
7627
7628 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7629 silence gcc "limited range of data type" warnings in some
7630 make_fixnum_or_float calls.
7631
76322008-08-09 Eli Zaretskii <eliz@gnu.org>
7633
7634 * w32.c (w32_system_process_attributes): If the process does not
7635 exist, return nil.
7636
7637 * w32.c: Include thelp32.h, psapi.h and coding.h.
7638 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7639 declarations.
7640 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7641 (Process32Next_Proc): New typedefs.
7642 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7643 (g_b_init_process32_next, g_b_init_open_thread_token)
7644 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7645 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7646 (g_b_init_get_process_working_set_size)
7647 (g_b_init_global_memory_status_ex): New static variables.
7648 (globals_of_w32): Initialize them.
7649 (create_toolhelp32_snapshot, process32_first, process32_next)
7650 (open_thread_token, impersonate_self, revert_to_self)
7651 (get_process_memory_info, get_process_working_set_size)
7652 (global_memory_status, global_memory_status_ex): New wrapper
7653 functions.
7654 (w32_list_system_processes, w32_system_process_attributes)
7655 (enable_privilege, restore_privilege, ltime, process_times):
7656 New functions.
7657 (convert_time_raw): New function.
7658 (convert_time): Remove conversion of FILETIME into time in 100
7659 nsec units, call convert_time_raw instead.
7660
7661 * process.h (w32_list_system_processes, w32_system_process_attributes):
7662 Add prototypes.
7663 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7664 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7665 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7666 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7667
7668 * process.c (Fsystem_process_attributes): Doc fix.
7669
76702008-08-08 Chong Yidong <cyd@stupidchicken.com>
7671
7672 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7673 a continued multi-char glyph; if so, advance to the actual glyph.
7674
76752008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7676
7677 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7678
7679 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7680 (.m.o): Use it.
7681 * config.in: Regenerate.
7682
76832008-08-07 Chong Yidong <cyd@stupidchicken.com>
7684
7685 * xdisp.c (redisplay_window): Revert last change.
7686 (try_window): Check bottom scroll margin too.
7687
76882008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7689
7690 * config.in: Regenerate.
7691
7692 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7693 -list-load-path-shadows'.
7694 (nsgui.h): Reduce number of things depending on it.
7695
76962008-08-06 Chong Yidong <cyd@stupidchicken.com>
7697
7698 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7699 instead of window-end which does the wrong thing at eob.
7700 (try_cursor_movement): Minor optimization.
7701 (redisplay_window): If scroll margin is defined, don't assume
7702 window doesn't need scrolling.
7703
77042008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7705
7706 * config.in: Regenerate.
7707
7708 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7709 (mostlyclean): Don't delete *.d under NS.
7710
7711 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7712
77132008-08-06 Kenichi Handa <handa@m17n.org>
7714
7715 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7716
77172008-08-06 Andreas Schwab <schwab@suse.de>
7718
7719 * config.in: Regenerate.
7720
77212008-08-05 Chong Yidong <cyd@stupidchicken.com>
7722
7723 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7724 forcing a window start.
7725
7726 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7727 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7728
77292008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7730
7731 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7732 argument.
7733
77342008-08-05 Juanma Barranquero <lekktu@gmail.com>
7735
7736 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7737 <scroll-down-aggressively, before-change-functions>:
7738 <after-change-functions>: Reflow docstrings.
7739
77402008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7741 Ken Raeburn <raeburn@gnu.org>
7742
7743 Dock menu customization, based on a patch by Ken Raeburn, plus some
7744 other fixes.
7745 * nsmenu.m (dockMenu): New variable.
7746 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7747
7748 * nsterm.h (dockMenu): Declare.
7749
7750 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7751 (ns_term_init): Initialize dockMenu.
7752 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7753 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7754 left.
7755
7756 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7757
77582008-08-04 Chong Yidong <cyd@stupidchicken.com>
7759
7760 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7761
7762 * config.in: Regenerate.
7763
77642008-08-04 Seiji Zenitani <zenitani@mac.com>
7765
7766 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7767
77682008-08-04 Chong Yidong <cyd@stupidchicken.com>
7769
7770 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7771
77722008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7773
7774 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7775
7776 * keyboard.h: Comment an #endif.
7777
7778 * lisp.h (have_menus_p): Adjust comment.
7779
7780 * menu.c (find_and_return_menu_selection): Fix comparison with
7781 client_data.
7782
7783 * nsmenu.m (popup_activated_flag): New variable.
7784 (popup_activated): New function.
7785 (menu-or-popup-active-p): New exported lisp definition.
7786 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7787 when popup done.
7788 (ns_popup_dialog): Set popup_activated_flag.
7789
7790 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7791 version for GNUstep (handled by conditional typedef in nsterm.m).
7792 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7793 in rgb.txt).
7794
7795 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7796
7797 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7798
7799 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7800
7801 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7802 shortcircuit if popup_activated like GTK and X toolkit.
7803
7804 * m/inter386.h: Change DARWIN to DARWIN_OS.
7805
7806 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7807 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7808 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7809 comment on NO_SOCK_SIGIO.
7810
78112008-08-03 Chong Yidong <cyd@stupidchicken.com>
7812
7813 * nsterm.m (windowDidResize): Remove stopModal call.
7814
78152008-08-03 Andreas Schwab <schwab@suse.de>
7816
7817 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7818 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7819
78202008-08-02 Chong Yidong <cyd@stupidchicken.com>
7821
7822 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7823 Don't use uninitialized pointer variable when using getrlimit.
7824
78252008-08-02 Jason Rumney <jasonr@gnu.org>
7826
7827 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7828
78292008-08-02 Eli Zaretskii <eliz@gnu.org>
7830
7831 * alloc.c (NSTATICS): Bump to 0x640.
7832
7833 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7834
7835 * lisp.h: Add prototype for directory_files_internal.
7836
7837 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7838 New functions.
7839 (syms_of_process): Defsubr them. Add initializations for various
7840 Q* symbols used in procfs_system_process_attributes.
7841 (procfs_list_system_processes, procfs_system_process_attributes)
7842 [HAVE_PROCFS]: New functions.
7843 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7844 (procfs_get_total_memory): New functions.
7845
78462008-08-01 Juanma Barranquero <lekktu@gmail.com>
7847
7848 * xfaces.c (Fx_load_color_file): Fix previous change;
7849 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7850
78512008-08-01 Michael Albinus <michael.albinus@gmx.de>
7852
7853 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7854
78552008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7856
7857 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7858
78592008-08-01 Chong Yidong <cyd@stupidchicken.com>
7860
7861 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7862
7863 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7864 define NSApplicationDelegateReplySuccess.
7865 (EmacsView -converstationIdentifier): Use long instead of
7866 NSInteger for GNUstep, since it doesn't have NSInteger.
7867
7868 * xmenu.c: Revert last change.
7869
7870 * keyboard.h: Fix last change.
7871
78722008-08-01 Juanma Barranquero <lekktu@gmail.com>
7873
7874 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7875 on Windows.
7876
78772008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7878
7879 Warning clearing and clean-up in NS port.
7880 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7881 Add prototypes.
7882 * nsgui.h (FACE_DEFAULT): Remove, unused.
7883 (XGCValues): Change colors to unsigned long.
7884 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7885 nsterm.m.
7886 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7887 (ns_list_fonts): Remove, unused.
7888 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7889 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7890 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7891 (nsfont_draw): Compare face colors to 0, not nil.
7892 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7893 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7894 (-addSubmenuWithTitle:): Use NSMenuItem class.
7895 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7896 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7897 (ns_clip_to_row): Make gc arg a BOOL.
7898 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7899 ns_clip_to_row() call.
7900 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7901 used). Cast FRAME_FONT assignments.
7902 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7903 (ns_string_to_lispmod): Change arg to const char.
7904 (ns_term_init): Use NSMenuItem class.
7905 (EmacsApp -openFile:): Move to different section of file.
7906 (EmacsApp -application:openFiles:): Don't return a value, call
7907 -replyToOpenOrPrint:.
7908 (EmacsView -keyDown:): Fix up cast.
7909 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7910 (EmacsView -menuDown:): Cast tag in call to
7911 find_and_call_menu_selection().
7912 (ns_list_fonts): Remove, unused.
7913 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7914 (ns_fontname_to_xlfd): Make static.
7915 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7916 Remove prototypes (now in keyboard.h).
7917 (next_menubar_widget_id): Remove, unused.
7918 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7919 Remove prototypes (now in keyboard.h).
7920 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7921
79222008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7923
7924 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7925 (floatfns.o): Depend on syssignal.h.
7926 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7927
7928 * systty.h: Fix previous change that removed BSD_TERMIOS.
7929 Add comments to #ifdefs.
7930
79312008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7932
7933 * w32fns.c (w32-load-color-file): Remove.
7934 (x-open-connection): Use renamed Fx_load_color_file.
7935 * xfaces.c (x-load-color-file): Add.
7936 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7937 Emacs.clr.
7938 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7939
79402008-07-31 Michael Albinus <michael.albinus@gmx.de>
7941
7942 * dbusbind.c (Fdbus_call_method_asynchronously)
7943 (Fdbus_method_error_internal): New defuns.
7944 (xd_read_message): Handle also reply messages.
7945 (Vdbus_registered_functions_table): Extend docstring.
7946
79472008-07-31 Juanma Barranquero <lekktu@gmail.com>
7948
7949 * keyboard.c (gobble_input): Fix previous change.
7950
79512008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7952
7953 * bitmaps/README:
7954 * xfns.c:
7955 * termcap.c:
7956 * term.c:
7957 * syswait.h:
7958 * systty.h:
7959 * systime.h:
7960 * syssignal.h:
7961 * sysdep.c:
7962 * process.h:
7963 * process.c:
7964 * print.c:
7965 * ndir.h:
7966 * lread.c:
7967 * keyboard.c:
7968 * getpagesize.h:
7969 * floatfns.c:
7970 * fileio.c:
7971 * emacs.c:
7972 * doc.c:
7973 * dispnew.c:
7974 * dired.c:
7975 * data.c:
7976 * callproc.c:
7977 * buffer.c:
7978 * README:
7979 * Makefile.in:
7980 * s/template.h:
7981 * s/msdos.h:
7982 * m/vax.h: Remove VMS support.
7983 * s/vms.h:
7984 * vlimit.h:
7985 * uaf.h:
7986 * temacs.opt:
7987 * param.h:
7988 * ioctl.h: Remove file.
7989
79902008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7991
7992 * s/ms-w32.h (MULTI_KBOARD): Remove.
7993 * xterm.c:
7994 * xselect.c:
7995 * xfns.c:
7996 * window.c:
7997 * w32term.c:
7998 * w32fns.c:
7999 * terminal.c:
8000 * termhooks.h:
8001 * term.c:
8002 * sysdep.c:
8003 * keyboard.h:
8004 * keyboard.c:
8005 * frame.h:
8006 * frame.c:
8007 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8008 * config.in: Regenerate.
8009
80102008-07-30 Jason Rumney <jasonr@gnu.org>
8011
8012 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8013
8014 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8015 (w32font_open_internal): Get unicode version of textmetrics.
8016 Don't enable or disable glyph indices here.
8017 (w32font_open): Disable use of glyph indices.
8018
8019 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8020
80212008-07-30 Chong Yidong <cyd@stupidchicken.com>
8022
8023 * minibuf.c (Vread_buffer_function): Doc fix.
8024
80252008-07-30 John Paul Wallington <jpw@pobox.com>
8026
8027 * minibuf.c (read_buffer_completion_ignore_case): New var.
8028 (Fread_buffer): Use it.
8029
80302008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8031
8032 * systty.h (sensemode): Remove empty #if. Remove reference to
8033 BSD_TERMIOS, unused.
8034
8035 * sysdep.c: Remove reference to DGUX.
8036 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8037
8038 * config.in: Regenerate.
8039
80402008-07-30 Jason Rumney <jasonr@gnu.org>
8041
8042 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8043
80442008-07-29 Jason Rumney <jasonr@gnu.org>
8045
8046 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8047 is populated.
8048 (uniscribe_encode_char): Always use uniscribe.
8049 Avoid using context if cache is populated.
8050
80512008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8052
8053 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8054 open menu.
8055
8056 * gtkutil.c (menu_nav_ended): Remove.
8057 (create_menus): Remove signal connect for menu_nav_ended.
8058
80592008-07-28 Chong Yidong <cyd@stupidchicken.com>
8060
8061 * xdisp.c (redisplay_window): Check return value of
8062 compute_window_start_on_continuation_line before forcing a window
8063 start.
8064
80652008-07-28 Jason Rumney <jasonr@gnu.org>
8066
8067 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8068
8069 * w32term.c (w32_enable_unicode_output, cleartype_active):
8070 Remove obsolete display options.
8071 (x_draw_glyph_string_background): Don't use old cleartype_active
8072 workaround.
8073 (w32_initialize): Remove cleartype_active initialization.
8074 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8075
80762008-07-28 Andreas Schwab <schwab@suse.de>
8077
8078 * lisp.h (init_weak_hash_tables, syms_of_font)
8079 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8080 (remove_hash_entry): Don't declare.
8081 * eval.c (maybe_call_debugger): Make static and move before use.
8082 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8083 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8084 * xterm.h (x_set_frame_alpha): Declare.
8085
80862008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8087
8088 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8089 (create_menus): Connect selection-done to menu_nav_ended.
8090
80912008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8092
8093 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8094 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8095 parameter with read of 'alpha' one.
8096 (Qns_frame_parameter): Remove.
5582fbc7 8097 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8098 (next-selection-coding-system, Vselection_coding_system)
8099 (Vnext_selection_coding_system): Drop.
8100
81012008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8102
8103 * nsfns.m (do-applescript, do_applescript): Rename to
8104 ns-do-applescript, ns_do_applescript, and move within file.
8105
81062008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8107
8108 Remove support for Mac Carbon.
8109 * mactoolbox.c:
8110 * macterm.h:
8111 * macterm.c:
8112 * macselect.c:
8113 * macmenu.c:
8114 * macgui.h:
8115 * macfns.c:
8116 * mac.c: Remove file.
8117 * s/darwin.h:
8118 * m/intel386.h:
8119 * xfaces.c:
8120 * xdisp.c:
8121 * window.c:
8122 * tparam.c:
8123 * termhooks.h:
8124 * termcap.c:
8125 * term.c:
8126 * syssignal.h:
8127 * sysselect.h:
8128 * sysdep.c:
8129 * process.c:
8130 * lread.c:
8131 * lisp.h:
8132 * keyboard.c:
8133 * image.c:
8134 * fringe.c:
8135 * frame.h:
8136 * frame.c:
8137 * fontset.c:
8138 * font.h:
8139 * font.c:
8140 * fns.c:
8141 * fileio.c:
8142 * emacs.c:
8143 * dispnew.c:
8144 * dispextern.h:
8145 * config.in:
8146 * atimer.c:
2ae37cf0 8147 * Makefile.in: Remove code for Carbon.
aac0c6e3 8148
f0131492 81492008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8150
8151 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8152
81532008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8154
8155 * macterm.h (kCGBitmapByteOrder32Host): New define for
8156 non-universal SDKs.
8157
8158 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8159 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8160
8161 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8162 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8163
81642008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8165
8166 * w32inevt.c: Include dispextern.h.
8167
81682008-07-26 Andreas Schwab <schwab@suse.de>
8169
8170 * print.c (print_object): Fix off-by-one in last change.
8171
81722008-07-25 Juanma Barranquero <lekktu@gmail.com>
8173
8174 * term.c (syms_of_term): Don't initialize default_orig_pair,
8175 default_set_foreground and default_set_background on Windows.
8176
81772008-07-25 Jason Rumney <jasonr@gnu.org>
8178
8179 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8180 ScriptItemize. Clean up return value checking. Remove unused
8181 variables.
8182 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8183 shaping engine.
8184
8185 * w32font.c (w32font_has_char): Handle the case where we can't
8186 determine the script for a character.
8187
81882008-07-25 Chong Yidong <cyd@stupidchicken.com>
8189
8190 * term.c (syms_of_term): Initialize default_orig_pair,
8191 default_set_foreground, and default_set_background.
8192
8193 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8194 clash (bug#86).
8195 (getloadavg): Callers changed.
8196
8197 * image.c (svg_load_image): Fix last change.
8198 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8199 image size is valid. Use g_object_unref instead of deprecated
8200 rsvg_handle_free to free rsvg handle.
8201 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8202
82032008-07-25 Jason Rumney <jasonr@gnu.org>
8204
8205 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8206 surrogates before looking up glyph index.
8207 (w32font_text_extents): Encode as surrogates if falling back to
8208 functions that need UTF-16 wide chars.
8209
8210 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8211 BMP as surrogates before looking up glyph index.
8212
82132008-07-25 Chong Yidong <cyd@stupidchicken.com>
8214
8215 * image.c (svg_load_image): Check for failure in return value of
8216 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8217
82182008-07-25 Jason Rumney <jasonr@gnu.org>
8219
8220 * w32font.c (Fx_select_font): Reverse sense of second arg.
8221
82222008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8223
8224 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8225 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8226
8227 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8228 (PURESIZE): Use it.
8229
82302008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8231
8232 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8233 * m/alpha.h (TEXT_END):
8234 * m/ibmrs6000.h (TEXT_END):
8235 * m/macppc.h (TEXT_END):
8236 * s/darwin.h (TEXT_END):
8237 * s/msdos.h (TEXT_END): Remove, unused.
8238 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8239 * s/cygwin.h: Remove comment.
8240
8241 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8242 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8243 * m/intel386.h (DOT_GLOBAL_START):
8244 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8245 (USG): Remove, file not used on USG platforms.
8246
8247 * Makefile.in (HAVE_X11): Remove empty #else.
8248
82492008-07-24 Andreas Schwab <schwab@suse.de>
8250
8251 * fileio.c (Finsert_file_contents): Properly adjust undo list
8252 after format conversion.
8253
82542008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8255
8256 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8257 (menu_nav_ended): Remove.
8258 (create_menus): Remove signal connect for menu_nav_ended.
8259 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8260 create_menus.
8261 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8262
82632008-07-23 Jason Rumney <jasonr@gnu.org>
8264
8265 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8266 with opened font.
8267 (w32font_open): Set font type to gdi.
8268
8269 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8270
82712008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8272
8273 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8274 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8275 defines it.
8276 * unexec.c (ADDR_CORRECT): Define unconditionally.
8277
8278 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8279
8280 * unexec.c: Remove code depending on !COFF and USG, the file is
8281 not used for such systems.
8282
8283 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8284 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8285 (LD_SWITCH_SYSTEM_1): Remove, update users.
8286
8287 * s/darwin.h (DATA_END):
8288 * m/intel386.h (DATA_END):
8289 * m/ibmrs6000.h (DATA_END):
8290 * m/alpha.h (DATA_END): Remove, unused.
8291
8292 * config.in: Regenerate.
8293 * s/ms-w32.h (subprocesses): Define unconditionally.
8294 * s/template.h (subprocesses): Update comment.
8295 * s/vms.h (subprocesses):
8296 * s/usg5-4.h (subprocesses):
8297 * s/hpux10-20.h (subprocesses):
8298 * s/gnu-linux.h (subprocesses):
8299 * s/cygwin.h (subprocesses):
8300 * s/bsd-common.h (subprocesses):
8301 * s/aix4-2.h (subprocesses):
8302 * s/darwin.h (subprocesses): Do not define, defined by default now.
8303
8304 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8305 Remove all references.
8306 (temacs): Add GNUstep specific ld flags.
8307
8308 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8309 similarly to what X does.
8310
83112008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8312
8313 * nsfns.m (x-list-fonts): Remove.
8314 (syms_of_nsfns): Drop the x-list-fonts declaration.
8315 * nsterm.m: Get rid of remaining "//" comments.
8316
83172008-07-22 Chong Yidong <cyd@stupidchicken.com>
8318
8319 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8320
8321 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8322 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8323 (Fns_own_selection_internal, Fx_disown_selection_internal)
8324 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8325
8326 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8327 ... */' style of docstrings. Doc fixes.
8328
83292008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8330
8331 * terminfo.c (UP, BC, PC): Undo previous change.
8332
8333 * nsfns.m: Rename ns prefixed functions/variables to the
8334 corresponding x versions. Update references.
8335
83362008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8337
8338 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8339
83402008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8341
8342 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8343 Remove forwarding functions.
8344 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8345 non-static.
8346 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8347 non-static.
8348 (ns_frame_parm_handlers): Use the new names.
8349 (syms_of_nsfns): Move to the end of file.
8350
8351 * nsterm.m (syms_of_nsterm): Move to the end of file.
8352
8353 * dispnew.c (init_display): Remove code for X10.
8354
83552008-07-22 Jason Rumney <jasonr@gnu.org>
8356
8357 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8358 bare drive.
8359
83602008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8361
8362 * nsterm.m (syms_of_nsterm): Remove debugging println.
8363
83642008-07-22 David Reitter <david.reitter@gmail.com>
8365
8366 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8367 Carbon implementation of the same functionality: execute arbitrary
8368 AppleScript code.
8369
83702008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8371
8372 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8373 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8374 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8375 (Fx_display_mm_height, Fx_display_mm_width)
8376 (Fx_display_backing_store, Fx_display_visual_class)
8377 (Fx_display_save_under, Fx_open_connection)
8378 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8379 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8380 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8381 (Fx_display_pixel_width, Fx_display_pixel_height)
8382 (Fx_display_usable_bounds, Fx_display_planes)
8383 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8384 ... */' style of docstrings.
8385
83862008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8387
8388 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8389 on this platform.
8390 (mips):
8391 * m/iris4d.h (mips): Do not define.
8392 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8393
8394 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8395
8396 * image.c:
8397 * nsfns.m:
8398 * nsselect.m:
8399 * nsterm.h:
8400 * nsterm.m: Rename ns prefixed functions/variables to the
8401 corresponding x versions. Update references.
8402
8403 * m/ibms390x.h (NO_REMAP): Do not undefine.
8404
8405 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8406
84072008-07-21 Chong Yidong <cyd@stupidchicken.com>
8408
8409 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8410 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8411 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8412 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8413 (Fns_display_mm_height, Fns_display_mm_width)
8414 (Fns_display_backing_store, Fns_display_visual_class)
8415 (Fns_display_save_under, Fns_open_connection)
8416 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8417 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8418 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8419 (Fns_display_pixel_width, Fns_display_pixel_height)
8420 (Fns_display_usable_bounds, Fx_display_planes)
8421 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8422
84232008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8424
8425 * print.c (print_object): Check print_depth before searching for
8426 circularities.
8427
84282008-07-21 Michael Albinus <michael.albinus@gmx.de>
8429
8430 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8431 only sprintf.
8432
84332008-07-21 Kenichi Handa <handa@m17n.org>
8434
8435 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8436
84372008-07-20 Andreas Schwab <schwab@suse.de>
8438
8439 * syntax.c (find_start_pos, find_start_value)
8440 (find_start_value_byte, find_start_begv, find_defun_start)
8441 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8442
84432008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8444
8445 * s/sol2-3.h: Insert contents of s/sol2.h.
8446 (LD_SWITCH_SYSTEM): Remove redundant definition.
8447 * s/sol2.h: Remove, unused.
8448
84492008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8450
8451 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8452
84532008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8454
8455 * Makefile.in (ns_appdir): Fix typo in find command.
8456
84572008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8458
8459 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8460
8461 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8462 added not supported anymore.
8463
8464 * s/usg5-4-2.h (LIBS_SYSTEM):
8465 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8466
8467 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8468 * s/lynxos.h (GETPGRP_NO_ARG):
8469 * s/hpux10-20.h (NO_SIOCTL_H):
8470 * s/gnu.h (GETPGRP_NO_ARG):
8471 * s/gnu-linux.h (NO_SIOCTL_H):
8472 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8473 * s/cygwin.h (GETPGRP_NO_ARG):
8474 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8475 (C_DEBUG_SWITCH): Remove duplicate definition.
8476
8477 * m/ibms390.h: Remove boilerplate comments.
8478
8479 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8480
8481 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8482 (wait_reading_process_output): Remove code for SunOS, platform not
8483 supported anymore. Use SOLARIS2 instead of sun.
8484
84852008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8486
8487 * font.c (font_open_by_name): Under NS, default lface height to zero.
8488 (font_open_for_lface): Under NS, set size based on frame fontsize.
8489 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8490 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8491
84922008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8493
8494 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8495 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8496 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8497 YES/NO.
8498 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8499 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8500 * Makefile.in (clean): Clear out build destination dir.
8501
85022008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8503
8504 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8505 xterm, xselect.
8506 * lisp.h: Remove declaration of hash_remove.
8507 * nsgui.h: Remove redefinitions of hash_remove.
8508 * fns.c (hash_remove): Rename to hash_remove_from_table.
8509
85102008-07-19 Seiji Zenitani <zenitani@mac.com>
8511
8512 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8513 strdup() the family UTF8String before modifying it.
8514
85152008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8516
8517 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8518 NS_FACE_BACKGROUND with 0 instead of nil.
8519 * nsfont.m (nsfont_draw): Same.
8520
85212008-07-19 Chong Yidong <cyd@stupidchicken.com>
8522
8523 * nsfns.m (ns_set_background_color): Fix crash.
8524
85252008-07-18 Chong Yidong <cyd@stupidchicken.com>
8526
8527 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8528
85292008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8530
8531 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8532
85332008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8534
8535 * gtkutil.c: Include <config.h> instead of "config.h".
8536
8537 * lisp.h (Foverlay_buffer): Add EXFUN.
8538
8539 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8540 child process to complete child_setup. Undo 2005-09-21 change.
8541
8542 * s/darwin.h: Mention setsid after vfork.
8543
85442008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8545
8546 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8547 Depend on macgui.h.
8548
8549 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8550 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8551
8552 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8553 and f19.
8554 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8555
8556 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8557 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8558 Remove enumerators.
8559
8560 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8561 Check if FACE_FROM_ID returns NULL.
8562
85632008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8564
8565 * w32inevt.c (change_frame_size): Remove extern declaration.
8566 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8567 change_frame_size.
8568
85692008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8570
8571 * getloadavg.c: Revert last change (2008-07-15).
8572
85732008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8574
8575 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8576 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8577 from configure.
8578
85792008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8580
8581 * s/sol2.h:
8582 * s/sol2-4.h: Reorganize conditionals.
8583
8584 * ecrt0.c: Remove code depending on m68000, not used anymore.
8585
8586 * fns.c (hash_remove): Make static.
8587 * lisp.h (hash_remove): Don't prototype.
8588
8589 * m/ibmrs6000.h:
8590 * m/ibms390x.h:
8591 * m/macppc.h: Remove boilerplate comments.
8592
8593 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8594 Solaris, which does not need them.
8595
8596 * m/vax.h: Remove comments about unsupported systems.
8597
8598 * s/darwin.h: Reorganize ifdefs.
8599
86002008-07-17 Andreas Schwab <schwab@suse.de>
8601
8602 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8603
86042008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8605
8606 Use SDATA. Follow coding convention of placing operators at
8607 beginning of next line rather than end of previous line, and placing
8608 spaces around infix operators.
8609
8610 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8611 in case it was defined already.
8612 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8613 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8614 ns_default.
8615 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8616 Lisp_Objects.
8617 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8618 (ns_defined_color, ns_color_to_lisp): Declare.
8619 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8620 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8621 it's accepted even with USE_LISP_UNION_TYPE.
8622 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8623 (update_frame_tool_bar): Remove apparently obsolete tests for
8624 non-integerness of f->tool_bar_lines.
8625 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8626 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8627 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8628 (nsfont_open): Don't confuse NULL for Qnil.
8629 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8630 * menu.h (find_and_call_menu_selection):
8631 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8632 (find_and_return_menu_selection): Always return something.
8633 * frame.h: Include dispextern.h for Display_Info.
8634 (display_x_get_resource): Declare.
8635
86362008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8637
8638 * syntax.c: Remove stdio.h include accidentally introduced in
8639 Emacs.app commit.
8640 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8641 NS_IMPL_COCOA.
8642 * keyboard.c (handle_async_input, input_available_signal): Remove
8643 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8644
86452008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8646
8647 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8648 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8649 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8650 Use SDATA.
8651
8652 * keymap.c: Remove all NS-specific code.
8653 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8654 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8655 where_is_preferred_modifier, return a different value depending on how
8656 preferred is the binding.
8657 (where_is_internal): Adjust accordingly.
8658 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8659 Adjust to new preferred_sequence_p.
8660 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8661 * keyboard.c (parse_solitary_modifier): Not static any more.
8662 * keyboard.h (parse_solitary_modifier): Declare.
8663
86642008-07-16 Andreas Schwab <schwab@suse.de>
8665
8666 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8667 of easymenu.
8668
86692008-07-16 Chong Yidong <cyd@stupidchicken.com>
8670
8671 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8672 that we don't move off the line.
8673
86742008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8675
8676 * keyboard.c (Qsuper): Remove.
8677 (parse_menu_item): Don't call where_is_internal specially for NS.
8678
86792008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8680
8681 * s/gnu-linux.h: Remove boilerplate comments.
8682
8683 * m/alpha.h (__ELF__): Consolidate conditions.
8684
8685 * m/m68k.h (linux): Use GNU_LINUX instead.
8686 Remove boilerplate comments.
8687
8688 * m/intel386.h: Undo refactoring from previous change.
8689 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8690 too, remove dead code.
8691 (linux): Use GNU_LINUX instead.
8692
86932008-07-16 Jason Rumney <jasonr@gnu.org>
8694
8695 * w32gui.h: Repeat 26 June changes lost by last change.
8696
86972008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8698
8699 * systty.h: Remove code for Aix on 386, unsupported platform.
8700
8701 * s/ms-w32.h: Remove boilerplate comments.
8702 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8703
8704 * s/gnu-linux.h (TERM): Remove support.
8705 (HAVE_SYSVIPC): Remove, unused.
8706 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8707 for this system.
8708
8709 * process.c: Remove support for IRIS, unused.
8710 Remove support for TERM, not relevant anymore.
8711
8712 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8713 used with the definition.
8714
8715 * s/aix4-2.h (static): Do not undef.
8716
8717 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8718 only used on Aix.
8719 (HAVE_SYSVIPC): Remove, unused.
8720
8721 * m/hp800.h (CANNOT_DUMP): Do not undef.
8722
8723 * m/alpha.h: Fix comment.
8724
8725 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8726 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8727 used by this configuration.
8728 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8729 * unexec.c: Remove code depending on HPUX and
8730 USG_SHARED_LIBRARIES, not used with this file. Remove code
8731 depending on IRIS, unused. Remove if 0-ed code.
8732
8733 * s/template.h: Remove comments about static.
8734
8735 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8736 Remove if 0-ed code.
8737 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8738 were the same as the default.
8739 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8740 Remove boilerplate comments.
8741 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8742 (HAVE_SYSVIPC): Remove, unused.
8743 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8744
8745 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8746 Remove boilerplate comments.
8747 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8748 Remove boilerplate comments.
8749 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8750 Remove boilerplate comments.
8751 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8752
8753 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8754 USG systems which do not use DATA_SEG_BITS.
8755 Refactor code. Remove boilerplate comments.
8756
8757 * m/ibms390.h:
8758 * m/m68k.h:
8759 * s/bsd-common.h:
8760 * s/cygwin.h:
8761 * s/darwin.h:
8762 * s/freebsd.h:
8763 * s/gnu.h:
8764 * s/msdos.h: Remove boilerplate comments.
8765
8766 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8767 do not use this file.
aac0c6e3
MR
8768 (IRIS_4D): Remove, unused.
8769
8770 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8771 do not use this file.
aac0c6e3
MR
8772 (SIGN_EXTEND_CHAR):
8773 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8774 * unexmips.c: Remove file, unused.
8775
8776 * editfns.c (Fuser_full_name): Replace the only use of
8777 USER_FULL_NAME with its value.
8778 * config.in: Regenerate.
8779
87802008-07-16 David Reitter <david.reitter@gmail.com>
8781
8782 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8783 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8784
87852008-07-16 Glenn Morris <rgm@gnu.org>
8786
8787 * emacs.c (system-type): Doc fix.
8788
87892008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8790
8791 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8792 If the cache doesn't work, let's fix it, rather than work around it.
8793
87942008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8795
8796 * Makefile.in: Correct additions for nsfont.o in last commit.
8797 * nsfont.m: New file (forgot last commit).
8798
87992008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8800
8801 * callproc.c (set_initial_environment): Initialize
8802 Vprocess_environment under CANNOT_DUMP (fixes crash when
8803 batch-compiling for bootstrap).
8804
88052008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8806 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8807
8808 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8809 fix crash due to different init order.
8810
88112008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8812
8813 Changes and additions for NeXTstep windowing system (Cocoa and
8814 GNUstep) support.
8815
8816 * Makefile.in:
8817 * config.in: Support defines and build commands for NS port.
8818 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8819 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8820 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8821 windowing.
8822 (struct face): Add synth_ital field.
8823 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8824 (init_display): Initialize Vinitial_window_system to "ns" when so
8825 compiled.
8826 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8827 (display_arg): Use under NS.
8828 (main): Under NS, allocate autorelease pool and handle command line
8829 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8830 (standard_args): Add NS-specific args.
8831 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8832 * font.c (DEFAULT_ENCODING): New variable.
8833 (font_find_for_lface): Use it.
8834 (syms_of_font): Load syms_of_nsfont under NS.
8835 * font.h: Declare nsfont_driver when compiled under NS.
8836 * fontset.c: When compiling under NS, include nsterm.h.
8837 (fontset_from_font): Autoconstruct fontset under NS.
8838 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8839 symbol, document and use it.
8840 (do_switch_frame): When for_deletion under Cocoa, add
8841 Fraise_frame(Qnil).
8842 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8843 (x_get_arg): Allow "yes" and "no" as boolean values.
8844 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8845 Qright under Cocoa.
8846 (focus-follows-mouse): Default to 0 under NS.
8847 * frame.h (enum output_method): Add output_ns.
8848 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8849 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8850 (FRAME_WINDOW_P): NS-specific definition.
8851 * fringe.c (max_used_fringe_bitmap): Make public.
8852 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8853 (getloadavg): Use NeXT code under descendant OS's.
8854 * image.c (includes and header section, x_create_bitmap_from_data)
8855 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8856 (image_background_transparent, x_clear_image_1)
8857 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8858 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8859 (x_to_xcolors, x_from_xcolors, x_disable_image)
8860 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8861 other GUIs, including XPM support using code originally written for
8862 Carbon GUI.
8863 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8864 using NS API.
8865 (image_ascent): Use font metrics macros instead of direct struct field
8866 access.
8867 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8868 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8869 Also, handle NS as GTK for menu bar purposes.
8870 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8871 toolkit where they differ.
8872 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8873 use cachelist, still needed under NS.
8874 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8875 (struct widget_value): Define it here for menu.c.
8876 * keymap.c (includes): Include modifier internals.
8877 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8878 NS.
8879 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8880 support for preferring sequences using certain modifiers, specified by
8881 the FIRSTONLY argument.
8882 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8883 under NS GNUstep implementation.
8884 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8885 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8886 * menu.c: Include nsterm.h under NS.
8887 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8888 (free_menubar_widget_tree_value, update_submenu_strings)
8889 (find_and_call_menu_selection): Treat NS as X and NT.
8890 (find_and_return_menu_selection): New function, used for popup menus.
8891 * nsgui.h:
8892 * nsterm.h:
8893 * nsfns.m:
8894 * nsimage.m:
8895 * nsmenu.m:
8896 * nsselect.m:
8897 * nsterm.m: New files.
8898 * process.c (wait_reading_process_output): Under NS, call ns_select()
8899 instead of plain select().
8900 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8901 beginning of buffer.
8902 * sysselect.h (init_process): Rename when compiling under Cocoa to
8903 avoid name conflict.
8904 * termhooks.h (display_info): Add ns_display_info to union.
8905 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8906 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8907 COCOA environment.
8908 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8909 unexec() signature. (Note, this will dump, but the resulting file
8910 crashes; unexosx is used instead; keeping around for reference and
8911 possible aid in getting dump working under GNUstep.)
8912 * w32gui.h (button_type, widget_value): Remove definitions (now in
8913 keyboard.h).
8914 * window.c: Include nsterm.h when compiling under NS.
8915 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8916 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8917 other GUI windowing systems.
8918 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8919 GTK.
8920 (x_consider_frame_title): Under NS, set icon type and frame
8921 modified-state indicator; use ns_set_name_as_filename() when using
8922 formatted title.
8923 (update_window_cursor): Make public when compiling under NS.
8924 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8925 (hourglass_atimer, Vhourglass_delay
8926 * xfaces.c (header section, init_frame_faces, clear_font_table)
8927 (defined_color, unload_color, x_face_list_fonts)
8928 (prepare_face_for_display): Add NS support parallel to other GUIs.
8929 Emulate GCs like other non-X GUIs.
8930 (split_font_name): Don't lowercase font name under NS.
8931 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8932 under NS.
8933 * s/darwin.h: Add support for compilation under NS.
8934
89352008-07-15 Jason Rumney <jasonr@gnu.org>
8936
8937 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8938 (w32_show_hourglass): Rename from show_hourglass.
8939 (w32_hide_hourglass): Rename from hide_hourglass.
8940 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8941 (Vhourglass_delay): Declare extern.
8942 (hourglass_started): Remove.
8943
8944 * xdisp.c (Vhourglass_delay): Remove static.
8945 (hourglass_started, start_hourglass, cancel_hourglass):
8946 Don't include these versions on WINDOWSNT.
8947
89482008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8949
8950 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8951 variables (formerly in xfns.c).
8952 (show_hourglass, hide_hourglass): New prototypes (same).
8953 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8954 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8955 in xfns.c).
8956 (syms_of_xdisp): Declare/initialize display-hourglass,
8957 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8958 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8959 formerly in xfns.c.
8960 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8961 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8962 (start_hourglass, cancel_hourglass): Remove.
8963 (show_hourglass, hide_hourglass): Remove prototypes and static
8964 modifiers.
8965 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8966 hourglass_atimer, hourglass_shown_p declaration/initialization.
8967 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8968 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8969 (start_hourglass, cancel_hourglass): Remove.
8970 (show_hourglass, hide_hourglass): Remove prototypes and static
8971 modifiers.
8972 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8973 hourglass_atimer, hourglass_shown_p declaration/initialization.
8974 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8975 (DEFAULT_HOURGLASS_DELAY): Remove.
8976 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8977 hourglass_shown_p declaration/initialization.
8978
89792008-07-14 Jason Rumney <jasonr@gnu.org>
8980
8981 * w32fns.c (w32_get_arg): Remove wrapper function.
8982 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8983 directly.
8984 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8985
89862008-07-14 Kenichi Handa <handa@m17n.org>
8987
8988 * xfont.c (xfont_open): Add workaround for X's bug.
8989
89902008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8991
8992 * fontset.c: Include <stdio.h> unconditionally.
8993
89942008-07-13 Michael Albinus <michael.albinus@gmx.de>
8995
8996 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8997 for filtering.
8998
89992008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9000
9001 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9002
9003 * m/macppc.h:
9004 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9005
9006 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9007 (SPECIAL_EMACS_INT):
9008 * m/ia64.h (SPECIAL_EMACS_INT):
9009 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9010 * s/gnu.h (NLIST_STRUCT):
9011 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9012 * s/gnu-linux.h (LINUX):
9013 * s/msdos.h (HAVE_FACES):
9014 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9015
9016 * systty.h:
9017 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9018 anymore.
9019
90202008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9021
9022 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9023 always defined as int.
9024
9025 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9026 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9027 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9028 * s/freebsd.h (HAVE_WAIT_HEADER):
9029 * s/bsd-common.h (HAVE_UNION_WAIT):
9030 * s/aix4-2.h (HAVE_WAIT_HEADER):
9031 * m/mips.h (HAVE_UNION_WAIT):
9032 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9033 (COFF, static): Do not define, they are undefined later in the file.
9034
9035 * process.c (update_status): Don't use a union.
9036 (status_convert):
9037 (sigchld_handler): Use int instead of WAITTYPE.
9038
90392008-07-12 Chong Yidong <cyd@stupidchicken.com>
9040
9041 * indent.c (Fvertical_motion): Restore hscroll before moving to
9042 goal column.
9043
90442008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9045
9046 * lisp.h: Remove left over code.
9047
90482008-07-11 Andreas Schwab <schwab@suse.de>
9049
9050 * lisp.h: Fix logic in last change.
9051
9052 * menu.h: New file.
9053 * menu.c: Include it.
9054 * xmenu.c: Likewise.
9055 * Makefile.in: Update dependencies.
9056
90572008-07-11 Kenichi Handa <handa@m17n.org>
9058
9059 * fontset.c (fontset_from_font): Cancel the previous change.
9060
90612008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9062
9063 * lisp.h:
9064 * w32heap.c:
9065 * emacs.c:
9066 * alloc.c: Replace all references of NO_UNION_TYPE with
9067 USE_LISP_UNION_TYPE.
9068
9069 * m/xtensa.h (NO_UNION_TYPE):
9070 * m/vax.h (NO_UNION_TYPE):
9071 * m/template.h (NO_UNION_TYPE):
9072 * m/sparc.h (NO_UNION_TYPE):
9073 * m/mips.h (NO_UNION_TYPE):
9074 * m/macppc.h (NO_UNION_TYPE):
9075 * m/m68k.h (NO_UNION_TYPE):
9076 * m/iris4d.h (NO_UNION_TYPE):
9077 * m/intel386.h (NO_UNION_TYPE):
9078 * m/ibms390x.h (NO_UNION_TYPE):
9079 * m/ibms390.h (NO_UNION_TYPE):
9080 * m/ibmrs6000.h (NO_UNION_TYPE):
9081 * m/ia64.h (NO_UNION_TYPE):
9082 * m/hp800.h (NO_UNION_TYPE):
9083 * m/arm.h (NO_UNION_TYPE):
9084 * m/amdx86-64.h (NO_UNION_TYPE):
9085 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9086 defining it the same.
9087
90882008-07-10 Chong Yidong <cyd@stupidchicken.com>
9089
9090 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9091
90922008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9093
9094 * fileio.c:
9095 * sysdep.c
9096 * systty.h:
9097 * m/ibmrs6000.h:
9098 * m/iris4d.h:
9099 * s/aix4-2.h:
9100 * s/freebsd.h:
9101 * s/gnu-linux.h:
9102 * s/hpux10-20.h:
9103 * s/hpux11.h:
9104 * s/netbsd.h:
9105 * s/sol2-3.h:
9106 * s/sol2-4.h:
9107 * s/sol2.h:
9108 * s/usg5-4.h:
9109 * s/vms.h: Remove references to unused variables.
9110
91112008-07-10 Andreas Schwab <schwab@suse.de>
9112
9113 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9114 pattern before matching the generic family.
9115
91162008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9117
9118 * unexec.c:
9119 * s/vms.h:
9120 * s/usg5-4-2.h:
9121 * s/sol2-5.h:
9122 * s/freebsd.h:
9123 * s/darwin.h: Remove dead code.
9124
9125 * m/template.h:
9126 * m/sparc.h:
9127 * m/mips.h:
9128 * m/m68k.h:
9129 * m/iris4d.h:
9130 * m/intel386.h:
9131 * m/ibms390x.h:
9132 * m/ibms390.h:
9133 * m/ia64.h:
9134 * m/hp800.h:
9135 * m/arm.h:
9136 * m/amdx86-64.h: Remove dead code and references to unused
9137 and compiler defined symbols.
9138
9139 * unexmips.c:
9140 * unexelf.c: Remove references to desupported systems.
9141
9142 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9143
9144 * m/powermac.h: Remove boilerplate comments.
9145 (NO_REMAP): Remove unused definition.
9146
9147 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9148 define them.
9149
91502008-07-10 Kenichi Handa <handa@m17n.org>
9151
9152 * xfont.c (xfont_open): Log the reason of failure.
9153
91542008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9155
9156 * fontset.c (fontset_get_font_group):
9157 * font.c (font_check_otf): Specify argument types.
9158
91592008-07-09 Kenichi Handa <handa@m17n.org>
9160
9161 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9162 non-ASCII char is found.
9163
9164 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9165 (reorder_font_vector): Change the arg preferred_family to font.
9166 Prefer the spec matching with font.
9167 (fontset_get_font_group): New function.
9168 (fontset_find_font): Change the format of an element of a realized
9169 fontset. Use fontset_get_font_group.
9170 (fontset_font): Try the current fontset, the default fontset, the
9171 fallbacks of the current fontset, and the fallbacks of the default
9172 fontset in this order.
9173 (face_for_char): Delete the shortcut to use the current font.
9174 (fontset_from_font): Don't set fonts for Latin in the fontset.
9175
9176 * font.h (font_make_object, font_match_p): Adjust prototypes.
9177
9178 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9179
9180 * font.c (font_make_object): New arg entity and pixelsize.
9181 (font_check_otf_features, font_check_otf): New functions.
9182 (font_match_p): Check :lang, :script, and :otf properties.
9183
9184 * xfont.c (xfont_open): Adjust it for the change of
9185 font_make_object.
9186 (xfont_text_extents): Fix initial setting of metrics.
9187
9188 * ftfont.c (struct ftfont_info): New member index, delete member
9189 fc_charset_idx. Make the member order compatible with struct
9190 xftfont_info.
9191 (fc_charset_table): Change charset names to registry names.
9192 (ftfont_pattern_entity): Delete the args registry and
9193 fc_charset_idx. Change the value of :font-entity property
9194 to (FONTNAME . INDEX). Always set :registry property to
9195 `iso10646-1'.
9196 (struct ftfont_cache_data): New struct.
9197 (ftfont_lookup_cache): New arg for_face.
9198 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9199 (ftfont_driver): Set the member otf_capability.
9200 (ftfont_get_charset): Adjust it for the change of
9201 fc_charset_table.
9202 (OTF_TAG_SYM): New macro.
9203 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9204 for the change of fc_charset_table.
9205 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9206 ftfont_pattern_entity. Add FC_INDEX to objset.
9207 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9208 and ftfont_pattern_entity.
9209 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9210 font_make_object, struct ftfont_info.
9211 (ftfont_has_char): Use ftfont_get_fc_charset.
9212 (ftfont_otf_features, ftfont_otf_capability): New functions.
9213 (ftfont_shape): Use ftfont_get_otf.
9214 (ftfont_text_extents): Fix initial setting of metrics.
9215
9216 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9217 member order compatible with struct ftfont_info.
9218 (xftfont_open): Add FC_CHARSET to the pattern. Set
9219 xftfont_info->ft_size. Don't unlock the face. Check BDF
9220 properties if appropriate.
9221 (xftfont_close): Unlock the face.
9222 (xftfont_anchor_point, xftfont_shape): Deleted.
9223 (syms_of_xftfont): Don't set members anchor_point and shape of
9224 xftfont_driver.
9225
9226 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9227 font_make_object.
9228
9229 * w32font.c (w32font_open): Adjust it for the change of
9230 font_make_object.
9231 (w32font_open_internal): Don't set properties of font_object here.
9232
92332008-07-08 Chong Yidong <cyd@stupidchicken.com>
9234
9235 * macfns.c (x_create_tip_frame):
9236 * w32fns.c (x_create_tip_frame):
9237 * xfns.c (x_create_tip_frame): Pass parameter argument to
9238 face-set-after-frame-default.
9239
9240 * xfaces.c (Finternal_merge_in_global_face): Save merged
9241 attributes for the default face back into the face vector.
9242
92432008-07-08 Andreas Schwab <schwab@suse.de>
9244
9245 * fontset.h: Declare fontset_from_font. Don't declare
9246 new_fontset_from_font and fontset_from_font_name.
9247 * xterm.c: Include "fontset.h".
9248 * Makefile.in (xterm.o): Update dependencies.
9249
92502008-07-08 Glenn Morris <rgm@gnu.org>
9251
9252 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9253 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9254
92552008-07-07 Chong Yidong <cyd@stupidchicken.com>
9256
9257 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9258 (x_set_frame_parameters): Don't bind it.
9259
92602008-07-07 Juanma Barranquero <lekktu@gmail.com>
9261
9262 * w32fns.c (map_w32_filename): Declare extern.
9263
92642008-07-07 Jason Rumney <jasonr@gnu.org>
9265
9266 * w32term.c (WS_EX_LAYERED): Define if not already.
9267
92682008-07-06 Chong Yidong <cyd@stupidchicken.com>
9269
9270 * xfaces.c (set_font_frame_param): Don't try to set the font
9271 parameter if it is still unspecified in the lface.
9272
92732008-07-05 Chong Yidong <cyd@stupidchicken.com>
9274
9275 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9276 face if it didn't already exist.
9277
9278 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9279
92802008-07-05 Andreas Schwab <schwab@suse.de>
9281
9282 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9283
92842008-07-05 Chong Yidong <cyd@stupidchicken.com>
9285
9286 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9287 word-wrapping.
9288 (IT_DISPLAYING_WHITESPACE): New macro.
9289 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9290 when word-wrapping. Simplify word-wrapping logic. Use correct
9291 pixel positions when saving copies of the iterator.
9292 (display_line): Use proper wrap point if the last character on a
9293 line was preceded by whitespace.
9294
92952008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9296
9297 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9298
92992008-07-04 Kenichi Handa <handa@m17n.org>
9300
9301 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9302
9303 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9304
93052008-07-02 Jason Rumney <jasonr@gnu.org>
9306
9307 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9308 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9309
9310 * xdisp.c (next_element_from_display_vector): Move assignment out
9311 of if statement.
9312
93132008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9314
9315 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9316
9317 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9318 (syms_of_fileio): Initialize and export them.
9319 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9320
9321 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9322 (Fsystem_move_file_to_trash): New function.
9323 (syms_of_w32fns): Export it to lisp.
9324
93252008-07-01 Jason Rumney <jasonr@gnu.org>
9326
9327 * w32font.c (w32font_text_extents): Don't count overhang as part
9328 of width.
9329
93302008-06-30 Miles Bader <miles@gnu.org>
9331
9332 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9333 Add `avoid_cursor_p' field.
9334
9335 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9336 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9337 (append_glyph, append_composite_glyph, produce_image_glyph)
9338 (append_stretch_glyph): Initialize avoid_cursor_p.
9339 (get_it_property): Rename from `get_line_height_property'.
9340 (x_produce_glyphs): Use get_it_property.
9341 (handle_line_prefix, push_display_prop): New functions.
9342 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9343 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9344 New variables.
9345 (syms_of_xdisp): Initialize them.
9346
93472008-06-30 Kenichi Handa <handa@m17n.org>
9348
9349 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9350 XftDefaultSubstitute (they are called in XftFontMatch).
9351 (xftfont_open): Fix args to ftfont_font_format.
9352
9353 * ftfont.c (fc_charset_table): New member lang.
9354 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9355 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9356 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9357 (ftfont_open): Fix args to ftfont_font_format.
9358 (ftfont_font_format): New arg filename.
9359
93602008-06-30 Chong Yidong <cyd@stupidchicken.com>
9361
9362 * xfaces.c (Finternal_merge_in_global_face): If default face was
9363 modified, realize it again. Update the font face attribute.
9364
93652008-06-29 Jason Rumney <jasonr@gnu.org>
9366
9367 * w32term.c (x_set_frame_alpha): Fix logic.
9368
93692008-06-29 Kenichi Handa <handa@m17n.org>
9370
9371 * fontset.c (Finternal_char_font): Return font-object instead of
9372 font-name.
9373
9374 * composite.c (get_composition_id): Fix the width calculation for TAB.
9375
93762008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9377
9378 * indent.c (Fvertical_motion): Properly handle float column arg.
9379
93802008-06-28 Jason Rumney <jasonr@gnu.org>
9381
9382 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9383 (pfnSetLayeredWindowAttributes): New function pointer.
9384 (w32_initialize): Initialize it when supported.
9385 (x_set_frame_alpha): New function.
9386
9387 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9388 (w32_frame_parm_handlers): Set alpha handler.
9389
9390 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9391
93922008-06-27 Jason Rumney <jasonr@gnu.org>
9393
9394 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9395 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9396 (w32_to_x_charset, x_to_w32_charset)
9397 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9398 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9399 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9400 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9401 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9402 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9403 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9404 (Qw32_charset_unicode): Remove.
9405 (syms_of_w32fns): Update for above changes.
9406
9407 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9408 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9409 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9410 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9411 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9412 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9413 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9414 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9415 (syms_of_w32font): Update for above changes.
9416
94172008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9418
9419 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9420 removed #if.
9421 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9422
94232008-06-26 Juanma Barranquero <lekktu@gmail.com>
9424 Eli Zaretskii <eliz@gnu.org>
9425
9426 * makefile.w32-in (LOCAL_FLAGS):
9427 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9428
9429 * sysdep.c (_spawnlp, _getpid):
9430 Declare with explicit _cdecl instead of _CRTAPI1.
9431
9432 * editfns.c (Fget_internal_run_time):
9433 Check for WINDOWSNT with #ifdef, not #if.
9434
94352008-06-26 Jason Rumney <jasonr@gnu.org>
9436
9437 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9438
9439 * w32term.c (x_draw_glyph_string_foreground)
9440 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9441 Use FONT_HANDLE macro.
9442 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9443
9444 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9445 (uniscribe_encode_char): Use FONT_HANDLE macro.
9446
9447 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9448 (w32font_text_extents): Use precast w32_font.
9449 (w32font_close): Free cached metrics.
9450 (w32font_open_internal): Allocate space for name on stack.
9451
94522008-06-26 Chong Yidong <cyd@stupidchicken.com>
9453
9454 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9455
94562008-06-26 Jason Rumney <jasonr@gnu.org>
9457
9458 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9459 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9460
94612008-06-26 Juanma Barranquero <lekktu@gmail.com>
9462
9463 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9464
94652008-06-26 Jason Rumney <jasonr@gnu.org>
9466
9467 * w32bdf.c, w32bdf.h: Remove obsolete files.
9468
9469 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9470
9471 * w32gui.h: Don't include w32bdf.h.
9472 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9473 Remove obsolete font support.
9474
9475 * w32font.h (struct w32font_info): Remove compat_w32_font.
9476 Add hfont member.
9477 (FONT_COMPAT): Remove obsolete macro.
9478
9479 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9480 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9481 (w32font_open_internal): Remove compat code. Set new hfont member.
9482 (Fx_select_font): Use new hfont member.
9483
9484 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9485 (uniscribe_encode_char): Use new hfont member.
9486
9487 * w32term.c (x_draw_glyph_string_foreground)
9488 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9489 (x_draw_glyph_string): Use metrics in w32font_info.
9490
94912008-06-26 Kenichi Handa <handa@m17n.org>
9492
9493 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9494
94952008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9496
9497 * unexnext.c:
9498 * m/ews4800.h:
9499 * m/hp9000s300.h:
9500 * m/ibm370aix.h:
9501 * m/mips-siemens.h:
9502 * m/ncr386.h:
9503 * m/next.h:
9504 * m/pmax.h:
9505 * m/powerpcle.h:
9506 * m/tandem-s2.h:
9507 * s/386bsd.h:
9508 * s/bsd386.h:
9509 * s/bsd4-1.h:
9510 * s/bsd4-2.h:
9511 * s/bsdos2-1.h:
9512 * s/bsdos2.h:
9513 * s/bsdos3.h:
9514 * s/bsdos4.h:
9515 * s/nextstep.h:
9516 * s/ultrix4-3.h:
9517 * s/usg5-0.h:
9518 * s/usg5-2-2.h:
9519 * s/usg5-2.h:
9520 * s/usg5-4-3.h:
9521 * s/ux4800.h:
9522 * s/uxpds.h:
9523 * s/uxpv.h: Remove support for obsolete systems.
9524 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9525 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9526 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9527 Remove, insert contents in s/aix4-2.h.
9528 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9529 * s/bsd4-3.h: Rename to ...
9530 * s/bsd-common.h: ... this.
9531 * data.c:
9532 * doc.c:
9533 * ecrt0.c:
9534 * emacs.c:
9535 * fileio.c:
9536 * floatfns.c:
9537 * keyboard.c:
9538 * mem-limits.h:
9539 * print.c:
9540 * process.c:
9541 * sysdep.c:
9542 * syssignal.h:
9543 * systty.h:
9544 * syswait.h:
9545 * term.c:
9546 * unexec.c:
9547 * unexelf.c:
9548 * unexhp9k800.c:
9549 * m/hp800.h:
9550 * m/ibmrs6000.h:
9551 * m/mips.h:
9552 * m/vax.h:
9553 * s/darwin.h:
9554 * s/freebsd.h:
9555 * s/gnu.h:
9556 * s/ms-w32.h:
9557 * s/msdos.h:
9558 * s/netbsd.h:
9559 * s/template.h: Remove references to obsolete variables.
9560
9561 * Makefile.in: Add dependencies for all unexec files.
9562 (admindir): Remove unused variable.
9563 (UNEXEC_SRC): Remove references.
9564
95652008-06-25 Chong Yidong <cyd@stupidchicken.com>
9566
9567 * xfns.c (x_default_font_parameter): If Xft is available, first
9568 try Monospace-12 for the default font.
9569
95702008-06-25 Jason Rumney <jasonr@gnu.org>
9571
9572 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9573
95742008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9575
9576 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9577
9578 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9579
95802008-06-25 Juanma Barranquero <lekktu@gmail.com>
9581
9582 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9583 <scroll-conservatively>: Fix typo in docstring.
9584
9585 * xselect.c (Fx_send_client_event): Doc fix.
9586
95872008-06-25 Kenichi Handa <handa@m17n.org>
9588
9589 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9590
9591 * font.c (font_parse_fcname): Remove unused variables.
9592 (font_sort_entites): Delete the arg SPEC. Caller changed.
9593 Fix for the case of ! best_only.
9594 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9595
9596 * lisp.h (Fstring_to_unibyte): EXFUN it.
9597
9598 * character.h (str_to_unibyte): Extern it.
9599
9600 * character.c (str_to_unibyte): New function.
9601
9602 * fns.c (Fstring_to_unibyte): New function.
9603 (syms_of_fns): Defsubr it.
9604
96052008-06-24 Kenichi Handa <handa@m17n.org>
9606
9607 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9608 DPI too.
9609 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9610
96112008-06-24 Andreas Schwab <schwab@suse.de>
9612
9613 * Makefile.in (${lispsource}loaddefs.el): Rename from
9614 ../lisp/loaddefs.el.
9615 (bootstrap-clean): Do what distclean does but don't remove
9616 Makefile.
9617 (distclean): Depend on bootstrap-clean and remove Makefile.
9618
96192008-06-24 Chong Yidong <cyd@stupidchicken.com>
9620
9621 * buffer.h (struct buffer): New member word_wrap.
9622
9623 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9624 word-wrap.
9625 (init_buffer_once): Initialize them.
9626
9627 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9628 line_wrap enum possessing three possible values.
9629
9630 * termopts.h: Replace truncate_partial_width_windows with
9631 Vtruncate_partial_width_windows.
9632
9633 * dispnew.c (direct_output_for_insert): Avoid direct output when
9634 inserting a space with word wrap on.
9635
9636 * indent.c (compute_motion): Obey integer values of
9637 truncate-partial-width-windows.
9638
9639 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9640 replacing truncate_partial_width_windows.
9641 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9642 truncate only if the window width is below that integer.
9643 (start_display, resize_mini_window, produce_stretch_glyph)
9644 (display_string, move_it_in_display_line_to): Use line_wrap.
9645 (back_to_previous_visible_line_start, reseat_1): Reset
9646 string_from_display_prop_p.
9647 (display_line): Extend default face to end of line when wrapping.
9648
96492008-06-24 Kim F. Storm <storm@cua.dk>
9650
9651 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9652 to wrap continued lines at word boundaries.
9653
96542008-06-24 Jason Rumney <jasonr@gnu.org>
9655
9656 * font.c (Ffont_face_attributes): Multiply pixel size before point
9657 conversion to avoid multiplying rounding error.
9658
96592008-06-23 Jason Rumney <jasonr@gnu.org>
9660
9661 * w32term.c (x_draw_glyph_string_background)
9662 (x_draw_glyph_string): Remove old bdf font code.
9663
9664 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9665
96662008-06-22 Kenichi Handa <handa@m17n.org>
9667
9668 * font.c (font_find_for_lface): Try the adstyle specified in
9669 the property of LFACE_FONT of LFACE (if any).
9670
96712008-06-21 Seiji Zenitani <zenitani@mac.com>
9672 Ryo Yoshitake <ryo@shiftmode.net>
9673
9674 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9675
96762008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9677
9678 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9679 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9680 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9681 (witness-emacs): Remove.
9682 (lisp, shortlisp): Move loaddefs.el earlier.
9683 (mostlyclean): Forget about witness-emacs.
9684
96852008-06-22 Glenn Morris <rgm@gnu.org>
9686
9687 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9688 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9689
96902008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9691
9692 * Makefile.in (PRECOMP): Remove.
9693 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9694 (witness-emacs): Run `compile-first'.
9695 (.el.elc): Use the new compile-onefile target.
9696
96972008-06-21 Kenichi Handa <handa@m17n.org>
9698
9699 * xftfont.c (xftfont_open): Handle QCembolden only when
9700 FC_EMBOLDEN is defined.
9701
97022008-06-21 Andreas Schwab <schwab@suse.de>
9703
9704 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9705 (.el.elc): Likewise.
9706
97072008-06-21 Miles Bader <miles@gnu.org>
9708
9709 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9710 build dir, not the lisp source dir.
9711
97122008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9713
9714 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9715 (bootstrapclean): Remove.
9716 (.el.elc): New rule.
9717 (PRECOMP): New var.
9718 (../lisp/subdirs.el): Remove.
9719 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9720 (witness-emacs): New target.
9721 (mostlyclean): Remove witness-emacs as well.
9722 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9723 Add witness-emacs dependency.
9724
97252008-06-20 Chong Yidong <cyd@stupidchicken.com>
9726
9727 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9728 defined by the font.
9729
97302008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9731
9732 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9733 (bootstrap-clean): New target that keeps TAGS around.
9734 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9735 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9736
97372008-06-20 Jason Rumney <jasonr@gnu.org>
9738
9739 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9740 Remove obsolete font code.
9741
9742 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9743 to determine language support.
9744
97452008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9746
9747 * sysdep.c (cfsetspeed): New fun extracted from the code.
9748 (cfmakeraw): Move before first use.
9749
97502008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9751
9752 * sysdep.c (cfmakeraw): Provide fallback implementation.
9753 (serial_configure): Provide fallback implementation of cfsetspeed.
9754
97552008-06-20 Kenichi Handa <handa@m17n.org>
9756
9757 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9758 the pattern.
9759
9760 * fontset.c (fontset_from_font): Copy font_spec before changing
9761 the elements.
9762
9763 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9764
97652008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9766
9767 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9768 for explicit `font' parameters.
9769
9770 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9771
97722008-06-19 Kenichi Handa <handa@m17n.org>
9773
9774 * frame.c: Include <ctype.h>.
9775 (x_set_font_backend): Allow spacing characters in the X resource
9776 for FontBackend.
9777
97782008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9779
9780 * w32fns.c, xfns.c (Qfont_param): New var.
9781 (syms_of_w32fns): Initialize it.
9782 (x_default_font_parameter): Record explicit `font' into
9783 `font-parameter'.
9784
97852008-06-18 Kenichi Handa <handa@m17n.org>
9786
9787 * font.c (font_parse_xlfd): Fix previous change.
9788 (font_parse_fcname): Don't use :fc-unknown-spec.
9789 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9790 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9791 (font_add_log): Prepend the driver name to the resulting fonts.
9792
9793 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9794 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9795 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9796
9797 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9798 (QCembolden): New variables.
9799 (syms_of_xftfont): DEFSYM them.
9800 (xftfont_open): Call XftFontMatch. Don't trust the result of
9801 XftTextExtents8 if the pixel_size is less than 5.
9802
98032008-06-18 Andreas Schwab <schwab@suse.de>
9804
9805 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9806 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9807
98082008-06-18 Jason Rumney <jasonr@gnu.org>
9809
9810 * w32font.c (w32font_list, w32font_match): Add logging.
9811
9812 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9813
98142008-06-17 Chong Yidong <cyd@stupidchicken.com>
9815
9816 * font.c (font_parse_fcname): Store divider characters for
9817 unknown-spec list. For known key symbols, intern using correct
9818 symbol name.
9819
98202008-06-17 Kenichi Handa <handa@m17n.org>
9821
9822 * xfaces.c (realize_default_face): If the frame is not on window
9823 system, set the fontset of face to nil.
9824
98252008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9826
9827 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9828
98292008-06-16 Juanma Barranquero <lekktu@gmail.com>
9830
9831 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9832 (build_font_name_from_vector): Delete externs.
9833
9834 * xfaces.c (struct font_name): Don't declare.
9835
98362008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9837
9838 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9839
98402008-06-16 Chong Yidong <cyd@stupidchicken.com>
9841
9842 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9843
98442008-06-16 Juanma Barranquero <lekktu@gmail.com>
9845
9846 * font.c (Ffont_spec): Fix usage in docstring.
9847 (Ffont_face_attributes): Doc fix.
9848
98492008-06-16 Andreas Schwab <schwab@suse.de>
9850
9851 * font.c (Ffont_face_attributes): Fix definition.
9852
98532008-06-16 Jason Rumney <jasonr@gnu.org>
9854
9855 * font.h (font_style_symbolic_from_value): Remove.
9856
9857 * font.c (font_style_symbolic_from_value): Remove.
9858 (font_style_symbolic): Revert to pre 2008-06-13 version.
9859
9860 * w32font.c (w32_to_fc_weight): New function.
9861 (w32font_full_name, logfont_to_fcname): Use it.
9862
98632008-06-16 Kenichi Handa <handa@m17n.org>
9864
9865 * font.c (font_check_object): Delete it.
9866 (font_clear_cache): Check if a font-object is alive.
9867 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9868 font-object to nil.
9869 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9870 (font_at): Don't call font_check_object.
9871 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9872
98732008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9874
9875 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9876
98772008-06-16 Chong Yidong <cyd@stupidchicken.com>
9878
9879 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9880
98812008-06-15 Chong Yidong <cyd@stupidchicken.com>
9882
9883 * font.c (font_parse_fcname): Only one decimal point.
9884 (font_unparse_fcname): Handle data in family and foundry indices
9885 as symbols, not strings.
9886 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9887
9888 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9889
9890 * font.h (font_unparse_gtkname): Add prototype.
9891
98922008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9893
9894 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9895
98962008-06-15 Andreas Schwab <schwab@suse.de>
9897
9898 * font.c (font_update_drivers): Fix crash when no drivers match.
9899
99002008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9901
9902 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9903 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9904
99052008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9906
9907 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9908
99092008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9910
9911 * process.c (Fserial_process_configure, Fprocess_send_eof):
9912 Use EQ to compare Lisp_Objects.
9913
99142008-06-13 Jason Rumney <jasonr@gnu.org>
9915
9916 * w32fns.c (Fw32_select_font): Remove old font API function.
9917
9918 * w32font.c (logfont_to_fcname): New function.
9919 (Fx_select_font): New font dialog function compatible with
9920 GTK/fontconfig version.
9921
9922 * font.c (font_style_symbolic_from_value): New function.
9923 (font_style_symbolic): Use it.
9924
9925 * font.h (font_style_symbolic_from_value): Declare new function.
9926
99272008-06-13 Juanma Barranquero <lekktu@gmail.com>
9928
9929 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9930 <font-width-table>: Fix typos in docstrings.
9931
99322008-06-13 Daniel Engeler <engeler@gmail.com>
9933
9934 These changes add serial port access.
9935 * process.c: Add HAVE_SERIAL.
9936 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9937 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9938 (list_processes_1, select_wrapper, Fstop_process)
9939 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9940 (status_notify): Modify to handle serial processes.
9941 [HAVE_SERIAL] (Fserial_process_configure)
9942 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9943 New functions.
9944 * process.h (struct Lisp_Process): Add `type'.
9945 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9946 New functions.
9947 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9948 serial ports.
b71ac3dd 9949 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9950 * w32.h: Add FILE_SERIAL.
9951 (struct _child_process): Add ovl_read, ovl_write.
9952
99532008-06-13 Kenichi Handa <handa@m17n.org>
9954
9955 * dispextern.h (enum lface_attribute_index): New member
9956 LFACE_FOUNDRY_INDEX.
9957
9958 * font.c (font_score): Delete arg alternate_families. Check only
9959 weight, slant, width, and size. Ignore the difference of alias
9960 style symbols.
9961 (font_sort_entites): Adjust for the above change. Reflect the
9962 order of font-driver to scores.
9963 (font_list_entities): Don't check alternate_familes here.
9964 (font_clear_prop): Handle foundry.
9965 (font_update_lface): Don't parse "foundry-family" form here.
9966 Handle FONT_FOUNDRY_INDEX.
9967 (font_find_for_lface): Likewise. Handle alternate families here.
9968 If registry is nil, try iso8859-1 and ascii-0.
9969 (font_open_for_lface): Pay attention to size in ENTITY.
9970 (font_open_by_name): Simplify by calling font_load_for_lface.
9971 (free_font_driver_list): Delete it.
9972 (font_update_drivers): Preserve the order of backends.
9973 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9974 of font_score and font_sort_entites.
9975 (font_update_sort_order): Likewise.
9976
9977 * xfaces.c (LFACE_FOUNDRY): New macro.
9978 (check_lface_attrs): Check foundry.
9979 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9980 (merge_face_vectors): Check foundry.
9981 (merge_face_ref): Likewise.
9982 (Finternal_set_lisp_face_attribute): Likewise.
9983 (x_update_menu_appearance): Likewise.
9984 (Finternal_get_lisp_face_attribute): Likewise.
9985 (lface_hash): Likewise.
9986 (lface_same_font_attributes_p): Likewise.
9987 (x_supports_face_attributes_p): Likewise.
9988 (tty_supports_face_attributes_p): Likewise.
9989 (Finternal_set_alternative_font_family_alist): Intern strings.
9990 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9991 (realize_default_face): Set LFACE_FOUNDRY (lface).
9992
9993 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9994 font-driver at first.
9995
9996 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9997
99982008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9999
10000 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10001
100022008-06-12 Jim Meyering <meyering@redhat.com>
10003
10004 Make unexec_free handle NULL the same way free does.
10005 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10006
100072008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10008
10009 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10010 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10011 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10012 (WEAK_ALIAS): Simplify.
10013 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10014 when searching a unibyte buffer.
10015
100162008-06-12 Chong Yidong <cyd@stupidchicken.com>
10017
10018 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10019
100202008-06-12 Juanma Barranquero <lekktu@gmail.com>
10021
10022 * w32font.c: Include ctype.h.
10023
100242008-06-11 Jason Rumney <jasonr@gnu.org>
10025
10026 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10027 misreported as space.
10028 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10029 as aliases for registry iso10646-1.
10030
100312008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10032
10033 * buffer.c (clone_per_buffer_values): Skip `name'.
10034
100352008-06-11 Chong Yidong <cyd@stupidchicken.com>
10036
10037 * font.c (font_parse_fcname): Fix last change; accept decimal
10038 points in font size.
10039
100402008-06-10 Jason Rumney <jasonr@gnu.org>
10041
10042 * w32uniscribe.c (add_opentype_font_name_to_list):
10043 Skip non unicode fonts.
10044
100452008-06-10 Chong Yidong <cyd@stupidchicken.com>
10046
10047 * xfns.c (Fx_font_dialog): New function.
10048
10049 * gtkutil.c (xg_dialog_response_cb): Rename from
10050 xg_file_response_callback.
10051 (pop_down_dialog): Rename from pop_down_file_dialog.
10052 (xg_get_file_name): Callers changed.
10053 (xg_get_font_name): New function.
10054
10055 * gtkutil.h (xg_get_font_name): Insert prototype.
10056
100572008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10058
10059 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10060 x_underline_minimum_display_offset.
10061 (syms_of_xdisp): Declare it here rather than in xterm.c.
10062 * dispextern.h (underline_minimum_offset): Declare it.
10063 * w32term.c (x_draw_glyph_string): Use it.
10064 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10065 (syms_of_xterm): Don't declare it any more.
10066 (x_draw_glyph_string): Adjust to the new name.
10067
8719abec 100682008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10069
10070 * xterm.c (x_underline_minimum_display_offset): New var.
10071 (x_draw_glyph_string): Use it.
10072 (syms_of_xterm): Declare it.
10073
100742008-06-10 Chong Yidong <cyd@stupidchicken.com>
10075
10076 * font.c (font_parse_fcname): Accept GTK-style font names too.
10077
100782008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10079
10080 * dired.c (file_name_completion): Don't return t if the match is exact
10081 but with different capitalization.
10082 * minibuf.c (Ftry_completion): Simplify.
10083
10084 * window.c (Vwindow_point_insertion_type): New var.
10085 (set_window_buffer): Use it.
10086 (syms_of_window): Init and export it to Lisp.
10087
100882008-06-10 Kenichi Handa <handa@m17n.org>
10089
10090 * font.h (font_intern_prop): Prototype adjusted.
10091
10092 * font.c (font_intern_prop): New arg force_symbol.
10093 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10094 Adjust for the change of font_intern_prop.
10095
10096 * ftfont.c (ftfont_pattern_entity):
10097 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10098 (w32_registry):
10099 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10100 the change of font_intern_prop.
10101
101022008-06-09 Juanma Barranquero <lekktu@gmail.com>
10103
10104 * w32menu.c (digest_single_submenu): Declare extern.
10105
101062008-06-09 Jason Rumney <jasonr@gnu.org>
10107
10108 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10109
10110 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10111 (parse_single_submenu): Remove.
10112 (digest_single_submenu): Remove.
10113 (syms_of_w32menu): Don't initialise variables that have moved
10114 to menu.c.
10115 (set_frame_menubar): Sync with version in xmenu.c.
10116 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10117
10118 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10119 Make static again.
10120
101212008-06-09 Jason Rumney <jasonr@gnu.org>
10122
10123 Changes to w32 files related to the move of common menu code
10124 to menu.c on 2008-06-08 by Chong Yidong.
10125
10126 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10127 defs to w32gui.h.
10128 (single_keymap_panes, push_menu_item, push_menu_pane):
10129 Make globally visible.
10130
10131 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10132 (local_free, malloc_widget_value, free_widget_value)
10133 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10134 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10135 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10136 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10137 (menu_items, menu_items_allocated, menu_items_used)
10138 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10139 (init_menu_items, finish_menu_items, discard_menu_items)
10140 (grow_menu_items, push_submenu_start, push_submenu_end)
10141 (push_left_right_boundary, push_menu_pane, push_menu_item)
10142 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10143 (free_menubar_widget_tree_value, parse_single_submenu)
10144 (update_submenu_strings): Remove functions.
10145 (xmalloc_widget_value): Remove and declare extern.
10146
10147 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10148 (OBJ1): Build it.
10149
10150 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10151 (local_heap, local_alloc, local_free, malloc_widget_value)
10152 (free_widget_value): Define here.
10153
101542008-06-09 Kenichi Handa <handa@m17n.org>
10155
10156 * font.h (Qascii_0): Extern it.
10157
10158 * font.c (Qascii_0): New variable.
10159 (syms_of_font): DEFSYM it.
10160 (font_open_by_name): If the registry "iso8859-1" fails, try also
10161 "ascii-0".
10162
10163 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10164
101652008-06-08 Kenichi Handa <handa@m17n.org>
10166
10167 * .gdbinit (xfont): New command.
10168
101692008-06-08 Andreas Schwab <schwab@suse.de>
10170
10171 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10172 * Makefile.in (menu.o): Update dependencies.
10173
10174 * Makefile.in (obj): Always add menu.o.
10175 * emacs.c (main): Always call syms_of_menu.
10176 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10177
101782008-06-08 Chong Yidong <cyd@stupidchicken.com>
10179
10180 * Makefile.in: Compile menu.c.
10181
10182 * lisp.h: Declare syms_of_menu.
10183
10184 * emacs.c (main): Call syms_of_menu.
10185
10186 * keyboard.h: Relocate platform-independent menu definitions from
10187 xmenu.c.
10188
10189 * menu.c: New file. Relocate platform-independent menu
10190 definitions from xmenu.c. Suggested by Adrian Robert.
10191
10192 * xmenu.c: Remove platform-independent menu definitions.
10193 (menu_items menu_items_inuse, menu_items_allocated)
10194 (menu_items_used, menu_items_n_panes)
10195 (menu_items_submenu_depth): Move to keyboard.h.
10196 (init_menu_items, finish_menu_items, unuse_menu_items)
10197 (discard_menu_items, restore_menu_items, save_menu_items)
10198 (grow_menu_items, push_submenu_start, push_submenu_end)
10199 (push_left_right_boundary, push_menu_pane, push_menu_item)
10200 (keymap_panes, single_keymap_panes, single_menu_item)
10201 (list_of_panes, list_of_items, find_and_call_menu_selection)
10202 (xmalloc_widget_value, free_menubar_widget_value_tree)
10203 (parse_single_submenu, digest_single_submenu)
10204 (update_submenu_strings): Move to menu.c.
10205
102062008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10207
10208 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10209
102102008-06-06 Miles Bader <miles@gnu.org>
10211
10212 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10213 face, not frame default.
10214
102152008-06-05 Martin Rudalics <rudalics@gmx.at>
10216
10217 * window.c (pop_up_windows, pop_up_frames)
10218 (display_buffer_reuse_frames, Vpop_up_frame_function)
10219 (Vdisplay_buffer_function, Veven_window_heights)
10220 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10221 (Vspecial_display_function, Vsame_window_buffer_names)
10222 (Vsame_window_regexps, split_height_threshold)
10223 (Vsplit_window_preferred_function): Move those vars to window.el.
10224 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10225 (Fdisplay_buffer): Move those functions to window.el.
10226 (syms_of_window): Remove corresponding declarations.
10227 (display_buffer): New function.
10228 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10229 * dispnew.c (Flast_nonminibuf_frame): New function.
10230 * buffer.c (Fpop_to_buffer): Move to window.el.
10231
102322008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10233
10234 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10235
102362008-06-05 Kenichi Handa <handa@m17n.org>
10237
10238 * coding.c (detect_coding): Fix previous change.
10239 (detect_coding_system): Likewise.
10240
102412008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10242
10243 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10244
10245 * keymap.c (Vminibuffer_local_filename_must_match_map):
10246 Rename from Vminibuffer_local_must_match_filename_map.
10247 (syms_of_keymap):
10248 * minibuf.c (Fcompleting_read): Adjust accordingly.
10249 * commands.h: Rename declaration as well.
10250
102512008-06-05 Kenichi Handa <handa@m17n.org>
10252
10253 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10254 family name.
10255 (Ffont_put): Likewise.
10256
10257 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10258 current font-spec.
10259
10260 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10261 is unspecified.
10262
10263 * xfaces.c (realize_x_face): If the font-related face attributes
10264 are the same as those of default face, realize a new fontset from
10265 default->fontset.
10266 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10267
102682008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10269
10270 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10271 (move_it_in_display_line): New wrapper.
10272
10273 * window.c (window_scroll_pixel_based_preserve_x)
10274 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10275 (window_scroll_pixel_based, window_scroll_line_based):
10276 Use them to preserve column positions.
10277 (syms_of_window): Initialize them.
10278
10279 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10280 (HPOS . VPOS) pair.
10281
10282 * dispextern.h (move_it_in_display_line): Declare.
10283
102842008-06-05 Juanma Barranquero <lekktu@gmail.com>
10285
10286 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10287 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10288 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10289
102902008-06-04 Juanma Barranquero <lekktu@gmail.com>
10291
10292 * window.c (Fset_window_parameter): Doc fix.
10293 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10294
102952008-06-04 Joakim Verona <joakim@verona.se>
10296
10297 * window.h (struct window): Add new member window_parameters.
10298
10299 * window.c (Fwindow_parameters, Fwindow_parameter)
10300 (Fset_window_parameter): New defuns.
10301 (syms_of_window): Defsubr the new defuns.
10302 (make_window): Initialize window_parameters to nil.
10303
103042008-06-04 John Paul Wallington <jpw@pobox.com>
10305
10306 * eval.c (Fdefmacro): Doc fix.
10307
103082008-06-04 Kenichi Handa <handa@m17n.org>
10309
10310 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10311 Be sure to call setup_coding_system when we find a proper coding system.
10312 (detect_coding_system): Fix handling of coding->head_ascii.
10313
103142008-06-03 Andreas Schwab <schwab@suse.de>
10315
10316 * font.c (font_prop_validate_spacing): Fix last change.
10317
103182008-06-03 Kenichi Handa <handa@m17n.org>
10319
10320 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10321 (font_parse_fcname): Fix handling of unknown key.
10322
10323 * xfont.c (xfont_list): Try an alias.
10324
10325 * charset.c (char_charset): Return NULL if the arg charset_list is
10326 specified and C doesn't belong to any of them.
10327
103282008-06-02 Chip Coldwell <coldwell@redhat.com>
10329
10330 * font.c (font_pixel_size): Don't take cdr of an integer.
10331
103322008-06-02 Jim Meyering <meyering@redhat.com>
10333
10334 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10335 * alloc.c (xfree): Return right away for a NULL arg.
10336 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10337 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10338 * mac.c (create_apple_event_from_event_ref): Likewise.
10339 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10340 Likewise.
10341 * doprnt.c (doprnt1): Likewise.
10342 * frame.c (frame): Likewise.
10343 * keyboard.c (wipe_kboard): Likewise.
10344 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10345 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10346 * term.c (tty_default_color_capabilities, maybe_fatal)
10347 (delete_tty): Likewise.
10348 * w16select.c (string): Likewise.
10349 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10350 * w32bdf.c (w32_free_bdf_font): Likewise.
10351 * w32fns.c (w32_unload_font): Likewise.
10352 * w32font.c (w32font_close): Likewise.
10353 * window.c (size_window): Likewise.
10354 * xselect.c (receive_incremental_selection): Likewise.
10355 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10356 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10357 * w32.c (stat): Likewise.
10358
10359 Remove useless if-before-free tests.
10360 * editfns.c (Fset_time_zone_rule): Likewise.
10361 * lread.c (nosuffix): Likewise.
10362 * ralloc.c (get_bloc): Likewise.
10363 * regex.c (reg_free): Likewise.
10364 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10365 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10366 * xsmfns.c (smc_save_yourself_CB): Likewise.
10367
103682008-06-02 Kenichi Handa <handa@m17n.org>
10369
10370 * font.c (font_find_for_lface): Handle float font size.
10371 (font_open_for_lface): Likewise.
10372
10373 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10374 comparing the properties.
10375
103762008-06-01 Jason Rumney <jasonr@gnu.org>
10377
10378 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10379 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10380 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10381 Don't add empty script list.
10382 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10383
103842008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10385
10386 * Makefile.in (dot, dotdot): Remove, update users.
10387 ".." has been used elsewhere in the file for a long time.
10388 (LIBXT_STATIC): Remove conditional based on unused variable.
10389
103902008-06-01 Miles Bader <miles@gnu.org>
10391
10392 * xfaces.c (Vface_remapping_alist): New variable.
10393 (syms_of_xfaces): Initialize it.
10394 (enum named_merge_point_kind): New type.
10395 (struct named_merge_point): Add `named_merge_point_kind' field.
10396 (push_named_merge_point): Make cycle detection respect different
10397 named-merge-point kinds.
10398 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10399 Remove face-name alias resolution.
10400 (lface_from_face_name): New definition using
10401 `lface_from_face_name_no_resolve'.
10402 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10403 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10404 (get_lface_attributes): New definition that layers face-remapping on
10405 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10406 (lookup_basic_face): New function.
10407 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10408 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10409 `get_lface_attributes'.
10410 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10411 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10412 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10413
10414 * xdisp.c (init_iterator): Pass base_face_id through
10415 `lookup_basic_face' when we actually use it as a face-id.
10416 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10417 DEFAULT_FACE_ID.
10418
10419 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10420 lookup the initial face-id.
10421
10422 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10423
104242008-06-01 Juanma Barranquero <lekktu@gmail.com>
10425
10426 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10427 (Fremove_text_properties): Fix typos in docstrings.
10428
104292008-05-31 Kenichi Handa <handa@m17n.org>
10430
10431 * font.c (font_list_entities): Fix the car part of data to be
10432 stored in the cache.
10433
10434 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10435
104362008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10437
10438 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10439 Add a `test' argument so another predicate than `equal' can be used.
10440 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10441 (map_char_table): Remove unused vars `c' and `i'.
10442 * lisp.h (Foptimize_char_table): Adjust declaration.
10443 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10444
104452008-05-30 Kenichi Handa <handa@m17n.org>
10446
10447 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10448 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10449 defined.
10450
104512008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10452
10453 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10454 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10455 frame-local settings for the same variable.
10456
104572008-05-30 Kenichi Handa <handa@m17n.org>
10458
10459 * fontset.c (Ffont_info): Move to font.c.
10460 (syms_of_fontset): Delete defsubr of Sfont_info.
10461
10462 * font.c (font_style_to_value, font_score): Delete casting of the
10463 args to xstcasecmp.
10464 (register_font_driver): Increment num_font_drivers only when
10465 registering the driver globally.
10466 (Ffont_info): Move from fontset.c. Handle a font object too.
10467 (syms_of_font): Defsubr Sfont_info.
10468
104692008-05-29 Kenichi Handa <handa@m17n.org>
10470
10471 * coding.h (enum define_coding_utf8_arg_index): New enum.
10472 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10473 coding_attr_utf_bom.
10474 (enum utf_bom_type): Rename from utf_16_bom_type.
10475 (struct utf_16_spec): Adjust for the above change.
10476 (struct coding_system): Add utf_8_bom in `spec' union.
10477
10478 * coding.c (CODING_UTF_8_BOM): New macro.
10479 (enum coding_category): Delete coding_category_utf_8, add
10480 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10481 coding_category_utf_8_sig.
10482 (CATEGORY_MASK_UTF_8): Delete it.
10483 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10484 (CATEGORY_MASK_UTF_8_SIG): New macros.
10485 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10486 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10487 CATEGORY_MASK_UTF_8_SIG.
10488 (CATEGORY_MASK_UTF_8): New macro.
10489 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10490 (detect_coding_utf_8): Check BOM.
10491 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10492 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10493 (encode_coding_utf_16): Likewise.
10494 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10495 (detect_coding, detect_coding_system): Handle utf-8-auto.
10496 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10497 (syms_of_coding): Fix setting up of Vcoding_category_table.
10498
104992008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10500
10501 * process.c (Faccept_process_output): If `millisec' is non-nil,
10502 `seconds' default to 0.
10503 (wait_reading_process_output): Also return non-nil if we read output
10504 from a non-running process.
10505
105062008-05-29 Jason Rumney <jasonr@gnu.org>
10507
10508 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10509 `raster' specified.
10510 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10511 in the uniscribe backend, but disallow any font that has no
10512 unicode subrange support.
10513
105142008-05-29 Juanma Barranquero <lekktu@gmail.com>
10515
10516 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10517 Fix typos in docstrings.
10518
105192008-05-29 Kenichi Handa <handa@m17n.org>
10520
10521 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10522 (Fx_family_fonts): Set frame correctly.
10523
105242008-05-28 Jason Rumney <jasonr@gnu.org>
10525
10526 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10527
105282008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10529
10530 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10531 calling build_annotations.
10532
105332008-05-28 Juanma Barranquero <lekktu@gmail.com>
10534
10535 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10536 (Fencode_coding_string):
10537 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10538 <latin-extra-code-table>: Fix typos in docstrings.
10539 (syms_of_coding) <coding-system-alist>: Doc fix.
10540 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10541
105422008-05-28 Kenichi Handa <handa@m17n.org>
10543
10544 * fontset.c (Ffont_info): Don't call font_close_object.
10545
10546 * font.c (font_parse_family_registry): Use Ffont_put to validate
10547 foundry and family.
10548 (font_delete_unmatched): Don't check spacing.
10549 (font_list_entities): Add spacing to the spec to list fonts.
10550
10551 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10552 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10553
10554 * coding.c (encode_coding_raw_text): Fix previous change.
10555 (encode_coding_object): When the dst_object is a buffer and is
10556 different from src_object, move gap to PT.
10557
105582008-05-27 Chong Yidong <cyd@stupidchicken.com>
10559
10560 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10561
105622008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10563
10564 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10565 all branches. Compute it differently.
10566
10567 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10568
105692008-05-27 Juanma Barranquero <lekktu@gmail.com>
10570
10571 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10572 into "else if () ... else ...".
10573
105742008-05-27 Jason Rumney <jasonr@gnu.org>
10575
10576 * w32font.c (w32font_open_internal): Determine if glyph indices
10577 are likely to work here.
10578
105792008-05-27 Chong Yidong <cyd@stupidchicken.com>
10580
10581 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10582 draw overlap glyphs with appropriate highlighting.
10583
105842008-05-27 Kenichi Handa <handa@m17n.org>
10585
10586 * xfont.c (xfont_open): Fix calculation of font->average_width.
10587
105882008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10589
10590 * casefiddle.c (casify_object): Try to guess better whether the
10591 argument is a byte or a char.
10592
105932008-05-26 Andreas Schwab <schwab@suse.de>
10594
10595 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10596 Always send multiples of format size.
10597
10598 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10599
106002008-05-26 Jason Rumney <jasonr@gnu.org>
10601
10602 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10603 (compute_metrics): Don't set failure if we just cleared the cache.
10604 (w32_weight_table): Remove unused variable.
10605 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10606 backwards compatibility.
10607
106082008-05-25 Kenichi Handa <handa@m17n.org>
10609
10610 * w32term.c (x_draw_glyph_string):
10611 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10612
10613 * xfaces.c: Delete unused function prototypes.
10614 (xstrlwr, font_frame): Delete them.
10615 (clear_face_cache): Delete unused variable.
10616
10617 * xftfont.c (xftfont_open): Delete unused variable.
10618 If underline_thickness is not 1, adjust underline_position.
10619
10620 * ftxfont.c (ftxfont_open): Delete unused variable.
10621
10622 * fontset.c (face_for_char): Optimize for the case of no charset
10623 property.
10624
10625 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10626 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10627 (otf_open, font_otf_capability, generate_otf_features)
10628 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10629 Comment out by surrounding "#if 0" and "#endif" for the moment.
10630 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10631 (syms_of_font): Codes for accessing above commented out.
10632
106332008-05-24 Eli Zaretskii <eliz@gnu.org>
10634
10635 * w32proc.c: Include dispextern.h.
10636
10637 * w32.c: Include dispextern.h.
10638
106392008-05-23 Juanma Barranquero <lekktu@gmail.com>
10640
10641 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10642 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10643 Fix typos in docstrings.
10644
106452008-05-23 Jason Rumney <jasonr@gnu.org>
10646
10647 * xsmfns.c: Remove includes that are already included by config.h.
10648
106492008-05-23 Kenichi Handa <handa@m17n.org>
10650
10651 * charset.c (Qemacs, charset_emacs): New variables.
10652 (char_charset): Fix for non-Unicode characters.
10653 (syms_of_charset): Define charset_emacs.
10654
10655 * w32term.c (x_draw_glyph_string): Be sure to update
10656 s->underline_thickness and s->underline_position. Be sure to draw
10657 underline within the current line area.
10658
10659 * xterm.c (x_draw_glyph_string): Be sure to update
10660 s->underline_thickness and s->underline_position. Be sure to draw
10661 underline within the current line area.
10662
10663 * fontset.c: Delete unused variables and add casting for char *
10664 throughout the file.
10665 (fontset_font): Try the fallback fonts of the current fontset
10666 before consulting the default fontset.
10667
10668 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10669
10670 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10671
106722008-05-22 Jason Rumney <jasonr@gnu.org>
10673
10674 * font.c: Don't include strings.h.
10675
10676 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10677
10678 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10679 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10680 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10681 to call xstrcasecmp.
10682
10683 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10684
10685 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10686
10687 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10688
10689 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10690
106912008-05-22 Kenichi Handa <handa@m17n.org>
10692
10693 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10694
10695 * font.c (font_prop_validate_style): Adjust for the format
10696 change of font_style_table.
10697
10698 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10699 two args.
10700
10701 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10702 two args.
10703
107042008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10705
10706 * minibuf.c (keys_of_minibuf): Delete.
10707 * lisp.h (keys_of_minibuf): Delete.
10708 * emacs.c (main): Don't call keys_of_minibuf.
10709
107102008-05-22 Kenichi Handa <handa@m17n.org>
10711
10712 * ftfont.c (ftfont_resolve_generic_family): Rename from
10713 ftfont_list_generic_family. Return a single family for each
10714 generic family.
10715 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10716 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10717 Call font_add_log.
10718 (ftfont_match): Call font_add_log.
10719
10720 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10721 (FONT_DEBUG): Define it.
10722 (font_add_log): Extern it.
10723 (font_assert): Rename from xassert.
10724
10725 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10726 (xfont_list_family): Call font_add_log.
10727 (xfont_match): Likewise.
10728 (memq_no_quit): Delete.
10729
10730 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10731 call of Ffont_xlfd_name.
10732
10733 * xfaces.c (struct table_entry, slant_table, weight_table)
10734 (swidth_table): Move to font.c.
10735
10736 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10737 xassert are changed to font_assert. Delete many unused variables.
10738 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10739 New variables.
10740 (struct table_entry): Move from xfaces.c and modified.
10741 (weight_table, slant_table, width_table): Move from xfaces.c and
10742 contents adjusted for the change of struct table_entry.
10743 (font_style_to_value, font_style_symbolic): Adjust for the
10744 format change of font_style_table.
10745 (font_parse_family_registry): Don't overwrite existing foundry and
10746 family of font_spec.
10747 (font_score): Fix calculation of diff for sizes.
10748 (font_sort_entites): Call font_add_log.
10749 (font_delete_unmatched): Return a newly created list.
10750 (font_list_entities): Fix previous change. Call font_add_log.
10751 (font_matching_entity, font_open_entity, font_close_entity):
10752 Call font_add_log.
10753 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10754 (Finternal_set_font_style_table): Delete.
10755 (BUILD_STYLE_TABLE): New macro.
10756 (build_style_table): New function.
10757 (Vfont_log, font_log_env_checked): New variables.
10758 (font_add_log): New function.
10759 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10760 Declare Lisp variables "font-weight-table", "font-slant-table",
10761 "font-width-table", and "font-log". Initialize font_style_table.
10762
107632008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10764
10765 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10766
107672008-05-21 Seiji Zenitani <zenitani@mac.com>
10768 Ryo Yoshitake <ryo@shiftmode.net>
10769
10770 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10771 (Vframe_alpha_lower_limit): New variable.
10772 (x_set_alpha): New function.
10773
10774 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10775
10776 * xfns.c (x-create-frame, Qalpha):
10777 Initialize the frame parameter `alpha'.
10778 * xterm.c (OPAQUE, OPACITY): New.
10779 (x_set_frame_alpha): New function.
10780 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10781
10782 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10783 * w32fns.c (w32_frame_parm_handlers): Likewise.
10784
107852008-05-20 Jason Rumney <jasonr@gnu.org>
10786
10787 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10788 truetype fonts to opentype list.
10789
107902008-05-20 Juanma Barranquero <lekktu@gmail.com>
10791
10792 * fontset.c (Ffontset_info): Doc fix.
10793 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10794 <ignore-relative-composition>: Fix typos in docstrings.
10795
10796 * font.c (syms-of-font) <font-encoding-alist>:
10797 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10798 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10799 (Ffont_otf_alternates): Doc fixes.
10800
108012008-05-20 Kenichi Handa <handa@m17n.org>
10802
10803 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10804 font.h through out the file.
10805 (FONT_DRIVERS): Rename from FONTOBJ.
10806 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10807 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10808
10809 * emacs.c (main): Call syms_of_font unconditionally.
10810
10811 * font.h (find_font_encoding): Extern it.
10812
10813 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10814 fontset.c.
194d44e7 10815 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10816 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10817 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10818 only when HAVE_WINDOW_SYSTEM is defined.
10819 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10820 when HAVE_WINDOW_SYSTEM is defined.
10821
10822 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10823 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10824
10825 * xfaces.c: Include font.h unconditionally.
10826 (merge_face_ref, merge_face_vectors)
10827 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10828
108292008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10830
10831 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10832 indirect_variable.
10833 * eval.c (lisp_indirect_variable): New fun.
10834 (Fuser_variable_p): Use it.
10835
108362008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10837
10838 * lisp.h (indirect_variable):
10839 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10840 Use Lisp_Symbol pointers rather than Lisp_Object.
10841 Adjust callers.
10842 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10843 To this end, change calling-convention.
10844
10845 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10846 if some non-hidden buffers are selected by string&pred.
10847
108482008-05-19 Chong Yidong <cyd@stupidchicken.com>
10849
10850 * process.c (wait_reading_process_output): Always check status
10851 when in batch mode.
10852
108532008-05-19 Kenichi Handa <handa@m17n.org>
10854
10855 * font.c (font_list_entities): Fix handling of cache.
10856 (font_matching_entity): Likewise.
10857
10858 * ftfont.c (cs_iso8859_1): Delete.
10859 (ft_face_cache): New variable.
10860 (struct ftfont_info): New member fc_charset_idx.
10861 (ftfont_build_basic_charsets): Delete.
10862 (fc_charset_table): New variable.
10863 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10864 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10865 Callers changed.
10866 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10867 (ftfont_spec_pattern): New argument fc_charset_idx.
10868 Check registry more rigidly. Change callers.
10869 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10870 change of :font-entity property of the font.
10871
10872 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10873 property of the font.
10874
108752008-05-18 Juanma Barranquero <lekktu@gmail.com>
10876
10877 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10878 (Funencodable_char_position, Fcheck_coding_systems_region)
10879 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10880 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10881 (Ffind_operation_coding_system, Fset_coding_system_priority)
10882 (Fcoding_system_eol_type): Doc fixes.
10883
108842008-05-17 Glenn Morris <rgm@gnu.org>
10885
10886 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10887
108882008-05-16 Eli Zaretskii <eliz@gnu.org>
10889
10890 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10891 and st_gid.
10892
10893 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10894 HAVE_WINDOW_SYSTEM is not defined.
10895
10896 * xfaces.c (merge_face_ref, merge_face_vectors)
10897 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10898 HAVE_WINDOW_SYSTEM is defined.
10899 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10900
109012008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10902
10903 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10904
109052008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10906
10907 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10908
109092008-05-15 Kenichi Handa <handa@m17n.org>
10910
10911 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10912 preference.
10913
109142008-05-15 Glenn Morris <rgm@gnu.org>
10915
10916 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10917
109182008-05-15 Chong Yidong <cyd@stupidchicken.com>
10919
10920 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10921 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10922
10923 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10924
109252008-05-15 Kenichi Handa <handa@m17n.org>
10926
10927 * ftfont.c (ftfont_list): Downcase family name to check generic
10928 families.
10929
10930 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10931 font-spec for QCfont value.
10932
10933 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10934 buffer. Check the return value of it.
10935
109362008-05-14 Jason Rumney <jasonr@gnu.org>
10937
10938 * w32term.c (w32_get_glyph_overhangs): Remove.
10939 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10940
109412008-05-14 Kenichi Handa <handa@m17n.org>
10942
10943 * font.c (font_prop_validate): Make nil a valid value.
10944 (font_clear_cache): Check if the cached vector of entities is nil
10945 or not.
10946
109472008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10948
10949 * emacs.c (main_thread): Conditionalize on
10950 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10951 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10952
10953 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10954 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10955 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10956
109572008-05-14 Kenichi Handa <handa@m17n.org>
10958
10959 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10960 has no corresponding coding system.
10961
109622008-05-14 Jason Rumney <jasonr@gnu.org>
10963
10964 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10965
10966 * w32font.h (w32font_open_internal): Update declaration.
10967
10968 * w32font.c (w32font_open_internal): Change last argument from
10969 w32font_info struct to font object. Fill in font object from
10970 font_entity. Get Outline metrics if possible. Use them to
10971 calculate underline position and thickness. Use xlfd name as name
10972 property. Don't set codepage.
10973 (w32font_open): Pass font_object to w32font_open_internal. Don't
10974 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10975 (w32font_draw): Use s->font.
10976 (clear_cached_metrics): Don't clear non-existent blocks.
10977
10978 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10979 font was not found.
10980 (x_draw_glyph_string): Use underline position and thickness from font.
10981
10982 * w32uniscribe.c (uniscribe_open): Pass font_object to
10983 w32font_open_internal.
10984
109852008-05-14 Kenichi Handa <handa@m17n.org>
10986
10987 These changes are to delete all legacy font-handling codes, and
10988 make Emacs use only font-backends.
10989
10990 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10991 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10992
10993 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10994
10995 * charset.h (Vcharset_non_preferred_head)
10996 (Vcurrent_iso639_language): Extern them.
10997
10998 * charset.c (Vcharset_non_preferred_head): New variable.
10999 (Vcurrent_iso639_language): New variable.
11000 (syms_of_charset): Declare it as a Lisp variable.
11001 (char_charset): Don't check non preferred charsets. As a last
11002 resort, return charset_unicode.
11003 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11004
11005 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11006 conditionals. Don't check enable_font_backend. Delete all codes
11007 used only when USE_FONT_BACKEND is not defined.
11008
11009 * dispextern.h (struct glyph_string): Change type of `font' to
11010 `struct font *'.
11011 (struct glyph_string): New member underline_position and
11012 underline_thickness.
11013 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11014 (struct face): Change type of `font' to `struct font *'. Remove
11015 members `font_name', `font_info_id'.
11016 (per_char_metric, encode_char): Delete externs.
11017 (calc_pixel_width_or_height): Adjust the prototype.
11018
11019 * emacs.c (enable_font_backend): Delete extern.
11020 (main): Don't set enable_font_backend. Don't check the command
11021 line argument "-disable-font-backend".
11022
11023 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11024 (enum font_property_index): New members FONT_DPI_INDEX,
11025 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11026 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11027 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11028 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11029 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11030 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11031 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11032 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11033 (struct font_spec, struct font_entity): New structs.
11034 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11035 (struct font): Many members from old "struct font_info" moved to
11036 here. Members font and entity deleted.
11037 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11038 the new font-related objects.
11039 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11040 (CHECK_FONT_GET_OBJECT): Likewise.
11041 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11042 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11043 (struct font_driver): New members case_sensitive anc check. Type
11044 of the member list and open changed.
11045 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11046 (font_symbolic_width, font_find_object, font_get_spec)
11047 (font_set_lface_from_name): Delete extern.
11048 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11049
11050 * font.c: Include <strings.h>.
11051 (enable_font_backend): Delete it.
11052 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11053 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11054 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11055 (null_string): Delete it.
11056 (null_vector): Make it static.
11057 (font_family_alist): Delete it.
11058 (Qnormal): Extern it.
11059 (QCextra, QClanguage): Delete it.
11060 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11061 (font_make_spec, font_make_entity, font_make_object)
11062 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11063 the string. Callers changed.
11064 (font_pixel_size): Adjusted for the format change of font-related
11065 objects.
11066 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11067 (font_style_to_value, font_style_symbolic): New function.
11068 (build_font_family_alist): Delete it.
11069 (font_registry_charsets): Use Fassoc_string instead of
11070 assq_no_quit.
11071 (font_prop_validate_symbol): Don't return null_string.
11072 (font_prop_validate_style): Adjusted for the change of
11073 style-related values in a font vector.
11074 (font_property_table): Delete entries for QClanguage and
11075 QCantialias, add entries for QCavgwidth.
11076 (get_font_prop_index): Delete the 2nd argument FROM.
11077 (font_prop_validate): Arguments changed.
11078 (font_put_extra): Adjusted for the change of font-related objects.
11079 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11080 (font_parse_fcname, font_unparse_fcname)
11081 (font_prepare_composition): Likewise.
11082 (font_parse_family_registry): Renamed from font_merge_old_spec.
11083 (otf_open): Delete the 1st arg entity.
11084 (font_otf_capability): Adjusted for the above change.
11085 (font_score): New arg alternate_families. Adjusted for the change
11086 of font-related objects.
11087 (font_sort_entites): New arg best_only.
11088 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11089 Delete them.
11090 (font_match_p): Check alternate families.
11091 (font_find_object): Delete it.
11092 (font_check_object): New function.
11093 (font_clear_cache): Adjusted for the change of font-related objects.
11094 (font_delete_unmatched): New arg.
11095 (font_list_entities): Call font_driver->list with a spec that
11096 doesn't specify style-related properties.
11097 (font_matching_entity): Arguments changed. Caller changed.
11098 (font_open_entity): Adjusted for the change of font-related objects.
11099 (font_close_object, font_has_char, font_encode_char)
11100 (font_get_name, font_get_spec): Likewise.
11101 (font_spec_from_name, font_clear_prop, font_update_lface):
11102 New functions.
11103 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11104 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11105 (font_at): Adjusted for the change of font-related objects.
11106 (font_range): New function.
11107 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11108 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11109 (Fcopy_font_spec, Fmerge_font_spec): New function.
11110 (Ffont_family_list): Renamed from list-families.
11111 (Finternal_set_font_style_table): Arguments changed.
11112 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11113 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11114 change of font-related objects.
11115 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11116
11117 * fontset.h (struct font_info): Delete it. Most members go to
11118 struct font.
11119 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11120 (enum FONT_SPEC_INDEX): Delete it.
11121 (font_info, list_fonts_func, load_font_func, query_font_func)
11122 (set_frame_fontset_func, find_ccl_program_func)
11123 (get_font_repertory_func, new_fontset_from_font_name): Delete
11124 externs.
11125 (fontset_from_font_name): Extern it.
11126 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11127 (FONT_INFO_FROM_FACE): Deleted.
11128 (face_for_font): Adjust prototype.
11129
11130 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11131 conditionals. Don't check enable_font_backend. Delete all codes
11132 used only when USE_FONT_BACKEND is not defined.
11133 (get_font_info_func, list_font_func, load_font_func)
11134 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11135 (get_font_repertory_func): Delete them.
11136 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11137 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11138 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11139 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11140 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11141 (fontset_compare_rfontdef): New function.
11142 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11143 rfont-defs by qsort. Adjusted for the change of font-group vector.
11144 (load_font_get_repertory): Deleted.
11145 (fontset_find_font): Use new macros to ref/set elements of
11146 font-def and rfont-def.
11147 (fontset_font): Fix the timing of remembering that no font for C.
11148 (free_face_fontset): Do nothing if the face has no fontset.
11149 (face_suitable_for_char_p): Use new macros to ref/set elements of
11150 rfont-def.
11151 (face_for_char): Likewise. Call face_for_char with font_object.
11152 (fs_load_font): Delete. Delete #pragma surrounding it.
11153 (fs_query_fontset): Use strcasecmp instead of strcmp.
11154 (generate_ascii_font_name): Adjusted for the format change of
11155 font-spec.
11156 (Fset_fontset_font): Likewise. Use new macros to set elements of
11157 font-def.
11158 (Fnew_fontset): Use font_unparse_xlfd to generate
11159 FONTSET_ASCII (fontset).
11160 (new_fontset_from_font_name): Deleted.
11161 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11162 a fontset is already created for the font. FIx updating of
11163 Vfontset_alias_alist.
11164 (fontset_ascii_font): Deleted.
11165 (Ffont_info): Adjusted for the format change of font-spec.
11166 (Finternal_char_font): Likewise.
11167 (Ffontset_info): Likewise.
11168 (syms_of_fontset): Don't check load_font_func.
11169
11170 * fns.c (internal_equal): Handle PREV_FONT.
11171
11172 * frame.h: Delete USE_FONT_BACKEND conditional.
11173
11174 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11175 conditionals. Don't check enable_font_backend. Delete all codes
11176 used only when USE_FONT_BACKEND is not defined.
11177 (x_set_font): Call x_new_font, not x_new_fontset2.
11178 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11179 already set for the frame.
11180
11181 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11182 a font-entity by font_make_entity. Use font_intern_prop instead
11183 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11184 font property. If a font is scalable, set avgwidth property to 0.
11185 Set font-entity property by font_put_extra.
11186 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11187 (ffont_driver): Adjusted for the change of struct font_driver.
11188 (ftfont_spec_pattern): New function.
11189 (ftfont_list): Return a list, not vector.
11190 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11191 (ftfont_list_family): Don't downcase names.
11192 (ftfont_free_entity): Deleted.
11193 (ftfont_open): Return a font-object. Adjusted for the change of
11194 struct font. Get underline_thickness and underline_position from
11195 font property. Don't update dpyinfo->smallest_font_height and
11196 dpyinfo->smallest_char_width.
11197 (ftfont_close): Don't free `struct font'.
11198 (ftfont_has_char): Adjusted for the format change of font-entity.
11199 (ftfont_encode_char, ftfont_text_extents): Likewise.
11200
11201 * ftxfont.c (ftxfont_list): Return a list, not vector.
11202 (ftxfont_open): Return a font-object. Adjusted for the change of
11203 struct font. Get underline_thickness and underline_position from
11204 font property. Don't update dpyinfo->smallest_font_height and
11205 dpyinfo->smallest_char_width.
11206 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11207 (ftxfont_draw): Adjusted for the change of struct font.
11208
11209 * image.c (image_ascent): Don't include "charset.h". Include
11210 "character.h" and "font.h".
11211
11212 * lisp.h (enum pvec_type): New member PREV_FONT.
11213 (Fassoc_string): EXFUN it.
11214
11215 * print.c: Include font.h.
11216 (print_object): Handle font-related objects.
11217
11218 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11219 conditionals. Don't check enable_font_backend. Delete all codes
11220 used only when USE_FONT_BACKEND is not defined.
11221 (handle_auto_composed_prop): Do nothing if it->f is not on a
11222 window system. Check how many following characters can be
11223 displayed by the same font.
11224 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11225 'struct font *'.
11226 (get_char_face_and_encoding): Assign the whole encoding task to
11227 the `encode-char' method of a font driver.
11228 (fill_composite_glyph_string): Adjusted for the change of `struct
11229 face' and `struct glyph_string'.
11230 (fill_glyph_string): Likewise.
11231 (get_per_char_metric): Arguments changed.
11232 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11233 and `struct glyph_string'.
11234 (produce_stretch_glyph, calc_line_height_property)
11235 (x_produce_glyphs): Likewise.
11236
11237 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11238 conditionals. Don't check enable_font_backend. Delete all codes
11239 used only when USE_FONT_BACKEND is not defined. Use
11240 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11241 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11242 (Qp): Extern them.
11243 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11244 Deleted.
11245 (struct font_name): Deleted.
11246 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11247 (compare_fonts_by_sort_order): New function.
11248 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11249 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11250 Deleted.
11251 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11252 compare_fonts_by_sort_order.
11253 (Fx_font_family_list): Call Ffont_family_list.
11254 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11255 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11256 (face_symbolic_slant, face_symbolic_swidth)
11257 (split_font_name_into_vector, build_font_name_from_vector)
11258 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11259 (font_rescale_ratio, split_font_name, build_font_name)
11260 (free_font_names, sort_fonts, x_face_list_fonts)
11261 (face_font_available_p, sorted_font_list, cmp_font_names)
11262 (font_list_1, concat_font_list, font_list, remove_duplicates):
11263 Deleted.
11264 (Fx_list_fonts): Use Ffont_list.
11265 (LFACE_AVGWIDTH): Deleted.
11266 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11267 by FONTP.
11268 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11269 (set_lface_from_font_name): Delete it.
11270 (set_lface_from_font): Renamed from
11271 set_lface_from_font_and_fontset. Caller changed. Don't set
11272 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11273 for face.
11274 (merge_face_vectors): Copy font-spec if necessary.
11275 Clear properties of the font-spec if necessary.
11276 (merge_face_ref): Clear properties of the font-spec if necessary.
11277 (Finternal_set_lisp_face_attribute): Likewise.
11278 (set_font_frame_param): Use font_load_for_lface to load a
11279 font-object, and call Fmodify_frame_parameters with it.
11280 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11281 font name by Ffont_xlfd_name.
11282 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11283 QCslant, and QCwidth.
11284 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11285 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11286 Compare fonts by EQ.
11287 (lookup_non_ascii_face): Deleted.
11288 (face_for_font): The 2nd argument changed.
11289 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11290 Check atomic font properties by case insensitive.
11291 (realize_non_ascii_face): Set face->overstrike correctly.
11292 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11293 (dump_realized_face): Get font name from
11294 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11295
11296 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11297 conditionals. Don't check enable_font_backend. Delete all codes
11298 used only when USE_FONT_BACKEND is not defined.
11299 (xic_create_xfontset): Original code deleted and renamed from
11300 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11301 (x_make_gc): Don't set GCFont in GCs.
11302 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11303 opened by "fixed".
11304 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11305 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11306 get_font_repertory_func.
11307
11308 * xfont.c: Include <stdlib.h> and "ccl.h".
11309 (struct xfont_info): New structure.
11310 (xfont_query_font): Deleted.
11311 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11312 moved from xterm.c.
11313 (xfont_driver): Adjusted for the change of struct font_driver.
11314 (compare_font_names): New function.
11315 (xfont_list_pattern): Sort font names case insensitively. Make
11316 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11317 (xfont_list): Return a list, not vector.
11318 (xfont_match): If the font doesn't have QCname property, generate
11319 a name from the other font properties.
11320 (xfont_open): Return a font-object. Adjusted for the change of
11321 struct font. Get underline_thickness and underline_position from
11322 font property. Don't update dpyinfo->smallest_font_height and
11323 dpyinfo->smallest_char_width.
11324 (xfont_close): Don't free struct font.
11325 (xfont_prepare_face): Adjusted for the change of struct font.
11326 (xfont_done_face): Deleted.
11327 (xfont_has_char): Adjusted for the change of struct font.
11328 (xfont_encode_char, xfont_draw): Likewise.
11329 (xfont_check): New function.
11330
11331 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11332 callback function.
11333 (xftfont_match): Adjusted for the format change of font-entity.
11334 (xftfont_open): Adjusted for the format change of font-entity and
11335 font-object. Adjusted for the change of struct font. Return a
11336 font-object. Don't update dpyinfo->smallest_font_height and
11337 dpyinfo->smallest_char_width.
11338 (xftfont_close): Block input while calling XftFontClose.
11339 (xftfont_prepare_face): Don't block input while calling
11340 xftfont_get_colors. Adjusted for the change of struct font.
11341 (xftfont_shape): Return value of error case fixed.
11342
11343 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11344
11345 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11346 conditionals.
11347 (FONT_WIDTH): Return (f)->max_width.
11348 (struct x_display_info): Delete member `font'.
11349 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11350 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11351 (struct x_output): Change type of `font' to `struct font *'.
11352
11353 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11354 conditionals. Don't check enable_font_backend. Delete all codes
11355 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11356 (x_per_char_metric, x_encode_char): Deleted.
11357 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11358 (x_compute_glyph_string_overhangs): Adjusted for the change of
11359 `struct face'.
11360 (x_draw_glyph_string_foreground)
11361 (x_draw_composite_glyph_string_foreground): Likewise.
11362 (x_draw_glyph_string): Likewise. Use font->underline_position and
11363 font->underline_thickness.
11364 (x_new_font): Renamed from x_new_fontset2.
11365 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11366 (x_check_font): Call `check' method of a font driver.
11367 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11368 (x_query_font, x_get_font_repertory): Deleted.
11369 (x_find_ccl_program): Renamed and moved to xfont.c.
11370 (x_redisplay_interface): Adjusted for the change of `struct
11371 redisplay_interface'.
11372
11373 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11374 conditionals. Don't check enable_font_backend. Delete all codes
11375 used only when USE_FONT_BACKEND is not defined. Surround non-used
11376 code by "#ifdef OLD_FONT" and "endif".
11377 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11378
11379 * w32font.h (struct w32font_info): New member.
11380 (FONT_COMPAT): New macro.
11381 (w32font_open_internal): Prototype adjusted.
11382
11383 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11384 OLD_FONT" and "endif".
11385
11386 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11387 conditionals. Don't check enable_font_backend. Delete all codes
11388 used only when USE_FONT_BACKEND is not defined.
11389 (w32font_open): Return a font-object. Make a font-object by
11390 font_make_object. Adjusted for the change of struct w32font_info.
11391 (w32font_close): Don't free struct font. Adjusted for the change
11392 of struct w32font_info.
11393 (w32font_encode_char, w32font_text_extents, w32font_draw):
11394 Adjusted for the change of struct w32font_info.
11395 (w32font_draw): Likewise.
11396 (w32font_list_internal): Return a list, not vector.
11397 (w32font_open_internal): Change the 4th arg to font-object.
11398 Adjusted for the change of struct w32font_info and font-object format.
11399 (add_font_name_to_list): Don't downcase names.
11400 (w32_enumfont_pattern_entity): Make a font-entity by
11401 font_make_entity. Adjusted for the format change of font-entity.
11402 Use FONT_SET_STYLE to set a style-related font property. If a
11403 font is scalable, set avgwidth property to 0. Set font-entity
11404 property by font_put_extra.
11405 (font_matches_spec): Adjusted for the format change of font-entity.
11406 (w32_weight_table, w32_decode_weight): New variables.
11407 (w32_encode_weight): New function.
11408 (fill_in_logfont): Adjusted for the format change of font-spec.
11409 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11410 weight value.
11411 (w32font_driver): Adjusted for the change of struct font_driver.
11412
11413 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11414 conditionals. Don't check enable_font_backend. Surround non-used
11415 code by "#ifdef OLD_FONT" and "endif".
11416 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11417 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11418
11419 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11420 conditionals. Don't check enable_font_backend. Delete all codes
11421 used only when USE_FONT_BACKEND is not defined. Surround non-used
11422 code by "#ifdef OLD_FONT" and "endif".
11423
11424 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11425 (uniscribe_open): Return value changed to font-object.
11426 Adjusted for the format change of font-object.
11427 (uniscribe_otf_capability): Adjusted for the change of struct font.
11428 (add_opentype_font_name_to_list): Don't downcase names.
11429 (uniscribe_font_driver): Adjusted for the change of struct
11430 font_driver.
11431
114322008-05-13 Chong Yidong <cyd@stupidchicken.com>
11433
11434 * dispnew.c (update_frame_1): Check if tty output is still valid
11435 before flushing it.
11436
114372008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11438
11439 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11440 to Gtk+ menus.
11441
114422008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11443
11444 * dired.c (file_name_completion): Tweak the code so as to always do it
11445 in a single pass. Tighten the scope of some variables.
11446
11447 * dired.c (Qdefault_directory): New var.
11448 (file_name_completion): Use it instead of Fexpand_file_name.
11449 (syms_of_dired): Initialize it.
11450
114512008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11452
11453 * fileio.c (double_dollars): Remove dead code.
11454
114552008-05-10 Eli Zaretskii <eliz@gnu.org>
11456
11457 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11458 Mention w32-get-true-file-attributes in doc string.
11459
11460 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11461
114622008-05-09 Glenn Morris <rgm@gnu.org>
11463
11464 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11465 2008-04-23.
11466
114672008-05-09 Eli Zaretskii <eliz@gnu.org>
11468
11469 Support for reporting owner and group of each file on MS-Windows:
11470 * dired.c (stat_uname, stat_gname): New functions, with special
11471 implementation for w32.
11472 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11473
11474 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11475 (dflt_group_name): New static variable.
11476 (dflt_group): Rename from the_group.
11477 (init_user_info): Init dflt_group fields. Get user's group name
11478 from LookupAccountSid.
11479 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11480 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11481 New initialization states.
11482 (globals_of_w32): Initialize them to zero. Initialize the default
11483 group name to "None".
11484 (GetFileSecurity_Name): New global var, the name of the function
11485 to call for GetFileSecurity.
11486 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11487 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11488 (get_file_security, get_security_descriptor_owner)
11489 (get_security_descriptor_group, is_valid_sid)
11490 (get_file_security_desc, get_rid, get_name_and_id)
11491 (get_file_owner_and_group): New functions.
11492 (stat): Use get_file_security_desc and get_file_owner_and_group to
11493 report the owner and primary group of each file. Don't ignore the
11494 high 32 bits of file's size, now that st_size is 64-bit wide.
11495 Fix test when to get true file attributes.
11496 (init_user_info): Use get_rid instead of equivalent inline code.
11497 (fstat): Don't ignore the high 32 bits of file's size.
11498
114992008-05-09 Chong Yidong <cyd@stupidchicken.com>
11500
11501 * image.c (png_load): Use correct bit-depth for setting background
11502 color.
11503
115042008-05-08 Eli Zaretskii <eliz@gnu.org>
11505
11506 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11507 epa-hook.elc.
11508
115092008-05-08 Juanma Barranquero <lekktu@gmail.com>
11510
11511 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11512
115132008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11514
11515 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11516 because the original parameters are in pure storage now.
11517 (mac_window): Remove unused params. Update callers.
11518
115192008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11520
11521 * lread.c (substitute_object_recurse): Use lower-level primitives.
11522 Don't signal errors when traversing sub-char-tables.
11523 Don't loop over all the possible characters when traversing char-tables.
11524
11525 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11526 just like we do in print.c.
11527
115282008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11529
11530 * minibuf.c (Ftry_completion): Remove code left over from when we used
11531 scmp instead of Fcompare_strings.
11532
115332008-05-04 Juanma Barranquero <lekktu@gmail.com>
11534
11535 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11536
115372008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11538
11539 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11540 Create bitmap context in native byte order.
11541
11542 * macterm.c (XDrawLine)
11543 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11544 context in native byte order.
11545
115462008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11547
11548 * config.in: Regenerate.
11549
11550 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11551 New definitions for Image I/O support.
11552 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11553 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11554 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11555 (mac_data_provider_release_data, image_load_image_io)
11556 [USE_MAC_IMAGE_IO]: New functions.
11557 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11558 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11559 (init_image_func_pointer) [MAC_OSX]: Remove function.
11560 (image_load_quartz2d) [MAC_OSX]: Check availability of
11561 CGImageCreateWithPNGDataProvider at compile time.
11562 Use lowercase `false' for boolean constant.
11563 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11564 Use image_load_image_io.
11565 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11566 Don't check MyCGImageCreateWithPNGDataProvider.
11567 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11568 Don't call init_image_func_pointer.
11569
11570 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11571
11572 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11573 Make variable non-static.
11574 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11575 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11576
11577 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11578 (RED_FROM_ULONG): Mask off higher bits.
11579 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11580
11581 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11582 Include AvailabilityMacros.h.
11583 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11584 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11585
115862008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11587
11588 * chartab.c (Fset_char_table_range): If range is t, really set all
11589 chars to that value.
11590
115912008-05-03 Eli Zaretskii <eliz@gnu.org>
11592
11593 * dired.c (Ffile_attributes): Don't allow the device number become
11594 negative.
11595
115962008-05-02 Daiki Ueno <ueno@unixuser.org>
11597
11598 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11599
116002008-05-02 Juri Linkov <juri@jurta.org>
11601
11602 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11603 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11604 DEFAULT argument as a list of default values in docstrings.
11605
116062008-05-01 Chong Yidong <cyd@stupidchicken.com>
11607
11608 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11609
116102008-05-01 Martin Rudalics <rudalics@gmx.at>
11611
11612 * dispnew.c (change_frame_size_1): Preserve small windows when
11613 shrinking frames by calling set_window_height|width with third
11614 arg 2.
11615
11616 * window.h (struct window): Replace field too_small_ok by field
11617 resize_proportionally.
11618
11619 * window.c (make_window): Initialize resize_proportionally.
11620 (enlarge_window): Temporarily set resize_proportionally to make
11621 sure that shrink_windows does scale the window proportionally.
11622 (shrink_windows): When window has resize_proportionally set try
11623 to shrink it proportionally by stealing from other windows.
11624 (struct saved_window, Fset_window_configuration)
11625 (compare_window_configurations): Handle resize_proportionally.
11626 (WINDOW_TOTAL_SIZE): New macro.
11627 (window_min_size, shrink_windows, size_window): Use it.
11628 (check_min_window_sizes): Remove. Invalid values of
11629 window-min-height|width are handled by window_min_size_2 now.
11630 (size_window, Fsplit_window, enlarge_window)
11631 (adjust_window_trailing_edge, grow_mini_window): Don't call
11632 check_min_window_sizes.
11633 (window_min_size_2, window_min_size_1, window_min_size):
11634 New argument safe_p for retrieving "safe" minimum sizes.
11635 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11636 (adjust_window_trailing_edge, grow_mini_window):
11637 Adjust arguments of window_min_size... functions.
11638 (shrink_windows): Argument min_size removed. New argument
11639 safe_p allows shrinking windows to their safe minimum sizes.
11640 Calculate minimum size and decide whether a window shall be
11641 deleted for each window individually.
11642 (size_window): When nodelete_p equals 2, tell shrink_windows to
11643 delete windows only if their new minimum size is no more safe.
11644 (shrink_window_lowest_first): Call window_min_size_1 to make
11645 sure to preserve modeline of bottom-most window when resizing
11646 the minibuffer.
11647 (Fset_window_configuration, Fcurrent_window_configuration)
11648 (compare_window_configurations): Do not handle
11649 window-min-height|width any more.
11650 (syms_of_window): Clarify window-min-height|width doc-strings.
11651
116522008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11653
11654 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11655 some more. Copy some of the code from Ftry_completions.
11656 Remove special case code that dates back to initial revision when the
11657 slash was only added when necessary and that can't trigger nowadays.
11658
116592008-04-27 Kenichi Handa <handa@m17n.org>
11660
11661 * font.c (font_prop_validate): Signal `error' instead of `font'.
11662
116632008-04-29 Jason Rumney <jasonr@gnu.org>
11664
11665 * w32fns.c (Fw32_battery_status): New defun.
11666 (syms_of_w32fns): Defsubr it.
11667
116682008-04-28 Andreas Schwab <schwab@suse.de>
11669
11670 * dired.c (file_name_completion): Fix another mixing of encoded
11671 and decoded names.
11672
116732008-04-28 Juanma Barranquero <lekktu@gmail.com>
11674
11675 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11676
116772008-04-27 Juanma Barranquero <lekktu@gmail.com>
11678
11679 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11680
116812008-04-27 Andreas Schwab <schwab@suse.de>
11682
11683 * dired.c (file_name_completion): Fix inappropriate mixing of
11684 encoded and decoded names.
11685
11686 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11687
11688 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11689
116902008-04-26 Eli Zaretskii <eliz@gnu.org>
11691
11692 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11693 2008-03-31, it's not needed anymore with `struct stat' definition
11694 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11695 for the same reasons.
11696
116972008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11698
11699 * m/sparc.h: Additional redefinitions for GNU/Linux.
11700
117012008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11702
11703 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11704 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11705 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11706 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11707 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11708 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11709 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11710 Likewise.
11711
11712 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11713 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11714 (mac_ax_number_of_characters): Add externs.
11715 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11716 [USE_MAC_TSM]: Likewise.
11717 (mac_handle_text_input_event) [MAC_OSX]:
11718 Handle kEventTextInputOffsetToPos for no active input area case.
11719 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11720 (mac_handle_document_access_event)
11721 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11722 (install_application_handler) [MAC_OSX]: Register handlers for
11723 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11724 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11725 Register mac_handle_document_access_event.
11726
11727 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11728 Make functions non-static.
11729
117302008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11731
11732 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11733 (read_file_name_completion_ignore_case, insert_default_directory)
11734 (Qdefault_directory): Move to minibuffer.el.
11735 (Fread_file_name): Call the new `read-file-name' instead.
11736
117372008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11738
11739 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11740 Make function non-static.
11741 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11742 Remove function.
11743 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11744 Move to mactoolbox.c.
11745 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11746
11747 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11748 (mac_rect_make): New macro.
11749
11750 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11751 instead of float.
11752 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11753 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11754 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11755 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11756 CGRectMake.
11757 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11758 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11759 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11760 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11761 instead of WindowRef in argument type.
11762 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11763 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11764 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11765 instead of DISPLAY. All uses changed.
11766 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11767 (x_calc_absolute_position): Simplify so as not to use
11768 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11769
11770 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11771 instead of WindowRef in argument type.
11772 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11773 [TARGET_API_MAC_CARBON]: Remove externs.
11774 (create_apple_event, mac_event_parameters_to_lisp)
11775 [TARGET_API_MAC_CARBON]: Add externs.
11776
11777 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11778 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11779 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11780 is clicked.
11781 (x_activate_menubar): Remove extern for saved_menu_event_location.
11782 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11783 Move from mac.c.
11784
117852008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11786
11787 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11788 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11789
117902008-04-23 Jason Rumney <jasonr@gnu.org>
11791
11792 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11793 attributes only for local files.
11794
11795 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11796 default to Qlocal.
11797
117982008-04-22 Juri Linkov <juri@jurta.org>
11799
11800 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11801 read-buffer-to-switch instead of using the letter "B".
11802
118032008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11804
11805 * fileio.c (Qdefault_directory): New variable.
11806 (Fread_file_name): Use it to pass `dir' to the completion functions.
11807
118082008-04-20 Chong Yidong <cyd@stupidchicken.com>
11809
11810 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11811
118122008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11813
11814 * keyboard.c (Vpre_help_message): Remove.
11815 (show_help_echo): Remove default C code.
11816
11817 * dired.c (directory_files_internal, file_name_completion):
11818 Only call ENCODE_FILE if the string is indeed decoded.
11819
118202008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11821
11822 * Makefile.in (TOOLKIT_DEFINES): Remove.
11823 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11824
118252008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11826
11827 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11828 (mactoolbox.o): New target.
11829
11830 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11831 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11832
11833 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11834 Use mac_set_frame_window_background instead of XSetWindowBackground.
11835 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11836 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11837 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11838 instead of SetWindowTitleWithCFString.
11839 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11840 Move function to mactoolbox.c.
11841 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11842 Use mac_set_window_modified instead of SetWindowModified.
11843 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11844 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11845 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11846 FrontNonFloatingWindow. Use mac_activate_window instead of
11847 ActivateWindow. Use mac_active_non_floating_window instead of
11848 ActiveNonFloatingWindow.
11849 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11850 Use mac_show_hourglass and mac_hide_hourglass.
11851 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11852 instead of GetGlobalMouse.
11853 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11854 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11855 Use mac_bring_window_to_front instead of BringToFront.
11856 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11857 mactoolbox.c.
11858 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11859 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11860 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11861 mactoolbox.c.
11862
11863 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11864 (XtPointer): Move typedef from macmenu.c.
11865 (enum button_type): Move enum from macmenu.c.
11866 (widget_value): Move typedef from macmenu.c.
11867 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11868 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11869 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11870 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11871 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11872 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11873 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11874 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11875 (Selection): Move typedef from macselect.c.
11876 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11877 macterm.c.
11878 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11879 (mac_is_window_collapsed, mac_bring_window_to_front)
11880 (mac_send_window_behind, mac_hide_window, mac_show_window)
11881 (mac_collapse_window, mac_front_non_floating_window)
11882 (mac_active_non_floating_window, mac_activate_window)
11883 (mac_move_window_structure, mac_move_window, mac_size_window)
11884 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11885
11886 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11887 (enum mac_menu_kind): Move enum to mactoolbox.c.
11888 (min_menu_id): Move variable to mactoolbox.c.
11889 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11890 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11891 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11892 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11893 [TARGET_API_MAC_CARBON]: Likewise.
11894 (XtPointer): Move typedef to macgui.h.
11895 (enum button_type): Move enum to macgui.h.
11896 (widget_value): Move typedef to macgui.h.
11897 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11898 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11899 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11900 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11901 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11902 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11903 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11904 (popup_activated_flag): Make variable non-static.
11905 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11906 (add_menu_item, fill_menu, dispose_menus):
11907 Move functions to mactoolbox.c.
11908 (restore_show_help_function, menu_target_item_handler)
11909 (install_menu_target_item_handler, mac_handle_dialog_event)
11910 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11911 [TARGET_API_MAC_CARBON]: Likewise.
11912 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11913 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11914 (find_and_call_menu_selection, name_is_separator): Make function
11915 non-static.
11916 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11917 to mactoolbox.c.
11918 (set_frame_menubar): Don't call install_menu_quit_handler.
11919 (menu_item_selection): New variable.
11920 (mac_menu_show): Use create_and_show_popup_menu.
11921 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11922 selection but set variable menu_item_selection. All uses changed.
11923 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11924 Call install_menu_quit_handler. Move to mactoolbox.c.
11925
11926 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11927 (Selection): Move typedef to macgui.h.
11928 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11929 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11930 Make variables non-static.
11931 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11932 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11933 Make functions non-static.
11934 (Vmac_service_selection) [MAC_OSX]: Likewise.
11935 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11936 (mac_valid_selection_target_p, mac_clear_selection)
11937 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11938 (mac_put_selection_value, mac_selection_has_target_p)
11939 (mac_get_selection_value, mac_get_selection_target_list)
11940 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11941 Move functions to mactoolbox.c.
11942 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11943 Likewise.
11944 (copy_scrap_flavor_data, mac_handle_service_event)
11945 (install_service_handler) [MAC_OSX]: Likewise.
11946 (syms_of_macselect) <Vmac_dnd_known_types>:
11947 Use mac_dnd_default_known_types.
11948
11949 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11950 Move to mactoolbox.c.
11951 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11952 (Fx_selection_owner_p): Add EXFUN.
11953 (install_window_handler, remove_window_handler, XSetWindowBackground):
11954 Remove externs.
11955 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11956 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11957 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11958 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11959 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11960 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11961 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11962 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11963 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11964 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11965 (mac_valid_selection_target_p, mac_clear_selection)
11966 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11967 (mac_put_selection_value, mac_selection_has_target_p)
11968 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11969 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11970 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11971 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11972 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11973 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11974 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11975 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11976 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11977
11978 * mactoolbox.c: New file.
11979
119802008-04-18 Jason Rumney <jasonr@gnu.org>
11981
11982 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11983
119842008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11985
11986 * character.c (Fmultibyte_char_to_unibyte):
11987 Return latin1 chars unchanged.
11988
11989 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11990 relocated if it points to `name'.
11991
119922008-04-17 Kenichi Handa <handa@m17n.org>
11993
11994 * data.c (Faset): Allow setting a multibyte character in an
11995 ASCII-only unibyte string.
11996
11997 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11998
119992008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12000
12001 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12002 done in config.h.
12003
120042008-04-16 Juanma Barranquero <lekktu@gmail.com>
12005
12006 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12007 (Fchar_direction): Add usage in the docstring.
12008
120092008-04-15 Chong Yidong <cyd@stupidchicken.com>
12010
12011 * keyboard.c (read_key_sequence): Remove always-true checks.
12012
120132008-04-14 Jason Rumney <jasonr@gnu.org>
12014
12015 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12016 compatibility struct, for better underline positioning.
12017
120182008-04-13 David Hansen <david.hansen@gmx.net>
12019
12020 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12021 string.
12022
120232008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12024
12025 * m/hp800.h (XUINT, XSET): Remove.
12026
120272008-04-12 Juanma Barranquero <lekktu@gmail.com>
12028
12029 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12030 previous change.
12031
120322008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12033
12034 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12035 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12036
120372008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12038
12039 * keymap.h (map_keymap_canonical): Declare.
12040 * xmenu.c (single_keymap_panes): Use it.
12041
120422008-04-11 Glenn Morris <rgm@gnu.org>
12043
12044 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12045 set the target's value to that of the alias.
12046
120472008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12048
12049 * term.c (set_tty_color_mode): Left over typo.
12050
120512008-04-10 Michael Albinus <michael.albinus@gmx.de>
12052
12053 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12054 only after check for file name handler functions. Signal, when
12055 native functionality is not supported.
12056 (syms_of_fileio): Declare it unconditionally.
12057
120582008-04-10 Jason Rumney <jasonr@gnu.org>
12059
12060 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12061 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12062
12063 * w32.c (logon_network_drive): Also logon to remote drives that
12064 are mapped to drive letters.
12065
120662008-04-10 Glenn Morris <rgm@gnu.org>
12067
12068 * xdisp.c (truncate-partial-width-windows): Doc fix.
12069
120702008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12071
12072 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12073 Move functions to minibuffer.el.
12074 (syms_of_fileio): Don't declare them.
12075
120762008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12077
12078 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12079 (syms_of_minibuf): Remove its initialization.
12080
12081 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12082
120832008-04-09 Juanma Barranquero <lekktu@gmail.com>
12084
12085 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12086
120872008-04-09 Jason Rumney <jasonr@gnu.org>
12088
12089 * makefile.w32-in (distclean): Delete makefile too.
12090 (maintainer-clean): New target.
12091
12092 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12093
12094 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12095 for new font backend and composite cases.
12096
120972008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12098
12099 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12100 Most of the code moved to run_timers.
12101 (do_pending_atimers): Call run_timers.
12102 (run_timers): New function.
12103
12104 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12105 run atimers.
12106
12107 * process.c (wait_reading_process_output): The same as above.
12108
121092008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12110
12111 * minibuf.c (last_exact_completion): Remove variable.
12112 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12113 (complete_and_exit_1, complete_and_exit_2)
12114 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12115 (Fdisplay_completion_list, display_completion_list_1)
12116 (Fminibuffer_completion_help, Fself_insert_and_exit)
12117 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12118 minibuffer.el.
12119 (syms_of_minibuf): Remove corresponding initializations.
12120
12121 * keyboard.c (Qdeactivate_mark): New var.
12122 (command_loop_1): Use it to call `deactivate-mark'.
12123 (syms_of_keyboard): Initialize it.
12124
12125 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12126 to another frame.
12127 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12128 Don't call set_tty_color_mode.
12129 (store_frame_param): Reset previous_frame rather than call
12130 set_tty_color_mode.
12131 * term.c (set_tty_color_mode): Rewrite.
12132 * dispextern.h (set_tty_color_mode): New type.
12133 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12134
121352008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12136
12137 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12138 for generic chars, which do not exist any more in emacs-unicode.
12139
121402008-04-08 Michael Albinus <michael.albinus@gmx.de>
12141
12142 * coding.c (detect_coding_emacs_mule)
12143 (Ffind_operation_coding_system): Fix typo.
12144
121452008-04-08 Jason Rumney <jasonr@gnu.org>
12146
12147 * w32uniscribe.c (SNAME): Extract only symbol name.
12148
12149 * w32font.h (struct w32_metric_cache): New struct.
12150 (w32font_info): Use it.
12151 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12152 (CACHE_BLOCKSIZE): New constants.
12153
12154 * w32font.c (Qja, Qko, Qzh): New symbols.
12155 (syms_of_w32font): Initialise them.
12156 (font_matches_spec): Use them to filter by language.
12157 (recompute_cached_metrics): Remove function.
12158 (compute_metrics, clear_cached_metrics): New functions.
12159 (w32font_encode_char): Use them to manage metric cache.
12160 (w32font_text_extents): Cache metrics for all glyphs on demand.
12161 Delay converting glyph indices to WORD until needed.
12162 (w32font_open_internal): Initialize metric cache to empty.
12163 (registry_to_w32_charset): Charset should always be a symbol.
12164 (fill_in_logfont, list_all_matching_fonts): Family should
12165 always be a symbol.
12166
121672008-04-06 Jason Rumney <jasonr@gnu.org>
12168
12169 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12170 Give up if glyph indices not supported. Use uniscribe obtained
12171 ABC widths for individual metrics. Map glyph clusters back to
12172 characters using fClusterStart flag. Return number of glyphs
12173 produced, not chars processed.
12174 (uniscribe_shape): Map char at FROM to current glyph.
12175
121762008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12177
12178 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12179 Use SetMenuItemHierarchicalMenu.
12180
121812008-04-05 Jason Rumney <jasonr@gnu.org>
12182
12183 * image.c (pbm_load): Allow color values up to 65535.
12184 Throw an error if max_color_idx is outside the supported range.
12185 Report an error when image size is invalid.
12186 Read two bytes at a time when raw images have max_color_idx above 255.
12187
121882008-04-05 Eli Zaretskii <eliz@gnu.org>
12189
12190 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12191 cFileName a file name that includes `?' characters, use the 8+3
12192 alias in cAlternateFileName instead.
12193
121942008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12195
12196 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12197 append "CCL: Quitted" when the CCL program is quitted.
12198 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12199
12200 * ccl.h (struct ccl_program): New member quit_silently.
12201
122022008-04-05 Chong Yidong <cyd@stupidchicken.com>
12203
12204 * search.c (compile_pattern_1): Treat non-nil and non-string of
12205 search-spaces-regexp as nil.
12206
12207 * minibuf.c (Fassoc_string): Tweak docstring.
12208
122092008-04-05 Eli Zaretskii <eliz@gnu.org>
12210
12211 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12212 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12213 2008-03-14 to force inode be positive.
12214
12215 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12216 _S_* ones, since we now use our own sys/stat.h.
12217 (stat, fstat): Don't mangle the inode number.
12218 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12219
122202008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12221
12222 * frame.h (struct frame): Give one more bit to `visible' since we use
12223 values larger than 1 to indicate obscured frames on ttys.
12224
12225 * keymap.c (Qkeymap_canonicalize): New var.
12226 (Fmap_keymap_internal): New fun.
12227 (describe_map): Use keymap-canonicalize.
12228
12229 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12230 (Fundo_boundary): Set them.
12231 (syms_of_undo): Initialize them.
12232 (record_point): Use them instead of last_point_position*.
12233 (last_undo_buffer): Change type.
12234
122352008-04-04 Jason Rumney <jasonr@gnu.org>
12236
12237 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12238 (recompute_cached_metrics): Don't set ascent and descent per char.
12239
12240 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12241 (uniscribe_check_otf): Add GC protection before consing.
12242 Rearrange loop for counting features.
12243
122442008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12245
12246 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12247 buffer with byte-size of source buffer.
12248
122492008-04-03 Chong Yidong <cyd@stupidchicken.com>
12250
12251 * callint.c (Fcall_interactively): Handle temporary region even
12252 when shift-select-mode is off.
12253
122542008-04-03 Jason Rumney <jasonr@gnu.org>
12255
12256 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12257
122582008-04-03 Kenichi Handa <handa@m17n.org>
12259
12260 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12261 (CATEGORY_MASK_UTF_16): Likewise.
12262 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12263 binary file.
12264 (detect_coding): Add null-byte detection for a binary file.
12265 (detect_coding_system): Likewise.
12266
122672008-04-03 Jason Rumney <jasonr@gnu.org>
12268
12269 * w32uniscribe.c: New file.
12270
12271 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12272
12273 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12274
12275 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12276 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12277 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12278 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12279 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12280 (Qphonetic): New symbols.
12281 (syms_of_w32font): Initialize them.
12282 (font_supported_scripts): Use them.
12283 (w32font_list_family): List all charsets.
12284 (w32font_text_extents, recompute_cached_metrics): Fix metric
12285 calculations.
12286 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12287 Give opentype fonts their own format.
12288 (font_matches_spec): New arguments backend and logfont.
12289 Handle :otf spec for uniscribe backend.
12290 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12291 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12292
12293 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12294 font backend.
12295 (globals_of_w32fns): Initialize uniscribe font backend.
12296
12297 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12298 dependencies.
12299 (w32uniscribe.$(O)): New file to build.
12300 (FONT_OBJ): Include w32uniscribe.$(O).
12301 (LIBS): Add uniscribe libraries.
12302
12303 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12304
123052008-04-02 Chong Yidong <cyd@stupidchicken.com>
12306
12307 * callint.c (Vshift_select_mode): New var.
12308 (Finteractive): Document new ^ spec.
12309 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12310 is present.
12311
12312 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12313 (command_loop_1): Avoid running the direct display versions of
12314 forward-char and backward-char if shift-selection may occur.
12315 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12316 shift-translation takes place.
12317
12318 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12319 avoid clobbering by define-minor-mode.
12320
12321 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12322 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12323
12324 * syntax.c (Fforward_word): Add ^ interactive spec.
12325
12326 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12327 (Fscroll_right): Add ^ interactive spec.
12328
123292008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12330
12331 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12332
12333 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12334
12335 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12336
123372008-03-31 Juri Linkov <juri@jurta.org>
12338
12339 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12340
123412008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12342
12343 * gtkutil.c (xg_set_geometry): Fix indentation.
12344 (xg_resize_outer_widget): Remove.
12345 (x_wm_size_hint_off): Fix indentation.
12346 (xg_frame_set_char_size): Call flush_and_sync after
12347 gtk_window_resize.
12348 (x_wm_set_size_hint): Pass NULL as geometry window to
12349 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12350 Add menu bar and tool bar height to base height.
12351 (xg_update_frame_menubar, free_frame_menubar)
12352 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12353 (update_frame_tool_bar, free_frame_tool_bar):
12354 Change xg_resize_outer_widget to xg_frame_set_char_size.
12355
123562008-03-30 Michael Albinus <michael.albinus@gmx.de>
12357
12358 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12359 (Fdbus_call_method): New parameter TIMEOUT.
12360 (dbus-send-signal): Optimize UNGCPRO call.
12361
123622008-03-29 Juri Linkov <juri@jurta.org>
12363
12364 * window.c (Fdisplay_buffer): Move call to
12365 Vsplit_window_preferred_function out of conditions that check
12366 if window is eligible for vertical splitting.
12367 When Vsplit_window_preferred_function is non-nil, call it and use
12368 its non-nil return value as window. Otherwise, continue doing
12369 vertical splitting using Fsplit_window with arg horflag=nil.
12370 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12371 default value from `split-window' to nil.
12372
123732008-03-29 Juri Linkov <juri@jurta.org>
12374
12375 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12376 for interactive code letters 'b' and 'B'.
12377
123782008-03-29 Eli Zaretskii <eliz@gnu.org>
12379
12380 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12381 multibyte string.
12382
123832008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12384
12385 * keyboard.c (pending_funcalls): New var.
12386 (timer_check): Run it.
12387 (syms_of_keyboard): Initialize it.
12388 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12389 (Vdelete_terminal_functions): New vars.
12390 (syms_of_terminal): Initialize them.
12391 (Fdelete_terminal): Run delete-terminal-functions.
12392 * xdisp.c (safe_eval): Rewrite.
12393 (safe_call2): New fun.
12394 * frame.c (Qdelete_frame_functions): New var.
12395 (syms_of_frame): Initialize it.
12396 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12397 * lisp.h (safe_call2, pending_funcalls): Declare.
12398
123992008-03-28 Andreas Schwab <schwab@suse.de>
12400
12401 * indent.c (Fmove_to_column): Move declaration before statements.
12402
124032008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12404
12405 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12406 (struct frame): Use bit fields for boolean vars.
12407
12408 * process.c (server_accept_connection): Simplify naming.
12409 (emacs_get_tty_pgrp): Use SDATA.
12410
12411 * coding.c (decode_coding_object): Fix last change.
12412
124132008-03-27 Jason Rumney <jasonr@gnu.org>
12414
12415 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12416
124172008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12418
12419 * charset.c (Fdefine_charset_internal): Change the way of
12420 registering charsets in Vcharset_order_list.
12421 (syms_of_charset): Make the charset `eight-bit' supplementary.
12422
124232008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12424
12425 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12426 operations, to avoid having the difference between pointers
12427 overflow.
12428
124292008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12430
12431 * indent.c (check_display_width): New fun.
12432 (scan_for_column): Use it.
12433
12434 * data.c (syms_of_data): Mark most-positive-fixnum and
12435 most-negative-fixnum as constants.
12436
12437 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12438
12439 * indent.c (scan_for_column): Extract from current_column_1.
12440 Merge with the same code from Fmove_to_column.
12441 (current_column_1, Fmove_to_column): Use it.
12442
124432008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12444
12445 * keymap.c (map_keymap_internal): New fun.
12446 (map_keymap): Use it.
12447 (Fmap_keymap_internal): New fun.
12448 (Fmap_keymap): Remove left-out test from before make_save_value.
12449
12450 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12451
12452 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12453 Use XCAR/XCDR.
12454
12455 * process.h (struct Lisp_Process): Remove filter_multibyte.
12456 * process.c (QCfilter_multibyte): Remove.
12457 (setup_process_coding_systems): Don't use filter_multibyte.
12458 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12459 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12460 (Fset_process_filter_multibyte): Change the coding-system to
12461 approximate the previous behavior.
12462 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12463 coding-system.
12464
12465 * coding.c (decode_coding_object): When not decoding into a buffer,
12466 obey the coding system's preference of (uni|multi)byte.
12467
124682008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12469
12470 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12471 every char is changed and has a different byte-length.
12472 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12473 Fix int -> EMACS_INT.
12474
124752008-03-23 David Hansen <david.hansen@gmx.net>
12476
12477 * dbusbind.c (xd_read_message): Remove extra copying of message
12478 strings. Check for NULL `interface' or `member'.
12479
124802008-03-22 Eli Zaretskii <eliz@gnu.org>
12481
12482 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12483 cFileName a file name that includes `?' characters, use the 8+3
12484 alias in cAlternateFileName instead.
12485
124862008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12487
12488 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12489
124902008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12491
12492 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12493 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12494 work on current_buffer only instead (that was already the case
12495 for some of the code anyway).
12496 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12497 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12498 (SET_PT, SET_PT_BOTH): Adjust.
12499 * intervals.h (set_point, temp_set_point, set_point_both)
12500 (temp_set_point_both): Remove redundant declarations.
12501
125022008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12503
12504 * fileio.c (Finsert_file_contents):
12505 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12506 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12507 when buffer != current_buffer anyway.
12508
125092008-03-20 Andreas Schwab <schwab@suse.de>
12510
12511 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12512 as default.
12513
125142008-03-19 Jason Rumney <jasonr@gnu.org>
12515
12516 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12517 (syms_of_w32fns): Initialize them.
12518 (HOURGLASS_ID): New constant.
12519 (x_window_to_frame): Don't check hourglass_window.
12520 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12521 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12522 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12523 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12524 Only change the cursor if hourglass is not active.
12525 (Fx_create_frame): Initialize frame's current_cursor.
12526 (hourglass_atimer): Remove.
12527 (hourglass_started): New function.
12528 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12529 (show_hourglass): Adapt to w32, changing argument to frame.
12530
12531 * w32term.h (struct w32_output): Remove hourglass_window.
12532 Add current_cursor.
12533
12534 * eval.c (call_debugger, Fsignal):
12535 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12536 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12537 (Fexecute_extended_command, cancel_hourglass_unwind):
12538 * minibuf.c (read_minibuf):
12539 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12540
125412008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12542
12543 * window.c (run_funs): New fun.
12544 (run_window_configuration_change_hook): Use it to run the buffer-local
12545 and the global part of the hook.
12546
12547 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12548 (unwind_format_mode_line): Restore selected window.
12549 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12550
125512008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12552
12553 * editfns.c (Fchar_equal): Check they are valid characters.
12554
12555 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12556
125572008-03-17 Andreas Schwab <schwab@suse.de>
12558
12559 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12560 against a charset.
12561
12562 * lisp.h (Fbuffer_list): Declare.
12563
125642008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12565
aac0c6e3
MR
12566 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12567 handlebox_widget is != 0.
12568
125692008-03-16 Juri Linkov <juri@jurta.org>
12570
12571 * callint.c (Fcall_interactively): For interactive code letters
12572 'b' and 'B' put the buffer list into the list of default "future"
12573 values of the minibuffer.
12574
125752008-03-16 Andreas Schwab <schwab@suse.de>
12576
12577 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12578 modifiers.
12579
12580 * regex.c (re_match_2_internal): Correct matching of a charset
12581 against latin-1 characters.
12582
125832008-03-16 Kenichi Handa <handa@m17n.org>
12584
12585 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12586 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12587 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12588 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12589 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12590 CHAR_STRING_ADVANCE.
12591 (produce_chars): Fix for the case that the source and the
12592 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12593 instead of CHAR_STRING_ADVANCE.
12594 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12595 STRING_CHAR_ADVANCE.
12596
125972008-03-15 Andreas Schwab <schwab@suse.de>
12598
12599 * regex.c (re_match_2_internal): Correct matching of eight bit
12600 characters in unibyte strings.
12601
126022008-03-15 Martin Rudalics <rudalics@gmx.at>
12603
12604 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12605 at end of range when it coincides with the end of the buffer.
12606
126072008-03-14 Eli Zaretskii <eliz@gnu.org>
12608
12609 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12610
12611 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12612
126132008-03-14 Jason Rumney <jasonr@gnu.org>
12614
12615 * editfns.c (initial_tz): New variable.
12616 (syms_of_editfns): Initialize it.
12617 (Fset_time_zone_rule): Set it when first called.
12618 Use it when TZSTRING is nil.
12619
12620 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12621 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12622 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12623 (globals_of_w32fns): Initialize them.
12624 (compute_tip_xy): Use them to position tooltips.
12625
126262008-03-14 Glenn Morris <rgm@gnu.org>
12627
12628 * emacs.c (main): Revert previous change.
12629 (standard_args): Revert -internal-script back to -scriptload,
12630 and remove the long-option form.
12631
126322008-03-13 Glenn Morris <rgm@gnu.org>
12633
12634 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12635 Remove option -enable-font-backend.
12636
126372008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12638
12639 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12640
126412008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12642
12643 * xterm.c (x_connection_closed): For GTK: If this is the last
12644 terminal just exit without closing the display.
12645
126462008-03-11 Jason Rumney <jasonr@gnu.org>
12647
12648 * w32font.c (w32font_full_name): Use floor to round.
12649
f0131492 126502008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12651
12652 * sound.c (alsa_configure): Declare vol at beginning of block.
12653
12654 * fontset.c (Ffontset_info): Remove extra semicolon.
12655
126562008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12657
12658 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12659 size of resulting string.
12660
126612008-03-10 Jason Rumney <jasonr@gnu.org>
12662
12663 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12664
126652008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12666
12667 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12668 Don't pretend as if characters with display property haven't been
12669 consumed for string-replacing-string case.
12670
126712008-03-08 Kim F. Storm <storm@cua.dk>
12672
12673 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12674 (get_next_display_element, next_element_from_string)
12675 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12676
126772008-03-08 Andreas Schwab <schwab@suse.de>
12678
12679 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12680
126812008-03-06 Jason Rumney <jasonr@gnu.org>
12682
12683 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12684 when charset not specified. Only translate ANSI to unicode when
12685 font_type is truetype.
12686 (w32font_coverage_ok): New function.
12687 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12688
126892008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12690
12691 * lread.c (Fread_char): Resolve modifiers.
12692 (Fread_char_exclusive): Likewise.
12693
12694 * character.c (char_resolve_modifier_mask): New function.
12695 (char_string): Use char_resolve_modifier_mask.
12696 (Fchar_resolve_modifiers): New function.
12697 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12698 function.
12699
127002008-03-04 Jason Rumney <jasonr@gnu.org>
12701
12702 * makefile.w32-in: Always include w32font.c in the build.
12703 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12704
127052008-03-04 Andreas Schwab <schwab@suse.de>
12706
12707 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12708 (versionclean): Likewise.
12709
127102008-03-04 Juanma Barranquero <lekktu@gmail.com>
12711
12712 * .cvsignore: Add oo.
12713
127142008-03-03 Andreas Schwab <schwab@suse.de>
12715
12716 * coding.c (decode_coding_object): Inhibit gap shrinking while
12717 decoding in place.
12718
127192008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12720
12721 * w32term.c: Remove unused include "gnu.h".
12722 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12723
12724 * gnu.h: Rename to ...
12725 * emacs-icon.h: ... this.
12726 * xterm.c: Use emacs-icon.h instead of gnu.h.
12727 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12728
127292008-03-03 Juanma Barranquero <lekktu@gmail.com>
12730
12731 * w32font.c: Include math.h.
12732
127332008-03-03 Jason Rumney <jasonr@gnu.org>
12734
12735 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12736 Compute options separately.
12737 (w32font_open_internal): Set glyph_idx before caching metrics.
12738
12739 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12740 Define if system headers don't.
12741 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12742 (w32font_encode_char): Don't declare here.
12743
12744 * w32font.c (Quniscribe, QCformat): New symbols.
12745 (syms_of_w32font): Define them.
12746 (w32font_has_char): Indicate uncertainty.
12747 (w32font_encode_char): Encode as glyph point. Make static.
12748 (recompute_cached_metrics): New function.
12749 (w32font_open_internal): Use it. Set font to use glyph points
12750 initially. Set format based on type of font.
12751 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12752 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12753 on it. Set format based on information available here.
12754 (add_font_entity_to_list): Identify backend based on opentype_only.
12755
127562008-03-02 Andreas Schwab <schwab@suse.de>
12757
12758 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12759
12760 * coding.c (decode_coding_big5, produce_chars):
12761 Fix typos in last change.
12762
127632008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12764
12765 * gnu.h: New icon.
12766
127672008-03-02 Kenichi Handa <handa@m17n.org>
12768
12769 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12770 `dos', don't decode '\r' if that is the last in the source.
12771 (decode_coding_utf_16, decode_coding_emacs_mule)
12772 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12773 (decode_coding_raw_text, decode_coding_charset): Likewise.
12774 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12775
127762008-03-01 Jason Rumney <jasonr@gnu.org>
12777
12778 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12779
127802008-03-01 Kim F. Storm <storm@cua.dk>
12781
12782 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12783
127842008-03-01 Jason Rumney <jasonr@gnu.org>
12785
12786 * w32font.c (w32font_full_name): New function.
12787 (w32font_open_internal): Use it.
12788
127892008-03-01 Kim F. Storm <storm@cua.dk>
12790
12791 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12792
127932008-03-01 Jason Rumney <jasonr@gnu.org>
12794
12795 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12796
127972008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12798
12799 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12800 xg_frame_resized when the event is for the edit widget.
12801
12802 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12803
12804 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12805 set_char_size.
12806 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12807 operations on widgets here. Just set frame size if needed.
12808 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12809 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12810 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12811 the whole frame.
12812 (xg_create_tool_bar): Move attachment of the tool bar to
12813 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12814 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12815
128162008-03-01 Jason Rumney <jasonr@gnu.org>
12817
12818 * w32fns.c (w32_msg_pump): Disable debug code.
12819
128202008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12821
12822 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12823
128242008-02-29 Chong Yidong <cyd@stupidchicken.com>
12825
12826 * xdisp.c (next_overlay_string): Don't set
12827 overlay_strings_at_end_processed_p if we're currently reading from
12828 a display string.
12829
128302008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12831
12832 * xdisp.c (get_overlay_strings_1): Fix typo.
12833
128342008-02-29 Chong Yidong <cyd@stupidchicken.com>
12835
12836 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12837
128382008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12839
12840 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12841
12842 * xdisp.c (display_mode_element): Cancel the previous change.
12843 (decode_mode_spec): Likewise.
12844 (handle_auto_composed_prop): Don't make composition if it->string
12845 is a string.
12846
128472008-02-27 Kim F. Storm <storm@cua.dk>
12848
12849 * lisp.h (GLYPH): Change type from int to struct with separate char
12850 and face_id members.
12851 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12852 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12853 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12854 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12855 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12856 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12857 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12858 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12859 handle new Lisp glyph code encoding, either an integer or a cons.
12860
12861 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12862 (GLYPH_ALIAS): Delete.
12863 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12864 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12865 (GLYPH_FROM_CHAR): Replace macro by ...
12866 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12867
12868 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12869 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12870 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12871 (GLYPH_INVALID_P): New macro.
12872 (spec_glyph_lookup_face): Update prototype.
12873
12874 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12875 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12876 new glyph code encoding.
12877 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12878 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12879
12880 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12881 Adapt to new glyph type and new glyph code encoding.
12882
12883 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12884
12885 * indent.c (current_column, current_column_1, Fmove_to_column)
12886 (compute_motion): Adapt to new glyph code encoding.
12887
12888 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12889
128902008-02-27 Chong Yidong <cyd@stupidchicken.com>
12891
12892 * process.c (wait_reading_process_output): Check for window
12893 changes caused by timers.
12894 Suggested by Johan Bockgård.
12895
128962008-02-27 Glenn Morris <rgm@gnu.org>
12897
12898 * emacs.c (USAGE1): Add `--disable-font-backend'.
12899
129002008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12901
12902 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12903 is made to the buffer.
12904
129052008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12906
12907 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12908 (face_at_string_position):
12909 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12910 (face_at_string_position):
12911 * xdisp.c (display_string, next_overlay_change):
12912 * buffer.h (overlays_at):
12913 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12914 Update callers.
12915
129162008-02-26 Chong Yidong <cyd@stupidchicken.com>
12917
12918 * editfns.c (Fformat): Doc fix.
12919
129202008-02-26 Juanma Barranquero <lekktu@gmail.com>
12921
12922 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12923 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12924 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12925
129262008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12927
12928 * buffer.c (Fbuffer_swap_text): New function.
12929 (syms_of_buffer): Defsubr it.
12930
129312008-02-25 Chong Yidong <cyd@stupidchicken.com>
12932
12933 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12934
129352008-02-25 Jason Rumney <jasonr@gnu.org>
12936
12937 * w32font.c (w32font_draw): Draw one character at a time when padding.
12938
129392008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12940
12941 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12942 Handle a nil arg. Use run_window_configuration_change_hook.
12943 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12944 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12945 Use run_window_configuration_change_hook.
12946
129472008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12948
12949 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12950 1-pixel width.
12951
129522008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12953
12954 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12955 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12956 if the glyph in the font is zero pixel with.
12957
12958 * dispextern.h (struct glyph_string): New member padding_p.
12959
12960 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12961
12962 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12963
12964 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12965
12966 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12967
12968 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12969
129702008-02-25 Jason Rumney <jasonr@gnu.org>
12971
12972 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12973
129742008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12975
12976 Allow fine-grained image-cache flushing.
12977 * dispextern.h (struct image): Add `dependencies' field.
12978 (clear_image_caches): Change arg to Lisp_Object.
12979 * image.c (make_image): Initialize `dependencies' field.
12980 (clear_image_cache): Change arg to allow fine-grained flushing.
12981 Perform the flush even if image-cache-eviction-delay is nil.
12982 (clear_image_caches): Change arg to Lisp_Object.
12983 (Fclear_image_cache): Expand meaning of the argument.
12984 (mark_image): Mark `dependencies' field.
12985 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12986 (lface_hash): Use XHASH rather than XFASTINT.
12987 (face_at_buffer_position): Fix int -> EMACS_INT position.
12988 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12989 (select_frame_for_redisplay): Remove code duplication.
12990 (redisplay_internal): Adapt arg to call to clear_image_caches.
12991
129922008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12993
12994 * s/vms4-0.h:
12995 * s/vms4-2.h:
12996 * s/vms4-4.h:
12997 * s/vms5-5.h: Remove, unused.
12998
12999 * s/irix5-2.h:
13000 * s/irix6-0.h:
13001 * s/riscos5.h:
13002 * s/mach-bsd4-3.h:
13003 * m/mips4.h: Remove files for obsolete systems.
13004
13005 * Makefile.in:
13006 * filelock.c:
13007 * unexmips.c:
13008 * m/hp9000s300.h:
13009 * m/iris4d.h:
13010 * s/aix3-1.h:
13011 * s/hpux.h:
13012 * s/msdos.h:
13013 * s/usg5-0.h:
13014 * s/usg5-2-2.h:
13015 * s/usg5-2.h:
13016 * s/usg5-3.h: Remove references to obsolete variables.
13017
13018 * s/irix5-0.h: Remove, move all the contents ...
13019 * s/irix6-5.h: ... here. Simplify.
13020 * config.in: Regenerate.
13021
130222008-02-24 Jason Rumney <jasonr@gnu.org>
13023
13024 * w32term.c (x_draw_glyph_string_background): Clear the background
13025 manually when cleartype is in use.
13026 (x_draw_glyph_string_foreground): Draw text transparently when
13027 cleartype is in use.
13028
13029 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13030 a font into it unless we have to.
13031
130322008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13033
13034 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13035 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13036
aac0c6e3
MR
130372008-02-18 Jason Rumney <jasonr@gnu.org>
13038
13039 * w32fns.c (Fw32_shell_execute): Encode parameters.
13040
130412008-02-09 Eli Zaretskii <eliz@gnu.org>
13042
13043 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13044
130452008-02-05 Juanma Barranquero <lekktu@gmail.com>
13046
13047 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13048
130492008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13050
13051 * xterm.c (x_set_offset): Don't change the gravity if
13052 CHANGE_GRAVITY is -1.
13053
130542008-02-23 Chong Yidong <cyd@stupidchicken.com>
13055
13056 * fileio.c (auto_save_error_occurred): New var.
13057 (auto_save_error): Set it.
13058 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13059 error occurred.
13060
130612008-02-23 Eli Zaretskii <eliz@gnu.org>
13062
13063 * w32.c (globals_of_w32): Add initializations for
13064 g_b_init_get_sid_sub_authority and
13065 g_b_init_get_sid_sub_authority_count.
13066
130672008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13068
13069 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13070 (font_parse_xlfd): Use them for sanity check.
13071 (Finternal_set_font_style_table): Make sure the table is bijective.
13072
13073 Consolidate the image_cache to the terminal struct.
13074 * termhooks.h (P_): Remove redundant def.
13075 (struct terminal): New field `image_cache'.
13076 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13077 of FRAME_X_IMAGE_CACHE.
13078 * xterm.h (struct x_display_info): Remove image_cache field.
13079 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13080 * w32term.h (struct w32_display_info): Remove image_cache field.
13081 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13082 * macterm.h (struct mac_display_info): Remove image_cache field.
13083 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13084 * xterm.c (x_term_init):
13085 * w32term.c (w32_term_init):
13086 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13087 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13088 Remove declarations.
13089 (clear_image_caches, mark_image_cache): New declarations.
13090 * xfaces.c (clear_face_cache):
13091 * xdisp.c (redisplay_internal): Use clear_image_caches.
13092 * image.c (clear_image_cache): Don't check that a frame is on
13093 a window-system before checking if it shares the same cache.
13094 (clear_image_caches): New function.
13095 (Fclear_image_cache): Use it.
13096 (mark_image): Move from allo.c.
13097 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13098 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13099 (mark_object): Don't call mark_image_cache for frames.
13100 (mark_terminals): Call mark_image_cache.
13101
13102 * lisp.h (Fdelete_terminal): Declare.
13103
13104 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13105 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13106 wrong_type_argument.
13107
131082008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13109
13110 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13111 malayalam.el, and tamil.el. Add sinhala.el.
13112
131132008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13114
13115 * xterm.c (x_connection_closed): Consolidate identical tests.
13116 (x_delete_terminal): Don't crash if called via x_connection_closed.
13117
131182008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13119
13120 * xdisp.c (decode_mode_spec): New arg string.
13121 (display_mode_element): Adjust for the above change.
13122
131232008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13124
13125 * callint.c (Fcall_interactively): Use AREF.
13126
131272008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13128
13129 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13130
131312008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13132
13133 * xfns.c (Fx_show_tip): Set string to " " if empty.
13134
131352008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13136
13137 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13138 with Qt.
13139
131402008-02-17 Kenichi Handa <handa@m17n.org>
13141
13142 * ftfont.c (ftfont_shape): Return Lispy number.
13143
13144 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13145 for GCs.
13146 (Finternal_set_font_selection_order): Call font_update_sort_order
13147 only when enable_font_backend is set.
13148 (realize_x_face): Set face->font_info to that of default face only
13149 when enable_font_backend is set.
13150
13151 * xdisp.c (handle_composition_prop): Set it->c to the fist
13152 character of the composed region.
13153 (fill_composite_glyph_string): Set base_face->font_info to
13154 s->font_info. Get a face for ascii from base_face->ascii_face.
13155 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13156 with a face already decided.
13157 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13158 non-negative.
13159 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13160 call font_prepare_composition unconditionally.
13161
13162 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13163
13164 * xterm.h (struct x_display_info): New member font.
13165
13166 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13167 (x_set_mouse_face_gc, x_new_font): Likewise.
13168 (x_term_init): Setup display_info->font.
13169 (x_delete_terminal): Free display_info->font.
13170
13171 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13172
13173 * ftxfont.c (ftxfont_default_fid): Delete it.
13174 (ftxfont_open): Set xfont->fid to 0.
13175 (ftxfont_end_for_frame): Clear data specific to the frame and the
13176 font-driver.
13177
13178 * xftfont.c (xftfont_default_fid): Delete it.
13179 (xftfont_open): Set xfont->fid to 0.
13180
13181 * fontset.c (FONTSET_OBJLIST): New macro.
13182 (fontset_find_font): Update font-object list of the fontset.
13183 (free_realized_fontset): New function.
13184 (free_face_fontset): Call free_realized_fontset.
13185 (Ffont_info): Call font_close_object only when enable_font_backend
13186 is set.
13187
13188 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13189 [HAVE_NTGUI]: Include w32term.h.
13190 [MAC_OS]: Include macterm.ch.
13191 (font_otf_ValueRecord): Use make_number.
13192 (font_finish_cache): Fix handling of reference count.
13193 (font_clear_cache): Update num_fonts.
13194 (font_open_entity): Update smallest_char_width and
13195 smallest_font_height of the frame.
13196 (font_close_object): Update num_fonts.
13197 (Fclear_font_cache): Fix finding the target cache data.
13198
131992008-02-16 Glenn Morris <rgm@gnu.org>
13200
13201 * fontset.c (Finternal_char_font): Fix compilation warning.
13202
132032008-02-16 Eli Zaretskii <eliz@gnu.org>
13204
13205 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13206 instead of char arrays. Enlarge the size of array passed to
13207 get_token_information.
13208
13209 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13210 warnings.
13211
132122008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13213
13214 * .gdbinit: Don't set `args', it breaks gdb --args.
13215
132162008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13217
13218 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13219 within a narrowed buffer.
13220
132212008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13222
13223 * coding.c (decode_coding_object, encode_coding_object):
13224 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13225
132262008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13227
13228 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13229 hardcoding 1.
13230 (detect_coding_system):
13231 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13232 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13233 * insdel.c (insert_from_gap):
13234 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13235 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13236 (string_to_multibyte):
13237 * character.c (chars_in_text, multibyte_chars_in_text):
13238 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13239
13240 * character.h (FETCH_STRING_CHAR_ADVANCE)
13241 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13242 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13243 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13244
13245 * casefiddle.c (casify_region): Only call after-change and composition
13246 functions on the part of the region that was changed.
13247
13248 * keyboard.c (read_avail_input):
13249 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13250
132512008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13252
13253 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13254 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13255
132562008-02-11 Juanma Barranquero <lekktu@gmail.com>
13257
13258 * w32menu.c (push_submenu_start, push_submenu_end)
13259 (push_left_right_boundary, push_menu_pane, push_menu_item):
13260 * keyboard.c (read_key_sequence): Don't pass args with side effects
13261 to AREF, it fails when compiling with -DENABLE_CHECKING.
13262
132632008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13264
13265 * Makefile.in (${lispsource}international/charprop.el):
13266 Delete this target.
13267
13268 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13269 emacs-unicode-2.
13270
132712008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13272
13273 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13274
132752008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13276
13277 * frame.c (Qnoelisp): New symbol.
13278 (syms_of_frame): Initialize it.
13279 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13280 harmless Elisp code, from a strong `force' from x_connection_closed.
13281 * frame.h (Qnoelisp): Declare.
13282 * xterm.c (x_connection_closed): Pass `noelisp'.
13283
13284 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13285 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13286 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13287 rather than `int' for the type of `type'.
13288
132892008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13290
13291 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13292
13293 * Makefile.in (GNUC): Remove support for gcc-1.x.
13294
132952008-02-10 Richard Stallman <rms@gnu.org>
13296
13297 * lisp.h (ASET): Use AREF, not ASLOT.
13298
132992008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13300
13301 * lisp.h (ASET): Check bounds.
13302
133032008-02-10 Glenn Morris <rgm@gnu.org>
13304
13305 * buffer.c (mode-name): Doc fix.
13306
133072008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13308
13309 * Makefile.in:
13310 * emacs.c:
13311 * gmalloc.c:
13312 * keyboard.c:
13313 * lisp.h:
13314 * m/ibm370aix.h:
13315 * process.c:
13316 * regex.c:
13317 * s/hpux.h:
13318 * sysdep.c:
13319 * sysselect.h:
13320 * systty.h:
13321 * unexec.c:
13322 * w32term.c:
13323 * xsmfns.c:
13324 * xterm.c: Remove code that deals with obsolete variables.
13325
13326 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13327
13328 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13329 nothing else needs it anymore.
13330
133312008-02-09 Eli Zaretskii <eliz@gnu.org>
13332
13333 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13334 instead of unibyte_char_to_multibyte.
13335
133362008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13337
13338 * s/gnu-linux.h: Remove commented out code.
13339
13340 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13341
13342 * Makefile.in: Update what RMS says about using autoconf.
13343 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13344 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13345 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13346 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13347
133482008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13349
13350 * keymap.c (Fkey_description): Move side effect outside of macro call.
13351
13352 * xfaces.c (Finternal_make_lisp_face):
13353 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13354
13355 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13356 (syms_of_fontset): Use ASET.
13357
13358 * fns.c (concat): Move side effect outside of macro call.
13359 (hash_clear): Use ASET.
13360
133612008-02-08 Richard Stallman <rms@gnu.org>
13362
13363 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13364 If FORCE, and frame has a surrogate minibuffer for another frame,
13365 delete the other frame first.
13366
133672008-02-07 Timo Savola <timo.savola@iki.fi>
13368
13369 * xterm.c (x_detect_focus_change): Handle embed client message.
13370 (handle_one_xevent): Ditto.
13371 (handle_one_xevent): If embedded and we get a button press/release,
13372 request focus.
13373 (xembed_set_info, xembed_send_message): New functions.
13374 (x_make_frame_visible): Call xembed_set_info if embedded.
13375 (x_make_frame_invisible): Call xembed_set_info if embedded.
13376 (x_term_init): Initialize Xatom_XEMBED.
13377 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13378 (x_iconify_frame): Ditto.
13379
13380 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13381 (enum xembed_info, enum xembed_message, enum xembed_focus)
13382 (enum xembed_modifier, enum xembed_accelerator): New.
13383 (xembed_set_info, xembed_send_message): Declare.
13384 (FRAME_X_EMBEDDED_P): New.
13385
13386 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13387 gtk_plug_new.
13388
13389 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13390 window ID of a frame.
13391 (x_window): Reparent frame if embedded.
13392 (Fx_create_frame): Don't set border width if embedded.
13393
13394 * emacs.c (USAGE3): Add --parent-id.
13395 (standard_args): Ditto.
13396
133972008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13398
13399 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13400
134012008-02-07 Jim Meyering <meyering@redhat.com>
13402
13403 Use "do...while (0)", not "if (1)...else" in macro definitions.
13404 The latter provokes a warning from gcc about the empty else, when
13405 followed by ";". Also, without that trailing semicolon, it would
13406 silently swallow up any following statement.
13407 * syntax.h (SETUP_SYNTAX_TABLE)
13408 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13409 * buffer.h (DECODE_POSITION): Likewise.
13410 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13411 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13412 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13413 (FETCH_CHAR_ADVANCE): Likewise.
13414 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13415
134162008-02-07 Jim Meyering <meyering@redhat.com>
13417
13418 * lread.c [lint]: Don't include <sys/inode.h>.
13419
134202008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13421
13422 * xselect.c (x_handle_dnd_message):
13423 * xmenu.c (digest_single_submenu, xmenu_show):
13424 * xdisp.c (with_echo_area_buffer_unwind_data)
13425 (format_mode_line_unwind_data, unwind_format_mode_line)
13426 (display_menu_bar):
13427 * eval.c (Ffetch_bytecode):
13428 * doc.c (store_function_docstring):
13429 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13430 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13431 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13432
134332008-02-07 Kenichi Handa <handa@m17n.org>
13434
13435 * ftxfont.c (ftxfont_open): Don't set
13436 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13437
13438 * ftfont.c (ftfont_open): Fix previous change.
13439
134402008-02-06 Jason Rumney <jasonr@gnu.org>
13441
13442 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13443 Use cached metrics for ASCII characters.
13444 (w32font_open_internal): Don't set font's owning_frame.
13445 Cache metrics for ASCII characters.
13446
13447 * w32font.h (struct w32font_info): Add ascii_metrics.
13448 Remove owning_frame.
13449
134502008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13451
13452 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13453 to negative value.
13454
13455 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13456
13457 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13458
13459 * charset.c (syms_of_charset): Set QCtest and Qeq.
13460
134612008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13462
13463 * process.c (Fstart_process):
13464 * callproc.c (Fcall_process): Handle the case where
13465 Funhandled_file_name_directory returns nil.
13466
13467 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13468 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13469 * font.c (check_gstring): Use them and AREF to access the vector before
13470 we know it's really a gstring.
13471 (Ffont_shape_text): Fix typo.
46e722a9 13472 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13473
13474 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13475 Declare.
13476
13477 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13478
134792008-02-05 Jason Rumney <jasonr@gnu.org>
13480
13481 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13482 Set smallest_font_height and smallest_char_width in display info.
13483
134842008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13485
13486 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13487
134882008-02-05 Miles Bader <miles@gnu.org>
13489
13490 * xfaces.c (get_lface_attributes, merge_named_face)
13491 (lookup_named_face, lookup_derived_face, realize_named_face):
13492 Revert 2008-02-01 change by cyd@stupidchicken.com.
13493
134942008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13495
13496 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13497 fallback fonts.
13498 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13499
135002008-02-04 Jason Rumney <jasonr@gnu.org>
13501
13502 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13503 set full_name.
13504 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13505
135062008-02-03 Jason Rumney <jasonr@gnu.org>
13507
13508 * makefile.w32-in (OBJ1): Include font.o here.
13509 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13510
135112008-02-02 Jason Rumney <jasonr@gnu.org>
13512
13513 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13514
135152008-02-01 Jason Rumney <jasonr@gnu.org>
13516
13517 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13518
13519 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13520
135212008-02-01 Andreas Schwab <schwab@suse.de>
13522
13523 * Makefile.in (shortlisp, lisp): Update for rename of
13524 ../lisp/language/myanmar.el.
13525
135262008-02-01 Chong Yidong <cyd@stupidchicken.com>
13527
13528 * xfaces.c (get_lface_attributes): Delete function.
13529 (merge_named_face, lookup_named_face, lookup_derived_face)
13530 (realize_named_face): Call lface_from_face_name directly, and use
13531 the fact that merge_face_vectors does not alter its FROM argument.
13532
135332008-02-01 Jason Rumney <jasonr@gnu.org>
13534
13535 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13536 input in the default locale. Handle non-Unicode multibyte input.
13537
135382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13539
13540 * fontset.c (reorder_font_vector): Exclude nil elements from the
13541 font group. Don't try multiple fonts.
13542 (fontset_font): Adjust for the above change.
13543 (Finternal_char_font): Return nil if the found font doesn't
13544 contain the character ch.
13545
13546 * Makefile.in (lisp, shortlisp): Add cham.el.
13547
135482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13549
13550 * font.h (FONTP): Make it return 1 also for a font-object.
13551
13552 * .gdbinit (xfontset): New function.
13553
13554 * font.c (font_find_for_lface): Check if the character C is
13555 supported or not only for the first font.
13556
13557 * fontset.c (reorder_font_vector): Fix typo.
13558 (fontset_find_font): Don't add a font-spec specifying a script.
13559 Use 0 (not Qt) for the indication of empty font-group. Change the
13560 format of RFONT-DEF. Return Qt if no font in the font-group
13561 support the character.
13562 (fontset_font): Adjust for the above change. If no font was
13563 found the character, remember that.
13564 (face_for_char): Adjust for the change of RFONT-DEF.
13565 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13566 no font for the target.
13567 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13568
135692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13570
13571 * font.c (font_load_for_face): Handle the case that the font in
13572 face->lface is a string.
13573
135742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13575
13576 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13577
135782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13579
13580 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13581 Fix previous change. If the frame is not on a window system,
13582 signal an error.
13583
135842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13585
13586 * coding.c (decode_coding_object, encode_coding_object): Adjust
13587 marker positions after conversion.
13588
13589 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13590
135912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13592
13593 * font.c (font_find_for_lface): Fix the handling of the return
13594 value of font_has_char.
13595 (Ffont_shape_text): Fix previous change.
13596
13597 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13598 (fontset_ref_and_range): Delete it.
13599 (fontset_find_font): Call char_table_ref_and_range instead of
13600 FONTSET_REF_AND_RANGE.
13601 (make_fontset): Don't setup font groups of Latin here.
13602 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13603 (new_fontset_from_font): Make the specified font the default for
13604 all Latin characters.
13605
136062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13607
13608 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13609 is on a window system before accessing the fontset of the frame.
13610
136112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13612
13613 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13614
13615 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13616 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13617
13618 * font.c (Ffont_shape_text): If the font driver doesn't have a
13619 shaper function, make zero-width glyphs to have at least one-pixel
13620 width. Fix setting of `to' field of glyphs.
13621
136222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13623
13624 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13625 glyphs.
13626
13627 * font.h (struct font_driver): Improve docstring of member `shape'.
13628
136292008-02-01 Kenichi Handa <handa@m17n.org>
13630
13631 * composite.c (syms_of_composite): Fix docstring of
13632 auto-composition-function.
13633
13634 * font.h (LGLYPH_SIZE): New macro.
13635
13636 * font.c (Ffont_fill_gstring): Stop filling when a character not
13637 supported by the font is found.
13638 (Ffont_shape_text): When a shape callback function returns nil,
13639 try at most two more times with larger gstring.
13640 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13641
13642 * xdisp.c (handle_auto_composed_prop): Change the argument to
13643 auto-composition-function.
13644
13645 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13646 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13647 Lispy glyph and store it in the lgstring.
13648
13649 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13650
13651 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13652
136532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13654
13655 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13656
13657 * fontset.c (Vfont_encoding_charset_alist): New variable.
13658 (syms_of_fontset): DEFVAR it.
13659 (reorder_font_vector, fontset_find_font): Optimize for the case of
13660 no need of reordering.
13661 (face_for_char): Map the charset property by
13662 Vfont_encoding_charset_alist.
13663
136642008-02-01 Jason Rumney <jasonr@gnu.org>
13665
13666 * w32font.c (logfonts_match): Don't check adstyle here.
13667 (font_matches_spec): Check here against physical font instead.
13668 (add_font_entity_to_list): Avoid some substitutions.
13669
13670 * font.c (font_parse_fcname): Default weight and slant to normal.
13671 (font_score): Prefer normal fonts if weight or slant unspecified.
13672 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13673 match freetype scores.
13674
136752008-02-01 Jason Rumney <jasonr@gnu.org>
13676
13677 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13678 font, as it may have been deleted.
13679 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13680 most common hyphenless variation.
13681 (logfonts_match): Check generic family.
13682 (font_matches_spec): Don't check generic family here.
13683 (fill_in_logfont): Set generic family based on adstyle.
13684
13685 * w32font.h (w32font_get_cache): Update declaration.
13686
136872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13688
13689 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13690
13691 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13692 If none of the new drivers are available, call font_update_drivers
13693 with the old drivers.
13694
13695 * w32font.c (w32font_get_cache): Adjust the argument type.
13696
13697 * xfont.c (xfont_get_cache): Adjust the argument type.
13698
13699 * font.h (struct font_driver): Change argument type of get_cache.
13700
13701 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13702
13703 * font.c (Ffont_get): Fix arguments to Fassoc.
13704 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13705 (font_clear_cache): New function.
13706 (font_list_entities, font_matching_entity): Use font_get_cache.
13707 (font_update_drivers): Call font_clear_cache when finishing a driver.
13708
13709 * fontset.c (fontset_find_font): Fix previous change.
13710
137112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13712
13713 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13714 dpyinfo->font_table.
13715 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13716 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13717
13718 * font.c (font_at): Handle the case that the arg C is negative.
13719 Handle the unibyte case.
13720 (Ffont_at): Call font_at with the arg C -1.
13721
13722 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13723 the position here, and call font_at with the arg C -1.
13724 Don't check the range of the existing composition at the point.
13725
137262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13727
13728 * fontset.c (fontset_add): New args charset_id and family.
13729 Change caller.
13730 (load_font_get_repertory, fontset_find_font): Assume that
13731 font_spec is always a font-spec object.
13732 (Fset_fontset_font): Always store a font-spec object in a fontset.
13733
13734 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13735 instead of get_property_and_range.
13736
137372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13738
13739 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13740 (xftfont_open): Don't keep locking face.
13741 (xftfont_close): Don't unlock face.
13742 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13743
13744 * fontset.c (fontset_find_font): Don't prefer a font of
13745 supplementary charset.
13746
137472008-02-01 Kenichi Handa <handa@m17n.org>
13748
13749 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13750 script, langsys_tag to langsys, new member script.
13751 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13752 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13753 listing to the script specified in that property. Fix arg to
13754 OTF_check_features.
13755
137562008-02-01 Jason Rumney <jasonr@gnu.org>
13757
13758 * w32font.h: New file.
13759
13760 * w32font.c: Include it.
13761 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13762 (w32font_open): Set owning_frame.
13763 (w32font_text_extents): Use owning_frame.
13764 (struct font_callback_data): Add opentype_only field.
13765 (add_font_entity_to_list): Use it to filter fonts.
13766 Don't check against full name.
13767 (w32font_list_internal): New function.
13768 (w32font_list): Use it.
13769 (w32font_match_internal): New function.
13770 (w32font_match): Use it.
13771 (w32font_open_internal): New function.
13772 (w32font_open): Use it.
13773 (w32font_get_cache, w32font_close, w32font_has_char)
13774 (w32font_encode_char, w32font_text_extents, w32font_draw):
13775 Make non-static.
13776
13777 * makefile.w32-in (w32font.o): Depend on w32font.h.
13778
137792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13780
13781 * charset.c (Fdefine_charset_internal): Record a supplementary
13782 charset at the tail of Vcharset_order_list.
13783
13784 * font.c (Ffont_shape_text): Fix the return value.
13785
13786 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13787
13788 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13789
137902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13791
13792 * ftfont.c (struct OpenTypeSpec): New struct.
13793 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13794 (ftfont_get_open_type_spec): New function.
13795 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13796
13797 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13798
137992008-02-01 Jason Rumney <jasonr@gnu.org>
13800
13801 * w32font.c (add_font_entity_to_list): Compare only the beginning
13802 of full name.
13803
138042008-02-01 Kenichi Handa <handa@m17n.org>
13805
13806 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13807 Never return HANDLED_RECOMPUTE_PROPS.
13808
138092008-02-01 Kenichi Handa <handa@m17n.org>
13810
13811 * font.c (font_gstring_produce): Delete it.
13812
13813 * composite.h (COMPOSITION_METHOD):
13814 Handle COMPOSITION_WITH_GLYPH_STRING.
13815
138162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13817
13818 * xfont.c (Qx): Delete.
13819 (syms_of_xfont): Don't initialize Qx.
13820
13821 * composite.h (enum composition_method):
13822 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13823
138242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13825
13826 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13827 (choose_face_font): Accept new form of font-spec.
13828
13829 * frame.h (font_driver_list): Declare it unconditionally.
13830 (struct frame): Define members font_driver_list and font_data_list
13831 unconditionally.
13832
13833 * fontset.c: Include "font.h" unconditionally.
13834 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13835 (Fset_fontset_font): Accept a font-spec object.
13836
13837 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13838 PIXEL_SIZE part a wild card.
13839
13840 * dispextern.h (struct glyph_string): Define members clip and
13841 num_clips unconditionally.
13842 (struct face): Define members font_info and extra unconditionally.
13843
13844 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13845 ftfont_info only when HAVE_LIBOTF is defined.
13846
138472008-02-01 Andreas Schwab <schwab@suse.de>
13848
13849 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13850 and end.
13851
138522008-02-01 Jason Rumney <jasonr@gnu.org>
13853
13854 * w32font.c (w32font_driver): Add new fields.
13855
138562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13857
13858 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13859 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13860 (LIBES): Add @M17N_FLT_CFLAGS@.
13861
13862 * composite.c (compose_text): Don't treat the new style
13863 composition specially.
13864
13865 * emacs.c (main): Call syms_of_font unconditionally.
13866
13867 * font.h (FONT_ENTITY_NOT_LOADABLE)
13868 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13869 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13870 (struct font_driver): New member shape.
13871 (font_registry_charsets): Extern it.
13872 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13873 (font_otf_capability, font_drive_otf): Delete their externs.
13874
13875 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13876 (font_charset_alist, font_registry_charsets): Move from xfont.c
13877 and rename.
13878 (font_prop_validate_otf): New function.
13879 (font_property_table): Register it for QCotf.
13880 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13881 (font_drive_otf): Delete.
13882 (font_prepare_composition): New arg F. Adjust for the change of
13883 lispy gstring.
13884 (font_find_for_lface): New arg C.
13885 (font_load_for_face): Adjust for the change of font_find_for_lface.
13886 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13887 lispy gstring.
13888 (Ffont_shape_text): New function.
13889 (Fopen_font): If the font size is not given, use 12-pixel.
13890 (Ffont_at): New arg STRING.
c0943d3d 13891 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
13892 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13893 conditionally.
13894
13895 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13896 fonts of the same font-spec. Change the format of RFONT-DEF.
13897 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13898 Adjust for the change of RFONT-DEF.
13899 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13900
13901 * ftfont.h: New file.
13902
13903 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13904 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13905 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13906 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13907 font_otf_capability and font_drive_otf, set ftfont_shape.
13908 (ftfont_list): Adjust for the change of :otf property value.
13909 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13910 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13911 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13912 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13913 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13914 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13915
13916 * w32term.c (x_draw_composite_glyph_string_foreground):
13917 Adjust for the change of lispy gstring.
13918
13919 * xdisp.c (handle_composition_prop): Adjust for the change of
13920 lispy gstring. Call a function for auto-composition with the
13921 third arg it->window.
13922 (fill_composite_glyph_string): Adjust for the change of lispy string.
13923 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13924
13925 * xfaces.c (set_font_frame_param): Adjust for the change of
13926 font_find_for_lface.
13927
13928 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13929 (xfont_registry_charsets): Likewise. Change caller.
13930 (syms_of_xfont): Don't handle x_font_charset_alist.
13931
13932 * xftfont.c: Include "ftfont.h".
13933 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13934 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13935 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13936 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13937 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13938 Set xftfont_driver.shape to xftfont_shape.
13939
13940 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13941 the change of lispy gstring.
13942
139432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13944
13945 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13946
139472008-02-01 Jason Rumney <jasonr@gnu.org>
13948
13949 * w32font.c (w32font_draw): Fill background manually.
13950
139512008-02-01 Jason Rumney <jasonr@gnu.org>
13952
13953 * font.c (Qfontp): Remove unused symbol.
13954 (QCantialias): New symbol.
13955 (syms_of_font): Define it.
13956 (font_property_table): Set a validator for QCantialias.
13957
13958 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13959 Define if not already.
13960 (QCfamily): Share with xfaces.c.
13961 (Qstandard, Qsubpixel, Qnatural): New symbols.
13962 (syms_of_w32font): Define them. Don't define QCfamily here.
13963 (w32_antialias_type, lispy_antialias_type): New functions.
13964 (w32_enumfont_pattern_entity): New arg requested_font.
13965 Set antialias parameter if non-default was requested.
13966 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13967
139682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13969
13970 * lread.c (read1): Undo the previous change.
13971
139722008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13973
13974 * frame.c (Fdelete_frame): Call font_update_drivers only when
13975 USE_FONT_BACKEND is defined.
13976
139772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13978
13979 * font.h (struct font_bitmap): New member bits_per_pixel.
13980 (struct font_driver): New members start_for_frame and end_for_frame.
13981 (struct font_data_list): New struct.
13982 (font_put_frame_data, font_get_frame_data): Extern them.
13983
13984 * frame.h (struct frame): New member font_data_list.
13985
13986 * font.c (font_update_drivers): Call driver->start_for_frame and
13987 driver->end_for_frame at proper timings.
13988 (font_put_frame_data, font_get_frame_data): New functions.
13989 (Ffont_spec): Add usage in the docstring.
13990
13991 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13992 (Fdelete_frame): Call font_update_drivers.
13993
13994 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13995 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13996 (xftfont_get_xft_draw): New function.
13997 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13998 (xftfont_end_for_frame): New function.
13999 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14000
14001 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14002 Change argument. Cache GCs in the per-frame data.
14003 (struct ftxfont_frame_data): New struct.
14004 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14005 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14006 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14007 (ftxfont_end_for_frame): New function.
14008 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14009
14010 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14011
140122008-02-01 Kenichi Handa <handa@m17n.org>
14013
14014 * xselect.c (Vselection_coding_system)
14015 (Vnext_selection_coding_system): Delete them.
14016 (syms_of_xselect): Don't declare selection-coding-system and
14017 next-selection-coding-system. They are declared in select.el.
14018
140192008-02-01 Jason Rumney <jasonr@gnu.org>
14020
14021 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14022
14023 * w32fns.c: Include imm.h.
14024 (get_composition_string_fn, get_ime_context_fn): New optional
14025 system functions.
14026 (globals_of_w32fns): Load them from imm32.dll.
14027 (ignore_ime_char): New flag.
14028 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14029 WM_IME_ENDCOMPOSITION messages.
14030
14031 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14032 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14033
140342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14035
14036 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14037 (READCHAR_REPORT_MULTIBYTE): New macro.
14038 (readchar): New 2nd arg MULTIBYTE.
14039 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14040 Make symbol's name multibyte according to the multibyteness of the
14041 source.
14042
140432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14044
14045 * xfaces.c (face_for_overlay_string): Call lookup_face with
14046 correct arguments (fix of synching with the trunk).
14047
140482008-02-01 Kenichi Handa <handa@m17n.org>
14049
14050 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14051 (font_prop_validate_non_neg, font_prop_validate_spacing):
14052 Delete argument prop_index.
14053 (font_property_table): Change arguments to validater. Change Callers.
14054 (font_lispy_object): Delete.
14055 (font_at): Use font_find_object instead fo font_lispy_object.
14056
140572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14058
14059 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14060 and file names.
14061
140622008-02-01 Jason Rumney <jasonr@gnu.org>
14063
14064 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14065 (font_matches_spec): Remove debug output.
14066 (add_font_entity_to_list): Avoid using substituted fonts.
14067
140682008-02-01 Jason Rumney <jasonr@gnu.org>
14069
14070 * doc.c (Fsnarf_documentation):
14071 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14072
140732008-02-01 Miles Bader <miles@gnu.org>
14074
14075 * dispextern.h (struct glyph_row): Only define "clip" field if
14076 HAVE_WINDOW_SYSTEM is defined.
14077
140782008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14079
14080 Fix up multi-tty merge.
14081
14082 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14083 and indentation.
14084
14085 * xfaces.c (free_realized_face, clear_face_gcs):
14086 Include font_done_for_face in the input_blocked section, just in case.
14087
14088 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14089 (get_char_face_and_encoding): Undo last change and remove the *other*
14090 duplicate definition (i.e. keep the one that's better scoped and that
14091 includes code for the font-backend).
14092
14093 * terminal.c (create_terminal): Default keyboard_coding to
14094 `no-conversion' and terminal_coding to `undecided'.
14095
14096 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14097
14098 * fontset.c (free_realized_fontsets): Check that the table entry does
14099 contain a fontset before trying to compare it to `base'.
14100
14101 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14102 syms_of_charset, and syms_of_coding earlier because init_window_once
14103 now needs Vcoding_system_hash_table to be setup.
14104
14105 * coding.h (default_buffer_file_coding): Remove.
14106
14107 * coding.c (default_buffer_file_coding): Remove.
14108 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14109 than ->symbol, and use the terminal-local coding system.
14110 (syms_of_coding): Don't setup the coding-systems that are not
14111 terminal-local.
14112 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14113
14114 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14115 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14116
14117 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14118 in chartab.c and were re-added here by mistake.
14119 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14120
14121 * doc.c (Fsnarf_documentation):
14122 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14123 src to etc.
14124
14125 * ChangeLog.10: Add mistakenly removed entry.
14126
141272008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14128
14129 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14130
141312008-02-01 Miles Bader <miles@gnu.org>
14132
14133 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14134 Add extra args to FACE_FOR_CHAR.
14135
141362008-02-01 Kenichi Handa <handa@m17n.org>
14137
14138 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14139 in sequence.
14140
14141 * chartab.c (map_sub_char_table, map_char_table): If the range
14142 contains just one character, call the function with that character
14143 even if the depth is not 3.
14144
141452008-02-01 Jason Rumney <jasonr@gnu.org>
14146
14147 * w32font.c (w32font_text_extents): Calculate metrics for the
14148 whole string.
14149
141502008-02-01 Jason Rumney <jasonr@gnu.org>
14151
14152 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14153
141542008-02-01 Jason Rumney <jasonr@gnu.org>
14155
14156 * w32term.c (x_set_glyph_string_clipping): Use
14157 get_glyph_string_clip_rects.
14158 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14159 Adjust for the change of struct glyph_string.
14160
14161 * w32font.c (w32font_draw): Do clipping here.
14162
141632008-02-01 Kenichi Handa <handa@m17n.org>
14164
14165 * xftfont.c (xftfont_draw): Adjust for the change of struct
14166 glyph_string.
14167
14168 * xterm.c (x_set_glyph_string_clipping): Use
14169 get_glyph_string_clip_rects.
14170 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14171 Adjust for the change of struct glyph_string.
14172
14173 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14174 the resulting clip(s}.
14175 (expose_overlaps): Add arg r. Change callers. Set it to
14176 row->clip temporarily.
14177 (expose_window): Redraw rows overlapping the exposed area.
14178
14179 * dispextern.h (struct glyph_row): New member clip.
14180 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14181 clip_height, new member clip, and num_clips.
14182
141832008-02-01 Kenichi Handa <handa@m17n.org>
14184
14185 * data.c (Fchar_or_string_p): Fix docstring.
14186
141872008-02-01 Kenichi Handa <handa@m17n.org>
14188
14189 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14190 create a temporary XftDraw object.
14191
141922008-02-01 Kenichi Handa <handa@m17n.org>
14193
14194 * font.c (Ffontp): Fix docstring.
14195
14196 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14197 strong evidence of ISO-2022.
14198
141992008-02-01 Kenichi Handa <handa@m17n.org>
14200
14201 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14202 SYNTAX_ENTRY_FOLLOW_PARENT.
14203
142042008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14205
14206 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14207 its type.
14208 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14209 Update to the new type of weak_hash_tables and next_weak.
14210
14211 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14212 a plain C pointer to Lisp_Hash_Table.
14213
14214 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14215 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14216 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14217 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14218 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14219 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14220 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14221 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14222 (GC_EQ): Remove since they've been identical to their non-GC_
14223 alter-egos ever since the markbit was eradicated.
14224
14225 * alloc.c:
14226 * buffer.c:
14227 * buffer.h:
14228 * data.c:
14229 * fileio.c:
14230 * filelock.c:
14231 * fns.c:
14232 * frame.h:
14233 * lisp.h:
14234 * macterm.c:
14235 * print.c:
14236 * process.c:
14237 * w32fns.c:
14238 * w32menu.c:
14239 * w32term.c:
14240 * xfns.c:
14241 * xmenu.c:
14242 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14243
142442008-02-01 Kenichi Handa <handa@m17n.org>
14245
14246 * chartab.c (map_sub_char_table): Make it work for the top-level
14247 char-table. Fix handling of parent char-table.
14248 (map_char_table): Adjust for the above change.
14249
142502008-02-01 Jason Rumney <jasonr@gnu.org>
14251
14252 * w32font.c (Qgdi): Rename from Qw32.
14253
142542008-02-01 Jason Rumney <jasonr@gnu.org>
14255
14256 * w32bdf.c (get_quoted_string): Make function static.
14257
142582008-02-01 Kenichi Handa <handa@m17n.org>
14259
14260 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14261 bigger ascent and descent than those of the font, use them as
14262 font's ascent and descent.
14263
142642008-02-01 Kenichi Handa <handa@m17n.org>
14265
14266 * Makefile.in (${lispsource}international/charprop.el): Move this
14267 target within "#ifdef HAVE_UNIDATA" and "#endif".
14268
142692008-02-01 Kenichi Handa <handa@m17n.org>
14270
14271 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14272 (shortlisp): Add ../lisp/language/tai-viet.el.
14273
142742008-02-01 Ulrich Mueller <ulm@gentoo.org>
14275
14276 * Makefile.in (${lispsource}international/charprop.el): Depend on
14277 temacs${EXEEXT}.
14278
142792008-02-01 Jason Rumney <jasonr@gnu.org>
14280
14281 * w32font.c (w32font_close): Delete the GDI font object.
14282
14283 * w32menu.c: Include character.h.
14284
14285 * w32proc.c: Likewise.
14286
14287 * w32select.c: Likewise.
14288
14289 * makefile.w32-in (w32proc.o): Depend on character.h.
14290
142912008-02-01 Jason Rumney <jasonr@gnu.org>
14292
14293 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14294
14295 * w32menu.c (syms_of_w32menu): Likewise.
14296
14297 * w32proc.c (syms_of_ntproc): Likewise.
14298
14299 * w32select.c (syms_of_w32select): Likewise.
14300
14301 * w32term.c (syms_of_w32term): Likewise.
14302
143032008-02-01 Jason Rumney <jasonr@gnu.org>
14304
14305 * w32font.c (w32font_draw): Delete brush after using it.
14306
143072008-02-01 Jason Rumney <jasonr@gnu.org>
14308
14309 * w32font.c (w32font_open): Don't set font_idx.
14310 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14311 to font settings.
14312 (w32font_draw): Fill background explicitly.
14313
143142008-02-01 Jason Rumney <jasonr@gnu.org>
14315
14316 * w32term.c (w32_initialize): Don't call w32font_initialize.
14317
14318 * w32font.c (w32font_info): Remove subranges.
14319 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14320 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14321 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14322 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14323 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14324 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14325 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14326 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14327 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14328 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14329 New symbols.
14330 (font_callback_data): New struct.
14331 (w32font_list, w32font_match): Use it.
14332 (w32font_open): Don't populate subranges.
14333 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14334 (w32font_encode_char): Always return unicode code-point as-is.
14335 (w32font_text_extents): Supply a transformation matrix to
14336 GetGlyphOutline. Never look up by glyph index. Avoid looping
14337 twice. Use unicode version of GetTexExtentPoint32 instead of
14338 glyph index version.
14339 (set_fonts_frame): Remove.
14340 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14341 set frame parameter. Use backward compatible fake foundries.
14342 Save generic family in extra slot under QCfamily. Make width slot
14343 constant. Save QCspacing value. Save list of scripts instead of
14344 binary subranges.
14345 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14346 (add_font_entity_to_list): Use font_callback_data struct. Filter
14347 unwanted fonts.
14348 (add_one_font_entity_to_list): Use font_callback_data struct.
14349 (w32_registry): Default to iso10646_1.
14350 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14351 string font registries. Don't fill in font name if it is a generic
14352 family name, fill family instead. Use spacing, family and script
14353 extra info to fill pitch, family and charset fields.
14354 (list_all_matching_fonts): Use font_callback_data struct.
14355 (unicode_range_for_char): Remove.
14356 (font_supported_scripts): New function.
14357 (w32font_initialize): Remove.
14358 (syms_of_w32font): Update which symbols are defined.
14359
143602008-02-01 Jason Rumney <jasonr@gnu.org>
14361
14362 * font.c (font_pixel_size): Reverse assq_no_quit args.
14363
14364 * w32term.h (FONT_WIDTH): Report max width, not average.
14365 (FONT_MAX_WIDTH): Remove.
14366 (FONT_AVG_WIDTH): New macro.
14367
14368 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14369 redefinition of FONT_WIDTH.
14370
14371 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14372 (w32_cache_char_metrics): Use FONT_WIDTH.
14373
14374 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14375
143762008-02-01 Jason Rumney <jasonr@gnu.org>
14377
14378 * w32font.c (w32font_open): Make lfHeight negative.
14379
14380 * w32fns.c (x_default_font_parameter): Use new style font name.
14381 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14382
143832008-02-01 Jason Rumney <jasonr@gnu.org>
14384
14385 * w32font.c (QCsubranges): New symbol.
14386 (w32font_open, w32font_has_char): Get subranges from subproperty
14387 of extra.
14388 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14389 (syms_of_w32font): Define :subranges symbol.
14390
14391 * font.c (font_put_extra): Expose externally.
14392
14393 * font.h (font_put_extra): Move declaration from font.c.
14394
14395 * font.c (Ffont_get): Use font driver to determine otf capability.
14396 (adjust_anchor): Check if driver defines anchor_point before using.
14397
14398 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14399 (w32font_draw): Use options.
14400 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14401 Fix detection of truetype fonts.
14402 (registry_to_w32_charset): Handle charsets other than iso8859-1
14403 expressed as lisp symbols.
14404 (w32_registry): Express charset as lisp symbol.
14405 (fill_in_logfont): Reverse pixel and point height logic.
14406 Don't set width here. Set quality to default.
14407
14408 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14409 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14410
14411 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14412 Remove redundant loop and allocation.
14413
14414 * makefile.w32-in (font.o, w32font.o): New objects.
14415 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14416 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14417
14418 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14419 STORE_XCHARB a valid l-value.
14420
14421 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14422 calculations for non-Truetype fonts.
14423 (x_draw_glyph_string): Sync with xterm.c.
14424 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14425 Remove redundant code.
14426 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14427
14428 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14429 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14430
14431 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14432 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14433
14434 * w32font.c: New file for w32 font backend.
14435
144362008-02-01 Kenichi Handa <handa@m17n.org>
14437
14438 * term.c: Don't include "buffer.h" twice.
14439
144402008-02-01 Kenichi Handa <handa@m17n.org>
14441
14442 * character.c (Funibyte_string): New function.
14443 (syms_of_character): Defsubr it.
14444
144452008-02-01 Jason Rumney <jasonr@gnu.org>
14446
14447 * w32term.c [USE_FONT_BACKEND]:
14448 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14449 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14450 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14451 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14452 (x_free_frame_resources): Sync with xterm.c.
14453
144542008-02-01 Andreas Schwab <schwab@suse.de>
14455
14456 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14457 char-table size.
14458
144592008-02-01 Kenichi Handa <handa@m17n.org>
14460
14461 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14462
144632008-02-01 Kenichi Handa <handa@m17n.org>
14464
14465 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14466 font_otf_gpos, add font_drive_otf.
14467
14468 * fontset.c (fontset_find_font): Pay attention to font size
14469 specified for a font.
14470 (reorder_font_vector): Check contents of font_def.
14471
14472 * font.c (struct otf_list): Delete it.
14473 (otf_list): Make it a lisp variable.
14474 (otf_open): Use lispy otf_list.
14475 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14476 (check_otf_features): New function.
14477 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14478 New functions.
14479 (font_drive_otf): New function merging font_otf_gsub and
14480 font_otf_gpos.
14481 (font_open_for_lface): New arg spec. Change argument order.
14482 (font_load_for_face): Adjust for the change of font_open_for_lface.
14483 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14484 Ffont_otf_gpos.
14485 (syms_of_font): Staticpro otf_list. Delete defsubr of
14486 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14487
14488 * xfaces.c (set_font_frame_param): Adjust for the change of
14489 font_open_for_lface.
14490
14491 * font.h (font_open_for_lface): Adjust prototype.
14492 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14493 member otf_drive.
14494 (font_otf_gsub, font_otf_gpos): Delete externs.
14495 (font_drive_otf): Extern it.
14496
144972008-02-01 Kenichi Handa <handa@m17n.org>
14498
14499 * font.c (font_at): If the window W is not on a window system,
14500 return Qnil.
14501
14502 * coding.c (produce_chars, encode_coding): Don't call
14503 insert_from_gap if no characters to produce.
14504
145052008-02-01 Kenichi Handa <handa@m17n.org>
14506
14507 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14508 Fclear_face_cache.
14509
14510 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14511
145122008-02-01 Miles Bader <miles@gnu.org>
14513
14514 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14515 Parse "--disable-font-backend" option.
14516 (standard_args): Add "--disable-font-backend" option.
14517
145182008-02-01 Kenichi Handa <handa@m17n.org>
14519
14520 * fontset.c (fontset_find_font): New function.
14521 (fontset_font): Use fontset_find_font.
14522 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14523 Register the specified font for all Latin characters.
14524 (new_fontset_from_font): Register the specified font for all Latin
14525 characters.
14526 (dump_fontset): For a realized fontset, include the base fontset
14527 name in the returned vector.
14528
145292008-02-01 Kenichi Handa <handa@m17n.org>
14530
14531 * character.h (CHAR_STRING): Cast C to unsigned on calling
14532 char_string.
14533
14534 * character.c (char_string): Type of arg C changed to unsigned.
14535 Signal an error if C is an invalid character code.
14536
14537 * editfns.c (general_insert_function, Fchar_to_string):
14538 Use CHARACTERP, not INTEGERP.
14539
145402008-02-01 Kenichi Handa <handa@m17n.org>
14541
14542 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14543 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14544
14545 * regex.c (analyse_first): Fix for multibyte characters in "case
14546 charset:" and "case categoryspec:".
14547
145482008-02-01 Andreas Schwab <schwab@suse.de>
14549
14550 * Makefile.in (LIBES): Move standard libraries to the end.
14551
145522008-02-01 Kenichi Handa <handa@m17n.org>
14553
14554 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14555 nonzero, don't shrink the buffer nextb.
14556
14557 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14558
14559 * coding.c (coding_alloc_by_making_gap): New arg offset.
14560 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14561 offset.
14562 (decode_coding_iso_2022): Update coding->safe_charsets.
14563 (decode_coding_gap): Temporarily set
14564 current_buffer->text->inhibit_shrinking to 1.
14565
145662008-02-01 Kenichi Handa <handa@m17n.org>
14567
14568 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14569 indexing into elements of s->cmp and s->char2b.
14570
145712008-02-01 Juanma Barranquero <lekktu@gmail.com>
14572
14573 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14574
145752008-02-01 Kenichi Handa <handa@m17n.org>
14576
14577 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14578 target_multibyte instead of multibyte.
14579 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14580 (bcmp_translate): Change the argument name from multibyte to
14581 target_multibyte.
14582
145832008-02-01 Kenichi Handa <handa@m17n.org>
14584
14585 These changes are to compile a regexp into a pattern that can be
14586 used both for multibyte and unibyte targets.
14587
14588 * Makefile.in (search.o): Depend on charset.h.
14589
14590 * character.c (multibyte_char_to_unibyte_safe): New function.
14591
14592 * search.c: Include "charset.h".
14593 (compile_pattern_1): Delete argument multibyte. Don't set
14594 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14595 (compile_pattern): Don't compare cp->buf.target_multibyte.
14596 Compare cp->buf.charset_unibyte.
14597 (compile_pattern): Set cp->buf.target_multibyte.
14598
14599 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14600
14601 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14602
14603 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14604 multibyte. Change callers.
14605 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14606 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14607 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14608 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14609 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14610 (regex_compile): Make the compiled pattern usable both for
14611 multibyte and unibyte targets.
14612 (analyse_first): Make the fastmap usable both for multibyte and
14613 unibyte targets.
14614 (TRANSLATE_VIA_MULTIBYTE): Delete.
14615 (re_match_2_internal): Pay attention to the case that the
14616 multibyteness of bufp and target may be different.
14617
146182008-02-01 Kenichi Handa <handa@m17n.org>
14619
14620 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14621 empty box occupy at least one column width.
14622
146232008-02-01 Miles Bader <miles@gnu.org>
14624
14625 * Makefile.in: Remove redundant HAVE_XFT clause.
14626
146272008-02-01 Kenichi Handa <handa@m17n.org>
14628
14629 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14630
146312008-02-01 Kenichi Handa <handa@m17n.org>
14632
14633 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14634 being nil.
14635
146362008-02-01 Kenichi Handa <handa@m17n.org>
14637
14638 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14639
146402008-02-01 Kenichi Handa <handa@m17n.org>
14641
14642 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14643
146442008-02-01 Kenichi Handa <handa@m17n.org>
14645
14646 * search.c (simple_search): Fix previous change.
14647
146482008-02-01 Kenichi Handa <handa@m17n.org>
14649
14650 * xftfont.c (ftfont_font_format): Extern declaration.
14651
14652 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14653
14654 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14655 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14656
14657 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14658 (ftfont_font_format): Fix previous change.
14659
14660 * font.h (Ffont_xlfd_name): EXFUN it.
14661
14662 * font.c (font_parse_xlfd): Fix the array size of `f'.
14663 (register_font_driver): Use EQ to compare driver->type.
14664
14665 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14666 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14667 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14668
146692008-02-01 Kenichi Handa <handa@m17n.org>
14670
14671 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14672 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14673
146742008-02-01 Kenichi Handa <handa@m17n.org>
14675
14676 * xfont.c (xfont_open): Set font->format.
14677
14678 * xftfont.c (xftfont_open): Set font->format.
14679
14680 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14681 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14682 (ftfont_open): Set font->format.
14683 (ftfont_font_format): New function.
14684
14685 * font.h (struct font): New member format.
14686
14687 * font.c (Qopentype): New variable.
14688 (syms_of_font): Defsym it.
14689 (Fquery_font): Change the format of the last element of the return
14690 value.
14691
146922008-02-01 Kenichi Handa <handa@m17n.org>
14693
14694 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14695 last resort.
14696
146972008-02-01 Kenichi Handa <handa@m17n.org>
14698
14699 * coding.c (detect_coding_charset): Fix detection of multi-byte
14700 charset.
14701
147022008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14703
14704 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14705
147062008-02-01 Kenichi Handa <handa@m17n.org>
14707
14708 * xdisp.c (get_next_display_element): Set it->face_id for the
14709 first component of a composition.
14710 (x_produce_glyphs): Check if the font is changed or not for composition.
14711
147122008-02-01 Kenichi Handa <handa@m17n.org>
14713
14714 * fontset.c (Qlatin): New variable.
14715 (syms_of_fontset): Define it as a lisp symbol.
14716 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14717
147182008-02-01 Kenichi Handa <handa@m17n.org>
14719
14720 * font.c (font_unparse_fcname): Pay attention to the case that
14721 some of font property is a null string.
14722
147232008-02-01 Kenichi Handa <handa@m17n.org>
14724
14725 * term.c: Include "composite.h".
14726 (encode_terminal_code): Output all components of composition.
14727 Check the size of encode_terminal_src.
14728 (produce_glyphs): For composition, call produce_composite_glyph.
14729 (append_composite_glyph, produce_composite_glyph): New functions.
14730
14731 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14732 is not found, get font_info from the current ascii face.
14733
147342008-02-01 Kenichi Handa <handa@m17n.org>
14735
14736 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14737 buffer-file-name to Qnil before calling insert_from_buffer.
14738
14739 * font.c (font_unparse_fcname): Pay attention to the case that
14740 foundry is a null string.
14741
147422008-02-01 Kenichi Handa <handa@m17n.org>
14743
14744 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14745
14746 * font.c (Qunicode_sip): New variable.
14747 (syms_of_font): Declare it as a Lisp symbol.
14748
14749 * font.h (Qunicode_sip): Extern it.
14750
147512008-02-01 Kenichi Handa <handa@m17n.org>
14752
14753 * composite.c (get_composition_id): Pay attention to TAB component.
14754
14755 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14756 TAB. Adjust for the change of s->char2b which always points to
14757 the first element of allocated memory.
14758
14759 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14760
14761 * xdisp.c (handle_composition_prop): Set it->c to the first
14762 non-TAB component.
14763 (fill_composite_glyph_string): Change argument.
14764 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14765 (x_produce_glyphs): Fix handling of left/right padding.
14766
147672008-02-01 Kenichi Handa <handa@m17n.org>
14768
14769 * coding.c (detect_coding_system): Fix for handling off
14770 inhibit_iso_escape_detection. Fix for the case that no coding
14771 system is defined for a specific coding category.
14772
147732008-02-01 Kenichi Handa <handa@m17n.org>
14774
14775 * font.c (font_matching_entity): Delete unused local var.
14776
14777 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14778 opening a font.
14779
14780 * fileio.c (Finsert_file_contents): On recovering a file, assume
14781 Unix-like eol.
14782 (choose_write_coding_system): On auto-saving a file, force
14783 Unix-like eol.
14784
14785 * coding.c (setup_coding_system): Fix setting of
14786 coding->common_flags based on eol_type.
14787 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14788 inherit from it.
14789
147902008-02-01 Kenichi Handa <handa@m17n.org>
14791
14792 * alloc.c (NSTATICS): Increas to 0x600.
14793
147942008-02-01 Kenichi Handa <handa@m17n.org>
14795
14796 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14797 (ftfont_list): Don't check :name property.
14798 (ftfont_match): New function.
14799 (ftfont_pattern_entity): If the pattern doesn't contain
14800 FC_SPACING, don't assume FC_MONO.
14801
14802 * font.h (struct font_driver): New member `match'.
14803 (font_update_drivers): Adjust prototype.
14804
14805 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14806 property of FONT.
14807 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14808 them unconditionally.
14809 (font_matching_entity): New function.
14810 (font_open_by_name): Try font_matching_entity if exact match is
14811 not found.
14812 (font_update_drivers): Delete the arg FONT. Return a list of
14813 actually used backends. Don't free faces, font caches here.
14814 Don't store data in frame parameters. Don't call x_set_font.
14815 (Ffont_spec): Store :name property as is.
14816 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14817 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14818 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14819 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14820 Call font->driver->otf_gsub instead of font_otf_gsub.
14821
14822 * frame.c (x_set_font_backend): Do more works that were done in
14823 font_update_drivers before.
14824
14825 * xfont.c (xfont_match): New function.
14826 (xfont_driver): Set xfont_driver.match to xfont_match.
14827 (xfont_draw): Set font in GC if necessary.
14828
14829 * ftxfont.c (ftxfont_match): New function.
14830 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14831
14832 * xftfont.c (xftfont_match): New function.
14833 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14834
148352008-02-01 Kenichi Handa <handa@m17n.org>
14836
14837 * font.h (struct font): New member scalable.
14838 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14839 (font_otf_gsub): Adjust prototype.
14840
14841 * font.c (font_otf_capability): Fix handling of the default langsys.
14842 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14843 Check the contents of SPEC.
14844 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14845 (check_gstring): New function.
14846 (REPLACEMENT_CHARACTER): New macro.
14847 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14848 glyph codes of GSTRING.
14849 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14850 (font_prepare_composition): Set cmp->glyph_len.
14851 (font_open_entity): Set font->scalable.
14852 (Ffont_get): Handle :otf property.
14853 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14854 functions.
14855 (Fquery_font): Use font->font.full_name.
14856 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14857 Sfont_otf_alternates.
14858
14859 * ftfont.c (ftfont_open): Set font->font.full_name and
14860 font->font.name properly. Fix calculation of font->font.height
14861 and font->min_width.
14862
14863 * ftxfont.c (ftxfont_create_gcs): New function.
14864 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14865 (ftxfont_draw_backgrond): Fix filling region.
14866 (ftxfont_default_fid): New function.
14867 (ftxfont_open): Set xfont->fid to the return value of
14868 ftxfont_default_fid.
14869 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14870 (ftxfont_done_face): Free only GCs that are created by
14871 ftxfont_create_gcs.
14872 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14873
14874 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14875 Clip to src->width, etc (not src->clip_XXX).
14876
14877 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14878 FontBackend frame parameter.
14879
148802008-02-01 Kenichi Handa <handa@m17n.org>
14881
14882 * font.h (struct font_driver_list): New member `on'.
14883 (Fclear_font_cache): EXFUN it.
14884 (font_update_drivers): Extern it.
14885
14886 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14887 (font_list_entities): Check driver_list->on.
c0943d3d 14888 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
14889 (font_update_drivers): New function.
14890 (Fclear_font_cache): Check driver_list->on.
14891
14892 * frame.h (Qfont_backend): Extern it.
14893 (x_set_font_backend): Extern it.
14894
14895 * frame.c (Qfont_backend): New variable.
14896 (frame_parms): New element for font-backend.
14897 (x_set_font_backend): New function.
14898
14899 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14900 FontBackend frame parameter.
14901 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14902 x_set_font_backend.
14903
14904 * xfont.c (xfont_list): Don't try listing by :name property if the
14905 name is not for XLFD.
14906
149072008-02-01 Kenichi Handa <handa@m17n.org>
14908
14909 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14910 (LGLYPH_SET_TO): New macros.
14911 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14912 element of G is vector or not.
14913 (font_at): Extern it.
14914
14915 * font.c: Include window.h.
14916 (font_lispy_object): New function.
14917 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14918 end of valid glyph.
14919 (font_close_object): Fix getting (struct font *).
14920 (font_at): New function.
14921 (Ffont_get): If FONT is a font-object, get entity from it.
14922 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14923 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14924 range check.
14925 (Ffont_at): New function.
14926 (syms_of_font): Defsubr Sfont_at.
14927
14928 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14929 before the entry for Qcomposition.
14930 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14931 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14932 the font in gstring.
14933 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14934 LGLYPH_FORM (g) to detect the end of valid glyph.
14935 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14936 we are composing with gstring.
14937
14938 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14939 Check if adjustment is vector or not.
14940
14941 * Makefile.in (font.o): Make it depends on window.h.
14942
149432008-02-01 Kenichi Handa <handa@m17n.org>
14944
14945 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14946 adjustment is vector or not.
14947
149482008-02-01 Miles Bader <miles@gnu.org>
14949
14950 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14951
149522008-02-01 Kenichi Handa <handa@m17n.org>
14953
14954 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14955 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14956 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14957
14958 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14959 (DEVICE_DELTA): Fix typo.
14960 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14961 LGLYPH format.
14962
14963 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14964 the change of LGLYPH format.
14965
149662008-02-01 Kenichi Handa <handa@m17n.org>
14967
14968 * ftfont.c (ftfont_list): Fix typo.
14969 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14970
149712008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14972
14973 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14974
14975 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14976 xftface_info is non-NULL.
14977
149782008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14979
14980 * ftfont.c (ftfont_list): Move misplaced #endif.
14981
149822008-02-01 Kenichi Handa <handa@m17n.org>
14983
14984 * ftfont.c (ftfont_list): Pay attention to the case that
14985 FC_CAPABILITY is not defined.
14986
149872008-02-01 Kenichi Handa <handa@m17n.org>
14988
14989 * xftfont.c (xftfont_open): Set charset related members to -1.
14990
14991 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14992 QCname.
14993 (ftfont_open): Set charset related members to -1.
14994
14995 * fontset.c (Votf_script_alist): New variable.
14996 (syms_of_fontset): Initialize it.
14997 (fontset_font): Delete unused variable.
14998
14999 * fontset.h (Votf_script_alist): Extern it.
15000
15001 * font.c (font_find_for_lface): Optimize code.
15002
15003 * font.h (font_close_object, font_merge_old_spec): Extern them.
15004
150052008-02-01 Kenichi Handa <handa@m17n.org>
15006
15007 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15008 (syms_of_font): Initialize them.
15009 (font_pixel_size): Allow float value in dpi.
15010 (font_prop_validate_type): Delete.
15011 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15012 Change caller.
15013 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15014 (font_prop_validate_extra): Delete.
15015 (font_prop_validate_spacing): New function.
15016 (font_property_table): Add elements for all known properties.
15017 (get_font_prop_index): Rename from check_font_prop_name. New
15018 argument FROM. Change caller.
15019 (font_prop_validate): Validate all known properties.
15020 (font_put_extra): Delete argument force. Change caller.
15021 (font_expand_wildcards): Make it static. Fix the way of shrinking
15022 the possible range.
15023 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15024 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15025 Change caller.
15026 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15027 (font_parse_fcname): Delete argument merge. Fix parsing of point
15028 size. Don't validate properties values here. Change caller.
15029 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15030 (font_open_by_name): Delete unused variable.
15031 (Ffont_spec): Likewise. Validate property values.
15032 (Ffont_match_p): New function.
15033
15034 * font.h (QCscalable): Extern it.
15035 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15036
15037 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15038
15039 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15040 (xfont_list_pattern): New function.
15041 (xfont_list): Use xfont_list_pattern.
15042
150432008-02-01 Kenichi Handa <handa@m17n.org>
15044
15045 * font.h (Flist_fonts): EXFUN it.
15046
150472008-02-01 Jason Rumney <jasonr@gnu.org>
15048
15049 * w32term.c (w32_initialize): Add back smoothing_type and
15050 smoothing_enabled definitions.
15051
150522008-02-01 Kenichi Handa <handa@m17n.org>
15053
15054 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15055 s->face->font on determining underline position.
15056
150572008-02-01 Kenichi Handa <handa@m17n.org>
15058
15059 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15060 (font_has_char): Accept font-object too.
15061 (font_find_for_lface): Try at first with a size specified in face.
15062
150632008-02-01 Kenichi Handa <handa@m17n.org>
15064
15065 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15066 font_open_by_name.
15067
150682008-02-01 Kenichi Handa <handa@m17n.org>
15069
15070 * font.h (QCspacing, QCdpi): Extern them.
15071 (enum font_spacing): New enum.
15072 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15073
15074 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15075 (QCspacing, QCdpi): New variables.
15076 (syms_of_font): Initialize them.
15077 (font_pixel_size): New function.
15078 (font_put_extra): New function.
15079 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15080 in FONT_EXTRA.
15081 (font_parse_fcname): Handle enumerated values (e.g. bold).
15082 Fix handling font size. Add QCname property that contains only
15083 unknown properties.
15084 (font_score): Change argument. Change caller. Pay attention to
15085 FONT_PIXEL_SIZE_QUANTUM.
15086 (font_sort_entites, font_list_entities, font_find_for_lface)
15087 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15088 (Ffont_spec): Add QCname property that contains only unknown properties.
15089
15090 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15091 include weight in listing pattern, instead check weight of each
15092 listed font. Don't include scalable in pattern. Pay attention to
15093 FONT_PIXEL_SIZE_QUANTUM.
15094
150952008-02-01 Kenichi Handa <handa@m17n.org>
15096
15097 * font.c (font_parse_fcname): Fix parsing of point-size.
15098 (font_unparse_fcname): Produce symbolic names for style properties.
15099 (font_list_entities): Handle float size correctly.
15100 (font_open_by_name): Prefer `normal' property values if the name
15101 doesn't specify them.
15102
15103 * fontset.c (Finternal_char_font): Use font_get_name, not
15104 Ffont_xlfd_name.
15105
15106 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15107 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15108 pattern. Don't force scalable.
15109
15110 * xftfont.c (xftfont_open): For generating a name, start from
15111 96-byte buffer.
15112
151132008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15114
15115 * frame.h (x_new_fontset2): Fix prototype.
15116
151172008-02-01 Kenichi Handa <handa@m17n.org>
15118
15119 * font.h (struct font_driver): Delete member parse_name.
15120 (font_match_p, font_get_spec, font_parse_fcname)
15121 (font_unparse_fcname): Extern them.
15122 (font_get_name): Adjust prototype.
15123
15124 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15125 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15126 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15127 unnecessary checks for weight, slant, and swidth.
15128 (font_parse_fcname): New function.
15129 (font_unparse_fcname): New function.
15130 (font_parse_name): New function.
15131 (font_match_p): New function.
15132 (font_get_name): Change return value to Lisp string.
15133 (font_get_spec): New function.
15134 (Qunspecified, Qignore_defface): Don't extern them.
15135 (font_find_for_lface): Assume that LFACE is fully specified.
15136 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15137 object, use it for FACE.
15138 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15139 driver->parse_name.
15140 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15141
15142 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15143 prototype.
15144
15145 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15146 argument F. Don't call Fnew_fontset. Instead, directly call
15147 make_fontset.
15148
15149 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15150
15151 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15152 of x_new_fontset2.
15153
15154 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15155 (Qsans__serif): New variables.
15156 (ftfont_generic_family_list): New variable.
15157 (syms_of_ftfont): Initialize the above variables.
15158 (ftfont_pattern_entity): Delete argument NAME.
15159 (ftfont_list_generic_family): New function.
15160 (ftfont_parse_name): Delete this function.
15161 (ftfont_list): Try generic family only when FcFontList found no font.
15162 (ftfont_list_family): Fix args to FcObjectSetBuild.
15163
15164 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15165 object in attrs[LFACE_FONT_INDEX].
15166 (set_lface_from_font_name): Cancel all changes for font-backend.
15167 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15168 function.
15169 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15170 font object in QCfont attribute.
15171 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15172 (realize_default_face) [USE_FONT_BACKEND]: Call
15173 set_lface_from_font_and_fontset.
15174
15175 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15176 "fixed", and signal error here if no suitable font was found.
15177
15178 * xfont.c (xfont_parse_name): Delete this function.
15179
15180 * xftfont.c (xftfont_open): Change coding style of error
15181 handling. Generate fontconfig's fontname pattern.
15182
15183 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15184 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15185
15186 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15187 Both args FONTSET and FONT_OBJECT must be existing ones.
15188
151892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15190
15191 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15192
151932008-02-01 Kenichi Handa <handa@m17n.org>
15194
15195 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15196
15197 * font.h (struct font): Fix typo.
15198
15199 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15200 XLFD_XXX_INDEX.
15201 (enum xlfd_field_mask): New enum.
15202 (intern_font_field): Changed argument. Change caller. If digits
15203 are followed by non-digits, return a symbol.
15204 (font_expand_wildcards): New function.
15205 (font_parse_xlfd): Fix wildcard handling.
15206 (Ffont_spec): If :name is specified, reflect the info in the other
15207 properties.
15208
15209 * ftfont.c (ftfont_pattern_entity): Fix typo.
15210 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15211 locale.
15212
152132008-02-01 Kenichi Handa <handa@m17n.org>
15214
15215 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15216
15217 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15218 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15219 registry doesn't specify encoding part.
15220 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15221 (font_open_by_name): At first try parsing the name.
15222 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15223 as Lisp symbols.
15224
15225 * fontset.c (reorder_font_vector): Pay attention to the case that
15226 the 3rd element of font_def is nil.
15227 (fontset_font): For the default fontset, append one more fontset
15228 elements for a script-based font specification. Don't add script
15229 attribute on finding a font.
15230 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15231 font name.
15232 (fontset_ascii_font): If a font can't be opened, return nil.
15233
15234 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15235 (ftfont_pattern_entity): New function.
15236 (ftfont_get_cache): Assume that freetype_font_cache is already
15237 initialized.
15238 (ftfont_list): Handle the case that a file is specified in font
15239 name. Use ftfont_pattern_entity to generate entities.
15240 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15241 (syms_of_ftfont): Initialize freetype_font_cache.
15242
15243 * xftfont.c (xftfont_open): Make the font name fontconfig's
15244 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15245 (xftfont_close): Free font->font.name if not NULL.
15246
15247 * xfont.c (xfont_list): If script is specified for a font, return
15248 null_vector.
15249 (xfont_list_family): Declare argument type.
15250
15251 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15252 name, set LFACE_FONT (lface) to nil.
15253
15254 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15255 return Qnil.
15256
152572008-02-01 Kenichi Handa <handa@m17n.org>
15258
15259 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15260 (standard_args): Add "-enable-font-backend".
15261
152622008-02-01 Kenichi Handa <handa@m17n.org>
15263
15264 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15265 (struct xftdraw_list, xftdraw_list): Delete them.
15266 (register_xftdraw, check_xftdraw): Delete them.
15267 (xftfont_prepare_face): Don't call register_xftdraw.
15268 (xftfont_done_face): Don't call check_xftdraw.
15269 (xftfont_draw): Get background color only when with_background is
15270 nonzero.
15271
15272 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15273
152742008-02-01 Kenichi Handa <handa@m17n.org>
15275
15276 These changes are for the new font handling codes.
15277
15278 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15279 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15280 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15281 (FONTSRC, FONTOBJ): New variables.
15282 (obj): Add $(FONTOBJ).
15283 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15284 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15285 @LIBOTF_LIBS@.
15286 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15287 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15288
15289 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15290
15291 * character.h (Vscript_representative_chars): Extern it.
15292
15293 * character.c (Vscript_representative_chars): New variable.
15294 (syms_of_character): Declare it as a Lisp variable.
15295
15296 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15297 enable_font_backend is nonzero, accept the composition method
15298 COMPOSITION_WITH_GLYPH_STRING.
15299
15300 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15301 enumeration COMPOSITION_WITH_GLYPH_STRING.
15302
15303 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15304 members clip_x, clip_y, clip_width, and clip_height.
15305 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15306
15307 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15308 --enable-font-backend. Call syms_of_font.
15309
15310 * fns.c (assoc_no_quit): New function.
15311
15312 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15313 (face_for_font, new_fontset_from_font)
15314 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15315
15316 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15317 (fontset_font, fontset_ascii, face_for_char)
15318 (make_fontset_for_ascii_face, Ffont_info)
15319 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15320 is nonzero, use font-backend mechanism.
15321 (find_font_encoding): Make it non-static.
15322 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15323 New functions.
15324
15325 * frame.h (struct frame): New members resx and resy.
15326 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15327 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15328
15329 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15330 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15331
15332 * lisp.h (assoc_no_quit): Extern it.
15333
15334 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15335 Through out the file, use FONT_INFO_FROM_FACE instead of
15336 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15337 rif->per_char_metric.
15338 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15339 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15340 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15341 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15342 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15343 nonzero, use font-backend mechanism.
15344 (get_per_char_metric): New function.
15345
15346 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15347 (set_lface_from_font_name)
15348 (set_font_frame_param, free_realized_face)
15349 (prepare_face_for_display, clear_face_gcs)
15350 (Finternal_set_font_selection_order, realize_x_face)
15351 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15352 font-backend mechanism.
15353 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15354 (load_face_font) [USE_FONT_BACKEND]: Abort.
15355 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15356 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15357
15358 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15359 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15360 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15361 nonzero, register all available font drivers. Call
15362 x_default_font_parameter for deciding a font.
15363 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15364
15365 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15366 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15367 (x_set_glyph_string_clipping_exactly)
15368 (x_compute_glyph_string_overhangs)
15369 (x_draw_glyph_string_foreground)
15370 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15371 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15372 enable_font_backend is nonzero, use font-backend mechanism.
15373 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15374
153752008-02-01 Kenichi Handa <handa@m17n.org>
15376
15377 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15378 system_eol_type.
15379 (syms_of_coding): Initialize system_eol_type.
15380
15381 * process.c (Fset_process_coding_system): Inherit system's eol
15382 format if necessary.
15383
153842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15385
15386 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15387
153882008-02-01 Kenichi Handa <handa@m17n.org>
15389
15390 * coding.c (decode_eol): Pay attention to buffer relocation in
15391 del_range_2.
15392 (decode_coding): Call decode_eol before restoring undo_list.
15393
153942008-02-01 Kenichi Handa <handa@m17n.org>
15395
15396 * charset.c (Fdefine_charset_internal): Fix setting of
15397 emacs_mule_bytes.
15398
153992008-02-01 Kenichi Handa <handa@m17n.org>
15400
15401 * keyboard.c (read_char): Check if C is a character or not before
15402 looking up Vkeyboard_translate_table.
15403
154042008-02-01 Kenichi Handa <handa@m17n.org>
15405
15406 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15407 condition to terminate the loop.
15408
154092008-02-01 Kenichi Handa <handa@m17n.org>
15410
15411 * coding.c (produce_composition): Compare charbuf[i] instead of
15412 args[i] against 0.
15413 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15414
154152008-02-01 Kenichi Handa <handa@m17n.org>
15416
15417 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15418 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15419 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15420 detect_coding.
15421 (emacs_mule_char): Handle old style (Emacs 20) component character
15422 of a composition.
15423 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15424 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15425 composition rule.
15426 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15427
154282008-02-01 Kenichi Handa <handa@m17n.org>
15429
15430 * coding.c (encode_coding_ccl): Allocate destination dynamically
15431 when necessary.
15432
154332008-02-01 Kenichi Handa <handa@m17n.org>
15434
15435 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15436 the loop. When quitted, show a proper error message.
15437
154382008-02-01 Kenichi Handa <handa@m17n.org>
15439
15440 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15441 src->clip_head and src->clip_tail temporarily instead of src->hl.
15442
15443 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15444 character sequence.
15445 (Fccl_execute_on_string): Use ASET, not XSET.
15446
154472008-02-01 Kenichi Handa <handa@m17n.org>
15448
15449 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15450
154512008-02-01 Kenichi Handa <handa@m17n.org>
15452
15453 * coding.c (decode_coding): Fix the condition of terminating the
15454 decoding loop.
15455
154562008-02-01 Kenichi Handa <handa@m17n.org>
15457
15458 * data.c (Faset): On setting a character bigger than 255 in a
15459 unibyte string, signal an error instead of make the string multibyte.
15460
154612008-02-01 Kenichi Handa <handa@m17n.org>
15462
15463 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15464 made by a mapping table.
15465
154662008-02-01 Kenichi Handa <handa@m17n.org>
15467
15468 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15469 not.
15470 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15471 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15472
15473 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15474 s->face is NULL or not.
15475
154762008-02-01 Kenichi Handa <handa@m17n.org>
15477
15478 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15479 (x_draw_glyph_string): Fix drawing of right_overhang and
15480 left_overhang around/on cursor.
15481
15482 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15483
154842008-02-01 Kenichi Handa <handa@m17n.org>
15485
15486 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15487
154882008-02-01 Kenichi Handa <handa@m17n.org>
15489
15490 * coding.c (Fdefine_coding_system_internal)
15491 (Fdefine_coding_system_alias): Avoid a duplicated element in
15492 Vcoding_system_alist.
15493
154942008-02-01 Kenichi Handa <handa@m17n.org>
15495
15496 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15497
15498 * coding.c (Qcoding_system_define_form): New variable.
15499 (syms_of_coding): Intern and staticpro it.
15500 (Fcoding_system_p): Check Qcoding_system_define_form.
15501 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15502
15503 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15504 Fcoding_system_p.
15505 (CHECK_CODING_SYSTEM): If ID is not available, call
15506 Fcheck_coding_system.
15507 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15508 Try also Fcheck_coding_system.
15509
155102008-02-01 Kenichi Handa <handa@m17n.org>
15511
15512 * coding.c (code_conversion_restore): GCPRO arg.
15513
155142008-02-01 Kenichi Handa <handa@m17n.org>
15515
15516 * character.c (lisp_string_width): Check multibyteness of STRING.
15517
155182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15519
15520 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15521 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15522 (decode_mac_font_name): Use decode_coding_c_string instead of
15523 decode_coding.
15524 (x_load_font): Initialize fontp->fontset to -1. Set
15525 fontp->encoding_type.
15526
155272008-02-01 Kenichi Handa <handa@m17n.org>
15528
15529 * search.c (search_buffer): Give up BM search on case-fold-search
15530 if one of a target character has a case-equivalence of different
15531 byte length even if that target charcter is an ASCII.
15532 (simple_search): Fix calculation of byte length of matched text.
15533 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15534
155352008-02-01 Kenichi Handa <handa@m17n.org>
15536
15537 * coding.c (decode_coding): Fix handling of invalid bytes.
15538
155392008-02-01 Kenichi Handa <handa@m17n.org>
15540
15541 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15542 Unicode characters.
15543
155442008-02-01 Kenichi Handa <handa@m17n.org>
15545
15546 * coding.c (encode_coding_object): If a pre-write-conversion
15547 function makes a new buffer, kill it.
15548
155492008-02-01 Kenichi Handa <handa@m17n.org>
15550
15551 * coding.c (QCascii_compatible_p): New variable.
15552 (syms_of_coding): Initialize it.
15553 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15554 calling string_char.
15555 (record_conversion_result): Add `default:' case.
15556 (coding_charset_list): Delete unused variable `coding_type'.
15557 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15558 property in the plist of the coding system.
15559 (Fcoding_system_put): Check QCascii_compatible_p.
15560
155612008-02-01 Miles Bader <miles@gnu.org>
15562
15563 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15564 removed calculation of frame `f', as it's now used.
15565
155662008-02-01 Kenichi Handa <handa@m17n.org>
15567
15568 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15569 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15570 (UNIDATA): New variable.
15571 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15572 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15573 $(RUN_TEMACS) unconditionally.
15574
155752008-02-01 Kenichi Handa <handa@m17n.org>
15576
15577 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15578 (admindir): New variable.
15579 ($(lispsource)international/charprop.el): New target.
15580
155812008-02-01 Miles Bader <miles@gnu.org>
15582
15583 * character.c (chars-in-region): Remove obsolete function.
15584 (syms_of_character): Remove its initialization.
15585
155862008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15587
15588 * w32select.c (validate_coding_system)
15589 (setup_windows_coding_system): New functions.
15590 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15591 setup_windows_coding_system.
15592 (setup_config, Fw32_get_clipboard_data): Use
15593 validate_coding_system.
15594 (Fx_selection_exists): Move call to setup_config to a place
15595 where signals are allowed.
15596
15597 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15598 (Fcheck_coding_system): Add declarations.
15599
156002008-02-01 Kenichi Handa <handa@m17n.org>
15601
15602 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15603
156042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15605
15606 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15607 string as the second argument for x_new_fontset.
15608
156092008-02-01 Kenichi Handa <handa@m17n.org>
15610
15611 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15612 (encode_coding_object): Use safe_call instead of call2.
15613
156142008-02-01 Kenichi Handa <handa@m17n.org>
15615
15616 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15617
15618 * Makefile.in (lisp): Include charprop.el.
15619
156202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15621
15622 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15623 Not sure if it's unnecessary.
15624
156252008-02-01 Steven Tamm <steventamm@mac.com>
15626
15627 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15628 some possibly unnecessary fontset checking code that crashed
15629 when creating a new frame.
15630
156312008-02-01 Kenichi Handa <handa@m17n.org>
15632
15633 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15634 lookup_face.
15635
15636 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15637
15638 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15639
156402008-02-01 Kenichi Handa <handa@m17n.org>
15641
15642 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15643 (coding_charset_list): New function.
15644
15645 * coding.h (coding_charset_list): Extern it.
15646
156472008-02-01 Kenichi Handa <handa@m17n.org>
15648
15649 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15650 concatenation of family and registry.
15651
156522008-02-01 Kenichi Handa <handa@m17n.org>
15653
15654 * character.h (BYTE8_STRING): Fix typo.
15655
15656 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15657 string to multibyte (sync to HEAD).
15658
15659 * casefiddle.c (casify_region): Handle changes in byte-length
15660 using replace_range_2 (sync to HEAD).
15661
156622008-02-01 Andreas Schwab <schwab@suse.de>
15663
15664 * chartab.c (map_char_table): GCPRO table and arg.
15665
156662008-02-01 Kenichi Handa <handa@m17n.org>
15667
15668 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15669 already at limit.
15670
156712008-02-01 Kenichi Handa <handa@m17n.org>
15672
15673 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15674 instead of fast_c_string_match_ignore_case.
15675 (find_font_encoding): Change argument to Lisp_Object. Use
15676 fast_string_match_ignore_case instead of
15677 fast_c_string_match_ignore_case. Change caller.
15678
156792008-02-01 Kenichi Handa <handa@m17n.org>
15680
15681 * xdisp.c (get_next_display_element): In unibyte case, decide to
15682 display in octal form by checking a character by
15683 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15684
15685 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15686
15687 * character.c (unibyte_has_multibyte_table): New variable.
15688
15689 * character.h (unibyte_has_multibyte_table): Extern it.
15690 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15691
156922008-02-01 Kenichi Handa <handa@m17n.org>
15693
15694 * coding.c (encode_coding_iso_2022): Fix handling of charset
15695 annotation.
15696
156972008-02-01 Kenichi Handa <handa@m17n.org>
15698
15699 * coding.c (setup_coding_system): If coding_system is nil, use
15700 Qundecided.
15701 (Fterminal_coding_system): Return nil if terminal coding system is
15702 `undecided'.
15703 (syms_of_coding): Define coding-system `undecided' here. Setup
15704 terminal_coding as `undecided'.
15705
157062008-02-01 Kenichi Handa <handa@m17n.org>
15707
15708 * xdisp.c (message_dolog, set_message_1): Call
15709 unibyte_char_to_multibyte with arg type int.
15710
15711 * lread.c (read1): Fix reading of a char-table.
15712
15713 * print.c (print_object): Include sub char-table in circularities
15714 detection.
15715
157162008-02-01 Kenichi Handa <handa@m17n.org>
15717
15718 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15719 Append the found sequences in car of ARGS instead of prepending.
15720
157212008-02-01 Kenichi Handa <handa@m17n.org>
15722
15723 * fileio.c (report_file_error): Make a unibyte string from
15724 strerror (errorno).
15725 (Fsubstitute_in_file_name): Fix the arg to
15726 unibyte_char_to_multibyte. It is evaluated twice.
15727
157282008-02-01 Kenichi Handa <handa@m17n.org>
15729
15730 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15731
157322008-02-01 Kenichi Handa <handa@m17n.org>
15733
15734 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15735 BOM is not found.
15736 (detect_coding, detect_coding_system): Optimization for ISO-2022
15737 when no 8-bit data is found.
15738
157392008-02-01 Jason Rumney <jasonr@gnu.org>
15740
15741 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15742
157432008-02-01 Kenichi Handa <handa@m17n.org>
15744
15745 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15746 CHARS.
15747
157482008-02-01 Steven Tamm <steventamm@mac.com>
15749
15750 * macterm.c (mac_encode_char): Add charset argument and update
15751 to use encoding_type.
15752 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15753 switch to pure fontset.
15754 (decode_mac_font_name): Temporarily remove decoding.
15755 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15756 (x_load_font): Temporarily remove encoding.
15757
157582008-02-01 Kenichi Handa <handa@m17n.org>
15759
15760 * xfaces.c (Fface_font): If frame is not on a window system,
15761 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15762 refer to face->font.
15763 (split_font_name_into_vector, build_font_name_from_vector)
15764 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15765 when HAVE_WINDOW_SYSTEM is defined.
15766
157672008-02-01 Kenichi Handa <handa@m17n.org>
15768
15769 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15770 (x_produce_glyphs): Fix setting of members of cmp in case
15771 cmp->glyph_len is zero.
15772
15773 * fontset.c (Fset_fontset_font): Fix docstring.
15774 (Ffontset_info): Make it backward compatible. New arg ALL.
15775
157762008-02-01 Kim F. Storm <storm@cua.dk>
15777
15778 * process.c (read_process_output): Grow decoding_buf when needed;
15779 this could cause a crash in allocate_string and compact_small_strings.
15780
157812008-02-01 Kenichi Handa <handa@m17n.org>
15782
15783 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15784
157852008-02-01 Kenichi Handa <handa@m17n.org>
15786
15787 * coding.c (setup_coding_system): Set coding->common_flags
15788 correctly for raw-text.
15789 (consume_chars): On encoding unibyte text by raw-text, don't check
15790 multibyte form.
15791 (encode_coding): On encoding by raw-text, never use translation tables.
15792
15793 * fileio.c (e_write): Short cut for the case of no encoding.
15794
157952008-02-01 Kenichi Handa <handa@m17n.org>
15796
15797 * coding.c (detect_coding, detect_coding_system): Delete unused
15798 variables.
15799
158002008-02-01 Kenichi Handa <handa@m17n.org>
15801
15802 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15803 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15804
158052008-02-01 Kenichi Handa <handa@m17n.org>
15806
15807 * coding.c (Ffind_coding_systems_region_internal): Include
15808 raw-text and no-conversion in the result.
15809
158102008-02-01 Kenichi Handa <handa@m17n.org>
15811
15812 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15813 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15814 FONT_DEF.
15815 (font_def_arg, add_arg, from_arg, to_arg): New args.
15816 (set_fontset_font): Change argument.
15817 (Fset_fontset_font): Fix for the case that TARGET is a script
15818 name and charset name.
15819 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15820
158212008-02-01 Kenichi Handa <handa@m17n.org>
15822
15823 * fontset.c (fontset_font): Rename from fontset_face. Change return
15824 value.
15825 (face_suitable_for_char_p, face_for_char): Adjust for the change
15826 of fontset_font.
15827 (make_fontset_for_ascii_face): Fix setting of the fontset element
15828 for ASCII.
15829 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15830 to get a font name.
15831 (Ffontset_info): Adjust for the change of fontset_font.
15832
15833 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15834
15835 * character.h (LEADING_CODE_LATIN_1_MIN)
15836 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15837
158382008-02-01 Kenichi Handa <handa@m17n.org>
15839
15840 * editfns.c (check_translation): New function.
15841 (Ftranslate_region_internal): Handle M:N mapping.
15842
158432008-02-01 Kenichi Handa <handa@m17n.org>
15844
15845 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15846
158472008-02-01 Kenichi Handa <handa@m17n.org>
15848
15849 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15850 goto invalid_code.
15851 (decode_coding_iso_2022): Fix handling of invalid designation.
15852
15853 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15854 after calling code_conversion_save.
15855
158562008-02-01 Kenichi Handa <handa@m17n.org>
15857
15858 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15859
15860 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15861
15862 * fontset.c: Include "intervals.h".
15863 (fontset_face): Fix comparing of Lisp_Objects.
15864 (free_face_fontset, new_fontset_from_font_name): Fix
15865 Lisp_Object/int mixup.
15866
15867 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15868
15869 * coding.c: Add many prototypes for static functions.
15870 (get_translation_table): Allow max_lookup to be NULL.
15871 (decode_coding, Ffind_coding_systems_region_internal)
15872 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15873 get_translation_table with max_lookup NULL.
15874
158752008-02-01 Kenichi Handa <handa@m17n.org>
15876
15877 * coding.c (get_translation_table): Declare it as Lisp_Object.
15878 (LOOKUP_TRANSLATION_TABLE): New macro.
15879 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15880 instead of CHAR_TABLE_REF.
15881
158822008-02-01 Kenichi Handa <handa@m17n.org>
15883
15884 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15885 annotation data format.
15886 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15887 Change arguments FROM and TO to single argument NCHARS. Change caller.
15888 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15889 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15890 (decode_coding_ccl, decode_coding_charset): Pay attention to
15891 coding->charbuf_used.
15892 (get_translation): New function.
15893 (produce_chars): New arguments translation_table and last_block.
15894 Translate characters here. Return number of carryover chars.
15895 Change caller.
15896 (produce_composition): New argument pos. Change caller.
15897 Adjust for the change of annotation data format.
15898 (produce_charset, produce_annotation): Likewise.
15899 (decode_coding, encode_coding): Don't call translate_chars.
15900 (consume_chars): New arg translation_table. Change caller.
15901 (translate_chars): Delete.
15902 (syms_of_coding): Make translation-table's number of extra slots 2.
15903
159042008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * search.c (simple_search): Fix setting this_pos_byte in backward
15907 search.
15908
15909 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15910 byte sequence.
15911 (detect_coding_ccl): Fix setting of the variable valids.
15912
159132008-02-01 Kenichi Handa <handa@m17n.org>
15914
15915 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15916
15917 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15918
15919 * editfns.c (Ftranslate_region_internal): Rename from
15920 Ftranslate_region. Accept a char-table in TABLE.
15921 (syms_of_editfns): Defsubr Stranslate_region_internal.
15922
15923 * xfaces.c (set_lface_from_font_name): If a font is specified for
15924 a frame, generate a fontset from the font.
15925 (build_scalable_font_name): If the scalable font is requested for
15926 a specific size, don't change that size.
15927 (try_font_list): Try a scalable font also in the case that a
15928 pattern string is specified.
15929
159302008-02-01 Kenichi Handa <handa@m17n.org>
15931
15932 * xfaces.c (Fface_font): New optional arg CHARACTER.
15933
159342008-02-01 Kenichi Handa <handa@m17n.org>
15935
15936 * charset.h (CHARSET_OFFSET): New macro.
15937
159382008-02-01 Kenichi Handa <handa@m17n.org>
15939
15940 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15941
15942 * fontset.c (fontset_face): Handle the case that repertory is a
15943 char-table.
15944 (find_font_encoding): Return nil for unknown encoding.
15945 (Fset_fontset_font): Ignore a font of unknown encoding.
15946
159472008-02-01 Kenichi Handa <handa@m17n.org>
15948
15949 * keymap.c (describe_vector): Handle default value of a char table.
15950
15951 * fontset.c (fontset_face): Handle fallback fonts correctly.
15952 (Ffontset_info): Return infomation about fallback fonts.
15953
159542008-02-01 Kenichi Handa <handa@m17n.org>
15955
15956 * fontset.c (FONTSET_DEFAULT): New macro.
15957 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15958 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15959 the case that it is nil.
15960 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15961 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15962
15963 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15964 subset or superset.
15965
159662008-02-01 Kenichi Handa <handa@m17n.org>
15967
15968 * emacs.c (main): Call init_charset after syms_of_XXX.
15969
15970 * charset.c (Vcharset_map_directory): Delete.
15971 (Vcharset_map_path): New variable.
15972 (load_charset_map_from_file): Use Vcharset_map_path instead.
15973 (init_charset): Initialize Vcharset_map_path.
15974 (syms_of_charset): Delete declaration of "charset-map-directory",
15975 add declaration of "charset-map-path".
15976
159772008-02-01 Kenichi Handa <handa@m17n.org>
15978
15979 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15980 ASCII only string.
15981
15982 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15983
15984 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15985 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15986
159872008-02-01 Kenichi Handa <handa@m17n.org>
15988
15989 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15990
15991 * coding.c (QCmnemonic, QCdefalut_char)
15992 (QCdecode_translation_table, QCencode_translation_table)
15993 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15994 (get_translation_table): Return a list of translation tables if
15995 necessary.
15996 (decode_coding): Call get_translation_table with ENCODEP 0.
15997 (char_encodable_p): If translation_table is non-nil, always call
15998 translate_char.
15999 (Fdefine_coding_system_internal): Accept list of translation
16000 tables as :encode-translation-table and :decode-translation-table.
16001 (Fcoding_system_put): New function.
16002 (syms_of_coding): Declare new symbols. Defsubr
16003 Scoding_system_put.
16004 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16005 typically JISX0212.
16006
16007 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16008 when the charset is superset type.
16009
16010 * character.c (translate_char): Accept list of translation tables.
16011
160122008-02-01 Kenichi Handa <handa@m17n.org>
16013
16014 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16015 (CODING_ATTR_TRANS_TBL): New macro.
16016
16017 * coding.c (get_translation_table): New function.
16018 (translate_chars): Fix the bug of skipping annotation data.
16019 (decode_coding, encode_coding): Utilize get_translation_table.
16020 (char_encodable_p, Funencodable_char_position): Translate char if
16021 necessary.
16022 (Ffind_coding_systems_region_internal)
16023 (Fcheck_coding_systems_region): Setup translation table for encode
16024 in a coding system attribute vector in advance.
16025 (Fdefine_coding_system_internal): Allow a symbol as translation
16026 table. For shift-jis type coding system, allow 4th charset.
16027
160282008-02-01 Kenichi Handa <handa@m17n.org>
16029
16030 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16031
16032 * xdisp.c (get_next_display_element): Pass -1 as POS to
16033 FACE_FOR_CHAR if displaying a C-string.
16034
160352008-02-01 Kenichi Handa <handa@m17n.org>
16036
16037 * composite.c (get_composition_id): Handle xoff and yoff in a
16038 composition rule.
16039
16040 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16041 (struct composition): New member lbearing and rbearing.
16042
16043 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16044 (x_get_glyph_overhangs): Handle a composition glyph.
16045 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16046
16047 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16048 composition glyph.
16049
160502008-02-01 Kenichi Handa <handa@m17n.org>
16051
16052 * print.c: Include charset.h.
16053 (Vprint_charset_text_property): New variable.
16054 (Qdefault): Extern it.
16055 (PRINT_STRING_NON_CHARSET_FOUND)
16056 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16057 (print_check_string_result): New variable.
16058 (print_check_string_charset_prop): New function.
16059 (print_prune_charset_plist): New variable.
16060 (print_prune_string_charset): New function.
16061 (print_object): Call print_prune_string_charset if
16062 Vprint_charset_text_property is not t.
16063 (print_interval): Print nothing if interval->plist is nil.
16064 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16065 variable. Init and staticpro print_prune_charset_plist.
16066
160672008-02-01 Kenichi Handa <handa@m17n.org>
16068
16069 * fontset.c (new_fontset_from_font_name): Use the specified font
16070 for all characters in the new fontset.
16071
16072 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16073 OBJECT args.
16074
16075 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16076 OBJECT args for composition too.
16077
16078 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16079 OBJECT args.
16080
160812008-02-01 Kenichi Handa <handa@m17n.org>
16082
16083 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16084
16085 * fontset.c (reorder_font_vector): Adjust for the change of
16086 FONT_DEF format.
16087 (fontset_face): New arg id. Change caller.
16088 (face_for_char): New args pos and object.
16089 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16090 (fs_query_fontset): Check NAME by Fassoc too.
16091 (Fset_fontset_font): Allow non-XLFD font name.
16092 (Ffontset_info): Adjust for the change of FONT_DEF format.
16093
16094 * fontset.h (face_for_char): Adjust prototype.
16095
16096 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16097 (append_space, extend_face_to_end_of_line)
16098 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16099 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16100
16101 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16102 POS and OBJECT args.
16103
16104 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16105 POS and OBJECT args.
16106
161072008-02-01 Jason Rumney <jasonr@gnu.org>
16108
16109 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16110 of GlobalAlloc'ed memory.
16111
161122008-02-01 Kenichi Handa <handa@m17n.org>
16113
16114 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16115
16116 * charset.h (charset_table_used): Delete extern.
16117
16118 * charset.c (charset_table_used): Make it static.
16119 (map_charset_chars): Fix args to c_function with.
16120
16121 * chartab.c (map_sub_char_table_for_charset): Fix args to
16122 c_function with.
16123
16124 * coding.h (enum coding_result_code): Delete
16125 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16126
16127 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16128 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16129 (Vlast_code_conversion_error): New variables.
16130 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16131 (ONE_MORE_BYTE): Record error if any instead of signaling an
16132 error. If non-ASCII multibyte char is found, return the negative
16133 value of the code. All callers changed to check it.
16134 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16135 (record_conversion_result): New function. Change all codes setting
16136 coding->result to call this function.
16137 (detect_coding_utf_8, decode_coding_utf_8)
16138 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16139 Don't use the local variable incomplete.
16140 (emacs_mule_char): Change the second arg to `const'.
16141 (decode_coding): Fix of flushing out unprocessed data.
16142 (make_conversion_work_buffer): Fix making of a work buffer.
16143 (decode_coding_object): Return coding->dst_object.
16144
16145 * fontset.c (set_fontset_font): Fix args.
16146
16147 * lisp.h (CHARACTERBITS): Define as 22.
16148
16149 * process.c (send_process): Be sure to set coding->src_multibyte.
16150
16151 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16152
161532008-02-01 Kenichi Handa <handa@m17n.org>
16154
16155 * xdisp.c (handle_auto_composed_prop): Give limit to
16156 Fnext_single_char_property_change.
16157
161582008-02-01 Kenichi Handa <handa@m17n.org>
16159
16160 * composite.c (syms_of_composite): Don't make the composition hash
16161 table weak.
16162
16163 * fontset.c (Fset_fontset_font): Fix docstring.
16164
16165 * lisp.h (detect_coding_system): Adjust prototype.
16166
16167 * fileio.c (kill_workbuf_unwind): Delete this function.
16168 (Finsert_file_contents): Adjust the call of detect_coding_system.
16169 Get conversion_buffer by code_conversion_save. Use the macro
16170 CODING_MAY_REQUIRE_DECODING. After decoding, update
16171 coding_system.
16172
16173 * coding.h (make_conversion_work_buffer): Delete extern.
16174 (code_conversion_save): Extern it.
16175
16176 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16177 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16178 (decode_coding_utf_8): Don't do eol converion.
16179 (detect_coding_utf_16): Check coding->src_chars, not
16180 coding->src_bytes. Add heuristics for those that have no signature.
16181 (decode_coding_emacs_mule, decode_coding_iso_2022)
16182 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16183 Don't do eol converion.
16184 (adjust_coding_eol_type): Return a new coding system.
16185 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16186 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16187 each change.
16188 (decode_coding): Pay attention to undo_list. Do eol conversion for
16189 all types of coding-systems (if necessary).
16190 (Vcode_conversion_work_buf_list): Delete it.
16191 (Vcode_conversion_reused_workbuf): Rename from
16192 Vcode_conversion_reused_work_buf.
16193 (Vcode_conversion_workbuf_name): New variable.
16194 (reused_workbuf_in_use): New variable.
16195 (make_conversion_work_buffer): Delete the arg DEPTH.
16196 (code_conversion_restore): Change argument to cons.
16197 (code_conversion_save): Delete the argument BUFFER. Change callers.
16198 (detect_coding_system): New argument src_chars. Change callers.
16199 Fix for utf-16 detection.
16200 (init_coding_once): Don't use ISO_carriage_return.
16201 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16202 reused_workbuf_in_use.
16203
162042008-02-01 Kenichi Handa <handa@m17n.org>
16205
16206 * keymap.c (store_in_keymap): Pay attention to the case that idx
16207 is a cons specifying a character range.
16208
162092008-02-01 Kenichi Handa <handa@m17n.org>
16210
16211 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16212 HANDLED_RECOMPUTE_PROPS.
16213
16214 * coding.c (Fdefine_coding_system_internal): Fix checking of
16215 ascii compatibility.
16216
162172008-02-01 Kenichi Handa <handa@m17n.org>
16218
16219 * charset.c (find_charsets_in_text): Delete unused locale variable.
16220 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16221
16222 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16223 Resync charset_list to Vemacs_mule_charset_list.
16224
16225 * keymap.c (store_in_keymap): Pay attention to the case that idx
16226 is a cons specifying a character range.
16227
162282008-02-01 Kenichi Handa <handa@m17n.org>
16229
16230 * composite.c (update_compositions): Bind inhibit-read-only, etc
16231 to t before calling remove-list-of-text-properties.
16232
16233 * print.c (print_object): Always print ASCII chars as is.
16234
162352008-02-01 Kenichi Handa <handa@m17n.org>
16236
16237 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16238
16239 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16240 is a char table.
16241
162422008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16245
162462008-02-01 Kenichi Handa <handa@m17n.org>
16247
16248 * xfaces.c (set_lface_from_font_name): Fix for the case that
16249 FONTNAME is not fontset name.
16250
162512008-02-01 Kenichi Handa <handa@m17n.org>
16252
16253 * fns.c (base64_encode_1): Fix previous change.
16254
162552008-02-01 Kenichi Handa <handa@m17n.org>
16256
16257 * fontset.c (set_fontset_font): New function.
16258 (Fset_fontset_font): If a font is specified for a charset, use
16259 map_charset_chars to store the font spec in a fontset.
16260
162612008-02-01 Kenichi Handa <handa@m17n.org>
16262
16263 * fontset.c (fontset_face): Create a fallback fontset on demand.
16264 (make_fontset): Don't create a fallback fontset here.
16265 (free_face_fontset): Free a fallback fontset (if any) too.
16266 (n_auto_fontsets): Delete this variable.
16267 (auto_fontset_alist): New variable.
16268 (new_fontset_from_font_name): Check auto_fontset_alist.
16269 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16270 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16271 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16272 Defsubr Sfontset_list_all.
16273
162742008-02-01 Kenichi Handa <handa@m17n.org>
16275
16276 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16277
162782008-02-01 Kenichi Handa <handa@m17n.org>
16279
16280 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16281
162822008-02-01 Kenichi Handa <handa@m17n.org>
16283
16284 * editfns.c (Fgoto_char): Fix docstring.
16285
162862008-02-01 Kenichi Handa <handa@m17n.org>
16287
16288 * insdel.c (insert_from_gap): Adjust intervals correctly.
16289
162902008-02-01 Jason Rumney <jasonr@gnu.org>
16291
16292 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16293 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16294 (w32_initialize): Try to load it.
16295 (x_get_font_repertory): Use it if available.
16296 (w32_encode_char): Add shortcut for unicode output.
16297
16298 * w32fns.c (w32_load_system_font): Default charset to -1.
16299 (x_to_w32_charset): Match all fonts for unicode.
16300 (w32_to_x_charset): New parameter matching. Don't return partial
16301 or wildcard charsets.
16302 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16303 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16304 (w32_to_x_font): Match charset to real charset.
16305 (enum_font_cb2): Always list unicode versions.
16306
16307 * makefile.w32-in (temacs): Increase EMHEAP.
16308
163092008-02-01 Jason Rumney <jasonr@gnu.org>
16310
16311 * w32term.c (w32_encode_char): New charset parameter.
16312 font_info.encoding becomes encoding_type.
16313 (x_get_font_repertory): New function. Warning: stub only!
16314 (x_new_font): Return quickly if font already set.
16315 (x_new_fontset): fontsetname parameter is Lisp_Object.
16316 Use new fs_query_fontset. Try new_fontset_from_font_name.
16317 Use fontset_name for return value.
16318
16319 * w32term.h: Declare x_get_font_repertory.
16320
16321 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16322 place of find_charset_in_text. Use encode_coding_object in place
16323 of encode_coding.
16324 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16325 decode_coding.
16326
16327 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16328 of x_new_fontset.
16329 (w32_load_system_font): Initialize charset as unicode.
16330 font_info.encoding becomes encoding_type.
16331 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16332 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16333 (syms_of_w32fns): Set get_font_repertory_func.
16334
16335 * w32console.c: Include character.h. Use terminal_encode_buffer
16336 from term.c.
16337 (write_glyphs): Use new version of encode_terminal_code. Use
16338 encode_coding_object in place of encode_coding.
16339
16340 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16341 encoding becomes encoding_type.
16342
16343 * term.c (terminal_encode_buffer): Make externally visible.
16344
16345 * makefile.w32-in: Add character.h dependancies.
16346 (character.o, chartab.o): New targets.
16347
163482008-02-01 Kenichi Handa <handa@m17n.org>
16349
16350 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16351 CODING_ID_EOL_TYPE.
16352
163532008-02-01 Andreas Schwab <schwab@suse.de>
16354
16355 * coding.c (produce_chars): Revert last change.
16356
163572008-02-01 Kenichi Handa <handa@m17n.org>
16358
16359 * charset.h (charset_unicode): Extern it.
16360
16361 * charset.c (string_xstring_p): Check by (C >= 0x100).
16362 (find_charsets_in_text): Change format of the arc CHARSETS. New
16363 arg MULTIBYTE.
16364 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16365 change of find_charsets_in_text.
16366 (Fsplit_char): Fix doc. Never return unknown.
16367
16368 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16369
16370 * coding.c (Fdefine_coding_system_alias): Update
16371 Vcoding_system_list.
16372
16373 * fontset.c (load_font_get_repertory): Pay attention to the case
16374 that ENCODING of a font is specified by a char-table.
16375
16376 * xterm.c (x_get_font_repertory): Handle the case that the
16377 encoding of font is other than Unicode.
16378
163792008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16382 if a character is encodable by the terminal coding system. If
16383 not, produces proper number of `?'s. Update
16384 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16385 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16386
163872008-02-01 Kenichi Handa <handa@m17n.org>
16388
16389 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16390 variables.
16391 (encode_terminal_code): Change argument. Encode multiple
16392 characters at once. Store the result of encoding in
16393 terminal_encode_buffer.
16394 (write_glyphs, insert_glyphs): Adjust for the change of
16395 encode_terminal_code.
16396 (term_init): Initialize terminal_encode_buffer and
16397 terminal_encode_buf_size.
16398
16399 * coding.c (consume_chars): If coding->src_object is nil, don't
16400 check annotation.
16401
164022008-02-01 Kenichi Handa <handa@m17n.org>
16403
16404 * character.c (char_string): Use ASCII_CHAR_P instead of
16405 SINGLE_BYTE_CHAR_P.
16406
164072008-02-01 Kenichi Handa <handa@m17n.org>
16408
16409 * xdisp.c (handle_auto_composed_prop): Check if the last
16410 characters of auto-composed region is newly composed with the
16411 following characters.
16412 (handle_composition_prop): Fix checking of point being inside
16413 composition.
16414
164152008-02-01 Kenichi Handa <handa@m17n.org>
16416
16417 * fns.c (concat): Don't change multibyteness of the result by
16418 concatenating an 8-bit character.
16419
16420 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16421 multibyteness of the result when newelt is an 8-bit character.
16422
164232008-02-01 Dave Love <fx@gnu.org>
16424
16425 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16426 EMACS_INT.
16427
16428 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16429
16430 * xfaces.c (face_numeric_value): Declare dim size_t.
16431 (Finternal_lisp_face_equal_p): Remove unused f.
16432
16433 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16434 (MATRIX_ROW): Remove unused vars.
16435 (draw_glyphs, x_insert_glyphs, fast_find_position)
16436 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16437 byte/char counts.
16438
16439 * regex.c (regex_compile): Remove unused var.
16440
16441 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16442
16443 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16444 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16445
16446 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16447
16448 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16449
16450 * fileio.c (Fwrite_region): Remove unused var.
16451
16452 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16453 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16454
16455 * composite.c (Fremove_list_of_text_properties): Declare.
16456
16457 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16458 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16459 (coding_inherit_eol_type): Remove unused attrs.
16460 (detect_coding): Cast arg of detect_eol.
16461
16462 * charset.c (syms_of_charset): Remove unused var p.
16463 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16464 byte/char counts.
16465
16466 * casetab.c (set_case_table): Remove unused var.
16467
16468 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16469 unused vars.
16470
164712008-02-01 Dave Love <fx@gnu.org>
16472
16473 * xterm.c (x_bitmap_mask): Declare.
16474
164752008-02-01 Dave Love <fx@gnu.org>
16476
16477 * xterm.c (x_term_init): Fix type error.
16478
16479 * lisp.h: Add Funibyte_char_to_multibyte.
16480
16481 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16482 (Fset_coding_system_priority): Doc fix.
16483
16484 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16485
16486 * indent.c (check_composition): Make start and end EMACS_INT.
16487
16488 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16489
16490 * xdisp.c (handle_composition_prop, check_point_in_composition):
16491 Make buffer positions EMACS_INT.
16492
16493 * composite.c (find_composition, run_composition_function)
16494 (update_compositions, Ffind_composition_internal): Make buffer
16495 positions EMACS_INT.
16496
16497 * composite.h (find_composition, update_compositions): Make
16498 position args EMACS_INT.
16499
16500 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16501
16502 * intervals.c (get_property_and_range):
16503 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16504
16505 * unexalpha.c: Don't include varargs.h.
16506
165072008-02-01 Dave Love <fx@gnu.org>
16508
16509 * coding.h (ENCODE_UTF_8): New.
16510
16511 * Makefile.in (gtkutil.o): Depend on coding.h.
16512
16513 * coding.c (Fset_coding_system_priority): Doc fix.
16514
165152008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16518 the case of auto saving.
16519
165202008-02-01 Andreas Schwab <schwab@suse.de>
16521
16522 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16523 `range' from GC.
16524
165252008-02-01 Kenichi Handa <handa@m17n.org>
16526
16527 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16528
165292008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * fileio.c (choose_write_coding_system): Return a decided coding system.
16532 (Fwrite_region): Set Vlast_coding_system_used to the return value
16533 of choose_write_coding_system.
16534
165352008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * charset.c (Fset_charset_priority): Pay attention to duplicated
16538 arguments.
16539
16540 * coding.c (QCcategory): New variable.
16541 (syms_of_coding): Defsym it. Set all elements of
16542 Vcoding_category_table and their symbol values.
16543 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16544 coding-category-XXX, and coding-category-list.
16545 (Fdefine_coding_system_internal): Add category in the plist.
16546
165472008-02-01 Kenichi Handa <handa@m17n.org>
16548
16549 * callproc.c (Fcall_process): Handle carryover correctly.
16550
16551 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16552 (raw_text_coding_system): Check NILP (coding_system).
16553 (coding_inherit_eol_type): Check NILP (coding_system) and
16554 NILP (parent).
16555 (consume_chars): Fix for the case of raw-text.
16556
16557 * process.c (read_process_output): Handle carryover correctly.
16558
165592008-02-01 Dave Love <fx@gnu.org>
16560
16561 * regex.c (re_search_2): Fix last change.
16562
165632008-02-01 Kenichi Handa <handa@m17n.org>
16564
16565 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16566 target_multibyte. Even in a unibyte case, return a converted
16567 multibyte char.
16568 (GET_CHAR_AFTER): New macro.
16569 (PATFETCH): Translate via multibyte char.
16570 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16571 (SETUP_MULTIBYTE_RANGE): New macro.
16572 (regex_compile): Setup compiled code so that its multibyteness
16573 matches that of a target. Fix the handling of "[X-YZ]" using
16574 SETUP_MULTIBYTE_RANGE.
16575 (analyse_first) <charset>: For filling fastmap for all multibyte
16576 characters, don't check by BASE_LEADING_CODE_P.
16577 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16578 the same as RE_MULTIBYTE_P (bufp) now.
16579 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16580 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16581 (TRANSLATE_VIA_MULTIBYTE): New macro.
16582 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16583 It is the same as RE_MULTIBYTE_P (bufp) now.
16584 <exactn>: Translate via multibyte.
16585 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16586 translate it.
16587 <charset, charset_not>: Fetch a character by
16588 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16589 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16590 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16591 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16592 by GET_CHAR_AFTER.
16593 (bcmp_translate): Likewise.
16594
16595 * search.c (compile_pattern): Check the member target_multibyte,
16596 not the member multibyte of buf.
16597
16598 * lread.c (read1): While reading a string, set force_singlebyte
16599 and force_multibyte correctly.
16600
16601 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16602 up of unibyte_to_multibyte_table.
16603
166042008-02-01 Kenichi Handa <handa@m17n.org>
16605
16606 * coding.c (setup_coding_system): If coding has
16607 post-read-conversion or pre-write-conversion, set
16608 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16609 respectively.
16610 (decode_coding_gap): Run post-read-conversion if any.
16611
16612 * fileio.c (Finsert_file_contents): Even if we read into a
16613 unibyte buffer, check if we must decode the result or not.
16614
166152008-02-01 Kenichi Handa <handa@m17n.org>
16616
16617 * coding.c (make_conversion_work_buffer): Change the work buffer
16618 name to the same one as that of Emacs 21.
16619
166202008-02-01 Kenichi Handa <handa@m17n.org>
16621
16622 * coding.h (make_conversion_work_buffer): Adjust prototype.
16623 (code_conversion_restore): Don't extern it.
16624
16625 * coding.c (detected_mask): Delete unused variable.
16626 (decode_coding_iso_2022): Pay attention to the byte sequence of
16627 CTEXT extended segment, and retain those bytes as is.
16628 (decode_coding_ccl): Delete unused variable `valids'.
16629 (setup_coding_system): Delete unused variable `category'.
16630 (consume_chars): Delete unused variable `category'. Make it work
16631 for non-multibyte case.
16632 (make_conversion_work_buffer): Change argument.
16633 (saved_coding): Delete unused variable.
16634 (code_conversion_restore): Don't check saved_coding->destination.
16635 (code_conversion_save): New function.
16636 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16637 instead of record_unwind_protect.
16638 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16639 (detect_coding_system): Delete unused variable `mask'.
16640 (Fdefine_coding_system_internal): Delete unused variable id.
16641
16642 * fileio.c (kill_workbuf_unwind): New function.
16643 (Finsert_file_contents): On replacing, call
16644 make_conversion_work_buffer with correct args, and call
16645 record_unwind_protect with the first arg kill_workbuf_unwind.
16646
16647 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16648
166492008-02-01 Kenichi Handa <handa@m17n.org>
16650
16651 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16652 (fontset_add): Fix for the case that TO is less than TO1.
16653 (Ffontset_info): Don't use fallback fontset on checking the
16654 default fontset.
16655 (dump_fontset): New function for debugging.
16656
16657 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16658 coding_type is Qcharset.
16659
166602008-02-01 Kenichi Handa <handa@m17n.org>
16661
16662 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16663 (map_char_table): Don't inherit the value from the parent on
16664 initializing VAL. Adjust for the above change.
16665
166662008-02-01 Kenichi Handa <handa@m17n.org>
16667
16668 * coding.c (Qsignature, Qendian): Delete these variables.
16669 (syms_of_coding): Don't initialize them.
16670 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16671 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16672 detect_info->found.
16673 (decode_coding_utf_16): Don't detect BOM here.
16674 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16675 is NOT utf_16_without_bom.
16676 (setup_coding_system): For a coding system of type utf-16, check
16677 if the attribute :endian is Qbig or not (not nil or not), and set
16678 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16679 (detect_coding): If coding type is utf-16 and BOM detection is
16680 required, detect it.
16681 (Fdefine_coding_system_internal): For a coding system of type
16682 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16683
166842008-02-01 Kenichi Handa <handa@m17n.org>
16685
16686 * coding.c (coding_set_source): Fix for the case that the current
16687 buffer is different from coding->src_object.
16688 (decode_coding_object): Don't use the conversion work buffer if
16689 DST_OBJECT is a buffer.
16690
166912008-02-01 Dave Love <fx@gnu.org>
16692
16693 * lread.c (read_emacs_mule_char) [len==2]: Index
16694 emacs_mule_charset correctly.
16695
166962008-02-01 Dave Love <fx@gnu.org>
16697
16698 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16699 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16700 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16701 treated specially.)
16702 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16703 (detected_mask): Remove Big5 bits.
16704
167052008-02-01 Kenichi Handa <handa@m17n.org>
16706
16707 The following changes are to make the font rescaling facility
16708 compatible with Emacs 21.
16709
16710 * xfaces.c (Vface_font_rescale_alist): Rename from
16711 Vface_resizing_fonts.
16712 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16713 (font_rescale_ratio): Rename from font_resizing_ratio.
16714 (split_font_name): Set font->rescale_ratio.
16715 (better_font_p): Pay attention to font->rescale_ratio.
16716 (build_scalable_font_name): Likewise. Change RESX, and RESY
16717 fields.
16718 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16719
167202008-02-01 Kenichi Handa <handa@m17n.org>
16721
16722 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16723 (Qutf_16_le): Remove these variables.
16724 (syms_of_coding): Don't DEFSYM them.
16725 (decode_coding_utf_16): Fix handling of BOM.
16726 (encode_coding_utf_16): Fix handling of BOM.
16727
167282008-02-01 Kenichi Handa <handa@m17n.org>
16729
16730 * fileio.c (Finsert_file_contents): On replacing, before decoding
16731 the file into the work buffer, set point of the work buffer to the end.
16732
167332008-02-01 Dave Love <fx@gnu.org>
16734
16735 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16736
167372008-02-01 Dave Love <fx@gnu.org>
16738
16739 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16740 and fix C types.
16741
167422008-02-01 Kenichi Handa <handa@m17n.org>
16743
16744 * xdisp.c (SKIP_GLYPHS): New macro.
16745 (set_cursor_from_row): Pay attention to string display properties.
16746
16747 * category.c (copy_category_entry): Fix for the case that RANGE
16748 is an integer.
16749
16750 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16751
16752 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16753
167542008-02-01 Kenichi Handa <handa@m17n.org>
16755
16756 * charset.c (Fcharset_id_internal): New function.
16757 (syms_of_charset): Defsubr it.
16758
16759 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16760 with the last arg charset_list acquired from coding.
16761 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16762 the attribute coding_attr_ccl_valids.
16763
16764 * coding.h (enum define_coding_ccl_arg_index): Set the first
16765 member coding_arg_ccl_decoder to coding_arg_max.
16766
16767 * ccl.h (ccl_driver): Adjust prototype.
16768
16769 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16770 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16771 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16772 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16773 last arg Qnil.
16774
167752008-02-01 Kenichi Handa <handa@m17n.org>
16776
16777 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16778 call encode_char.
16779
16780 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16781
167822008-02-01 Dave Love <fx@gnu.org>
16783
16784 * composite.c (syms_of_composite): Make composition_hash_table weak.
16785
167862008-02-01 Kenichi Handa <handa@m17n.org>
16787
16788 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16789 (font_name_registry): Don't extern them.
16790 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16791
16792 * fontset.h (Qfontset): Don't extern it.
16793 (new_fontset_from_font_name): Extern it.
16794
16795 * fontset.c: Give 8 extra slots to fontset objects.
16796 (Qfontset_info): New variable.
16797 (syms_of_fontset): Defsym it.
16798 (FONTSET_FALLBACK): New macro.
16799 (fontset_face): Try also the default fontset.
16800 (make_fontset): Realize a fallback fontset from the default fontset.
16801 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16802 using split_font_name_into_vector and build_font_name_from_vector.
16803 (Fset_fontset_font): Access the elements of font_spec by enum
16804 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16805 name by using split_font_name_into_vector.
16806 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16807 generate a proper font name from the fontset name. Update
16808 Vfontset_alias_alist.
16809 (n_auto_fontsets): New variable.
16810 (new_fontset_from_font_name): New function.
16811 (Ffont_info): Store the information about fonts generated from the
16812 default fontset in the first extra slot of the returned char-table.
16813
16814 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16815 (font_name_registry): Delete function.
16816 (split_font_name_into_vector): New function.
16817 (build_font_name_from_vector): New function.
16818 (font_list): The argument REGISTRY is now a list of registry names.
16819 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16820 specifies an explicit font name, return the name as is. Make a
16821 list of registy names.
16822
16823 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16824 of x_new_fontset.
16825 (Fx_create_frame): Don't call x_new_fontset here. Just use
16826 x_list_fonts to check the existence of fonts.
16827
16828 * xterm.h (x_new_fontset): Adjust prototype.
16829
16830 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16831 string. Use new_fontset_from_font_name to create a fontset from a
16832 font name.
16833
168342008-02-01 Kenichi Handa <handa@m17n.org>
16835
16836 * syntax.c (Vfind_word_boundary_function_table): New name for
16837 Vnext_word_boundary_function_table.
16838 (find-word-boundary-function-table): New name for
16839 next-word-boundary-function-table.
16840
168412008-02-01 Dave Love <fx@gnu.org>
16842
16843 * Makefile.in: Fix some dependencies.
16844
16845 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16846 set it to nil before returning.
16847
16848 * composite.c (update_compositions): Fix type error.
16849
16850 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16851
168522008-02-01 Kenichi Handa <handa@m17n.org>
16853
16854 * xterm.c (x_new_font): Optimize for the case that the font is
16855 already set for the frame.
16856
168572008-02-01 Kenichi Handa <handa@m17n.org>
16858
16859 * chartab.c (char_table_ascii): Check if the char table contents
16860 is sub-char-table or not.
16861 (char_table_set, char_table_set_range): Fix argument to
16862 char_table_ascii.
16863
16864 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16865 (detect_coding_utf_8, detect_coding_utf_16)
16866 (detect_coding_emacs_mule, detect_coding_iso_2022)
16867 (detect_coding_sjis, detect_coding_big5)
16868 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16869 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16870 sequence is valid in this coding system. Change callers.
16871 (MAX_ANNOTATION_LENGTH): New macro.
16872 (ADD_ANNOTATION_DATA): New macro.
16873 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16874 ADD_ANNOTATION_DATA. Change the format of annotation data.
16875 (ADD_CHARSET_DATA): New macro.
16876 (emacs_mule_char): New argument ID. Change callers.
16877 (decode_coding_emacs_mule, decode_coding_iso_2022)
16878 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16879 Produce charset annotation data in coding->charbuf.
16880 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16881 to charset annotation data in coding->charbuf.
16882 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16883 coding->common_flags if the coding system is iso-2022 based and
16884 uses designation.
16885 (produce_composition): Adjust for the new annotation data format.
16886 (produce_charset): New function.
16887 (produce_annotation): Handle charset annotation.
16888 (handle_composition_annotation, handle_charset_annotation): New
16889 functions.
16890 (consume_chars): Handle charset annotation. Utilize the above two
16891 functions.
16892 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16893 buffer, get the deleted text as a string and set
16894 coding->src_object to that string.
16895 (detect_coding, detect_coding_system): Use the new struct
16896 coding_detection_info.
16897
16898 * coding.h (struct coding_detection_info): New structure.
16899 (struct coding_system): Adjust prototype of the member `detector'.
16900 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16901
169022008-02-01 Kenichi Handa <handa@m17n.org>
16903
16904 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16905
169062008-02-01 Dave Love <fx@gnu.org>
16907
16908 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16909 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16910 to new local and nullify apropos_accumulate before returning.
16911 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16912
169132008-02-01 Kenichi Handa <handa@m17n.org>
16914
16915 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16916 correctly.
e3eea1fc 16917
aac0c6e3
MR
169182008-02-01 Dave Love <fx@gnu.org>
16919
16920 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16921
169222008-02-01 Kenichi Handa <handa@m17n.org>
16923
16924 The following changes are to make character composition happen
16925 automatically on displaying.
16926
16927 * Makefile.in (lisp, shortlisp): Add composite.elc.
16928
16929 * composite.h (Qauto_composed, Vauto_composition_function)
16930 (Qauto_composition_function): Extern them.
16931
16932 * composite.c (Vcomposition_function_table)
16933 (Qcomposition_function_table): Delete variables.
16934 (Qauto_composed, Vauto_composition_function)
16935 (Qauto_composition_function): New variables.
16936 (run_composition_function): Don't call
16937 compose-chars-after-function.
16938 (update_compositions): Clear `auto-composed' text property.
16939 (compose_chars_in_text): Delete this function.
16940 (syms_of_composite): Staticpro Qauto_composed and
16941 Qauto_composition_function. Declare Vauto_composition_function as
16942 a Lisp variable.
16943
16944 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16945
16946 * xdisp.c (it_props): Add an entry for Qauto_composed.
16947 (handle_auto_composed_prop): New function.
16948
16949 * xselect.c (selection_data_to_lisp_data): Don't call
16950 compose_chars_in_text.
16951
169522008-02-01 Dave Love <fx@gnu.org>
16953
16954 * keyboard.c (read_char): Modify checking around use of
16955 Vkeyboard_translate_table.
16956
16957 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16958 and fix C types.
16959
169602008-02-01 Kenichi Handa <handa@m17n.org>
16961
16962 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16963 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16964 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16965 the case that the last byte is '\r' correctly.
16966 (decode_coding): Flush out the unprocessed data correctly.
16967 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16968
169692008-02-01 Dave Love <fx@gnu.org>
16970
16971 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16972 Add XK_ISO... case.
16973 (xaw_scroll_callback): Revert last change.
16974
169752008-02-01 Kenichi Handa <handa@m17n.org>
16976
16977 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16978
169792008-02-01 Kenichi Handa <handa@m17n.org>
16980
16981 * xfaces.c (Vface_resizing_fonts): New variable.
16982 (struct font_name): New member `resizing_ratio'.
16983 (font_resizing_ratio): New function.
16984 (split_font_name): Set font->resizing_ratio.
16985 (better_font_p): Pay attention to font->resizing_ratio.
16986 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16987 RESX, and RESY fields.
16988 (try_alternative_families): Try scalable fonts if
16989 Vscalable_fonts_allowed is not Qt.
16990 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16991
169922008-02-01 Dave Love <fx@gnu.org>
16993
16994 * xterm.c (xaw_scroll_callback): Cast correctly.
16995
169962008-02-01 Dave Love <fx@gnu.org>
16997
16998 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16999 (lispy_kana_keys): Comment out.
17000 (make_lispy_event) [XK_kana_A]: Comment out.
17001
17002 * xterm.c (xaw_scroll_callback): Cast call_data.
17003 (XTread_socket): Deal with ASCII keysyms.
17004 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17005
170062008-02-01 Dave Love <fx@gnu.org>
17007
17008 * xterm.c (Vx_keysym_table): New.
17009 (syms_of_xterm): Initialize it.
17010 (XTread_socket): Use it.
17011 From head: Eliminate incorrect optimization that tried to avoid
17012 decoding the output of X*LookupString.
17013 (x_get_font_repertory): Delete charset declaration.
17014
170152008-02-01 Kenichi Handa <handa@m17n.org>
17016
17017 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17018 return 0.
17019 (Fdefine_coding_system_internal): Setup
17020 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17021
170222008-02-01 Dave Love <fx@gnu.org>
17023
17024 * coding.c (Fcheck_coding_system): Doc fix.
17025
17026 * editfns.c (Finsert_byte): Return a proper value.
17027
170282008-02-01 Kenichi Handa <handa@m17n.org>
17029
17030 * coding.c (decode_coding): Fix args to translate_chars. Pay
17031 attention to Vstandard_translation_table_for_decode.
17032 (encode_coding): Fix args to translate_chars. Pay attention to
17033 Vstandard_translation_table_for_encode.
17034
17035 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17036 SINGLE_BYTE_CHAR_P.
17037
17038 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17039 not by SINGLE_BYTE_CHAR_P.
17040
17041 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17042 SINGLE_BYTE_CHAR_P.
17043
17044 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17045 SINGLE_BYTE_CHAR_P.
17046
17047 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17048 by SINGLE_BYTE_CHAR_P.
17049
17050 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17051 SINGLE_BYTE_CHAR_P.
17052
170532008-02-01 Dave Love <fx@gnu.org>
17054
17055 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17056
170572008-02-01 Dave Love <fx@gnu.org>
17058
17059 * fns.c (Flanginfo): Fix typo.
17060
17061 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17062
170632008-02-01 Kenichi Handa <handa@m17n.org>
17064
17065 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17066 (detect_coding_emacs_mule, detect_coding_iso_2022)
17067 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17068 incomplete byte sequence. Don't update *mask when correctly detected.
17069 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17070 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17071 (detect_coding, detect_coding_system): Adjust for the changes above.
17072
170732008-02-01 Kenichi Handa <handa@m17n.org>
17074
17075 * character.c (char_string): Rename from
17076 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17077 (string_char): Rename from string_char.
17078
17079 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17080 if C is greater than MAX_3_BYTE_CHAR.
17081 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17082 string_char instead of string_char_with_unification.
17083
170842008-02-01 Dave Love <fx@gnu.org>
17085
17086 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17087
170882008-02-01 Kenichi Handa <handa@m17n.org>
17089
17090 * keymap.c (push_key_description): Pay attention to force_multibyte.
17091
17092 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17093
170942008-02-01 Dave Love <fx@gnu.org>
17095
17096 * charset.c (define_charset_internal): Rename `supprementary'.
17097
17098 * Makefile.in (lisp, shortlisp): Remove latin-N.
17099
171002008-02-01 Dave Love <fx@gnu.org>
17101
17102 * xfns.c (x_window, x_window): Use use_xim.
17103
17104 * xterm.c (use_xim): Initialize.
17105 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17106 (x_term_init): Maybe set use_xim.
17107
17108 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17109
171102008-02-01 Kenichi Handa <handa@m17n.org>
17111
17112 * search.c (search_buffer): Fix case-fold-search of multibyte
17113 characters.
17114 (boyer_moore): Rename the last argument to char_high_bits.
17115
171162008-02-01 Kenichi Handa <handa@m17n.org>
17117
17118 * xdisp.c (display_string): Fix for the case of zero width glyph.
17119
17120 * xfns.c (x_set_font): Change the error message of the case that
17121 x_new_fontset returns Qt.
17122
17123 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17124 (Finternal_set_lisp_face_attribute): Use signal_error for the
17125 error of invalid fontset.
17126
17127 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17128 fontset, return Qt.
17129
171302008-02-01 Dave Love <fx@gnu.org>
17131
17132 * unexelf.c (unexec): Make .got handling not SGI-specific.
17133
17134 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17135
17136 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17137
17138 * keyboard.c (read_key_sequence): Fix type error.
17139
17140 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17141 type error.
17142
17143 * fontset.c (fontset_add): Return Lisp_Object.
17144
171452008-02-01 Dave Love <fx@gnu.org>
17146
17147 * charset.h (charset_ordered_list_tick): Declare extern.
17148
171492008-02-01 Kenichi Handa <handa@m17n.org>
17150
17151 The following changes (and some of 2008-02-01 changes of mine) are
17152 for handling syntax, category, and case conversion for unibyte
17153 characters by converting them to multibyte on the fly. With these
17154 changes, we don't have to setup syntax and case tables for unibyte
17155 characters in each language environment.
17156
17157 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17158 multibyte if necessary.
17159
17160 * bytecode.c (Fbyte_code): Likewise.
17161
17162 * character.h (LEADING_CODE_LATIN_1_MIN)
17163 (LEADING_CODE_LATIN_1_MAX): New macros.
17164 (unibyte_to_multibyte_table): Extern it.
17165 (unibyte_char_to_multibyte): New macro.
17166 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17167 (CHAR_LEADING_CODE): New macro.
17168 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17169
17170 * character.c (unibyte_to_multibyte_table): New variable.
17171 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17172 (multibyte_char_to_unibyte): If C is an eight-bit character,
17173 convert it to the corresponding byte value.
17174
17175 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17176 not 1, signals an error. Update the elements of
17177 unibyte_to_multibyte_table.
17178 (init_charset_once): Initialize unibyte_to_multibyte_table.
17179 (syms_of_charset): Define the charset `iso-8859-1'.
17180
17181 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17182 as is without converting it to unibyte. In a unibyte buffer,
17183 convert C to multibyte before checking the syntax.
17184
17185 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17186
17187 * minibuf.c (Fminibuffer_complete_word): Use the macro
17188 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17189
17190 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17191
17192 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17193 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17194 that is zero, convert an eight-bit char to multibyte.
17195 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17196 non-emacs case.
17197 (PATFETCH): Convert an eight-bit char to multibyte.
17198 (HANDLE_UNIBYTE_RANGE): New macro.
17199 (regex_compile): Setup the compiled pattern for multibyte chars
17200 even if the given regex string is unibyte. Use PATFETCH_RAW
17201 instead of PATFETCH in many places. To handle `charset'
17202 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17203 only for ASCII chars.
17204 (analyse_first) <exactn>: Simplify because the compiled pattern
17205 is multibyte.
17206 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17207 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17208 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17209 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17210 multibyte always 1.
17211 (re_search_2): In emacs, set the locale variable multibyte to 1,
17212 otherwise to 0. New local variable target_multibyte. Check it
17213 to decide the multibyteness of STR1 and STR2. If
17214 target_multibyte is zero, convert unibyte chars to multibyte
17215 before translating and checking fastmap.
17216 (TARGET_CHAR_AND_LENGTH): New macro.
17217 (re_match_2_internal): In emacs, set the locale variable multibyte
17218 to 1, otherwise to 0. New local variable target_multibyte. Check
17219 it to decide the multibyteness of STR1 and STR2. Use
17220 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17221 <charset, charset_not>: If multibyte is nonzero, check fastmap
17222 only for ASCII chars. Call bcmp_translate with
17223 target_multibyte, not with multibyte.
17224 <begline>: Declare the local variable C as `unsigned'.
17225 (bcmp_translate): Change the last arg name to target_multibyte.
17226
17227 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17228 the regexp pattern and the matching target. Set cp->buf.multibyte
17229 to the multibyteness of the regexp pattern. Set
17230 cp->but.target_multibyte to the multibyteness of the matching target.
17231 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17232 FETCH_STRING_CHAR_ADVANCE.
17233 (Freplace_match): Convert unibyte chars to multibyte.
17234
17235 * syntax.c (char_quoted, back_comment, scan_words)
17236 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17237 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17238 unibyte chars to multibyte.
17239 (skip_chars): Delete the arg syntaxp, and move the code for
17240 handling syntaxes to skip_syntaxes. Change callers.
17241 Fix the case that the multibyteness of STRING and the current
17242 buffer doesn't match.
17243 (skip_syntaxes): New function.
17244 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17245 SINGLE_BYTE_CHAR_P.
17246
172472008-02-01 Kenichi Handa <handa@m17n.org>
17248
17249 * xfaces.c (QCfontset): New variable.
17250 (LFACE_FONTSET): New macro.
17251 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17252 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17253 (Finternal_set_lisp_face_attribute)
17254 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17255 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17256 check also LFACE_FONTSET_INDEX.
17257 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17258 attrs[LFACE_FONT_INDEX].
17259 (syms_of_xfaces): Intern and staticpro QCfontset.
17260
17261 * dispextern.h (enum lface_attribute_index): New member
17262 LFACE_FONTSET_INDEX.
17263
17264 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17265
172662008-02-01 Kenichi Handa <handa@m17n.org>
17267
17268 * coding.c (coding_set_destination): Fix coding->destination for
17269 the case converting a region.
17270 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17271 (encode_coding_object): Fix coding->dst_pos and
17272 coding->dst_pos_byte for the case converting a region.
17273
17274 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17275
17276 * character.h (BYTE8_STRING): New macro.
17277
17278 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17279
172802008-02-01 Kenichi Handa <handa@m17n.org>
17281
17282 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17283 characters by octal form.
17284
17285 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17286
17287 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17288 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17289 _fetch_multibyte_char_len.
17290 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17291
17292 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17293
17294 * casefiddle.c (casify_object): Simplify. Handle the case that
17295 the case conversion change the byte length.
17296 (casify_region): Likewise.
17297
17298 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17299
17300 * character.c (_fetch_multibyte_char_len): Delete this variable.
17301 (syms_of_character): Setup Vprintable_chars.
17302
17303 * editfns.c (Fchar_equal): Fix for the unibyte case.
17304 (Finsert_byte): New function.
17305 (syms_of_editfns): Defsubr it.
17306
17307 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17308 of direct code 0x3ffff.
17309
17310 * search.c (Freplace_match): Fix for the unibyte case.
17311
173122008-02-01 Kenichi Handa <handa@m17n.org>
17313
17314 * lread.c (safe_to_load_p): Fix the logic.
17315
17316 * syntax.c (scan_words): Don't treat characters belonging to
17317 different scripts as constituting a word.
17318
17319 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17320
17321 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17322
17323 * emacs.c (main): In the case of --unibyte, instead of aborting on
17324 finding non-empty buffer, make it unibyte.
17325
173262008-02-01 Kenichi Handa <handa@m17n.org>
17327
17328 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17329 to create a fontset.
17330
173312008-02-01 Dave Love <fx@gnu.org>
17332
17333 * character.c (Funibyte_char_to_multibyte): Doc fix.
17334
17335 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17336
173372008-02-01 Kenichi Handa <handa@m17n.org>
17338
17339 * fontset.c (fontset_add): Make the type `int'.
17340 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17341
17342 * character.c (unibyte_char_to_multibyte)
17343 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17344 charset_unibyte, not charset_primary.
17345
17346 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17347
17348 * charset.c (charset_unibyte): Rename from charset_primary.
17349 (Funibyte_charset): Rename from Fprimary_charset.
17350 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17351 (syms_of_charset): Adjust for the above changes.
17352
17353 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17354 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17355 it->multibyte_p is zero.
17356
17357 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17358 Delete extern.
17359
173602008-02-01 Kenichi Handa <handa@m17n.org>
17361
17362 * coding.c (Fdefine_coding_system_internal): Fix category setting
17363 for a coding system of type iso-2022.
17364
173652008-02-01 Kenichi Handa <handa@m17n.org>
17366
17367 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17368
173692008-02-01 Kenichi Handa <handa@m17n.org>
17370
17371 * syntax.c (Vnext_word_boundary_function_table): New variable.
17372 (next-word-boundary-function-table): Declare it as a Lisp variable
17373 in syms_of_syntax.
17374 (scan_words): Call functions in Vnext_word_boundary_function_table
17375 if any.
17376
17377 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17378
17379 * fontset.c (fs_load_font): If fontp->charset is not negative,
17380 return fontp without setting its members.
17381
173822008-02-01 Dave Love <fx@gnu.org>
17383
17384 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17385
17386 * m/sparc.h (HAVE_ALLOCA): Delete.
17387
17388 * s/irix6-5.h: Don't include strings.h.
17389 (bcopy, bzero, bcmp): Don't undef.
17390
17391 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17392
17393 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17394 (TIOCSIGSEND): Don't test IRIX6.
17395 (bcopy, bzero, bcmp): Define conditionally.
17396
173972008-02-01 Kenichi Handa <handa@m17n.org>
17398
17399 * buffer.c (Qas, Qmake, Qto): New variables.
17400 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17401 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17402
17403 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17404 we are inserting a process output into a multibyte buffer.
17405
17406 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17407 multibyte_char_to_unibyte.
17408
17409 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17410 by the primary charset, make it eight-bit char.
17411 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17412
17413 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17414 (charset_8_bit__control, charset_8_bit_graphic)
17415 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17416 (define_charset_internal): New function.
17417 (syms_of_charset): Call define_charset_internal for pre-defined
17418 charsets.
17419
17420 * charset.h (charset_8_bit): Extern it.
17421
17422 * coding.c (make_conversion_work_buffer): Adjust for the change
17423 of Fset_buffer_multibyte.
17424 (encode_coding_raw_text): Increment p0 in the loop.
17425
17426 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17427
17428 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17429 for the change of Fset_buffer_multibyte.
17430
17431 * fns.c (Fstring_to_multibyte): New function.
17432 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17433
174342008-02-01 Dave Love <fx@gnu.org>
17435
17436 * xfns.c (x_put_x_image): Declare args.
17437
17438 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17439 (try_font_list): Declare an arg.
17440
17441 * xdisp.c (message2_nolog, set_message): Declare an arg.
17442
17443 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17444
17445 * syntax.c (scan_sexps_forward): Declare an arg.
17446
17447 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17448 Declare an arg.
17449
17450 * lisp.h (Fnew_fontset): Declare.
17451
17452 * keymap.c (push_key_description): Call CHARACTERP correctly.
17453
17454 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17455 (face_for_char): Delete unused vars.
17456 (Fset_fontset_font): Doc fix. Delete unused vars.
17457
17458 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17459
17460 * composite.c (update_compositions): Declare arg.
17461
17462 * cm.c (calccost, cmgoto): Declare args.
17463
17464 * charset.c: Remove `emacs' conditional. Doc fixes.
17465 (map_char_table_for_charset): Declare.
17466
17467 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17468
17469 * ccl.c: Remove `emacs' conditional.
17470
174712008-02-01 Kenichi Handa <handa@m17n.org>
17472
17473 The following changes are to allow specifying multiple font
17474 patterns for a character range (specified by script or charset).
17475
17476 * Makefile.in (abbrev.o): Depend on syntax.h.
17477 (xfaces.o): Depend on charset.h.
17478
17479 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17480 SINGLE_BYTE_CHAR_P.
17481
17482 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17483
17484 * character.h (Vchar_script_table): Extern it.
17485
17486 * character.c (Vscript_alist): Delete.
17487 (Vchar_script_table, Qchar_script_table): New variable.
17488 (syms_of_character): Declare Vchar_script_table as a lisp variable
17489 and initialize it.
17490
17491 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17492 have property char-table-extra-slots, make no extra slot.
17493
17494 * dispextern.h (struct face): Delete member `charset'.
17495 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17496 SINGLE_BYTE_CHAR_P.
17497 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17498 Add prototypes.
17499 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17500 (generate_ascii_font_name): Rename from generate_ascii_font.
17501
17502 * fontset.h (get_font_repertory_func): New prototype.
17503 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17504 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17505
17506 * fontset.c (Qprepend, Qappend): New variables.
17507 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17508 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17509 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17510 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17511 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17512 (load_font_get_repertory): New functions.
17513 (fontset_set): Delete.
17514 (fontset_face): New arg FACE. Return face ID, not face.
17515 Complete re-write to handle new fontset structure. Change caller.
17516 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17517 (face_for_char): Don't call lookup_face.
17518 (make_fontset_for_ascii_face): New arg FACE.
17519 (fs_load_font): New arg CHARSET_ID. Don't check
17520 Vfont_encoding_alist here.
17521 (find_font_encoding): New function.
17522 (list_fontsets): Use STRINGP, not ! NILP.
17523 (accumulate_script_ranges): New function.
17524 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17525 re-written to handle new fontset structure.
17526 (Ffontset_font): Return a copy of element.
17527 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17528 docstring of font-encoding-alist.
17529
17530 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17531 (Fset_fotset_font): Fix arguments to 5.
17532
17533 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17534
17535 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17536 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17537 (highlight_trailing_whitespace): Adjust for the change of
17538 lookup_named_face.
17539
17540 * xfaces.c: Include charset.h.
17541 (load_face_font): Delete argument C. Change caller.
17542 (generate_ascii_font_name): Rename from generate_ascii_font.
17543 (font_name_registry): New function.
17544 (cache_face): Store ascii faces before non-ascii faces in buckets.
17545 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17546 Lookup only ascii faces.
17547 (lookup_non_ascii_face): New function.
17548 (lookup_named_face): Delete argument C. Change caller.
17549 (lookup_derived_face): Delete argument C. Change caller.
17550 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17551 a string, just call font_list with it.
17552 (choose_face_font): Delete arguments FACE and C. New arg
17553 FONT_SPEC. Change caller.
17554 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17555 Change caller.
17556 (realize_non_ascii_face): New function.
17557 (realize_x_face): Call load_face_font here.
17558 (realize_tty_face): Delete argument C. Change caller.
17559 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17560 get a face ID.
17561 (dump_realized_face): Don't print charset of FACE.
17562
17563 * xfns.c (x_set_font): Always call x_new_fontset and
17564 store_frame_parameter.
17565 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17566 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17567
17568 * xterm.h (x_get_font_repertory): Extern it.
17569
17570 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17571 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17572 it->multibyte_p is zero.
17573 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17574 (x_new_fontset): If FONTSETNAME doesn't match any existing
17575 fontsets, create a new one.
17576 (x_get_font_repertory): New function.
17577
175782008-02-01 Kenichi Handa <handa@m17n.org>
17579
17580 * coding.c (Ffind_coding_systems_region_internal): Detect an
17581 ASCII only string correctly.
17582
17583 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17584 version is 0.
17585
175862008-02-01 Kenichi Handa <handa@m17n.org>
17587
17588 * lread.c: Include "coding.h".
17589 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17590 (load_each_byte, unread_char): New variables.
17591 (readchar_backlog): Delete.
17592 (readchar): Return a character unless load_each_byte is nonzero.
17593 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17594 cons. If unread_char is not -1, simply return it.
17595 (unreadchar): Handle the case that readcharfun is
17596 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17597 (read_multibyte): Delete.
17598 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17599 (read_emacs_mule_char): New functions.
17600 (Fload): Even if the file doesn't have the extension ".elc", if
17601 safe_to_load_p returns a positive version number, assume that the
17602 file contains bytecompiled code. If the version is less than 22,
17603 load the file while decoding multibyte sequences by emacs-mule.
17604 (readevalloop): Don't use readchar_backlog.
17605 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17606 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17607 (read_escape): Delete the arg BYTEREP.
17608 (read1): Set load_each_byte to 1 temporarily while handling
17609 #@NUMBER. Don't call read_multibyte.
17610 (read_vector): Call Fread with a cons. If readcharfun is
17611 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17612 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17613 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17614 and Qload_force_doc_strings.
17615
176162008-02-01 Kenichi Handa <handa@m17n.org>
17617
17618 * xdisp.c (face_before_or_after_it_pos): Call
17619 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17620
176212008-02-01 Kenichi Handa <handa@m17n.org>
17622
17623 * character.h (TRAILING_CODE_P): New macro.
17624 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17625 (string_char_with_unification): Fix prototype.
17626 (Vscript_alist): Extern it.
17627
17628 * character.c (Vscript_alist): New variable.
17629 (string_char_with_unification, str_as_unibyte)
17630 (string_escape_byte8): Add `const' to local variables.
17631 (syms_of_character): Declare script-alist as a Lisp variable.
17632
17633 * charset.h (Vcharset_ordered_list): Extern it.
17634 (charset_ordered_list_tick): Extern it.
17635 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17636 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17637 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17638 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17639 (Funify_charset): Adjust for the change of Funify_charset.
17640
17641 * charset.c (charset_ordered_list_tick): New variable.
17642 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17643 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17644 deunify intead of unify a charset.
17645 (string_xstring_p): Add `const' to local variables.
17646 (find_charsets_in_text): Add `const' to arguments and local variables.
17647 (encode_char): Adjust for the change of Funify_charset. Fix
17648 detecting of invalid code.
17649 (Fset_charset_priority): Increment charset_ordered_list_tick.
17650 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17651 and TO_CODE.
17652
17653 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17654 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17655 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17656 (decode_coding_ccl, consume_chars)
17657 (Ffind_coding_systems_region_internal)
17658 (Fcheck_coding_systems_region): Add `const' to local variables.
17659
17660 * print.c (print_object): Use octal form for printing the
17661 contents of a bool vector.
17662
176632008-02-01 Dave Love <fx@gnu.org>
17664
17665 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17666 <version == 20>: Refuse to load.
17667
176682008-02-01 Dave Love <fx@gnu.org>
17669
17670 * fns.c: Move coding.h.
17671 (Qcodeset, Qdays, Qmonths): New.
17672 (concat): Use CHARACTERP instead of INTEGERP.
17673 (Flocale_codeset): Delete.
17674 (Flanginfo): New function.
17675 (syms_of_fns): Change accordingly.
17676
17677 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17678
176792008-02-01 Dave Love <fx@gnu.org>
17680
17681 * casetab.c (init_casetab_once, init_casetab_once): Fix
17682 CHAR_TABLE_SET call.
17683
17684 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17685
17686 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17687
17688 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17689 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17690 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17691
17692 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17693
17694 * coding.c (ENCODE_DESIGNATION, decode_eol)
17695 (make_conversion_work_buffer, code_conversion_restore)
17696 (Fdefine_coding_system_internal): Convert Lisp types.
17697 (code_conversion_restore): Use EQ, not ==.
17698 (Fencode_coding_string): Fix code_convert_string call.
17699
17700 * coding.h (code_convert_region): Fix prototype.
17701
17702 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17703
17704 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17705 (Ffontset_info): Convert Lisp types.
17706
17707 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17708
17709 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17710
17711 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17712
17713 * chartab.c: Include "...h", not <...h> in some cases.
17714
17715 * callproc.c (Fcall_process): Remove unused variables.
17716
177172008-02-01 Dave Love <fx@gnu.org>
17718
17719 * coding.c (Fset_coding_system_priority): Allow null arg list.
17720
177212008-02-01 Dave Love <fx@gnu.org>
17722
17723 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17724 (Fself_insert_and_exit): Use CHARACTERP.
17725
17726 * callproc.c (Fcall_process): Remove unused vars.
17727
17728 * xterm.c (XTread_socket): Add extra dead keysyms.
17729
17730 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17731
17732 * dispextern.h: Remove prototypes for redraw_frame,
17733 redraw_garbaged_frames.
17734
17735 * cmds.c (Fself_insert_command): Use CHARACTERP.
17736
17737 * chartab.c (make_sub_char_table): Remove unused var.
17738 (Fset_char_table_default, Fmap_char_table): Doc fix.
17739
17740 * keymap.c (access_keymap): Remove generic char code.
17741 (push_key_description): Use CHARACTERP.
17742
177432008-02-01 Dave Love <fx@gnu.org>
17744
17745 * charset.c: Doc fixes.
17746 (Funify_charset): Extra checking.
17747
177482008-02-01 Dave Love <fx@gnu.org>
17749
17750 * lread.c: Remove some unused variables.
17751 (safe_to_load_p): If safe, return the magic number version byte.
17752 (Fload): Maybe use load-with-code-conversion.
17753
177542008-02-01 Kenichi Handa <handa@m17n.org>
17755
17756 * category.c (Fmodify_category_entry): Don't modify the contents
17757 of category_set for characters out of the range. Avoid
17758 unnecessary modification.
17759
17760 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17761 Vchar_unify_table. The default value of the table is now nil.
17762
17763 * character.c (syms_of_character): Setup Vchar_width_table for
17764 eight-bit-control and raw-byte chars.
17765
17766 * charset.h (enum define_charset_arg_index): Delete
17767 charset_arg_parents and add charset_arg_subset and
17768 charset_arg_superset.
17769 (enum charset_attr_index): Delete charset_parents and add
17770 charset_subset and charset_superset.
17771 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17772 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17773 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17774 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17775 (CHARSET_SUPERSET): New macros.
17776 (charset_work): Extern it.
17777 (ENCODE_CHAR): Use charset_work.
17778 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17779 (map_charset_chars): Extern it.
17780
17781 * charset.c (load_charset_map): Set the default value of encoder
17782 and deunifier char-tables to nil.
17783 (map_charset_chars): Change argument. Change callers. Use
17784 map_char_table_for_charset instead of map_char_table.
17785 (Fmap_charset_chars): New optional args from_code and to_code.
17786 (Fdefine_charset_internal): Adjust for the change of
17787 `define-charset' (:parents -> :subset or :superset).
17788 (charset_work): New variable.
17789 (encode_char, syms_of_charset): Adjust for the change of
17790 Fdefine_charset_internal.
17791 (Ffind_charset_string): Setup the vector `charsets' correctly.
17792
17793 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17794 the previous change.
17795 (char_table_ref_and_range): Adjust for the above change.
17796 (map_sub_char_table_for_charset): New function.
17797 (map_char_table_for_charset): New function.
17798
17799 * keymap.c (describe_vector): Handle a char-table directly here.
17800 (describe_char_table): Delete.
17801
17802 * lisp.h (map_charset_chars): Delete.
17803
178042008-02-01 Dave Love <fx@gnu.org>
17805
17806 * fns.c (count_combining): Comment out (unused).
17807 (Flocale_codeset): New.
17808 (syms_of_fns): Defsubr it.
17809
17810 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17811 (size_t): Remove.
17812
178132008-02-01 Dave Love <fx@gnu.org>
17814
17815 * Makefile.in (chartab.o): Depend on charset.h.
17816
178172008-02-01 Kenichi Handa <handa@m17n.org>
17818
17819 * character.c (syms_of_character): Set the default value of
17820 Vprintable_chars to Qnil.
17821
178222008-02-01 Dave Love <fx@gnu.org>
17823
17824 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17825
178262008-02-01 Kenichi Handa <handa@m17n.org>
17827
17828 * charset.c (load_charset_map): Handle the case that from < to
17829 correctly.
17830
17831 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17832 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17833 Pay attention to raw-8-bit chars.
17834
178352008-02-01 Kenichi Handa <handa@m17n.org>
17836
17837 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17838 It is not bytecompiled now.
17839
17840 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17841 (charset_jisx0208): New variables.
17842 (Fdefine_charset_internal): Setup them if appropriate.
17843 (init_charset_once): Initialize them to -1.
17844
17845 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17846 (charset_jisx0208): Extern them.
17847
17848 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17849 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17850 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17851 (setup_iso_safe_charsets): Fix arguments to Fassq.
17852 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17853 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17854 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17855 (encode_coding_iso_2022): Change the 1st arg to
17856 ENCODE_ISO_CHARACTER to a variable.
17857
178582008-02-01 Kenichi Handa <handa@m17n.org>
17859
17860 * charset.h (enum define_charset_arg_index): New enums
17861 charset_arg_min_code and charset_arg_max_code.
17862 (struct charset): New member char_index_offset.
17863
17864 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17865 Take charset->char_index_offset into account.
17866 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17867 args[charset_arg_max_code]. Setup charset.char_index_offset.
17868 (syms_of_charset): Fix args to Fdefine_charset_internal.
17869
178702008-02-01 Dave Love <fx@gnu.org>
17871
17872 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17873
178742008-02-01 Dave Love <fx@gnu.org>
17875
17876 * coding.c: Doc fixes.
17877 (Fcoding_system_aliases): Fix return value.
17878 (Qmac): Remove (duplicated) definition.
17879
178802008-02-01 Dave Love <fx@gnu.org>
17881
362654a6
JB
17882 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17883 New functions.
aac0c6e3
MR
17884
17885 * character.c (Fstring): Doc fix.
17886
17887 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17888
362654a6 17889 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17890 (font-encoding-alist): Doc fix.
17891
178922008-02-01 Dave Love <fx@gnu.org>
17893
17894 * term.c (costs_set): Declare static, non-initialized for pcc.
17895 (encode_terminal_code): Remove unused var.
17896
17897 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17898 for K&R.
17899
17900 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17901
17902 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17903 (suffixes): Move out of make_subsidiaries for K&R.
17904
17905 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17906
17907 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17908
179092008-02-01 Dave Love <fx@gnu.org>
17910
17911 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17912
17913 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17914
179152008-02-01 Yong Lu <lyongu@asia-infonet.com>
17916
17917 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17918
17919 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17920
179212008-02-01 Kenichi Handa <handa@m17n.org>
17922
17923 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17924 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17925
179262008-02-01 Kenichi Handa <handa@m17n.org>
17927
17928 * coding.c (decode_coding_charset): Adjust for the change of
17929 Fdefine_coding_system_internal.
17930 (Fdefine_coding_system_internal): For a coding system of
17931 `charset' type, store a list of charset IDs in
17932 `charset_attr_charset_valids' element of coding attributes.
17933
179342008-02-01 Kenichi Handa <handa@m17n.org>
17935
17936 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17937 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17938 caller. Handle 2-byte and 3-byte charsets correctly.
17939 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17940 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17941 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17942 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17943 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17944 sequence.
17945 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17946 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17947 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17948 and alt&rule composition.
17949 (decode_coding_iso_2022): Handle composition correctly.
17950 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17951
17952 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17953 re-defining a charset. If the charset has :emacs-mule-id, setup
17954 emacs_mule_bytes.
17955 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17956
179572008-02-01 Kenichi Handa <handa@m17n.org>
17958
17959 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17960 (encode_coding_big5, encode_coding_charset): If coding requires safe
17961 encoding, produce a character specified by
17962 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17963
179642008-02-01 Dave Love <fx@gnu.org>
17965
17966 * xterm.c (XSetIMValues): Declare.
17967
17968 * process.c: Conditionally include sys/wait.h, pty.h.
17969
17970 * print.c (print_object): Fix print format for 64-bit systems.
17971
17972 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17973
17974 * buffer.c (emacs_strerror): Declare.
17975
17976 * fontset.c (Fclear_face_cache): Declare.
17977 (accumulate_font_info): Comment-out (unused).
17978 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17979 variables.
17980
17981 * character.h (string_escape_byte8): Declare.
17982
17983 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17984 unused vars.
17985 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17986 (Fmap_charset_chars): Doc fix.
17987
17988 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17989 (Fset_coding_system_priority, Fset_coding_system_priority)
17990 (Fdefine_coding_system_internal): Doc fix.
17991
179922008-02-01 Dave Love <fx@gnu.org>
17993
17994 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17995
179962008-02-01 Kenichi Handa <handa@m17n.org>
17997
17998 * character.c (string_escape_byte8): Make multibyte string with
17999 correct size.
18000
18001 * charset.c (Fmake_char): Delete unnecessary code.
18002
180032008-02-01 Kenichi Handa <handa@m17n.org>
18004
18005 * xfns.c (x_encode_text): Allocate coding.destination here, and
18006 call encode_coding_object with dst_object Qnil.
18007
18008 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18009 multibyte form correctly.
18010
18011 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18012 against Vfont_encoding_alist.
18013
18014 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18015 handling of charset list.
18016 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18017 (decode_coding_object): Move point to coding->dst_pos before
18018 calling post-read-conversion function.
18019 (encode_coding_object): Give correct arguments to
18020 pre-write-conversion. Ignore the return value of
18021 pre-write-conversion function. Pay attention to the case that
18022 pre-write-conversion changes the current buffer. If dst_object is
18023 Qt, even if coding->src_bytes is zero, allocate at least one byte
18024 to coding->destination.
18025
18026 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18027
18028 * charset.c (Fmake_char): Make it more backward compatible.
18029 (Fmap_charset_chars): Fix docstring.
18030
180312008-02-01 Dave Love <fx@gnu.org>
18032
18033 * coding.c: Doc fixes.
18034 (Fdefine_coding_system_alias): Use names, not symbols, in
18035 coding-system-alist.
18036
180372008-02-01 Kenichi Handa <handa@m17n.org>
18038
18039 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18040 of calling free_realized_face.
18041
180422008-02-01 Yong Lu <lyongu@asia-infonet.com>
18043
18044 * charset.c (read_hex): Don't treat SPC as a comment starter.
18045 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18046 (Fdecode_char): Fix typo.
18047
180482008-02-01 Kenichi Handa <handa@m17n.org>
18049
18050 * charset.h (struct charset): New member `code_space_mask'.
18051
18052 * coding.c (coding_set_source): Delete the local variable beg_byte.
18053 (encode_coding_charset, Fdefine_coding_system_internal):
18054 Delete the local variable charset.
18055 (Fdefine_coding_system_internal): Setup
18056 attrs[coding_attr_charset_valids] correctly.
18057
18058 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18059 member to check if CODE is valid or not.
18060 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18061 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18062 is within the range of charset->min_code and carset->max_code.
18063
180642008-02-01 Dave Love <fx@gnu.org>
18065
18066 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18067
18068 * dispextern.h (generate_ascii_font): Fix return type.
18069
18070 * xfaces.c (generate_ascii_font): Fix arg declaration.
18071
18072 * coding.c (coding_inherit_eol_type)
18073 (Fset_terminal_coding_system_internal)
18074 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18075
180762008-02-01 Kenichi Handa <handa@m17n.org>
18077
18078 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18079 multiple charsets correctly.
18080
180812008-02-01 Kenichi Handa <handa@m17n.org>
18082
18083 * search.c (boyer_moore): Fix handling of multibyte character
18084 translation.
18085
18086 * xdisp.c (display_mode_element): When the variable `elt' is
18087 changed, update `this' and `lisp_string'.
18088
180892008-02-01 Kenichi Handa <handa@m17n.org>
18090
18091 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18092
18093 * callproc.c (Fcall_process): Be sure to give the current buffer
18094 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18095
18096 * charset.c (struct charset_map_entries): New struct.
18097 (load_charset_map): Rename from parse_charset_map. New args
18098 entries and n_entries. Change caller.
18099 (load_charset_map_from_file): Rename from load_charset_map.
18100 Change caller. New arg control_flag. Call load_charset_map at
18101 the tail.
18102 (load_charset_map_from_vector): New function.
18103 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18104 (encode_char): If the charset is compact, change a character index
18105 to a code point.
18106
18107 * coding.c (coding_alloc_by_making_gap): Check the case that the
18108 source and destination are the same correctly.
18109 (decode_coding_raw_text): Set coding->consumed_char and
18110 coding->consumed to 0.
18111 (produce_chars): If coding->chars_at_source is nonzero, update
18112 coding->consumed_char and coding->consumed before calling
18113 alloc_destination.
18114 (Fdefine_coding_system_alias): Register ALIAS in
18115 Vcoding_system_alist.
18116 (syms_of_coding): Define `no-conversion' coding system at the tail.
18117
18118 * fileio.c (Finsert_file_contents): Set coding_system instead of
18119 val. If the current buffer is multibyte, always call
18120 decode_coding_gap.
18121
18122 * xfaces.c (try_font_list): Give higher priority to fontset's
18123 family than face's family.
18124
181252008-02-01 Kenichi Handa <handa@m17n.org>
18126
18127 * callproc.c (Fcall_process): Be sure to give the current buffer
18128 to decode_coding_c_string.
18129
18130 * xfaces.c (try_font_list): Give a family specified in a fontset
18131 higher priority than a family specified in a face.
18132
181332008-02-01 Kenichi Handa <handa@m17n.org>
18134
18135 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18136 Fix arguments to insert_from_buffer.
18137
18138 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18139
181402008-02-01 Kenichi Handa <handa@m17n.org>
18141
18142 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18143 (decode_coding_gap): Set coding->dst_multibyte correctly.
18144
181452008-02-01 Kenichi Handa <handa@m17n.org>
18146
18147 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18148 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18149 (encode_coding_utf_16): Substitute coding->default_char for
18150 non-Unicode characters.
18151 (decode_coding): Don't call record_insert here.
18152 (setup_coding_system): Initialize `surrogate' of
18153 coding->spec.utf_16 to 0.
18154 (EMIT_ONE_BYTE): Fix for multibyte case.
18155
18156 * insdel.c (insert_from_gap): Call record_insert.
18157
181582008-02-01 Kenichi Handa <handa@m17n.org>
18159
18160 * casefiddle.c (casify_region): Fix multibyte case.
18161
18162 * character.c (c_string_width): Add return type `int'.
18163 (char_string_with_unification): Delete arg ADVANCED.
18164
18165 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18166 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18167 (CHAR_STRING_ADVANCE): Make it do-while statement.
18168
18169 * chartab.c (sub_char_table_set_range): Optimize for the case
18170 DEPTH == 3. Add workaround code for a GCC optimization bug.
18171
18172 * charset.c (parse_charset_map): Remove an unused variable.
18173
18174 * coding.c: Delete unused variables.
18175
18176 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18177 earlier. If inserted is zero and the coding system doesn't
18178 require flushing, don't call decode_coding_gap.
18179
18180 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18181
181822008-02-01 Kenichi Handa <handa@m17n.org>
18183
18184 The following changes are for using Unicode as an internal
18185 character model, and use UTF-8 format for buffer/string
18186 representation.
18187
18188 * .gdbinit (xchartable): Adjust for the change of char table structure.
18189 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18190
18191 * Makefile.in (obj): Add character.o and chartab.o.
18192 (lisp, shortlisp): Remove utf-8.elc.
18193 (*.o): For many files, change dependency on charset.h to
18194 character.h, and add dependency on character.h.
18195 (character.o, chartab.o): New targets.
18196
18197 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18198 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18199 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18200 of "charset.h".
18201
18202 * dired.c, filelock.c: Include "character.h".
18203
18204 * alloc.c: Include "character.h" instead of "charset.h".
18205 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18206 (syms_of_alloc): Remove defsubr for Smake_char_table.
18207
18208 * buffer.c: Include "character.h" instead of "charset.h", don't
18209 include "coding.h".
18210 (Fset_buffer_multibyte): Adjust for UTF-8.
18211
18212 * buffer.h: EXFUN Fbuffer_live_p.
18213
18214 * callproc.c: Include "character.h" instead of "charset.h".
18215 (Fcall_process): Big change for the new code-conversion APIs.
18216
18217 * casetab.c: Include "character.h" instead of "charset.h".
18218 (set_canon, set_identity, shuffle): Adjust for the new
18219 map_char_table spec.
18220 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18221 accessing the char table structure.
18222
18223 * chartab.c: New file that implements char table.
18224
18225 * category.c: Include "character.h".
18226 (copy_category_entry): New function.
18227 (copy_category_table): Call map_char_table and copy_category_entry.
18228 (Fmake_category_table): Initialize all top-level slots.
18229 (char_category_set): New function.
18230 (modify_lower_category_set): Delete.
18231 (Fmodify_category_entry): Call char_table_ref_and_range.
18232
18233 * category.h (CATEGORY_SET): Just call char_category_set.
18234
18235 * ccl.c: Include "character.h".
18236 (Qccl, Qcclp): New variables.
18237 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18238 it's less than 256.
18239 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18240 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18241 and DST type.
18242 (ccl_driver): Change types of argument, adjust code accordingly.
18243 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18244 ccl_driver.
18245 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18246
18247 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18248 New members src_multibyte, dst_multibyte, consumed, and produced.
18249 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18250 (CODING_SPEC_CCL_PROGRAM): New macro.
18251 (ccl_driver): Update prototype.
18252 (Qccl, Qcclp, Fccl_program_p): Extern them.
18253 (CHECK_CCL_PROGRAM): New macro.
18254
18255 * character.c, character.h, chartab.c: New files.
18256
18257 * charset.c: Mostly re-written. Move character and multibyte sequence
18258 handling codes to character.c.
18259
18260 * charset.h: Mostly re-written. Move character and multibyte sequence
18261 handling codes to character.h.
18262
18263 * coding.c, coding.h: Mostly re-written.
18264
18265 * composite.c: Include "character.h" instead of "charset.h".
18266 (CHAR_WIDTH): Move to character.h.
18267 (HASH_KEY, HASH_VALUE): Delete.
18268
18269 * composite.h (enum composition_method): Change order of enumeration
18270 symbols.
18271
18272 * data.c: Include "character.h" instead of "charset.h".
18273 (Faref): Call CHAR_TABLE_REF for a char table.
18274 (Faset): Call CHAR_TABLE_SET for a char table.
18275
18276 * dispextern.h (free_realized_face, check_face_attribytes)
18277 (generate_ascii_font): Extern them.
18278 (free_realized_multibyte_face): Delete extern.
18279
18280 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18281 table structure.
18282
18283 * editfns.c: Include "character.h" instead of "charset.h".
18284 (Fchar_to_string): Always call CHAR_STRING.
18285
18286 * emacs.c (main): Call init_charset_once, init_charset,
18287 syms_of_chartab, and syms_of_character.
18288
18289 * fileio.c: Include "character.h" instead of "charset.h".
18290 (Finsert_file_contents): Big change for the new code-conversion API.
18291 (choose_write_coding_system, Fwrite_region): Likewise.
18292 (build_annotations_2): Delete.
18293 (e_write): Big change for the new code-conversion API.
18294
18295 * fns.c: Include "character.h" instead of "charset.h".
18296 (copy_sub_char_table): Move to chartab.c.
18297 (Fcopy_sequence): Call copy_char_table for a char table.
18298 (concat): Delete codes calling count_multibyte.
18299 (string_char_to_byte, string_byte_to_char): Adjust for the new
18300 multibyte form.
18301 (internal_equal): Adjust for the change of char table structure.
18302 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18303 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18304 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18305 (char_table_translate, optimize_sub_char_table)
18306 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18307 chartab.c.
18308 (char_table_ref_and_index): Delete.
18309 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18310 (Fmd5): Call preferred_coding_system instead of accessing
18311 Vcoding_category_list. Adjust for the new code-conversion API.
18312 (syms_of_fns): Move defsubr for char table related functions to
18313 chartab.c.
18314
18315 * fontset.c: Mostly re-written.
18316
18317 * fontset.h (struct font_info): Change type of the member encoding_type.
18318 (enum FONT_SPEC_INDEX): New enum.
18319 (fontset_font_pattern, fs_load_font): Update prototype.
18320 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18321
18322 * indent.c: Include "character.h" instead of "charset.h".
18323 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18324
18325 * insdel.c: Include "character.h" instead of "charset.h".
18326 (copy_text): Don't refer to Vnonascii_translation_table.
18327 (insert_from_gap): New function.
18328
18329 * keyboard.c: Include "character.h" instead of "charset.h".
18330 (command_loop_1): Never call direct_output_forward_char before
18331 a non-ASCII character.
18332 (read_char): If Vkeyboard_translate_table is a char table, always
18333 translate a character.
18334
18335 * keymap.c: Include "character.h".
18336 (store_in_keymap): Handle the case that IDX is a cons.
18337 (Fdefine_key): Handle the case that KEY is a cons and the car part
18338 is also a cons (range).
18339 (push_key_description): Adjust for the new character code.
18340 (describe_vector): Call describe_char_table for a char table.
18341 (describe_char_table): New function.
18342
18343 * keymap.h (describe_char_table): Extern it.
18344
18345 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18346 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18347 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18348 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18349 Delete.
18350 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18351 structure.
18352 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18353 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18354 (CHARTAB_SIZE_BITS_3): New macros.
18355 (chartab_size): Extern it.
18356 (struct Lisp_Char_Table): Re-design.
18357 (struct Lisp_Sub_Char_Table): New structure.
18358 (HASH_KEY, HASH_VALUE): Move from fns.c.
18359 (CHARACTERBITS): Define as 22.
18360 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18361 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18362 (GC_SUB_CHAR_TABLE_P): New macro.
18363 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18364 (code_convert_string_norecord): Deleted extern.
18365 (init_character_once, syms_of_character, init_charset)
18366 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18367
18368 * lread.c: Include "character.h".
18369 (read_multibyte): New arg NBYTES.
18370 (read_escape): Change the meaning of returned *BYTEREP.
18371 (to_multibyte): Delete.
18372 (read1): Adjust the handling of char table and string.
18373
18374 * print.c: Include "character.h" instead of "charset.h".
18375 (print_string): Convert 8-bit raw bytes to octal form by
18376 string_escape_byte8.
18377 (print_object): Adjust for the new multibyte form. Print 8-bit
18378 raw bytes always in octal form. Handle sub char table correctly.
18379
18380 * process.c: Include "character.h" instead of "charset.h".
18381 (read_process_output, send_process): Adjust for the new
18382 code-conversion API.
18383
18384 * puresize.h (BASE_PURESIZE): Increase.
18385
18386 * regex.c: Include "character.h" instead of "charset.h".
18387 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18388 (regex_compile): Accept a range whose starting and ending
18389 character have different leading bytes.
18390 (analyse_first): Adjust for the above change.
18391
18392 * search.c: Include "character.h" instead of "charset.h".
18393 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18394 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18395
18396 * syntax.c: Include "character.h" instead of "charset.h".
18397 (syntax_parent_lookup): Delete.
18398 (Fmodify_syntax_entry): Accept a cons as CHAR.
18399 (skip_chars): Adjust for the new multibyte form.
18400 (init_syntax_once): Call char_table_set_range instead of directly
18401 accessing the structure of a char table.
18402
18403 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18404 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18405 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18406 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18407
18408 * term.c: Include "buffer.h" and "character.h".
18409 (encode_terminal_code, write_glyphs): Adjust for the new
18410 code-conversion API.
18411 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18412
18413 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18414
18415 * xdisp.c: Include "character.h".
18416 (get_next_display_element): Adjust for the new multibyte form.
18417 (disp_char_vector): Adjust for the new char table structure.
18418 (decode_mode_spec_coding): Adjust for the new structure of
18419 coding system.
18420 (decode_mode_spec): Adjust for the new code-conversion API.
18421
18422 * xfaces.c: Include "character.h" instead of "charset.h".
18423 (load_face_font): Adjust for the change of choose_face_font and
18424 FS_LOAD_FONT.
18425 (generate_ascii_font): New function.
18426 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18427 (set_font_frame_param): Adjust for the change of choose_face_font.
18428 (free_realized_face): Make it public.
18429 (free_realized_faces_for_fontset): Rename from
18430 free_realized_multibyte_face. Free also faces realized for ASCII.
18431 (choose_face_font): Change arguments. Adjust for the change of
18432 fontset_font_pattern and FS_LOAD_FONT.
18433
18434 * xfns.c: Include "character.h".
18435 (x_encode_text): Adjust for the new code-conversion API.
18436
18437 * xselect.c: Don't include "charset.h".
18438 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18439
18440 * xterm.c: Include "character.h".
18441 (x_encode_char): New argument CHARSET. Change caller.
18442 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18443 Call ENCODE_CHAR instead of SPLIT_CHAR.
18444 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18445 CHAR_WIDTH instead of CHARSET_WIDTH.
18446 (XTread_socket): Adjust for the new code-conversion API.
18447 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18448 (x_load_font): Adjust for the change of struct font.
18449
184502008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18451
18452 * xfaces.c (face_at_buffer_position): Remove unused vars.
18453
184542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18455
18456 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18457 Fix overflow checking.
18458
184592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18460
18461 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18462 Cancel previous change.
18463
184642008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18465
18466 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18467 ccl->eight_bit_control. Fix check for buffer overflow.
18468 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18469 (ccl_driver): Initialize extra_bytes to 0.
18470
184712008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18472
18473 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18474 return it ORed with ctrl_modifier.
18475
184762008-01-29 Miles Bader <miles@gnu.org>
18477
18478 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18479
184802008-01-28 Jason Rumney <jasonr@gnu.org>
18481
18482 * w32.c (stat): Don't double check for networked drive.
18483
184842008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18485
18486 * window.c (run_window_configuration_change_hook): New function.
18487 Code extracted from set_window_buffer. Set the selected frame.
18488 (set_window_buffer): Use it.
18489 * window.h (run_window_configuration_change_hook): Declare.
18490 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18491
18492 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18493
184942008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18495
18496 * Makefile.in: Remove references to unused macros.
18497
184982008-01-26 Eli Zaretskii <eliz@gnu.org>
18499
18500 * w32.c (g_b_init_get_sid_sub_authority)
18501 (g_b_init_get_sid_sub_authority_count): New static variables.
18502 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18503 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18504 (init_user_info): Use them to retrieve uid and gid.
18505 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18506 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18507 st_uid and st_gid of the file.
18508
185092008-01-26 Jason Rumney <jasonr@gnu.org>
18510
18511 * w32.c (logon_network_drive): New function.
18512 (stat): Use it.
18513
185142008-01-26 Chong Yidong <cyd@stupidchicken.com>
18515
18516 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18517 invisible text covered with an ellipsis.
18518
185192008-01-25 Richard Stallman <rms@gnu.org>
18520
18521 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18522 jump back to beginning. Move some other initializations after that.
18523 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18524 New variables.
18525 (syms_of_xdisp): Init them.
18526
18527 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18528
18529 * buffer.c (reset_buffer_local_variables):
18530 Implement `permanent-local-hook'.
18531 (Qpermanent_local_hook): New variable.
18532 (syms_of_buffer): Init and staticpro it.
18533
185342008-01-25 Michael Albinus <michael.albinus@gmx.de>
18535
18536 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18537
185382008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18539
18540 * fns.c (Fclrhash): Return TABLE.
18541
185422008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18543
18544 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18545 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18546 is set even without positional changes.
18547 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18548
18549 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18550
185512008-01-23 Jason Rumney <jasonr@gnu.org>
18552
18553 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18554
18555 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18556 the unicode range available in MULE by locale-coding-system.
18557 Improve dbcs lead byte detection. Set event timestamp and modifiers
18558 earlier.
18559
185602008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18561
18562 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18563 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18564 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18565 when used on child processes.
18566
185672008-01-21 Michael Albinus <michael.albinus@gmx.de>
18568
18569 * dbusbind.c (Fdbus_method_return_internal): Rename from
18570 Fdbus_method_return.
18571 (Fdbus_unregister_object): Move to dbus.el.
18572 (Fdbus_call_method, Fdbus_method_return_internal)
18573 (Fdbus_send_signal): Improve debug messages.
18574
185752008-01-20 Martin Rudalics <rudalics@gmx.at>
18576
18577 * undo.c (undo_inhibit_record_point): New variable.
18578 (syms_of_undo): Initialize it.
18579 (record_point): Don't record point when undo_inhibit_record_point
18580 is set.
18581
185822008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18583
18584 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18585
18586 * xdisp.c (Qauto_hscroll_mode): New var.
18587 (syms_of_xdisp): Initialize it.
18588 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18589 window's buffer.
18590 (hscroll_windows): Don't check automatic_hscrolling_p here.
18591
18592 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18593 vscroll if we're setting window-buffer to the value it already has.
18594
185952008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18596
18597 * m/intel386.h: Remove references to XENIX.
18598
185992008-01-17 Andreas Schwab <schwab@suse.de>
18600
18601 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18602 instead of HAVE_X86_64_LIB64_DIR.
18603 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18604
186052008-01-17 Glenn Morris <rgm@gnu.org>
18606
18607 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18608 to HAVE_X86_64_LIB64_DIR.
18609
186102008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18611
18612 * s/irix3-3.h:
18613 * s/irix4-0.h:
18614 * s/386-ix.h:
18615 * s/domain.h:
18616 * s/hpux9-x11r4.h:
18617 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18618
18619 * sysdep.c: Remove code containing references to symbols defined
18620 by unsupported systems.
18621
186222008-01-16 Glenn Morris <rgm@gnu.org>
18623
18624 * coding.c (select-safe-coding-system-function): Doc fix.
18625
186262008-01-15 Glenn Morris <rgm@gnu.org>
18627
18628 * config.in: Revert 2008-01-13 change: this is a generated file.
18629
186302008-01-13 Tom Tromey <tromey@redhat.com>
18631
18632 * lisp.h: Fix typo.
18633
186342008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18635
18636 * m/sequent-ptx.h:
18637 * m/sequent.h:
18638 * s/ptx.h:
18639 * s/ptx4-2.h:
18640 * s/ptx4.h: Remove files for systems no longer supported.
18641
18642 * callproc.c (Fcall_process): Fix previous change.
18643
186442008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18645
18646 * unexsunos4.c: Remove file, system not supported anymore.
18647
18648 * m/mips.h:
18649 * m/intel386.h:
18650 * callproc.c:
18651 * config.in:
18652 * ecrt0.c:
18653 * emacs.c:
18654 * fileio.c:
18655 * frame.c:
18656 * getpagesize.h:
18657 * keyboard.c:
18658 * lread.c:
18659 * process.c:
18660 * puresize.h:
18661 * sysdep.c:
18662 * systty.h:
18663 * syswait.h:
18664 * unexec.c:
18665 * xdisp.c:
18666 * alloc.c: Remove code containing references to symbols defined by
18667 unsupported systems.
18668
186692008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18670
18671 * coding.c (detect_coding_mask): Fix previous change.
18672
186732008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18674
18675 * coding.c (detect_coding_iso2022): New arg
18676 latin_extra_code_state. Allow Latin extra codes only
18677 when *latin_extra_code_state is nonzero.
18678 (detect_coding_mask): If there is a NULL byte, detect the encoding
18679 as UTF-16 or binary. If Latin extra codes exist, detect the
18680 encoding as ISO-2022 only when there's no other proper encoding is
18681 found.
18682
186832008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18684
18685 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18686 #ifdef MAC_OS.
18687
186882008-01-08 Richard Stallman <rms@gnu.org>
18689
18690 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18691
186922008-01-06 Nick Roberts <nickrob@snap.net.nz>
18693
18694 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18695 menu bar in parentheses.
18696
186972008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18698
18699 * m/7300.h:
18700 * m/acorn.h:
18701 * m/alliant-2800.h:
18702 * m/alliant.h:
18703 * m/alliant1.h:
18704 * m/alliant4.h:
18705 * m/altos.h:
18706 * m/amdahl.h:
18707 * m/apollo.h:
18708 * m/att3b.h:
18709 * m/aviion-intel.h:
18710 * m/aviion.h:
18711 * m/celerity.h:
18712 * m/clipper.h:
18713 * m/cnvrgnt.h:
18714 * m/convex.h:
18715 * m/cydra5.h:
18716 * m/delta88k.h:
18717 * m/dpx2.h:
18718 * m/dual.h:
18719 * m/elxsi.h:
18720 * m/f301.h:
18721 * m/gould-np1.h:
18722 * m/gould.h:
18723 * m/i860.h:
18724 * m/ibmps2-aix.h:
18725 * m/ibmrt-aix.h:
18726 * m/ibmrt.h:
18727 * m/irist.h:
18728 * m/is386.h:
18729 * m/isi-ov.h:
18730 * m/mega68.h:
18731 * m/mg1.h:
18732 * m/news-r6.h:
18733 * m/news-risc.h:
18734 * m/news.h:
18735 * m/nh3000.h:
18736 * m/nh4000.h:
18737 * m/ns16000.h:
18738 * m/ns32000.h:
18739 * m/nu.h:
18740 * m/orion.h:
18741 * m/orion105.h:
18742 * m/paragon.h:
18743 * m/pfa50.h:
18744 * m/plexus.h:
18745 * m/pyramid.h:
18746 * m/pyrmips.h:
18747 * m/sh3el.h:
18748 * m/sps7.h:
18749 * m/sr2k.h:
18750 * m/stride.h:
18751 * m/sun1.h:
18752 * m/sun2.h:
18753 * m/sun3-68881.h:
18754 * m/sun3-fpa.h:
18755 * m/sun3-soft.h:
18756 * m/sun3.h:
18757 * m/sun386.h:
18758 * m/symmetry.h:
18759 * m/tad68k.h:
18760 * m/tahoe.h:
18761 * m/targon31.h:
18762 * m/tek4300.h:
18763 * m/tekxd88.h:
18764 * m/tower32.h:
18765 * m/tower32v3.h:
18766 * m/ustation.h:
18767 * m/wicat.h:
18768 * m/xps100.h:
18769 * s/cxux.h:
18770 * s/cxux7.h:
18771 * s/dgux.h:
18772 * s/dgux4.h:
18773 * s/dgux5-4-3.h:
18774 * s/dgux5-4r2.h:
18775 * s/esix.h:
18776 * s/esix5r4.h:
18777 * s/hiuxmpp.h:
18778 * s/hiuxwe2.h:
18779 * s/iris3-5.h:
18780 * s/iris3-6.h:
18781 * s/isc2-2.h:
18782 * s/isc3-0.h:
18783 * s/isc4-0.h:
18784 * s/isc4-1.h:
18785 * s/newsos5.h:
18786 * s/newsos6.h:
18787 * s/osf1.h:
18788 * s/osf5-0.h:
18789 * s/riscix1-1.h:
18790 * s/riscix12.h:
18791 * s/sco4.h:
18792 * s/sco5.h:
18793 * s/sunos4-0.h:
18794 * s/sunos4-1.h:
18795 * s/sunos413.h:
18796 * s/sunos4shr.h:
18797 * s/umax.h:
18798 * s/unipl5-2.h:
18799 * s/xenix.h:
18800 * cxux-crt0.s:
18801 * unexapollo.c:
18802 * unexconvex.c:
18803 * unexenix.c:
18804 * unexsni.c: Remove files for systems no longer supported.
18805
18806 * m/intel386.h: Remove references to unsupported systems.
18807
18808 * w32.c (get_emacs_configuration): Remove reference to i860.
18809
18810 * sysdep.c: Remove dead code.
18811
188122008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18813
18814 * s/rtu.h:
18815 * m/masscomp.h: Remove files. Platform is obsolete.
18816
188172008-01-04 Michael Albinus <michael.albinus@gmx.de>
18818
18819 * dbusbind.c (Fdbus_method_return): New function.
18820 (xd_read_message): Add the serial number to the event.
18821 (Fdbus_register_method): Activate the function.
18822
188232008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18824
18825 * keyboard.c (read_key_sequence): Fix typo.
18826
188272008-01-03 Michael Albinus <michael.albinus@gmx.de>
18828
18829 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18830 (xd_signature, xd_append_arg): Handle element type detection for
18831 empty arrays.
18832 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18833 SDATA () calls; this must be solved more general.
18834 (Fdbus_register_signal): Use SBYTES instead of strlen.
18835
188362008-01-03 Magnus Henoch <magnus@zemdatav>
18837
18838 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18839 unsigned int for byte values (necessary for big-endian platform).
18840 (Fdbus_call_method): Handle the case of no returned arguments.
18841
188422007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18843
18844 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18845
188462007-12-31 Magnus Henoch <mange@freemail.hu>
18847
18848 * dbusbind.c (xd_signature): Signature of variant is just "v".
18849
188502007-12-30 Michael Albinus <michael.albinus@gmx.de>
18851
18852 * dbusbind.c: Fix several errors and compiler warnings.
18853 Reported by Tom Tromey <tromey@redhat.com>.
18854 (XD_ERROR, XD_DEBUG_MESSAGE)
18855 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18856 (xd_append_arg): Part for basic D-Bus types rewritten.
18857 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18858 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18859 appropriate.
18860 (xd_read_message): Return Qnil. Don't signal an error; it is not
18861 useful during event reading.
18862 (Fdbus_register_signal): Signal an error if the check for
18863 FUNCTIONP fails.
18864 (Fdbus_register_method): New function. The implementation is not
18865 complete, the call of the function signals an error therefore.
18866 (Fdbus_unregister_object): New function, renamed from
18867 Fdbus_unregister_signal. The initial check signals an error, if
18868 the object is not well formed.
18869
188702007-12-30 Richard Stallman <rms@gnu.org>
18871
18872 * textprop.c (get_char_property_and_overlay):
18873 Signal error if POSITION is out of range in a buffer.
18874
188752007-12-29 Martin Rudalics <rudalics@gmx.at>
18876
18877 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18878 because the original parameters are in pure storage now.
18879
188802007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18881
18882 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18883
188842007-12-22 Eli Zaretskii <eliz@gnu.org>
18885
18886 * callint.c (syms_of_callint) <command-history>: Add reference to
18887 history-length in the doc string.
18888
188892007-12-17 Jason Rumney <jasonr@gnu.org>
18890
18891 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18892 before passing as wParam.
18893
188942007-12-22 Michael Albinus <michael.albinus@gmx.de>
18895
18896 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18897 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18898 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18899 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18900 as number.
18901 (Fdbus_call_method): Fix docstring.
18902
189032007-12-21 Michael Albinus <michael.albinus@gmx.de>
18904
18905 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18906 New macros.
18907 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18908 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18909 Simplify.
18910 (xd_signature): New function.
18911 (xd_append_arg): Compute also signatures. Major rewrite.
18912 (xd_retrieve_arg): Make debug messages friendly.
18913 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18914 Check for signatures of arguments.
18915
189162007-12-19 Michael Albinus <michael.albinus@gmx.de>
18917
18918 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18919 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18920 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18921 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18922 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18923 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18924 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18925 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18926 (xd_retrieve_value): Remove. Functionality included in ...
18927 (xd_append_arg): New function.
18928 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18929
189302007-12-16 Michael Albinus <michael.albinus@gmx.de>
18931
18932 * dbusbind.c (top): Include <stdio.h>.
18933 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18934 dbus_message_new_method_call and dbus_message_new_signal.
18935 (Fdbus_register_signal): Rename unique_name to uname.
18936 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18937 non-existing unique name. Fix typos in matching rule. Return an
18938 object which is useful in Fdbus_unregister_signal.
18939 (Fdbus_unregister_signal): Reimplementation, in order to remove
18940 only the corresponding entry.
18941 (Vdbus_registered_functions_table): Change the order of entries.
18942 Apply these changes in xd_read_message and Fdbus_register_signal.
18943
189442007-12-16 Andreas Schwab <schwab@suse.de>
18945
18946 * fileio.c (Finsert_file_contents): Fix overflow check to not
18947 depend on undefined integer overflow.
18948
189492007-12-14 Jason Rumney <jasonr@gnu.org>
18950
18951 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18952 for characters above 127.
18953
189542007-12-13 Jason Rumney <jasonr@gnu.org>
18955
18956 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18957 before dereferencing array.
18958 (lookup_vk_code): Remove zero comparison.
18959
189602007-12-14 Michael Albinus <michael.albinus@gmx.de>
18961
18962 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18963 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18964 Use `unsigned int' instead of `uint'.
18965 (xd_read_message, Fdbus_register_signal): Split expressions into
18966 multiple lines before operators "&&" and "||", according to the
18967 GNU Coding Standards.
18968
189692007-12-14 Eli Zaretskii <eliz@gnu.org>
18970
18971 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18972
189732007-12-12 Juri Linkov <juri@jurta.org>
18974
18975 * buffer.c (Frename_buffer): In interactive spec replace
18976 `read-buffer' with `read-string' that uses `buffer-name-history'
18977 as history, and the current buffer's name as default.
18978
189792007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18980
18981 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18982 manipulating the backtrace manually.
18983 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18984 (struct backtrace, backtrace_list): Remove.
18985 (command_loop_1): Remove dead var `no_direct'.
18986
18987 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18988 preserve non-built-in buffer-local variables.
18989 (Fkill_all_local_variables): Don't re-create&re-set permanent
18990 buffer-local variables.
18991
189922007-12-09 Juri Linkov <juri@jurta.org>
18993
18994 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18995 Lisp code that uses `read-buffer' with current buffer as default.
18996
189972007-12-08 Michael Albinus <michael.albinus@gmx.de>
18998
18999 * dbusbind.c (xd_read_message): Generate an event for every
19000 registered handler. There might be several handlers registered
19001 for the same signal.
19002 (Fdbus_register_signal): Don't overwrite a registration for the
19003 same signal. Add a new registration if handlers are different.
19004 (Vdbus_registered_functions_table): Rework doc string.
19005
190062007-12-07 Michael Albinus <michael.albinus@gmx.de>
19007
19008 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19009 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19010 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19011 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19012 Unify argument lists.
19013 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19014 arguments and hash table keys. Use unique name for service.
19015 (Fdbus_unregister_signal): Remove checks.
19016 (Vdbus_registered_functions_table): Fix doc string.
19017
190182007-12-05 Magnus Henoch <mange@freemail.hu>
19019
19020 * process.c (make_process): Initialize pty_flag to 0.
19021
190222007-12-05 Jason Rumney <jasonr@gnu.org>
19023
19024 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19025 specified XBMs.
19026
190272007-12-05 Richard Stallman <rms@gnu.org>
19028
19029 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19030
190312007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19032
19033 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19034 New variable.
19035 (mac_try_close_socket) [MAC_OSX]: New function.
19036 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19037 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19038
19039 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19040 Use mac_try_close_socket.
19041
190422007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19043
19044 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19045 reloc_base.
19046 (copy_dysymtab): Compute relocation base here.
19047 (rebase_reloc_address) [__ppc64__]: New function.
19048 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19049 changed.
19050
190512007-12-05 Jason Rumney <jasonr@gnu.org>
19052
19053 * w32proc.c (sys_spawnve): Quote args with wildcards.
19054
190552007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19056
19057 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19058 __objc_* sections.
19059 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19060
190612007-12-05 Michael Albinus <michael.albinus@gmx.de>
19062
19063 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19064 Move check for Vdbus_registered_functions_table to
19065 xd_read_queued_messages.
19066 (xd_read_queued_messages): Protect xd_read_message calls by
19067 internal_condition_case_1.
19068
190692007-12-04 Michael Albinus <michael.albinus@gmx.de>
19070
19071 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19072 Qdbus_system_bus and Qdbus_session_bus, respectively.
19073 (Vdbus_intern_symbols): Remove.
19074 (Vdbus_registered_functions_table): New hash table.
19075 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19076 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19077 Rewrite in order to manage registered functions by hash table
19078 Vdbus_registered_functions_table.
19079
190802007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19081
19082 * xterm.c: Update URL to Window Manager Specification in comment.
19083
190842007-12-02 Michael Albinus <michael.albinus@gmx.de>
19085
19086 * config.in (HAVE_DBUS): Add.
19087
19088 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19089 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19090 (obj): Add $(DBUS_OBJ).
19091 (LIBES): Add $(DBUS_LIBS).
19092 (dbusbind.o): New target.
19093
19094 * dbusbind.c: New file.
19095
19096 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19097
19098 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19099 (Qdbus_event): New Lisp symbol.
19100 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19101 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19102 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19103
19104 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19105
191062007-12-01 Richard Stallman <rms@gnu.org>
19107
19108 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19109
191102007-11-30 Jason Rumney <jasonr@gnu.org>
19111
19112 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19113 (w32con_reset_terminal_modes): Clear screen buffer.
19114 (w32_face_attributes): Don't use color indexes that are out of range.
19115 Only reverse the default colors.
19116
19117 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19118 WINDOWSNT.
19119
19120 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19121
191222007-11-29 Jason Rumney <jasonr@gnu.org>
19123
19124 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19125 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19126 if the terminal colors are initialized.
19127 (unspecified_fg, unspecified_bg): Remove unused declarations.
19128
191292007-11-29 Andreas Schwab <schwab@suse.de>
19130
19131 * keyboard.c (apply_modifiers): Fix typo.
19132
191332007-11-29 Richard Stallman <rms@gnu.org>
19134
19135 * keymap.c (Fcurrent_local_map): Doc fix.
19136
191372007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19138
19139 * s/gnu-kfreebsd.h: New file.
19140
191412007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19142
19143 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19144 Don't cast redundantly.
19145
19146 * keyboard.c (KEY_TO_CHAR): New macro.
19147 (parse_modifiers, apply_modifiers): Accept integer arguments.
19148 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19149 for chars and symbol keys.
19150 After doing such remapping, apply function-key-map again.
19151
191522007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19153
19154 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19155 compiled anymore.
19156
191572007-11-26 Andreas Schwab <schwab@suse.de>
19158
19159 * process.c (list_processes_1): Fix indentation level of the
19160 command column.
19161
191622007-11-23 Andreas Schwab <schwab@suse.de>
19163
19164 * editfns.c (Fformat): Handle %c specially since it requires the
19165 argument to be of type int.
19166
191672007-11-23 Markus Triska <markus.triska@gmx.at>
19168
19169 * emacs.c (main): Call init_editfns before init_process, since
19170 init_process sets Vprocess_connection_type depending on OS release.
19171
191722007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19173
19174 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19175 (find_symbol_value): Use do_symval_forwarding.
19176
19177 * data.c (set_internal): Set the value in the `cons-cell' (for
19178 Buffer_Local_values) not only for frame-local variables.
19179
191802007-11-22 Andreas Schwab <schwab@suse.de>
19181
19182 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19183 values to sprintf.
19184 * keymap.c (Fsingle_key_description): Likewise.
19185 * print.c (print_object): Likewise.
19186
191872007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19188
19189 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19190 file for image is nil.
19191
191922007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19193
19194 * term.c: Include stdarg.h.
19195 (fatal): Implement using varargs.
19196 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19197
191982007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19199
19200 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19201 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19202 Update call to buffer_slot_type_mismatch.
19203 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19204 (buffer_slot_type_mismatch): Update.
19205 * buffer.c (buffer_local_types): Remove.
19206 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19207 (defvar_per_buffer): Set the type in the buffer_objfwd.
19208
192092007-11-21 Jason Rumney <jasonr@gnu.org>
19210
19211 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19212 CreateFileMapping returns NULL on failure.
19213
192142007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19215
19216 * search.c (Fset_match_data): Remove the `evaporate' feature.
19217 (unwind_set_match_data): Don't use the `evaporate' feature.
19218
192192007-11-21 Jason Rumney <jasonr@gnu.org>
19220
19221 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19222
19223 * w32console.c (w32con_write_glyphs): Remove unused variables.
19224
192252007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19226
19227 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19228
19229 * s/darwin.h (MULTI_KBOARD): Remove.
19230
19231 * macfns.c (x_create_tip_frame, Fx_create_frame)
19232 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19233
192342007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19235
19236 * buffer.c (Fbuffer_local_value): Remove redundant test.
19237 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19238 than in `current-buffer' to match the comment.
19239 Do the swap using swap_in_global_binding.
19240
19241 * data.c (store_symval_forwarding, set_internal):
19242 * eval.c (specbind): Remove dead code.
19243
19244 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19245 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19246 Since we do not want to see internal Lisp_*fwd objects here.
19247
192482007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19249
19250 * sysdep.c (init_system_name): Use getaddrinfo if available.
19251
19252 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19253 (x_scroll_bar_note_movement): start, end, with, height in struct
19254 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19255
192562007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19257
19258 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19259
192602007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19261
19262 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19263 This undoes Richard's change of 14-Oct-2002.
19264
19265 * alloc.c (allocate_other_vector):
19266 * lisp.h (allocate_other_vector): Remove.
19267
19268 * window.c (struct save_window_data): Move non-lisp data to the end
19269 and make it `int' rather than Lisp_Object.
19270 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19271 Done wrap/unwrap integer values.
19272 (Fset_window_configuration, compare_window_configurations):
19273 Update use of fields to their new types.
19274
19275 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19276 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19277 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19278 (SET_SCROLL_BAR_X_WINDOW): Remove.
19279 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19280 Access the new x_window field directly.
19281 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19282 Don't wrap/unwrap integers into Lisp_Objects.
19283 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19284 (x_scroll_bar_report_motion):
19285 Don't wrap/unwrap integers into Lisp_Objects.
19286 (x_term_init): Use SDATA.
19287 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19288 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19289 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19290 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19291 * xfns.c (x_set_background_color):
19292 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19293 Access the new x_window field directly.
19294
19295 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19296 (allocate_pseudovector): Make non-static.
19297
19298 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19299 (allocate_pseudovector): Declare.
19300 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19301
193022007-11-15 Andreas Schwab <schwab@suse.de>
19303
19304 * editfns.c (Fformat): Correctly format EMACS_INT values.
19305 Also take precision into account when formatting an integer.
19306
19307 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19308
193092007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19310
19311 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19312 (syms_of_keyboard): Defsubr it.
19313
19314 * data.c (swap_in_global_binding): Fix longstanding bug where
19315 store_symval_forwarding was not called with the right second argument,
19316 thus causing objfwd-ing from being dropped.
19317
193182007-11-14 Juanma Barranquero <lekktu@gmail.com>
19319
19320 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19321 (Fx_display_pixel_height, Fx_display_planes)
19322 (Fx_display_color_cells, Fx_server_max_request_size)
19323 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19324 (Fx_display_visual_class, Fx_display_save_under):
19325 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19326 (Fx_display_pixel_height, Fx_display_planes)
19327 (Fx_display_color_cells, Fx_server_max_request_size)
19328 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19329 (Fx_display_mm_height, Fx_display_mm_width)
19330 (Fx_display_backing_store, Fx_display_visual_class)
19331 (Fw32_select_font, Fx_display_save_under):
19332 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19333 (Fx_display_pixel_height, Fx_display_planes)
19334 (Fx_display_color_cells, Fx_server_max_request_size)
19335 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19336 (Fx_display_save_under): Fix typos in docstrings.
19337
193382007-11-14 Juanma Barranquero <lekktu@gmail.com>
19339
19340 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19341 corresponding to deleted entries; they are an implementation detail.
19342 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19343 Remove variables.
19344 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19345 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19346 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19347 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19348 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19349 (Fw32_define_rgb_color, Fw32_load_color_file)
19350 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19351 Fix typos in docstrings.
19352 (Fx_server_version): Reflow docstring.
19353 (Fw32_shell_execute): Doc fixes.
19354
193552007-11-13 Juanma Barranquero <lekktu@gmail.com>
19356
19357 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19358 if w32_parse_hot_key returned nil.
19359
193602007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19361
19362 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19363
193642007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19365
aac0c6e3
MR
19366 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19367
19368 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19369
19370 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19371 Remove W32_SCROLL_BAR_CLICK_EVENT.
19372
19373 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19374 Add MULTIMEDIA_KEY_EVENT.
19375
19376 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19377 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19378 (make_lispy_event) [WINDOWSNT]: Use it to translate
19379 MULTIMEDIA_KEY_EVENT.
19380
19381 * w32term.h (WM_APPCOMMAND): Define if not already.
19382 (GET_APPCOMMAND_LPARAM): Likewise.
19383
19384 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19385 WM_APPCOMMAND.
19386
19387 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19388 (syms_of_w32fns): Export and initialize it.
19389 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19390
193912007-11-09 Chong Yidong <cyd@stupidchicken.com>
19392
19393 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19394 twice.
19395
19396 * xdisp.c (handle_face_prop): Fix last change.
19397
193982007-11-09 Richard Stallman <rms@gnu.org>
19399
19400 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19401 not just for after-strings and before-strings.
19402 Call face_for_overlay_string and pass the overlay to it.
19403 (handle_display_prop): Determine whether property came from an overlay.
19404 Pass OVERLAY arg to handle_single_display_spec.
19405 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19406 (load_overlay_strings): Fill in it->string_overlays.
19407 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19408
19409 * xfaces.c (face_for_overlay_string): Function renamed from
19410 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19411
19412 * dispextern.h (struct it): New elt string_overlays.
19413 New elt from_overlay, also in stack.
19414 Rearrange a few elements.
19415 (face_for_overlay_string): Decl renamed from
19416 face_at_buffer_position_no_overlays, and add argument.
19417
194182007-11-09 Richard Stallman <rms@gnu.org>
19419
19420 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19421 to get the base face for an overlay string.
19422
19423 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19424
19425 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19426
19427 * xdisp.c (handle_stop): Move some code out of loop.
19428
194292007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19430
19431 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19432 Fix conversion from Lisp object to ATSUFontID.
19433
194342007-11-09 Jason Rumney <jasonr@gnu.org>
19435
19436 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19437
194382007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19439
19440 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19441 Don't assume regions are aligned to page boundary.
19442 (print_load_command_name): Add LC_UUID if defined.
19443
194442007-11-09 Richard Stallman <rms@gnu.org>
19445
19446 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19447
194482007-11-07 Jason Rumney <jasonr@gnu.org>
19449
19450 * s/windows95.h: Remove.
19451
194522007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19453
19454 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19455 abort with a message on unhandled store_type values.
19456
194572007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19458
19459 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19460 Remove HAVE_X11R5 and HAVE_X11R4.
19461
194622007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19463
19464 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19465
194662007-11-01 Johan Bockgård <bojohan@gnu.org>
19467
19468 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19469 Don't set s->stippled_p here, since it has already been set by
19470 x_set_glyph_string_gc from x_draw_glyph_string.
19471
194722007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19473
19474 * sunfns.c: Remove file.
19475
19476 * m/sun386.h:
19477 * m/sun2.h:
19478 * m/sparc.h: Remove Sun windows code.
19479
194802007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19481
19482 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19483 (init_keyboard): Set current_kboard's window-system to nil.
19484 (tty_read_avail_input): Typo.
19485 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19486
194872007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19488
19489 * s/usg5-4.h:
19490 * s/usg5-3.h:
19491 * s/ptx.h:
19492 * m/is386.h:
19493 * m/ibmps2-aix.h:
19494 * Makefile.in: Remove all mentions of X10.
19495
19496 * dispnew.c (syms_of_display): Don't mention version 10.
19497
194982007-10-28 Juanma Barranquero <lekktu@gmail.com>
19499
19500 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19501 ($(BLD)/abbrev.$(O)): Remove.
19502
195032007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19504
19505 Rewrite abbrev.c in Elisp.
19506 * image.c (Qcount): Don't declare as extern.
19507 (syms_of_image): Initialize and staticpro `Qcount'.
19508 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19509 * emacs.c (main): Don't call syms_of_abbrev.
19510 * Makefile.in (obj): Remove abbrev.o.
19511 (abbrev.o): Remove.
19512 * abbrev.c: Remove.
19513
195142007-10-26 Martin Rudalics <rudalics@gmx.at>
19515
19516 * window.c (window_min_size_2): Don't count header-line.
19517
195182007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19519
19520 * frame.h (struct frame): Move all bit fields after the first bit
19521 field to take advantage of the available space. Group all the
19522 chars together to reduce wasted space due to padding.
19523
195242007-10-26 Juanma Barranquero <lekktu@gmail.com>
19525
19526 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19527
19528 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19529 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19530 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19531 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19532 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19533 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19534 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19535 (last_marked, mark_object_loop_halt): Make static.
19536
19537 * frame.c (syms_of_frame) <delete-frame-functions>:
19538 Fix typo in docstring.
19539
195402007-10-25 Juanma Barranquero <lekktu@gmail.com>
19541
19542 * w32.c (init_environment): Fix tiny memory leak.
19543 (w32_get_resource): Remove unused variable `ok'.
19544
195452007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19546
19547 Make `window-system' into a keyboard-local variable (rather than
19548 frame-local as done originally by multi-tty).
19549
19550 * keyboard.h (struct kboard): Add Vwindow_system.
19551 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19552 (mark_kboards): Mark Vwindow_system.
19553
19554 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19555 (init_display): Don't set the obsolete `window-system' frame-param.
19556
19557 * xterm.c (x_term_init):
19558 * w32term.c (w32_create_terminal):
19559 * term.c (init_tty): Set Vwindow_system.
19560 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19561 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19562
19563 * xfns.c (Fx_create_frame, x_create_tip_frame):
19564 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19565 * macfns.c (Fx_create_frame):
19566 Don't set the obsolete `window-system' frame-param.
19567
19568 * frame.h (Qwindow_system): Remove.
19569 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19570 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19571
195722007-10-24 Richard Stallman <rms@gnu.org>
19573
19574 * frame.c (x_figure_window_size): For fullscreen case,
19575 set USPosition | PPosition without clobbering rest of window_prompting.
19576
19577 * keyboard.c (Fcurrent_idle_time): Doc fix.
19578
19579 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19580
195812007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19582
19583 * process.c (unwind_request_sigio): Only define if __ultrix__.
19584
19585 * callproc.c (child_setup): Remove spurious *.
19586
19587 * lisp.h (Fget_text_property): Declare.
19588 (have_menus_p): Declare it here rather than in sys-dep header files.
19589 * macterm.h (have_menus_p):
19590 * msdos.h (have_menus_p):
19591 * xterm.h (have_menus_p): Remove.
19592
19593 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19594 (Fmake_variable_frame_local): Just check the variable's const-ness
19595 rather than checking nil or t.
19596
195972007-10-22 Jason Rumney <jasonr@gnu.org>
19598
19599 * w32fns.c: Include math.h.
19600 (w32_abort): Declaration moved to nt/config.nt.
19601
19602 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19603 (abort): Redefinition moved to nt/config.nt.
19604
19605 * m/windowsnt.h: Remove.
19606
196072007-10-22 Juanma Barranquero <lekktu@gmail.com>
19608
19609 * emacs.c (Fdump_emacs): Fix typo in message.
19610 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19611 <installation-directory>: Reflow docstring.
19612
196132007-10-22 Juri Linkov <juri@jurta.org>
19614
19615 * minibuf.c: Allow minibuffer default to be a list of default values.
19616 With empty input use the first element of this list as returned default.
19617 (string_to_object)
19618 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19619 (read_minibuf): If defalt is cons, set histstring to its car.
19620 (Fread_string): If default_value is cons, set val to its car.
19621 (Fread_buffer): If def is cons, use its car.
19622 (Fcompleting_read): If defalt is cons, set val to its car.
19623
196242007-10-21 Michael Albinus <michael.albinus@gmx.de>
19625
19626 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19627
196282007-10-20 Juanma Barranquero <lekktu@gmail.com>
19629
19630 * doc.c (Fdocumentation): Check for advice in all cases.
19631
196322007-10-19 Chong Yidong <cyd@stupidchicken.com>
19633
19634 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19635
196362007-10-19 Richard Stallman <rms@gnu.org>
19637
19638 * doc.c (Fdocumentation): Check for and handle an advised function.
19639
196402007-10-19 Juanma Barranquero <lekktu@gmail.com>
19641
19642 * process.c (Fset_process_filter): Doc fix.
19643
196442007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19645
19646 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19647 which caused key-translation-map to applied repeatedly (thus breaking
19648 double-mode).
19649
196502007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19651
19652 * xselect.c (x_own_selection, x_handle_selection_clear)
19653 (x_clear_frame_selections):
19654 * w32menu.c (list_of_panes, list_of_items):
19655 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19656 * textprop.c (validate_plist, interval_has_all_properties)
19657 (interval_has_some_properties, interval_has_some_properties_list)
19658 (add_properties, text_property_list):
19659 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19660 * minibuf.c (Fassoc_string):
19661 * macselect.c (x_own_selection, x_clear_frame_selections)
19662 (Fx_disown_selection_internal):
19663 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19664 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19665
196662007-10-17 Chong Yidong <cyd@stupidchicken.com>
19667
19668 * process.c: Link to libs for calling res_init() if available.
19669 (Fmake_network_process): Call res_init() before getaddrinfo or
19670 gethostbyname, if possible.
19671
196722007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19673
19674 * lread.c (read1): Set pvectype for char_tables.
19675
19676 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19677 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19678 Add type checks.
19679 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19680
19681 * alloc.c (free_misc): Use XMISCTYPE.
19682 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19683
196842007-10-17 Glenn Morris <rgm@gnu.org>
19685
19686 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19687 (syms_of_minibuf): Add Qcompletion_ignore_case.
19688 * dired.c (Qcompletion_ignore_case): Change to external.
19689 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19690 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19691 (Fread_file_name): Use it rather than intern'ing.
19692
19693 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19694 (Fread_coding_system): Ignore case of user input.
19695
196962007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19697
19698 * xdisp.c (handle_display_prop): Ignore display specs after
19699 replacing one when string text is being replaced.
19700 (handle_single_display_spec): Pretend as if characters with display
19701 property haven't been consumed only when buffer text is being replaced.
19702
197032007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19704
19705 * xfns.c (Fx_create_frame, Fx_display_list):
19706 * window.c (window_fixed_size_p, enlarge_window)
19707 (shrink_window_lowest_first):
19708 * macterm.c (init_font_name_table):
19709 * macfns.c (Fx_create_frame, Fx_display_list):
19710 * lread.c (close_load_descs):
19711 * keyboard.c (read_char_x_menu_prompt):
19712 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19713 * coding.c (code_convert_region_unwind): Test the type of an object
19714 rather than just !NILP before extracting data from it.
19715
19716 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19717
19718 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19719 (XMISCANY): New macro.
19720 (XMISCTYPE): Use it.
19721 (struct Lisp_Misc_Any): New type.
19722 (union Lisp_Misc): Use it.
19723 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19724 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19725 (find_symbol_value, set_internal, default_value, Fset_default)
19726 (Fmake_variable_buffer_local, Fmake_local_variable)
19727 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19728 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19729 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19730 * alloc.c (allocate_buffer): Set the size and tag.
19731 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19732 Use XMISCANY.
19733 (die): Follow the GNU convention for error messages.
19734 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19735 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19736 tag any more.
19737 (set_buffer_internal_1):
19738 * frame.c (store_frame_param):
19739 * eval.c (specbind):
19740 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19741
19742 * doc.c (Fsnarf_documentation): Simplify.
19743
197442007-10-14 Juanma Barranquero <lekktu@gmail.com>
19745
19746 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19747 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19748
197492007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19750
19751 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19752
197532007-10-14 Juanma Barranquero <lekktu@gmail.com>
19754
19755 * eval.c (do_autoload): Don't save autoloads.
19756
19757 * data.c (Ffset): Save autoload of the function being set.
19758
197592007-10-07 John Paul Wallington <jpw@pobox.com>
19760
19761 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19762 parameter before setting up faces.
19763
197642007-10-13 Eli Zaretskii <eliz@gnu.org>
19765
19766 * ccl.c (Fregister_code_conversion_map):
19767 * keyboard.c (append_tool_bar_item): Reformat last change.
19768
19769 * lisp.h (eabs): Rename from `abs'. All callers changed.
19770
197712007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19772
19773 * buffer.c (add_overlay_mod_hooklist):
19774 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19775 * fontset.c (make_fontset):
19776 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19777 (append_tool_bar_item):
19778 * macmenu.c (grow_menu_items):
19779 * w32menu.c (grow_menu_items):
19780 * xmenu.c (grow_menu_items): Use larger_vector.
19781
197822007-10-13 Eli Zaretskii <eliz@gnu.org>
19783
19784 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19785 selected frame'' on MSDOS).
19786
197872007-10-12 Martin Rudalics <rudalics@gmx.at>
19788
19789 * frame.c (Qexplicit_name): New variable.
19790 (x_report_frame_params): Report it in parameter alist.
19791 (syms_of_frame): Intern and staticpro it.
19792
197932007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19794
19795 * macfns.c (x_create_tip_frame): Set terminal for frame.
19796
197972007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19798
19799 * frame.c (Qenvironment): Remove.
19800 (syms_of_frame) <Qenvironment>: Don't initialize.
19801 (Fdelete_frame): Don't treat the `environment' param specially.
19802 * frame.h (Qenvironment): Don't declare.
19803 * callproc.c (set_initial_environment): Don't set unused frame param.
19804
19805 * frame.c (Fframe_with_environment): Remove.
19806 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19807
19808 * lisp.h (Fframe_with_environment): Don't declare.
19809
198102007-10-10 Juanma Barranquero <lekktu@gmail.com>
19811
19812 * indent.c (indent_tabs_mode, last_known_column)
19813 (last_known_column_modified): Make static.
19814 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19815
198162007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19817
19818 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19819
198202007-10-09 Jason Rumney <jasonr@gnu.org>
19821
19822 * w32term.c (x_set_window_size): Disable code that attempts to tell
19823 Lisp code about a size change before it actually happens.
19824
198252007-10-09 Richard Stallman <rms@gnu.org>
19826
19827 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19828 return HANDLED_RETURN.
19829
198302007-10-08 Martin Rudalics <rudalics@gmx.at>
19831
19832 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19833 when there's an unread command event.
19834
19835 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19836 window autoselection act appropriately when leaving selected frame.
19837 (syms_of_frame): Initialize focus_follows_mouse.
19838 * frame.h (focus_follows_mouse): Extern it.
19839 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19840 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19841 * msdos.c (dos_rawgetc): Likewise.
19842 * w32term.c (w32_read_socket): Likewise.
19843 * xterm.c (handle_one_xevent): Likewise.
19844 * xdisp.c (syms_of_xdisp): In doc-string of
19845 mouse-autoselect-window mention focus-follows-mouse.
19846
198472007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19848
19849 * macterm.c (mac_load_query_font): Fix missing return value.
19850 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19851 Add BLOCK_INPUT.
19852
198532007-10-08 Richard Stallman <rms@gnu.org>
19854
19855 * xdisp.c (get_window_cursor_type): Implement documented behavior
19856 for cursor-in-non-selected-windows = t.
19857
198582007-10-08 Jason Rumney <jasonr@gnu.org>
19859
19860 * w32.c (w32_get_resource): Always close registry keys.
19861
198622007-10-08 Jason Rumney <jasonr@gnu.org>
19863
19864 * makefile.w32-in (LIBS): Add COMCTL32.
19865
19866 * w32fns.c (globals_of_w32fns): Init common controls.
19867
198682007-10-08 Richard Stallman <rms@gnu.org>
19869
19870 * image.c (our_memory_buffer): Rename from omfib_buffer.
19871
198722007-10-08 Richard Stallman <rms@gnu.org>
19873
19874 * buffer.c (Foverlays_at): Doc fix.
19875
198762007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19877
19878 * fns.c (Fplist_put): Preserve uneven tail data.
19879
198802007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19881
19882 * termhooks.h (enum event_kind): Remove trailing comma.
19883
19884 * frame.h (enum): Remove trailing comma.
19885
198862007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19887
19888 * w32proc.c (delete_child): Don't terminate threads of zombies.
19889
198902007-10-08 Martin Rudalics <rudalics@gmx.at>
19891
19892 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19893
19894 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19895 last-repeatable-command.
19896 (init_kboard): Initialize Vlast_repeatable_command.
19897 (command_loop_1): Set it to real_this_command unless that was
19898 bound to an input event.
19899 (mark_kboards): Mark it.
19900
199012007-10-08 Richard Stallman <rms@gnu.org>
19902
19903 * eval.c (condition-case): Doc fix.
19904
199052007-10-08 Masatake YAMATO <jet@gyve.org>
19906
19907 * xfaces.c (tty_supports_face_attributes_p): Fix code
19908 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19909 was copied and not edited.
19910
199112007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19912
19913 Add new `input-decode-map' keymap and use it for terminal
19914 escape sequences.
19915 * keyboard.h (struct kboard): Add Vinput_decode_map.
19916 Remove Vlocal_key_translation_map.
19917 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19918 (init_kboard): Init input-decode-map.
19919 Replace local-key-translation-map back with key-translation-map.
19920 (syms_of_keyboard): Declare input-decode-map.
19921 Remove local-key-translation-map. Update docstrings.
19922 (mark_kboards): Mark Vinput_decode_map.
19923 Don't mark Vlocal_key_translation_map.
19924 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19925 Replace local-key-translation-map back with key-translation-map.
19926 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19927 Bind in input-decode-map rather than function-key-map.
19928
19929 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19930 This was made redundant by the previous introduction of XSETPVECTYPE.
19931
199322007-10-09 Richard Stallman <rms@gnu.org>
19933
19934 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19935
199362007-09-29 Richard Stallman <rms@gnu.org>
19937
19938 * eval.c (internal_condition_case_2, internal_condition_case_1)
19939 (internal_condition_case): Reenable abort if x_catching_errors ()
19940 to see if that really happens and why.
19941
199422007-10-06 Andreas Schwab <schwab@suse.de>
19943
19944 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19945
199462007-10-04 Juanma Barranquero <lekktu@gmail.com>
19947
19948 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19949
199502007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19951
19952 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19953
199542007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19955
19956 * window.h (struct window):
19957 * window.c (struct save_window_data, struct saved_window):
19958 * termhooks.h (struct terminal):
19959 * process.h (struct Lisp_Process):
19960 * frame.h (struct frame):
19961 * buffer.h (struct buffer):
19962 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19963 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19964 The size field of (pseudo)vectors is now unsigned.
19965 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19966
19967 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19968 Turn `count' into an integer.
19969
19970 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19971 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19972 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19973 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19974 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19975
19976 * alloc.c (allocate_pseudovector): New fun.
19977 (ALLOCATE_PSEUDOVECTOR): New macro.
19978 (allocate_window, allocate_terminal, allocate_frame)
19979 (allocate_process): Use it.
19980 (mark_vectorlike): New function.
19981 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19982 (mark_terminals): Use it.
19983 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19984 (Fmake_byte_code): Use XSETPVECTYPE.
19985
19986 * frame.c (Fframe_parameters): Minor simplification.
19987
19988 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19989
19990 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19991
19992 * buffer.c (Fget_buffer_create, init_buffer_once):
19993 * lread.c (defsubr):
19994 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19995
19996 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19997 defined differently in the m/*.h files.
19998 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19999 (XSETPVECTYPE): New macro.
20000 (XSETPSEUDOVECTOR): Use it.
20001
20002 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20003 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20004
20005 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20006 * lread.c (defvar_per_buffer):
20007 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20008
20009 * window.c (candidate_window_p): Only consider as visible frames that
20010 are on the same terminal.
20011
20012 * m/ibms390x.h (MARKBIT): Remove unused macro.
20013
200142007-10-01 Juanma Barranquero <lekktu@gmail.com>
20015
20016 * lread.c (Fload): Fix typo in docstring.
20017
200182007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20019
20020 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20021 of a non-zero value can't yield zero.
20022
200232007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20024
20025 * term.c (term_clear_mouse_face, term_mouse_highlight)
20026 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20027
20028 * print.c (safe_debug_print): Use XHASH.
20029
20030 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20031 Lisp elements such as tags.
20032 (XHASH): New macro.
20033 (EQ): Use it.
20034 (SREF, SSET, STRING_COPYIN): Use SDATA.
20035 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20036
20037 * alloc.c (mark_terminal): Remove left-over declaration.
20038 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20039 (allocate_vectorlike): Remove type argument. Adjust callers.
20040 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20041 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20042
20043 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20044 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20045 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20046 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20047 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20048 Use them.
20049
20050 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20051 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20052 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20053
200542007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20055
20056 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20057 loaded by default.
20058
200592007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20060
20061 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20062 on this tty.
20063 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20064
20065 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20066 Update all users.
20067 (handle_one_term_event): Use Gpm_DrawPointer.
20068 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20069 Signal errors instead of returning nil. Always return nil.
20070 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20071 Make it a noop if gpm-mouse was not activated.
20072 (syms_of_term): Update names.
20073
200742007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20075
20076 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20077 (init_sys_modes): Check that gpm_tty is the current tty.
20078
20079 * alloc.c (allocate_terminal): Set the vector size to only count the
20080 lisp fields. Initialize those to nil.
20081 (mark_object): Don't treat terminals specially.
20082 (mark_terminal): Remove.
20083 (mark_terminals): Use mark_object instead.
20084
20085 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20086 the GC to the beginning.
20087
20088 * indent.h:
20089 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20090
20091 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20092
200932007-09-25 Jason Rumney <jasonr@gnu.org>
20094
20095 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20096
20097 * w32console.c (create_w32cons_output): Remove.
20098
20099 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20100
20101 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20102 (reset_sys_modes): Use reset_terminal_modes_hook.
20103
201042007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20105
20106 * eval.c (do_autoload): Don't output any message.
20107
201082007-09-24 Juri Linkov <juri@jurta.org>
20109
20110 * emacs.c (standard_args): Change priority of "--no-splash"
20111 from 40 to 3. Add "--no-desktop" with the same priority.
20112
201132007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20114
20115 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20116 and optimize the case where they are all 1.
20117
201182007-09-23 Johannes Weiner <hannes@saeurebad.de>
20119
20120 * lisp.h (abs): Define if not defined.
20121 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20122 Don't define `abs', since it's defined in lisp.h.
20123
201242007-09-22 Eli Zaretskii <eliz@gnu.org>
20125
20126 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20127 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20128 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20129 (init_tty): Use DEV_TTY instead of "/dev/tty".
20130 [WINDOWSNT]: No need to protect from NAME arg being null.
20131
201322007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20133
20134 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20135 up the tty state.
20136
201372007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20138
20139 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20140 (gpm_tty): Change its type.
20141 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20142 (gpm_tty): Change its type and initialize it.
20143 (Fterm_open_connection): Check the frame is indeed a tty.
20144 Use the new gpm_tty.
20145 (Fterm_close_connection): Use the new gpm_tty.
20146 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20147 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20148
201492007-09-21 Juanma Barranquero <lekktu@gmail.com>
20150
20151 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20152 underline_color, to draw strike-through.
20153
201542007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20155
20156 * lisp.h (allocate_terminal): Declare.
20157
20158 * window.c (candidate_window_p): Consider frames that are being placed
20159 by the user as somewhere between visible and iconified.
20160 (window_loop): Prefer windows on the current frame.
20161 (Fselect_window): Move the use of select-frame to the beginning so we
20162 can just delegate all the work (it'll call us back anyway).
20163
20164 * frame.c (Qdisplay_environment_variable):
20165 * frame.h (Qdisplay_environment_variable): Delete.
20166
20167 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20168 of the first arg, since that value may be a union.
20169
20170 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20171 parameter rather than Qdisplay_environment_variable. If all else
20172 fails, look for DISPLAY in initial-environment.
20173
201742007-09-21 Glenn Morris <rgm@gnu.org>
20175
20176 * Makefile.in (emacstool): Remove target.
20177 (lisp, shortlisp): Remove termdev.elc.
20178
201792007-09-21 Markus Triska <markus.triska@gmx.at>
20180
20181 * xterm.c (x_delete_display): Compile session management conditionally.
20182
201832007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20184
20185 * callproc.c (getenv_internal_1): New function.
20186 (getenv_internal): Use it.
20187 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20188
20189 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20190 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20191 (Fset_terminal_parameter): Work with dead terminals as well.
20192 (Fmodify_terminal_parameters): Remove.
20193
20194 * terminal.c (get_terminal): Handle terminals.
20195 Make sure the terminal returned is live.
20196 (create_terminal): Use allocate_terminal.
20197 (mark_terminals): Move to alloc.c.
20198 (delete_terminal): Use terminal->name as liveness status.
20199 NULL out fields after freeing their contents.
20200 Don't deallocate the object.
20201 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20202 rather than an int.
20203 (Fterminal_live_p): Accept non-integer arguments.
20204 (Fterminal_list): Return terminal objects rather than an ints.
20205
20206 * alloc.c (enum mem_type): New member for `terminal' objects.
20207 (allocate_terminal): New function.
20208 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20209 Handle terminals.
20210 (mark_terminal): New fun.
20211 (mark_terminals): Move from terminal.c.
20212
20213 * term.c (get_tty_terminal): Don't treat output_initial specially.
20214 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20215 (delete_tty): Use terminal->name as liveness status.
20216
20217 * termhooks.h (struct terminal): Make it into a pseudovector.
20218 Remove `deleted' replaced by checking `name's nullness.
20219
20220 * print.c (print_object): Handle terminals.
20221
20222 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20223 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20224
20225 * frame.c (make_terminal_frame):
20226 * keyboard.c (tty_read_avail_input):
20227 * w32term.c (x_delete_terminal):
20228 * xfns.c (Fx_create_frame, x_create_tip_frame):
20229 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20230
202312007-09-20 Glenn Morris <rgm@gnu.org>
20232
20233 * process.c (Fmake_network_process): Doc fix.
20234
202352007-09-19 Jason Rumney <jasonr@gnu.org>
20236
20237 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20238
202392007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20240
20241 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20242 Fix a C warning regarding variable constness.
20243
20244 * xterm.c (handle_one_xevent): Fix a C warning.
20245
202462007-09-18 Jason Rumney <jasonr@gnu.org>
20247
20248 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20249
202502007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20251
20252 * gtkutil.c (gdpy_def): New variable.
20253 (xg_initialize): Initialize gdpy_def.
20254 (xg_display_close): If no other display exists, set gdpy_def to a
20255 new connection.
20256
202572007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20258
20259 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20260 when we have no file name for the icon.
20261 (xg_tool_bar_expose_callback): Remove.
20262 (xg_create_tool_bar): Don't connect expose signal to
20263 xg_tool_bar_expose_callback.
20264 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20265
202662007-09-16 Andreas Schwab <schwab@suse.de>
20267
20268 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20269 values instead of zapping them.
20270
202712007-09-14 Glenn Morris <rgm@gnu.org>
20272
20273 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20274 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20275 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20276 scope and rename to omfib_buffer for clarity.
20277 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20278
202792007-09-14 Kenichi Handa <handa@m17n.org>
20280
20281 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20282
202832007-09-13 Jason Rumney <jasonr@gnu.org>
20284
20285 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20286
20287 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20288
20289 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20290 (mac_term_init): Call here instead, passing rif.
20291
202922007-09-13 Glenn Morris <rgm@gnu.org>
20293
20294 * s/hpux.h: No longer define `static' as nothing.
20295
202962007-09-13 Johan Bockgård <bojohan@gnu.org>
20297
20298 * callint.c (Fcall_interactively): Remove unused var `fun'.
20299
203002007-09-12 Romain Francoise <romain@orebokech.com>
20301
20302 * window.c (prefer_window_split_horizontally, display_buffer):
20303 Revert 2007-09-08 change.
20304
203052007-09-12 Glenn Morris <rgm@gnu.org>
20306
20307 * alloca.c: Remove file.
20308 * Makefile.in (alloca): Do not undef.
20309 (allocaobj, alloca.o): Remove.
20310 (otherobj): Remove allocaobj.
20311 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20312 * regex.c (C_ALLOCA): Remove all references and code that was only
20313 used when this was defined.
20314 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20315 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20316 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20317
20318 * Makefile.in (SOURCES, unlock, relock): Delete.
20319
20320 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20321 (menu_grab_callback): All uses changed.
20322
20323 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20324 (x_reply_selection_request): All uses changed.
20325
203262007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20327
20328 * lread.c (load_warn_old_style_backquotes): Change message to look
20329 better when it appears in the middle of byte-compiler messages.
20330
203312007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20332
20333 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20334
20335 * xterm.c (x_create_terminal): Add comment.
20336
20337 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20338
203392007-09-10 Richard Stallman <rms@gnu.org>
20340
20341 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20342
203432007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20344
20345 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20346 (DEFUN): Document `intspec', use it instead of `prompt'.
20347
20348 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20349
20350 * data.c (Finteractive_form): If the interactive specification starts
20351 with a `(', use it as a Lisp form.
20352
20353 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20354 name and file modes.
20355
20356 * callint.c (Fcall_interactively): Comment fixes.
20357
203582007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20359
20360 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20361 and compiled functions.
20362
203632007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20364
20365 * window.c (prefer_window_split_horizontally): New variable.
20366 (display_buffer): Consider splitting window horizontally depending
20367 on prefer_window_split_horizontally.
20368
203692007-09-08 Eli Zaretskii <eliz@gnu.org>
20370
20371 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20372
203732007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20374
20375 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20376
20377 * frame.c (x_set_frame_parameters): Check number is positive before
20378 using XFASTINT.
20379
20380 * window.c (freeze_window_start): Don't presume selected_window holds
20381 a window object.
20382 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20383
203842007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20385
20386 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20387
203882007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20389
20390 * window.c (Vsplit_window_preferred_function): New var.
20391 (Fdisplay_buffer): Use it.
20392 (syms_of_window): Export, and initialize it.
20393
203942007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20395
20396 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20397
203982007-09-06 Glenn Morris <rgm@gnu.org>
20399
20400 * gtkutil.c (menu_grab_callback) <cnt>:
20401 * xselect.c (x_reply_selection_request) <cnt>: Move static
20402 variable to file scope.
20403
204042007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20405
20406 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20407 consistent values of selected_frame and selected_window.
20408
204092007-09-04 Jason Rumney <jasonr@gnu.org>
20410
20411 * w32console.c (initialize_w32_display): Zero unused hooks.
20412
204132007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20414
20415 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20416 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20417
204182007-09-04 Jason Rumney <jasonr@gnu.org>
20419
20420 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20421 in w32console.c. Set up input. Remove XXX comments that have been
20422 confirmed as correct.
20423
20424 * s/ms-w32.h (MULTI_KBOARD): Define.
20425
20426 * w32console.c (one_and_only_w32cons): Remove.
20427 (initialize_w32_display): Take terminal argument.
20428
20429 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20430 initialize_w32_display.
20431 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20432
20433 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20434
20435 * keyboard.c (discard_mouse_events): Discard it.
20436 (make_lispy_event): Translate it to a lisp event.
20437 (lispy_wheel_names): Add wheel-left and right events.
20438 (syms_of_keyboard): Enlarge wheel_syms.
20439
20440 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20441 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20442
20443 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20444
20445 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20446 from WM_MOUSEHWHEEL.
20447 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20448
20449 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20450 terminal.
20451
20452 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20453 keyboard for the terminal.
20454
204552007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20456
20457 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20458 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20459 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20460 and resume-tty-function to resume-tty-hook.
20461 (Fsuspend_tty, Fresume_tty): Use new names.
20462
204632007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20464
20465 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20466 if it starts with "n:".
20467
204682007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20469
20470 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20471
204722007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20473
20474 * frame.h:
20475 * frame.c (Qterm_environment_variable): Remove.
20476 (syms_of_frame): Don't init and staticpro it.
20477
20478 * callproc.c (getenv_internal): Remove special case for $TERM.
20479
20480 * callproc.c (Vinitial_environment): New variable.
20481 (set_initial_environment): Initialize it.
20482 (syms_of_callproc): Declare it.
20483 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20484 TERM under which a process runs is never related to the TERM in which
20485 Emacs is running.
20486
204872007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20488
20489 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20490 * s/darwin.h: ... do it here.
20491
204922007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20493
20494 * lisp.h (set_initial_environment): Rename from set_global_environment.
20495
20496 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20497 removed by mistake on the multi-tty branch.
20498
20499 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20500 (Fmodify_frame_parameters): Return a value.
20501
20502 * image.c (png_load): Comment-out var only used in commented-out code.
20503
20504 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20505 before passing it to mark_object.
20506
20507 * xfaces.c (internal_resolve_face_name): Return a value.
20508 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20509
20510 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20511 (x_icon): Comment-out var only used in commented-out code.
20512
205132007-08-29 Romain Francoise <romain@orebokech.com>
20514
20515 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20516 QUIT hasn't been provided.
20517
205182007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20519
20520 * callproc.c (child_setup, getenv_internal): Use the
20521 display-environment-variable and term-environment-variable frame params.
20522 (set_initial_environment): Initialise Vprocess_environment.
20523
20524 * config.in: Disable multi-keyboard support on a mac.
20525
20526 * frame.c (Qterm_environment_variable)
20527 (Qdisplay_environment_variable): New variables.
20528 (syms_of_frame): Intern and staticpro them.
20529 (Fmake_terminal_frame): Disable output method test.
20530
20531 * frame.h: Declare them here.
20532
20533 * macfns.c (x_set_mouse_color): Get rif from the frame.
20534 (x_set_tool_bar_lines): Don't use updating_frame.
20535 (mac_window): Add 2 new parameters for consistency with other systems.
20536 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20537 frame parameters following what is done in X11 and w32. Don't use
20538 FRAME_MAC_DISPLAY_INFO.
20539 (Fx_open_connection, start_hourglass): Remove window-system check.
20540 (x_create_tip_frame): Get the keyboard from the terminal.
20541
20542 * macmenu.c: Reorder includes.
20543 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20544
20545 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20546 terminal parameter.
20547 (x_clear_frame): Add a frame parameter.
20548 (note_mouse_movement): Get rif from the frame.
20549 (mac_term_init): Initialize the terminal.
20550 (mac_initialize): Make static and move terminal initialization ...
20551 (mac_create_terminal): ... to this new function.
20552
20553 * macterm.h (struct mac_display_info): Add terminal.
20554 (mac_initialize): Delete declaration.
20555
20556 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20557
20558 * sysdep.c: Comment out text after #endif.
20559
20560 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20561 is defined. Better initialize ttys in windows. Use terminal
20562 specific mouse_position_hook.
20563
20564 * termhooks.h (union display_info): Add mac_display_info.
20565
20566 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20567 Set the default minibuffer frame, window_system and the rest of the
20568 frame parameters following what is done in X11.
20569
20570 * w32term.c (w32_initialize): Make static.
20571
20572 * xselect.c (x_handle_selection_clear): Only access
20573 terminal->kboard when MULTI_KBOARD is defined.
20574
20575 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20576 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20577
205782007-08-29 Jason Rumney <jasonr@gnu.org>
20579
20580 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20581 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20582
20583 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20584 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20585
20586 * keyboard.c (restore_kboard_configuration): Only define when
20587 MULTI_KBOARD defined.
20588
20589 * makefile.w32-in: Update dependancies from Makefile.in.
20590 (OBJ1): Add terminal.$(O)
20591
20592 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20593 Don't define function body.
20594 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20595
20596 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20597
20598 * w32.c (request_sigio, unrequest_sigio): Remove.
20599
20600 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20601 (w32con_clear_frame, w32con_clear_end_of_line)
20602 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20603 (w32con_delete_glyphs, w32con_set_terminal_window)
20604 (scroll_line, w32_sys_ring_bell): Add frame arg.
20605 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20606 Add terminal arg.
20607 (PICK_FRAME): Remove.
20608 (w32con_write_glyphs): Use frame specific terminal coding.
20609 (one_and_only_w32cons): New global variable.
20610 (initialize_w32_display): Use it for storing hooks.
20611 (create_w32cons_output): New function.
20612
20613 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20614 arg a frame.
20615
20616 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20617 Set window_system.
20618 (x_set_tool_bar_lines): Don't use updating_frame.
20619 (Fx_create_frame): Set terminal and ref count.
20620 (Fx_open_connection): Remove window-system check.
20621
20622 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20623
20624 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20625 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20626 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20627 Add frame arg.
20628 (x_delete_terminal, w32_create_terminal): New functions.
20629 (w32_term_init): Create a terminal.
20630 (w32_initialize): Move terminal specific initialization to
20631 w32_create_terminal.
20632
20633 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20634 (w32_clear_rect, w32_clear_area): Use background from frame.
20635 (w32_display_info): Add terminal.
20636 (w32_sys_ring_bell, x_delete_display): Declare here.
20637
20638 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20639
20640 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20641
206422007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20643
20644 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20645 Fix get_named_tty calls for the controlling tty.
20646
206472007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20648
194d44e7 20649 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20650
206512007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20652
20653 * term.c (tty_insert_glyphs): Add missing first parameter.
20654
206552007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20656
20657 * buffer.c (Fbuffer_list, Fbury_buffer):
20658 Take frame->buried_buffer_list into account.
20659
20660 * cm.c (current_tty): New variable, for cmputc().
20661 (cmputc): Use it.
20662 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20663 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20664 (cmgoto): Add tty parameter. Pass it on to calccost().
20665 Use emacs_tputs() instead of tputs().
20666
20667 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20668 tputs().
20669 (current_tty): New variable, for cmputc().
20670 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20671
20672 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20673 (internal_condition_case, internal_condition_case_1)
20674 (internal_condition_case_2): Don't abort when x_catching_errors.
20675
20676 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20677 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20678 prevent crashes caused by bogus longjmps in read_char.
20679
20680 * keymap.h (Fset_keymap_parent): Add EXFUN.
20681
20682 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20683 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20684 Remove redundant definition.
20685
20686 * macfns.c (x_set_mouse_color, x_make_gc):
20687 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20688
20689 * w32term.c (x_free_frame_resources):
20690 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20691 (w32_initialize): Use the accessor macros for terminal characteristics.
20692
20693 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20694 Use the accessor macros for terminal characteristics.
20695 * msdos.c (internal_terminal_init): Use the accessor macros for
20696 terminal characteristics.
20697 (ScreenVisualBell, internal_terminal_init):
20698 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20699
20700 * termopts.h (no_redraw_on_reenter): Declare.
20701
20702 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20703 (mark_terminals, mark_ttys): Declare.
20704 (Fgarbage_collect): Call them.
20705 (mark_object): Mark buried_buffer_list.
20706
20707 * prefix-args.c: Include stdlib.h for exit.
20708
20709 * syssignal.h: Add comment.
20710
20711 * indent.c: Include stdio.h.
20712
20713 * window.h (Vinitial_window_system): Declare.
20714 (Vwindow_system): Delete declaration.
20715
20716 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20717
20718 * image.c (lookup_image): Don't initialize `c' until the xasserts
20719 have been run.
20720
20721 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20722 FRAME_FOREGROUND_PIXEL.
20723
20724 * print.c (print_preprocess): Don't lose print_depth levels while
20725 iterating.
20726
20727 * widget.c (update_from_various_frame_slots):
20728 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20729
20730 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20731 frames.
20732 (window_internal_height): Remove bogus make_number call.
20733 (init_window_once): Call make_terminal_frame with two zero parameters.
20734
20735 * fileio.c (Fread_file_name): Update comment.
20736
20737 * callint.c (Fcall_interactively):
20738 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20739 Make sure it is correctly unwound.
20740
20741 * xsmfns.c (x_session_close): New function.
20742
20743 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20744 Delete declarations.
20745
20746 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20747 (x_output): Remove background_pixel and foreground_pixel fields.
20748 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20749 (x_delete_device, x_session_close): Declare.
20750
20751 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20752 (read_filtered_event): Call `read_char' with a local
20753 `wrong_kboard_jmpbuf'.
20754
20755 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20756 Don't call single_kboard_state. Use FRAME_RIF.
20757
20758 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20759 systems.
20760
20761 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20762 (Fframe_with_environment, Fset_input_meta_mode)
20763 (Fset_quit_char): EXFUN.
20764 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20765 (init_sys_modes, reset_sys_modes): Update prototypes.
20766 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20767
20768 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20769 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20770 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20771 Delete declarations.
20772 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20773 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20774 New declarations.
20775
20776 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20777 already does that during init_display(). Call syms_of_keymap
20778 before syms_of_keyboard. Call `syms_of_terminal'.
20779 Call set_initial_environment, not set_process_environment.
20780 (shut_down_emacs): Call reset_all_sys_modes() instead of
20781 reset_sys_modes().
20782
20783 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20784 (internal_resolve_face_name, resolve_face_name_error): New functions.
20785 (resolve_face_name): Protect against loops and errors thrown by Fget.
20786 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20787 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20788
20789 * scroll.c: Replace CURTTY() with local variables throughout the
20790 file (where applicable).
20791 (calculate_scrolling, calculate_direct_scrolling)
20792 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20793 characteristics.
20794
20795 * keymap.c (Vfunction_key_map): Remove.
20796 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20797 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20798 (Vkey_translation_map): Remove.
20799 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20800 (Fdescribe_buffer_bindings)
20801 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20802 Update for terminal-local key-translation-map.
20803
20804 * Makefile.in (callproc.o): Update dependencies.
20805 (lisp, shortlisp): Add termdev.elc.
20806 (obj): Add terminal.o.
20807 (terminal.o): Add dependencies.
20808 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20809 (data.o, fns.o): Add termhooks.h dependency.
20810 (SOME_MACHINE_LISP): Add dnd.elc.
20811 (minibuf.o): Fix typo.
20812 Update dependencies.
20813
20814 * data.c (do_symval_forwarding, store_symval_forwarding)
20815 (find_symbol_value): Use the selected frame's keyboard, not
20816 current_kboard.
20817
20818 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20819 Vwindow_system.
20820
20821 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20822 Fmenu_bar_open.
20823 (syms_of_xmenu): Update defsubr.
20824 (mouse_position_for_popup, Fx_popup_menu)
20825 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20826 (set_frame_menubar, free_frame_menubar)
b97439ce 20827 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20828 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20829 an X frame.
20830
20831 * xselect.c (x_own_selection): Abort if not an X frame.
20832 (some_frame_on_display): Check if it is an X frame.
20833 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20834
20835 * coding.c: Include frame.h and termhooks.h.
20836 (terminal_coding, keyboard_coding): Delete.
20837 (Fset_terminal_coding_system_internal)
20838 (Fset_keyboard_coding_system_internal)
20839 (Fkeyboard_coding_system)
20840 (Fterminal_coding_system): Add a terminal parameter.
20841 Get terminal_coding from the terminal.
20842 (init_coding_once): Don't call setup_coding_system here.
20843
20844 * dispextern.h (set_scroll_region, turn_off_insert)
20845 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20846 (tty_clear_end_of_line, tty_setup_colors)
20847 (delete_tty, updating_frame)
20848 (produce_special_glyphs, produce_glyphs, write_glyphs)
20849 (insert_glyphs): Remove.
20850 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20851 (tty_turn_off_highlight, get_tty_size): Add declaration.
20852 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20853
20854 * frame.h (enum output_method): Add output_initial.
20855 (struct x_output): Delete.
20856 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20857 Access foreground_pixel and background_pixel directly from the frame.
20858 (tty_display): Delete.
20859 (struct frame): Add buried_buffer_list, foreground_pixel,
20860 background_pixel and terminal. Delete kboard.
20861 (union output_data): Add tty.
20862 (FRAME_KBOARD): Get the kboard from the terminal.
20863 (FRAME_INITIAL_P): New macro.
20864 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20865 (Qterm_environment_variable, Qdisplay_environment_variable)
20866 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20867 New declarations.
20868
20869 * termchar.h (tty_output, tty_display_info): New structures.
20870 (tty_list): Declare.
20871 (FRAME_TTY, CURTTY): New macros.
20872 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20873 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20874 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20875 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20876
20877 * callproc.c: Include frame.h and termhooks.h, for terminal
20878 parameters.
20879 (add_env): New function.
20880 (child_setup): Use it.
20881 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20882 (getenv_internal): Fix get_terminal_param call.
20883 (Fgetenv_internal, egetenv): Update doc.
20884 (syms_of_callproc): Initialize Vprocess_environment to nil.
20885 Register and initialize them. Remove obsolete defvars. Update doc
20886 strings.
20887 (child_setup): Handle Vlocal_environment_variables.
20888 (getenv_internal): Add terminal parameter.
20889 Handle Vlocal_environment_variables.
20890 (Fgetenv_internal): Add terminal parameter.
20891 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20892 environment in a frame (not terminal) parameter. Update doc strings.
20893 (set_initial_environment): Rename from set_global_environment.
20894 Store Emacs environment in initial frame parameter.
20895
20896 * xdisp.c (redisplay_internal): Update references to
20897 `previous_terminal_frame'.
20898 (display_mode_line, Fformat_mode_line): Replace calls to
20899 `push_frame_kboard' with `push_kboard'.
20900 (get_glyph_string_clip_rects): Add extra parentheses and
20901 braces to prevent compiler warnings.
20902 (calc_pixel_width_or_height): Add xassert to check that the
20903 frame is alive. Don't call `lookup_image' on a termcap frame.
20904 (message2_nolog, message3_nolog, redisplay_internal)
20905 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20906 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20907 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20908 (Fx_display_pixel_width, Fx_display_pixel_height)
20909 (Fx_display_planes, Fx_display_color_cells)
20910 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20911 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20912 (Fx_display_backing_store, Fx_display_visual_class)
20913 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20914 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20915
20916 * xfns.c (x_set_foreground_color x_set_background_color)
20917 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20918 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20919 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20920 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20921 terminal that is being deleted.
20922 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20923 frame parameter, and make sure it overrides any user-supplied setting.
20924 (Fx_close_connection, Fx_synchronize): Unify argument names with
20925 the rest of the DEFUNs.
20926
20927 * dispnew.c (Fsend_string_to_terminal): Update call to
20928 `get_tty_terminal'.
20929 (Fredraw_frame, Fsend_string_to_terminal)
20930 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20931 FRAME_TERMCAP_P and FRAME_TTY.
20932 (window_change_signal): Don't believe width/height values that are
20933 impossibly small.
20934 (Vinitial_window_system): Rename from Vwindow_system.
20935 (termscript, Wcm, rif): Delete.
20936
20937 * termhooks.h (struct terminal): New struct containing the
20938 previously global text display hooks and new members NAME,
20939 DELETED and PARAM_ALIST.
20940 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20941 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20942 (FRAME_RIF): New macros.
20943 (get_terminal_param, get_device): New declarations.
20944 (termscript): Delete declaration.
20945
20946 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20947 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20948 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20949 FRAME_FOREGROUND_PIXEL.
20950 (x_fully_uncatch_errors): Disable definition.
20951 (x_scroll_bar_expose): Fix reference to foreground pixel.
20952 (XTread_socket): Disable loop on all X displays.
20953 (x_delete_terminal): Don't set terminal->deleted and let
20954 delete_terminal delete the frames on the terminal.
20955 (x_delete_display): Doc update to reflect changes in
20956 delete_terminal.
20957 (x_display_info) <terminal>: Move member earlier in the struct.
20958 (deleting_tty): Remove old variable.
20959 (Fsuspend_tty): Call clear_tty_hooks.
20960 (Fresume_tty, init_tty): Call set_tty_hooks.
20961 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20962 errors on X frames.
20963 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20964 (handle_one_xevent): Initialize `f' to NULL.
20965 (x_delete_terminal, x_create_terminal): New functions.
20966 (XTset_terminal_modes, XTreset_terminal_modes)
20967 (XTread_socket, x_connection_closed, x_term_init)
20968 (x_term_init, x_delete_display): Add terminal parameter.
20969 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20970 X connections.
20971
20972 * frame.c: Include termchar.h.
20973 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20974 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20975 (Qdisplay_environment_variable): New vars.
20976 (Fframep): Deal with output_initial.
20977 (Fframe-live-p): Doc fix.
20978 (Fwindow-system): New function.
20979 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20980 (make_terminal_frame): Don't create frames on a terminal that is
20981 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20982 (store_frame_param): Check for found_for_frame before calling XFRAME.
20983 (Fmake_terminal_frame): Handle NULL tty names correctly.
20984 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20985 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20986 frames to refer to a deleted frame in their 'environment parameter.
20987 (Fframe_with_environment): New function.
20988 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20989 (get_future_frame_param): New function.
20990 (Fmake_terminal_frame): Use it.
20991 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20992
20993 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20994 * sysdep.c (reset_sys_modes): Update for renames.
20995
20996 * keyboard.c (tty_read_avail_input): New function.
20997 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20998 (syms_of_keyboard): Defsubr them.
20999 (Fset_input_meta_mode, Fset_quit_char): New functions.
21000 (Fset_input_mode): Split to above functions.
21001 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21002 parameter. Use it in call to `read_char'.
21003 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21004 Set wrong_kboard_jmpbuf correctly in recursive calls.
21005 Use current_kboard to access Vkeyboard_translate_table.
21006 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21007 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21008 Update longjmp invocations. Remember the original current_kboard,
21009 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21010 changes it. Comment out unnecessary calls to
21011 `record_single_kboard_state' and `any_kboard_state'.
21012 Update recursive calls.
21013 (wrong_kboard_jmpbuf): Remove global variable.
21014 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21015 Handle deleted interrupted_kboards correctly; that is a legal
21016 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21017 and read_char calls. Abort if interrupted_kboard died in read_char.
21018 (any_kboard_state, single_kboard_state)
21019 (push_frame_kboard): Remove function.
21020 (pop_kboard): Switch out of single_kboard mode if the kboard has
21021 been deleted. Remove unused variable. Help debugging by not
21022 changing current_kboard unnecessarily. Set current_kboard to the
21023 kboard of the selected frame when the stored kboard object has
21024 been deleted before pop_kboard.
21025 (temporarily_switch_to_single_kboard): Change first parameter to a
21026 frame pointer. Throw an error when caller wants to change kboards
21027 while in single_kboard mode. Don't push_kboard if we weren't in
21028 single kboard state. Don't pop_kboard if we popped into any
21029 kboard state.
21030 (restore_kboard_configuration): Abort if pop_kboard changed the
21031 kboard in single_kboard mode. Call pop_kboard only after setting
21032 up single_kboard mode.
21033 (Frecursive_edit): Switch to single_kboard mode only in nested
21034 command loops.
21035 (cmd_error, command_loop, command_loop_1, timer_check):
21036 Comment out unnecessary call to `any_kboard_state' and
21037 `record_single_kboard_state'.
21038 (delete_kboard): Exit single_kboard mode if we have just deleted
21039 that kboard. Use FRAME_KBOARD.
21040 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21041 `fatal_error_signal'.
21042 (record_single_kboard_state): Don't push_kboard if we weren't in
21043 single kboard state. Don't pop_kboard if we popped into any
21044 kboard state.
21045 (push_frame_kboard): Rename to push_kboard.
21046 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21047 (read_avail_input): Read input from all terminals.
21048 (mark_kboards): Also mark Vkeyboard_translate_table.
21049 (kbd_buffer_store_event_hold): Simplify condition.
21050 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21051 (Vkeyboard_translate_table): Move to struct kboard.
21052 (init_kboard): Initialize Vkeyboard_translate_table.
21053 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21054 Vkeyboard_translate_table. Update doc strings. Update docs of
21055 local-function-key-map and function-key-map.
21056
21057 * terminal.c: New file.
21058
21059 * term.c: Include errno.h.
21060 (Vring_bell_function, device_list, initial_device)
21061 (next_device_id, ring_bell, update_begin, update_end)
21062 (set_terminal_window, cursor_to, raw_cursor_to)
21063 (clear_to_end, clear_frame, clear_end_of_line)
21064 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21065 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21066 (syms_of_term): Move their initialization to terminal.c.
21067 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21068 (Ftty_display_color_cells)
21069 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21070 (clear_tty_hooks, set_tty_hooks)
21071 (init_tty, maybe_fatal): New functions.
21072 (Ftty_type): Return nil if terminal is not on a tty instead of
21073 throwing an error. Doc update.
21074 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21075 Doc update. Initialize new subrs and variables.
21076 (delete_tty): Use terminal->deleted.
21077 (tty_set_terminal_modes): Rename from set_terminal_modes.
21078 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21079 (set_scroll_region): Rename to `tty_set_scroll_region'.
21080 (turn_on_insert): Rename to `tty_turn_on_insert'.
21081 (turn_off_insert): Rename to `tty_turn_off_insert'.
21082 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21083 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21084 (toggle_highligh): Rename to `tty_toggle_highlight'.
21085 (background_highlight): Rename to `tty_background_highlight'.
21086 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21087 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21088 (tty_set_scroll_region, tty_background_highlight)
21089 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21090 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21091 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21092 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21093 Add static modifier.
21094 (tty_reset_terminal_modes, tty_set_terminal_window)
21095 (tty_set_scroll_region, tty_background_highlight)
21096 (tty_highlight_if_desired, tty_cursor_to)
21097 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21098 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21099 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21100 renames.
21101
211022007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21103
21104 * keyboard.c: Qrtl is new.
21105 (parse_tool_bar_item): Handle :rtl keyword.
21106 (syms_of_keyboard): Intern :rtl keyword.
21107
21108 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21109
21110 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21111 so no Lisp code is executed.
21112 (file_for_image, find_rtl_image): New functions.
21113 (xg_get_image_for_pixmap): Use file_for_image.
21114 (update_frame_tool_bar): If direction is RTL, use RTL image if
21115 defined. Use Gtk stock images if defined.
21116
211172007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21118
21119 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21120 for nonexistent or zero-width glyph in composition glyph.
21121
211222007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21123
21124 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21125
21126 * xdisp.c (Finvisible_p): New function.
21127 (syms_of_xdisp): defsubr it.
21128
211292007-08-24 Juanma Barranquero <lekktu@gmail.com>
21130
21131 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21132 Doc fixes.
21133
211342007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21135
21136 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21137
211382007-08-24 Martin Rudalics <rudalics@gmx.at>
21139
21140 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21141 whether decoding has modified buffer contents.
21142
211432007-08-24 Jason Rumney <jasonr@gnu.org>
21144
21145 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21146 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21147 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21148 (init_svg_functions) [HAVE_NTGUI]: New function.
21149 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21150 (svg_load_image): Use them.
21151 (svg_load_image) [HAVE_NTGUI]: Implement background.
21152
211532007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21154
21155 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21156 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21157 (LIBX): Remove @RSVG_LIBS@.
21158 (LIBES): Add $(RSVG_LIBS).
21159
21160 * image.c (svg_load_image): Blend with specified background if exists.
21161 Use IMAGE_BACKGROUND. Add Mac OS Support.
21162
21163 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21164 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21165 Remove macros.
21166 [MAC_OSX] (socket_callback): Do nothing.
21167 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21168 ReceiveNextEvent.
21169 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21170 socket_callback.
21171 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21172
211732007-08-22 Glenn Morris <rgm@gnu.org>
21174
21175 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21176
211772007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21178
21179 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21180
21181 * image.c: Add support for SVG images. Some additional comments
21182 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21183 (svg_image_p): New function to test for SVG image.
21184 (svg_load): New function to load SVG image.
21185 (svg_load_image): New function, helper for svg_load.
21186 (Qsvg): New Lisp_object.
21187 (svg_keyword_index): New enum.
21188 (svg_format): New static `image_keyword' struct.
21189 (svg_type): New static `image_type' struct.
21190 (librsvg/rsvg.h): Include it.
21191
211922007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21193
21194 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21195
211962007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21197
21198 * lread.c (Qold_style_backquotes): New var.
21199 (syms_of_lread): Init and staticpro it.
21200 (load_warn_old_style_backquotes): New fun.
21201 (Fload): Use them to warn about old style backquotes.
21202 (end_of_file_error, Fload): Remove unused vars.
21203
21204 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21205
21206 * lread.c (Vold_style_backquotes): New var.
21207 (syms_of_lread): Init and export it to Elisp.
21208 (read1): Set it when we find an old-style (back)quote.
21209
212102007-08-22 Jason Rumney <jasonr@gnu.org>
21211
21212 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21213
212142007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21215
21216 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21217
212182007-08-19 Richard Stallman <rms@gnu.org>
21219
21220 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21221
212222007-08-19 Andreas Schwab <schwab@suse.de>
21223
21224 * alloc.c (pure): Round PURESIZE up.
21225
212262007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21227
21228 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21229 active frame.
21230
212312007-08-16 Richard Stallman <rms@gnu.org>
21232
21233 * eval.c (Fcommandp): Add parens to clarify.
21234
21235 * minibuf.c (Fall_completions): Use enum for type of table.
21236
21237 * emacs.c (USAGE2): Improve text.
21238
212392007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21240
21241 * term.c (tty_default_color_capabilities): Declare static
21242 variables in file scope, to avoid HPUX compiler problem.
21243
212442007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21245
21246 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21247 to gtk_toolbar_insert.
21248
212492007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21250
21251 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21252
21253 * insdel.c (reset_var_on_error): New fun.
21254 (signal_before_change, signal_after_change):
21255 Use it to reset (after|before)-change-functions to nil in case of error.
21256 Bind inhibit-modification-hooks to t.
21257 Don't bind (after|before)-change-functions to nil while they run.
21258
212592007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21260
21261 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21262 filling pixmap with stippled background.
21263
212642007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21265
21266 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21267 Don't use invisible frame as parent window for repositioning.
21268
212692007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21270
21271 * print.c (new_backquote_output): Rename from old_backquote_output.
21272 (print): Inverse its logic (according to its name) so as to match the
21273 behavior of new_backquote_flag in lread.c.
21274
212752007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21276
21277 * gmalloc.c (posix_memalign): New function.
21278
21279 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21280 ActivateControl/DeactivateControl here.
21281 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21282 frame-notice-user-settings is non-nil.
21283 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21284 for kEventParamFMFontStyle.
21285 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21286 mac_pass_command_to_system and mac_pass_control_to_system here.
21287 (XTread_socket): Call ActivateControl/DeactivateControl here.
21288 (XTread_socket) [TARGET_API_MAC_CARBON]:
21289 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21290 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21291 for window repositioning.
21292
212932007-08-08 Glenn Morris <rgm@gnu.org>
21294
21295 * Replace `iff' in doc-strings and comments.
21296
212972007-08-07 Chong Yidong <cyd@stupidchicken.com>
21298
21299 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21300
213012007-08-07 Martin Rudalics <rudalics@gmx.at>
21302
21303 * fileio.c (Finsert_file_contents): Run format-decode and
21304 after_insert_file_functions on entire buffer when REPLACE is
21305 non-nil and inhibit modification_hooks and point_motion_hooks.
21306 For consistency, run after_insert_file_functions iff something
21307 got inserted. Move signal_after_change and update_compositions
21308 after code running after_insert_file_functions. Make sure that
21309 undo_list doesn't record intermediate steps of the decoding process.
21310
213112007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21312
21313 * emacs.c (main)
21314 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21315 Call malloc_enable_thread on interactive startup.
21316
21317 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21318 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21319 [USE_PTHREAD]: Conditionalize with it.
21320 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21321 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21322 New functions.
21323
213242007-08-06 Chong Yidong <cyd@stupidchicken.com>
21325
21326 * xdisp.c (redisplay_window): When restoring original buffer
21327 position, make sure it is still valid.
21328
21329 * image.c (png_load): Ignore png-supplied background color.
21330
213312007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21332
21333 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21334 Use kCFAbsoluteTimeIntervalSince1970.
21335
21336 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21337 New variable.
21338 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21339 event loop should be quit.
21340 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21341 Quit dialog event loop if quit_dialog_event_loop is set.
21342
21343 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21344 (Selection): New typedef. Use instead of ScrapRef.
21345 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21346 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21347 (mac_clear_selection): Rename from clear_scrap.
21348 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21349 scrap_has_target_type. All uses changed.
21350 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21351 (mac_selection_has_target_p): New functions.
21352 (mac_put_selection_value): Rename from put_scrap_string.
21353 (mac_get_selection_value): Rename from get_scrap_string.
21354 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21355 (put_scrap_private_timestamp, scrap_has_target_type)
21356 (get_scrap_private_timestamp): Remove functions.
21357 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21358 (x_own_selection, x_get_local_selection):
21359 Use mac_valid_selection_value_p.
21360 (x_own_selection): Don't use put_scrap_private_timestamp.
21361 Record OWNERSHIP-INFO into Vselection_alist instead.
21362 (x_get_local_selection): Don't check type if request is local.
21363 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21364 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21365
213662007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21367
21368 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21369 add comment explaining why.
21370
213712007-08-03 Richard Stallman <rms@gnu.org>
21372
21373 * fileio.c (Fvisited_file_modtime): Use make_time.
21374
213752007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21376
21377 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21378 build.
21379
213802007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21381
21382 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21383
213842007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21385
21386 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21387
213882007-07-30 Richard Stallman <rms@gnu.org>
21389
21390 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21391
213922007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21393
21394 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21395
213962007-07-28 Nick Roberts <nickrob@snap.net.nz>
21397
21398 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21399 remote default-directory.
21400
21401 * buffer.c (mode-line-format): Update doc string.
21402
214032007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21404
21405 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21406 scroll bar gap.
21407 (x_scroll_bar_create): Set bar->fringe_extended_p.
21408 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21409 on frame edge. Check fringe background extension. Don't clear
21410 extended fringe background area.
21411
21412 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21413 (w32_fill_area): Enclose multiple statements with do ... while (0).
21414
21415 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21416 Extend fringe background to scroll bar gap.
21417 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21418 Set bar->fringe_extended_p.
21419 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21420 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21421 background extension. Don't clear extended fringe background area.
21422
21423 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21424 New member fringe_extended_p.
21425
214262007-07-25 Glenn Morris <rgm@gnu.org>
21427
21428 * Relicense all FSF files to GPLv3 or later.
21429
21430 * COPYING: Switch to GPLv3.
21431
214322007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21433
21434 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21435
21436 * data.c (Finteractive_form): Check for the presence of an
21437 `interactive-form' symbol property more thoroughly.
21438
21439 * data.c (Finteractive_form): Use an `interactive-form' property if
21440 present, analogous to the function-documentation property.
21441
214422007-07-24 Jason Rumney <jasonr@gnu.org>
21443
21444 * w32fns.c (x_real_positions): Get real position from OS instead of
21445 calculating it.
21446
214472007-07-23 Jason Rumney <jasonr@gnu.org>
21448
21449 * filelock.c (current_lock_owner): Allow for @ sign in username.
21450
214512007-07-22 Nick Roberts <nickrob@snap.net.nz>
21452
21453 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21454 remote default-directory.
21455
21456 * buffer.c (mode-line-format): Describe above case in doc string.
21457
214582007-07-20 Eli Zaretskii <eliz@gnu.org>
21459
21460 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21461 Define if not defined.
21462
214632007-07-18 Jason Rumney <jasonr@gnu.org>
21464
21465 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21466
214672007-07-18 Richard Stallman <rms@gnu.org>
21468
21469 * data.c (Fsetq_default): Doc fix.
21470
21471 * eval.c (Fsetq): Doc fix.
21472
214732007-07-18 Juanma Barranquero <lekktu@gmail.com>
21474
21475 * coding.c (Ffind_operation_coding_system):
21476 * eval.c (For, Fand): Doc fixes.
21477 Reported by Johan Bockgård.
21478
214792007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21480
21481 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21482
21483 * xterm.h: Declare x_ewmh_activate_frame.
21484
21485 * xterm.c (x_ewmh_activate_frame): New function.
21486 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21487
214882007-07-17 Martin Rudalics <rudalics@gmx.at>
21489
21490 * window.c (Fdisplay_buffer): If largest or LRU window is the
21491 only window, split it even if it is not eligible for splitting.
21492 This restores the original behavior broken by the 2007-07-15
21493 change.
21494
214952007-07-17 Glenn Morris <rgm@gnu.org>
21496
21497 * abbrev.c (abbrev_check_chars): New function.
21498 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21499 Call abbrev_check_chars to check abbrev characters are word
21500 constituents. Doc fix.
21501
215022007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21503
21504 * process.c (Fstart_process, Fmake_network_process)
21505 (read_process_output): Fix up last changes.
21506
215072007-07-16 Eli Zaretskii <eliz@gnu.org>
21508
21509 * makefile.w32-in (clean): Don't delete *~.
21510
215112007-07-16 Andreas Schwab <schwab@suse.de>
21512
21513 * window.c (Fdisplay_buffer): Use NILP.
21514 (Fset_window_scroll_bars): Likewise.
21515
215162007-07-15 Martin Rudalics <rudalics@gmx.at>
21517
21518 * window.c (window_min_size_2): New function.
21519 (window_min_size_1, size_window, Fdisplay_buffer)
21520 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21521 windows without mode- or header-lines when window-min-height is
21522 too small.
21523 (size_window): Reset nodelete_p after testing it, following an
21524 earlier note by Kim F. Storm.
21525 (display_buffer): Do not set split_height_threshold to twice the
21526 value of window_min_height to avoid changing the value of a
21527 customizable variable. Rather explicitly check whether the
21528 height of the window that shall be splitted is at least as large
21529 as split_height_threshold.
21530 (Fwindow_full_width_p): New defun.
21531 (syms_of_window): Defsubr it.
21532
21533 * window.h: Add EXFUN for Fwindow_full_width_p.
21534
215352007-07-14 Jason Rumney <jasonr@gnu.org>
21536
21537 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21538
215392007-07-14 Richard Stallman <rms@gnu.org>
21540
21541 * eval.c (maybe_call_debugger): New function.
21542 (find_handler_clause): Use maybe_call_debugger.
21543 Call it when the handler says `debug'.
21544 Eliminate DEBUGGER_VALUE_PTR.
21545 (Fsignal): Eliminate debugger_value.
21546 (Qdebug): New variable.
21547 (syms_of_eval): Initialize it.
21548
215492007-07-14 Juanma Barranquero <lekktu@gmail.com>
21550
21551 * eval.c (Fprogn):
21552 * keyboard.c (Ftrack_mouse):
21553 * print.c (Fwith_output_to_temp_buffer):
21554 * window.c (Fsave_window_excursion): Doc fix.
21555
215562007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21557
21558 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21559
215602007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21561
21562 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21563 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21564 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21565 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21566 Remove unused encoding_carryover.
21567 * process.c: Adjust all functions accordingly.
21568
215692007-07-12 Richard Stallman <rms@gnu.org>
21570
21571 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21572
215732007-07-11 Jason Rumney <jasonr@gnu.org>
21574
21575 * makefile.w32-in (LIBS): Include OLE32.
21576
21577 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21578 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21579
215802007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21581
21582 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21583 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21584 from a Lisp_Object into a bare pointer.
21585 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21586 Adjust the code correspondingly.
21587
21588 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21589
21590 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21591 (term_show_mouse_face): Remove unused var `j'.
21592 (handle_one_term_event): Remove unused vars `i' and `j'.
21593 Don't cast return value of ttyname since it's not necessary.
21594
215952007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21596
21597 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21598 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21599
21600 * fns.c (map_char_table): Use an array of int for `indices' rather than
21601 an array of Lisp_Objects (which are only ever integers anyway).
21602 (Fmap_char_table): Update caller.
21603 * lisp.h: Update prototype.
21604 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21605 * fontset.c (Ffontset_info):
21606 * casetab.c (set_case_table): Update callers.
21607
21608 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21609
21610 * keymap.c (struct accessible_keymaps_data)
21611 (struct where_is_internal_data): New structures.
21612 (accessible_keymaps_1, where_is_internal_1): Use them to change
21613 interface to adhere to the one used by map_keymap.
21614 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21615 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21616
21617 * keymap.h (map_keymap_function_t): More informative prototype.
21618
216192007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21620
21621 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21622 (looking_at_1): Don't change search_regs and last_thing_searched
21623 if `inhibit-changing-match-data' is non-nil.
21624 (string_match_1, search_buffer, set_search_regs): Likewise.
21625 (syms_of_search): Add Lisp level definition for
21626 `inhibit-changing-match-data' and set it to nil.
21627 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21628 start and end of the match, instead of using values in search_regs.
21629
216302007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21631
21632 * minibuf.c (Fcompleting_read): New value `confirm-only'
21633 for `require-match'.
21634
216352007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21636
21637 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21638 part of the 2007-06-27 change to syms_of_fileio.
21639
216402007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21641
21642 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21643 Check WINDOWP before using XWINDOW. Consolidate return statements.
21644
216452007-06-27 Richard Stallman <rms@gnu.org>
21646
21647 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21648
216492007-06-27 Juanma Barranquero <lekktu@gmail.com>
21650
21651 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21652
216532007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21654
21655 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21656 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21657 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21658 (_free_internal, memalign): Use them.
21659 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21660 Initialize to PTHREAD_MUTEX_INITIALIZER.
21661 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21662 (morecore_nolock): Rename from morecore. All uses changed.
21663 Use only nolock versions of internal allocation functions.
21664 (_malloc_internal_nolock, _realloc_internal_nolock)
21665 (_free_internal_nolock): New functions created from
21666 _malloc_internal, _realloc_internal, and _free_internal.
21667 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21668 Copy hook value to automatic variable before its use.
21669 (memalign): Copy hook value to automatic variable before its use.
21670
216712007-06-26 Kenichi Handa <handa@m17n.org>
21672
21673 * coding.c (Ffind_operation_coding_system): Docstring improved.
21674 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21675
216762007-06-25 David Kastrup <dak@gnu.org>
21677
21678 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21679 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21680 cater for additional parameter.
21681
21682 * keymap.h: Adjust number of parameters to `current-active-maps'.
21683
21684 * doc.c (Fsubstitute_command_keys): Adjust call of
21685 `current-active-maps'.
21686
216872007-06-25 David Kastrup <dak@gnu.org>
21688
21689 * callint.c (Fcall_interactively): Make the parsing of interactive
21690 specs somewhat more readable.
21691
216922007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21693
21694 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21695 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21696 if extended background has already been filled.
21697
216982007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21699
21700 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21701 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21702
21703 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21704 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21705 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21706 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21707 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21708 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21709 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21710 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21711 Run timers during dialog popup.
21712 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21713
217142007-06-21 Jason Rumney <jasonr@gnu.org>
21715
21716 * image.c (convert_mono_to_color_image): Swap fore and background.
21717
217182007-06-20 Jason Rumney <jasonr@gnu.org>
21719
21720 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21721 (w32_free_bdf_font): Unmap memory not handle.
21722
217232007-06-20 Sam Steingold <sds@gnu.org>
21724
21725 * gmalloc.c (__morecore): Fix the declaration to comply with the
21726 definition.
21727
217282007-06-20 Juanma Barranquero <lekktu@gmail.com>
21729
21730 * w32term.c (w32_delete_display): Remove leftover declaration.
21731 (w32_define_cursor, w32_initialize): Make static.
21732
21733 * w32.c (_wsa_errlist): Fix typo in error message.
21734 (init_environment): Ignore any environment variable from the
21735 registry having a null value.
21736
217372007-06-20 Glenn Morris <rgm@gnu.org>
21738
21739 * Makefile.in (LIBGIF): Default to -lgif.
21740
217412007-06-17 Jason Rumney <jasonr@gnu.org>
21742
21743 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21744 unicode strings.
21745
217462007-06-16 Juanma Barranquero <lekktu@gmail.com>
21747
21748 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21749 Fix typo in docstring.
21750
217512007-06-16 Eli Zaretskii <eliz@gnu.org>
21752
21753 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21754 and their keybindings.
21755
217562007-06-15 Chong Yidong <cyd@stupidchicken.com>
21757
21758 * composite.c (update_compositions): Fix last fix.
21759
217602007-06-14 Jason Rumney <jasonr@gnu.org>
21761
21762 * w32.c (get_process_times_fn): New function pointer.
21763 (globals_of_w32): Intialize it if present in kernel32.dll.
21764 (w32_get_internal_run_time): New function.
21765
21766 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21767
217682007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21769
21770 * composite.c (update_compositions): Check the validness of
21771 compositions.
21772
217732007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21774
21775 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21776 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21777
21778 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21779 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21780
21781 * macgui.h (USE_MAC_TOOLBAR): New define.
21782
21783 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21784 Return immediately unless popup is activated.
21785
21786 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21787 background to scroll bar gap.
21788 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21789 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21790 scroll bars on frame edge. Check fringe background extension.
21791 Don't clear extended fringe background area.
21792 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21793 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21794 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21795 [USE_MAC_TOOLBAR]: New macros.
21796 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21797 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21798 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21799 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21800 [USE_MAC_TOOLBAR]: New functions.
21801 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21802 manually if previous repositioning has failed.
21803 (mac_handle_keyboard_event): Use precomputed event kind.
21804 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21805 as tool bar item click. Handle mouse movement over tool bar items.
21806
21807 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21808 toolbar_win_gravity.
21809 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21810 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21811 Add externs.
21812
21813 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21814 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21815
218162007-06-14 Chong Yidong <cyd@stupidchicken.com>
21817
21818 * image.c (search_image_cache): Remove unused variable.
21819
218202007-06-13 Chong Yidong <cyd@stupidchicken.com>
21821
21822 * xfns.c, xmenu.c: Link to xaw3d if available.
21823
218242007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21825
21826 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21827 frame_foreground and frame_background.
21828
21829 * image.c (lookup_image): Save frame foreground and background colors.
21830 (search_image_cache): Check if saved and current frame colors match.
21831
218322007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21833
21834 * regex.c (regex_compile): Remove the `regnum' counter.
21835 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21836
218372007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21838
21839 * term.c: Include intervals.h to declare Fget_text_property.
21840
218412007-06-10 Jason Rumney <jasonr@gnu.org>
21842
21843 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21844
218452007-06-08 Juanma Barranquero <lekktu@gmail.com>
21846
21847 * callint.c (Fcall_interactively):
21848 * editfns.c (Fdelete_and_extract_region):
21849 * fileio.c (Fread_file_name):
21850 * fns.c (Fmapconcat):
21851 * keyboard.c (cmd_error_internal):
21852 * keymap.c (Fkey_description):
21853 * lread.c (openp):
21854 * minibuf.c (read_minibuf):
21855 * search.c (wordify):
21856 * sunfns.c (sel_read):
21857 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21858 * xfns.c (x_default_scroll_bar_color_parameter):
21859 * xmenu.c (menu_help_callback):
21860 * xselect.c (Fx_get_atom_name):
21861 * xterm.c (x_term_init): Use empty_unibyte_string.
21862
218632007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21864
21865 * alloc.c (init_strings): Initialize canonical empty strings.
21866 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21867 canonical empty string when the requested size is 0.
21868
21869 * emacs.c (empty_unibyte_string): Rename from empty_string.
21870 (empty_multibyte_string): New canonical empty string.
21871 (syms_of_emacs): Don't initialize empty_string.
21872
21873 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21874 string, if appropriate.
21875 (empty_unibyte_string, empty_multibyte_string): New externs.
21876 (empty_string): Remove extern.
21877
21878 * lread.c (syms_of_lread): Use empty_unibyte_string.
21879
218802007-06-07 Jason Rumney <jasonr@gnu.org>
21881
21882 * s/ms-w32.h: Don't define HAVE_TZNAME.
21883
21884 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21885
218862007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21887
21888 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21889
21890 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21891 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21892
21893 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21894 Don't call next handler.
21895 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21896 Remove argument. Install handler to application.
21897 (set_frame_menubar): Don't change deep_p.
21898 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21899 FRAME_OUTER_TO_INNER_DIFF_Y.
21900 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21901 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21902 [HAVE_DIALOGS]: New macros.
21903 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21904 Use them.
21905 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21906
21907 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21908 init_service_handler. All callers changed. Return OSStatus value.
21909
21910 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21911 All callers changed so as not to call SetPortWindowPort.
21912 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21913 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21914 mac_draw_string_common.
21915 (mac_draw_image_string_qd): Likewise.
21916 (mac_draw_string_common): Use them. Add INLINE.
21917 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21918 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21919 GetGlobalMouse.
21920 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21921 and FRAME_OUTER_TO_INNER_DIFF_Y.
21922 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21923 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21924 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21925 repositioning window to mac_handle_window_event.
21926 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21927 saving window location to mac_handle_window_event
21928 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21929 (install_menu_target_item_handler): Remove argument in extern.
21930 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21931 Also accept command events.
21932 (do_keystroke): New function created from XTread_socket.
21933 (init_command_handler): Remove functions.
21934 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21935 and save window location by kEventWindowShowing and kEventWindowHiding
21936 handlers here. Don't call next handler for window state change and
21937 focus events.
21938 (mac_handle_application_event, mac_handle_keyboard_event)
21939 [TARGET_API_MAC_CARBON]: New functions.
21940 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21941 kEventWindowShowing and kEventWindowHiding events. Move installation
21942 of mouse, font, text input and menu target item handlers to
21943 install_application_handler.
21944 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21945 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21946 New function.
21947 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21948 Register it.
21949 (XTread_socket) [TARGET_API_MAC_CARBON]:
21950 Consolidate SendEventToEventTarget calls.
21951 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21952 Move application activation handler to mac_handle_application_event.
21953 Move keyboard handler to mac_handle_keyboard_event.
21954 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21955 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21956 init_command_handler. Call install_application_handler.
21957
21958 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21959 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21960
219612007-06-07 Glenn Morris <rgm@gnu.org>
21962
21963 * emacs.c (main): Use `emacs-copyright' in --version output.
21964
219652007-06-06 Chong Yidong <cyd@stupidchicken.com>
21966
21967 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21968
219692007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21970
21971 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21972
21973 * macgui.h: Replace WindowPtr with WindowRef.
21974
21975 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21976 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21977 Replace ControlHandle with ControlRef.
21978 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21979
21980 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21981 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21982 Replace ControlHandle with ControlRef.
21983 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21984 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21985
21986 * macterm.h (struct scroll_bar): Rename member control_handle_low
21987 and control_handle_high to control_ref_low and control_ref_high.
21988 All uses changed.
21989 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21990 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21991 respectively. All uses changed.
21992 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21993 (install_window_handler, remove_window_handler): Replace WindowPtr
21994 with WindowRef in externs.
21995
219962007-06-05 Juanma Barranquero <lekktu@gmail.com>
21997
21998 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21999
220002007-06-03 Nick Roberts <nickrob@snap.net.nz>
22001
22002 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22003
22004 * frame.c (Fmouse_position, Fmouse_pixel_position):
22005 Condition on HAVE_GPM too.
22006
22007 * term.c (term_mouse_highlight): Remove unused variables.
22008 (Fterm_open_connection): Set gpm_zerobased to 1.
22009 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22010 Use zero based co-ordinates.
22011 (handle_one_term_event): Report a drag as mouse movement too.
22012
22013 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22014
220152007-06-03 Chong Yidong <cyd@stupidchicken.com>
22016
22017 * image.c (search_image_cache): New function. Require background
22018 color match if background color is unspecified in the image spec.
22019 (uncache_image, lookup_image): Use it.
22020
220212007-06-01 Juanma Barranquero <lekktu@gmail.com>
22022
22023 * window.c (Fshrink_window): Reflow docstring.
22024
220252007-06-02 Chong Yidong <cyd@stupidchicken.com>
22026
22027 * Version 22.1 released.
22028
220292007-06-01 Richard Stallman <rms@gnu.org>
22030
22031 * xfns.c (x_encode_text): Add GCPRO.
22032
220332007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22034
22035 * xfns.c (x_set_name_internal): Save encoded name before
22036 x_encode_text in case string data is relocated.
22037
220382007-05-31 Richard Stallman <rms@gnu.org>
22039
22040 * buffer.c (syms_of_buffer): Doc fix.
22041
220422007-05-30 Nick Roberts <nickrob@snap.net.nz>
22043
22044 * sysdep.c (init_sys_modes): Add rather than replace with
22045 O_NONBLOCK.
22046
22047 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22048 term_mouse_moveto.
22049
22050 * termhooks.h (term_mouse_moveto): New extern.
22051
22052 * term.c (mouse_face_window): Rename...
22053 (Qmouse_face_window): ...to this.
22054 (term_show_mouse_face, term_clear_mouse_face)
22055 (term_mouse_highlight): Use Qmouse_face_window.
22056 (term_mouse_moveto): New function.
22057 (term_mouse_position): Make it work.
22058 (syms_of_term): Uncomment assignment to mouse_position_hook.
22059 Staticpro Qmouse_face_window.
22060
220612007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22062
22063 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22064 around current_column call.
22065
220662007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22067
22068 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22069 * xdisp.c (next_element_from_buffer):
22070 * window.c (delete_window):
22071 * term.c (term_mouse_highlight):
22072 * msdos.c (getdefdir):
22073 * macterm.c (mac_create_bitmap_from_bitmap_data)
22074 (init_font_name_table):
22075 * fns.c (Fsxhash):
22076 * data.c (Fmake_local_variable):
22077 * ccl.c (ccl_driver): Likewise.
22078
220792007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22080
22081 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22082 Call mac_wakeup_from_rne on window size change.
22083
220842007-05-25 Chong Yidong <cyd@stupidchicken.com>
22085
22086 * image.c (uncache_image): Fix typo.
22087
220882007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22089
22090 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22091
220922007-05-22 Richard Stallman <rms@gnu.org>
22093
22094 * xterm.c (x_connection_closed): Remove NO_RETURN.
22095
220962007-05-22 Martin Rudalics <rudalics@gmx.at>
22097
22098 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22099
221002007-05-21 Chong Yidong <cyd@stupidchicken.com>
22101
22102 * image.c (uncache_image): New function.
22103 (Fimage_refresh): New function.
22104
221052007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22106
22107 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22108
221092007-05-20 Nick Roberts <nickrob@snap.net.nz>
22110
22111 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22112 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22113
221142007-05-20 Nick Roberts <nickrob@snap.net.nz>
22115
22116 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22117 conditional on [HAVE_GPM_H].
22118
221192007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22120
22121 * syntax.c (skip_chars): Update syntax-table only after we checked that
22122 the new location is valid.
22123
221242007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22125
22126 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22127 mac_get_window_bounds.
22128
221292007-05-20 Nick Roberts <nickrob@snap.net.nz>
22130
22131 * Makefile.in (LIBGPM): Allow it to be set from configure.
22132 If set then link Emacs with it.
22133
22134 * config.in: Regenerate.
22135
22136 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22137 New externs.
22138
22139 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22140 Include gpm.h.
22141 (handle_one_term_event, term_gpm): New externs.
22142
22143 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22144 and allow it to be interrupted by SIGIO.
22145
22146 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22147 (wait_reading_process_output): Wait on gpm_fd too.
22148 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22149 (add_gpm_wait_descriptor_called_flag): New variable.
22150 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22151
22152 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22153 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22154 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22155 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22156 (make_lispy_event): Add case GPM_CLICK_EVENT.
22157 (read_avail_input): Handle mouse input.
22158
22159 * term.c (write_glyphs_with_face): New function.
22160 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22161 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22162 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22163 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22164 (last_mouse_x, last_mouse_y): New variables.
22165 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22166 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22167 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22168 (Fterm_close_connection): New functions.
22169 (term_init): Initialise mouse_face_window.
22170
221712007-05-19 Chong Yidong <cyd@stupidchicken.com>
22172
22173 * xdisp.c (redisplay_window): If first window line is a
22174 continuation line, recompute the new window start instead of
22175 recentering.
22176
221772007-05-18 Glenn Morris <rgm@gnu.org>
22178
22179 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22180 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22181
221822007-05-17 Glenn Morris <rgm@gnu.org>
22183
22184 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22185
221862007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22187
22188 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22189 dead key repeat and up events.
22190
221912007-05-14 Chong Yidong <cyd@stupidchicken.com>
22192
22193 * image.c (pbm_load): Check image size for monochrome pbm.
22194
221952007-05-13 Chong Yidong <cyd@stupidchicken.com>
22196
22197 * xterm.c (XTread_socket): Revert last change.
22198
221992007-05-12 Chong Yidong <cyd@stupidchicken.com>
22200
22201 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22202
22203 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22204
222052007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22206
22207 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22208 mixup (YAILOM).
22209
222102007-05-07 Andreas Schwab <schwab@suse.de>
22211
22212 * keymap.c (Flookup_key): Fix typo in last change.
22213
222142007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22215
22216 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22217 mapping for unibyte strings.
22218
222192007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22220
22221 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22222 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22223
222242007-04-29 Richard Stallman <rms@gnu.org>
22225
22226 * insdel.c (replace_range): For undo, record insertion first.
22227
222282007-04-29 Andreas Schwab <schwab@suse.de>
22229
22230 * lisp.h (VECSIZE): Use OFFSETOF.
22231
222322007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22233
22234 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22235 disabled lines.
22236
222372007-04-28 Richard Stallman <rms@gnu.org>
22238
22239 * lread.c (read_escape): In a string, \s is always space.
22240
222412007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22242
22243 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22244
22245 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22246 submenu for menu bar items.
22247
22248See ChangeLog.10 for earlier changes.
22249
22250;; Local Variables:
22251;; coding: utf-8
22252;; add-log-time-zone-rule: t
aac0c6e3
MR
22253;; End:
22254
e3eb1dae 22255 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22256
22257 This file is part of GNU Emacs.
22258
22259 GNU Emacs is free software: you can redistribute it and/or modify
22260 it under the terms of the GNU General Public License as published by
22261 the Free Software Foundation, either version 3 of the License, or
22262 (at your option) any later version.
22263
22264 GNU Emacs is distributed in the hope that it will be useful,
22265 but WITHOUT ANY WARRANTY; without even the implied warranty of
22266 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22267 GNU General Public License for more details.
22268
22269 You should have received a copy of the GNU General Public License
22270 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22271
22272;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40