Mention the bug number for the last change in make-dist.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
93d50df8
KH
12010-10-08 Kenichi Handa <handa@m17n.org>
2
2b7c9342 3 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 4
a79b0f28
MA
52010-10-03 Michael Albinus <michael.albinus@gmx.de>
6
7 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
8 (Fdbus_init_bus): ... here. (Bug#7113)
9
7b2bf907
GM
102010-10-03 Glenn Morris <rgm@gnu.org>
11
12 * buffer.c (before-change-functions, after-change-functions):
13 Three-year overdue doc fix following 2007-08-13 change.
14
1911a33b
KH
152010-10-02 Kenichi Handa <handa@m17n.org>
16
17 * coding.c (coding_inherit_eol_type): If parent doesn't specify
18 eol-format, inherit from the system's default.
19 (complement_process_encoding_system): Make a new coding system
20 inherit the original eol-format.
21
fcaf8878
KH
222010-09-30 Kenichi Handa <handa@m17n.org>
23
24 * coding.c (complement_process_encoding_system): New function.
25
26 * coding.h (complement_process_encoding_system): Extern it.
27
28 * callproc.c (Fcall_process): Complement the coding system for
29 encoding arguments.
30 (Fcall_process_region): Complement the coding system for encoding
31 the input to the process.
32
33 * process.c (Fstart_process): Complement the coding system for
34 encoding arguments.
35 (send_process): Complement the coding system for encoding what
36 sent to the process.
37
18acb5ad
KH
382010-09-29 Kenichi Handa <handa@m17n.org>
39
40 * xfont.c (xfont_open): Fix setting of font->average_width from
41 :avgwidth property (Bug#7123).
42
dec83468
MA
432010-09-28 Michael Albinus <michael.albinus@gmx.de>
44
45 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
46 is more portable.
47
48 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
49 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
50 has not defined SIGIO.
51
e0720500
MA
522010-09-27 Michael Albinus <michael.albinus@gmx.de>
53
11a5af7c 54 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
55 (Bug#7113)
56
42d3022b
J
572010-09-26 Jan Djärv <jan.h.d@swipnet.se>
58
59 * xgselect.c (xg_select): Clear file descriptors not set from
60 rfds and wfds.
61
fbb3da77
SM
622010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
63
64 * syntax.c (back_comment): Detect the case where a 1-char comment
65 starter is also the 2nd char of a 2-char comment ender.
66
2b5b82db
J
672010-09-17 Jan Djärv <jan.h.d@swipnet.se>
68
69 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
70
5f61a25c
J
712010-09-12 Jan Djärv <jan.h.d@swipnet.se>
72
73 * xterm.c (get_current_vm_state): New function.
74 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
75 want_fullscreen so set_wm_state calls are few (Bug#7013).
76 (x_handle_net_wm_state): Move code to get_current_vm_state and
77 call that function.
78
65c92e31 792010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
80
81 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
82
a552b35a
KH
832010-09-08 Kenichi Handa <handa@m17n.org>
84
85 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
86 we may use designation or locking-shift.
87
396475b7
KH
882010-09-07 Kenichi Handa <handa@m17n.org>
89
90 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
91 sequence when the source is multibyte.
92
d419e1d9
KH
932010-08-31 Kenichi Handa <handa@m17n.org>
94
95 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
96 characters.
97
98 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
99 (produce_glyphs): Don't set it->char_to_display here.
100 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
101 (produce_special_glyphs): Set temp_it.char_to_display before
102 calling produce_glyphs.
103
104 * xdisp.c (get_next_display_element): Set it->char_to_display
105 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
106 characters.
107 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
108 calling PRODUCE_GLYPHS.
109 (append_space_for_newline): Save and store it->char_to_display.
110 Set it->char_to_display before calling PRODUCE_GLYPHS.
111 (extend_face_to_end_of_line): Set it->char_to_display before
112 calling PRODUCE_GLYPHS.
113 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
114 character to its byte value.
115 (get_char_glyph_code): New function.
116 (produce_stretch_glyph): Set it2.char_to_display too before
117 calling x_produce_glyphs.
118 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
119 non-ASCII characters. Don't set it->char_to_display here.
120 Don't handle unibyte-display-via-language-environment here. For a
d419e1d9
KH
121 charater of no glyph, use font->space_width instead of FONT_WIDTH.
122
769ae9e1
KH
1232010-08-29 Kenichi Handa <handa@m17n.org>
124
125 * term.c (encode_terminal_code): Encode byte chars to the
126 correspnding bytes.
127
b72e0717
AS
1282010-08-17 Andreas Schwab <schwab@linux-m68k.org>
129
130 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
131 instead of SAFE_ALLOCA.
132
3a7a9129
CY
1332010-08-17 Chong Yidong <cyd@stupidchicken.com>
134
135 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
136 (Bug#6214).
137
983b8302
J
1382010-08-14 Jan Djärv <jan.h.d@swipnet.se>
139
140 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
141
7d1b9df3
J
1422010-08-13 Jan Djärv <jan.h.d@swipnet.se>
143
144 * doc.c (Fsnarf_documentation): Initialize skip_file before
145 build-files test.
146
2294b255
PG
1472010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
148
65b3d997
A
149 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
150 New definitions.
2294b255
PG
151 (HAVE_TERMIO): Remove.
152
7a84eee5
KH
1532010-08-06 Kenichi Handa <handa@m17n.org>
154
155 * charset.c: Include <stdlib.h>
156 (struct charset_sort_data): New struct.
157 (charset_compare): New function.
158 (Fsort_charsets): New funciton.
159 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
160
161 * coding.c (decode_coding_iso_2022): Fix checking of dimension
162 number in CTEXT extended segment.
163
f5f6c0e0
JB
1642010-08-01 Juanma Barranquero <lekktu@gmail.com>
165
166 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
167 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
168
b756c005
JB
1692010-07-30 Juanma Barranquero <lekktu@gmail.com>
170
171 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
172 (Fhash_table_size): Fix typos in docstrings.
173 (Fmake_hash_table): Doc fix.
174
b4f588fa
JB
1752010-07-28 Juanma Barranquero <lekktu@gmail.com>
176
177 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
178 Doc fix (bug#5625).
179
9f8c08a7
KB
1802010-07-27 Ken Brown <kbrown@cornell.edu>
181
182 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
183 the MSDOS definition.
184
a2a0d36b
CS
1852010-07-25 Christoph Scholtes <cschol2112@gmail.com>
186
187 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
188
a77cfeaf
CS
1892010-07-22 Christoph Scholtes <cschol2112@gmail.com>
190
191 * window.c (Fwindow_height): Doc fix (bug#6518).
192
14fb5704
JB
1932010-07-21 Juanma Barranquero <lekktu@gmail.com>
194
195 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
196
499322ce
J
1972010-07-17 Jan Djärv <jan.h.d@swipnet.se>
198
199 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
200 is related to the menu bar (Bug#6499).
201
b78f9767
J
2022010-07-14 Jan Djärv <jan.h.d@swipnet.se>
203
204 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
205
206 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
207
208 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
209 i.e. don't put back ButtonRelease (Bug#6608).
210
211 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
212 instead of Window. Call xg_event_is_for_menubar when
213 USE_GTK (Bug#6499).
214
215 * gtkutil.h (xg_event_is_for_menubar): Declare.
216
217 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
218
1f60c16a
EZ
2192010-07-14 Eli Zaretskii <eliz@gnu.org>
220
221 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
222 when it's the same as the old foreground. (Bug#6609)
223
7c33a057
CY
2242010-07-10 Chong Yidong <cyd@stupidchicken.com>
225
226 * xfaces.c (realize_face): Garbage the frame if a face is removed
227 (Bug#6593).
228
9d70a3fc
AS
2292010-07-05 Andreas Schwab <schwab@linux-m68k.org>
230
231 * keyboard.c: Remove duplicate <setjmp.h>.
232 (read_key_sequence): Remove volatile qualifiers.
233
5a874e95
YM
2342010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
235
236 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
237 (struct glyph_row): New members left_fringe_offset and
238 right_fringe_offset.
239
240 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
241 specially.
242 * w32term.c (w32_draw_fringe_bitmap): Likewise.
243 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
244
245 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
246 Take account of bitmap offset.
247 (draw_window_fringes): Take account of window vscroll.
248 (update_window_fringes): Likewise. Extend top-aligned top indicator
249 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
250 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
251 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
252
0682186e
JB
2532010-07-04 Juanma Barranquero <lekktu@gmail.com>
254
255 * w32fns.c (Qtooltip): Declare.
256 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
257
ad3e6f44
J
2582010-07-03 Jan Djärv <jan.h.d@swipnet.se>
259
260 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
261 grab on just Press (Bug#6499).
262
54ee7410
CY
2632010-07-02 Chong Yidong <cyd@stupidchicken.com>
264
265 * frame.c (Qtooltip): New var.
266 (delete_frame): Use it. Fix faulty if statement. Don't update
267 mode line for tooltip frames. Suggested by Martin Rudalics.
268
269 * xfns.c (x_create_tip_frame):
270 * w32fns.c (x_create_tip_frame): Use it.
271
3d8416fc
NA
2722010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
273
274 * xftfont.c (xftfont_open): Check font width one by one also when
275 spacing is dual.
276
277 * ftfont.c (ftfont_open): Ditto.
278
b1feb9b4
AS
2792010-06-26 Andreas Schwab <schwab@linux-m68k.org>
280
281 * alloc.c (Fmake_byte_code): Don't access undefined argument
282 (Bug#6517).
283
c7dd9743
CY
2842010-06-25 Chong Yidong <cyd@stupidchicken.com>
285
286 * xdisp.c (next_element_from_image): Ensure that after-strings are
287 read the next time we hit handle_stop (Bug#1336).
288
5721b4ed
AS
2892010-06-23 Andreas Schwab <schwab@linux-m68k.org>
290
291 * lread.c (read1): Signal error if #s is not followed by paren.
292
277c5f18
CY
2932010-06-19 Chong Yidong <cyd@stupidchicken.com>
294
52ab9bb2
CY
295 * image.c (free_image): Mark frame as garbaged (Bug#6426).
296
277c5f18
CY
297 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
298
6fda6a0c
GM
2992010-06-15 Glenn Morris <rgm@gnu.org>
300
301 * editfns.c (Fbyte_to_string): Pacify compiler.
302
e454a4a3
SM
3032010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
304
305 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
306 Check `object's type before accessing its guts.
307
657d4c0b
AS
3082010-06-08 Andreas Schwab <schwab@linux-m68k.org>
309
310 * minibuf.c (Fall_completions): Add more checks.
311
9b27fd9f
JB
3122010-06-08 Juanma Barranquero <lekktu@gmail.com>
313
314 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
315
0eb7675e
AS
3162010-06-03 Andreas Schwab <schwab@linux-m68k.org>
317
318 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 319 address. (Bug#6346)
0eb7675e 320
78edd3b7
JB
3212010-06-03 Juanma Barranquero <lekktu@gmail.com>
322
323 * ccl.c (Fccl_program_p): Fix typo in docstring.
324
1ab8293c
SM
3252010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
326
327 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
328 of bug#6305).
329
5ca3929b
CY
3302010-05-27 Chong Yidong <cyd@stupidchicken.com>
331
332 * xdisp.c (redisplay_window): After redisplay, check if point is
333 still valid before setting it (Bug#6177).
334
f5b416d2 3352010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
336
337 * s/netbsd.h: If terminfo is found, use it in preference to
338 termcap. (Bug#6190) [Backport from trunk]
339
aeb77d46
CY
3402010-05-20 Kevin Ryde <user42@zip.com.au>
341
342 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
343 (Voverriding_terminal_local_map, Vsystem_key_alist)
344 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
345
c3bb441d
SM
3462010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
347
348 * editfns.c (Fbyte_to_string): New function.
349
754790b6
CY
3502010-05-18 Chong Yidong <cyd@stupidchicken.com>
351
352 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
353 prevent stack overflow if number of arguments is too large
354 (Bug#6214).
355
c8670ded
EZ
3562010-05-11 Eli Zaretskii <eliz@gnu.org>
357
358 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
359
360 * w32fns.c: Include w32.h.
361 (Fw32_shell_execute): Decode the error message before passing it
362 to `error'. (Bug#6126)
363
3ffd4615 3642010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
365
366 * ftfont.c: Fix incorrect parentheses of #if condition for
367 definining M17N_FLT_USE_NEW_FEATURE.
368
61a808e8
CY
3692010-05-07 Chong Yidong <cyd@stupidchicken.com>
370
371 * Version 23.2 released.
372
5dcde606
AS
3732010-04-30 Andreas Schwab <schwab@linux-m68k.org>
374
375 * composite.c (autocmp_chars): Save point as marker before calling
376 auto-composition-function (Bug#5984).
377
378 * lisp.h (restore_point_unwind): Add prototype.
379
380 * fileio.c (restore_point_unwind): Remove static attribute.
381
c4170e32
KH
3822010-04-23 Kenichi Handa <handa@m17n.org>
383
384 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
385 new feature of libotf and m17n-flt.
65b3d997
A
386 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
387 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
388 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
389 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
390 that OUT is NULL. Use OTF_drive_gsub_with_log and
391 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
392 OTF_drive_gpos.
393 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
394 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
395 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 396
e42cd1a7
JB
3972010-04-19 Juanma Barranquero <lekktu@gmail.com>
398
399 * dired.c (Ffile_attributes): Fix typo in docstring.
400
79353a53
AR
4012010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
402
403 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
404 NSInteger (Bug#5811).
405
658b9b93
YM
4062010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
407
408 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
409 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
410
16009a0e
YM
4112010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
412
413 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
414
f016f225
JD
4152010-04-07 Jan Djärv <jan.h.d@swipnet.se>
416
417 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
418 FRAME_LINE_TO_PIXEL_Y.
419
420 * xterm.c (x_set_window_size_1): Don't add border_width/height to
421 pixelwidth/height.
422
84257d93
CY
4232010-04-05 Chong Yidong <cyd@stupidchicken.com>
424
425 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
426 terminal frames (Bug#5837).
427
95b1abcf
CY
4282010-03-31 Chong Yidong <cyd@stupidchicken.com>
429
430 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
431 * nsterm.h: Fix prototype.
432
4a217bed
EZ
4332010-03-31 Eli Zaretskii <eliz@gnu.org>
434
435 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
436 in this function. (Bug#5703)
437
4f103e04
CY
4382010-03-31 Chong Yidong <cyd@stupidchicken.com>
439
440 * nsterm.h: Fix last change.
441
a6d676d9
CY
4422010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
443
444 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
445
67fee863
JD
4462010-03-30 Jan Djärv <jan.h.d@swipnet.se>
447
448 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
449 invisible (Bug#5766).
450
9ae6e189
CY
4512010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
452
453 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
454 HAVE_NS conditionals.
194d44e7 455 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
456
457 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
458 filename for the title.
459 (ns_set_doc_edited): Do nothing if the selected window is a
460 minibuffer window.
461
462 * nsterm.h: Add prototypes for ns_set_name_as_filename and
463 ns_set_doc_edited.
464
465 * nsterm.m: Remove unneeded prototype.
466
25c72475
GM
4672010-03-28 Glenn Morris <rgm@gnu.org>
468
469 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
470 in the DOC file. (Bug#5336)
471
f79a01db
CY
4722010-03-24 Chong Yidong <cyd@stupidchicken.com>
473
474 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
475
93318cbd
JD
4762010-03-20 Jan Djärv <jan.h.d@swipnet.se>
477
478 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
479
480 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
481
482 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
483
ad13a3ee
YM
4842010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
485
486 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
487 XLoadQueryFont.
488
fbdc1721
KH
4892010-03-16 Kenichi Handa <handa@m17n.org>
490
491 * coding.c (decode_coding_ccl): Fix previous change for the
492 multibyte case.
fb608df3
KH
493 (encode_coding_ccl): Don't setup ccl program here. Fix for the
494 case that the output buffer is fullfilled.
495 (encode_coding): Setup ccl program here.
fbdc1721 496
35cd7cd6
CY
4972010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
498
499 * editfns.c (Fformat): Account for string precision when computing
500 field width (Bug#5710).
501
618db430
SM
5022010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
503
c0335e02
SM
504 Make it possible to C-g in a tight bytecode loop again (bug#5680).
505 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
506 (QUIT): Use it to consolidate code and remove redundancy.
507 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
508
254c06a8
SM
509 * regex.c (regex_compile): Setup gl_state as well.
510
618db430
SM
511 * syntax.c (skip_chars): Setup gl_state (bug#3823).
512 (in_classes): Use CONSP before XCAR/XCDR.
513
233f0c9f
CY
5142010-03-03 Chong Yidong <cyd@stupidchicken.com>
515
516 * keymap.c (Fwhere_is_internal): Use Fequal to compare
517 definitions, so that keyboard macros are correctly handled
518 (Bug#5481).
519
75f80e63
EZ
5202010-03-02 Eli Zaretskii <eliz@gnu.org>
521
522 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
523 text that could be relocated inside the call to emacs_mule_char.
524 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
525 (CODING_DECODE_CHAR): Add a comment describing its purpose.
526
dcfb9bc4
KH
5272010-03-02 Kenichi Handa <handa@m17n.org>
528
fc9a17bc
KH
529 * character.c (parse_str_as_multibyte): Fix handling of the
530 multibyte form of raw-bytes.
531 (str_as_multibyte): Likewise.
532
dcfb9bc4
KH
533 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
534 form of raw-bytes.
535
412c01b6
CY
5362010-02-28 Chong Yidong <cyd@stupidchicken.com>
537
538 * charset.c (load_charset_map_from_file)
539 (load_charset_map_from_vector): Zero out allocated
540 charset_map_entries before using them.
541
df7e1ea0
AS
5422010-02-27 Andreas Schwab <schwab@linux-m68k.org>
543
544 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
545
fe69a722
CY
5462010-02-27 Chong Yidong <cyd@stupidchicken.com>
547
4ed28cf4
CY
548 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
549 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 550
7379cfce
KH
5512010-02-26 Kenichi Handa <handa@m17n.org>
552
f88cc4d6
KH
553 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
554
7379cfce
KH
555 * xdisp.c (reseat_to_string): Fix previous change.
556
cf2fdcfb
CY
5572010-02-26 David Reitter <david.reitter@gmail.com>
558
559 * nsfont.m (nsfont_draw): ns_antialias_text should be a
560 Lisp_Object (Bug#4736).
561
cc6c7c75
KH
5622010-02-25 Kenichi Handa <handa@m17n.org>
563
564 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
565
32e737d7
JD
5662010-02-24 Jan Djärv <jan.h.d@swipnet.se>
567
568 * xterm.c (XTflash): Move declarations before statements.
569
570 * gtkutil.c (xg_get_gdk_display): Remove (unused).
571 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
572 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
573 (xg_create_tool_bar): Remove unused variables.
574 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 575 (xg_create_frame_widgets): Remove variable grav.
32e737d7 576
676cae9f
CY
5772010-02-21 Chong Yidong <cyd@stupidchicken.com>
578
579 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
580
886cc2b8
SM
5812010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
582
583 * term.c (fatal): Add a final \n if needed (bug#5596).
584
ddb2d8e2
CY
5852010-02-18 Chong Yidong <cyd@stupidchicken.com>
586
587 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
588
2a4f8d3d
GM
5892010-02-18 Glenn Morris <rgm@gnu.org>
590
591 * callint.c (Finteractive): Doc fix.
592
ebaf11b6
KH
5932010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
594
886cc2b8
SM
595 * coding.c (record_conversion_result):
596 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
597 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
598 memory allocation error.
599
d0396581
KH
6002010-02-17 Kenichi Handa <handa@m17n.org>
601
886cc2b8
SM
602 * coding.c (decode_coding_ccl): Don't setup ccl program here.
603 Fix for the case that the output buffer is fullfilled.
d0396581
KH
604 (decode_coding): Setup ccl program here. Keep looping when the
605 decoder stopped because the output buffer is
606 fullfilled (bug#5534).
607
608 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
609
98599f74
JD
6102010-02-13 Jan Djärv <jan.h.d@swipnet.se>
611
471e4f04 612 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 613 bug #5571.
886cc2b8 614 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 615 overdrawn.
98599f74 616
182659ae
JD
6172010-02-10 Jan Djärv <jan.h.d@swipnet.se>
618
619 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
620 doing_interact here.
621 (ice_connection_closed): New function.
622 (x_session_check_input, smc_die_CB, ice_io_error_handler)
623 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
624 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
625 returns I/O error.
626 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
627 bug #5512.
628
9be32c4e 6292010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
630
631 * nsfont.m (nsfont_open): The system's value for the font descent
632 is negative, so round it down to avoid clipping.
633
a2f3eb19
CY
6342010-02-06 Chong Yidong <cyd@stupidchicken.com>
635
636 * charset.c (load_charset_map_from_file)
637 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 638 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 639
3088147c
CY
6402010-02-05 Chong Yidong <cyd@stupidchicken.com>
641
642 * charset.c (load_charset_map_from_file): Allocate large
643 charset_map_entries structure on the heap rather than the stack.
644 (Bug#5526).
645
b57d9029
KH
6462010-01-31 Kenichi Handa <handa@m17n.org>
647
648 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 649 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 650
c67d885b
CY
6512010-01-31 Chong Yidong <cyd@stupidchicken.com>
652
653 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
654 <deactivated@gmail.com> (Bug#3605).
655
8fab2362
CY
6562010-01-31 David De La Harpe Golden <david@harpegolden.net>
657
658 * fileio.c (Frename_file): Correctly rename symlinks to
659 directories (Bug#5496).
660
cb2a62f2
CY
6612010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
662
663 * nsterm.m (ns_ring_bell): Handle visible bell like X.
664
944c7a26
AS
6652010-01-30 Andreas Schwab <schwab@linux-m68k.org>
666
667 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
668
c024ac08
CY
6692010-01-29 Chong Yidong <cyd@stupidchicken.com>
670
671 * frame.c (DEFAULT_ROWS): Change default to 35.
672
673 * xfns.c (x_default_font_parameter): Change default XFT font to
674 monospace-10 (Bug#3643).
675
af93af83
EZ
6762010-01-29 Eli Zaretskii <eliz@gnu.org>
677
678 * w32inevt.c (key_event): Remove unnecessary comparison of
679 event->uChar.AsciiChar with 128.
680
ca0eb708
CY
6812010-01-28 Chong Yidong <cyd@stupidchicken.com>
682
b242dbfc
CY
683 * fileio.c (Frename_file): Fix last change (Bug#5487).
684
ca0eb708
CY
685 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
686
687 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
688
45d45af5
JD
6892010-01-28 Jan Djärv <jan.h.d@swipnet.se>
690
691 * xfns.c (Fx_create_frame): Remove window size matching code from
692 2010-01-15.
a73f9c9d 693 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 694
7e233730
JR
6952010-01-27 Jason Rumney <jasonr@gnu.org>
696
697 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 698 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 699
86e893e3
KH
7002010-01-27 Kenichi Handa <handa@m17n.org>
701
702 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 703 pattern string (Bug#4209).
86e893e3 704
8719abec
CY
7052010-01-27 David De La Harpe Golden <david@harpegolden.net>
706
707 * fileio.c (Frename_file): Call copy-directory and
708 delete-directory for directories, in order to handle cross-device
709 renaming (Bug#3353).
710
844794c8
JD
7112010-01-25 Jan Djärv <jan.h.d@swipnet.se>
712
aa3e13b5 713 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 714 sizes 24 and 10. Bug #3643.
844794c8 715
bd4b5750
SM
7162010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
717
8dc1adf6 718 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
719 * keymap.c (shadow_lookup): Add `remap' arg.
720 (describe_map, describe_vector): Update calls to shadow_lookup.
721 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
722 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
723 perform remapping during shadow_lookup check of remapped_sequences.
724
285d07e2
CY
7252010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
726
727 * image.c (png_load): Use png_sig_cmp instead of the obsolete
728 png_check_sig, which has been removed in libpng 1.4.
729
c6d09b8d
CY
7302010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
731
732 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
733 lacks this header file).
734
3d782998
YM
7352010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
736
737 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
738 as in Emacs 22.
739
2aff7c53
YM
7402010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
741
742 * lisp.h (make_pure_string): String pointer arg now points to const.
743
744 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
745 args now point to const.
746
74327f7a
EZ
7472010-01-22 Eli Zaretskii <eliz@gnu.org>
748
749 * lread.c (Fload): Don't treat files without .elc extension as
750 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
751 them. (bug#5303)
752
4d1e6632
KH
7532010-01-20 Kenichi Handa <handa@m17n.org>
754
755 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
756 treat the source as actual byte sequence.
757
1fdede8f
AM
7582010-01-19 Alan Mackenzie <acm@muc.de>
759
760 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 761 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
762 `signal_after_change_p' to `coherent_change_p', and make the
763 invocation of `modify_region' conditional on it.
764
67477f30
JD
7652010-01-19 Jan Djärv <jan.h.d@swipnet.se>
766
767 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
768 for debug purpose.
769 (syms_of_xsettings): Declare xft-settings.
770
244b023e
CY
7712010-01-18 Chong Yidong <cyd@stupidchicken.com>
772
773 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
774
617364fe
CY
7752010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
776
777 * xterm.c (event_handler_gdk): Block input (Bug#5037).
778
4fe22cdf
CY
7792010-01-16 Chong Yidong <cyd@stupidchicken.com>
780
781 * emacs.c (standard_args): Adjust arg priorities to reflect how
782 they are processed in startup.el.
783
e118d2be
AS
7842010-01-16 Andreas Schwab <schwab@linux-m68k.org>
785
786 * Makefile.in (lisp, shortlisp): Update.
787
523ae620
SM
7882010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
789
790 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
791 code, link the new kboard into all_kboard before running Lisp code,
792 and protect the new terminal with GCPRO (Bug#5365).
793 (x_term_init): Remove unused var `atom'.
794 (x_delete_display, x_delete_terminal): Remove unused var `i'.
795
f0d13888
JD
7962010-01-15 Jan Djärv <jan.h.d@swipnet.se>
797
798 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
799 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
800 to find out usable size of the desktop. Don't make frames larger than
ac146f82 801 this. Bug #3643.
f0d13888 802
cc320f07
KH
8032010-01-15 Kenichi Handa <handa@m17n.org>
804
805 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
806
7ffdf101
CY
8072010-01-15 Chong Yidong <cyd@stupidchicken.com>
808
809 * nsterm.m (Qnone): Define.
810
811 * nsfns.m (Qnone): Move definition to nsterm.m.
812
d12bd917
KH
8132010-01-14 Kenichi Handa <handa@m17n.org>
814
815 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
816 systems.
817
d9a7c140
KH
8182010-01-14 Kenichi Handa <handa@m17n.org>
819
820 Make auto-composition work on all buffers even if they are
821 fundamental mode.
822
823 * composite.c (Vauto_composition_mode): New variable.
824 (composition_compute_stop_pos): Check Vauto_composition_mode
825 instead of Vauto_composition_function.
826 (composition_adjust_point, Ffind_composition_internal): Likewise.
827 (syms_of_composite): Declare Lisp variable
828 "auto-composition-mode" here.
829
63286bb2
CY
8302010-01-13 Chong Yidong <cyd@stupidchicken.com>
831
832 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
833 during call to vendor-specific-keysyms (Bug#5365).
834
c2623ee7
YM
8352010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
836
837 * keyboard.c (input_available_signal) [SYNC_INPUT]:
838 Call SIGNAL_THREAD_CHECK (Bug#5333).
839
840 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
841 Call SIGNAL_THREAD_CHECK.
842
0b5397c2
SM
8432010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
844
845 Try to fix bug#5314. This is probably not the final word, tho.
846 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
847 recent-auto-save-p as a side-effect.
848 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
849 * buffer.c (Fkill_buffer, reset_buffer):
850 * editfns.c (Fsubst_char_in_region):
851 * fileio.c (Finsert_file_contents, Fdo_auto_save)
852 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
853
dc954cb2
KH
8542010-01-13 Kenichi Handa <handa@m17n.org>
855
856 Display buffer name, etc. in mode line by composing correctly.
857
858 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
859 STRING is not nil.
0b5397c2 860 (display_mode_element): Adjust for the change of
dc954cb2
KH
861 decode_mode_spec and display_line.
862 (decode_mode_spec): Change arg MULTIBYTE to STRING.
863 (display_string): Handle the case that STRING is non-null and
864 LISP_STRING is not nil.
865
0b5397c2
SM
866 * xterm.c (x_draw_composite_glyph_string_foreground):
867 Pay attention to s->face->overstrike.
dc954cb2
KH
868
869 * composite.c (composition_reseat_it): Don't check PT if STRING is
870 non nil.
871
4a00eaca
YM
8722010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
873
874 * keyboard.c (read_char): Don't apply previous change when current
875 buffer is unchanged by command execution.
876
60abb287
JD
8772010-01-12 Jan Djärv <jan.h.d@swipnet.se>
878
879 * keyboard.c (read_char): Return after executing from special map.
880
893db5bc
GM
8812010-01-12 Glenn Morris <rgm@gnu.org>
882
883 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
884 bug-gnu-emacs rather than emacs-pretest-bug.
885
4d03ece0
CY
8862010-01-11 Chong Yidong <cyd@stupidchicken.com>
887
888 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
889 initializing the Lisp variables that depend on them.
890
1df47e38
YM
8912010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
892
893 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
894 Clear areas that will not be updated after change of menu bar lines.
895 Clear the menu bar window's current matrix when the window gets empty.
896
2f1c6384
CY
8972010-01-09 Chong Yidong <cyd@stupidchicken.com>
898
e398c61c
CY
899 * intervals.h, textprop.c (extend_property_ranges): Return value
900 and args changed. Discard properties that begin at or after the
901 new end (Bug#5306).
902
903 * editfns.c (Fformat): Caller changed.
904
e5a29a10
CY
905 * nsterm.m (ns_set_default_prefs): Delete function.
906 (syms_of_nsterm): Initialize ns_command_modifier,
907 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
908 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
909
2f1c6384
CY
910 * xdisp.c (pos_visible_p): Check for invisible text at the correct
911 position (Bug#4040).
912
d427a9fa
EZ
9132010-01-09 Eli Zaretskii <eliz@gnu.org>
914
915 * editfns.c (Ffloat_time): Doc fix.
916
21b9df2f
JD
9172010-01-09 Jan Djärv <jan.h.d@swipnet.se>
918
919 * xfns.c (Fx_create_frame): Don't create frame larger than display
920 by default bug#3643.
921
4b00d3b1
YM
9222010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
923
924 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
925 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
926 windows above internal border.
927
928 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
929 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
930 windows above internal border.
931
932 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
933 tool bar windows specially.
934
935 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
936
937 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
938 specially.
939 (XTflash): Take account of menu bar height.
940
941 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
942 specially.
943
5075d853
JD
9442010-01-08 Jan Djärv <jan.h.d@swipnet.se>
945
ac146f82 946 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
947 also be true before we can return early (bug #5339).
948
474217c8
CY
9492010-01-06 David Reitter <david.reitter@gmail.com>
950
951 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
952 (Fns_display_usable_bounds): Rewrite, computing bounds properly
953 (Bug#3233).
954
c0e6d47d
JD
9552010-01-06 Jan Djärv <jan.h.d@swipnet.se>
956
d0cf45b7
JD
957 * font.c (font_open_entity): Enable chache and call cached_font_ok
958 for the driver if defined.
959 (QCuser_spec): New symbol.
960 (font_spec_from_name): Save name as user-spec.
961 (font_load_for_lface): Keep user-spec instead of name.
962 (font_open_by_name): Save name as user-spec.
963 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 964 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
965
966 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
967 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
968 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
969
970 * font.h (struct font_driver): Add cached_font_ok.
971
c0e6d47d
JD
972 * xterm.c (x_clear_frame): Queue draw for scroll bars.
973
7c583cd8
JD
9742010-01-05 Jan Djärv <jan.h.d@swipnet.se>
975
976 * xterm.c (x_new_font): Move code for setting rows/cols before
977 resizing ...
ac146f82 978 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
979
980 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
981 (xg_frame_resized, xg_frame_set_char_size):
982 Call xg_clear_under_internal_border.
7c583cd8 983 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 984
03f77f0a
CY
9852010-01-05 Chong Yidong <cyd@stupidchicken.com>
986
987 * keyboard.c (read_key_sequence): Catch keyboard switch after
988 making a new tty frame (Bug#5095).
989
2a1ef5be
KH
9902010-01-05 Kenichi Handa <handa@m17n.org>
991
992 * fontset.c (fontset_find_font): Fix getting the frame pointer.
993
e3eb1dae
SM
9942010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
995
996 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
997 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
998 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
999
777013f2
MA
10002010-01-03 Michael Albinus <michael.albinus@gmx.de>
1001
1002 * dbusbind.c (xd_add_watch): Improve debug message.
1003 (xd_remove_watch): Improve debug message. If DATA is the session
1004 bus, unset D-Bus session environment.
1005 (Fdbus_init_bus): Pass the bus as argument to
1006 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1007
8932b1c2
CY
10082010-01-01 Chong Yidong <cyd@stupidchicken.com>
1009
87231e2c
CY
1010 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1011
4801c5fa
CY
1012 * lread.c (syms_of_lread): Make it clearer that these are the
1013 names of loaded files (Bug#5068).
1014
8932b1c2
CY
1015 * eval.c (run_hook_with_args): Handle the case where the global
1016 value has the obsolete single-function form (Bug#5026).
1017
11e3c684
CY
10182009-12-27 Chong Yidong <cyd@stupidchicken.com>
1019
1020 * minibuf.c (Fall_completions): Minor optimization.
1021
5b28ce35
EZ
10222009-12-26 Eli Zaretskii <eliz@gnu.org>
1023
5ce6e4f4
JB
1024 * .gdbinit (pgx): Fix display of composite glyphs.
1025 Display cmp.from and cmp.to as well.
1026 (pitx): Fix last change.
5b28ce35 1027
bcffff46
KH
10282009-12-25 Kenichi Handa <handa@m17n.org>
1029
1030 * composite.h (composition_adjust_point): Update prototype.
1031
1032 * composite.c (composition_reseat_it): Don't make a composition
1033 spanning over point.
1034 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1035 composable characters.
1036 (composition_adjust_point): New arg NEW_PT. Callers changed.
1037
1038 * keyboard.c (command_loop_1): Force redisplay if the last point
1039 was within a composition.
1040 (adjust_point_for_property): Don't adjust point for automatic
1041 composition when called after buffer modification.
1042
3f670e9a
EZ
10432009-12-19 Eli Zaretskii <eliz@gnu.org>
1044
5ce6e4f4
JB
1045 * .gdbinit (pitx): Don't use enum names, use their values.
1046 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1047 (pgx): Don't use enum names, use their values.
1048 (pitmethod): New helper command.
1049 (pitx): Use it to display iteration method.
1050 (pgrowit): New command.
1051
ad903955
EZ
1052 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1053
3f670e9a
EZ
1054 Update dependencies in Makefile.in.
1055
1056 * Makefile.in (alloc.o): Depend on termhooks.h.
1057 (atimer.o): Depend on blockinput.h.
1058 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1059 and frame.h.
1060 (callint.o): Depend on systime.h, coding.h, and composite.h.
1061 (callproc.o): Depend on buffer.h.
1062 (casefiddle.o): Don't depend on charset.h.
1063 (casetab.o): Depend on character.h.
1064 (ccl.o): Depend on composite.h.
1065 (chartab.o): Depend on ccl.h.
1066 (cm.o): Depend on dispextern.h.
1067 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1068 (coding.o): Don't depend on $(INTERVALS_H).
1069 (composite.o): Don't depend on dispextern.h explicitly (it's in
1070 $(INTERVALS_H)). Depend on ccl.h.
1071 (data.o): Depend on systime.h, coding.h, composite.h,
1072 dispextern.h, font.h, and ccl.h.
1073 (dired.o): Depend on composite.h.
1074 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1075 composite.h (it's in $(INTERVALS_H)).
1076 (doc.o): Depend on systime.h, coding.h, and composite.h.
1077 (editfns.o): Don't depend explicitly on dispextern.h.
1078 (emacs.o): Depend on frame.h and coding.h.
1079 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1080 (fileio.o): Depend on frame.h and commands.h. Don't depend
1081 explicitly on dispextern.h.
1082 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1083 composite.h.
1084 (fns.o): Don't depend on termhooks.h.
1085 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1086 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1087 coding.h, $(INTERVALS_H), window.h, xterm.h.
1088 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1089 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1090 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1091 fontset.h, ccl.h, and ftfont.h.
1092 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1093 (gtkutil.o): Depend on dispextern.h and composite.h.
1094 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1095 termhooks.h, and ccl.h.
1096 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1097 (intervals.o): Depend on systime.h and coding.h.
1098 (keyboard.o): Depend on composite.h and coding.h.
1099 (keymap.o): Depend on coding.h and frame.h.
1100 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1101 (macros.o): Depend on systime.h, coding.h, and composite.h.
1102 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1103 and atimer.h.
1104 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1105 dispextern.h explicitly.
0b5397c2
SM
1106 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1107 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1108 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1109 (regex.o): Don't depend on charset.h.
1110 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1111 (search.o): Don't depend explicitly on composite.h.
1112 (sound.o): Depend on atimer.h and systime.h.
1113 (syntax.o): Don't depend explicitly on composite.h.
1114 (sysdep.o): Depend on coding.h and composite.h.
1115 (term.o): Depend on xterm.h and buffer.h.
1116 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1117 (textprop.o): Don't depend on dispextern.h explicitly.
1118 (undo.o): Depend on dispextern.h.
1119 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1120 dispextern.h and composite.h explicitly.
1121 (xdisp.o): Depend on ccl.h.
1122 (xfaces.o): Depend on coding.h and ccl.h.
1123 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1124 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1125 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1126 ftfont.h.
1127 (xgselect.o): New dependency.
1128 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1129 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1130 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1131 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1132 (xsmfns.o): Depend on frame.h and dispextern.h.
1133 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1134 sysselect.h.
1135
7a6f7fea
AS
11362009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1137
1138 * font.c (Fclear_font_cache): Pass correct cache argument to
1139 font_clear_cache.
1140
f4c21026
AS
11412009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1142
1143 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1144 twice.
1145
f7ab0997
CY
11462009-12-15 Chong Yidong <cyd@stupidchicken.com>
1147
1148 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1149 calling file-remote-p. Reported by Jim Meyering.
1150
fa8e045a
MA
11512009-12-15 Michael Albinus <michael.albinus@gmx.de>
1152
1153 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1154 avoid compiler warnings. (Bug #5217)
fa8e045a 1155
a63dba42
KH
11562009-12-14 Kenichi Handa <handa@m17n.org>
1157
1158 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1159 in 8-bit encoding.
1160
5ce6e4f4 11612009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1162
1163 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1164 tooltip windows.
1165
223e5fc6
JD
11662009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1167
36acb2a7
JD
1168 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1169 Xatom_net_window_type.
1170
1171 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1172 Xatom_net_window_type.
1173
b8f00677
JD
1174 * xterm.c (my_log_handler): New function.
1175 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1176 so we can filter out buggy messages. (Bug #5120).
b8f00677 1177
e5f0bc9a
JD
1178 * xterm.c (xg_scroll_callback): Parameter list changed,
1179 use parameter GtkScrollType to determine scroll/line/page.
1180 Only allow dragging if a button < 4 is grabbed (bug #5177).
1181 (xg_end_scroll_callback): New function.
1182 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1183 xg_create_scroll_bar.
1184
1185 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1186 (scroll_end_callback): Remove.
1187 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1188 button-release-event. Replace value-changed event with change-value,
1189 bug #5177,
1190 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1191 bug #5177.
1192
1193 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1194 (xg_create_scroll_bar): Add GCallback end_callback.
1195
223e5fc6
JD
1196 * xftfont.c (QClcdfilter): New variable.
1197 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1198 (syms_of_xftfont): Initialize QClcdfilter.
1199
3c055b77
JD
12002009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1201
1202 * xsettings.c (struct xsettings): Add member seen.
1203 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1204 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1205 (apply_xft_settings): Only update Xft settings with what member seen
1206 indicates as new.
1207
05fe33ff
EZ
12082009-12-12 Eli Zaretskii <eliz@gnu.org>
1209
1210 * dispextern.h (struct text_pos): Use EMACS_INT;
1211 (struct glyph): Use EMACS_INT for charpos.
1212 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1213 region_beg_charpos, region_end_charpos,
1214 redisplay_end_trigger_charpos, and also for
1215 iterator_stack_entry.end_charpos and
1216 iterator_stack_entry.stop_charpos.
1217
e8d7886a
JD
12182009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1219
5ce6e4f4 1220 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1221 (xg_create_scroll_bar): Call scroll_end_callback on button release
1222 event (bug #5177).
1223 (xg_event_is_for_scrollbar): != replaced with ==.
1224
d0db2ec8
KH
12252009-12-12 Kenichi Handa <handa@m17n.org>
1226
1227 * ftfont.c (struct ftfont_info): New member matrix.
1228 (ftfont_open): Setup xftfont_info->matrix.
1229 (MFLTFontFT): New member matrix.
1230 (FLOOR, CEIL, ROUND): New macros.
1231 (ftfont_get_metrics): Handle matrix transformation.
1232 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1233
1234 * xftfont.c (struct xftfont_info): New member matrix.
1235 (xftfont_open): Setup xftfont_info->matrix.
1236
12372009-12-10 Kenichi Handa <handa@m17n.org>
1238
1239 * xdisp.c (append_space_for_newline): Consider face-remapping.
1240
2cc7b62f
AS
12412009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1242
b87dd913
AS
1243 * xsettings.c: Include "keyboard.h".
1244
eba5eb94
AS
1245 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1246
2cc7b62f
AS
1247 Fix implicit function declarations.
1248 * cmds.c: Include "frame.h".
1249 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1250 * frame.h: Move declaration of delete_frame outside of
1251 HAVE_WINDOW_SYSTEM.
1252
a4ef73c8
CY
12532009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1254
1255 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1256
1257 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1258 GTK builds.
1259
944a300c
AS
12602009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1261
1262 * unexelf.c (unexec): Don't search for .data twice.
1263
022eef62
CY
12642009-12-05 Chong Yidong <cyd@stupidchicken.com>
1265
426ac949
CY
1266 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1267 if push failed.
1268 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1269 of push_display_prop (Bug#5000).
1270
022eef62
CY
1271 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1272 value of font_list_entities (Bug#5085).
1273
be95bee9
JB
12742009-12-04 Juanma Barranquero <lekktu@gmail.com>
1275
1276 Fix `string-to-number' to deal consistently with integers and floats.
1277 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1278 trailing characters, not just whitespace.
1279 (read1): Pass new arg 0 to keep old behavior.
1280 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1281 trailing chars, as it is already done for integers. Doc fixes.
1282 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1283
24c2d7ce
EZ
12842009-12-04 Eli Zaretskii <eliz@gnu.org>
1285
0b5397c2
SM
1286 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1287 Delete unused enumeration value.
24c2d7ce 1288
7e694795
EZ
12892009-12-03 Eli Zaretskii <eliz@gnu.org>
1290
1291 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1292
84b31826
SM
12932009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1294
1295 * process.c (Fmake_network_process): Fix up the tests for
1296 "connectionless socket", so they DTRT for seqpacket sockets as well.
1297
f00c449b
SM
12982009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1299
1300 * process.c (Qseqpacket): New symbol.
1301 (HAVE_SEQPACKET): New macro.
1302 (Fmake_network_process): Accept new :type `seqpacket'.
1303 (init_process): Add `seqpacket' feature when applicable.
1304 (syms_of_process): Initialize Qseqpacket.
1305
8096a0ff
YM
13062009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1307
1308 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1309 if entity is Qnil.
1310
3e0de07f
SM
13112009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1312
1313 * print.c (print_preprocess): Preprocess the key_and_value table of
1314 hashtables, even tho they're "hidden" (bug#5082).
1315
abeafb2a
JD
13162009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1317
1318 * frame.c (frame_make_pointer_invisible)
1319 (frame_make_pointer_visible): Declare f before statements.
1320
4bf47195
EZ
13212009-11-28 Eli Zaretskii <eliz@gnu.org>
1322
1323 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1324 omitted dependencies on lisp.h.
1325
c525b3f2
JD
13262009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1327
ece2d4ed
JD
1328 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1329 is NULL.
1330
1331 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1332
1333 * frame.c (frame_make_pointer_invisible)
3e0de07f 1334 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1335 frame.
1336
c525b3f2
JD
1337 * search.c (simple_search): Remove warning by making *p const.
1338
2f00e299
DN
13392009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1340
1341 * xdisp.c (power_letter): Remove duplicate const.
1342
084b049b
JD
13432009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1344
a1fadc6f
JD
1345 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1346
5ce6e4f4 1347 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1348 defaults (bug #5025).
1349
28259cac
SM
13502009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1351
1352 * insdel.c (adjust_markers_for_delete): Move it in the
1353 right direction! (bug#4803)
1354
e8e14166
YM
13552009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1356
1357 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1358
1359 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1360
86677b58
GM
13612009-11-24 Glenn Morris <rgm@gnu.org>
1362
1363 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1364
581e51e8
JD
13652009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1366
cfc86c7a
JD
1367 * Makefile.in: Must create deps for ecrt0.o in its rule.
1368
581e51e8
JD
1369 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1370 because that is what Gtk+ font dialog understands.
1371
1372 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1373 of Fcopy_sequence.
1374 (font_open_by_name): Put name given into QCname for font-object returned.
1375
1376 * frame.c (x_set_font): Save original font name as frame parameter
1377 font-parameter.
1378
1379 * xsettings.c (set_default_xft_settings): New function.
1380 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1381 is found.
1382
8b264ecb
AS
13832009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1384
1385 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1386 searching backwards through multibyte buffer.
1387
872870b2
JD
13882009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1389
1390 * xterm.c: #include xgselect.h.
1391 (x_initialize): Call xgselect_initialize.
1392
1393 * xsettings.c (something_changedCB): C++ comments => C comments.
1394 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1395 does that now.
1396
1397 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1398 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1399 (scroll_bar_button_cb): Remove.
5ce6e4f4 1400 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1401 event.
1402 (xg_create_scroll_bar): Don't bind button-press-event and
1403 button-release-event.
1404
1405 * process.c: Include xgselect.h if defined (USE_GTK) ||
1406 defined (HAVE_GCONF).
1407 (wait_reading_process_output): Call xg_select for the same condition.
1408
1409 * xgselect.c (xg_select): New function to better integrate with
1410 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1411
1412 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1413
1414 * Makefile.in (XOBJ): Add xgselect.o.
1415
62a6e103
AS
14162009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1417
0b5397c2
SM
1418 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1419 Remove ignored second argument. All callers changed.
62a6e103
AS
1420 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1421 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1422 * xdisp.c (string_char_and_length): Likewise.
1423
b0ca0f33
DN
14242009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1425
1426 * xterm.c (x_new_font):
1427 * print.c (print_object):
1428 * cmds.c (Fself_insert_command): Move declarations before statements.
1429
dd5a6279
CY
14302009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1431
1432 * s/cygwin.h: Remove unneeded linker flags.
1433
4a8e097d
JD
14342009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1435
0d1d0d26
JD
1436 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1437
1438 * xsettings.h: Declare xsettings_get_system_font.
1439
1440 * xsettings.c (xsettings_get_system_font): New function.
1441 (init_gconf): No use initiating gconf unless we have Xft also.
1442 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1443 HAVE_GCONF.
1444
4a8e097d
JD
1445 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1446 add a blank entry so it doesn't collapse into nothing.
1447
8ab1650e
SM
14482009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1449
1450 * lread.c (Funintern): Comment out last change.
1451
82c602f0
RS
14522009-11-19 Richard Stallman <rms@gnu.org>
1453
1454 * lread.c (Funintern): Error if symbol is t or nil.
1455
87e32266
SM
14562009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1457
1458 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1459 representation of Lisp integers.
1460 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1461
1b9ac145
AS
14622009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1463
1464 * lisp.h: Remove declaration of Ffont_get_system_font.
1465 * xfns.c: Move include of "xsettings.h".
1466 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1467
dfb3c4c6
JD
14682009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1469
87e32266
SM
1470 * xsettings.c (something_changedCB, Ffont_get_system_font):
1471 Check use_system_font.
dfb3c4c6
JD
1472 (syms_of_xsettings): DEFVAR font-use-system-font.
1473
9370c1d8
AS
14742009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1475
25fe851a
AS
1476 * xfns.c (x_default_font_parameter): Remove dead assignment.
1477
9370c1d8
AS
1478 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1479
637fa988
JD
14802009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1481
87e32266 1482 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1483 not have FC_LCD_*. #define them if not there.
a6eb20d8 1484
87e32266 1485 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1486
637fa988
JD
1487 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1488
1489 * xterm.c (handle_one_xevent): Call xft_settings_event for
1490 ClientMessage, PropertyNotify and DestroyNotify.
1491 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1492 Call xsettings_initialize.
1493
1494 * xftfont.c (xftfont_fix_match): New function.
1495 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1496 Call xftfont_fix_match after XftFontMatch.
1497
1498 * xfont.c (xfont_driver): Initialize all members.
1499
87e32266
SM
1500 * xfns.c (x_default_font_parameter):
1501 Try font from Ffont_get_system_font.
637fa988
JD
1502 Do not get font from x_default_parameter if we got one from
1503 Ffont_get_system_font.
87e32266 1504 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1505
1506 * w32font.c (w32font_driver): Initialize all members.
1507
1508 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1509
1510 * lisp.h: Declare syms_of_xsettings.
1511
87e32266
SM
1512 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1513 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1514
1515 * ftfont.c (ftfont_filter_properties): New function.
1516
1517 * frame.c (x_set_font): Remove unused variable lval.
1518
87e32266 1519 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1520
1521 * font.c (font_put_extra): Don't return if val is nil, it means
1522 boolean option is off.
1523 (font_parse_fcname): Collect all extra properties in extra_props
1524 and call filter_properties for all drivers with extra_props and
1525 font as parameter.
87e32266
SM
1526 (font_open_entity): Do not use cache, it does not pick up new
1527 fontconfig settings like hinting.
637fa988
JD
1528 (font_load_for_lface): If spec had a name in it, store it in entity.
1529
a73f9c9d 1530 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
1531
1532 * config.in: HAVE_GCONF is new.
1533
1534 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1535 xsettings.o is new.
1536
5a942932
KH
15372009-11-17 Kenichi Handa <handa@m17n.org>
1538
1539 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1540 back to the default font in case that no suitable font is found.
1541
b7c7a4d1
SM
15422009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1543
1544 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1545 Suggested by Chad Brown <yandros@mit.edu>.
1546 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1547
072f1e39
JD
15482009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1549
1550 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1551
5d1e70a2
AS
15522009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1553
87e32266 1554 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1555
a53cfbe5
JD
15562009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1557
473a99b7
JD
1558 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1559 has a parent.
1560
a53cfbe5 1561 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1562 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1563
1564 * config.in: Generated (AUTO_DEPEND).
1565
f04bb9b2
MA
15662009-11-13 Michael Albinus <michael.albinus@gmx.de>
1567
b7c7a4d1 1568 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1569 Vdbus_registered_functions_table, because it contains also
1570 properties. Fix docstring.
b7c7a4d1 1571 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1572
8f11f7ec
SM
15732009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1574
1575 * alloc.c (mark_object): Don't reprocess marked strings.
1576 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1577 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1578
8a605fe8
KH
15792009-11-13 Kenichi Handa <handa@m17n.org>
1580
8f11f7ec 1581 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1582 semantics of Vword_combining_categories.
1583 (Vword_combining_categories): Describe the slight change of the
1584 semantics.
1585
241c4680
EZ
15862009-11-13 Eli Zaretskii <eliz@gnu.org>
1587
1588 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1589
1590 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1591
5d58e44c
SM
15922009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1593
1594 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1595
5e13f9d3
JB
15962009-11-12 Juanma Barranquero <lekktu@gmail.com>
1597
1598 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1599
cf54c754
DR
16002009-11-11 David Reitter <david.reitter@gmail.com>
1601
1602 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1603 variables to fix 2009-11-09 change.
1604
a4ada374
DN
16052009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1606
91433552
DN
1607 * process.c (ifflag_def): Make flag_sym constant.
1608 (Fnetwork_interface_info): Use a constant pointer.
1609 (ifflag_table):
1610 * xfns.c (cursor_bits):
1611 * xdisp.c (power_letter):
1612 * termcap.c (speeds, esctab):
1613 * sysdep.c (baud_convert):
1614 * keyboard.c (lispy_accent_codes, modifier_names):
1615 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1616 (jpeg_format, tiff_format, gif_format, svg_format)
1617 (interlace_start, interlace_increment, gs_format):
1618 * gtkutil.c (separator_names):
1619 * fringe.c (swap_nibble):
1620 * fns.c (base64_value_to_char, base64_char_to_value):
1621 * fileio.c (make_temp_name_tbl):
1622 * coding.c (suffixes): Make constant.
1623
f4265f6c
DN
1624 * frame.c (make_initial_frame):
1625 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1626 build_string.
1627 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1628
04420943
DN
1629 * s/freebsd.h:
1630 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1631
0a5d24ae
DN
1632 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1633 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1634
a4ada374
DN
1635 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1636 * xterm.c (syms_of_xterm):
1637 * xfaces.c (syms_of_xfaces):
1638 * xdisp.c (syms_of_xdisp):
1639 * lread.c (syms_of_lread):
1640 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1641 build_string.
91433552 1642
a4ada374
DN
1643 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1644
af98fc7f
SM
16452009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1646
8ab1650e 1647 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1648
e90292a9
JD
16492009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1650
1651 * keyboard.h: Declare timer_check.
1652
1653 * keyboard.c (timer_check_2): New function that does what the old
1654 timer_check did.
1655 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1656 returned, i.e. don't return -1 with timers pending.
1657
1658 * process.c: Remove extern declaration of timer_check.
1659
1660 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1661 even if timer_check returned -1.
1662
af98fc7f
SM
1663 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1664 xg_dialog_data.
e90292a9
JD
1665 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1666 the event loop.
1667 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1668 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1669 Destroy the dialog after xg_dialog_run.
1670
045b83c0
SM
16712009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1672
1673 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1674
1fb99a3a
JD
16752009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1676
1677 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1678
04e452cb
JB
16792009-11-09 Juanma Barranquero <lekktu@gmail.com>
1680
1681 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1682
ef7417fd
SM
16832009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1684
1685 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1686 w32menu.c, and nsmenu.m.
1687 Simplify the obsolete case where position is nil.
1688 (cleanup_popup_menu): New function, moved from nsmenu.m.
1689 (struct skp): Remove slot `notreal'.
1690 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1691 adjust callers.
1692 (single_menu_item): Adjust call to parse_menu_item.
1693 (syms_of_menu): Defsubr x-popup-menu.
1694 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1695 (keymap_panes): Don't export any more.
1696 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1697 (xmenu_show): Declare.
1698 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1699 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1700 * keyboard.h (parse_menu_item): Update declaration.
1701 * xmenu.c (Fx_popup_menu): Remove.
1702 (syms_of_xmenu): Don't defsubr x-popup-menu.
1703 * w32menu.c (Fx_popup_menu): Remove.
1704 (syms_of_w32menu): Don't defsubr x-popup-menu.
1705 * nsmenu.m (cleanup_popup_menu): Remove.
1706 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1707 moved to menu.c's Fx_popup_menu.
1708 (Fx_popup_menu): Remove.
1709 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1710 menu_items (it's done in menu.c already).
1711
424d6179
SM
17122009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1713
1714 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1715 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1716
c0df13a6 17172009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1718
1719 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1720 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1721 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1722 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1723
2de9f71c
SM
17242009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1725
1726 Let integers use up 2 tags to give them one extra bit and thus double
1727 their range.
1728 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1729 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1730 New macros.
1731 (enum Lisp_Type): Use them. Give explicit values.
1732 (Lisp_Type_Limit): Remove.
1733 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1734 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1735 Pay attention to USE_2_TAGS_FOR_INTS.
1736 (INTEGERP): Use LISP_INT_TAG_P.
1737 * fns.c (internal_equal): Simplify the default case.
1738 (sxhash): Use case_Lisp_Int.
1739 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1740 any more.
1741 (Ftype_of): Use case_Lisp_Int.
1742 (store_symval_forwarding): Take into account the fact that Ints can
1743 now have more than one tag.
1744 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1745 buffer_slot_type_mismatch):
1746 * xfaces.c (face_attr_equal_p):
1747 * print.c (print_object):
1748 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1749 Use case_Lisp_Int.
1750
323637a2
EZ
17512009-11-06 Eli Zaretskii <eliz@gnu.org>
1752
7ac65b38
EZ
1753 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1754
323637a2
EZ
1755 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1756 warning.
1757
e511451f
JD
17582009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1759
1760 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1761
1762 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1763
1764 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1765 ButtonPressRelease and MotionNotify (bug#4870).
1766
5e2327cf
DN
17672009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1768
5adc433e
DN
1769 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1770
d67b4f80
DN
1771 * xterm.c (syms_of_xterm):
1772 * xselect.c (syms_of_xselect):
1773 * xmenu.c (syms_of_xmenu):
1774 * xfns.c (syms_of_xfns):
1775 * xfaces.c (syms_of_xfaces):
1776 * xdisp.c (syms_of_xdisp):
1777 * window.c (syms_of_window):
1778 * w32fns.c (syms_of_w32fns):
1779 * undo.c (syms_of_undo):
1780 * textprop.c (syms_of_textprop):
1781 * terminal.c (syms_of_terminal):
1782 * syntax.c (syms_of_syntax):
1783 * sound.c (syms_of_sound):
1784 * search.c (syms_of_search):
1785 * print.c (syms_of_print):
1786 * minibuf.c (syms_of_minibuf):
1787 * macros.c (syms_of_macros):
1788 * keymap.c (syms_of_keymap, initial_define_key)
1789 (initial_define_lispy_key):
1790 * keyboard.c (syms_of_keyboard):
1791 * insdel.c (syms_of_insdel):
1792 * image.c (syms_of_image):
1793 * fringe.c (syms_of_fringe):
1794 * frame.c (syms_of_frame):
1795 * fontset.c (syms_of_fontset):
1796 * fns.c (syms_of_fns):
1797 * fns.c (syms_of_fns):
1798 * fileio.c (syms_of_fileio):
1799 * fileio.c (syms_of_fileio):
1800 * eval.c (syms_of_eval):
1801 * doc.c (syms_of_doc):
1802 * dispnew.c (syms_of_display):
1803 * dired.c (syms_of_dired):
1804 * dbusbind.c (syms_of_dbusbind):
1805 * data.c (syms_of_data):
1806 * composite.c (syms_of_composite):
1807 * coding.c (syms_of_coding):
1808 * cmds.c (syms_of_cmds):
1809 * charset.c (define_charset_internal, syms_of_character):
1810 * ccl.c (syms_of_ccl):
1811 * category.c (syms_of_category, init_category_once):
1812 * casetab.c (syms_of_casetab):
1813 * casefiddle.c (syms_of_casefiddle):
1814 * callint.c (syms_of_callint):
1815 * bytecode.c (syms_of_bytecode):
1816 * buffer.c (keys_of_buffer, syms_of_buffer):
1817 * alloc.c (syms_of_alloc):
1818 * process.c (syms_of_process, init_process):
1819 * lread.c (syms_of_lread, init_obarray):
1820 * font.c (build_style_table):
1821 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1822 intern_c_string, calls to make_pure_string with
1823 make_pure_c_string. Use pure_cons instead of Fcons.
1824
5e2327cf
DN
1825 * process.c (socket_options): Make it const.
1826 (set_socket_option, init_process): Use a const pointer.
1827
1828 * lread.c (intern_c_string): New function.
1829 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1830 (defvar_int): Uset it. Make the name const char*.
1831
1832 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1833 (defvar_int): Update prototypes.
1834 (DEFUN, EXFUN): Support for prototypes is now required.
1835 (intern_c_string): New prototype.
1836 (struct Lisp_Subr): Make symbol_name constant.
1837
1838 * font.c (struct table_entry): Remove unused member. Make NAMES
1839 constant.
1840 (weight_table, slant_table, width_table): Make constant.
1841
1842 * emacs.c (struct standard_args): Make name and longname constant.
1843
1844 * character.h (DEFSYM): Use intern_c_string.
1845
a56eaaef
DN
18462009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1847
1848 * alloc.c (make_pure_c_string): New function.
1849
1850 * eval.c (Fautoload): Purecopy all arguments.
1851
f6a07420
KH
18522009-11-05 Kenichi Handa <handa@m17n.org>
1853
1854 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1855 the buffer in case of replace.
1856
5d28d4b1
DN
18572009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1858
1859 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1860
b349d111
SM
18612009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1862
d528b1ce
SM
1863 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1864 when applicable (bug#4851).
1865
b349d111
SM
1866 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1867 (P_): Support for prototypes is now required.
1868
c38eb027
CY
18692009-10-31 Chong Yidong <cyd@stupidchicken.com>
1870
1871 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1872 (Bug#4827).
1873
0405f8d9
EZ
18742009-10-30 Eli Zaretskii <eliz@gnu.org>
1875
d528b1ce 1876 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1877
ca0a881a
DN
18782009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1879
1880 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1881
d528b1ce
SM
1882 * lread.c (Fload): Purecopy the file name when building
1883 Vpreloaded_file_list.
ca0a881a 1884
47e0e0e4
JR
18852009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1886
1887 * w32fns.c (syms_of_w32fns): Change default value of
1888 w32-scroll-lock-modifier to nil. (Bug#2827)
1889
057bce6f
JB
18902009-10-26 Juanma Barranquero <lekktu@gmail.com>
1891
782a943e 1892 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1893
242bc74c
AS
18942009-10-26 Andreas Schwab <schwab@redhat.com>
1895
1896 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1897
522d013a
JB
18982009-10-26 Juanma Barranquero <lekktu@gmail.com>
1899
1900 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1901 For delta < 0, skip check that only makes sense when the mini-window
1902 is going to be enlarged. (Bug#4534)
1903
18060980
CY
19042009-10-25 Chong Yidong <cyd@stupidchicken.com>
1905
1906 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1907 string in menu maps (Bug#4471).
1908
fec8f0fe
CY
19092009-10-24 Chong Yidong <cyd@stupidchicken.com>
1910
1911 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1912 FRAME_NS_VIEW on terminal frames (Bug#4765).
1913
10d66ec0
AS
19142009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1915
1cae01f7
AS
1916 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1917 DBUS_TYPE_UINTnn separately to get proper sign extension.
1918
58a12889
AS
1919 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1920 can properly handle unsigned types.
d528b1ce 1921 (make_uid, make_gid): Remove.
58a12889 1922
987c9327
AS
1923 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1924 types again.
1925
522d013a 1926 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1927 (system_process_attributes): Likewise.
1928
905a9ed3
DN
19292009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1930
1931 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1932
1933 * eval.c (Fautoload): Purecopy the filename. Simplify.
1934
1935 * category.c (Fdefine_category): Purecopy docstring.
1936
a599b3e8
AS
19372009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1938
7b792fc9
AS
1939 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1940
a599b3e8
AS
1941 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1942
b35ac83e
CY
19432009-10-23 Chong Yidong <cyd@stupidchicken.com>
1944
1945 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1946 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1947 (Bug#4775).
1948
e8903e00
SM
19492009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1950
1951 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1952 (init_fileio_once):
1953 * lisp.h (init_fileio_once): Remove.
1954 * emacs.c (main): Don't call init_fileio_once.
1955
8f43cbf3
DN
19562009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1957
1958 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1959
26898943
AS
19602009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1961
1962 * doprnt.c (doprnt): Fix overflow check.
1963
5c646d5a
JD
19642009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1965
3132a7ea
JD
1966 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1967
5c646d5a
JD
1968 * xterm.h (x_wait_for_event): Declare it.
1969
1970 * xterm.c (pending_event_wait): New variable.
1971 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1972 see pending_event_wait.eventtype.
1973 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1974 (x_new_font): Call change_frame_size with new rows/columns before we
1975 try to resize the frame.
5c646d5a 1976 (x_wait_for_event): New function.
d528b1ce
SM
1977 (x_set_window_size_1): Don't change gravity unless change_gravity
1978 is set.
5c646d5a
JD
1979 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1980 don't change frame size, instead wait for the ConfigureNotify.
1981 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1982 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1983 (x_initialize): Initialize pending_event_wait.
1984
1985 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1986 size.
1987
1988 * widget.c (EmacsFrameSetValues): Add comment.
1989 (EmacsFrameSetCharSize): Just call x_set_window_size.
1990
1991 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1992 x_wait_for_event.
d528b1ce 1993 (flush_and_sync): Remove again.
5c646d5a
JD
1994 (xg_get_font_name): Suggest monospace if no previous font is known.
1995
e9c1637d
SM
19962009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1997
1998 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1999 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2000
5a72cccb
YM
20012009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2002
2003 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2004 processing pending events when event is filtered for input method.
ab04798f 2005 (Bug#3681)
5a72cccb 2006
2629aa37
JB
20072009-10-20 Juanma Barranquero <lekktu@gmail.com>
2008
2009 * fns.c: Add #endif accidentally removed in previous change.
2010
c3417a74
DN
20112009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2012
2013 * fns.c: Remove code for unsupported system: MAC_OS.
2014 * image.c: Likewise. Include setjmp.h.
2015
9685cef2
JD
20162009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2017
2018 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2019 pixel -1 (bug #4742).
2020
d7306fe6
DN
20212009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2022
019d2c4c
DN
2023 * process.c (create_pty): Remove conditionals for no longer
2024 supported systems: UNIPLUS and RTU.
2025
ee6bacd4
DN
2026 * xterm.c:
2027 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2028
d7306fe6
DN
2029 * alloc.c: Do not define struct catchtag.
2030 * eval.c: Move struct catchtag definition ...
2031 * lisp.h: ... here.
2032
2033 * image.c: Move png.h #include earlier to avoid warnings.
2034
2035 * xterm.c:
2036 * xsmfns.c:
2037 * xselect.c:
2038 * xrdb.c:
2039 * xmenu.c:
2040 * xftfont.c:
2041 * xfont.c:
2042 * xfns.c:
2043 * xfaces.c:
2044 * xdisp.c:
2045 * window.c:
2046 * widget.c:
2047 * w32xfns.c:
2048 * w32uniscribe.c:
2049 * w32term.c:
2050 * w32select.c:
2051 * w32reg.c:
2052 * w32proc.c:
2053 * w32menu.c:
2054 * w32inevt.c:
2055 * w32heap.c:
2056 * w32font.c:
2057 * w32fns.c:
2058 * w32console.c:
2059 * w32.c:
2060 * w16select.c:
2061 * vm-limit.c:
2062 * unexsol.c:
2063 * unexec.c:
2064 * unexcw.c:
2065 * unexaix.c:
2066 * undo.c:
2067 * tparam.c:
2068 * textprop.c:
2069 * terminfo.c:
2070 * terminal.c:
2071 * termcap.c:
2072 * term.c:
2073 * syntax.c:
2074 * sound.c:
2075 * sheap.c:
2076 * search.c:
2077 * scroll.c:
2078 * region-cache.c:
2079 * regex.c:
2080 * ralloc.c:
2081 * process.c:
2082 * print.c:
b024548b
DN
2083 * nsterm.m:
2084 * nsselect.m:
2085 * nsmenu.m:
2086 * nsimage.m:
2087 * nsfont.m:
2088 * nsfns.m:
d7306fe6
DN
2089 * msdos.c:
2090 * minibuf.c:
2091 * menu.c:
2092 * marker.c:
2093 * macros.c:
2094 * keymap.c:
2095 * keyboard.c:
2096 * intervals.c:
2097 * insdel.c:
2098 * indent.c:
2099 * gtkutil.c:
2100 * ftxfont.c:
2101 * ftfont.c:
2102 * fringe.c:
2103 * frame.c:
2104 * fontset.c:
2105 * font.c:
2106 * fns.c:
2107 * floatfns.c:
2108 * filelock.c:
2109 * fileio.c:
2110 * emacs.c:
2111 * editfns.c:
2112 * dosfns.c:
2113 * doprnt.c:
2114 * doc.c:
2115 * dispnew.c:
2116 * dired.c:
2117 * dbusbind.c:
2118 * data.c:
2119 * composite.c:
2120 * coding.c:
2121 * cmds.c:
2122 * cm.c:
2123 * chartab.c:
2124 * charset.c:
2125 * character.c:
2126 * ccl.c:
2127 * category.c:
2128 * casetab.c:
2129 * casefiddle.c:
2130 * callproc.c:
2131 * callint.c:
2132 * bytecode.c:
2133 * buffer.c:
2134 * atimer.c: Include setjmp.h. (Bug#4643)
2135
fd5f21e6
SM
21362009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2137
4c0354d7
SM
2138 Remove leftover table unibyte_to_multibyte_table.
2139 * character.c (unibyte_to_multibyte_table): Remove.
2140 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2141 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2142 * character.h (UNIBYTE_TO_CHAR): New macro.
2143 (MAKE_CHAR_MULTIBYTE): Use it.
2144 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2145 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2146 (message_dolog, set_message_1):
2147 * search.c (Freplace_match):
2148 * editfns.c (Fcompare_buffer_substrings):
2149 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2150 (concat):
2151 * insdel.c (copy_text, count_size_as_multibyte):
2152 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2153 * term.c (produce_glyphs):
2154 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2155 * regex.c (RE_CHAR_TO_MULTIBYTE):
2156 * cmds.c (internal_self_insert):
2157 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2158
fd5f21e6
SM
2159 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2160
4418646e
DN
21612009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2162
2163 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2164
35f5c1d2
JB
21652009-10-16 Juanma Barranquero <lekktu@gmail.com>
2166
2167 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2168
a0cd8f6b
AR
21692009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2170
2171 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2172 still needed under Tiger.
2173
2174 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2175
2176 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2177 __Apple__.
2178
2179 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2180
01a8d3fa
KH
21812009-10-15 Kenichi Handa <handa@m17n.org>
2182
2183 * print.c (print_object): Escape a symbol like "2E10" too.
2184
bf6c75c9 21852009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2186
2187 Cleanups and changes for 64-bit compile under Snow Leopard.
2188 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2189
2190 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2191
c5959062 2192 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2193 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2194 cast argument.
2195 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2196 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2197
2198 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2199
2200 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2201 where appropriate.
2202
2203 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2204 where appropriate.
6e4780c5
JB
2205 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2206 Use stringWithUTF8String.
bf6c75c9
AR
2207 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2208
6e4780c5
JB
2209 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2210 Add formal protocol mention to inheritance.
bf6c75c9
AR
2211 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2212
6e4780c5
JB
2213 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2214 Fix printf format.
bf6c75c9
AR
2215 (ns_query_color): Use CGFloat where appropriate.
2216 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2217 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2218 argument.
2219
3d87f118
AR
2220 * config.in (NS_HAVE_NSINTEGER): Drop.
2221
a95c8102
AR
2222 * dbusbind.c (dbus-method-return-internal)
2223 (dbus-method-error-internal): Use long format in printf, and cast
2224 argument.
2225
2226 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2227 in printf, and cast argument.
2228
6873acca 2229 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2230 cast argument.
2231
9ec6f100
GM
22322009-10-11 Glenn Morris <rgm@gnu.org>
2233
2234 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2235
5be883cd
JD
22362009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2237
2238 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2239 menu bar with a small width so it doesn't enlarge the frame.
2240
d7a39b51
JB
22412009-10-08 Juanma Barranquero <lekktu@gmail.com>
2242
2243 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2244
0c2b6f8e
GM
22452009-10-06 Glenn Morris <rgm@gnu.org>
2246
2247 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2248 SOME_MACHINE_LISP (this enters indirectly via DOC).
2249
e02131a2
EZ
22502009-10-05 Eli Zaretskii <eliz@gnu.org>
2251
2252 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2253
b4744254
EZ
22542009-10-04 Eli Zaretskii <eliz@gnu.org>
2255
2256 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2257 Doc fix.
2258
dbf64827
JB
22592009-10-03 Martin Rudalics <rudalics@gmx.at>
2260
2261 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2262
e9a0aef8
MA
22632009-10-02 Michael Albinus <michael.albinus@gmx.de>
2264
d528b1ce 2265 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2266 used anymore outside fileio.c.
2267
2268 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2269
64eb2b56
JB
22702009-10-01 Juanma Barranquero <lekktu@gmail.com>
2271
2272 * lisp.h (Qdelete_directory_internal):
2273 Declare, instead of Qdelete_directory.
2274
2275 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2276
9d28c33e
SM
22772009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2278
2279 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2280
9d8f3bd9
MA
22812009-10-01 Michael Albinus <michael.albinus@gmx.de>
2282
9d28c33e 2283 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2284 Fdelete_directory. It is not a command anymore. It has no file
2285 name handler.
2286
9694740b
SM
22872009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2288
2289 * xdisp.c (get_next_display_element): Use an enum in last change.
2290
748e162f
KH
22912009-09-28 Kenichi Handa <handa@m17n.org>
2292
9694740b 2293 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2294 unibyte_display_via_language_environment in handling
2295 Vnobreak_char_display.
2296
17efd58d
AR
22972009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2298
2299 * nsterm.h (ns_app_name): New extern variable.
2300
2301 * nsterm.m (ns_app_name): New variable.
2302 (ns_term_init): Set and use it.
2303 (ns_term_shutdown): Use it.
2304
2305 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2306 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2307
2308 * nsfns.m (ns_set_name_iconic, ns_set_name)
2309 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2310 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2311
9694740b
SM
2312 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2313 Remove double-casting in client_data comparison.
31c2d412 2314
3208cb35
YM
23152009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2316
2317 * keyboard.c (make_lispy_event): Remember last wheel direction.
2318 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2319
b7d552d6
GM
23202009-09-26 Glenn Morris <rgm@gnu.org>
2321
2322 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2323 internal.elc. Add term/pc-win.elc.
2324 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2325 term/x-win.elc.
2326 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2327 term/w32-win.elc.
2328 (NS_SUPPORT): New.
2329 (lisp): Add NS_SUPPORT.
2330 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2331
4ff670a8
DR
23322009-09-25 David Reitter <david.reitter@gmail.com>
2333
2334 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2335 on Mac OS X 10.6+ (bug#4513).
2336
feabfb6c
JB
23372009-09-24 Juanma Barranquero <lekktu@gmail.com>
2338
2339 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2340 some parts of Emacs code (like font selection) don't grok them.
2341 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2342
de59072a
AS
23432009-09-24 Andreas Schwab <schwab@redhat.com>
2344
2345 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2346
a489517b
JB
23472009-09-24 Juanma Barranquero <lekktu@gmail.com>
2348
2349 * dired.c (Fdirectory_files): Fix typo in docstring.
2350
0592970c
AR
23512009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2352
2353 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2354 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2355 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2356 under GNUstep.
2357 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2358
2359 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2360 glyph advancement.
2361
48e8a88b
AR
23622009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2363
2364 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2365 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2366
2367 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2368 deleted (bug #4492).
2369
e14f0a78
AR
2370 * nsfont.m (Vns_reg_to_script): New lisp variable.
2371 (syms_of_nsfont): Declare it.
2372 (ns_registry_to_script): New function.
2373 (ns_get_req_script): Call it.
2374 (ns_findfonts): Don't give up on non-unicode registry.
2375
2376 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2377
5b650faa
SM
23782009-09-20 Tom Tromey <tromey@redhat.com>
2379
2380 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2381 batch mode (bug#4228).
2382
a489517b 23832009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2384
2385 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2386 carefully. (Bug #4339)
0bae4e09 2387
fcfe06f3
CY
23882009-09-18 Chong Yidong <cyd@stupidchicken.com>
2389
d798ba87 2390 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2391
31642728
AR
23922009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2393
2394 * emacs.c (inhibit_x_resources): Update doc string for NS.
2395 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2396 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2397
2398 * nsterm.h (ns_no_defaults): Remove.
2399
2400 * nsterm.m (ns_no_defaults): Remove.
2401 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2402 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2403 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2404 don't update the NSWindow itself.
2405 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2406 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2407
2408 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2409 ns_use_qd_smoothing.
2410
2411 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2412 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2413 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2414 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2415
8686ac71
JB
24162009-09-17 Juanma Barranquero <lekktu@gmail.com>
2417
2418 * emacs.c (inhibit_x_resources): New variable.
2419 (main) [HAVE_NS]: Don't process --quick command line option.
2420 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2421
2422 * lisp.h (inhibit_x_resources): Declare it extern.
2423
2424 * w32reg.c (x_get_string_resource):
2425 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2426
e227ba05
EZ
24272009-09-17 Eli Zaretskii <eliz@gnu.org>
2428
362654a6
JB
2429 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2430 Add lisp/term/internal.elc.
e227ba05 2431
742d40e8
SM
24322009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2433
2434 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2435 (bug#4461).
2436
005bd5a2
DN
24372009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2438
2439 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2440
2441 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2442 (OBJECTS_MACHINE): Remove, unused.
2443
f9af9719
SM
24442009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2445
2446 * frame.c (x_get_resource_string): Remove unused.
2447
0307c7d2
JD
24482009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2449
2450 * xterm.c (x_new_font): Call change_frame_size before calling
2451 x_set_window_size, in case frame size won't change.
2452
2453 * frame.c (x_set_font): Remove dead code.
2454
428b13d6
SM
24552009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2456
2457 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2458
5766c380
SM
24592009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2460
2461 * lread.c (Fload): Don't output a message after loading an obsolete
2462 package any more (done in Lisp now).
2463
2fd0161b
CY
24642009-09-12 Chong Yidong <cyd@stupidchicken.com>
2465
2466 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2467
bc5e75b6
SM
24682009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2469
2470 * keymap.c (Fwhere_is_internal): Use nconc2.
2471
c31c985e
AM
24722009-09-11 Alan Mackenzie <acm@muc.de>
2473
2474 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2475 batch mode.
2476
78012bd2
AS
24772009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2478
2479 * xdisp.c (display_mode_element): Detect cycles.
2480
9d889332
SM
24812009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2482
2483 * keymap.c (where_is_internal): Don't erroneously return nil right after
2484 filling the cache.
2485 (where_is_internal_1): Fix up typo.
2486
7ab5d780
GM
24872009-09-11 Glenn Morris <rgm@gnu.org>
2488
2489 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2490 share a common doc-string.
2491
5238a749
SM
24922009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2493
66d77eda
SM
2494 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2495 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2496
5238a749
SM
2497 * keymap.c (QCadvertised_binding): New constant.
2498 (syms_of_keymap): Initialize it.
2499 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2500 if applicable.
2501
19f48442
SM
25022009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2503
50d4ba39
SM
2504 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2505 (parse_menu_item): Streamline since bindings are recomputed all the
2506 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2507 more and don't support lmenu's menu-alias any more either.
2508
a88a5372
SM
2509 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2510 (where_is_internal): Strip it down to only traverse the keymaps.
2511 Move the cache handling from Fwhere_is_internal to here.
2512 (Fwhere_is_internal): Move the handling of remapping and the choice of
2513 the best binding from where_is_internal to here.
2514 Unify the cached/noncached paths, so remapping is also handled
2515 correctly when the cache is used, and so the cache can be used to
2516 speed up remap-handling when applicable.
2517 Give preference to non-remapped bindings.
2518 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2519 non-remapped bindings.
2520 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2521 command remapping.
2522
19f48442
SM
2523 * xdisp.c (display_mode_element): Move list length limit from 50 to
2524 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2525
599498c3 25262009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2527
2528 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2529
f9b7b5ac
SM
25302009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2531
a53af587
JB
2532 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2533 (Bug#4334)
2534
f9b7b5ac
SM
2535 * keymap.c (where_is_internal): Filter out shadowed remappings.
2536 Assume that where_is_internal returns unshadowed bindings to simplify
2537 the code and get rid of the gotos. Use ASIZE.
2538
04f4b72d
JD
25392009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2540
4da146f2
JD
2541 * xterm.c (x_focus_changed): If we get a focusout and pointer
2542 is invisible, make it visible.
2543
04f4b72d
JD
2544 * xterm.h: Remove condition for declaration of
2545 x_*_window_to_frame.
2546
7cef7ce3
SM
25472009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2548
2549 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2550 initial terminal as well.
2551
a54fa5b7
JD
25522009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2553
2554 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2555 x_menubar_window_to_frame.
a54fa5b7
JD
2556
2557 * xterm.c: Remove declarations also in xterm.h
2558 (XTmouse_position): Do not return valid positions
2559 for clicks in the menubar and the toolbar for Gtk+.
2560
2561 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2562 if the widget for the event has the same top level as a frame,
2563 return the frame.
2564 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2565 internal windows, bug #4122.
2566 (x_non_menubar_window_to_frame): Remove.
2567
5a021dd0
GM
25682009-09-02 Glenn Morris <rgm@gnu.org>
2569
2570 * buffer.c (default-major-mode): Move most of the doc from here...
2571 (major-mode): ... to here.
2572
548fe2f3
NR
25732009-08-30 Nick Roberts <nickrob@snap.net.nz>
2574
2575 * process.c (wait_reading_process_output): Keep the descriptor
2576 when pty is used by a non-child process, e.g., in I/O buffer of
2577 GDB this allows inferior to be restarted.
2578
e0840eef
EZ
25792009-08-29 Eli Zaretskii <eliz@gnu.org>
2580
2581 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2582 both branches into one.
2583
82e98df4
SM
25842009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2585
2586 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2587 (main): Use enable-multibyte-characters rather than
2588 default-enable-multibyte-characters. Output a warning message when
2589 running a unibyte session.
2590
890617cb
YM
25912009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2592
2593 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2594 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2595 (copy_data_segment): Also copy __program_vars section.
2596 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2597 (dump_it) [LC_DYLD_INFO]: Use it.
2598
2599 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2600
e7adeadc
EZ
26012009-08-28 Eli Zaretskii <eliz@gnu.org>
2602
2603 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2604 $(SRC)/buildobj.h.
2605 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2606 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2607 $(SRC)/buildobj.h.
2608 (clean): Add buildobj.h.
2609
3ed8bbdc
TZ
26102009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2611
2612 * print.c (print_object): Set escapeflag to 1 when printing
2613 hashtable keys and values.
2614
155a6764
SM
26152009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2616
2617 * lread.c (read_integer): Use doubles (and potentially return a float
2618 number) as we do in string-to-number.
2619 (read1): Use strtol to read integers, signal errors on strtol's
2620 overflow and use floats if strtol's output is too large for
2621 Elisp integers.
2622
877610de
EZ
26232009-08-27 Eli Zaretskii <eliz@gnu.org>
2624
2625 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2626 (make-buildobj-SH): Fix last change.
2627 (SRC): Move to before where it's first used.
2628
ef73e7be
KH
26292009-08-27 Kenichi Handa <handa@m17n.org>
2630
550c8289
KH
2631 * process.c (send_process): Use encode_coding_object instead of
2632 encode_coding_string to perform eol-conversion even if the string
2633 is unibyte.
2634
60afa08d
KH
2635 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2636 character.
2637
ef73e7be 2638 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2639 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2640
7b3a82d7
DN
26412009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2642
5654bf63
DN
2643 * callproc.c (Fcall_process): Remove always true #if.
2644
7b3a82d7
DN
2645 * lisp.h: Replace #if 0 code for checking with text pointing to
2646 the --enable-checking configure flag.
2647
2648 * emacs.c (main): Mention the --enable-profiling configure flag
2649 instead of using CFLAGS.
2650
878bde49
KR
26512009-08-26 Ken Raeburn <raeburn@raeburn.org>
2652
2653 * Makefile.in (buildobj.h): New target.
2654 (doc.o): Depend on it.
2655 (temacs${EXEEXT}): Don't generate buildobj.lst.
2656 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2657 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2658 ($(BLD)/doc.$(O)): Depend on it.
2659 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2660 provided by Eli Zaretskii.)
2661 ($(TEMACS)): Don't generate buildobj.lst.
2662 * doc.c: Include buildobj.h.
2663 (buildobj): New static variable.
2664 (Fsnarf_documentation): Use it, instead of opening and reading
2665 buildobj.lst.
2666
1574224c
MA
26672009-08-25 Michael Albinus <michael.albinus@gmx.de>
2668
2669 * dbusbind.c (Fdbus_call_method)
2670 (Fdbus_call_method_asynchronously): Use English numeric format for
2671 timeout values in doc string.
2672
d9da2f45
KH
26732009-08-25 Kenichi Handa <handa@m17n.org>
2674
ef73e7be
KH
2675 * alloc.c (mark_char_table): New function.
2676 (mark_object): Use mark_char_table for a char-table.
2677
d9da2f45
KH
2678 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2679 (CHAR_TABLE_REF): Use it.
2680
c8edcc01
KR
26812009-08-23 Ken Raeburn <raeburn@raeburn.org>
2682
2683 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2684 before invoking the newly build emacs to check for load-path
2685 shadowing.
2686
7763401b
GM
26872009-08-22 Glenn Morris <rgm@gnu.org>
2688
2689 * Makefile.in (bootstrap_exe): New variable.
2690 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2691 Use ${bootstrap_exe}.
2692
729eadda
EZ
26932009-08-22 Eli Zaretskii <eliz@gnu.org>
2694
2695 * coding.h (encode_coding_string): Don't encode unibyte strings.
2696 (Bug#4047)
2697
eb4c6ace
MA
26982009-08-22 Michael Albinus <michael.albinus@gmx.de>
2699
2700 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2701
2702 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2703 intended as hotfix only.
2704 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2705
36e34d1b
AR
27062009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2707
2708 * nsterm.m (ns_get_color): Update documentation properly for last
2709 change, and clean up loose ends in the code left by it. Fix
2710 longstanding bug with 16-bit hex parsing, and add support for
2711 yet another X11 format (rgb:r/g/b) for compatibility.
2712 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2713 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2714
f983eb8a
SM
27152009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2716
2717 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2718
3f56d3c6
MA
27192009-08-20 Michael Albinus <michael.albinus@gmx.de>
2720
2721 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2722 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2723 (xd_initialize, xd_pending_messages): Check, whether
2724 $DBUS_SESSION_BUS_ADDRESS is set.
2725
fb641d68
YM
27262009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2727
2728 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2729
2730 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2731
cf59a374
GM
27322009-08-20 Glenn Morris <rgm@gnu.org>
2733
2734 * emacs.c (system-type): Doc fix.
2735
1373f3be
SM
27362009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2737
2738 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2739 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2740
058ed861
MA
27412009-08-18 Michael Albinus <michael.albinus@gmx.de>
2742
1373f3be
SM
2743 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2744 New functions.
058ed861
MA
2745 (xd_initialize): Revert change from 2009-08-16.
2746
563a866e 27472009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2748
2749 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2750 font-group vector, return nil.
5fc05db0 2751
e42bdf01
CY
27522009-08-17 Chong Yidong <cyd@stupidchicken.com>
2753
2754 * process.c (status_notify): Don't perform redisplay.
2755 (Fdelete_process, list_processes_1, process_send_signal):
2756 Expliticly perform redisplay.
2757 (wait_reading_process_output): Always check process status, but
2758 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2759
4230ab74
KR
27602009-08-17 Ken Raeburn <raeburn@raeburn.org>
2761
1373f3be 2762 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2763 (XFLOAT_INIT): New macro for storing a float value.
2764 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2765 * fns.c (sxhash): Copy out the value of a float in order to
2766 examine its bytes.
2767 * dbusbind.c (xd_append_arg): Likewise.
2768
4230ab74
KR
2769 * emacs.c (main): Don't call syms_of_data twice.
2770
a0645cdd
MA
27712009-08-16 Michael Albinus <michael.albinus@gmx.de>
2772
2773 * dbusbind.c (xd_initialize): Add connection file descriptor to
2774 input_wait_mask, in order to let select() detect, whether a new
2775 message has been arrived.
ca4f31ea 2776 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2777
485db0ba
MA
27782009-08-15 Michael Albinus <michael.albinus@gmx.de>
2779
1373f3be
SM
2780 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2781 New functions.
485db0ba
MA
2782
2783 * lisp.h (xd_pending_messages): Declare.
2784
2785 * keyboard.c (readable_events): Call xd_pending_messages.
2786
b5b98ff4
CY
27872009-08-15 Chong Yidong <cyd@stupidchicken.com>
2788
1373f3be 2789 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2790
f8354c6e
CY
2791 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2792
b5b98ff4
CY
2793 * buffer.c (set_buffer_internal_1)
2794 (swap_out_buffer_local_variables): Check for unbound local
2795 variables (Bug#4138).
2796
8b9fc636
EZ
27972009-08-14 Eli Zaretskii <eliz@gnu.org>
2798
2799 * process.c (create_pty): Fix last change.
2800
ce959360
CY
28012009-08-13 Chong Yidong <cyd@stupidchicken.com>
2802
2803 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2804 (xbm_load_image): Caller changed.
64b807c9 2805 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2806
c7baf7e9
NR
28072009-08-13 Nick Roberts <nickrob@snap.net.nz>
2808
2809 * process.c (create_pty): New function.
2810 (Fstart_process): Use it to allow Emacs to just associate a pty
2811 with the buffer. See associated change in gdb-mi.el.
2812 (list_processes_1): Deal with no program name.
2813 (start_process_unwind): Use pid == -2 to mean no process.
2814
1ac9108a
SM
28152009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2816
2817 * cmds.c (nonundocount): New global variable.
2818 (keys_of_cmds): Initialize it.
2819 (Fself_insert_command): Use it to combine upto 20 sequential chars
2820 into a single undo entry, just like the Qself_insert_command code in
2821 keyboard.c does.
2822 Call frame_make_pointer_invisible, also like the Qself_insert_command
2823 code in keyboard.c does.
2824 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2825 than its own local replacement for it.
2826
e267324c
KR
28272009-08-10 Ken Raeburn <raeburn@raeburn.org>
2828
1ac9108a 2829 * fns.c (concat): Don't re-set string length to its current value.
77437343 2830
1ac9108a
SM
2831 * coding.h (decode_coding_string, encode_coding_string):
2832 Use SBYTES macro.
f0bed503 2833
1ac9108a 2834 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2835 (doprnt): Merge with doprnt1, discarding lispstrings code.
2836 * lisp.h (doprnt_lisp): Don't declare.
2837
416e006d
JL
28382009-08-07 Juri Linkov <juri@jurta.org>
2839
2840 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2841
6f7d5780
DN
28422009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2843
2844 * print.c (syms_of_print): Undo previous change.
2845
f19a0f5b
TZ
28462009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2847
2848 * lread.c (read1, syms_of_lread): Read hashtables back from the
2849 readable format.
2850
2851 * print.c (print_preprocess, print_object): Print hashtables fully
2852 and readably.
2853 (syms_of_print): Provide 'hashtable-print-readable.
2854
b9173dc2
AR
28552009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2856
2857 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2858 no family set.
2859 (nsfont_open): Handle case when entity has no family.
2860
1586503c
AR
28612009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2862
2863 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2864 element, not a list, for match case.
2865
087048cd
KH
28662009-07-28 Kenichi Handa <handa@m17n.org>
2867
2868 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2869 rigidly.
2870
2871 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2872 font_parse_xlfd. Check font properties more rigidly.
2873
780c2506
DN
28742009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2875
31fd7c5c
JB
2876 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2877 bsd-common.h.
780c2506 2878
a8c0cc18
KH
28792009-07-27 Kenichi Handa <handa@m17n.org>
2880
2881 * xfaces.c (face_with_height): Call font_clear_prop.
2882
4fbe2306
CY
28832009-07-26 Chong Yidong <cyd@stupidchicken.com>
2884
111d9af3
CY
2885 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2886
2887 * xterm.c (x_term_init): Use Qx.
2888
4fbe2306
CY
2889 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2890
1ac9108a 2891 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2892 (ns_get_color): Revert 2009-07-16 change.
2893
beb0b7f9
EZ
28942009-07-25 Eli Zaretskii <eliz@gnu.org>
2895
2896 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2897 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2898
2baf5e76
KR
28992009-07-25 Ken Raeburn <raeburn@raeburn.org>
2900
1ac9108a
SM
2901 * coding.h (decode_coding_string, encode_coding_string):
2902 Use SCHARS macro.
8890e5f5 2903
2baf5e76 2904 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2905 (load_depth): Delete.
2baf5e76
KR
2906 (Qload_in_progress): New variable.
2907 (load_unwind): Don't reference load_depth or load_in_progress.
2908 (Fload): Likewise; specbind Qload_in_progress instead.
2909 (init_lread): Don't initialize load_depth.
2910 (syms_of_lread): Initialize and protect Qload_in_progress.
2911
1395c6f5
AR
29122009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2913
2914 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2915
4e2f36cf
AR
29162009-07-23 Yavor Doganov <yavor@gnu.org>
2917
2918 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2919
5dd9a6f7
AR
29202009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2921
2922 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2923 Bugs 3792, 3720, 2402.
2924 (ns_lookup_indexed_color): Check for bad index.
2925 (ns_index_color): Init unused slot to 0.
2926 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2927 Bug 3714, possibly 3082.
5dd9a6f7 2928
c902b920
JR
29292009-07-22 Jason Rumney <jasonr@gnu.org>
2930
1ac9108a
SM
2931 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2932 Position IME window at cursor (Bug#2570).
c902b920
JR
2933 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2934 (globals_of_w32fns): Dynamically load functions required above.
2935
2936 * w32term.c (w32_draw_window_cursor): Send message to reposition
2937 any IME window.
2938
090101cf
CY
29392009-07-21 Chong Yidong <cyd@stupidchicken.com>
2940
2941 * fileio.c: Revert 2009-07-16 changes.
2942 (Vauto_save_include_big_deletions): New variable.
2943 (Fdo_auto_save): Disable auto-save only if
2944 auto-save-include-big-deletions is nil.
2945
e6583e3d
CY
29462009-07-21 Chong Yidong <cyd@stupidchicken.com>
2947
2948 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2949 the overflowed pixels into account (Bug#3879).
2950
ece435a5
KR
29512009-07-21 Ken Raeburn <raeburn@raeburn.org>
2952
2953 * lread.c (load_depth): New variable.
2954 (Fload, load_unwind, init_lread): Set it to the load recursion
2955 depth; set load_in_progress as a simple boolean based on the
2956 current load_depth. (Bug#3892)
2957
40b2d973
AR
29582009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2959
2960 * nsfont.m (ns_has_attribute): Remove.
2961 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2962
10be7e0d
JL
29632009-07-18 Juri Linkov <juri@jurta.org>
2964
2965 * process.c (Fset_process_query_on_exit_flag): Mention killing
2966 a buffer in docstring.
2967
fa055055
KH
29682009-07-17 Kenichi Handa <handa@m17n.org>
2969
2970 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2971
042f7b69
YM
29722009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2973
2974 * nsfns.m (Fns_set_alpha): Remove function.
2975 (syms_of_nsfns): Don't defsubr it.
2976
2977 * nsterm.m (ns_get_color): Remove incompatible color formats.
2978 (ns_color_to_lisp): Generate #rrggbb color format string.
2979
4be941e3
RS
29802009-07-16 Richard Stallman <rms@gnu.org>
2981
2982 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2983 (Fset_buffer_auto_saved): Handle save_length = -2.
2984
4e6b227d
CY
29852009-07-16 Chong Yidong <cyd@stupidchicken.com>
2986
2987 * xterm.c (Qx_gtk_map_stock): New var.
2988
2989 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2990 of calling intern each time.
2991
a1856973
YM
29922009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2993
2994 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2995 does tiling.
2996
2997 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2998
497e54d8
KH
29992009-07-14 Kenichi Handa <handa@m17n.org>
3000
72d36834
KH
3001 * font.c (font_vconcat_entity_vectors): New function.
3002 (struct font_sort_data): New member font_driver_preference.
3003 (font_compare): Check font_driver_preference.
3004 (font_sort_entities): The format of the first argument changed.
3005 (font_delete_unmatched): Likewise.
3006 (font_list_entities): The return type changed.
3007 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3008 (font_find_for_lface): Adjuste for the above changes.
3009 Don't suppress the checking of C even if the repertory supports it.
3010 (Flist_fonts): Adjust for the above changes.
72d36834 3011
1ac9108a
SM
3012 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3013 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3014 Reject a font who has adstyle property that is different from a
3015 langname derived from registry property.
1ac9108a 3016 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3017
b6046155
EZ
30182009-07-13 Eli Zaretskii <eliz@gnu.org>
3019
3020 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3021 local copy of dirfilename.
3022
fb6b6049
KH
30232009-07-13 Kenichi Handa <handa@m17n.org>
3024
e2402a5e
KH
3025 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3026 against max_char.
3027
fb6b6049
KH
3028 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3029 calling XSYMBOL (sym).
3030
65156807
EZ
30312009-07-11 Eli Zaretskii <eliz@gnu.org>
3032
1ac9108a
SM
3033 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3034 New function.
3035 (directory_files_internal) [WINDOWSNT]:
3036 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3037 the filesystem of the directory is fast or slow.
3038
3039 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3040 file name.
3041 (is_slow_fs): New function.
3042 (stat): Use it to determine whether to issue more system calls to
3043 get accurate file attributes, when w32-get-true-file-attributes is
3044 `local'.
3045
e0ab5fcf
JD
30462009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3047
3048 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3049 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3050 parameter font-parameter as default to the font dialog.
3051
784ceded
KH
30522009-07-10 Kenichi Handa <handa@m17n.org>
3053
3054 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3055
fb8edc0b
EZ
30562009-07-09 Eli Zaretskii <eliz@gnu.org>
3057
1ac9108a 3058 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3059
fb8edc0b
EZ
3060 * w32.c (stat): Treat UNC file names as residing on remote
3061 drives. (Bug#3542)
3062
635c75b1
KH
30632009-07-09 Kenichi Handa <handa@m17n.org>
3064
3065 * fontset.c (fontset_find_font): Fix previous change.
3066
c1d5ce94
MA
30672009-07-08 Michael Albinus <michael.albinus@gmx.de>
3068
3069 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3070 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3071 error flag.
3072
edb61b39
KH
30732009-07-08 Kenichi Handa <handa@m17n.org>
3074
374bf7e4
KH
3075 * fontset.c (fontset_find_font): Fix the logic of handling
3076 charset_matched.
3077 (font_for_char): Delete unused var.
3078 (generate_ascii_font_name): Delete it.
3079
edb61b39
KH
3080 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3081
3082 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3083 (encode_coding_sjis): Fix the code range check.
3084
0f3f018c
CY
30852009-07-07 Chong Yidong <cyd@stupidchicken.com>
3086
3087 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3088 (Fexpand_file_name): Copy string data properly (Bug#3772).
3089
fcaf6f3a
JD
30902009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3091
3092 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3093 first MapNotify.
3094
6809ca75
KH
30952009-07-07 Kenichi Handa <handa@m17n.org>
3096
3097 * character.h (unibyte_has_multibyte_table): Delete extern.
3098 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3099
3100 * charset.c (Fset_charset_priority): Update charset_unibyte.
3101 (syms_of_charset): Initialize charset_unibyte.
3102
3103 * character.c (unibyte_has_multibyte_table): Delete it.
3104 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3105 charset_unibyte.
3106 (multibyte_char_to_unibyte_safe): Likewise.
3107 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3108
1ac9108a 3109 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3110 (x_produce_glyphs): Likewise.
3111
3112 * .gdbinit (xcharset): Fix the treating $arg0.
3113
ad9e2d54
EZ
31142009-07-04 Eli Zaretskii <eliz@gnu.org>
3115
3116 Emulation of `getloadavg' on MS-Windows.
3117 * w32.c: Include float.h
3118 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3119 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3120 (get_native_system_info, get_system_times): New functions.
3121 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3122 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3123 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3124 g_b_init_get_system_times, and num_of_processors.
3125
0a3472c7
JR
31262009-07-03 Jason Rumney <jasonr@gnu.org>
3127
3128 * w32term.c (w32_initialize): Use standard types.
3129
80904120
EZ
31302009-07-03 Eli Zaretskii <eliz@gnu.org>
3131
3132 * dired.c (Ffile_attributes): Decode user and group names by the
3133 locale's encoding. (Bug#3443)
3134
6978862d
DN
31352009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3136
f8d23104
DN
3137 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3138 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3139
3140 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3141
3142 * term.c (init_tty): Remove spurious #ifdef.
3143
6978862d
DN
3144 * m/mips.h: Mention this file is also used for netbsd.
3145 * m/pmax.h: Remove file.
3146
e044e4fc
JD
31472009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3148
3149 * xterm.h (struct x_display_info): Add invisible_cursor.
3150 (struct x_output): Add current_cursor.
3151
3152 * xterm.c (XTtoggle_invisible_pointer): New function.
3153 (x_define_frame_cursor): Don't define cursor if invisible or the
3154 same as before. Set current_cursor.
3155 (x_create_terminal): Set toggle_invisible_pointer_hook.
3156
3157 * xfns.c (make_invisible_cursor): New function.
3158 (x_set_mouse_color): Call make_invisible_cursor.
3159 Set current_cursor.
3160 (x_window): Set current_cursor.
3161
3162 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3163
3164 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3165 inserting a character.
3166 (read_avail_input): Call frame_make_pointer_visible.
3167
3168 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3169 (frame_make_pointer_invisible, frame_make_pointer_visible):
3170 New functions.
e044e4fc
JD
3171 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3172
3173 * frame.h: Declare frame_make_pointer_invisible and
3174 frame_make_pointer_visible.
3175 (struct frame): Add pointer_invisible.
3176
574c8efa
JD
31772009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3178
7b507248
JD
3179 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3180 frame isn't visible.
3181 (xg_frame_resized): If width/height is -1, get size of window
3182 from X server.
3183
3184 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3185 for MapNotify.
3186
835bdaa7 3187 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3188 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3189 (flush_and_sync): Reintroduce.
574c8efa 3190
3f1c6666 31912009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3192
31fd7c5c 3193 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3194
3195 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3196 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3197
3198 * frame.h: Declare Qsticky.
3199
cad9ef74
JD
3200 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3201
3202 * nsfns.m (ns_frame_parm_handlers): Ditto.
3203
3204 * frame.c: Declare Qsticky.
3205 (frame_parms): Add sticky.
3206
3207 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3208
3209 * xterm.h: Declare x_set_sticky.
3210
3211 * xterm.c (x_set_sticky): New function.
3212
69b16610
JD
3213 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3214 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3215 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3216
3217 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3218
3219 * frame.c: Qmaximized is new.
3220 (x_set_frame_parameters): Do not handle fullscreen specially.
3221 Only set width and height if explicitly set.
3222 (x_set_fullscreen): Handle Qmaximized.
3223 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3224 (syms_of_frame): Initialize Qmaximized.
3225
1ac9108a
SM
3226 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3227 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3228
3229 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3230 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3231 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3232 set gravity to NorthWestGravity when USE_GTK.
3233 (set_wm_state): New function.
31fd7c5c 3234 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3235 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3236 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3237 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3238 to x_real_positions and x_fullscreen_adjust.
3239
3240 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3241 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3242 flush_and_sync.
3243 (xg_height_changed): New function.
3244 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3245 and gtk_window_set_policy. Set frame gravity after parsing the
3246 geometry string.
3f1c6666
JD
3247 (xg_update_frame_menubar, free_frame_menubar)
3248 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3249 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3250 Remove calls to xg_frame_set_char_size.
3251
fd503d99
KH
32522009-07-01 Kenichi Handa <handa@m17n.org>
3253
3254 * keyboard.c (decode_keyboard_code): New function.
3255 (tty_read_avail_input): Decode the input bytes if necessary.
3256
1ac9108a
SM
3257 * coding.c (setup_coding_system):
3258 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3259 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3260 use Qno_conversion.
3261
24ed93fb
YM
32622009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3263
3264 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3265
99061dfc
CY
32662009-06-30 Chong Yidong <cyd@stupidchicken.com>
3267
1ac9108a 3268 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3269
ff90fbde
JR
32702009-06-30 Jason Rumney <jasonr@gnu.org>
3271
3272 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3273 is already loaded.
3274 Set user model ID if supported (bug#1849).
3275
5f445726
JM
32762009-06-29 Jim Meyering <meyering@redhat.com>
3277
3278 Remove useless if-before-xfree test.
3279 * nsfont.m (nsfont_close): Remove useless test.
3280 * term.c (delete_tty): Likewise.
3281 * w32.c (system_process_attributes): Likewise.
3282 * w32font.c (w32font_close): Likewise.
3283 * xfaces.c (x_free_gc): Likewise.
3284 * xselect.c (buffer): Likewise.
3285
b9607587
AS
32862009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3287
3288 * process.c (send_process): Keep decoded string in a local
3289 variable and protect it from GC. (Bug#3521)
3290
89ba96f4
EZ
32912009-06-28 Eli Zaretskii <eliz@gnu.org>
3292
3293 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3294 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3295
098a1589
CY
32962009-06-28 Chong Yidong <cyd@stupidchicken.com>
3297
485422be
CY
3298 * xdisp.c (start_display, handle_face_prop)
3299 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3300 (redisplay_window, try_window_id, produce_image_glyph):
3301 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3302
098a1589
CY
3303 * xterm.c (x_update_window_begin, x_new_focus_frame)
3304 (x_scroll_bar_handle_click, handle_one_xevent)
3305 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3306 (x_make_frame_visible, x_make_frame_invisible)
3307 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3308 code chunks that are now obsolete.
3309
78c38319
MA
33102009-06-28 Michael Albinus <michael.albinus@gmx.de>
3311
3312 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3313 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3314 for hours, when optimzation is enabled.
3315 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3316 (xd_read_message): Make them static.
3317
4189ed40
CY
33182009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3319
3320 * term.c (turn_on_face): Allow simultaneously bold and dim
3321 terminal faces (Bug#3530).
3322
cd9b5e16
CY
33232009-06-27 Chong Yidong <cyd@stupidchicken.com>
3324
4e23bedb
CY
3325 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3326
cd9b5e16
CY
3327 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3328 truncation glyphs (Bug#3686).
3329
07cc3c35
GM
33302009-06-27 Glenn Morris <rgm@gnu.org>
3331
3332 * m/pmax.h: Restore file, with only netbsd portions.
3333
31fd7c5c 33342009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3335
cd9b5e16 3336 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3337
42d4a64f
KH
33382009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3339
3340 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3341 the arg FORCE_SYMBOL.
3342
930fe55b 33432009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3344
3345 * fontset.c (fontset_find_font): When a usable rfont_def is found
3346 in a fallback font-group, make it the first element of the group.
3347
57ebc3fd
CY
33482009-06-24 Chong Yidong <cyd@stupidchicken.com>
3349
3350 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3351
f084f942
KH
33522009-06-24 Kenichi Handa <handa@m17n.org>
3353
3354 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3355 set for C.
3356 (fontset_font): Record the availability of a font for C both in
3357 the realized fontsets of the current one and the default one.
3358
2f686c87
DN
33592009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3360
3361 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3362 conditional, it is always defined on AIX.
3363
666e158e
MB
33642009-06-23 Miles Bader <miles@gnu.org>
3365
3366 * window.c (Vrecenter_redisplay): New variable.
3367 (syms_of_window): Initialize it.
3368 (Qtty): New extern declaration.
3369 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3370
c6da7cd2
JM
33712009-06-23 Jim Meyering <meyering@redhat.com>
3372
1ac9108a
SM
3373 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3374 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3375 pointer dereferences are guaranteed to be valid.
c6da7cd2 3376
678dca3d
KH
33772009-06-23 Kenichi Handa <handa@m17n.org>
3378
74d75424
KH
3379 * emacs.c (main): Call init_font ().
3380
3381 * font.h (Vfont_log): Extern it.
3382 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3383
3384 * font.c (font_sort_entities, font_list_entities)
3385 (font_matching_entity, font_open_entity)
3386 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3387 (Vfont_log): Delete static.
3388 (font_log_env_checked): Delete this variable.
3389 (font_add_log): Don't check font_log_env_checked.
3390 (font_deferred_log): Check Vfont_log.
3391 (init_font): New function.
3392
678dca3d
KH
3393 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3394
3395 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3396
3397 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3398
3399 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3400
3401 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3402 (face_for_char): Don't call font_deferred_log here.
3403 (font_for_char): Likewise.
3404
8a668709
CY
34052009-06-22 Chong Yidong <cyd@stupidchicken.com>
3406
9a01ee33
CY
3407 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3408 rather than its background_width for drawing the overline and
3409 underline (Bug#489).
3410
3411 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3412 rather than its background_width for drawing the overline and
3413 underline (Bug#489).
ec7c9926
CY
3414 (xg_default_icon_file): New variable.
3415 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3416 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3417
8a668709
CY
3418 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3419 (load_overlay_strings): Remove externs.
3420 (fast_find_position): Function deleted.
3421 (mouse_face_from_buffer_pos): New function, based on
3422 fast_find_position. Correctly handle before-strings,
3423 display-strings, and after-strings (Bug#1220).
3424 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3425
4d4c02d8
CY
34262009-06-21 Chong Yidong <cyd@stupidchicken.com>
3427
1ac9108a 3428 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3429 (move_it_in_display_line_to, move_it_in_display_line_to)
3430 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3431
70243478
CY
34322009-06-21 Chong Yidong <cyd@stupidchicken.com>
3433
3434 * Branch for 23.1.
3435
13087e59
JR
34362009-06-21 Jason Rumney <jasonr@gnu.org>
3437
3438 * w32term.c (keyboard_codepage): New static variable.
3439 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3440 (w32_read_socket) [WM_CHAR]: Use it to decode character
3441 input (bug#3237).
3442 (w32_initialize): Initialize it.
3443 (codepage_for_locale): New function.
3444
4735b74e
KR
34452009-06-20 Ken Raeburn <raeburn@raeburn.org>
3446
3447 * process.c (status_message): Pass Faset index argument as a lisp
3448 object, so as to work with USE_LISP_UNION_TYPE.
3449
0e727afa
YM
34502009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3451
3452 * coding.c (Ffind_coding_systems_region_internal):
3453 Cache checked characters.
3454
cf299835
KH
34552009-06-18 Kenichi Handa <handa@m17n.org>
3456
1ac9108a 3457 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3458
90f20d94
AS
34592009-06-18 Andreas Schwab <aschwab@redhat.com>
3460
3461 * xdisp.c (redisplay_internal): Check that the frame is still
3462 live after redisplay of its windows.
3463 (redisplay_windows): Check that the window is still live.
3464
7f1faf1c
KH
34652009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3466
3467 * coding.c (detect_coding_utf_16): Fix previous change.
3468
cc13543e
KH
34692009-06-16 Kenichi Handa <handa@m17n.org>
3470
3471 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3472 UTF-16 by checking the dispersion of Eth and Oth bytes.
3473
977b85f4
AS
34742009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3475
3476 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3477
66bd43d1
KH
34782009-06-15 Kenichi Handa <handa@m17n.org>
3479
3480 * process.c (status_message): Fix previous change. Be sure to
3481 decode a localized string.
3482
cb5ca9c5
YM
34832009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3484
3485 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3486 add comment explaining why.
3487
ec7709ba 34882009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3489
ec7709ba 3490 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3491
4b7f335c
AR
34922009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3493
3494 * nsfont.m (ns_attribute_value): Remove.
3495 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3496 (ns_has_attribute): Shrink the normal range.
3497 (ns_findfonts): Don't worry about requested spec in determining
3498 need for synthItal.
e41820ee 3499 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3500
73b26103
SZ
35012009-06-14 Seiji Zenitani <zenitani@mac.com>
3502
3503 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3504
5753e4da
KH
35052009-06-11 Kenichi Handa <handa@m17n.org>
3506
3507 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3508 overhang for the static composition case.
3509
3561b671
KH
35102009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3511
5753e4da
KH
3512 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3513 overhang for the automatic composition case.
3514
3561b671
KH
3515 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3516 composition case.
3517
852bbd41
CY
35182009-06-10 Chong Yidong <cyd@stupidchicken.com>
3519
3520 * xdisp.c (get_next_display_element): When handling wrap-prefix
3521 and line-prefix, treat \n as a control character (bug#3502).
3522
9903d1e6
KH
35232009-06-10 Kenichi Handa <handa@m17n.org>
3524
3525 * font.c (font_parse_family_registry): Fix for one-char foundry.
3526 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3527
0bcbaaaa
CY
35282009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3529
3530 * process.c (status_message): Fix handling of multibyte signal
3531 string (Bug#3499).
3532
40aa3f13
JM
35332009-06-09 Jim Meyering <meyering@redhat.com>
3534
1f80c7e2
CY
3535 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3536 color name is missing.
40aa3f13 3537
72d51285
KH
35382009-06-09 Kenichi Handa <handa@m17n.org>
3539
3540 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3541 FROM-CODE and TO-CODE are codepoints of CHARSET.
3542
c1d04d84
AR
35432009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3544
3545 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3546
35472009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3548
3549 Changes to support :script/:lang/:otf in NS font driver.
3550 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3551 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3552 indicate not part of font driver interface, and change callers.
3553 (ns_get_family): Remove pointless null check.
3554 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3555 ns_spec_to_descriptor, ns_descriptor_to_entity.
3556 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3557 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3558 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3559 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3560 (ns_get_req_script, ns_accumulate_script_ranges)
3561 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3562 New functions.
3563 (nsfont_list, nsfont_match): Use ns_findfonts.
3564 (nsfont_open): Use font descriptor instead of traits.
3565 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3566 (dump_glyphstring): Rename to ns_dump_glyphstring.
3567
c7eb9816
AR
3568 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3569
c1d04d84
AR
3570 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3571
3572 * fontset.c (fontset_from_font): Remove NS-specific code.
3573
ec7709ba 35742009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3575
3576 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3577 nonactive windows.
3578
31fd7c5c 35792009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3580
1ac9108a 3581 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3582
68852c13 35832009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3584
3585 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3586
6756cd1d
CY
35872009-06-07 Chong Yidong <cyd@stupidchicken.com>
3588
3589 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3590 account for the overflowing of newlines into the last glyph on the
3591 display line (Bug#3482).
3592
28bf482a
DR
35932009-06-05 David Reitter <david.reitter@gmail.com>
3594
ec7709ba
JB
3595 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3596 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3597 Fns_selection_exists_p, Fns_selection_owner_p.
3598
fdb55376
JR
35992009-06-03 Jason Rumney <jasonr@gnu.org>
3600
3601 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3602 available. (Bug#3379)
3603
05129fbe
KH
36042009-05-29 Kenichi Handa <handa@m17n.org>
3605
1ac9108a
SM
3606 * coding.c (get_translation_table):
3607 Check Venable_character_translation.
05129fbe 3608
ec7709ba 36092009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3610
ec7709ba
JB
3611 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3612 (x_make_frame_visible): Move frame to front rather than calling
15891144 3613 ns_raise_frame().
ec7709ba 3614 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3615 isn't key window.
ec7709ba 3616 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3617 drawRect may be called by NSView even if the frame is hidden.
3618
ec7709ba
JB
3619 * nsfns.m (Fx_create_frame): Follow other ports in
3620 determining visibility; default to t. Ensure async_visible is set.
15891144 3621
21f73755
EZ
36222009-05-23 Eli Zaretskii <eliz@gnu.org>
3623
3624 * dired.c (Ffile_attributes): Doc fix.
3625
34001e41
CY
36262009-05-22 Chong Yidong <cyd@stupidchicken.com>
3627
3628 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3629
46306a17
SM
36302009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3631
3632 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3633 and xfont_scratch_props.
3634 (syms_of_xfont): Do it here instead.
3635 (xfont_find_ccl_program): Delete, unused.
3636 (xfont_open): Delete unused var `i'.
3637
ef6e0694
KH
36382009-05-21 Kenichi Handa <handa@m17n.org>
3639
3640 * fontset.c (Qlatin): Don't make it static.
3641
46306a17
SM
3642 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3643 New functions.
ef6e0694
KH
3644 (xfont_scripts_cache, xfont_scratch_props): New variables.
3645 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3646 (xfont_list_pattern): Argument changed. Callers changed.
3647 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3648 (xfont_list): Don't reject a font spec with :script property.
3649 (xfont_has_char): Fix setting of encoding.
3650 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3651 xfont_scratch_props.
3652
36532009-05-19 Kenichi Handa <handa@m17n.org>
3654
46306a17 3655 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3656 Callers changed.
3657
36582009-05-18 Kenichi Handa <handa@m17n.org>
3659
3660 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3661
ac71ced7
SM
36622009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3663
3664 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3665 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3666
1c6d1051
YM
36672009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3668
3669 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3670 (x_delete_terminal): Dissociate resource database from display and
3671 then call XrmDestroyDatabase before closing display.
3672
9b9b779c
AR
36732009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3674
3675 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3676 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3677 whether selected frame is viable before raising it (based on patch
3678 by David Reitter), and improve commentary.
3679 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3680
cccd42d5
KH
36812009-05-15 Kenichi Handa <handa@m17n.org>
3682
3683 * font.c (Ffont_spec): Check arguments.
3684
337fbd17
CY
36852009-05-14 Chong Yidong <cyd@stupidchicken.com>
3686
3687 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3688 weight when testing attributes (Bug#3282).
3689
47a6002f
JD
36902009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3691
3692 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3693 what we expect to get in the next ConfigureNotify event.
3694
9cb363db
YM
3695 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3696 before Xft one (Bug#1696).
3697
b9126609
CY
36982009-05-07 David Reitter <david.reitter@gmail.com>
3699
3700 * nsfns.m (Fx_display_planes): Compute bitplanes using
3701 NSBitsPerPixelFromDepth (Bug#3207).
3702
27a69fd9
CY
37032009-05-10 Chong Yidong <cyd@stupidchicken.com>
3704
3705 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3706
00f37552
TTN
37072009-05-10 Ulrich Mueller <ulm@gentoo.org>
3708
3709 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3710
2d82a920
DR
37112009-05-07 David Reitter <david.reitter@gmail.com>
3712
ec7709ba
JB
3713 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3714 Respect mouse face background.
2d82a920 3715
46b0d52d
DR
37162009-05-07 David Reitter <david.reitter@gmail.com>
3717
ec7709ba
JB
3718 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3719 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3720 in ns_update_begin and ns_update_end.
3721
ce1b23bb
SM
37222009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3723
5996e1b7
SM
3724 * nsfns.m (ns_get_screen): Rewrite.
3725 Don't presume selected-frame is of type `ns'.
3726
ba98e3a0
SM
3727 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3728 all drivers.
3729
ce1b23bb
SM
3730 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3731
bcda200f
YM
37322009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3733
3734 * keyboard.h (add_user_signal): Fix typo in extern.
3735
3736 * lisp.h (add_user_signal): Remove extern.
3737
3738 * unexelf.c (unexec): Consider a section to precede the .bss section
3739 if its addresses overlap that of .bss.
3740 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3741 instead of dumping process.
3742
864660a2
SM
37432009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3744
3745 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3746
50da4e56
SM
37472009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3748
3749 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3750
51520a1a
DN
37512009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3752
3753 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3754 any statements.
3755
409ea3a1
AS
37562009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3757
59c4c60f
AS
3758 * process.c (read_process_output): Make sure the current buffer is
3759 always restored.
3760
409ea3a1
AS
3761 * coding.c (record_conversion_result): Don't modify
3762 Vlast_code_conversion_error for successful result.
3763 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3764
56f00ed2
KH
37652009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3766
3767 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3768 (load_charset_map): Remove unnecessary code.
56f00ed2 3769
4491c9d2
DR
37702009-04-30 David Reitter <david.reitter@gmail.com>
3771
35f5b128 3772 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3773 through f24.
3774
6970f632
CY
37752009-04-30 Chong Yidong <cyd@stupidchicken.com>
3776
3777 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3778
3779 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3780 face_at_buffer_position.
3781 (face_before_or_after_it_pos, get_next_display_element)
3782 (note_mouse_highlight): Update face_at_buffer_position call.
3783
3784 * term.c (term_mouse_highlight):
3785 * msdos.c (IT_note_mouse_highlight):
3786 * fontset.c (Finternal_char_font):
35f5b128 3787 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3788
3789 * dispextern.h (face_at_buffer_position): Update prototype.
3790
0c616f63
KH
37912009-04-30 Kenichi Handa <handa@m17n.org>
3792
35f5b128 3793 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3794
ad3aaf33
AS
37952009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3796
3797 * callproc.c (Fcall_process): Fix GC protection. Make sure
3798 current buffer is always restored.
3799
c3c963a0
YM
38002009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3801
3802 * atimer.c (init_atimer): Also clear stopped_atimers.
3803
3804 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3805
7e3386cb
YM
3806 * process.c (create_process): Clean up merger residues of
3807 2008-07-17 change.
3808
91f68422
CY
38092009-04-29 Ulrich Mueller <ulm@gentoo.org>
3810
3811 * lread.c (Vread_circle): New variable.
3812 (read1): Disable recursive read if Vread_circle is nil.
3813
24b34550
KH
38142009-04-29 Kenichi Handa <handa@m17n.org>
3815
3816 * fontset.h (set_default_ascii_font): Delete extern.
3817
3818 * fontset.c (set_default_ascii_font): Delete this unused function.
3819
3820 * frame.c (x_set_font): When ARG is a font-object, check if the
3821 font-object matches with the ASCII font-spec of the frame's
9c358bda 3822 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3823
77bf07e1
AS
38242009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3825
3826 * fns.c (Flocale_info): Protect vector from GC during decoding.
3827
3828 * process.c (Fstart_process): Protect argv strings from GC during
3829 encoding.
3830
2c55aacf
AS
38312009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3832
3833 * sysdep.c: Include <ctype.h>.
3834
b892d3c9
DR
38352009-04-27 David Reitter <david.reitter@gmail.com>
3836
35f5b128 3837 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3838 Remove commented-out code.
3839
9d0644c4
JB
38402009-04-26 Johan Bockgård <bojohan@gnu.org>
3841
3842 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3843
b7053016
JR
38442009-04-25 Jason Rumney <jasonr@gnu.org>
3845
3846 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3847
4e8231f3
YM
38482009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3849
3850 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3851 Swap bytes in short integer if fringe bitmap width > 8.
3852
493dcf2c
KH
38532009-04-23 Kenichi Handa <handa@m17n.org>
3854
3855 * xfaces.c (Fx_list_fonts): If a font size is specified in
3856 PATTERN, set it in returned scalable fonts.
3857
401e9e57
CY
38582009-04-22 Chong Yidong <cyd@stupidchicken.com>
3859
708e05dc
CY
3860 * keyboard.c (Fset_input_meta_mode): Doc fix.
3861
3862 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3863
1ac9108a 3864 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3865
3866 * coding.c (Fterminal_coding_system): Doc fix.
3867
3868 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3869 (Fx_display_pixel_height, Fx_display_planes)
3870 (Fx_display_color_cells, Fx_server_max_request_size)
3871 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3872 (Fx_display_mm_height, Fx_display_mm_width)
3873 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3874 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3875 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3876 (check_x_display_info): Handle terminal objects instead of
3877 terminal ids.
3878
401e9e57
CY
3879 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3880 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3881 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3882 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3883
df80c7f0
KH
38842009-04-21 Kenichi Handa <handa@m17n.org>
3885
5a8f12af 3886 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3887 (font_score): Check AVGWIDTH too.
908567ef 3888
df80c7f0
KH
3889 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3890 worst case.
1ac9108a
SM
3891 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3892 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3893
705af33f
JR
38942009-04-19 Jason Rumney <jasonr@gnu.org>
3895
3896 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3897 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3898
3899 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3900 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3901 get_phys_cursor_geometry.
3902
b71ac3dd 3903 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3904 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3905 using get_phys_cursor_geometry.
3906
3907 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3908 correctly calculated.
3909
dc2933eb
JD
39102009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3911
1ac9108a
SM
3912 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3913 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3914 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3915 is deprecated.
3916
973e7849
AS
39172009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3918
3919 * font.c (font_put_frame_data): Use xfree instead of free.
3920
314d66f4
JB
39212009-04-17 Juanma Barranquero <lekktu@gmail.com>
3922
3923 * w32font.c (Qja, Qko): Remove declarations.
3924 (syms_of_w32font): Don't DEFSYM them.
3925
cf702558
CY
39262009-04-17 Chong Yidong <cyd@stupidchicken.com>
3927
3928 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3929
3930 * font.h (Qja, Qko): Extern them.
3931
3932 * ftfont.c (Qja, Qko): Remove declarations.
3933
3934 * xfont.c (Qja, Qko): Remove declarations.
3935
b50504f5
KH
39362009-04-17 Kenichi Handa <handa@m17n.org>
3937
bde25748
KH
3938 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3939 string from a vector to handle Latin-1 characters correctly.
3940
b50504f5
KH
3941 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3942 entity even if the cache hits.
3943
f4646fff
AS
39442009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3945
3946 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3947 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3948
e7deaab0
AS
3949 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3950 * lisp.h: Adjust prototypes.
3951
0a0e7d49
CY
39522009-04-16 Chong Yidong <cyd@stupidchicken.com>
3953
3954 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3955 change (Bug#3003).
3956
3c908a57
KH
39572009-04-16 Kenichi Handa <handa@m17n.org>
3958
1ac9108a 3959 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3960
3961 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3962 adstyle.
3963
3964 * ftfont.c (Qja, Qko): Don't make them static.
3965 (enum ftfont_cache_for): New enum.
3966 (fc_charset_table): Undo the previous change.
3967 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3968 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3969 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3970 non-scarable font, try to get AVERAGE_WIDTH.
3971 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3972 Change ft_face_cache from a list of a hash-table. Don't check
3973 `ja' and `ko' adstyle here.
3974 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3975 FTFONT_CACHE_FOR_CHARET.
3976 (ftfont_get_charset): Undo the previous change.
1ac9108a 3977 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3978 (ftfont_close): Likewise.
3979 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3980
3981 * font.c (font_sort_entites): Change the meaning of the arg
3982 BEST-ONLY. Don't optimize for VEC of lenght 1.
3983 (font_select_entity): Just return the value of font_sort_entites.
3984
3985 * xfaces.c (merge_face_vectors): Reflect font properties in
3986 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3987 font_clear_prop if a face attribute doesn't change.
3988
3c908a57
KH
3989 * charset.h (charset_ksc5601): Extern it.
3990
3991 * charset.c (charset_ksc5601): New variable.
3992 (Fdefine_charset_internal): Set charset_ksc5601.
3993 (init_charset_once): Initialize charset_ksc5601 to -1.
3994
d65859c3
DN
39952009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3996
3997 * fileio.c (history_delete_duplicates): Remove unused declaration.
3998
3999 * callint.c (history_delete_duplicates): New declaration.
4000 (Fcall_interactively): Remove command history duplicates when
4001 history_delete_duplicates is true.
4002
3ba010e5
EZ
40032009-04-14 Eli Zaretskii <eliz@gnu.org>
4004
4005 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4006
06f19b91
KH
40072009-04-14 Kenichi Handa <handa@m17n.org>
4008
4009 * font.c (Ffont_info): Fix docstring. Fix the second element of
4010 the returned value (bug#2949).
4011
2cce8bfc
CY
40122009-04-14 Chong Yidong <cyd@stupidchicken.com>
4013
4014 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4015
d156542d
KH
40162009-04-14 Kenichi Handa <handa@m17n.org>
4017
4018 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4019 encoding charset is ascii_compatible.
4020
4021 * charset.c (Fdefine_charset_internal): Make charset
4022 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4023 code_offset is 0, and covers all ASCII characters.
4024
86fa089e
SM
40252009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4026
4027 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4028 (ns_string_to_pasteboard_internal):
4029 * nsmenu.m (process_dialog):
4030 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4031 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4032 * lisp.h (Fx_load_color_file): Declare.
4033
a8a3728b
KH
40342009-04-13 Kenichi Handa <handa@m17n.org>
4035
1ac9108a 4036 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4037 (font_select_entity): Suppress the code to optimize for the same
4038 kind of fonts.
4039 (font_load_for_lface): Get a font that supports at least ASCII
4040 characters.
4041
4042 * ftfont.c (Qja, Qko): New variables.
4043 (fc_charset_table): Delete uniquifier data for iso8859-1.
4044 (ftfont_get_latin1_charset): New function.
4045 (get_adstyle_property): New function.
4046 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4047 bitmap fonts.
4048 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4049 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4050 `ko' or `ja'.
4051 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4052 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4053 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4054 property.
4055 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4056 (syms_of_ftfont): DEFSYM Qja and Qko.
4057
483670b5
KH
40582009-04-09 Kenichi Handa <handa@m17n.org>
4059
12b55765
KH
4060 * charset.c (map_charset_chars): For a charset of `superset'
4061 method, fix calculation of code range.
4062
483670b5
KH
4063 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4064 from the list of extra properties.
4065 (font_clear_prop): Be sure to delete `:name' font property.
4066
57d3b93b
KH
40672009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4068
b4b2c2ca
YM
4069 * dispnew.c (redraw_overlapping_rows): Fix detection of
4070 overlapping for topmost and bottommost rows.
4071
1ac9108a 4072 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4073
472c3609
JR
40742009-04-06 Jason Rumney <jasonr@gnu.org>
4075
4076 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4077
ab193662
KH
40782009-04-06 Kenichi Handa <handa@m17n.org>
4079
4080 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4081
4082 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4083
0c26f026
KH
40842009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4085
4086 * ftfont.c (ftfont_open): Fix checking of the return value of
4087 FT_Load_Char. Fix setting font->underline_thickness.
4088
e173bbce
CY
40892009-04-04 Chong Yidong <cyd@stupidchicken.com>
4090
4091 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4092 (Fterminal_parameters, Fterminal_parameter)
4093 (Fset_terminal_parameter): In doc string, refer to terminal
4094 objects rather than terminal ids.
4095
693a2698
EZ
40962009-04-04 Eli Zaretskii <eliz@gnu.org>
4097
4098 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4099 ret_lim_data. (Bug#2867)
4100
d5221487
CY
41012009-04-03 Chong Yidong <cyd@stupidchicken.com>
4102
4103 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4104 so they don't get wider than the window, matching 2006-01-23
4105 change to the partner function in xdisp.c (Bug#2800).
4106
223509a3
KH
41072009-04-03 Kenichi Handa <handa@m17n.org>
4108
4109 * print.c (print_object): Make each lowest sub_char_table start a
4110 new line (Bug#2866).
4111
74fcd0b1
KH
41122009-04-02 Kenichi Handa <handa@m17n.org>
4113
4114 * fontset.c (fontset_font): Record no-font when a fontset
4115 explicitly tells not to try another font-specs.
4116
c542407d
SM
41172009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4118
4119 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4120
e3869731
KH
41212009-03-30 Kenichi Handa <handa@m17n.org>
4122
d8d2f142
KH
4123 * fontset.c (fontset_from_font): Specify only registry in a
4124 font-spec for all characters supported by that registry.
4125
e3869731
KH
4126 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4127 even if HAVE_M17N_FLT is not defined.
4128
5da5f805
CY
41292009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4130
4131 * ftfont.c: Conditionalize prototyping and use of
4132 ftfont_variation_glyphs.
4133
ab226c50
SM
41342009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4135
9628fed7
SM
4136 * frame.c (delete_frame): Work around compiler bug.
4137
4138 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4139 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4140 Some more EMACS_INT.
4141 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4142
4143 * xdisp.c (dump_glyph): Fix typo.
4144
ae19ba7c
SM
4145 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4146 (adjust_markers_gap_motion, adjust_markers_for_delete)
4147 (adjust_markers_for_insert, adjust_point)
4148 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4149 (make_gap, copy_text, count_size_as_multibyte, insert)
4150 (insert_and_inherit, insert_before_markers)
4151 (insert_before_markers_and_inherit, insert_1)
4152 (count_combining_before, count_combining_after, insert_1_both)
4153 (insert_from_string, insert_from_string_before_markers)
4154 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4155 (insert_from_buffer_1, adjust_after_replace)
4156 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4157 (replace_range_2, del_range, del_range_1, del_range_byte)
4158 (del_range_both, del_range_2, modify_region)
4159 (prepare_to_modify_buffer, signal_before_change)
4160 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4161 for buffer positions and sizes.
4162 * lisp.h: Adjust prototypes accordingly.
4163
4164 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4165 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4166 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4167
ab226c50
SM
4168 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4169
46dfb8fb
JD
41702009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4171
4172 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4173 lines and columns so we keep the same pixel height and width.
4174
4175 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4176 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4177 (x_handle_net_wm_state): New function to update frame parameter
4178 fullscreen.
4179 (x_term_init): Initialize atoms for _NET_WM_STATE.
4180
4181 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4182
d347e494
SM
41832009-03-27 Kevin Ryde <user42@zip.com.au>
4184
4185 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4186 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4187 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4188 (Fgpm_mouse_stop): Pass that new parameter.
4189 * termhooks.h (close_gpm): Adjust prototype.
4190
84db11d6
SM
41912009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4192
c95a5008
SM
4193 * lisp.h (Fx_focus_frame): Declare.
4194
84db11d6
SM
4195 * callint.c (Fcall_interactively): For '^' just delegate the work to
4196 handle-shift-selection.
4197 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4198
0a1958d6
CY
41992009-03-24 Chong Yidong <cyd@stupidchicken.com>
4200
0bfdff23
CY
4201 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4202
0a1958d6
CY
4203 * data.c (Qinteractive_form): New variable.
4204 (Finteractive_form): Use it.
4205
4206 * eval.c (Fcommandp): Use Qinteractive_form.
4207
58aec0d6
JR
42082009-03-24 Jason Rumney <jasonr@gnu.org>
4209
4210 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4211 Calculate total size precisely. Decode environment variables
4212 before substituting. (Bug#38)
4213
553dd618
KH
42142009-03-24 Kenichi Handa <handa@m17n.org>
4215
4216 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4217 encoding (Bug#2722).
553dd618 4218
c39ea606
JD
42192009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4220
4221 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4222 that gdpy is set.
4223
bc9b2b5e
AM
42242009-03-22 Alan Mackenzie <acm@muc.de>
4225
4226 * callint.c (Finteractive): Clarify the doc string - even
4227 promptless elements need \n separators.
4228
9f995a76
JR
42292009-03-22 Jason Rumney <jasonr@gnu.org>
4230
4231 * w32term.c (syms_of_w32term): Doc fix for
4232 x-use-underline-position-properties.
4233
22749e9a
EZ
42342009-03-21 Eli Zaretskii <eliz@gnu.org>
4235
4236 * w32.c (getpwuid): Change argument type to unsigned.
4237 (struct w32_id): Change type of `rid' member to unsigned.
4238 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4239 argument ID to unsigned. All callers changed.
4240 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4241
e00553bf
EZ
42422009-03-20 Eli Zaretskii <eliz@gnu.org>
4243
4244 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4245 negative, produce a float value.
4246
4247 * dired.c (make_uid, make_gid): New functions.
4248 (Ffile_attributes): Use them to avoid negative UID and GID.
4249
f761d6b6
JB
42502009-03-20 Juanma Barranquero <lekktu@gmail.com>
4251
4252 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4253 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4254 Fix typos in docstrings.
4255
d507f8d7
KH
42562009-03-19 Kenichi Handa <handa@m17n.org>
4257
4258 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4259 changed, use font_load_for_lface to get a new font object.
4260 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4261
4262 * frame.c (x_set_font): Handle the case that ARG is a cons.
4263
c68845e0
GM
42642009-03-19 Glenn Morris <rgm@gnu.org>
4265
4266 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4267
bfa49dd1
CY
42682009-03-19 Chong Yidong <cyd@stupidchicken.com>
4269
4270 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4271
8458d4c1
KH
42722009-03-19 Kenichi Handa <handa@m17n.org>
4273
4274 * charset.c (load_charset_map_from_file): When a mapfile can't be
4275 loaded, signal an error.
4276
78e7d1fe
EZ
42772009-03-18 Eli Zaretskii <eliz@gnu.org>
4278
4279 * dired.c (Ffile_attributes): Make sure UID and GID are always
4280 positive, even if the value is too large for a positive EMACS_INT.
4281 Doc fix.
4282
4283 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4284
5da9fdfa
YM
42852009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4286
4287 * xmenu.c (xdialog_show): Move Fredisplay call ...
4288 (Fx_popup_dialog): ... here.
4289
7519c40d
SM
42902009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4291
4292 * dired.c (file_name_completion): Disable the first optimization just
4293 installed, since it is not implemented correctly.
4294
2cd298e2
SM
42952009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4296
4297 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4298 only if the entry can affect bestmatch.
2cd298e2
SM
4299 Stop the search early, as Ftry_completion already does.
4300
48d37adf
CY
43012009-03-17 Chong Yidong <cyd@stupidchicken.com>
4302
e10c9c93 4303 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4304
9286b16a
CY
43052009-03-15 Chong Yidong <cyd@stupidchicken.com>
4306
4307 * keyboard.c (parse_menu_item): Don't display remappings as menu
4308 equivalent bindings (Bug#788).
4309
f7b146dc
JR
43102009-03-15 Jason Rumney <jasonr@gnu.org>
4311
4312 * w32term.h (WM_EMACS_PAINT): New message.
4313 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4314 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4315 before passing to lisp thread. (Bug#950)
4316
f761d6b6 43172009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4318
d93f9575
CY
4319 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4320 variable as it was never reset.
4321 (ns_term_init): Remove initialization of Lisp-settable defaults
4322 and ns_expand_space.
4323 (-setPanelFromDefaultValues): Remove ns_expand_space.
4324 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4325 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4326 i.e. no additional spacing, similar to Carbon port.
4327
d93f9575
CY
4328 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4329 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4330
305018ec
JD
43312009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4332
4333 * sound.c (alsa_configure): Remove call to deprecated
4334 snd_pcm_sw_params_set_xfer_align.
4335
f761d6b6 43362009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4337
4338 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4339 after clicking in a detached tool bar.
4340 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4341
46e722a9
SM
43422009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4343
348db3dd
SM
4344 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4345 int/Lisp_Object mixup).
46e722a9 4346
a3d16f39
KH
43472009-03-13 Kenichi Handa <handa@m17n.org>
4348
4349 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4350 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4351 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4352 (set_fontset_font): Change ARG to a vector. Handle range_list in
4353 ARG correctly.
4354 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4355 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4356 the above change.
4357 (fontset_from_font): Fix previous change.
fe24f56a 4358 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4359 entry. If FONTSET is the default fontset, don't set the extra
4360 slot of the returning char-table.
4361
b066e6b6
JB
43622009-03-12 Juanma Barranquero <lekktu@gmail.com>
4363
4364 * nsfns.m (Fx_close_connection): Doc fix.
4365 (Fns_do_applescript): Reflow docstring.
4366 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4367 (Fx_display_pixel_width, Fx_display_pixel_height)
4368 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4369 Fix typos in docstrings.
4370 (Fns_set_alpha): Fix typos in error messages.
4371
d472514e 43722009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4373
d472514e 4374 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4375 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4376 were used for such events.
4377
d472514e
JB
4378 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4379 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4380
d472514e 4381 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4382 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4383
fb930676
KH
43842009-03-11 Kenichi Handa <handa@m17n.org>
4385
ff85581a
KH
4386 * font.h (font_open_by_spec): Extern it.
4387
c50b7e98
KH
4388 * font.c (font_open_by_spec): New function.
4389 (font_open_by_name): Use font_open_by_spec.
4390
fb930676
KH
4391 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4392 fontset of the frame.
4393
4394 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4395 modify the default font of frames that use this fontset.
4396 (num_auto_fontsets): New variable.
4397 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4398 name. Be sure to set FONTSET_ASCII to the correct font name.
4399 (update_auto_fontset_alist): New function.
4400
df4e8455
JB
44012009-03-11 Juanma Barranquero <lekktu@gmail.com>
4402
4403 * makefile.w32-in: Update dependencies.
4404
0a375797
AR
44052009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4406
4407 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4408
61313fa3
SM
44092009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4410
4411 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4412
b55103fb
CY
44132009-03-10 Chong Yidong <cyd@stupidchicken.com>
4414
4415 * lread.c (Feval_buffer): Doc fix.
4416
dde2559c
KH
44172009-03-09 Kenichi Handa <handa@m17n.org>
4418
4419 * charset.c (Qfile_name_handler_alist): Extern it.
4420 (load_charset_map_from_file): Temporarily bind
4421 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4422
df4e8455 44232009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4424
47f588bb
GM
4425 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4426 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4427
4ddf94bd
AR
44282009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4429
4c9bdfc2
AR
4430 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4431 (x_set_window_size): Change back to calculated method of setting
4432 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4433 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4434 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4435
fe41ae9e
AR
4436 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4437
4c9bdfc2
AR
4438 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4439 accelerator in parens under GNUstep.
4440
825d0875
KH
44412009-03-06 Kenichi Handa <handa@m17n.org>
4442
4443 These changes are to detect incorrect composition sequence without
f3b3be74 4444 looking ahead the source. (Bug#2370)
825d0875
KH
4445
4446 * coding.h: Include "composite.h".
4447 (enum compisition_state): New enum.
4448 (struct compisition_status): New struct.
4449 (struct iso_2022_spec): New member cmp_status.
4450 (struct emacs_mule_spec): New struct.
4451 (struct coding_system): New members ctext_extended_segment_len and
4452 embedded_utf_8. Change the union member
4453 spec.emacs_mule_full_support to spec.emacs_mule.
4454
4455 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4456 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4457 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4458 (ADD_COMPOSITION_DATA): New arg nbytes.
4459 (emacs_mule_char): New arg cmp_status.
4460 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4461 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4462 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4463 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4464 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4465 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4466 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4467 (EMACS_MULE_COMPOSITION_END): New macro.
4468 (emacs_mule_finish_composition): New function.
4469 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4470 (decode_coding_emacs_mule): Avoid long looking ahead while
4471 handling composition.
4472 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4473 (ENCODE_COMPOSITION_RULE): New macro.
4474 (finish_composition): New function.
4475 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4476 (DECODE_COMPOSITION_START): New implementation.
4477 (DECODE_COMPOSITION_END): Likewise.
4478 (STORE_COMPOSITION_RULE): New macro.
4479 (decode_coding_iso_2022): Avoid long looking ahead while handling
4480 composition, CTEXT extended segment, and embedded UTF-8.
4481 (setup_coding_system): For a coding of type iso-2022, reset
4482 CODING_ISO_EXTSEGMENT_LEN (coding) and
4483 CODING_ISO_EMBEDDED_UTF_8 (coding).
4484 (get_translation): Delete arguments last_block, from_nchars,
4485 to_nchars. Callers changed.
4486 (produce_chars): Don't modify charbuf. Adjusted for the change of
4487 get_translation.
98a326f7 4488 (produce_composition): Adjust for the new annotation sequence.
825d0875 4489 (handle_composition_annotation): Likewise.
98a326f7 4490 (consume_chars): Adjust for the change of get_translation.
825d0875 4491
ccbc4452
AR
44922009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4493
4ddf94bd 4494 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4495
988a7ddb
KH
44962009-03-05 Kenichi Handa <handa@m17n.org>
4497
4498 * font.c (font_select_entity): New function.
4499 (font_find_for_lface): Use font_select_entity to select a font.
4500
4501 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4502 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4503 font with C restriction.
4504
98a326f7 45052009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4506
be1bce46 4507 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4508
10ea2b82
JR
45092009-03-04 Jason Rumney <jasonr@gnu.org>
4510
2c93b248 4511 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4512 characters that have already been read. (Bug#2569)
2c93b248 4513
10ea2b82
JR
4514 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4515 Log an error message if check_image_size failed.
4516 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4517 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4518
71a0c011
EZ
45192009-03-02 Eli Zaretskii <eliz@gnu.org>
4520
4521 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4522 when decoding process output.
4523
2f63bba8
RS
45242009-03-01 Richard M Stallman <rms@gnu.org>
4525
4526 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4527
4528 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4529
0a9564cb
EZ
45302009-02-28 Eli Zaretskii <eliz@gnu.org>
4531
4532 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4533 (decode_coding_emacs_mule, decode_coding_iso_2022)
4534 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4535 (decode_coding_raw_text, decode_coding_charset)
4536 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4537 Honor inhibit-eol-conversion. (Bug #2186)
4538
449148b3
JR
45392009-02-28 Jason Rumney <jasonr@gnu.org>
4540
4541 * coding.c (detect_coding_charset): If not checking latin extra,
4542 fail on characters between 0x80 and 0xA0. (Bug#2354)
4543
a4aee864
EZ
45442009-02-28 Eli Zaretskii <eliz@gnu.org>
4545
4546 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4547 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4548
d88bee5a
GM
45492009-02-27 Glenn Morris <rgm@gnu.org>
4550
4551 * callint.c (Finteractive): Doc fix.
4552
a808f22d
KH
45532009-02-27 Kenichi Handa <handa@m17n.org>
4554
4555 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4556
caf8d60c
CY
45572009-02-27 Chong Yidong <cyd@stupidchicken.com>
4558
4559 * font.c (font_style_to_value): Set value for unknown symbols to
4560 100 instead of 255.
b61137ea
CY
4561 (weight_table, slant_table, width_table): Treat "unspecified" as
4562 the default value.
caf8d60c 4563
1a0de25c
JB
45642009-02-26 Juanma Barranquero <lekktu@gmail.com>
4565
4566 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4567
8fc45744
JB
45682009-02-25 Juanma Barranquero <lekktu@gmail.com>
4569
107bd7d1
JB
4570 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4571 error as soon as a recursive load is detected.
8fc45744 4572
f097e223
AR
45732009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4574
4575 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4576 before caching.
4577
8810a12f
KH
45782009-02-24 Kenichi Handa <handa@m17n.org>
4579
4580 * fontset.c (fontset_find_font): Fix the condition for checking
4581 unavailable font.
4582
2c7d1565
GM
45832009-02-24 Glenn Morris <rgm@gnu.org>
4584
4585 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4586 whitespace that confuses documentation.
4587
a20878b6
MB
45882009-02-23 Miles Bader <miles@gnu.org>
4589
4590 * process.c (Flist_system_processes, Fprocess_attributes)
4591 (syms_of_process): Rename `system-process-attributes' to
4592 `process-attributes'.
4593
b3b58c01
AS
45942009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4595
1b3b981b
AS
4596 * coding.h (struct coding_system): Make safe_charsets a pointer to
4597 unsigned char.
4598 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4599 being 255.
4600 (SAFE_CHARSET_P): Likewise.
4601 (setup_iso_safe_charsets): Properly setup safe_charsets.
4602 (Fdefine_coding_system_internal): Likewise.
4603 (setup_coding_system): Likewise. Remove unneeded casts.
4604 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4605 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4606 unneeded casts.
4607
b3b58c01
AS
4608 * insdel.c (del_range_2): Don't modify gap contents when called
4609 from decode_coding_object. (Bug#1809)
4610
0b6f228c
CY
46112009-02-21 Chong Yidong <cyd@stupidchicken.com>
4612
4613 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4614 Qfont_object.
4615 (Ftype_of): Recognize font objects.
4616
4617 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4618
4619 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4620 moved to data.c.
4621
52f8870b
AR
46222009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4623
4624 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4625 async_iconified. Based on a patch by Christian Lynbech
4626 <christian.lynbech@tieto.com>.
4627 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4628
7087d5e9
GM
46292009-02-20 Glenn Morris <rgm@gnu.org>
4630
4631 * syntax.c (Fskip_chars_forward): Fix doc typo.
4632
41d2ceef
CY
46332009-02-20 Chong Yidong <cyd@stupidchicken.com>
4634
4635 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4636
1a3b7ca6
CY
46372009-02-19 Chong Yidong <cyd@stupidchicken.com>
4638
4639 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4640
73cce38d
KH
46412009-02-19 Kenichi Handa <handa@m17n.org>
4642
4643 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4644 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4645
a51092ee
DN
46462009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4647
4648 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4649
c423ecca
KH
46502009-02-18 Kenichi Handa <handa@m17n.org>
4651
4652 * font.c (font_check_otf_features): Fix handling of `nil' element.
4653 (Ffont_spec): Describe :lang and :otf in the docstring.
4654
4c1958f4
AS
46552009-02-16 Andreas Schwab <schwab@suse.de>
4656
4657 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4658 string.
4659
5704f39a
KH
46602009-02-16 Kenichi Handa <handa@m17n.org>
4661
4662 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4663 (Bug#1723)
5704f39a 4664
8f0085aa
CY
46652009-02-14 Chong Yidong <cyd@stupidchicken.com>
4666
a057d86a 4667 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4668
4669 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4670 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4671
aff01dd9
EZ
46722009-02-14 Eli Zaretskii <eliz@gnu.org>
4673
4674 * msdos.c (MAX_SCREEN_BUF): New macro.
4675 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4676 Encode the entire run of glyphs sharing the same face, instead of
4677 doing that one glyph at a time (fixes a bug with displaying
4678 double-size characters).
4679
ba301db3
AR
46802009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4681
4682 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4683
4684 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4685 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4686 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4687
4688 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4689 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4690
51d861de
SM
46912009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4692
ac146f82 4693 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4694 invisible areas.
4695
7fed8996
JR
46962009-02-12 Jason Rumney <jasonr@gnu.org>
4697
631ea4fb
JR
4698 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4699 (add_font_entity_to_list): Call check_face_name even when family
4700 is unspecified.
4701
cb4a3e42
JR
4702 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4703 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4704 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4705
7fed8996 4706 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4707 raster fonts. (Bug#2219)
7fed8996 4708
895416e3
KH
47092009-02-12 Kenichi Handa <handa@m17n.org>
4710
4711 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4712 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4713 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4714 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4715 (find_automatic_composition): While looking forward and backward,
4716 check static composition. Fix where to stop looking forward.
4717 (composition_adjust_point): Fix checking of static composition.
4718 (Fcomposition_get_gstring): Pay attention to
1dacf998 4719 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4720
4721 * lisp.h (fast_looking_at): Extern it.
4722
4723 * search.c (fast_looking_at): New function.
4724
51d861de 4725 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4726 <struct glyph>.u.cmp.to.
4727 (append_composite_glyph): Likewise.
4728
51d861de 4729 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4730 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4731 composition.
51d861de 4732 (append_composite_glyph): Adjust for the change of
895416e3
KH
4733 <strcut glyph>.u.cmp.to.
4734
8510724d
JB
47352009-02-11 Juanma Barranquero <lekktu@gmail.com>
4736
4737 * casetab.c (init_casetab_once):
4738 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4739 * font.c (font_update_lface):
4740 * fontset.c (Fnew_fontset):
4741 * ftfont.c (ftfont_drive_otf):
4742 * xfont.c (xfont_open):
4743 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4744
294fa707
SM
47452009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4746
4747 * fileio.c (Fwrite_region): !NILP -> CONSP.
4748
b5bfebec
AS
47492009-02-10 Andreas Schwab <schwab@suse.de>
4750
4751 * process.c (send_process): Properly relocate pointer into data
adab88bd 4752 when using encoded data. (Bug#2272)
b5bfebec 4753
cb84a2be
KH
47542009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4755
4756 * coding.c (detect_coding_charset): Fix previous change.
4757
89e09428
JR
47582009-02-08 Jason Rumney <jasonr@gnu.org>
4759
4760 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4761 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4762
4470a277
AS
47632009-02-07 Andreas Schwab <schwab@suse.de>
4764
4765 * unexelf.c (unexec): Fix error message.
4766
3175b12a
AR
47672009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4768
4769 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4770 when modal window is active. (Bug #2152)
3175b12a
AR
4771 (applicationShouldTerminate:): Remove now-unneeded while loop
4772 around NSRunAlertPanel.
4773
4774 * nsmenu.m (popupSession): New file-global variable.
4775 (pop_down_menu): End the popupSession before closing dialog.
4776 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4777 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4778 don't query NSApp for events (just sleep instead).
4779
8434d0b8
EZ
47802009-02-07 Eli Zaretskii <eliz@gnu.org>
4781
51d861de
SM
4782 * coding.c (syms_of_coding) <translation-table-for-input>:
4783 Modify doc string to discourage use for character code unification.
8434d0b8 4784
aa82edfd
CY
47852009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4786
4787 * atimer.c (run_timers): Update pending_atimers.
4788
2d283c7c
CY
47892009-02-06 Chong Yidong <cyd@stupidchicken.com>
4790
eb306cab
CY
4791 * image.c (svg_load_image): Fix last change.
4792
2d283c7c
CY
4793 * xfns.c (Fx_create_frame): Signal an error if no font is
4794 found (Bug#2147).
4795
4d8e170e
JB
47962009-02-05 Juanma Barranquero <lekktu@gmail.com>
4797
4798 * character.c (syms_of_character) <script-representative-chars>:
4799 Fix typo in docstring.
4800
c96169a0
AR
48012009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4802
4803 * nsmenu.m (pop_down_menu): New function.
4804 (ns_popup_dialog): Call it on unwind.
4805 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4806 call timer_check() (Bug#2154).
4807 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4808 handling_signal is set.
4809 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4810
31fd7c5c 4811 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4812
4813 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4814
4815 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4816
51d861de
SM
4817 * keyboard.c (poll_for_input_1, handle_async_input):
4818 Set handling_signal under HAVE_NS.
c96169a0 4819
aacd8ba1
GM
48202009-02-04 Glenn Morris <rgm@gnu.org>
4821
4822 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4823
4cb75c4b
KH
48242009-02-04 Kenichi Handa <handa@m17n.org>
4825
4826 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4827
4828 * charset.c (Fchar_charset): New optional arg restriction.
4829
4830 * coding.h (coding_system_charset_list): Extern it.
4831
4832 * coding.c (coding_system_charset_list): New function.
4833
4834 * composite.c: Include coding.h and termhooks.h.
4835 (composition_gstring_p): Fix for the terminal case.
4836 (composition_gstring_width): Likewise.
4837 (fill_gstring_body): Likewise.
4838 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4839 the frame.
4840 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4841 is within a composition.
867d4bb3 4842 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4843
4844 * term.c (encode_terminal_code): Fix handling of composition.
4845 (produce_composite_glyph): For static composition, get pixel_width
4846 from struct composition.
4847
826ba17e
AS
48482009-02-02 Andreas Schwab <schwab@suse.de>
4849
4850 * unexelf.c (unexec): Handle unaligned bss offset.
4851
8ad093db
AR
48522009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4853
4854 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4855 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4856
8ad093db
AR
4857 * keyboard.c (handle_interrupt): Don't call
4858 quit_throw_to_read_char() under NS.
d0a76a6e 4859
8ad093db
AR
4860 * blockinput.h: Remove NS-specific code.
4861
4d18a7a2
DN
48622009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4863
db878925
DN
4864 * dispnew.c (window_change_signal): Don't try to get the size of a
4865 suspended tty frame.
4866 * term.c (Fresume_tty): Resize if the size has changed while the
4867 tty was suspended.
4868
4d18a7a2
DN
4869 * alloc.c (mark_stack): Properly conditionalize previous change.
4870
8984df7c
JB
48712009-01-30 Juanma Barranquero <lekktu@gmail.com>
4872
4873 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4874 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4875 Remove; this code is not used on Windows.
4876
75f4f1ac
EZ
48772009-01-30 Eli Zaretskii <eliz@gnu.org>
4878
4879 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4880 EOLs that also has stray ^M characters.
4881
07a1e794
JB
48822009-01-30 Juanma Barranquero <lekktu@gmail.com>
4883
4884 * atimer.c (run_timers, alarm_signal_handler):
4885 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4886 * w32inevt.c (w32_console_read_socket):
4887 * w32term.c (w32_read_socket):
4888 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4889
a8b11cc9
CY
48902009-01-30 Chong Yidong <cyd@stupidchicken.com>
4891
4892 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4893 Initialize it as a relative filename pattern.
4894 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4895 (Fcall_process_region): Simplify temp file creation using
4896 temporary-file-directory.
4897
c279587b
EZ
48982009-01-29 Eli Zaretskii <eliz@gnu.org>
4899
4900 * msdos.c: Rename pending_signals to msdos_pending_signals.
4901 (sig_suspender, sigprocmask): Adjust.
4902
a8fe3242
CY
49032009-01-29 Chong Yidong <cyd@stupidchicken.com>
4904
4905 * keyboard.c (pending_signals): New var.
4906 (poll_for_input, input_available_signal, init_keyboard): Set it.
4907 (process_pending_signals): New function.
4908
4909 * lisp.h (QUIT): Check pending_signals instead of
4910 interrupt_input_pending. Use process_pending_signals.
4911
51d861de 4912 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4913
51d861de 4914 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4915
4916 * sysdep.c (emacs_write): Use process_pending_signals.
4917
4918 * xterm.c (XTread_socket): Update pending_signals.
4919
4920 * w32term.c (w32_read_socket): Update pending_signals.
4921
4922 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4923
6570a1c4
KH
49242009-01-29 Kenichi Handa <handa@m17n.org>
4925
4926 * xftfont.c (xftfont_has_char): New function.
4927 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4928
d72a4afa
AR
49292009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4930
4931 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4932 under GNUstep.
4933 (ns_query_color): New declaration.
4934
4935 * nsterm.m (ns_confirm_quit): New variable.
4936 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4937 (EmacsApp-applicationShouldTerminate:): Use it.
4938 (EmacsPrefsController): Let user set it.
4939 (ns_query_color): New function.
4940 (ns_defined_color): Use it.
4941 (ns_initialize): Drop.
4942 (ns_term_init): Add two lines from ns_initialize(), and set
4943 input_interrupt_mode to nil.
4944
4945 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4946 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4947
9fe78804
KH
49482009-01-28 Kenichi Handa <handa@m17n.org>
4949
4950 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4951 (fontset_get_font_group): Remember that no font-group is specified
4952 for C.
9fe78804 4953
fa57de36
CY
49542009-01-27 Chong Yidong <cyd@stupidchicken.com>
4955
930600e9
CY
4956 * fns.c (concat): Check for string overflow (bug#1787).
4957
fa57de36
CY
4958 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4959 Quadruple undo limits (bug#1501).
4960
7179ce7b
KH
49612009-01-27 Kenichi Handa <handa@m17n.org>
4962
4963 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4964 directly use GT_Get_Char_index.
4965
4966 * xftfont.c (struct xftfont_info): New member `index'.
4967
4968 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4969 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4970
5be8fcc0
CY
49712009-01-26 Kenichi Handa <handa@m17n.org>
4972
4973 * fontset.c (fontset_find_font): Fix handling of non-cons return
4974 value of fontset_get_font_group.
4975 (fontset_font): Revert last change.
4976
19ae3e61
JR
49772009-01-26 Jason Rumney <jasonr@gnu.org>
4978
4979 * w32font.c (w32font_list_internal): Return quickly if registry is
4980 unknown. Simplify final return.
4981 (add_font_entity_to_list): Break complex logic down into more
4982 manageable chunks. Move unknown registry check to
4983 w32font_list_internal.
4984
8612b71a
AR
49852009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4986
4987 Changes to remove Feval calls from GUI under NS.
4988
d8038940
JB
4989 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4990 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4991 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4992
4993 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4994 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4995 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4996 instead of NON_ASCII_KEYSTROKE_EVENT.
4997 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4998 (EmacsApp-applicationShouldTerminate:): Query user.
4999 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5000 instead of Feval.
5001
5002 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5003
5004 * keyboard.c (kbd_buffer_get_event): Check for it.
5005 (keys_of_keyboard): Define lispy keys for
5006 ns-put/unput-working-text.
5007
5008 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5009 versions.
5010 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5011
6288ae55
CY
50122009-01-25 Chong Yidong <cyd@stupidchicken.com>
5013
5014 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5015 setting current_buffer directly. (Bug#2044)
6288ae55 5016
289e7f8f
CY
50172009-01-24 Chong Yidong <cyd@stupidchicken.com>
5018
5ce87308 5019 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5020 any work. (Bug#1952, bug#1990).
5ce87308 5021
64cc3cf6 5022 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5023
b3243e6f
AR
50242009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5025
5026 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5027 (ns_no_defaults): New declaration.
5028 (main): Use it.
e0d2e69a 5029
d900b2af 5030 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5031
d900b2af 5032 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5033
d900b2af
AR
5034 * nsterm.m (ns_no_defaults): New variable.
5035 (ns_initialize): Don't read defaults when ns_no_defaults.
5036 (EmacsView-readSelectionFromPasteboard:)
5037 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5038 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5039 (ns_dumpglyphs_stretch): New function.
5040 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5041 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5042
e0d2e69a
AR
5043 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5044
3ac71f5d
CY
50452009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5046
5047 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5048 call for Sparc64.
5049
3fe53a83
AR
50502009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5051
5052 * nsfns.m:
5053 * nsgui.h:
5054 * nsmenu.m:
5055 * nsselect.m:
5056 * nsterm.h:
5057 * nsterm.m: Remove '23' comments that indicated code added during
5058 update from emacs-20 -> emacs-23.
5059
10f87c6f 50602009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5061
5062 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5063 ns_alternate_modifier. (Bug#1217)
a3b53a85 5064
c7cef62d
AR
5065 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5066 Display all shortcuts, including those w/o super modifier.
5067
575fb8bd
AR
5068 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5069
918b848b
CY
50702009-01-22 Chong Yidong <cyd@stupidchicken.com>
5071
5072 * fileio.c (Vwrite_region_post_annotation_function)
5073 (Vwrite_region_annotation_buffers): New vars.
5074 (build_annotations_unwind): Just reset
5075 Vwrite_region_annotation_buffers.
5076 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5077 Call write-region-post-annotation-function.
5078 (build_annotations): Add to Vwrite_region_annotation_buffers if
5079 buffer changes.
5080
a39e2539
AR
50812009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5082
5083 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5084 Tiger.
51d861de
SM
5085 * nsfns.m (ns_do_applescript):
5086 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5087
35ed44db
AR
50882009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5089
5090 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5091
cbe0b5bf
AR
50922009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5093
5094 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5095
6049d3a0
AR
5096 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5097
5098 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5099 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5100 handle Ctrl-tab. (Bug#1841)
5101 (ns_get_color): Use unsigned long long for scanned hex string value.
5102 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5103 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5104 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5105 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5106 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5107 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5108 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5109
d3810c21 5110 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5111 DPI. (Bug#1316)
d3810c21
AR
5112 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5113 values in onTiger section.
4c7077c3 5114
e301e634
CY
51152009-01-19 Chong Yidong <cyd@stupidchicken.com>
5116
7f82490b
CY
5117 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5118 Check return value of font_spec_from_name.
64cc3cf6 5119 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5120
5121 * font.c (font_spec_from_name): Return Qnil if font name could not
5122 be parsed.
5123 (font_parse_name): Treat a `?' character as part of an XLFD.
5124
e301e634
CY
5125 * fns.c (Fsubstring): Doc fix.
5126
1c0db158
KH
51272009-01-19 Kenichi Handa <handa@m17n.org>
5128
51d861de 5129 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5130 (ftfont_list): Likewise.
5131
acf20901
JB
51322009-01-18 Juanma Barranquero <lekktu@gmail.com>
5133
fff4e459
JB
5134 * dbusbind.c (Fdbus_register_signal):
5135 * process.c (conv_sockaddr_to_lisp):
5136 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5137
acf20901
JB
5138 * callproc.c (Fgetenv_internal): Doc fix.
5139
e7abcdfb
CY
51402009-01-16 Chong Yidong <cyd@stupidchicken.com>
5141
5142 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5143 it is not even used.
5144
b60861e6
GM
51452009-01-16 Glenn Morris <rgm@gnu.org>
5146
5147 * font.c (Ffont_variation_glyphs): Silence compiler.
5148
8db52afe
JB
51492009-01-15 Juanma Barranquero <lekktu@gmail.com>
5150
5151 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5152 Reported by David Robinow <drobinow@gmail.com>.
5153
4cddb209
KH
51542009-01-15 Kenichi Handa <handa@m17n.org>
5155
51d861de 5156 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5157
f247f67b
JR
51582009-01-14 Jason Rumney <jasonr@gnu.org>
5159
5160 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5161 never a fontset. (Bug#1562)
f247f67b 5162
f56a4450
KH
51632009-01-14 Kenichi Handa <handa@m17n.org>
5164
5165 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5166 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5167
4e99855e
CY
51682009-01-13 Chong Yidong <cyd@stupidchicken.com>
5169
5170 * font.c (font_clear_prop): If clearing the family, clear the font
5171 width index too.
5172
fff4e459 5173 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5174
24f01470
JB
51752009-01-12 Juanma Barranquero <lekktu@gmail.com>
5176
5177 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5178 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5179 functions, use sizeof.
5180
a41240a3
MR
51812009-01-12 Martin Rudalics <rudalics@gmx.at>
5182
5183 * keyboard.c (read_char): Fix case where last_nonmenu_event
5184 returned a bad value with submenus. (Bug#447)
5185
944636b8
CY
51862009-01-12 Chong Yidong <cyd@stupidchicken.com>
5187
5188 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5189 family, clear the font width index too.
5190
0dad7c6f
JR
51912009-01-11 Jason Rumney <jasonr@gnu.org>
5192
5193 * keyboard.c (cmd_error_internal): Exit when errors occur before
5194 frame creation and not in daemon mode. (Bug#1836)
5195
7c2363af
CY
51962009-01-10 Chong Yidong <cyd@stupidchicken.com>
5197
5198 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5199 of a display vector, backtrack.
5200 (try_window_reusing_current_matrix): Check glyph type before
5201 referencing charpos member.
5202
97b1b294
EZ
52032009-01-10 Eli Zaretskii <eliz@gnu.org>
5204
5205 Fix Bug #876:
5206
5207 * coding.c (inhibit_null_byte_detection): New variable.
5208 (detect_coding, detect_coding_system): Don't pay attention to null
5209 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5210 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5211 <inhibit-iso-escape-detection>: Doc fix.
5212
4624b6e3
JR
52132009-01-09 Jason Rumney <jasonr@gnu.org>
5214
5215 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5216 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5217 Only report Unicode Plane 2 fonts as unicode-sip.
5218
323b840c
CY
52192009-01-09 Chong Yidong <cyd@stupidchicken.com>
5220
51d861de
SM
5221 * xfaces.c (Fx_font_family_list): Delete function.
5222 Move compatibility version to faces.el.
323b840c 5223
51d861de 5224 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5225
eba7400d
MR
52262009-01-09 Martin Rudalics <rudalics@gmx.at>
5227
5228 * frame.c (x_set_frame_parameters): Remember requested value for
5229 fullscreen before it's reset by the parameter handler.
5230
4b09796d
GM
52312009-01-09 Glenn Morris <rgm@gnu.org>
5232
5233 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5234 (last_command_event): ... and update all users.
4b09796d
GM
5235 (last_input_char): For clarity, rename to...
5236 (last_input_event): ... and update all users.
5237 (last-command-char, last-input-char): Move to subr.el as aliases.
5238 * cmds.c, commands.h: Update for last_command_char rename.
5239
14ccea62
CY
52402009-01-08 Chong Yidong <cyd@stupidchicken.com>
5241
51d861de 5242 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5243
5f004711
JR
52442009-01-08 Jason Rumney <jasonr@gnu.org>
5245
5246 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5247 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5248 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5249 Don't declare.
fff4e459 5250 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5251 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5252
b71f6f73
KH
52532009-01-07 Kenichi Handa <handa@m17n.org>
5254
50b06221 5255 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5256 remember the coding system used for decoding in
50b06221
KH
5257 coding_system (Bug#1039).
5258
b71f6f73 5259 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5260 breaking the loop. (Bug#870)
b71f6f73
KH
5261 (decode_coding_utf_16, decode_coding_emacs_mule)
5262 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5263 (decode_coding_charset): Likewise.
5264
56f668f7
MR
52652009-01-05 Martin Rudalics <rudalics@gmx.at>
5266
5267 * frame.c (x_set_frame_parameters): Make sure height (width) get
5268 applied when fullwidth (fullheight) is set. (Bug#1522)
5269
5da9424d
JB
52702009-01-04 Juanma Barranquero <lekktu@gmail.com>
5271
5272 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5273 (utc_base): Declare as ULONGLONG, not long double.
5274 (convert_time_raw): Delete.
5275 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5276 (initialize_utc_base): New function.
5277 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5278 (convert_from_time_t): Use initialize_utc_base; compute result with
5279 64-bit arithmetic.
5280 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5281
c4605e09
EZ
52822009-01-03 Eli Zaretskii <eliz@gnu.org>
5283
9acef61c 5284 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5285 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5286 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5287 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5288 [!subprocesses]: Define.
5289 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5290 (Flist_system_processes, Fsystem_process_attributes)
5291 [!subprocesses]: Call list_system_processes and
5292 system_process_attributes instead of returning Qnil.
5293
9acef61c
JB
5294 * dosfns.c (system_process_attributes, list_system_processes):
5295 New functions.
c4605e09
EZ
5296
5297 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5298
5299 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5300 Don't use the default (no-op) implementation.
5301
8b7d0a16
JR
53022009-01-03 Jason Rumney <jasonr@gnu.org>
5303
a6d46bc1
JR
5304 * keyboard.c (parse_modifiers_uncached): Wheel events are
5305 clicks (bug#687).
5306
8b7d0a16
JR
5307 * w32term.c (x_query_colors, x_query_color): New functions.
5308
5309 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5310 (svg_load_image): Cast returned pointers from dynamically loaded
5311 functions. Eliminate W32 specific code.
5312
bfe11752
DN
53132009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5314
89e2438a
DN
5315 * nsfns.m (x_set_foreground_color, x_set_background_color)
5316 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5317 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5318 x_ prefix instead of ns_. Update references.
5319 (syms_of_nsfns): Add a FIXME comment.
5320
5321 * nsterm.m (x_set_cursor_type): New prototype.
5322 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5323
bfe11752
DN
5324 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5325 for Solaris instead of incorrectly providing Qutime and Qcutime.
5326
031da700
EZ
53272009-01-02 Eli Zaretskii <eliz@gnu.org>
5328
5329 * w32.c (process_times): Compute sum of utime and stime.
5330 (system_process_attributes): Add Qtime to the alist.
5331
5332 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5333 and add them to the alist.
5334
5335 * process.c (top level) <Qtime, Qctime>: New variables.
5336 (syms_of_process): staticpro them.
5337 (Fsystem_process_attributes): Add their documentation to the doc
5338 string.
5339
5340 * process.h: Declare Qtime and Qctime.
5341
df23bf08
JR
53422009-01-02 Jason Rumney <jasonr@gnu.org>
5343
9acef61c 5344 * image.c (Qgobject): New symbol.
df23bf08
JR
5345 (syms_of_image): Initialize it.
5346 (init_svg_functions): Load some functions from gobject library.
5347
5bbdf7aa
DN
53482009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5349
5350 * frame.c (make_terminal_frame): Remove redundant code and useless
5351 block.
5352
63136da6
AS
53532009-01-01 Andreas Schwab <schwab@suse.de>
5354
5355 * process.c (conv_sockaddr_to_lisp): Add workaround for
5356 getsockname bug on BSD.
5357
9ef69046
CY
53582009-01-01 Chong Yidong <cyd@stupidchicken.com>
5359
d6fafbe0
CY
5360 * xfns.c (x_create_tip_frame): Set border width of the X window.
5361
51d861de 5362 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5363
f9c34147
JR
53642009-01-01 Jason Rumney <jasonr@gnu.org>
5365
9acef61c 5366 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5367 Don't block input, as per earlier xterm.c changes.
5368
f5497e45
AR
53692008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5370
5371 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5372 (ns_appkit_version_int): New function.
5373 (x-server-version): Use ns_appkit_version_int and follow 21+
5374 convention of returning 3 integers.
5375
c19cab20
KH
53762008-12-30 Kenichi Handa <handa@m17n.org>
5377
5378 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5379 (CHAR_SURROGATE_PAIR_P): New macro.
5380
5381 * font.h (struct font_driver): New member get_variation_glyphs.
5382
9acef61c 5383 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5384 (Ffont_variation_glyphs): New function.
5385 (syms_of_font): Defsubr it.
5386
5387 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5388 ftfont_variation_glyphs.
5389 (setup_otf_gstring): New function.
5390 (ftfont_drive_otf): Use it.
5391 (ftfont_shape_by_flt): Handle variation selector.
5392 (ftfont_variation_glyphs): New function.
5393
28cd591f
MR
53942008-12-30 Martin Rudalics <rudalics@gmx.at>
5395
5396 * frame.c (Vemacs_iconified): Remove.
5397
7f714baf
JR
53982008-12-30 Jason Rumney <jasonr@gnu.org>
5399
5400 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5401 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5402
9d2d22ab
CY
54032008-12-30 Chong Yidong <cyd@stupidchicken.com>
5404
5405 * indent.c (Fvertical_motion): Don't advance iterator if we have
5406 reseated to the desired position.
5407
5408 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5409 checking for pos match.
5410
545312c2
KH
54112008-12-30 Kenichi Handa <handa@m17n.org>
5412
1ede3eb6
KH
5413 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5414 just get the low 8-bit of the code.
5415
545312c2
KH
5416 * font.c (font_intern_prop): Validate str as multibyte.
5417
bd7bbf29
DN
54182008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5419
31e0750e
DN
5420 * dispextern.h (struct face): Move lface and hash from the middle
5421 of bitfields.
5422
bd7bbf29
DN
5423 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5424
b5672e7c
DN
54252008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5426
5427 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5428 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5429 instead of intervals.h.
5430
d704470f
AS
54312008-12-26 Andreas Schwab <schwab@suse.de>
5432
5433 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5434 cons.
5435
54b33868
MR
54362008-12-26 Martin Rudalics <rudalics@gmx.at>
5437
5438 * textprop.c (Qminibuffer_prompt): New variable.
5439 (syms_of_textprop): Initialize it.
5440 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5441 in minibuffer-prompt face. (Bug#1662)
5442
40b615d6
JR
54432008-12-25 Jason Rumney <jasonr@gnu.org>
5444
5445 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5446
baae5c2d
JR
54472008-12-24 Jason Rumney <jasonr@gnu.org>
5448
5449 * ralloc.c (r_alloc_reset_variable): New function.
5450
5451 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5452 record of what points where. (Bug#716)
baae5c2d 5453
a9051c88
DN
54542008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5455
5456 * minibuf.c (read_minibuf): Follow the non-interactive case when
5457 running as a daemon, before detaching.
5458
8b146312
AS
54592008-12-22 Andreas Schwab <schwab@suse.de>
5460
5461 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5462 * gtkutil.c (free_widget_value): Use xfree instead of free.
5463
56f2de10
MR
54642008-12-22 Martin Rudalics <rudalics@gmx.at>
5465
5466 * frame.c (delete_frame): New function derived from
5467 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5468 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5469 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5470 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5471 * frame.h: Extern delete_frame.
5472 * window.c (window_loop):
5473 * terminal.c (delete_terminal):
5474 * xterm.c (x_connection_closed):
5475 * xfns.c (Fx_hide_tip):
9acef61c 5476 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5477
1fc200d6
JR
54782008-12-21 Jason Rumney <jasonr@gnu.org>
5479
5480 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5481 when character maps to .notdef character.
5482
5e252df2
SM
54832008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5484
5485 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5486
99b72cc4
JR
54872008-12-20 Jason Rumney <jasonr@gnu.org>
5488
5489 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5490 a graphical frame on Windows. (Bug#1325)
99b72cc4 5491
acc49a52
JD
54922008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5493
5494 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5495
6ea15123
CY
54962008-12-20 Chong Yidong <cyd@stupidchicken.com>
5497
5498 * minibuf.c (Fread_buffer): Doc fix.
5499
b2dab6c8
JR
55002008-12-20 Jason Rumney <jasonr@gnu.org>
5501
54ea0c87 5502 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5503 server name in UNC paths. (Bug#719)
54ea0c87 5504
b2dab6c8 5505 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5506 charbuf. (Bug#1035)
b2dab6c8 5507
6d1921be
DN
55082008-12-19 Daniel Engeler <engeler@gmail.com>
5509
5510 * sysdep.c (serial_configure): Fix typo.
5511
53934c98
DN
55122008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5513
5514 * sysdep.c: Include alloca.h.
f4f634e8
DN
5515 (system_process_attributes): Add implementation for Solaris.
5516
5517 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5518
06e111a6
DN
55192008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5520
5521 Reorganize implementation of Flist_system_processes and
5522 Fsystem_process_attributes. No functional changes.
5523 * process.c: Don't #include pwd.h, grp.h and limits.h.
5524 (Flist_system_processes): Just call list_system_processes.
5525 (Fsystem_process_attributes): Just call system_process_attributes.
5526 (procfs_list_system_processes, time_from_jiffies)
5527 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5528 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5529
5530 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5531 (list_system_processes): Rename from
5532 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5533 Provide a do nothing implementation.
5534 (system_process_attributes): Rename from
5535 procfs_list_system_processes.
5536 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5537 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5538
5539 * w32.c (list_system_processes): Rename from
5540 w32_list_system_processes.
5541 (system_process_attributes): Rename from
5542 w32_system_process_attributes.
5543
5544 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5545
5546 * process.h (w32_list_system_processes)
5547 (w32_system_process_attributes): Remove.
362654a6
JB
5548 (list_system_processes, system_process_attributes):
5549 New prototypes.
06e111a6 5550
6a705b23
KH
55512008-12-19 Kenichi Handa <handa@m17n.org>
5552
5553 * xfont.c (xfont_decode_coding_xlfd): New function.
5554 (xfont_encode_coding_xlfd): New function.
5555 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5556 (xfont_list): Decode and encode XLFD by iso-8859-1.
5557 (xfont_match): Likewise.
5558 (xfont_list_family): Likewise.
5559 (xfont_open): Likewise.
5560
d66c0241 5561 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5562 names are utf-8.
5563
d66c0241 5564 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5565 names are utf-8.
5566
5a130941
JD
55672008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5568
5569 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5570 changed.
bfd20325
JD
5571 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5572 clicked on a detached tool bar button.
5a130941 5573
fd95644b
DN
55742008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5575
5576 * emacs.c (main): Print and error and exit when no data is read
5577 from the pipe.
5578
e6eee6ae
JR
55792008-12-17 Jason Rumney <jasonr@gnu.org>
5580
5581 * w32font.c (w32font_has_char): Always return -1.
5582
a35dd56b
KH
55832008-12-16 Kenichi Handa <handa@m17n.org>
5584
5585 * font.c (font_open_entity): Fix previous change.
5586
0e3635c2
DN
55872008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5588
5589 * process.c: Include <limits.h>.
5590
d4835507 55912008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5592
5593 * font.c (font_update_drivers): Fix mistake in reconstructing the
5594 driver list.
5595
55962008-12-16 Chong Yidong <cyd@stupidchicken.com>
5597
5598 * font.c (font_clear_cache): Fix format of font cache data.
5599
e2cbc401
CY
56002008-12-15 Chong Yidong <cyd@stupidchicken.com>
5601
5602 * xftfont.c (xftfont_open): Free Xft font pattern if
5603 XftFontOpenPattern fails.
5604
5605 * xterm.c (x_free_frame_resources): Remove extraneous call to
5606 free_frame_faces.
5607
b131d535
CY
56082008-12-13 Chong Yidong <cyd@stupidchicken.com>
5609
5610 * xterm.c (x_delete_display): Move xim_close_dpy call to
5611 x_delete_terminal.
5612 (x_delete_terminal): Call xim_close_dpy.
5613
e6df5336
JR
56142008-12-13 Jason Rumney <jasonr@gnu.org>
5615
5616 * w32font.c (intern_font_name): New function.
5617 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5618 (w32font_open_internal, Fx_select_font): Decode font name.
5619 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5620
5621 * w32font.h (intern_font_name): Declare new function.
5622
5623 * w32uniscribe.c (add_opentype_font_name_to_list):
5624 Use intern_font_name.
5625
20d68145
CY
56262008-12-13 Chong Yidong <cyd@stupidchicken.com>
5627
9f2554de
CY
5628 * frame.c (Fdelete_frame): Call free_font_driver_list.
5629
3d9bec9a
CY
5630 * font.c (free_font_driver_list): Implement missing function.
5631
20d68145
CY
5632 * w32term.c (w32_term_init): Don't initialize the image cache
5633 here; it will be done in init_frame_faces.
5634
5635 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5636 (struct x_display_info): Remove unused member null_pixel. New
5637 member xim_callback_data.
5638
5639 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5640 (xim_initialize): Save pointer to callback function data.
5641 (xim_close_dpy): Free callback function data. Call XCloseIM,
5642 reverting 2008-11-04 change by David Smith.
5643 (x_term_init): Don't initialize the image cache here; it will be
5644 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5645 (x_delete_display): Free x_dnd_atoms member.
5646
96f9306b
KH
56472008-12-13 Kenichi Handa <handa@m17n.org>
5648
6dec9044
JB
5649 * font.c (font_rescale_ratio): Moved from xfaces.c.
5650 Argument type changed. Handle a font-spec too.
96f9306b 5651 (font_score): Check Vface_font_rescale_alist.
6dec9044 5652 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5653
5654 * xfaces.c (font_rescale_ratio): Moved to font.c.
5655
8d5b4964
CY
56562008-12-13 Chong Yidong <cyd@stupidchicken.com>
5657
5658 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5659
e6df5336
JR
56602008-12-12 Jason Rumney <jasonr@gnu.org>
5661
5662 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5663 Vwindow_system_version to the real w32 major version.
5664
97c6058a
DN
56652008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5666
5667 * term.c (init_tty): Move setting the terminal name before the
5668 potential user: maybe_fatal.
5669
ec4e88d7
CY
56702008-12-11 Chong Yidong <cyd@stupidchicken.com>
5671
d4835507
JB
5672 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5673 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5674
b4233ec9
JR
56752008-12-11 Jason Rumney <jasonr@gnu.org>
5676
8ec71e23 5677 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5678 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5679
b4233ec9 5680 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5681 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5682
011a0143
JB
56832008-12-11 Juanma Barranquero <lekktu@gmail.com>
5684
5685 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5686
3c309f34
JB
56872008-12-11 Juanma Barranquero <lekktu@gmail.com>
5688
5689 * process.c (Fsystem_process_attributes, syms_of_process):
5690 Fix typo in name of Ssystem_process_attributes.
5691 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5692
fedc6ab5
JB
56932008-12-11 Juanma Barranquero <lekktu@gmail.com>
5694
5695 * syntax.c (Fmodify_syntax_entry): Doc fix.
5696
ba3de0e8
JB
56972008-12-10 Juanma Barranquero <lekktu@gmail.com>
5698
5699 * font.c (Ffont_spec): Move usage to end of docstring.
5700
174f1c74
JR
57012008-12-10 Jason Rumney <jasonr@gnu.org>
5702
5703 * w32font.c (Qcham): New symbol.
5704 (font_supported_scripts): Add cham, and comments for other new
5705 scripts in bitfield from OpenType spec.
9d32f818
JR
5706 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5707 contain characters beyond the bmp.
174f1c74 5708
7b649478
KH
57092008-12-10 Kenichi Handa <handa@m17n.org>
5710
5711 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5712 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5713 Qunicode_sip.
5714
2133e2d1
JB
57152008-12-10 Juanma Barranquero <lekktu@gmail.com>
5716
5717 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5718 (Fcoding_system_put): Use QCdefault_char.
5719 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5720
9af886ee
CY
57212008-12-09 Chong Yidong <cyd@stupidchicken.com>
5722
74d819eb
CY
5723 * xftfont.c (syms_of_xftfont): Fix typo.
5724
4ccfa1c0 5725 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5726
7c19d3ae
DN
57272008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5728
5729 * emacs.c (main): Close daemon_pipe on exec.
5730
567826bb
CY
57312008-12-08 Chong Yidong <cyd@stupidchicken.com>
5732
5733 * termchar.h (struct tty): New members termcap_term_buffer and
5734 termcap_strings_buffer.
5735
5736 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5737 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5738 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5739 All callers changed.
5740 (init_tty): Store termcap data and string buffers in new struct
5741 tty members termcap_term_buffer and termcap_strings_buffer.
5742 (delete_tty): Free them.
4ccfa1c0 5743 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5744
aa96c42b
SZ
57452008-12-07 Seiji Zenitani <zenitani@mac.com>
5746
5747 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5748 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5749
b7e1d896
CY
57502008-12-06 Chong Yidong <cyd@stupidchicken.com>
5751
5752 * coding.c (make_conversion_work_buffer): Disable buffer
5753 modification hooks in the work buffer.
5754
b5ec91a5
EZ
57552008-12-05 Eli Zaretskii <eliz@gnu.org>
5756
5757 * process.c (procfs_system_process_attributes): If `nread' has a
5758 negative value, assign zero to it.
5759
a5d2a52b
CY
57602008-12-05 Chong Yidong <cyd@stupidchicken.com>
5761
68c5540b 5762 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5763
7bf1bb21
KH
57642008-12-05 Kenichi Handa <handa@m17n.org>
5765
5766 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5767 second character is a combining character.
5768
2fdc7d00
EZ
57692008-12-05 Eli Zaretskii <eliz@gnu.org>
5770
5771 * process.c (procfs_system_process_attributes): Don't use cmd,
5772 cmdsize, and q without initializing them first.
5773
bf6bfba8
JR
57742008-12-04 Jason Rumney <jasonr@gnu.org>
5775
5776 * w32font.c (w32font_draw): Initialize orig_clip before getting
5777 it, and delete it when finished.
5778
a3b1a468
DN
57792008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5780
5781 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5782 case when running as a daemon before detaching.
5783
8b8be8eb
JB
57842008-12-03 Juanma Barranquero <lekktu@gmail.com>
5785
805f2638 5786 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5787
b1bde622
KH
57882008-12-03 Kenichi Handa <handa@m17n.org>
5789
e500c47d
KH
5790 * font.c (font_at): Set `multibyte' at first.
5791
ca516334
KH
5792 * coding.c (decode_coding_charset): Check type of an element of
5793 vector VALIDS.
7bf1bb21 5794 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5795
4ccfa1c0 5796 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5797 (font_for_char): Likewise.
5798
1e5ecd37
CY
57992008-12-03 Chong Yidong <cyd@stupidchicken.com>
5800
d5b01609 5801 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5802 (font_update_lface): Handle fonts with corrupted size specs,
5803 i.e. non-int and non-float.
d5b01609 5804
11e3a6e4 5805 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5806 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5807 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5808
ab06788b
CY
5809 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5810
1e5ecd37 5811 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5812 underline_minimum_offset for underline position.
1e5ecd37 5813
63c125ab
DN
58142008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5815
5816 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5817
5818 * character.c (c_string_width): Specify the type for LEN.
5819
3a8406e1
KH
58202008-12-03 Kenichi Handa <handa@m17n.org>
5821
4ccfa1c0 5822 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5823 (decode_coding_utf_8): Likewise.
4ccfa1c0 5824 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5825 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5826
651df7d9
CY
58272008-12-02 Chong Yidong <cyd@stupidchicken.com>
5828
5829 * keyboard.c (make_lispy_position): Only use PT if the selected
5830 window is current.
5831
1f625c6c
AS
58322008-12-02 Andreas Schwab <schwab@suse.de>
5833
f7741ce9
AS
5834 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5835
1f625c6c
AS
5836 * doprnt.c (doprnt1): Fix size of charbuf.
5837
92bc2678
CY
58382008-12-02 Chong Yidong <cyd@stupidchicken.com>
5839
5840 * keyboard.c (timer_check): Revert last change.
5841
93b9e8cc
JB
58422008-12-02 Juanma Barranquero <lekktu@gmail.com>
5843
5844 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5845
fd7a37d5
JB
58462008-12-01 Juanma Barranquero <lekktu@gmail.com>
5847
5848 * makefile.w32-in: Update dependencies.
5849 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5850
c115043b
AS
58512008-12-01 Andreas Schwab <schwab@suse.de>
5852
5853 * font.c (register_font_driver): Use xmalloc.
5854 (font_put_frame_data): Likewise.
5855
f5668d2a
CY
58562008-12-01 Chong Yidong <cyd@stupidchicken.com>
5857
860d96be
CY
5858 * xfaces.c (realize_x_face): Make abort condition clearer.
5859
f5668d2a
CY
5860 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5861
379c17e7
CY
58622008-11-30 Chong Yidong <cyd@stupidchicken.com>
5863
5864 * keyboard.c (timer_check): After a timer runs, ensure that the
5865 selected window's buffer is current.
5866
35f36d65
JB
58672008-11-30 Juanma Barranquero <lekktu@gmail.com>
5868
f952c61c
JB
5869 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5870 It was accidentally restored by the Unicode merge.
5871
35f36d65
JB
5872 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5873
b23077df
JB
58742008-11-29 Juanma Barranquero <lekktu@gmail.com>
5875
5876 * w32proc.c: Include "coding.h".
5877 (Fw32_short_file_name): Encode filename passed to Windows API.
5878 (Fw32_long_file_name): Encode filename passed to Windows API and
5879 decode back the result. (Bug#1433)
5880
b8ebe9dd
KH
58812008-11-29 Kenichi Handa <handa@m17n.org>
5882
8cc53f96
KH
5883 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5884 not before accessing it.
5885
b8ebe9dd
KH
5886 * charset.c (Fdefine_charset_internal): After calculating
5887 min_char, max_char, and fastmap, copy the charset structure again.
5888 (encode_char): Fix the previous change.
5889
59bc82c0
SZ
58902008-11-28 Seiji Zenitani <zenitani@mac.com>
5891
5892 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5893
5894 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5895
5896 * nsterm.m (x_set_frame_alpha): New function.
5897
32247e3d
EZ
58982008-11-27 Eli Zaretskii <eliz@gnu.org>
5899
5900 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5901
b003e5ff
JB
59022008-11-27 Juanma Barranquero <lekktu@gmail.com>
5903
5904 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5905 pointer to check_face_name.
5906
708550f5
KH
59072008-11-27 Kenichi Handa <handa@m17n.org>
5908
5909 * category.h (SET_CATEGORY_SET): Call set_category_set.
5910 (set_category_set): Extern it.
5911
5912 * category.c (hash_get_category_set): New function.
5913 (Fmodify_category_entry): Adjusted for the change of
5914 char_table_ref_and_range. Call hash_get_category_set to get a
5915 category set to store in the table.
5916
5917 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5918 Funify_charset.
5919
2ae37cf0 5920 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5921 (DECODE_CHAR): Check if the decoder vector is ready.
5922 (ENCODE_CHAR): Check if the encoder char-table is ready.
5923 (maybe_unify_char): Extern it.
5924
5925 * charset.c (Vchar_unified_charset_table): Delete it.
5926 (inhibit_load_charset_map): New variable.
5927 (temp_charset_work): New variable.
5928 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5929 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5930 New macros.
5931 (load_charset_map): Meaning of control_flag changed. If
5932 inhibit_load_charset_map is nonzero, setup a table in
5933 temp_charset_work.
5934 (load_charset): New argument control_flag.
5935 (map_charset_for_dump): New function.
5936 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5937 map_charset_for_dump.
5938 (Fdefine_charset_internal): If the charset method is MAP, load
5939 mapping tables by calling load_charset.
5940 (Funify_charset): Don't load a mapping table but directly set
5941 Vchar_unify_table.
5942 (maybe_unify_char): New function.
5943 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5944 Handle the case of inhibit_load_charset_map being nonzero.
5945 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5946 Handle the case of inhibit_load_charset_map being nonzero.
5947 (Fclear_charset_maps): Just free temp_charset_work.
5948 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5949 variable.
5950
5951 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5952 change of char_table_ref_and_range.
5953 (char_table_ref_and_range): Change the meaning of argument FROM
5954 and TO. Now the caller must provide initial values for *FROM
5955 and *TO.
5956
5957 * fontset.c (fontset_add): Adjusted for the change of
5958 char_table_ref_and_range.
5959 (fontset_get_font_group): Likewise.
5960 (Ffontset_info): Likewise.
5961
5962 * keymap.c (describe_vector): Adjusted for the change of
5963 char_table_ref_and_range. For char-table, put boundary between
5964 non-ASCII and 8-bit characters.
5965
5966 * print.c (print_object): For bool-vector, delete unnecessary
5967 check of ASCII_BYTE_P.
5968
9196133b
JR
59692008-11-26 Jason Rumney <jasonr@gnu.org>
5970
5971 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5972 leading in font height. (Bug#879)
9196133b 5973
9f688acf
GM
59742008-11-26 Glenn Morris <rgm@gnu.org>
5975
5976 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5977 redefinition with ifdef. (Bug#1383)
5978
90d19aff
AR
59792008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5980
5981 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5982
4ccfa1c0 59832008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5984
5985 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5986 New EmacsView methods.
5987 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5988 Fixes bug #1048,1357,1414.
5989
59902008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5991
5992 Fix bug #1362.
5993 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5994 is not an indexed color.
5995 * nsterm.m (free_indexed_color): Add argument checking.
5996 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5997
e7d5ecb3
CY
59982008-11-24 Chong Yidong <cyd@stupidchicken.com>
5999
6000 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6001 Document confirm-after-completion value for
6002 minibuffer-completion-confirm.
6003
c285743c
JR
60042008-11-24 Jason Rumney <jasonr@gnu.org>
6005
6006 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6007 warning.
6008
b0857706
JR
60092008-11-23 Jason Rumney <jasonr@gnu.org>
6010
6011 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6012 restored before returning.
6013
6014 * w32font.c (check_face_name): New function.
6015 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6016 fonts. (Bug#642)
b0857706 6017
ee50ff07
MR
60182008-11-22 Martin Rudalics <rudalics@gmx.at>
6019
6020 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6021 confirm-nonexistent-file-or-buffer in doc-string.
6022
b8ff72fa
SM
60232008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6024
6025 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6026 Fix copy/paste typo. Add checks.
6027
cee53ed4
KH
60282008-11-21 Kenichi Handa <handa@m17n.org>
6029
6030 * coding.c (detect_coding_iso_2022): Reject invalid composition
6031 sequence.
6032 (DECODE_COMPOSITION_START): If the current source is the last
6033 block, and the current composition doesn't end, regard this
6034 sequence as invalid.
6035 (decode_coding_iso_2022): Handle invalid composition sequence.
6036
f6ef1e65
MR
60372008-11-20 Martin Rudalics <rudalics@gmx.at>
6038
6039 * window.c (coordinates_in_window): Don't return
6040 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6041 line when the window is not the rightmost one. (Bug#1372)
6042
e08b1705
MR
60432008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6044
6045 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6046
ad98e89f
EZ
60472008-11-15 Eli Zaretskii <eliz@gnu.org>
6048
6049 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6050 and bright_bg if noninteractive is non-zero.
6051
fb098a4b
CY
60522008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6053
6054 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6055 x_draw_glyph_string_background.
6056
6057 * w32term.c (x_draw_glyph_string): Likewise.
6058
ce952b6e
CY
60592008-11-15 Chong Yidong <cyd@stupidchicken.com>
6060
6061 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6062 the next glyph string once past the overhang width.
6063
6064 * nsterm.m (ns_draw_glyph_string): Likewise.
6065
6066 * w32term.c (x_draw_glyph_string): Likewise.
6067
26ea7079
CY
60682008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6069
6070 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6071 double file close.
6072
1c33c906
MR
60732008-11-14 Martin Rudalics <rudalics@gmx.at>
6074
6075 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6076 dedicated status of window before attempting to display another
6077 buffer in it.
6078
8fc29035
JB
60792008-11-14 Juanma Barranquero <lekktu@gmail.com>
6080
6081 * msdos.c (Fmsdos_long_file_names):
6082 (syms_of_msdos) <dos-unsupported-char-glyph>:
6083 * dosfns.c (Fint86): Fix typos in docstrings.
6084
55fb4286
EZ
60852008-11-14 Eli Zaretskii <eliz@gnu.org>
6086
6087 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6088
3fda0315
KY
60892008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6090
6091 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6092
7e849c17
CY
60932008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6094
6095 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6096
6097 * frame.h: Negative alpha means "don't touch".
6098
6099 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6100
6101 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6102
b9fd67bd
DN
61032008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6104
6105 * hftctl.c:
6106 * chpdef.h:
6107 * acldef.h: Remove files used only for systems no longer supported.
6108
6109 * Makefile.in: Fix .o alphabetical ordering.
6110 (hftctl.o): Remove dependency, file removed.
6111 (keymap.o, print.o): Depend on charset.h.
6112
d5998e03
KH
61132008-11-10 Kenichi Handa <handa@m17n.org>
6114
2ae37cf0 6115 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6116
be70e183
CY
61172008-11-08 Chong Yidong <cyd@stupidchicken.com>
6118
6119 * dired.c (file_name_completion): If completion_ignore_case is
6120 enabled, ignore case when checking completion-regexp-list.
6121
7cf94eac
EZ
61222008-11-08 Eli Zaretskii <eliz@gnu.org>
6123
6124 * vm-limit.c (get_lim_data): Fix last change.
6125
ee107a89
KH
61262008-11-08 Kenichi Handa <handa@m17n.org>
6127
6128 * character.c (Fget_byte): New function.
6129 (syms_of_character): Defsubr Fget_byte.
6130
5fd15622
CY
61312008-11-07 Chong Yidong <cyd@stupidchicken.com>
6132
6133 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6134 cursor position is valid after scrolling.
6135
13d62fad
JB
61362008-11-06 Juanma Barranquero <lekktu@gmail.com>
6137
6138 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6139
a1dd2936
GM
61402008-11-06 Glenn Morris <rgm@gnu.org>
6141
6142 * xterm.c (handle_one_xevent): Don't let popup menus cause
6143 mouse-autoselect-window related window switching. (Bug#1261)
6144
860cd236
CY
61452008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6146
6147 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6148
653a3150
AS
61492008-11-04 Andreas Schwab <schwab@suse.de>
6150
6151 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6152
870f5cac
CY
61532008-11-03 Chong Yidong <cyd@stupidchicken.com>
6154
6155 * xfns.c (Fx_wm_set_size_hint): New function.
6156
1e02f3cb
MR
61572008-11-03 Martin Rudalics <rudalics@gmx.at>
6158
6159 * textprop.c (Fprevious_single_char_property_change): Return 0
6160 when there's no change in a string. (Bug#1301)
6161
e630dfc6
MR
61622008-11-02 Martin Rudalics <rudalics@gmx.at>
6163
6164 * frame.c (do_switch_frame): New argument NORECORD passed to
6165 Fselect_window.
6166 (Fselect_frame): New argument NORECORD passed to
6167 do_switch_frame.
6168 (Fset_frame_selected_window): New argument NORECORD passed to
6169 Fselect_frame.
6170 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6171 in call of do_switch_frame.
6172 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6173 Handle NORECORD argument in call of Fselect_frame.
6174 * lisp.h (do_switch_frame, Fselect_frame)
6175 (Fset_frame_selected_window): Adjust declarations.
6176 * window.c (select_frame_norecord): New function.
6177 (run_window_configuration_change_hook): Use it and call
6178 Fselect_frame with NORECORD set.
6179 (Fselect_window): Pass NORECORD to Fselect_frame.
6180 (Fset_window_configuration): Handle NORECORD argument in call of
6181 do_switch_frame.
6182 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6183 Fset_frame_selected_window.
6184 * keyboard.c (command_loop_1): Handle NORECORD in call of
6185 Fselect_frame (currently ifdefd).
6186
9020b223
GM
61872008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6188
6189 * emacs.c (USAGE2): Untabify.
6190
793ffee8
SM
61912008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6192
6193 * composite.c (fill_gstring_header): Fix copy/paste typo.
6194
ab6d1131
MR
61952008-10-31 Martin Rudalics <rudalics@gmx.at>
6196
6197 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6198 (Fother_window): Rename argument and rewrite doc-string.
6199 (select_window_norecord): Fix return value. (Bug#1276)
6200
601a9cf1
JB
62012008-10-30 Juanma Barranquero <lekktu@gmail.com>
6202
6203 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6204 new frames overriding foreground for tooltips. Based on similar patch
6205 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6206
813b0652
CY
62072008-10-29 Chong Yidong <cyd@stupidchicken.com>
6208
6209 * emacs.c (Fdaemon_initialized): Initialize nfd.
6210
4414f58f
MR
62112008-10-29 Martin Rudalics <rudalics@gmx.at>
6212
6213 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6214 (Fwindow_text_height): Clarify doc-strings.
6215 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6216 doc-string of window-scroll-functions.
6217
ecdcaa09
RS
62182008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6219
6220 * category.c (syms_of_category): Fix typo in docstring.
6221
23fe745a
JB
62222008-10-28 Juanma Barranquero <lekktu@gmail.com>
6223
6224 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6225 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6226 Fix typos in docstrings.
6227
ff808935
DN
62282008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6229
6230 * emacs.c (daemon_pipe): Make non-static.
6231 (IS_DAEMON): Move definition ...
6232 * lisp.h (IS_DAEMON): ... here.
6233 (daemon_pipe): Declare.
6234 (is_daemon): Remove.
6235 * dispnew.c (init_display): Use IS_DAEMON.
6236
fc012771
SM
62372008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6238
6239 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6240 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6241
6242 * emacs.c (is_daemon): Remove.
6243 (main): Don't set is_daemon.
6244 (IS_DAEMON): New macro.
6245 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6246 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6247 parent exits.
6248 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6249
d8bdbe6f
CY
62502008-10-27 Chong Yidong <cyd@stupidchicken.com>
6251
d1a072bf
CY
6252 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6253 over-sized glyph, draw it with the default glyph width.
6254
e2e325aa
CY
6255 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6256 glyph, draw it with the default glyph width.
6257
6258 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6259 glyph, draw it with the default glyph width.
6260
d8bdbe6f
CY
6261 * xdisp.c (try_scrolling): When computing the distance from the
6262 scroll margin to PT, try moving some distance past the window
6263 bottom before giving up.
6264
7bfac547
MR
62652008-10-27 Martin Rudalics <rudalics@gmx.at>
6266
6267 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6268 (Fset_window_buffer): Explain in doc-string that a window can be
6269 "strongly" dedicated to its buffer.
6270
4ff029f6
DN
62712008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6272
6273 * emacs.c (daemon_name): New variable.
6274 (main): Deal with --daemon=SERVER_NAME.
6275 (Fdaemonp): Return a name if one was passed to --daemon.
6276
5790ef40
DN
62772008-10-26 Romain Francoise <romain@orebokech.com>
6278
f9bd0df9 6279 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6280 (main): Create a pipe before forking, make the parent exit only after
6281 the child has closed its end of the pipe. Move closing the
6282 descriptors ...
6283 (Fdaemon_initialized): ... here. New function.
6284
f5385255
SM
62852008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6286
4d632321
SM
6287 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6288 the previous unoptimized table.
6289
f5385255
SM
6290 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6291 the distinction between non-nil and non-t value of `dedicated'.
6292
6c56a0f3
CY
62932008-10-25 Chong Yidong <cyd@stupidchicken.com>
6294
6295 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6296 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6297
fec89261
MR
62982008-10-25 Martin Rudalics <rudalics@gmx.at>
6299
6300 * window.c (Fget_buffer_window, Fdelete_windows_on)
6301 (Freplace_buffer_in_windows): Make buffer argument optional and
6302 rename to buffer_or_name.
6303
34fcddd0
CY
63042008-10-24 Chong Yidong <cyd@stupidchicken.com>
6305
f5385255
SM
6306 * xdisp.c (handle_single_display_spec, handle_display_prop):
6307 Undo 2005-05-16 change.
34fcddd0
CY
6308 (handle_stop): Pop iterator if it's loaded with an empty string.
6309 (get_overlay_strings_1): Don't save iterator if it's loaded with
6310 an empty string (bug#1201).
6311
064766f2
KH
63122008-10-24 Kenichi Handa <handa@m17n.org>
6313
6314 * ftfont.c (ftfont_otf_features): Fix previous change.
6315 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6316 calling ftfont_otf_features.
6317
f9bd0df9 63182008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6319
6320 * font.c (font_match_p): Fix for the case that a vector of
6321 characters is in script-representative-chars.
6322
1dae9197
MA
63232008-10-24 Michael Albinus <michael.albinus@gmx.de>
6324
6325 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6326 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6327 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6328 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6329 macro. (Bug#1186)
1dae9197 6330
f9bd0df9 63312008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6332
6333 * s/sol2-10.h: New file.
6334
878a4584
JB
63352008-10-23 Juanma Barranquero <lekktu@gmail.com>
6336
6337 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6338 poor beast has survived 9+ years and the jump from xterm.c!).
6339
cd265ca6
MR
63402008-10-23 Martin Rudalics <rudalics@gmx.at>
6341
6342 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6343 Reword doc-string.
f5385255 6344 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6345
472a4dc9
JB
63462008-10-23 Juanma Barranquero <lekktu@gmail.com>
6347
6348 * character.c (syms_of_character) <script-representative-chars>:
6349 <unicode-category-table>: Doc fixes.
6350
159bd5a2
NF
63512008-10-23 Noah Friedman <friedman@splode.com>
6352
6353 * coding.c (make_conversion_work_buffer): Check that
6354 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6355 Fget_buffer_create.
6356
49f9c344
KH
63572008-10-23 Kenichi Handa <handa@m17n.org>
6358
6359 * font.c (font_add_log): Check the values of extra properties.
6360
12bb3111
MR
63612008-10-22 Martin Rudalics <rudalics@gmx.at>
6362
6363 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6364 Reword doc-string.
6365 (Fset_window_parameter): Use NILP.
6366 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6367 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6368
bbeb4e99
JB
63692008-10-22 Juanma Barranquero <lekktu@gmail.com>
6370
6371 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6372
63732008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6374
6375 * nsfns.m (ns_appkit_version): New function.
6376 (x-server-version): Use it.
6377 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6378 (x-server-vendor): Don't check_ns().
6379
6380 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6381
a9b555d3
JB
63822008-10-22 Juanma Barranquero <lekktu@gmail.com>
6383
6384 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6385 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6386
4626499f
KH
63872008-10-22 Kenichi Handa <handa@m17n.org>
6388
e3681952
KH
6389 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6390 scripts.
6391
4626499f
KH
6392 * category.c (word_boundary_p): Check scripts instead of charset.
6393 Handle nil value in word-separating-categories and
6394 word-combining-categories.
6395 (syms_of_category): Fix docstrings of word-separating-categories
6396 and word-combining-categories.
6397
1560f91a
EZ
63982008-10-21 Eli Zaretskii <eliz@gnu.org>
6399
6400 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6401 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6402
f4668441
MR
64032008-10-21 Martin Rudalics <rudalics@gmx.at>
6404
6405 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6406 Rename arg "buffer" to "buffer_or_name".
6407 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6408 it optional.
6409 (no_switch_window): Remove since the return value is not used.
a9b555d3 6410 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6411 Consider window as dedicated when Fwindow_dedicated_p returns a
6412 non-nil value.
6413 * lisp.h: Remove prototype for no_switch_window.
6414
fd75ddb2
JD
64152008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6416
6417 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6418 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6419
07295713
KH
64202008-10-21 Kenichi Handa <handa@m17n.org>
6421
6422 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6423 check Vlatin_extra_code_table.
6424
712adc82
EZ
64252008-10-20 Eli Zaretskii <eliz@gnu.org>
6426
6427 * fileio.c (Fset_file_modes): Doc fix.
6428
f549eb0b
MA
64292008-10-19 Michael Albinus <michael.albinus@gmx.de>
6430
6431 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6432 in arrays.
6433
aac0c6e3
MR
64342008-10-19 Martin Rudalics <rudalics@gmx.at>
6435
6436 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6437 Mention kill-buffer in doc-string.
6438 (Fset_window_buffer): Reinsert tem check removed in last commit.
6439 (Fenlarge_window, Fshrink_window): Have argument names and
6440 doc-string follow Elisp manual more closely.
6441
64422008-10-18 Eli Zaretskii <eliz@gnu.org>
6443
6444 * fileio.c (Fset_file_modes): Doc fix.
6445
64462008-10-18 Martin Rudalics <rudalics@gmx.at>
6447
6448 * window.c (Fwindow_width, Fset_window_start)
6449 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6450 (Fdelete_windows_on, Freplace_buffer_in_windows):
6451 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6452 (Fwindow_dedicated_p): Make window argument optional.
6453 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6454 (Fset_window_buffer): Respect any non-nil dedicated value for
6455 window. Rename "buffer" argument to "buffer_or_name".
6456
64572008-10-18 Ulrich Mueller <ulm@gentoo.org>
6458
6459 * m/sh3.h: New file, machine description for SuperH.
6460
64612008-10-17 Martin Rudalics <rudalics@gmx.at>
6462
6463 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6464
64652008-10-17 Kenichi Handa <handa@m17n.org>
6466
6467 * ftfont.c (ftfont_otf_features): Fix indexing
6468 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6469
64702008-10-16 Magnus Henoch <mange@freemail.hu>
6471
6472 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6473 (Fdbus_call_method_asynchronously): Ditto.
6474 This change makes C-h f display the argument list.
6475
64762008-10-16 Chong Yidong <cyd@stupidchicken.com>
6477
6478 * fileio.c (Fexpand_file_name): Doc fix.
6479
6480 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6481 of :foreground and :background equivalent to unspecified (20.x
6482 compatibility).
6483
64842008-10-15 Eli Zaretskii <eliz@gnu.org>
6485
6486 * buffer.c (syms_of_buffer): Doc fix.
6487
64882008-10-14 Kenichi Handa <handa@m17n.org>
6489
6490 * font.c (font_clear_prop): When clearing font width, clear the
6491 average width field too.
6492
64932008-10-12 Andreas Schwab <schwab@suse.de>
6494
6495 * ftfont.c (ftfont_shape_by_flt): Make static.
6496 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6497
6498 * font.c: Don't include <m17n-flt.h>.
6499
65002008-10-10 Eli Zaretskii <eliz@gnu.org>
6501
6502 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6503
65042008-10-09 Eli Zaretskii <eliz@gnu.org>
6505
6506 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6507 away code.
6508
65092008-10-09 Chong Yidong <cyd@stupidchicken.com>
6510
6511 * dispnew.c (update_text_area): Avoid looping due to large glyph
6512 overhangs (bug#1070).
6513
65142008-10-09 Kenichi Handa <handa@m17n.org>
6515
6516 * fontset.c (face_for_char): If face->fontset is negative, just
6517 return ascii_face.
6518
f5385255
SM
6519 * font.c (font_delete_unmatched): Fix previous change.
6520 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6521
65222008-10-09 Martin Rudalics <rudalics@gmx.at>
6523
6524 * frame.c (Fraise_frame): On text-only terminals select frame in
6525 order to make it visible. (Bug#1061)
6526
65272008-10-08 Chong Yidong <cyd@stupidchicken.com>
6528
6529 * fontset.c (fontset_find_font): Check frame validity.
6530
65312008-10-07 Chong Yidong <cyd@stupidchicken.com>
6532
a9b555d3 6533 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6534 (xg_display_close): Allow Emacs to close all displays (bug#985).
6535
65362008-10-06 Andreas Schwab <schwab@suse.de>
6537
f5385255 6538 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6539
65402008-10-06 Chong Yidong <cyd@stupidchicken.com>
6541
f5385255 6542 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6543
a9b555d3 6544 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6545
6546 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6547 during initialization.
6548
65492008-10-04 Eli Zaretskii <eliz@gnu.org>
6550
6551 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6552 whole thing on MSDOS frames as well as on a TTY.
6553
6554 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6555 well as for TTY.
6556 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6557 well as on a TTY.
6558
6559 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6560 as well as for TTY.
6561
6562 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6563
6564 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6565 MSDOS frames as well.
6566
65672008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6568
6569 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6570 correct arguments.
b71ac3dd 6571 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6572
65732008-10-03 Glenn Morris <rgm@gnu.org>
6574
6575 * emacs.c (USAGE1): Add --daemon.
6576
65772008-10-02 Eli Zaretskii <eliz@gnu.org>
6578
6579 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6580 100, so it's in percents as advertised.
6581
65822008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6583
6584 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6585 (ns_output.current_cursor, ns_output.desired_cursor)
6586 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6587 (FRAME_NEW_CURSOR_COLOR): Remove.
6588
6589 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6590 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6591 enumeration (HOLLOW_BOX_CURSOR, etc.).
6592
6593 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6594 (draw_window_cursor): Simplify code.
f5385255
SM
6595 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6596 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6597 updates manually.
a9b555d3
JB
6598 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6599 Use core Emacs cursor types.
aac0c6e3 6600
b8ff72fa 6601 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6602
66032008-10-02 Martin Rudalics <rudalics@gmx.at>
6604
6605 * process.c (Faccept_process_output): Fix doc-string.
6606
66072008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6608
6609 * gmalloc.c (__sbrk): Also define for uClibc.
6610
6611 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6612 for uClibc.
6613
66142008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6615
6616 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6617 styles.
6618 (nsfont_open): Reenable the cache.
6619
66202008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6621
6622 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6623 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6624
66252008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6626
6627 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6628 a suspended terminal.
6629
66302008-09-30 Michael Albinus <michael.albinus@gmx.de>
6631
6632 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6633
66342008-09-30 Eli Zaretskii <eliz@gnu.org>
6635
6636 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6637
66382008-09-30 Chong Yidong <cyd@stupidchicken.com>
6639
6640 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6641 in a continued line coincides with a line beginning.
6642
66432008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6644
6645 * nsfont.m (nsfont_trait_distance): Fix bug.
6646 (nsfont_list): Return a list rather than a vector (syncs with Handa
6647 changes of 2008-05-14).
6648 (nsfont_open): Improve logging.
6649
66502008-09-29 Andreas Schwab <schwab@suse.de>
6651
6652 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6653
66542008-09-28 Martin Rudalics <rudalics@gmx.at>
6655
6656 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6657 name as char-resolve-modifiers.
6658 Reported by: Markus Triska <markus.triska@gmx.at>
6659
66602008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6661
6662 * dispnew.c (init_display): Return earlier when running as a daemon.
6663
66642008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6665
6666 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6667
66682008-09-27 Eli Zaretskii <eliz@gnu.org>
6669
6670 * composite.c (Fcomposition_get_gstring)
6671 (Fcompose_region_internal, Fcompose_string_internal)
6672 (Ffind_composition_internal): Doc fix.
6673 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6674 (syms_of_composite) <auto-composition-function>: Doc fix.
6675 (syms_of_composite) <composition-function-table>: Doc fix.
6676
66772008-09-25 Chong Yidong <cyd@stupidchicken.com>
6678
6679 * search.c (wordify): New argument for lax word-ends.
6680 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6681
66822008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6683
6684 * lisp.h (is_daemon): Declare.
6685 * dispnew.c (init_display): Do not try to initialize the terminal
6686 when running as a daemon.
6687
66882008-09-22 Chong Yidong <cyd@stupidchicken.com>
6689
6690 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6691 x_display_pixel_height.
6692
66932008-09-22 Martin Rudalics <rudalics@gmx.at>
6694
6695 * undo.c (record_point): Don't call Fundo_boundary for first
6696 change. (Bug#731)
6697
66982008-09-22 Juanma Barranquero <lekktu@gmail.com>
6699
6700 * emacs.c (Fdaemonp): Doc fix.
6701
67022008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6703
6704 * emacs.c (main): Place #ifdef in the proper place.
6705
67062008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6707
6708 * emacs.c (standard_args): Add --daemon.
6709 (main): Disconnect from the terminal when --daemon is passed.
6710 (is_daemon): New variable.
6711 (Fdaemonp): New function.
6712 (syms_of_emacs): Defsubr it.
6713
67142008-09-20 Chong Yidong <cyd@stupidchicken.com>
6715
6716 * xdisp.c (get_next_display_element): Handle string display
6717 correctly when checking for the end of a box run.
6718
67192008-09-20 Glenn Morris <rgm@gnu.org>
6720
6721 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6722 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6723 (Frename_file): Avoid copying to trash if a rename involves
6724 a delete. (Bug#964).
6725
67262008-09-20 Eli Zaretskii <eliz@gnu.org>
6727
6728 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6729 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6730 frames as well as termcap frames.
6731 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6732 get_named_tty.
6733
67342008-09-19 Eli Zaretskii <eliz@gnu.org>
6735
6736 * process.c (procfs_system_process_attributes): Fix cmdline in
6737 case /proc/PID/cmdline is empty.
6738
6739 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6740 x_display_pixel_height.
6741
67422008-09-19 Juanma Barranquero <lekktu@gmail.com>
6743
6744 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6745
6746 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6747 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6748
67492008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6750
6751 * dispextern.h (struct it): Move line_wrap away from the middle of
6752 bitfields. Move voffset in struct iterator_stack_entry after the
6753 bitfields. Move tab_width near after another short.
6754
67552008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6756
6757 * frame.h (struct frame): Move alpha from the middle of bitfields.
6758
6759 * window.h (struct window): Move frozen_window_start_p after the
6760 rest of the bitfields to reduce padding.
6761
67622008-09-18 Chong Yidong <cyd@stupidchicken.com>
6763
6764 * xterm.h (x_display_info): Remove `height' and `width' members.
6765
6766 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6767
6768 * w32term.h (w32_display_info): Remove `height', `width',
6769 `height_in', and `width_in' members.
6770
b8ff72fa
SM
6771 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6772 New functions.
aac0c6e3
MR
6773 (x_calc_absolute_position): Use them.
6774 (x_term_init): Omit removed `height' and `width' members.
6775
b8ff72fa
SM
6776 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6777 New functions.
aac0c6e3
MR
6778 (w32_read_socket, x_calc_absolute_position): Use them.
6779 (w32_initialize_display_info, w32_term_init): Omit removed members
6780 of w32_display_info.
6781
b8ff72fa
SM
6782 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6783 New functions.
6784 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6785
b8ff72fa
SM
6786 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6787 New functions.
aac0c6e3
MR
6788 (x_calc_absolute_position): Use them.
6789 (x_term_init): Omit removed `height' and `width' members.
6790
6791 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6792 (compute_tip_xy):
6793 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6794 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6795 x_display_pixel_width.
6796
67972008-09-18 Kenichi Handa <handa@m17n.org>
6798
6799 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6800 (composition_compute_stop_pos): Fix handling of static composition.
6801 (Fcomposition_get_gstring): Check FROM and TO at first.
6802
68032008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6804
46e722a9 6805 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6806 mixup (YAILOM).
6807
68082008-09-17 Chong Yidong <cyd@stupidchicken.com>
6809
6810 * indent.c (Fvertical_motion): Use position reported by iterator
6811 instead of PT for determining screen motion (bug#943).
6812
68132008-09-17 Romain Francoise <romain@orebokech.com>
6814
6815 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6816
68172008-09-17 Kenichi Handa <handa@m17n.org>
6818
6819 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6820
6821 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6822 if necessary.
6823
68242008-09-16 Kenichi Handa <handa@m17n.org>
6825
6826 * coding.c (make_conversion_work_buffer): Avoid calling
6827 Fget_buffer_create if it is not necessary.
6828
68292008-09-15 Martin Rudalics <rudalics@gmx.at>
6830
6831 * window.c (Fselect_window): Don't update window_select_count and
6832 use_time when norecord is not nil.
6833
68342008-09-14 Kenichi Handa <handa@m17n.org>
6835
6836 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6837 specpdl_ptr.
6838
68392008-09-12 Kenichi Handa <handa@m17n.org>
6840
6841 * indent.c (scan_for_column): Don't handle automatic composition
6842 if the current buffer is not associated with a window.
6843
6844 * composite.c (composition_reseat_it): If the current buffer is
6845 not associated with a window, ignore the automatic composition.
6846 (find_automatic_composition): Likewise.
6847
68482008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6849
6850 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6851 (Fgpm_mouse_stop): Use it.
6852 * termhooks.h (close_gpm): Declare.
6853 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6854 connection if Gpm_GetEvent fails.
6855
6856 * window.c (set_window_buffer): Always preserve current-buffer.
6857
68582008-09-12 Glenn Morris <rgm@gnu.org>
6859
6860 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6861
68622008-09-11 Glenn Morris <rgm@gnu.org>
6863
6864 * charset.c (charset-map-path): Doc fix.
6865
68662008-09-10 Kenichi Handa <handa@m17n.org>
6867
6868 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6869
6870 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6871 compose a grapheme cluster with the preceding base glyph.
6872
6873 * composite.c (composition_compute_stop_pos): Fix previous change.
6874 Reset cmp_it->id to -1 at first.
6875
68762008-09-10 Glenn Morris <rgm@gnu.org>
6877
6878 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6879
68802008-09-09 Chong Yidong <cyd@stupidchicken.com>
6881
6882 * keyboard.c (read_key_sequence): Reapply translation maps when
6883 switching keyboards.
6884
68852008-09-09 Kenichi Handa <handa@m17n.org>
6886
6887 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6888 characters.
6889
6890 * composite.c (FORWARD_CHAR): Fix calculation
6891 of (POSITION).pos_byte.
6892 (composition_compute_stop_pos): Limit the search of composition to
6893 at most 500 characters ahead. If we reach the limit or find a
6894 newline, set cmp_it->ch to -2 and return 0.
6895 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6896
68972008-09-08 Kenichi Handa <handa@m17n.org>
6898
6899 * indent.c (Fvertical_motion): Be sure to set
6900 it_overshoot_expected if it.cmp_it.id is non-negative.
6901
69022008-09-07 Andreas Schwab <schwab@suse.de>
6903
6904 * callproc.c (Fcall_process): Don't hold references to string data
6905 across garbage collection. Move initialisation of new_argv down
6906 to avoid compiler bug.
6907
69082008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6909
6910 * process.c (Fsystem_process_attributes): Doc fix.
6911
69122008-09-07 Chong Yidong <cyd@stupidchicken.com>
6913
6914 * callproc.c (Fcall_process): Canonicalize current directory name.
6915
6916 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6917 iterator advances to the next line if the current line ends in a
6918 continued tab.
6919
69202008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6921
6922 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6923 member to point to cmp_from.
6924
6925 * xdisp.c: Doc fix for references to gidx data member.
6926
69272008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6928
6929 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6930
69312008-09-07 Kenichi Handa <handa@m17n.org>
6932
6933 * composite.c (FORWARD_CHAR): Check STOP after
6934 incrementing (POSITION).pos.
6935
69362008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6937
6938 * process.c (Fsystem_process_attributes): Doc fix.
6939
69402008-09-06 Chong Yidong <cyd@stupidchicken.com>
6941
6942 * keyboard.c (Ftop_level): Doc fix.
6943
69442008-09-06 Eli Zaretskii <eliz@gnu.org>
6945
6946 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6947 minibuffer, don't let lower part of menu invade the echo area.
6948
6949 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6950 "char *q" to access menu text and advance through it. Revert the
6951 change that displayed ">" instead of ASCII character 0x10.
6952
69532008-09-05 Eli Zaretskii <eliz@gnu.org>
6954
6955 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6956 toggle boxes and radio buttons on MS-DOS as well.
6957
69582008-09-05 Kenichi Handa <handa@m17n.org>
6959
6960 * composite.c (autocmp_chars): Check lookback count.
6961 (composition_compute_stop_pos): Set cmp_it->lookback.
6962 (composition_reseat_it): Check lookback count.
6963 (struct position_record): New struct.
6964 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6965 (find_automatic_composition): New function.
6966 (composition_adjust_point): Use find_automatic_composition.
6967
6968 * dispextern.h (struct composition_it): New member lookback.
6969
69702008-09-02 Chong Yidong <cyd@stupidchicken.com>
6971
6972 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6973 if moving by a single line.
6974
69752008-09-02 Andreas Schwab <schwab@suse.de>
6976
6977 * xterm.c (x_delete_display): Fix merge error.
6978
6979 * fileio.c (Fexpand_file_name): Remove unused variables.
6980
69812008-09-02 Eli Zaretskii <eliz@gnu.org>
6982
6983 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6984 storage on all platforms, not just on DOS_NT.
6985
69862008-09-02 Jason Rumney <jasonr@gnu.org>
6987
b8ff72fa
SM
6988 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6989 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6990
69912008-09-01 Chong Yidong <cyd@stupidchicken.com>
6992
6993 * xfaces.c (Finternal_set_alternative_font_family_alist)
6994 (Finternal_set_alternative_font_registry_alist): Properly copy
6995 entire alist structure.
6996
69972008-09-01 Kenichi Handa <handa@m17n.org>
6998
d66c0241 6999 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7000 representative chars of the script is a vector.
d66c0241
JB
7001 (ftfont_list): Handle the case where the representative chars of
7002 the script is a vector.
aac0c6e3
MR
7003
7004 * character.c (syms_of_character): Docstring of
7005 script-representative-chars fixed.
7006
70072008-08-31 Eli Zaretskii <eliz@gnu.org>
7008
7009 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7010 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7011 the menu. Allocate larger buffer for `text', to account for
7012 possible ^C characters.
7013
70142008-08-31 Martin Rudalics <rudalics@gmx.at>
7015
7016 * xdisp.c (prepare_menu_bars): Don't call
7017 Vwindow_size_change_functions with arg Qt.
7018
70192008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7020
7021 * font.h (font_range):
7022 * fileio.c (report_file_error):
46e722a9
SM
7023 * composite.c (composition_update_it): Yet another int/Lisp_Object
7024 mixup (YAILOM).
aac0c6e3
MR
7025
70262008-08-30 Glenn Morris <rgm@gnu.org>
7027
7028 * data.c (Fmake_variable_frame_local): Doc fix.
7029
7030 * frame.c (Fmodify_frame_parameters): Doc fix.
7031
70322008-08-30 Eli Zaretskii <eliz@gnu.org>
7033
7034 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7035 needed by GetTokenInformation.
7036 (w32_system_process_attributes): Check return values of all system
7037 APIs.
7038
7039 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7040 only when the state changes.
7041 (IT_update_begin, IT_update_end): Add termscript trace.
7042
7043 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7044 clipboard is unavailable. Set dst to NULL if it doesn't point to
7045 malloc'ed data.
7046 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7047 passing random values to xfree.
7048
7049 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7050 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7051
70522008-08-29 Jason Rumney <jasonr@gnu.org>
7053
7054 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7055
70562008-08-29 Eli Zaretskii <eliz@gnu.org>
7057
7058 * composite.c (fill_gstring_body): Avoid compiler warnings.
7059
7060 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7061 LGLYPH_SET_CODE to avoid compiler warnings.
7062
2ae37cf0 7063 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7064
7065 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7066
7067 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7068 LGLYPH_SET_CODE.
7069
70702008-08-29 Kenichi Handa <handa@m17n.org>
7071
7072 * fileio.c (report_file_error): Don't downcase the first character
7073 of errstring if it is still unibyte.
7074
70752008-08-29 Kenichi Handa <handa@m17n.org>
7076
7077 These changes are to re-implement the automatic composition so
7078 that it doesn't use text properties.
7079
7080 * Makefile.in (ftfont.o): Depend on composite.h.
7081 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7082
7083 * character.h (Vunicode_category_table): Extern it.
7084
7085 * character.c (Vunicode_category_table): New variable.
7086 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7087
7088 * chartab.c (optimize_sub_char_table): Perform more greedy
7089 optimization.
7090
b8ff72fa
SM
7091 * composite.h (enum composition_method):
7092 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7093 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7094 (Vcomposition_function_table): Extern it.
7095 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7096 (composition_gstring_put_cache, composition_gstring_from_id)
7097 (composition_gstring_p, composition_gstring_width)
7098 (composition_compute_stop_pos, composition_reseat_it)
7099 (composition_update_it, composition_adjust_point): Extern them.
7100 (Fcomposition_get_gstring): EXFUN it.
7101
d66c0241 7102 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7103 (Vcomposition_function_table)
7104 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7105 (gstring_hash_table, gstring_work, gstring_work_headers):
7106 New variables.
aac0c6e3
MR
7107 (gstring_lookup_cache, composition_gstring_put_cache)
7108 (composition_gstring_from_id, composition_gstring_p)
7109 (composition_gstring_width, fill_gstring_header)
7110 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7111 (composition_reseat_it, composition_update_it)
b8ff72fa 7112 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7113 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7114 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7115 Defsubr composition_get_gstring.
aac0c6e3
MR
7116
7117 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7118 cmp_id.
7119 (struct glyph_string): Delete the member gidx. New members
7120 cmp_id, cmp_from, and cmp_to.
7121 (enum it_method): Delete GET_FROM_COMPOSITION.
7122 (struct composition_it): New struct.
7123 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7124 Delete c, len, cmp_id, cmp_len in u.comp.
7125
7126 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7127 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7128 (enum lglyph_indices): Likewise.
b8ff72fa 7129 (font_range): Adjust extern.
aac0c6e3
MR
7130 (font_fill_lglyph_metrics): Extern it.
7131
7132 * font.c (QCf): New variable.
7133 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7134 (font_prepare_composition): Delete this function.
7135 (font_range): Type and arguments changed.
7136 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7137 (font_fill_lglyph_metrics): New function.
b8ff72fa 7138 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7139 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7140 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7141 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7142
7143 * fontset.h (font_for_char): Extern it.
7144
7145 * fontset.c (font_for_char): New function.
7146
7147 * ftfont.c: Include composite.h.
7148 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7149 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7150
7151 * indent.c: Include composite.h and dispextern.h.
7152 (check_composition): Delete this function.
7153 (scan_for_column): Handle composition by
7154 composition_compute_stop_pos, composition_reseat_it, and
7155 composition_update_it.
7156 (compute_motion): Likewise.
7157 (Fvertical_motion): Fix checking of composition.
7158
7159 * keyboard.c (adjust_point_for_property): Check composition by
7160 composition_adjust_point.
7161
b8ff72fa 7162 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7163 struct glyph_string.
7164
b8ff72fa
SM
7165 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7166 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7167 struct glyph.
7168 (produce_composite_glyph): Likewise.
7169
b8ff72fa
SM
7170 * w32term.c (x_draw_composite_glyph_string_foreground):
7171 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7172 (x_draw_glyph_string): Likewise.
7173
7174 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7175 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7176
7177 * xdisp.c: Include font.h.
7178 (it_props): Delete the entry for Qauto_composed.
7179 (init_iterator): Initialize it->cmp_it.id to -1.
7180 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7181 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7182 (handle_auto_composed_prop): Delete it.
7183 (handle_composition_prop): Handle only static composition.
7184 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7185 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7186 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7187 (pop_it): Likewise.
7188 (get_next_element): Delete next_element_from_composition.
7189 (CHAR_COMPOSED_P): New macro.
7190 (get_next_display_element): For automatic composition, get a face
7191 from the font in the glyph-string.
7192 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7193 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7194 (next_element_from_string): Check if the character at the current
7195 position is composed by CHAR_COMPOSED_P.
7196 (next_element_from_buffer): Likewise.
d66c0241
JB
7197 (next_element_from_composition): Adjust for the change of struct it.
7198 Update it->cmp_it.
b8ff72fa
SM
7199 (dump_glyph): Adjust for the change of struct glyph.
7200 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7201 it and struct glyph. Don't handle automatic composition here.
7202 (fill_gstring_glyph_string): New function.
7203 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7204 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7205 (BUILD_GSTRING_GLYPH_STRING): New macro.
7206 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7207 automatic composition.
b8ff72fa 7208 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7209 struct glyph.
b8ff72fa 7210 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7211
b8ff72fa 7212 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7213 the change of struct glyph_string.
7214 (x_draw_glyph_string): Likewise.
7215
72162008-08-29 Glenn Morris <rgm@gnu.org>
7217
7218 * buffer.c (word-wrap): Doc fix.
7219 * xdisp.c (truncate-partial-width-windows): Doc fix.
7220 Increase default to 50.
7221
72222008-08-29 Chong Yidong <cyd@stupidchicken.com>
7223
7224 * xdisp.c (update_tool_bar_unwind): New function.
7225 (update_tool_bar): Temporarily set selected frame before building
7226 tool-bar items.
7227
72282008-08-28 Michael Albinus <michael.albinus@gmx.de>
7229
7230 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7231 snprintf, respectively.
7232 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7233
72342008-08-28 Chong Yidong <cyd@stupidchicken.com>
7235
7236 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7237 LDFLAGS to GNUstep CC invocation.
7238
72392008-08-27 Chong Yidong <cyd@stupidchicken.com>
7240
7241 * indent.c (Fvertical_motion): Revert last change. Handle the
7242 general case where we are moving forward, and PT spans multiple
7243 screen lines.
7244
7245 * eval.c (find_handler_clause): Temporarily increase
7246 max-lisp-eval-depth while printing the backtrace buffer, to
7247 guarantee that help-mode code can run.
7248
72492008-08-27 Eli Zaretskii <eliz@gnu.org>
7250
7251 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7252 colors under -rv.
7253 (IT_set_frame_parameters): Don't swap foreground and background
7254 colors if `(reverse . t)' is present in the frame properties.
7255 (internal_terminal_init): Call init_frame_faces only for the
7256 initial frame.
7257
72582008-08-27 Andreas Schwab <schwab@suse.de>
7259
7260 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7261
72622008-08-27 Andreas Schwab <schwab@suse.de>
7263
7264 * search.c (search_buffer): Set char_base to zero only at the end.
7265
72662008-08-27 Kenichi Handa <handa@m17n.org>
7267
b8ff72fa 7268 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7269
72702008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7271
7272 * xterm.c (x_term_init): Temporarily hide the partially
7273 initialized terminal while calling vendor-specific-keysyms.
7274
72752008-08-26 Eli Zaretskii <eliz@gnu.org>
7276
7277 * msdos.c (internal_terminal_init): Most initializations done only
7278 once, especially initial_screen_colors[] and termscript open.
7279
72802008-08-26 Chong Yidong <cyd@stupidchicken.com>
7281
7282 * eval.c (Fcondition_case): Doc fix.
7283
7284 * widgetprv.h (EmacsFramePart): Change font member to the new font
7285 struct.
7286
7287 * widget.c: Include character.h and font.h for XSETFONT.
7288 (setup_frame_gcs): Compute X font id from font struct, just once.
7289
72902008-08-26 Eli Zaretskii <eliz@gnu.org>
7291
7292 * term.c (get_named_tty): Fix last change.
7293
72942008-08-26 Chong Yidong <cyd@stupidchicken.com>
7295
7296 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7297 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7298
72992008-08-25 Eli Zaretskii <eliz@gnu.org>
7300
7301 * frame.c (do_switch_frame): Mark previously displayed frame as
7302 obscured for FRAME_MSDOS_P frames as well.
7303
73042008-08-24 Eli Zaretskii <eliz@gnu.org>
7305
7306 * frame.c (make_terminal_frame): Initialize f->terminal,
7307 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7308 Set the top frame to newly created frame.
7309 (Fmake_terminal_frame): Reuse the_only_display_info.
7310
7311 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7312 estimating available memory.
7313
b97439ce 73142008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7315
7316 * nsterm.m (ns_draw_window_cursor): Don't call
7317 NSDisableScreenUpdates and NSEnableScreenUpdates on
7318 non-NS_IMPL_COCOA systems.
7319
73202008-08-23 Andreas Schwab <schwab@suse.de>
7321
7322 * process.c (procfs_system_process_attributes): Fix use of
7323 uninitialized variables.
7324
73252008-08-23 Eli Zaretskii <eliz@gnu.org>
7326
7327 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7328
7329 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7330 calling tty-set-up-initial-frame-faces.
7331
b8ff72fa
SM
7332 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7333 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7334
7335 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7336 addition to output_termcap.
7337
7338 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7339
7340 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7341 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7342 highlight.
7343
7344 * process.c [!subprocesses]: Define QCname.
7345 (syms_of_process): Intern and staticpro it.
7346
7347 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7348 Adjust for changes in encoding/decoding routines.
7349 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7350 encode_coding and decode_coding.
7351
b8ff72fa 7352 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7353
7354 * dosfns.c: Include frame.h before termhooks.h.
7355 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7356 variable termscript.
7357
7358 * s/msdos.h (USER_FULL_NAME): Define.
7359 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7360
7361 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7362 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7363 pw->pw_gecos.
7364
7365 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7366 SELECTED_FRAME as additional (1st) argument.
7367 (tty_read_avail_input): Handle output_msdos_raw in
7368 addition to output_termcap.
7369
7370 * msdos.c: Include frame.h before termhooks.h.
7371 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7372 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7373 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7374 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7375 (IT_set_terminal_modes, IT_reset_terminal_modes)
7376 (IT_set_frame_parameters): Use tty->termscript instead of a global
7377 variable termscript.
7378 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7379 global variable terminal_coding. Don't refer to
7380 Vnonascii_translation_table.
7381 (internal_terminal_init): Set Vwindow_system in current_kboard.
7382 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7383 Announce date and time of session start, if termscript is open.
7384 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7385 term.c:init_tty). Open termscript only of not already open.
7386 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7387 here instead of dos_ttraw. Don't initialize display if this is an
7388 initial tty. Don't set FRAME_FONT.
7389 (Vwindow_system_version): Bump to 23.
7390 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7391 is available, set up mouse_position_hook.
7392 (dos_ttraw, IT_set_terminal_modes): If called with initial
7393 terminal, do nothing.
7394 (IT_set_frame_parameters): Handle the Qtty_type frame
7395 parameter by calling internal_terminal_init.
7396 (dos_set_window_size, show_mouse_face)
7397 (clear_mouse_face, IT_note_mode_line_highlight)
7398 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7399 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7400 (initialize_msdos_display): New function.
7401 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7402 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7403 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7404 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7405 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7406 (request_sigio, unrequest_sigio): Don't define, now defined on
7407 sysdep.c.
7408 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7409
7410 * term.c [MSDOS]: Include msdos.h.
7411 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7412 conditional to DOS_NT. Allow only one call to this function in a
7413 session. Don't allocate a new struct tty_display_info; instead,
7414 reuse the_only_display_info. Call get_tty_size to get screen
7415 dimensions. Call init_baud_rate to set bad_rate.
7416 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7417 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7418 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7419 (get_tty_terminal, get_named_tty, Ftty_type)
7420 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7421 output_termcap.
b8ff72fa
SM
7422 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7423 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7424 only when subprocesses are supported.
aac0c6e3
MR
7425
7426 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7427 f->output_data.x.
7428 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7429 terminal devices.
7430
5582fbc7 7431 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7432 x_output.
7433 (FRAME_FONT): Use output_data.tty.
7434 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7435 (struct x_display_info): Rename from display_info. Update all users in
7436 msdos.c.
aac0c6e3 7437 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7438 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7439 (dos_ttraw): Update prototype.
7440
7441 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7442 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7443
74442008-08-23 Jason Rumney <jasonr@gnu.org>
7445
7446 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7447 (fn_TIFFSetDirectory): New library function used.
7448 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7449 (tiff_load): Use :index to select among multiple images. Set count
7450 property when multiple images exist.
7451 (gif_format): Use :index, not :image.
7452
74532008-08-23 Chong Yidong <cyd@stupidchicken.com>
7454
7455 * xdisp.c (try_scrolling): Check INT_MAX instead of
7456 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7457 to obtain INT_MAX.
7458
74592008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7460
7461 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7462
74632008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7464
7465 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7466 GNUstep library location.
7467
74682008-08-21 Chong Yidong <cyd@stupidchicken.com>
7469
7470 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7471 before using it.
7472
7473 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7474
74752008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7476
7477 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7478 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7479 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7480 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7481 (EmacsApp-cursor_blink_handler): Remove declaration.
7482 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7483 match 01 Feb 2008 changes in xterm.c.
7484 (ns_read_socket): Add cast to avoid warning.
7485 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7486 GNUstep.
7487
74882008-08-20 Chong Yidong <cyd@stupidchicken.com>
7489
7490 * xselect.c (x_get_foreign_selection): Return nil if desired
7491 selection could not be obtained, instead of signalling an error.
7492
74932008-08-20 David Reitter <david.reitter@gmail.com>
7494
7495 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7496 * nsterm.m: Remove ns-specific code for cursor blinking.
7497 (ns_draw_window_cursor): Clear cursor properly rather than
7498 redrawing the area. Respect width of bar cursors.
7499 These changes enable the use of generic blink-cursor-mode and
7500 generic cursor types in NS and support smooth cursor movements (do
7501 not blink off after command).
7502 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7503 Nextstep, too.
7504
75052008-08-19 Kenichi Handa <handa@m17n.org>
7506
7507 * font.c (Vfont_log_deferred): New variable.
7508 (font_add_log): Check Vfont_log_deferred.
7509 (font_deferred_log): New function.
7510
7511 * font.h (font_deferred_log): Extern it.
7512
7513 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7514 for sorting.
7515 (face_for_char): Use deferred log.
7516
75172008-08-18 Kenichi Handa <handa@m17n.org>
7518
7519 * fontset.c (face_for_char): Add font log.
7520
7521 * font.c (font_add_log): Add the font properties :script, :lang,
7522 and :otf in the log.
7523
75242008-08-17 Chong Yidong <cyd@stupidchicken.com>
7525
7526 * xdisp.c: Remove dead code.
7527 (handle_invisible_prop, next_overlay_string): Defer call to
7528 setup_for_ellipsis.
7529 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7530
75312008-08-15 Chong Yidong <cyd@stupidchicken.com>
7532
7533 * xfaces.c (lookup_derived_face): Properly handle possible zero
7534 return value of get_lface_attributes.
7535 (merge_faces): Don't tell lookup_derived_face to signal an error
7536 if face is not found.
7537
7538 * dired.c (Fdirectory_files): Doc fix.
7539
7540 * process.c (make_process): Initialize kill_without_query struct
7541 member.
7542
75432008-08-15 Eli Zaretskii <eliz@gnu.org>
7544
7545 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7546 Alternative calculation of totphys for Visual Studio 6.
7547
7548 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7549
7550 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7551 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7552 All users changed.
7553 (stat): Only root directory passed to GetDriveType. Allow RAM
7554 disk as well as local fixed disk when w32-get-true-file-attributes
7555 is set to `local'.
7556 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7557 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7558 (w32_cached_id, w32_add_to_cache): New functions.
7559 (get_name_and_id): Look account names in the cache before calling
7560 lookup_account_sid.
7561 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7562 New initialization flags.
7563 (globals_of_w32): Initialize them to zero.
7564 (w32_system_process_attributes): Use w32_cached_id and
7565 w32_add_to_cache.
7566
75672008-08-14 Lawrence Mitchell <wence@gmx.li>
7568
7569 * lread.c (Fread_char, Fread_char_exclusive): If no character
7570 event is read before timeout is reached, return nil, rather than
7571 converting to a number.
7572
75732008-08-14 Chong Yidong <cyd@stupidchicken.com>
7574
7575 * fns.c (use_dialog_box): Doc fix.
7576
7577 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7578 on OS X.
7579
75802008-08-13 Chong Yidong <cyd@stupidchicken.com>
7581
7582 * frame.c (Qns_parse_geometry): New var.
7583 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7584
75852008-08-11 Chong Yidong <cyd@stupidchicken.com>
7586
7587 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7588 space character in calculating tabs.
7589
75902008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7591
7592 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7593
75942008-08-10 Glenn Morris <rgm@gnu.org>
7595
7596 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7597 silence gcc "limited range of data type" warnings in some
7598 make_fixnum_or_float calls.
7599
76002008-08-09 Eli Zaretskii <eliz@gnu.org>
7601
7602 * w32.c (w32_system_process_attributes): If the process does not
7603 exist, return nil.
7604
7605 * w32.c: Include thelp32.h, psapi.h and coding.h.
7606 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7607 declarations.
7608 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7609 (Process32Next_Proc): New typedefs.
7610 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7611 (g_b_init_process32_next, g_b_init_open_thread_token)
7612 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7613 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7614 (g_b_init_get_process_working_set_size)
7615 (g_b_init_global_memory_status_ex): New static variables.
7616 (globals_of_w32): Initialize them.
7617 (create_toolhelp32_snapshot, process32_first, process32_next)
7618 (open_thread_token, impersonate_self, revert_to_self)
7619 (get_process_memory_info, get_process_working_set_size)
7620 (global_memory_status, global_memory_status_ex): New wrapper
7621 functions.
7622 (w32_list_system_processes, w32_system_process_attributes)
7623 (enable_privilege, restore_privilege, ltime, process_times):
7624 New functions.
7625 (convert_time_raw): New function.
7626 (convert_time): Remove conversion of FILETIME into time in 100
7627 nsec units, call convert_time_raw instead.
7628
7629 * process.h (w32_list_system_processes, w32_system_process_attributes):
7630 Add prototypes.
7631 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7632 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7633 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7634 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7635
7636 * process.c (Fsystem_process_attributes): Doc fix.
7637
76382008-08-08 Chong Yidong <cyd@stupidchicken.com>
7639
7640 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7641 a continued multi-char glyph; if so, advance to the actual glyph.
7642
76432008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7644
7645 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7646
7647 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7648 (.m.o): Use it.
7649 * config.in: Regenerate.
7650
76512008-08-07 Chong Yidong <cyd@stupidchicken.com>
7652
7653 * xdisp.c (redisplay_window): Revert last change.
7654 (try_window): Check bottom scroll margin too.
7655
76562008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7657
7658 * config.in: Regenerate.
7659
7660 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7661 -list-load-path-shadows'.
7662 (nsgui.h): Reduce number of things depending on it.
7663
76642008-08-06 Chong Yidong <cyd@stupidchicken.com>
7665
7666 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7667 instead of window-end which does the wrong thing at eob.
7668 (try_cursor_movement): Minor optimization.
7669 (redisplay_window): If scroll margin is defined, don't assume
7670 window doesn't need scrolling.
7671
76722008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7673
7674 * config.in: Regenerate.
7675
7676 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7677 (mostlyclean): Don't delete *.d under NS.
7678
7679 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7680
76812008-08-06 Kenichi Handa <handa@m17n.org>
7682
7683 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7684
76852008-08-06 Andreas Schwab <schwab@suse.de>
7686
7687 * config.in: Regenerate.
7688
76892008-08-05 Chong Yidong <cyd@stupidchicken.com>
7690
7691 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7692 forcing a window start.
7693
7694 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7695 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7696
76972008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7698
7699 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7700 argument.
7701
77022008-08-05 Juanma Barranquero <lekktu@gmail.com>
7703
7704 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7705 <scroll-down-aggressively, before-change-functions>:
7706 <after-change-functions>: Reflow docstrings.
7707
77082008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7709 Ken Raeburn <raeburn@gnu.org>
7710
7711 Dock menu customization, based on a patch by Ken Raeburn, plus some
7712 other fixes.
7713 * nsmenu.m (dockMenu): New variable.
7714 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7715
7716 * nsterm.h (dockMenu): Declare.
7717
7718 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7719 (ns_term_init): Initialize dockMenu.
7720 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7721 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7722 left.
7723
7724 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7725
77262008-08-04 Chong Yidong <cyd@stupidchicken.com>
7727
7728 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7729
7730 * config.in: Regenerate.
7731
77322008-08-04 Seiji Zenitani <zenitani@mac.com>
7733
7734 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7735
77362008-08-04 Chong Yidong <cyd@stupidchicken.com>
7737
7738 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7739
77402008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7741
7742 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7743
7744 * keyboard.h: Comment an #endif.
7745
7746 * lisp.h (have_menus_p): Adjust comment.
7747
7748 * menu.c (find_and_return_menu_selection): Fix comparison with
7749 client_data.
7750
7751 * nsmenu.m (popup_activated_flag): New variable.
7752 (popup_activated): New function.
7753 (menu-or-popup-active-p): New exported lisp definition.
7754 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7755 when popup done.
7756 (ns_popup_dialog): Set popup_activated_flag.
7757
7758 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7759 version for GNUstep (handled by conditional typedef in nsterm.m).
7760 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7761 in rgb.txt).
7762
7763 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7764
7765 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7766
7767 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7768
7769 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7770 shortcircuit if popup_activated like GTK and X toolkit.
7771
7772 * m/inter386.h: Change DARWIN to DARWIN_OS.
7773
7774 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7775 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7776 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7777 comment on NO_SOCK_SIGIO.
7778
77792008-08-03 Chong Yidong <cyd@stupidchicken.com>
7780
7781 * nsterm.m (windowDidResize): Remove stopModal call.
7782
77832008-08-03 Andreas Schwab <schwab@suse.de>
7784
7785 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7786 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7787
77882008-08-02 Chong Yidong <cyd@stupidchicken.com>
7789
7790 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7791 Don't use uninitialized pointer variable when using getrlimit.
7792
77932008-08-02 Jason Rumney <jasonr@gnu.org>
7794
7795 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7796
77972008-08-02 Eli Zaretskii <eliz@gnu.org>
7798
7799 * alloc.c (NSTATICS): Bump to 0x640.
7800
7801 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7802
7803 * lisp.h: Add prototype for directory_files_internal.
7804
7805 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7806 New functions.
7807 (syms_of_process): Defsubr them. Add initializations for various
7808 Q* symbols used in procfs_system_process_attributes.
7809 (procfs_list_system_processes, procfs_system_process_attributes)
7810 [HAVE_PROCFS]: New functions.
7811 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7812 (procfs_get_total_memory): New functions.
7813
78142008-08-01 Juanma Barranquero <lekktu@gmail.com>
7815
7816 * xfaces.c (Fx_load_color_file): Fix previous change;
7817 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7818
78192008-08-01 Michael Albinus <michael.albinus@gmx.de>
7820
7821 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7822
78232008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7824
7825 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7826
78272008-08-01 Chong Yidong <cyd@stupidchicken.com>
7828
7829 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7830
7831 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7832 define NSApplicationDelegateReplySuccess.
7833 (EmacsView -converstationIdentifier): Use long instead of
7834 NSInteger for GNUstep, since it doesn't have NSInteger.
7835
7836 * xmenu.c: Revert last change.
7837
7838 * keyboard.h: Fix last change.
7839
78402008-08-01 Juanma Barranquero <lekktu@gmail.com>
7841
7842 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7843 on Windows.
7844
78452008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7846
7847 Warning clearing and clean-up in NS port.
7848 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7849 Add prototypes.
7850 * nsgui.h (FACE_DEFAULT): Remove, unused.
7851 (XGCValues): Change colors to unsigned long.
7852 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7853 nsterm.m.
7854 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7855 (ns_list_fonts): Remove, unused.
7856 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7857 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7858 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7859 (nsfont_draw): Compare face colors to 0, not nil.
7860 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7861 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7862 (-addSubmenuWithTitle:): Use NSMenuItem class.
7863 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7864 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7865 (ns_clip_to_row): Make gc arg a BOOL.
7866 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7867 ns_clip_to_row() call.
7868 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7869 used). Cast FRAME_FONT assignments.
7870 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7871 (ns_string_to_lispmod): Change arg to const char.
7872 (ns_term_init): Use NSMenuItem class.
7873 (EmacsApp -openFile:): Move to different section of file.
7874 (EmacsApp -application:openFiles:): Don't return a value, call
7875 -replyToOpenOrPrint:.
7876 (EmacsView -keyDown:): Fix up cast.
7877 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7878 (EmacsView -menuDown:): Cast tag in call to
7879 find_and_call_menu_selection().
7880 (ns_list_fonts): Remove, unused.
7881 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7882 (ns_fontname_to_xlfd): Make static.
7883 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7884 Remove prototypes (now in keyboard.h).
7885 (next_menubar_widget_id): Remove, unused.
7886 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7887 Remove prototypes (now in keyboard.h).
7888 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7889
78902008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7891
7892 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7893 (floatfns.o): Depend on syssignal.h.
7894 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7895
7896 * systty.h: Fix previous change that removed BSD_TERMIOS.
7897 Add comments to #ifdefs.
7898
78992008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7900
7901 * w32fns.c (w32-load-color-file): Remove.
7902 (x-open-connection): Use renamed Fx_load_color_file.
7903 * xfaces.c (x-load-color-file): Add.
7904 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7905 Emacs.clr.
7906 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7907
79082008-07-31 Michael Albinus <michael.albinus@gmx.de>
7909
7910 * dbusbind.c (Fdbus_call_method_asynchronously)
7911 (Fdbus_method_error_internal): New defuns.
7912 (xd_read_message): Handle also reply messages.
7913 (Vdbus_registered_functions_table): Extend docstring.
7914
79152008-07-31 Juanma Barranquero <lekktu@gmail.com>
7916
7917 * keyboard.c (gobble_input): Fix previous change.
7918
79192008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7920
7921 * bitmaps/README:
7922 * xfns.c:
7923 * termcap.c:
7924 * term.c:
7925 * syswait.h:
7926 * systty.h:
7927 * systime.h:
7928 * syssignal.h:
7929 * sysdep.c:
7930 * process.h:
7931 * process.c:
7932 * print.c:
7933 * ndir.h:
7934 * lread.c:
7935 * keyboard.c:
7936 * getpagesize.h:
7937 * floatfns.c:
7938 * fileio.c:
7939 * emacs.c:
7940 * doc.c:
7941 * dispnew.c:
7942 * dired.c:
7943 * data.c:
7944 * callproc.c:
7945 * buffer.c:
7946 * README:
7947 * Makefile.in:
7948 * s/template.h:
7949 * s/msdos.h:
7950 * m/vax.h: Remove VMS support.
7951 * s/vms.h:
7952 * vlimit.h:
7953 * uaf.h:
7954 * temacs.opt:
7955 * param.h:
7956 * ioctl.h: Remove file.
7957
79582008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7959
7960 * s/ms-w32.h (MULTI_KBOARD): Remove.
7961 * xterm.c:
7962 * xselect.c:
7963 * xfns.c:
7964 * window.c:
7965 * w32term.c:
7966 * w32fns.c:
7967 * terminal.c:
7968 * termhooks.h:
7969 * term.c:
7970 * sysdep.c:
7971 * keyboard.h:
7972 * keyboard.c:
7973 * frame.h:
7974 * frame.c:
7975 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7976 * config.in: Regenerate.
7977
79782008-07-30 Jason Rumney <jasonr@gnu.org>
7979
7980 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7981
7982 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7983 (w32font_open_internal): Get unicode version of textmetrics.
7984 Don't enable or disable glyph indices here.
7985 (w32font_open): Disable use of glyph indices.
7986
7987 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7988
79892008-07-30 Chong Yidong <cyd@stupidchicken.com>
7990
7991 * minibuf.c (Vread_buffer_function): Doc fix.
7992
79932008-07-30 John Paul Wallington <jpw@pobox.com>
7994
7995 * minibuf.c (read_buffer_completion_ignore_case): New var.
7996 (Fread_buffer): Use it.
7997
79982008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7999
8000 * systty.h (sensemode): Remove empty #if. Remove reference to
8001 BSD_TERMIOS, unused.
8002
8003 * sysdep.c: Remove reference to DGUX.
8004 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8005
8006 * config.in: Regenerate.
8007
80082008-07-30 Jason Rumney <jasonr@gnu.org>
8009
8010 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8011
80122008-07-29 Jason Rumney <jasonr@gnu.org>
8013
8014 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8015 is populated.
8016 (uniscribe_encode_char): Always use uniscribe.
8017 Avoid using context if cache is populated.
8018
80192008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8020
8021 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8022 open menu.
8023
8024 * gtkutil.c (menu_nav_ended): Remove.
8025 (create_menus): Remove signal connect for menu_nav_ended.
8026
80272008-07-28 Chong Yidong <cyd@stupidchicken.com>
8028
8029 * xdisp.c (redisplay_window): Check return value of
8030 compute_window_start_on_continuation_line before forcing a window
8031 start.
8032
80332008-07-28 Jason Rumney <jasonr@gnu.org>
8034
8035 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8036
8037 * w32term.c (w32_enable_unicode_output, cleartype_active):
8038 Remove obsolete display options.
8039 (x_draw_glyph_string_background): Don't use old cleartype_active
8040 workaround.
8041 (w32_initialize): Remove cleartype_active initialization.
8042 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8043
80442008-07-28 Andreas Schwab <schwab@suse.de>
8045
8046 * lisp.h (init_weak_hash_tables, syms_of_font)
8047 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8048 (remove_hash_entry): Don't declare.
8049 * eval.c (maybe_call_debugger): Make static and move before use.
8050 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8051 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8052 * xterm.h (x_set_frame_alpha): Declare.
8053
80542008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8055
8056 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8057 (create_menus): Connect selection-done to menu_nav_ended.
8058
80592008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8060
8061 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8062 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8063 parameter with read of 'alpha' one.
8064 (Qns_frame_parameter): Remove.
5582fbc7 8065 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8066 (next-selection-coding-system, Vselection_coding_system)
8067 (Vnext_selection_coding_system): Drop.
8068
80692008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8070
8071 * nsfns.m (do-applescript, do_applescript): Rename to
8072 ns-do-applescript, ns_do_applescript, and move within file.
8073
80742008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8075
8076 Remove support for Mac Carbon.
8077 * mactoolbox.c:
8078 * macterm.h:
8079 * macterm.c:
8080 * macselect.c:
8081 * macmenu.c:
8082 * macgui.h:
8083 * macfns.c:
8084 * mac.c: Remove file.
8085 * s/darwin.h:
8086 * m/intel386.h:
8087 * xfaces.c:
8088 * xdisp.c:
8089 * window.c:
8090 * tparam.c:
8091 * termhooks.h:
8092 * termcap.c:
8093 * term.c:
8094 * syssignal.h:
8095 * sysselect.h:
8096 * sysdep.c:
8097 * process.c:
8098 * lread.c:
8099 * lisp.h:
8100 * keyboard.c:
8101 * image.c:
8102 * fringe.c:
8103 * frame.h:
8104 * frame.c:
8105 * fontset.c:
8106 * font.h:
8107 * font.c:
8108 * fns.c:
8109 * fileio.c:
8110 * emacs.c:
8111 * dispnew.c:
8112 * dispextern.h:
8113 * config.in:
8114 * atimer.c:
2ae37cf0 8115 * Makefile.in: Remove code for Carbon.
aac0c6e3 8116
f0131492 81172008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8118
8119 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8120
81212008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8122
8123 * macterm.h (kCGBitmapByteOrder32Host): New define for
8124 non-universal SDKs.
8125
8126 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8127 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8128
8129 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8130 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8131
81322008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8133
8134 * w32inevt.c: Include dispextern.h.
8135
81362008-07-26 Andreas Schwab <schwab@suse.de>
8137
8138 * print.c (print_object): Fix off-by-one in last change.
8139
81402008-07-25 Juanma Barranquero <lekktu@gmail.com>
8141
8142 * term.c (syms_of_term): Don't initialize default_orig_pair,
8143 default_set_foreground and default_set_background on Windows.
8144
81452008-07-25 Jason Rumney <jasonr@gnu.org>
8146
8147 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8148 ScriptItemize. Clean up return value checking. Remove unused
8149 variables.
8150 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8151 shaping engine.
8152
8153 * w32font.c (w32font_has_char): Handle the case where we can't
8154 determine the script for a character.
8155
81562008-07-25 Chong Yidong <cyd@stupidchicken.com>
8157
8158 * term.c (syms_of_term): Initialize default_orig_pair,
8159 default_set_foreground, and default_set_background.
8160
8161 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8162 clash (bug#86).
8163 (getloadavg): Callers changed.
8164
8165 * image.c (svg_load_image): Fix last change.
8166 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8167 image size is valid. Use g_object_unref instead of deprecated
8168 rsvg_handle_free to free rsvg handle.
8169 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8170
81712008-07-25 Jason Rumney <jasonr@gnu.org>
8172
8173 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8174 surrogates before looking up glyph index.
8175 (w32font_text_extents): Encode as surrogates if falling back to
8176 functions that need UTF-16 wide chars.
8177
8178 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8179 BMP as surrogates before looking up glyph index.
8180
81812008-07-25 Chong Yidong <cyd@stupidchicken.com>
8182
8183 * image.c (svg_load_image): Check for failure in return value of
8184 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8185
81862008-07-25 Jason Rumney <jasonr@gnu.org>
8187
8188 * w32font.c (Fx_select_font): Reverse sense of second arg.
8189
81902008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8191
8192 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8193 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8194
8195 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8196 (PURESIZE): Use it.
8197
81982008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8199
8200 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8201 * m/alpha.h (TEXT_END):
8202 * m/ibmrs6000.h (TEXT_END):
8203 * m/macppc.h (TEXT_END):
8204 * s/darwin.h (TEXT_END):
8205 * s/msdos.h (TEXT_END): Remove, unused.
8206 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8207 * s/cygwin.h: Remove comment.
8208
8209 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8210 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8211 * m/intel386.h (DOT_GLOBAL_START):
8212 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8213 (USG): Remove, file not used on USG platforms.
8214
8215 * Makefile.in (HAVE_X11): Remove empty #else.
8216
82172008-07-24 Andreas Schwab <schwab@suse.de>
8218
8219 * fileio.c (Finsert_file_contents): Properly adjust undo list
8220 after format conversion.
8221
82222008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8223
8224 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8225 (menu_nav_ended): Remove.
8226 (create_menus): Remove signal connect for menu_nav_ended.
8227 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8228 create_menus.
8229 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8230
82312008-07-23 Jason Rumney <jasonr@gnu.org>
8232
8233 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8234 with opened font.
8235 (w32font_open): Set font type to gdi.
8236
8237 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8238
82392008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8240
8241 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8242 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8243 defines it.
8244 * unexec.c (ADDR_CORRECT): Define unconditionally.
8245
8246 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8247
8248 * unexec.c: Remove code depending on !COFF and USG, the file is
8249 not used for such systems.
8250
8251 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8252 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8253 (LD_SWITCH_SYSTEM_1): Remove, update users.
8254
8255 * s/darwin.h (DATA_END):
8256 * m/intel386.h (DATA_END):
8257 * m/ibmrs6000.h (DATA_END):
8258 * m/alpha.h (DATA_END): Remove, unused.
8259
8260 * config.in: Regenerate.
8261 * s/ms-w32.h (subprocesses): Define unconditionally.
8262 * s/template.h (subprocesses): Update comment.
8263 * s/vms.h (subprocesses):
8264 * s/usg5-4.h (subprocesses):
8265 * s/hpux10-20.h (subprocesses):
8266 * s/gnu-linux.h (subprocesses):
8267 * s/cygwin.h (subprocesses):
8268 * s/bsd-common.h (subprocesses):
8269 * s/aix4-2.h (subprocesses):
8270 * s/darwin.h (subprocesses): Do not define, defined by default now.
8271
8272 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8273 Remove all references.
8274 (temacs): Add GNUstep specific ld flags.
8275
8276 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8277 similarly to what X does.
8278
82792008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8280
8281 * nsfns.m (x-list-fonts): Remove.
8282 (syms_of_nsfns): Drop the x-list-fonts declaration.
8283 * nsterm.m: Get rid of remaining "//" comments.
8284
82852008-07-22 Chong Yidong <cyd@stupidchicken.com>
8286
8287 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8288
8289 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8290 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8291 (Fns_own_selection_internal, Fx_disown_selection_internal)
8292 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8293
8294 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8295 ... */' style of docstrings. Doc fixes.
8296
82972008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8298
8299 * terminfo.c (UP, BC, PC): Undo previous change.
8300
8301 * nsfns.m: Rename ns prefixed functions/variables to the
8302 corresponding x versions. Update references.
8303
83042008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8305
8306 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8307
83082008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8309
8310 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8311 Remove forwarding functions.
8312 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8313 non-static.
8314 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8315 non-static.
8316 (ns_frame_parm_handlers): Use the new names.
8317 (syms_of_nsfns): Move to the end of file.
8318
8319 * nsterm.m (syms_of_nsterm): Move to the end of file.
8320
8321 * dispnew.c (init_display): Remove code for X10.
8322
83232008-07-22 Jason Rumney <jasonr@gnu.org>
8324
8325 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8326 bare drive.
8327
83282008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8329
8330 * nsterm.m (syms_of_nsterm): Remove debugging println.
8331
83322008-07-22 David Reitter <david.reitter@gmail.com>
8333
8334 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8335 Carbon implementation of the same functionality: execute arbitrary
8336 AppleScript code.
8337
83382008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8339
8340 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8341 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8342 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8343 (Fx_display_mm_height, Fx_display_mm_width)
8344 (Fx_display_backing_store, Fx_display_visual_class)
8345 (Fx_display_save_under, Fx_open_connection)
8346 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8347 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8348 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8349 (Fx_display_pixel_width, Fx_display_pixel_height)
8350 (Fx_display_usable_bounds, Fx_display_planes)
8351 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8352 ... */' style of docstrings.
8353
83542008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8355
8356 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8357 on this platform.
8358 (mips):
8359 * m/iris4d.h (mips): Do not define.
8360 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8361
8362 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8363
8364 * image.c:
8365 * nsfns.m:
8366 * nsselect.m:
8367 * nsterm.h:
8368 * nsterm.m: Rename ns prefixed functions/variables to the
8369 corresponding x versions. Update references.
8370
8371 * m/ibms390x.h (NO_REMAP): Do not undefine.
8372
8373 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8374
83752008-07-21 Chong Yidong <cyd@stupidchicken.com>
8376
8377 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8378 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8379 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8380 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8381 (Fns_display_mm_height, Fns_display_mm_width)
8382 (Fns_display_backing_store, Fns_display_visual_class)
8383 (Fns_display_save_under, Fns_open_connection)
8384 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8385 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8386 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8387 (Fns_display_pixel_width, Fns_display_pixel_height)
8388 (Fns_display_usable_bounds, Fx_display_planes)
8389 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8390
83912008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8392
8393 * print.c (print_object): Check print_depth before searching for
8394 circularities.
8395
83962008-07-21 Michael Albinus <michael.albinus@gmx.de>
8397
8398 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8399 only sprintf.
8400
84012008-07-21 Kenichi Handa <handa@m17n.org>
8402
8403 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8404
84052008-07-20 Andreas Schwab <schwab@suse.de>
8406
8407 * syntax.c (find_start_pos, find_start_value)
8408 (find_start_value_byte, find_start_begv, find_defun_start)
8409 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8410
84112008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8412
8413 * s/sol2-3.h: Insert contents of s/sol2.h.
8414 (LD_SWITCH_SYSTEM): Remove redundant definition.
8415 * s/sol2.h: Remove, unused.
8416
84172008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8418
8419 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8420
84212008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8422
8423 * Makefile.in (ns_appdir): Fix typo in find command.
8424
84252008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8426
8427 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8428
8429 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8430 added not supported anymore.
8431
8432 * s/usg5-4-2.h (LIBS_SYSTEM):
8433 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8434
8435 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8436 * s/lynxos.h (GETPGRP_NO_ARG):
8437 * s/hpux10-20.h (NO_SIOCTL_H):
8438 * s/gnu.h (GETPGRP_NO_ARG):
8439 * s/gnu-linux.h (NO_SIOCTL_H):
8440 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8441 * s/cygwin.h (GETPGRP_NO_ARG):
8442 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8443 (C_DEBUG_SWITCH): Remove duplicate definition.
8444
8445 * m/ibms390.h: Remove boilerplate comments.
8446
8447 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8448
8449 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8450 (wait_reading_process_output): Remove code for SunOS, platform not
8451 supported anymore. Use SOLARIS2 instead of sun.
8452
84532008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8454
8455 * font.c (font_open_by_name): Under NS, default lface height to zero.
8456 (font_open_for_lface): Under NS, set size based on frame fontsize.
8457 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8458 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8459
84602008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8461
8462 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8463 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8464 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8465 YES/NO.
8466 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8467 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8468 * Makefile.in (clean): Clear out build destination dir.
8469
84702008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8471
8472 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8473 xterm, xselect.
8474 * lisp.h: Remove declaration of hash_remove.
8475 * nsgui.h: Remove redefinitions of hash_remove.
8476 * fns.c (hash_remove): Rename to hash_remove_from_table.
8477
84782008-07-19 Seiji Zenitani <zenitani@mac.com>
8479
8480 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8481 strdup() the family UTF8String before modifying it.
8482
84832008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8484
8485 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8486 NS_FACE_BACKGROUND with 0 instead of nil.
8487 * nsfont.m (nsfont_draw): Same.
8488
84892008-07-19 Chong Yidong <cyd@stupidchicken.com>
8490
8491 * nsfns.m (ns_set_background_color): Fix crash.
8492
84932008-07-18 Chong Yidong <cyd@stupidchicken.com>
8494
8495 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8496
84972008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8498
8499 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8500
85012008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8502
8503 * gtkutil.c: Include <config.h> instead of "config.h".
8504
8505 * lisp.h (Foverlay_buffer): Add EXFUN.
8506
8507 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8508 child process to complete child_setup. Undo 2005-09-21 change.
8509
8510 * s/darwin.h: Mention setsid after vfork.
8511
85122008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8513
8514 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8515 Depend on macgui.h.
8516
8517 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8518 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8519
8520 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8521 and f19.
8522 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8523
8524 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8525 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8526 Remove enumerators.
8527
8528 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8529 Check if FACE_FROM_ID returns NULL.
8530
85312008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8532
8533 * w32inevt.c (change_frame_size): Remove extern declaration.
8534 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8535 change_frame_size.
8536
85372008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8538
8539 * getloadavg.c: Revert last change (2008-07-15).
8540
85412008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8542
8543 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8544 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8545 from configure.
8546
85472008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8548
8549 * s/sol2.h:
8550 * s/sol2-4.h: Reorganize conditionals.
8551
8552 * ecrt0.c: Remove code depending on m68000, not used anymore.
8553
8554 * fns.c (hash_remove): Make static.
8555 * lisp.h (hash_remove): Don't prototype.
8556
8557 * m/ibmrs6000.h:
8558 * m/ibms390x.h:
8559 * m/macppc.h: Remove boilerplate comments.
8560
8561 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8562 Solaris, which does not need them.
8563
8564 * m/vax.h: Remove comments about unsupported systems.
8565
8566 * s/darwin.h: Reorganize ifdefs.
8567
85682008-07-17 Andreas Schwab <schwab@suse.de>
8569
8570 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8571
85722008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8573
8574 Use SDATA. Follow coding convention of placing operators at
8575 beginning of next line rather than end of previous line, and placing
8576 spaces around infix operators.
8577
8578 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8579 in case it was defined already.
8580 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8581 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8582 ns_default.
8583 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8584 Lisp_Objects.
8585 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8586 (ns_defined_color, ns_color_to_lisp): Declare.
8587 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8588 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8589 it's accepted even with USE_LISP_UNION_TYPE.
8590 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8591 (update_frame_tool_bar): Remove apparently obsolete tests for
8592 non-integerness of f->tool_bar_lines.
8593 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8594 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8595 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8596 (nsfont_open): Don't confuse NULL for Qnil.
8597 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8598 * menu.h (find_and_call_menu_selection):
8599 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8600 (find_and_return_menu_selection): Always return something.
8601 * frame.h: Include dispextern.h for Display_Info.
8602 (display_x_get_resource): Declare.
8603
86042008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8605
8606 * syntax.c: Remove stdio.h include accidentally introduced in
8607 Emacs.app commit.
8608 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8609 NS_IMPL_COCOA.
8610 * keyboard.c (handle_async_input, input_available_signal): Remove
8611 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8612
86132008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8614
8615 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8616 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8617 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8618 Use SDATA.
8619
8620 * keymap.c: Remove all NS-specific code.
8621 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8622 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8623 where_is_preferred_modifier, return a different value depending on how
8624 preferred is the binding.
8625 (where_is_internal): Adjust accordingly.
8626 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8627 Adjust to new preferred_sequence_p.
8628 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8629 * keyboard.c (parse_solitary_modifier): Not static any more.
8630 * keyboard.h (parse_solitary_modifier): Declare.
8631
86322008-07-16 Andreas Schwab <schwab@suse.de>
8633
8634 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8635 of easymenu.
8636
86372008-07-16 Chong Yidong <cyd@stupidchicken.com>
8638
8639 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8640 that we don't move off the line.
8641
86422008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8643
8644 * keyboard.c (Qsuper): Remove.
8645 (parse_menu_item): Don't call where_is_internal specially for NS.
8646
86472008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8648
8649 * s/gnu-linux.h: Remove boilerplate comments.
8650
8651 * m/alpha.h (__ELF__): Consolidate conditions.
8652
8653 * m/m68k.h (linux): Use GNU_LINUX instead.
8654 Remove boilerplate comments.
8655
8656 * m/intel386.h: Undo refactoring from previous change.
8657 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8658 too, remove dead code.
8659 (linux): Use GNU_LINUX instead.
8660
86612008-07-16 Jason Rumney <jasonr@gnu.org>
8662
8663 * w32gui.h: Repeat 26 June changes lost by last change.
8664
86652008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8666
8667 * systty.h: Remove code for Aix on 386, unsupported platform.
8668
8669 * s/ms-w32.h: Remove boilerplate comments.
8670 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8671
8672 * s/gnu-linux.h (TERM): Remove support.
8673 (HAVE_SYSVIPC): Remove, unused.
8674 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8675 for this system.
8676
8677 * process.c: Remove support for IRIS, unused.
8678 Remove support for TERM, not relevant anymore.
8679
8680 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8681 used with the definition.
8682
8683 * s/aix4-2.h (static): Do not undef.
8684
8685 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8686 only used on Aix.
8687 (HAVE_SYSVIPC): Remove, unused.
8688
8689 * m/hp800.h (CANNOT_DUMP): Do not undef.
8690
8691 * m/alpha.h: Fix comment.
8692
8693 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8694 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8695 used by this configuration.
8696 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8697 * unexec.c: Remove code depending on HPUX and
8698 USG_SHARED_LIBRARIES, not used with this file. Remove code
8699 depending on IRIS, unused. Remove if 0-ed code.
8700
8701 * s/template.h: Remove comments about static.
8702
8703 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8704 Remove if 0-ed code.
8705 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8706 were the same as the default.
8707 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8708 Remove boilerplate comments.
8709 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8710 (HAVE_SYSVIPC): Remove, unused.
8711 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8712
8713 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8714 Remove boilerplate comments.
8715 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8716 Remove boilerplate comments.
8717 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8718 Remove boilerplate comments.
8719 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8720
8721 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8722 USG systems which do not use DATA_SEG_BITS.
8723 Refactor code. Remove boilerplate comments.
8724
8725 * m/ibms390.h:
8726 * m/m68k.h:
8727 * s/bsd-common.h:
8728 * s/cygwin.h:
8729 * s/darwin.h:
8730 * s/freebsd.h:
8731 * s/gnu.h:
8732 * s/msdos.h: Remove boilerplate comments.
8733
8734 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8735 do not use this file.
aac0c6e3
MR
8736 (IRIS_4D): Remove, unused.
8737
8738 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8739 do not use this file.
aac0c6e3
MR
8740 (SIGN_EXTEND_CHAR):
8741 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8742 * unexmips.c: Remove file, unused.
8743
8744 * editfns.c (Fuser_full_name): Replace the only use of
8745 USER_FULL_NAME with its value.
8746 * config.in: Regenerate.
8747
87482008-07-16 David Reitter <david.reitter@gmail.com>
8749
8750 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8751 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8752
87532008-07-16 Glenn Morris <rgm@gnu.org>
8754
8755 * emacs.c (system-type): Doc fix.
8756
87572008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8758
8759 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8760 If the cache doesn't work, let's fix it, rather than work around it.
8761
87622008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8763
8764 * Makefile.in: Correct additions for nsfont.o in last commit.
8765 * nsfont.m: New file (forgot last commit).
8766
87672008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8768
8769 * callproc.c (set_initial_environment): Initialize
8770 Vprocess_environment under CANNOT_DUMP (fixes crash when
8771 batch-compiling for bootstrap).
8772
87732008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8774 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8775
8776 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8777 fix crash due to different init order.
8778
87792008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8780
8781 Changes and additions for NeXTstep windowing system (Cocoa and
8782 GNUstep) support.
8783
8784 * Makefile.in:
8785 * config.in: Support defines and build commands for NS port.
8786 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8787 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8788 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8789 windowing.
8790 (struct face): Add synth_ital field.
8791 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8792 (init_display): Initialize Vinitial_window_system to "ns" when so
8793 compiled.
8794 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8795 (display_arg): Use under NS.
8796 (main): Under NS, allocate autorelease pool and handle command line
8797 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8798 (standard_args): Add NS-specific args.
8799 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8800 * font.c (DEFAULT_ENCODING): New variable.
8801 (font_find_for_lface): Use it.
8802 (syms_of_font): Load syms_of_nsfont under NS.
8803 * font.h: Declare nsfont_driver when compiled under NS.
8804 * fontset.c: When compiling under NS, include nsterm.h.
8805 (fontset_from_font): Autoconstruct fontset under NS.
8806 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8807 symbol, document and use it.
8808 (do_switch_frame): When for_deletion under Cocoa, add
8809 Fraise_frame(Qnil).
8810 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8811 (x_get_arg): Allow "yes" and "no" as boolean values.
8812 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8813 Qright under Cocoa.
8814 (focus-follows-mouse): Default to 0 under NS.
8815 * frame.h (enum output_method): Add output_ns.
8816 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8817 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8818 (FRAME_WINDOW_P): NS-specific definition.
8819 * fringe.c (max_used_fringe_bitmap): Make public.
8820 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8821 (getloadavg): Use NeXT code under descendant OS's.
8822 * image.c (includes and header section, x_create_bitmap_from_data)
8823 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8824 (image_background_transparent, x_clear_image_1)
8825 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8826 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8827 (x_to_xcolors, x_from_xcolors, x_disable_image)
8828 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8829 other GUIs, including XPM support using code originally written for
8830 Carbon GUI.
8831 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8832 using NS API.
8833 (image_ascent): Use font metrics macros instead of direct struct field
8834 access.
8835 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8836 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8837 Also, handle NS as GTK for menu bar purposes.
8838 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8839 toolkit where they differ.
8840 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8841 use cachelist, still needed under NS.
8842 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8843 (struct widget_value): Define it here for menu.c.
8844 * keymap.c (includes): Include modifier internals.
8845 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8846 NS.
8847 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8848 support for preferring sequences using certain modifiers, specified by
8849 the FIRSTONLY argument.
8850 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8851 under NS GNUstep implementation.
8852 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8853 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8854 * menu.c: Include nsterm.h under NS.
8855 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8856 (free_menubar_widget_tree_value, update_submenu_strings)
8857 (find_and_call_menu_selection): Treat NS as X and NT.
8858 (find_and_return_menu_selection): New function, used for popup menus.
8859 * nsgui.h:
8860 * nsterm.h:
8861 * nsfns.m:
8862 * nsimage.m:
8863 * nsmenu.m:
8864 * nsselect.m:
8865 * nsterm.m: New files.
8866 * process.c (wait_reading_process_output): Under NS, call ns_select()
8867 instead of plain select().
8868 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8869 beginning of buffer.
8870 * sysselect.h (init_process): Rename when compiling under Cocoa to
8871 avoid name conflict.
8872 * termhooks.h (display_info): Add ns_display_info to union.
8873 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8874 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8875 COCOA environment.
8876 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8877 unexec() signature. (Note, this will dump, but the resulting file
8878 crashes; unexosx is used instead; keeping around for reference and
8879 possible aid in getting dump working under GNUstep.)
8880 * w32gui.h (button_type, widget_value): Remove definitions (now in
8881 keyboard.h).
8882 * window.c: Include nsterm.h when compiling under NS.
8883 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8884 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8885 other GUI windowing systems.
8886 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8887 GTK.
8888 (x_consider_frame_title): Under NS, set icon type and frame
8889 modified-state indicator; use ns_set_name_as_filename() when using
8890 formatted title.
8891 (update_window_cursor): Make public when compiling under NS.
8892 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8893 (hourglass_atimer, Vhourglass_delay
8894 * xfaces.c (header section, init_frame_faces, clear_font_table)
8895 (defined_color, unload_color, x_face_list_fonts)
8896 (prepare_face_for_display): Add NS support parallel to other GUIs.
8897 Emulate GCs like other non-X GUIs.
8898 (split_font_name): Don't lowercase font name under NS.
8899 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8900 under NS.
8901 * s/darwin.h: Add support for compilation under NS.
8902
89032008-07-15 Jason Rumney <jasonr@gnu.org>
8904
8905 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8906 (w32_show_hourglass): Rename from show_hourglass.
8907 (w32_hide_hourglass): Rename from hide_hourglass.
8908 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8909 (Vhourglass_delay): Declare extern.
8910 (hourglass_started): Remove.
8911
8912 * xdisp.c (Vhourglass_delay): Remove static.
8913 (hourglass_started, start_hourglass, cancel_hourglass):
8914 Don't include these versions on WINDOWSNT.
8915
89162008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8917
8918 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8919 variables (formerly in xfns.c).
8920 (show_hourglass, hide_hourglass): New prototypes (same).
8921 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8922 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8923 in xfns.c).
8924 (syms_of_xdisp): Declare/initialize display-hourglass,
8925 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8926 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8927 formerly in xfns.c.
8928 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8929 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8930 (start_hourglass, cancel_hourglass): Remove.
8931 (show_hourglass, hide_hourglass): Remove prototypes and static
8932 modifiers.
8933 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8934 hourglass_atimer, hourglass_shown_p declaration/initialization.
8935 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8936 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8937 (start_hourglass, cancel_hourglass): Remove.
8938 (show_hourglass, hide_hourglass): Remove prototypes and static
8939 modifiers.
8940 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8941 hourglass_atimer, hourglass_shown_p declaration/initialization.
8942 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8943 (DEFAULT_HOURGLASS_DELAY): Remove.
8944 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8945 hourglass_shown_p declaration/initialization.
8946
89472008-07-14 Jason Rumney <jasonr@gnu.org>
8948
8949 * w32fns.c (w32_get_arg): Remove wrapper function.
8950 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8951 directly.
8952 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8953
89542008-07-14 Kenichi Handa <handa@m17n.org>
8955
8956 * xfont.c (xfont_open): Add workaround for X's bug.
8957
89582008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8959
8960 * fontset.c: Include <stdio.h> unconditionally.
8961
89622008-07-13 Michael Albinus <michael.albinus@gmx.de>
8963
8964 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8965 for filtering.
8966
89672008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8968
8969 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8970
8971 * m/macppc.h:
8972 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8973
8974 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8975 (SPECIAL_EMACS_INT):
8976 * m/ia64.h (SPECIAL_EMACS_INT):
8977 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8978 * s/gnu.h (NLIST_STRUCT):
8979 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8980 * s/gnu-linux.h (LINUX):
8981 * s/msdos.h (HAVE_FACES):
8982 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8983
8984 * systty.h:
8985 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8986 anymore.
8987
89882008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8989
8990 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8991 always defined as int.
8992
8993 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8994 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8995 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8996 * s/freebsd.h (HAVE_WAIT_HEADER):
8997 * s/bsd-common.h (HAVE_UNION_WAIT):
8998 * s/aix4-2.h (HAVE_WAIT_HEADER):
8999 * m/mips.h (HAVE_UNION_WAIT):
9000 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9001 (COFF, static): Do not define, they are undefined later in the file.
9002
9003 * process.c (update_status): Don't use a union.
9004 (status_convert):
9005 (sigchld_handler): Use int instead of WAITTYPE.
9006
90072008-07-12 Chong Yidong <cyd@stupidchicken.com>
9008
9009 * indent.c (Fvertical_motion): Restore hscroll before moving to
9010 goal column.
9011
90122008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9013
9014 * lisp.h: Remove left over code.
9015
90162008-07-11 Andreas Schwab <schwab@suse.de>
9017
9018 * lisp.h: Fix logic in last change.
9019
9020 * menu.h: New file.
9021 * menu.c: Include it.
9022 * xmenu.c: Likewise.
9023 * Makefile.in: Update dependencies.
9024
90252008-07-11 Kenichi Handa <handa@m17n.org>
9026
9027 * fontset.c (fontset_from_font): Cancel the previous change.
9028
90292008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9030
9031 * lisp.h:
9032 * w32heap.c:
9033 * emacs.c:
9034 * alloc.c: Replace all references of NO_UNION_TYPE with
9035 USE_LISP_UNION_TYPE.
9036
9037 * m/xtensa.h (NO_UNION_TYPE):
9038 * m/vax.h (NO_UNION_TYPE):
9039 * m/template.h (NO_UNION_TYPE):
9040 * m/sparc.h (NO_UNION_TYPE):
9041 * m/mips.h (NO_UNION_TYPE):
9042 * m/macppc.h (NO_UNION_TYPE):
9043 * m/m68k.h (NO_UNION_TYPE):
9044 * m/iris4d.h (NO_UNION_TYPE):
9045 * m/intel386.h (NO_UNION_TYPE):
9046 * m/ibms390x.h (NO_UNION_TYPE):
9047 * m/ibms390.h (NO_UNION_TYPE):
9048 * m/ibmrs6000.h (NO_UNION_TYPE):
9049 * m/ia64.h (NO_UNION_TYPE):
9050 * m/hp800.h (NO_UNION_TYPE):
9051 * m/arm.h (NO_UNION_TYPE):
9052 * m/amdx86-64.h (NO_UNION_TYPE):
9053 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9054 defining it the same.
9055
90562008-07-10 Chong Yidong <cyd@stupidchicken.com>
9057
9058 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9059
90602008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9061
9062 * fileio.c:
9063 * sysdep.c
9064 * systty.h:
9065 * m/ibmrs6000.h:
9066 * m/iris4d.h:
9067 * s/aix4-2.h:
9068 * s/freebsd.h:
9069 * s/gnu-linux.h:
9070 * s/hpux10-20.h:
9071 * s/hpux11.h:
9072 * s/netbsd.h:
9073 * s/sol2-3.h:
9074 * s/sol2-4.h:
9075 * s/sol2.h:
9076 * s/usg5-4.h:
9077 * s/vms.h: Remove references to unused variables.
9078
90792008-07-10 Andreas Schwab <schwab@suse.de>
9080
9081 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9082 pattern before matching the generic family.
9083
90842008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9085
9086 * unexec.c:
9087 * s/vms.h:
9088 * s/usg5-4-2.h:
9089 * s/sol2-5.h:
9090 * s/freebsd.h:
9091 * s/darwin.h: Remove dead code.
9092
9093 * m/template.h:
9094 * m/sparc.h:
9095 * m/mips.h:
9096 * m/m68k.h:
9097 * m/iris4d.h:
9098 * m/intel386.h:
9099 * m/ibms390x.h:
9100 * m/ibms390.h:
9101 * m/ia64.h:
9102 * m/hp800.h:
9103 * m/arm.h:
9104 * m/amdx86-64.h: Remove dead code and references to unused
9105 and compiler defined symbols.
9106
9107 * unexmips.c:
9108 * unexelf.c: Remove references to desupported systems.
9109
9110 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9111
9112 * m/powermac.h: Remove boilerplate comments.
9113 (NO_REMAP): Remove unused definition.
9114
9115 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9116 define them.
9117
91182008-07-10 Kenichi Handa <handa@m17n.org>
9119
9120 * xfont.c (xfont_open): Log the reason of failure.
9121
91222008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9123
9124 * fontset.c (fontset_get_font_group):
9125 * font.c (font_check_otf): Specify argument types.
9126
91272008-07-09 Kenichi Handa <handa@m17n.org>
9128
9129 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9130 non-ASCII char is found.
9131
9132 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9133 (reorder_font_vector): Change the arg preferred_family to font.
9134 Prefer the spec matching with font.
9135 (fontset_get_font_group): New function.
9136 (fontset_find_font): Change the format of an element of a realized
9137 fontset. Use fontset_get_font_group.
9138 (fontset_font): Try the current fontset, the default fontset, the
9139 fallbacks of the current fontset, and the fallbacks of the default
9140 fontset in this order.
9141 (face_for_char): Delete the shortcut to use the current font.
9142 (fontset_from_font): Don't set fonts for Latin in the fontset.
9143
9144 * font.h (font_make_object, font_match_p): Adjust prototypes.
9145
9146 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9147
9148 * font.c (font_make_object): New arg entity and pixelsize.
9149 (font_check_otf_features, font_check_otf): New functions.
9150 (font_match_p): Check :lang, :script, and :otf properties.
9151
9152 * xfont.c (xfont_open): Adjust it for the change of
9153 font_make_object.
9154 (xfont_text_extents): Fix initial setting of metrics.
9155
9156 * ftfont.c (struct ftfont_info): New member index, delete member
9157 fc_charset_idx. Make the member order compatible with struct
9158 xftfont_info.
9159 (fc_charset_table): Change charset names to registry names.
9160 (ftfont_pattern_entity): Delete the args registry and
9161 fc_charset_idx. Change the value of :font-entity property
9162 to (FONTNAME . INDEX). Always set :registry property to
9163 `iso10646-1'.
9164 (struct ftfont_cache_data): New struct.
9165 (ftfont_lookup_cache): New arg for_face.
9166 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9167 (ftfont_driver): Set the member otf_capability.
9168 (ftfont_get_charset): Adjust it for the change of
9169 fc_charset_table.
9170 (OTF_TAG_SYM): New macro.
9171 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9172 for the change of fc_charset_table.
9173 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9174 ftfont_pattern_entity. Add FC_INDEX to objset.
9175 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9176 and ftfont_pattern_entity.
9177 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9178 font_make_object, struct ftfont_info.
9179 (ftfont_has_char): Use ftfont_get_fc_charset.
9180 (ftfont_otf_features, ftfont_otf_capability): New functions.
9181 (ftfont_shape): Use ftfont_get_otf.
9182 (ftfont_text_extents): Fix initial setting of metrics.
9183
9184 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9185 member order compatible with struct ftfont_info.
9186 (xftfont_open): Add FC_CHARSET to the pattern. Set
9187 xftfont_info->ft_size. Don't unlock the face. Check BDF
9188 properties if appropriate.
9189 (xftfont_close): Unlock the face.
9190 (xftfont_anchor_point, xftfont_shape): Deleted.
9191 (syms_of_xftfont): Don't set members anchor_point and shape of
9192 xftfont_driver.
9193
9194 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9195 font_make_object.
9196
9197 * w32font.c (w32font_open): Adjust it for the change of
9198 font_make_object.
9199 (w32font_open_internal): Don't set properties of font_object here.
9200
92012008-07-08 Chong Yidong <cyd@stupidchicken.com>
9202
9203 * macfns.c (x_create_tip_frame):
9204 * w32fns.c (x_create_tip_frame):
9205 * xfns.c (x_create_tip_frame): Pass parameter argument to
9206 face-set-after-frame-default.
9207
9208 * xfaces.c (Finternal_merge_in_global_face): Save merged
9209 attributes for the default face back into the face vector.
9210
92112008-07-08 Andreas Schwab <schwab@suse.de>
9212
9213 * fontset.h: Declare fontset_from_font. Don't declare
9214 new_fontset_from_font and fontset_from_font_name.
9215 * xterm.c: Include "fontset.h".
9216 * Makefile.in (xterm.o): Update dependencies.
9217
92182008-07-08 Glenn Morris <rgm@gnu.org>
9219
9220 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9221 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9222
92232008-07-07 Chong Yidong <cyd@stupidchicken.com>
9224
9225 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9226 (x_set_frame_parameters): Don't bind it.
9227
92282008-07-07 Juanma Barranquero <lekktu@gmail.com>
9229
9230 * w32fns.c (map_w32_filename): Declare extern.
9231
92322008-07-07 Jason Rumney <jasonr@gnu.org>
9233
9234 * w32term.c (WS_EX_LAYERED): Define if not already.
9235
92362008-07-06 Chong Yidong <cyd@stupidchicken.com>
9237
9238 * xfaces.c (set_font_frame_param): Don't try to set the font
9239 parameter if it is still unspecified in the lface.
9240
92412008-07-05 Chong Yidong <cyd@stupidchicken.com>
9242
9243 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9244 face if it didn't already exist.
9245
9246 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9247
92482008-07-05 Andreas Schwab <schwab@suse.de>
9249
9250 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9251
92522008-07-05 Chong Yidong <cyd@stupidchicken.com>
9253
9254 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9255 word-wrapping.
9256 (IT_DISPLAYING_WHITESPACE): New macro.
9257 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9258 when word-wrapping. Simplify word-wrapping logic. Use correct
9259 pixel positions when saving copies of the iterator.
9260 (display_line): Use proper wrap point if the last character on a
9261 line was preceded by whitespace.
9262
92632008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9264
9265 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9266
92672008-07-04 Kenichi Handa <handa@m17n.org>
9268
9269 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9270
9271 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9272
92732008-07-02 Jason Rumney <jasonr@gnu.org>
9274
9275 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9276 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9277
9278 * xdisp.c (next_element_from_display_vector): Move assignment out
9279 of if statement.
9280
92812008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9282
9283 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9284
9285 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9286 (syms_of_fileio): Initialize and export them.
9287 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9288
9289 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9290 (Fsystem_move_file_to_trash): New function.
9291 (syms_of_w32fns): Export it to lisp.
9292
92932008-07-01 Jason Rumney <jasonr@gnu.org>
9294
9295 * w32font.c (w32font_text_extents): Don't count overhang as part
9296 of width.
9297
92982008-06-30 Miles Bader <miles@gnu.org>
9299
9300 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9301 Add `avoid_cursor_p' field.
9302
9303 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9304 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9305 (append_glyph, append_composite_glyph, produce_image_glyph)
9306 (append_stretch_glyph): Initialize avoid_cursor_p.
9307 (get_it_property): Rename from `get_line_height_property'.
9308 (x_produce_glyphs): Use get_it_property.
9309 (handle_line_prefix, push_display_prop): New functions.
9310 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9311 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9312 New variables.
9313 (syms_of_xdisp): Initialize them.
9314
93152008-06-30 Kenichi Handa <handa@m17n.org>
9316
9317 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9318 XftDefaultSubstitute (they are called in XftFontMatch).
9319 (xftfont_open): Fix args to ftfont_font_format.
9320
9321 * ftfont.c (fc_charset_table): New member lang.
9322 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9323 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9324 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9325 (ftfont_open): Fix args to ftfont_font_format.
9326 (ftfont_font_format): New arg filename.
9327
93282008-06-30 Chong Yidong <cyd@stupidchicken.com>
9329
9330 * xfaces.c (Finternal_merge_in_global_face): If default face was
9331 modified, realize it again. Update the font face attribute.
9332
93332008-06-29 Jason Rumney <jasonr@gnu.org>
9334
9335 * w32term.c (x_set_frame_alpha): Fix logic.
9336
93372008-06-29 Kenichi Handa <handa@m17n.org>
9338
9339 * fontset.c (Finternal_char_font): Return font-object instead of
9340 font-name.
9341
9342 * composite.c (get_composition_id): Fix the width calculation for TAB.
9343
93442008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9345
9346 * indent.c (Fvertical_motion): Properly handle float column arg.
9347
93482008-06-28 Jason Rumney <jasonr@gnu.org>
9349
9350 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9351 (pfnSetLayeredWindowAttributes): New function pointer.
9352 (w32_initialize): Initialize it when supported.
9353 (x_set_frame_alpha): New function.
9354
9355 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9356 (w32_frame_parm_handlers): Set alpha handler.
9357
9358 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9359
93602008-06-27 Jason Rumney <jasonr@gnu.org>
9361
9362 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9363 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9364 (w32_to_x_charset, x_to_w32_charset)
9365 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9366 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9367 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9368 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9369 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9370 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9371 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9372 (Qw32_charset_unicode): Remove.
9373 (syms_of_w32fns): Update for above changes.
9374
9375 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9376 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9377 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9378 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9379 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9380 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9381 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9382 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9383 (syms_of_w32font): Update for above changes.
9384
93852008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9386
9387 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9388 removed #if.
9389 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9390
93912008-06-26 Juanma Barranquero <lekktu@gmail.com>
9392 Eli Zaretskii <eliz@gnu.org>
9393
9394 * makefile.w32-in (LOCAL_FLAGS):
9395 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9396
9397 * sysdep.c (_spawnlp, _getpid):
9398 Declare with explicit _cdecl instead of _CRTAPI1.
9399
9400 * editfns.c (Fget_internal_run_time):
9401 Check for WINDOWSNT with #ifdef, not #if.
9402
94032008-06-26 Jason Rumney <jasonr@gnu.org>
9404
9405 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9406
9407 * w32term.c (x_draw_glyph_string_foreground)
9408 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9409 Use FONT_HANDLE macro.
9410 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9411
9412 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9413 (uniscribe_encode_char): Use FONT_HANDLE macro.
9414
9415 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9416 (w32font_text_extents): Use precast w32_font.
9417 (w32font_close): Free cached metrics.
9418 (w32font_open_internal): Allocate space for name on stack.
9419
94202008-06-26 Chong Yidong <cyd@stupidchicken.com>
9421
9422 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9423
94242008-06-26 Jason Rumney <jasonr@gnu.org>
9425
9426 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9427 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9428
94292008-06-26 Juanma Barranquero <lekktu@gmail.com>
9430
9431 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9432
94332008-06-26 Jason Rumney <jasonr@gnu.org>
9434
9435 * w32bdf.c, w32bdf.h: Remove obsolete files.
9436
9437 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9438
9439 * w32gui.h: Don't include w32bdf.h.
9440 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9441 Remove obsolete font support.
9442
9443 * w32font.h (struct w32font_info): Remove compat_w32_font.
9444 Add hfont member.
9445 (FONT_COMPAT): Remove obsolete macro.
9446
9447 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9448 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9449 (w32font_open_internal): Remove compat code. Set new hfont member.
9450 (Fx_select_font): Use new hfont member.
9451
9452 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9453 (uniscribe_encode_char): Use new hfont member.
9454
9455 * w32term.c (x_draw_glyph_string_foreground)
9456 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9457 (x_draw_glyph_string): Use metrics in w32font_info.
9458
94592008-06-26 Kenichi Handa <handa@m17n.org>
9460
9461 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9462
94632008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9464
9465 * unexnext.c:
9466 * m/ews4800.h:
9467 * m/hp9000s300.h:
9468 * m/ibm370aix.h:
9469 * m/mips-siemens.h:
9470 * m/ncr386.h:
9471 * m/next.h:
9472 * m/pmax.h:
9473 * m/powerpcle.h:
9474 * m/tandem-s2.h:
9475 * s/386bsd.h:
9476 * s/bsd386.h:
9477 * s/bsd4-1.h:
9478 * s/bsd4-2.h:
9479 * s/bsdos2-1.h:
9480 * s/bsdos2.h:
9481 * s/bsdos3.h:
9482 * s/bsdos4.h:
9483 * s/nextstep.h:
9484 * s/ultrix4-3.h:
9485 * s/usg5-0.h:
9486 * s/usg5-2-2.h:
9487 * s/usg5-2.h:
9488 * s/usg5-4-3.h:
9489 * s/ux4800.h:
9490 * s/uxpds.h:
9491 * s/uxpv.h: Remove support for obsolete systems.
9492 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9493 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9494 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9495 Remove, insert contents in s/aix4-2.h.
9496 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9497 * s/bsd4-3.h: Rename to ...
9498 * s/bsd-common.h: ... this.
9499 * data.c:
9500 * doc.c:
9501 * ecrt0.c:
9502 * emacs.c:
9503 * fileio.c:
9504 * floatfns.c:
9505 * keyboard.c:
9506 * mem-limits.h:
9507 * print.c:
9508 * process.c:
9509 * sysdep.c:
9510 * syssignal.h:
9511 * systty.h:
9512 * syswait.h:
9513 * term.c:
9514 * unexec.c:
9515 * unexelf.c:
9516 * unexhp9k800.c:
9517 * m/hp800.h:
9518 * m/ibmrs6000.h:
9519 * m/mips.h:
9520 * m/vax.h:
9521 * s/darwin.h:
9522 * s/freebsd.h:
9523 * s/gnu.h:
9524 * s/ms-w32.h:
9525 * s/msdos.h:
9526 * s/netbsd.h:
9527 * s/template.h: Remove references to obsolete variables.
9528
9529 * Makefile.in: Add dependencies for all unexec files.
9530 (admindir): Remove unused variable.
9531 (UNEXEC_SRC): Remove references.
9532
95332008-06-25 Chong Yidong <cyd@stupidchicken.com>
9534
9535 * xfns.c (x_default_font_parameter): If Xft is available, first
9536 try Monospace-12 for the default font.
9537
95382008-06-25 Jason Rumney <jasonr@gnu.org>
9539
9540 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9541
95422008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9543
9544 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9545
9546 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9547
95482008-06-25 Juanma Barranquero <lekktu@gmail.com>
9549
9550 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9551 <scroll-conservatively>: Fix typo in docstring.
9552
9553 * xselect.c (Fx_send_client_event): Doc fix.
9554
95552008-06-25 Kenichi Handa <handa@m17n.org>
9556
9557 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9558
9559 * font.c (font_parse_fcname): Remove unused variables.
9560 (font_sort_entites): Delete the arg SPEC. Caller changed.
9561 Fix for the case of ! best_only.
9562 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9563
9564 * lisp.h (Fstring_to_unibyte): EXFUN it.
9565
9566 * character.h (str_to_unibyte): Extern it.
9567
9568 * character.c (str_to_unibyte): New function.
9569
9570 * fns.c (Fstring_to_unibyte): New function.
9571 (syms_of_fns): Defsubr it.
9572
95732008-06-24 Kenichi Handa <handa@m17n.org>
9574
9575 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9576 DPI too.
9577 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9578
95792008-06-24 Andreas Schwab <schwab@suse.de>
9580
9581 * Makefile.in (${lispsource}loaddefs.el): Rename from
9582 ../lisp/loaddefs.el.
9583 (bootstrap-clean): Do what distclean does but don't remove
9584 Makefile.
9585 (distclean): Depend on bootstrap-clean and remove Makefile.
9586
95872008-06-24 Chong Yidong <cyd@stupidchicken.com>
9588
9589 * buffer.h (struct buffer): New member word_wrap.
9590
9591 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9592 word-wrap.
9593 (init_buffer_once): Initialize them.
9594
9595 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9596 line_wrap enum possessing three possible values.
9597
9598 * termopts.h: Replace truncate_partial_width_windows with
9599 Vtruncate_partial_width_windows.
9600
9601 * dispnew.c (direct_output_for_insert): Avoid direct output when
9602 inserting a space with word wrap on.
9603
9604 * indent.c (compute_motion): Obey integer values of
9605 truncate-partial-width-windows.
9606
9607 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9608 replacing truncate_partial_width_windows.
9609 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9610 truncate only if the window width is below that integer.
9611 (start_display, resize_mini_window, produce_stretch_glyph)
9612 (display_string, move_it_in_display_line_to): Use line_wrap.
9613 (back_to_previous_visible_line_start, reseat_1): Reset
9614 string_from_display_prop_p.
9615 (display_line): Extend default face to end of line when wrapping.
9616
96172008-06-24 Kim F. Storm <storm@cua.dk>
9618
9619 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9620 to wrap continued lines at word boundaries.
9621
96222008-06-24 Jason Rumney <jasonr@gnu.org>
9623
9624 * font.c (Ffont_face_attributes): Multiply pixel size before point
9625 conversion to avoid multiplying rounding error.
9626
96272008-06-23 Jason Rumney <jasonr@gnu.org>
9628
9629 * w32term.c (x_draw_glyph_string_background)
9630 (x_draw_glyph_string): Remove old bdf font code.
9631
9632 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9633
96342008-06-22 Kenichi Handa <handa@m17n.org>
9635
9636 * font.c (font_find_for_lface): Try the adstyle specified in
9637 the property of LFACE_FONT of LFACE (if any).
9638
96392008-06-21 Seiji Zenitani <zenitani@mac.com>
9640 Ryo Yoshitake <ryo@shiftmode.net>
9641
9642 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9643
96442008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9645
9646 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9647 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9648 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9649 (witness-emacs): Remove.
9650 (lisp, shortlisp): Move loaddefs.el earlier.
9651 (mostlyclean): Forget about witness-emacs.
9652
96532008-06-22 Glenn Morris <rgm@gnu.org>
9654
9655 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9656 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9657
96582008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9659
9660 * Makefile.in (PRECOMP): Remove.
9661 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9662 (witness-emacs): Run `compile-first'.
9663 (.el.elc): Use the new compile-onefile target.
9664
96652008-06-21 Kenichi Handa <handa@m17n.org>
9666
9667 * xftfont.c (xftfont_open): Handle QCembolden only when
9668 FC_EMBOLDEN is defined.
9669
96702008-06-21 Andreas Schwab <schwab@suse.de>
9671
9672 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9673 (.el.elc): Likewise.
9674
96752008-06-21 Miles Bader <miles@gnu.org>
9676
9677 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9678 build dir, not the lisp source dir.
9679
96802008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9681
9682 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9683 (bootstrapclean): Remove.
9684 (.el.elc): New rule.
9685 (PRECOMP): New var.
9686 (../lisp/subdirs.el): Remove.
9687 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9688 (witness-emacs): New target.
9689 (mostlyclean): Remove witness-emacs as well.
9690 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9691 Add witness-emacs dependency.
9692
96932008-06-20 Chong Yidong <cyd@stupidchicken.com>
9694
9695 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9696 defined by the font.
9697
96982008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9699
9700 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9701 (bootstrap-clean): New target that keeps TAGS around.
9702 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9703 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9704
97052008-06-20 Jason Rumney <jasonr@gnu.org>
9706
9707 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9708 Remove obsolete font code.
9709
9710 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9711 to determine language support.
9712
97132008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9714
9715 * sysdep.c (cfsetspeed): New fun extracted from the code.
9716 (cfmakeraw): Move before first use.
9717
97182008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9719
9720 * sysdep.c (cfmakeraw): Provide fallback implementation.
9721 (serial_configure): Provide fallback implementation of cfsetspeed.
9722
97232008-06-20 Kenichi Handa <handa@m17n.org>
9724
9725 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9726 the pattern.
9727
9728 * fontset.c (fontset_from_font): Copy font_spec before changing
9729 the elements.
9730
9731 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9732
97332008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9734
9735 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9736 for explicit `font' parameters.
9737
9738 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9739
97402008-06-19 Kenichi Handa <handa@m17n.org>
9741
9742 * frame.c: Include <ctype.h>.
9743 (x_set_font_backend): Allow spacing characters in the X resource
9744 for FontBackend.
9745
97462008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9747
9748 * w32fns.c, xfns.c (Qfont_param): New var.
9749 (syms_of_w32fns): Initialize it.
9750 (x_default_font_parameter): Record explicit `font' into
9751 `font-parameter'.
9752
97532008-06-18 Kenichi Handa <handa@m17n.org>
9754
9755 * font.c (font_parse_xlfd): Fix previous change.
9756 (font_parse_fcname): Don't use :fc-unknown-spec.
9757 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9758 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9759 (font_add_log): Prepend the driver name to the resulting fonts.
9760
9761 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9762 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9763 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9764
9765 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9766 (QCembolden): New variables.
9767 (syms_of_xftfont): DEFSYM them.
9768 (xftfont_open): Call XftFontMatch. Don't trust the result of
9769 XftTextExtents8 if the pixel_size is less than 5.
9770
97712008-06-18 Andreas Schwab <schwab@suse.de>
9772
9773 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9774 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9775
97762008-06-18 Jason Rumney <jasonr@gnu.org>
9777
9778 * w32font.c (w32font_list, w32font_match): Add logging.
9779
9780 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9781
97822008-06-17 Chong Yidong <cyd@stupidchicken.com>
9783
9784 * font.c (font_parse_fcname): Store divider characters for
9785 unknown-spec list. For known key symbols, intern using correct
9786 symbol name.
9787
97882008-06-17 Kenichi Handa <handa@m17n.org>
9789
9790 * xfaces.c (realize_default_face): If the frame is not on window
9791 system, set the fontset of face to nil.
9792
97932008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9794
9795 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9796
97972008-06-16 Juanma Barranquero <lekktu@gmail.com>
9798
9799 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9800 (build_font_name_from_vector): Delete externs.
9801
9802 * xfaces.c (struct font_name): Don't declare.
9803
98042008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9805
9806 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9807
98082008-06-16 Chong Yidong <cyd@stupidchicken.com>
9809
9810 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9811
98122008-06-16 Juanma Barranquero <lekktu@gmail.com>
9813
9814 * font.c (Ffont_spec): Fix usage in docstring.
9815 (Ffont_face_attributes): Doc fix.
9816
98172008-06-16 Andreas Schwab <schwab@suse.de>
9818
9819 * font.c (Ffont_face_attributes): Fix definition.
9820
98212008-06-16 Jason Rumney <jasonr@gnu.org>
9822
9823 * font.h (font_style_symbolic_from_value): Remove.
9824
9825 * font.c (font_style_symbolic_from_value): Remove.
9826 (font_style_symbolic): Revert to pre 2008-06-13 version.
9827
9828 * w32font.c (w32_to_fc_weight): New function.
9829 (w32font_full_name, logfont_to_fcname): Use it.
9830
98312008-06-16 Kenichi Handa <handa@m17n.org>
9832
9833 * font.c (font_check_object): Delete it.
9834 (font_clear_cache): Check if a font-object is alive.
9835 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9836 font-object to nil.
9837 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9838 (font_at): Don't call font_check_object.
9839 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9840
98412008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9842
9843 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9844
98452008-06-16 Chong Yidong <cyd@stupidchicken.com>
9846
9847 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9848
98492008-06-15 Chong Yidong <cyd@stupidchicken.com>
9850
9851 * font.c (font_parse_fcname): Only one decimal point.
9852 (font_unparse_fcname): Handle data in family and foundry indices
9853 as symbols, not strings.
9854 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9855
9856 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9857
9858 * font.h (font_unparse_gtkname): Add prototype.
9859
98602008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9861
9862 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9863
98642008-06-15 Andreas Schwab <schwab@suse.de>
9865
9866 * font.c (font_update_drivers): Fix crash when no drivers match.
9867
98682008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9869
9870 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9871 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9872
98732008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9874
9875 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9876
98772008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9878
9879 * process.c (Fserial_process_configure, Fprocess_send_eof):
9880 Use EQ to compare Lisp_Objects.
9881
98822008-06-13 Jason Rumney <jasonr@gnu.org>
9883
9884 * w32fns.c (Fw32_select_font): Remove old font API function.
9885
9886 * w32font.c (logfont_to_fcname): New function.
9887 (Fx_select_font): New font dialog function compatible with
9888 GTK/fontconfig version.
9889
9890 * font.c (font_style_symbolic_from_value): New function.
9891 (font_style_symbolic): Use it.
9892
9893 * font.h (font_style_symbolic_from_value): Declare new function.
9894
98952008-06-13 Juanma Barranquero <lekktu@gmail.com>
9896
9897 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9898 <font-width-table>: Fix typos in docstrings.
9899
99002008-06-13 Daniel Engeler <engeler@gmail.com>
9901
9902 These changes add serial port access.
9903 * process.c: Add HAVE_SERIAL.
9904 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9905 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9906 (list_processes_1, select_wrapper, Fstop_process)
9907 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9908 (status_notify): Modify to handle serial processes.
9909 [HAVE_SERIAL] (Fserial_process_configure)
9910 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9911 New functions.
9912 * process.h (struct Lisp_Process): Add `type'.
9913 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9914 New functions.
9915 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9916 serial ports.
b71ac3dd 9917 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9918 * w32.h: Add FILE_SERIAL.
9919 (struct _child_process): Add ovl_read, ovl_write.
9920
99212008-06-13 Kenichi Handa <handa@m17n.org>
9922
9923 * dispextern.h (enum lface_attribute_index): New member
9924 LFACE_FOUNDRY_INDEX.
9925
9926 * font.c (font_score): Delete arg alternate_families. Check only
9927 weight, slant, width, and size. Ignore the difference of alias
9928 style symbols.
9929 (font_sort_entites): Adjust for the above change. Reflect the
9930 order of font-driver to scores.
9931 (font_list_entities): Don't check alternate_familes here.
9932 (font_clear_prop): Handle foundry.
9933 (font_update_lface): Don't parse "foundry-family" form here.
9934 Handle FONT_FOUNDRY_INDEX.
9935 (font_find_for_lface): Likewise. Handle alternate families here.
9936 If registry is nil, try iso8859-1 and ascii-0.
9937 (font_open_for_lface): Pay attention to size in ENTITY.
9938 (font_open_by_name): Simplify by calling font_load_for_lface.
9939 (free_font_driver_list): Delete it.
9940 (font_update_drivers): Preserve the order of backends.
9941 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9942 of font_score and font_sort_entites.
9943 (font_update_sort_order): Likewise.
9944
9945 * xfaces.c (LFACE_FOUNDRY): New macro.
9946 (check_lface_attrs): Check foundry.
9947 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9948 (merge_face_vectors): Check foundry.
9949 (merge_face_ref): Likewise.
9950 (Finternal_set_lisp_face_attribute): Likewise.
9951 (x_update_menu_appearance): Likewise.
9952 (Finternal_get_lisp_face_attribute): Likewise.
9953 (lface_hash): Likewise.
9954 (lface_same_font_attributes_p): Likewise.
9955 (x_supports_face_attributes_p): Likewise.
9956 (tty_supports_face_attributes_p): Likewise.
9957 (Finternal_set_alternative_font_family_alist): Intern strings.
9958 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9959 (realize_default_face): Set LFACE_FOUNDRY (lface).
9960
9961 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9962 font-driver at first.
9963
9964 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9965
99662008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9967
9968 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9969
99702008-06-12 Jim Meyering <meyering@redhat.com>
9971
9972 Make unexec_free handle NULL the same way free does.
9973 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9974
99752008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9976
9977 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9978 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9979 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9980 (WEAK_ALIAS): Simplify.
9981 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9982 when searching a unibyte buffer.
9983
99842008-06-12 Chong Yidong <cyd@stupidchicken.com>
9985
9986 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9987
99882008-06-12 Juanma Barranquero <lekktu@gmail.com>
9989
9990 * w32font.c: Include ctype.h.
9991
99922008-06-11 Jason Rumney <jasonr@gnu.org>
9993
9994 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9995 misreported as space.
9996 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9997 as aliases for registry iso10646-1.
9998
99992008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10000
10001 * buffer.c (clone_per_buffer_values): Skip `name'.
10002
100032008-06-11 Chong Yidong <cyd@stupidchicken.com>
10004
10005 * font.c (font_parse_fcname): Fix last change; accept decimal
10006 points in font size.
10007
100082008-06-10 Jason Rumney <jasonr@gnu.org>
10009
10010 * w32uniscribe.c (add_opentype_font_name_to_list):
10011 Skip non unicode fonts.
10012
100132008-06-10 Chong Yidong <cyd@stupidchicken.com>
10014
10015 * xfns.c (Fx_font_dialog): New function.
10016
10017 * gtkutil.c (xg_dialog_response_cb): Rename from
10018 xg_file_response_callback.
10019 (pop_down_dialog): Rename from pop_down_file_dialog.
10020 (xg_get_file_name): Callers changed.
10021 (xg_get_font_name): New function.
10022
10023 * gtkutil.h (xg_get_font_name): Insert prototype.
10024
100252008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10026
10027 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10028 x_underline_minimum_display_offset.
10029 (syms_of_xdisp): Declare it here rather than in xterm.c.
10030 * dispextern.h (underline_minimum_offset): Declare it.
10031 * w32term.c (x_draw_glyph_string): Use it.
10032 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10033 (syms_of_xterm): Don't declare it any more.
10034 (x_draw_glyph_string): Adjust to the new name.
10035
8719abec 100362008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10037
10038 * xterm.c (x_underline_minimum_display_offset): New var.
10039 (x_draw_glyph_string): Use it.
10040 (syms_of_xterm): Declare it.
10041
100422008-06-10 Chong Yidong <cyd@stupidchicken.com>
10043
10044 * font.c (font_parse_fcname): Accept GTK-style font names too.
10045
100462008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10047
10048 * dired.c (file_name_completion): Don't return t if the match is exact
10049 but with different capitalization.
10050 * minibuf.c (Ftry_completion): Simplify.
10051
10052 * window.c (Vwindow_point_insertion_type): New var.
10053 (set_window_buffer): Use it.
10054 (syms_of_window): Init and export it to Lisp.
10055
100562008-06-10 Kenichi Handa <handa@m17n.org>
10057
10058 * font.h (font_intern_prop): Prototype adjusted.
10059
10060 * font.c (font_intern_prop): New arg force_symbol.
10061 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10062 Adjust for the change of font_intern_prop.
10063
10064 * ftfont.c (ftfont_pattern_entity):
10065 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10066 (w32_registry):
10067 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10068 the change of font_intern_prop.
10069
100702008-06-09 Juanma Barranquero <lekktu@gmail.com>
10071
10072 * w32menu.c (digest_single_submenu): Declare extern.
10073
100742008-06-09 Jason Rumney <jasonr@gnu.org>
10075
10076 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10077
10078 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10079 (parse_single_submenu): Remove.
10080 (digest_single_submenu): Remove.
10081 (syms_of_w32menu): Don't initialise variables that have moved
10082 to menu.c.
10083 (set_frame_menubar): Sync with version in xmenu.c.
10084 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10085
10086 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10087 Make static again.
10088
100892008-06-09 Jason Rumney <jasonr@gnu.org>
10090
10091 Changes to w32 files related to the move of common menu code
10092 to menu.c on 2008-06-08 by Chong Yidong.
10093
10094 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10095 defs to w32gui.h.
10096 (single_keymap_panes, push_menu_item, push_menu_pane):
10097 Make globally visible.
10098
10099 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10100 (local_free, malloc_widget_value, free_widget_value)
10101 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10102 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10103 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10104 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10105 (menu_items, menu_items_allocated, menu_items_used)
10106 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10107 (init_menu_items, finish_menu_items, discard_menu_items)
10108 (grow_menu_items, push_submenu_start, push_submenu_end)
10109 (push_left_right_boundary, push_menu_pane, push_menu_item)
10110 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10111 (free_menubar_widget_tree_value, parse_single_submenu)
10112 (update_submenu_strings): Remove functions.
10113 (xmalloc_widget_value): Remove and declare extern.
10114
10115 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10116 (OBJ1): Build it.
10117
10118 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10119 (local_heap, local_alloc, local_free, malloc_widget_value)
10120 (free_widget_value): Define here.
10121
101222008-06-09 Kenichi Handa <handa@m17n.org>
10123
10124 * font.h (Qascii_0): Extern it.
10125
10126 * font.c (Qascii_0): New variable.
10127 (syms_of_font): DEFSYM it.
10128 (font_open_by_name): If the registry "iso8859-1" fails, try also
10129 "ascii-0".
10130
10131 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10132
101332008-06-08 Kenichi Handa <handa@m17n.org>
10134
10135 * .gdbinit (xfont): New command.
10136
101372008-06-08 Andreas Schwab <schwab@suse.de>
10138
10139 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10140 * Makefile.in (menu.o): Update dependencies.
10141
10142 * Makefile.in (obj): Always add menu.o.
10143 * emacs.c (main): Always call syms_of_menu.
10144 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10145
101462008-06-08 Chong Yidong <cyd@stupidchicken.com>
10147
10148 * Makefile.in: Compile menu.c.
10149
10150 * lisp.h: Declare syms_of_menu.
10151
10152 * emacs.c (main): Call syms_of_menu.
10153
10154 * keyboard.h: Relocate platform-independent menu definitions from
10155 xmenu.c.
10156
10157 * menu.c: New file. Relocate platform-independent menu
10158 definitions from xmenu.c. Suggested by Adrian Robert.
10159
10160 * xmenu.c: Remove platform-independent menu definitions.
10161 (menu_items menu_items_inuse, menu_items_allocated)
10162 (menu_items_used, menu_items_n_panes)
10163 (menu_items_submenu_depth): Move to keyboard.h.
10164 (init_menu_items, finish_menu_items, unuse_menu_items)
10165 (discard_menu_items, restore_menu_items, save_menu_items)
10166 (grow_menu_items, push_submenu_start, push_submenu_end)
10167 (push_left_right_boundary, push_menu_pane, push_menu_item)
10168 (keymap_panes, single_keymap_panes, single_menu_item)
10169 (list_of_panes, list_of_items, find_and_call_menu_selection)
10170 (xmalloc_widget_value, free_menubar_widget_value_tree)
10171 (parse_single_submenu, digest_single_submenu)
10172 (update_submenu_strings): Move to menu.c.
10173
101742008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10175
10176 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10177
101782008-06-06 Miles Bader <miles@gnu.org>
10179
10180 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10181 face, not frame default.
10182
101832008-06-05 Martin Rudalics <rudalics@gmx.at>
10184
10185 * window.c (pop_up_windows, pop_up_frames)
10186 (display_buffer_reuse_frames, Vpop_up_frame_function)
10187 (Vdisplay_buffer_function, Veven_window_heights)
10188 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10189 (Vspecial_display_function, Vsame_window_buffer_names)
10190 (Vsame_window_regexps, split_height_threshold)
10191 (Vsplit_window_preferred_function): Move those vars to window.el.
10192 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10193 (Fdisplay_buffer): Move those functions to window.el.
10194 (syms_of_window): Remove corresponding declarations.
10195 (display_buffer): New function.
10196 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10197 * dispnew.c (Flast_nonminibuf_frame): New function.
10198 * buffer.c (Fpop_to_buffer): Move to window.el.
10199
102002008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10201
10202 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10203
102042008-06-05 Kenichi Handa <handa@m17n.org>
10205
10206 * coding.c (detect_coding): Fix previous change.
10207 (detect_coding_system): Likewise.
10208
102092008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10210
10211 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10212
10213 * keymap.c (Vminibuffer_local_filename_must_match_map):
10214 Rename from Vminibuffer_local_must_match_filename_map.
10215 (syms_of_keymap):
10216 * minibuf.c (Fcompleting_read): Adjust accordingly.
10217 * commands.h: Rename declaration as well.
10218
102192008-06-05 Kenichi Handa <handa@m17n.org>
10220
10221 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10222 family name.
10223 (Ffont_put): Likewise.
10224
10225 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10226 current font-spec.
10227
10228 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10229 is unspecified.
10230
10231 * xfaces.c (realize_x_face): If the font-related face attributes
10232 are the same as those of default face, realize a new fontset from
10233 default->fontset.
10234 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10235
102362008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10237
10238 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10239 (move_it_in_display_line): New wrapper.
10240
10241 * window.c (window_scroll_pixel_based_preserve_x)
10242 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10243 (window_scroll_pixel_based, window_scroll_line_based):
10244 Use them to preserve column positions.
10245 (syms_of_window): Initialize them.
10246
10247 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10248 (HPOS . VPOS) pair.
10249
10250 * dispextern.h (move_it_in_display_line): Declare.
10251
102522008-06-05 Juanma Barranquero <lekktu@gmail.com>
10253
10254 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10255 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10256 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10257
102582008-06-04 Juanma Barranquero <lekktu@gmail.com>
10259
10260 * window.c (Fset_window_parameter): Doc fix.
10261 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10262
102632008-06-04 Joakim Verona <joakim@verona.se>
10264
10265 * window.h (struct window): Add new member window_parameters.
10266
10267 * window.c (Fwindow_parameters, Fwindow_parameter)
10268 (Fset_window_parameter): New defuns.
10269 (syms_of_window): Defsubr the new defuns.
10270 (make_window): Initialize window_parameters to nil.
10271
102722008-06-04 John Paul Wallington <jpw@pobox.com>
10273
10274 * eval.c (Fdefmacro): Doc fix.
10275
102762008-06-04 Kenichi Handa <handa@m17n.org>
10277
10278 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10279 Be sure to call setup_coding_system when we find a proper coding system.
10280 (detect_coding_system): Fix handling of coding->head_ascii.
10281
102822008-06-03 Andreas Schwab <schwab@suse.de>
10283
10284 * font.c (font_prop_validate_spacing): Fix last change.
10285
102862008-06-03 Kenichi Handa <handa@m17n.org>
10287
10288 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10289 (font_parse_fcname): Fix handling of unknown key.
10290
10291 * xfont.c (xfont_list): Try an alias.
10292
10293 * charset.c (char_charset): Return NULL if the arg charset_list is
10294 specified and C doesn't belong to any of them.
10295
102962008-06-02 Chip Coldwell <coldwell@redhat.com>
10297
10298 * font.c (font_pixel_size): Don't take cdr of an integer.
10299
103002008-06-02 Jim Meyering <meyering@redhat.com>
10301
10302 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10303 * alloc.c (xfree): Return right away for a NULL arg.
10304 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10305 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10306 * mac.c (create_apple_event_from_event_ref): Likewise.
10307 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10308 Likewise.
10309 * doprnt.c (doprnt1): Likewise.
10310 * frame.c (frame): Likewise.
10311 * keyboard.c (wipe_kboard): Likewise.
10312 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10313 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10314 * term.c (tty_default_color_capabilities, maybe_fatal)
10315 (delete_tty): Likewise.
10316 * w16select.c (string): Likewise.
10317 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10318 * w32bdf.c (w32_free_bdf_font): Likewise.
10319 * w32fns.c (w32_unload_font): Likewise.
10320 * w32font.c (w32font_close): Likewise.
10321 * window.c (size_window): Likewise.
10322 * xselect.c (receive_incremental_selection): Likewise.
10323 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10324 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10325 * w32.c (stat): Likewise.
10326
10327 Remove useless if-before-free tests.
10328 * editfns.c (Fset_time_zone_rule): Likewise.
10329 * lread.c (nosuffix): Likewise.
10330 * ralloc.c (get_bloc): Likewise.
10331 * regex.c (reg_free): Likewise.
10332 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10333 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10334 * xsmfns.c (smc_save_yourself_CB): Likewise.
10335
103362008-06-02 Kenichi Handa <handa@m17n.org>
10337
10338 * font.c (font_find_for_lface): Handle float font size.
10339 (font_open_for_lface): Likewise.
10340
10341 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10342 comparing the properties.
10343
103442008-06-01 Jason Rumney <jasonr@gnu.org>
10345
10346 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10347 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10348 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10349 Don't add empty script list.
10350 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10351
103522008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10353
10354 * Makefile.in (dot, dotdot): Remove, update users.
10355 ".." has been used elsewhere in the file for a long time.
10356 (LIBXT_STATIC): Remove conditional based on unused variable.
10357
103582008-06-01 Miles Bader <miles@gnu.org>
10359
10360 * xfaces.c (Vface_remapping_alist): New variable.
10361 (syms_of_xfaces): Initialize it.
10362 (enum named_merge_point_kind): New type.
10363 (struct named_merge_point): Add `named_merge_point_kind' field.
10364 (push_named_merge_point): Make cycle detection respect different
10365 named-merge-point kinds.
10366 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10367 Remove face-name alias resolution.
10368 (lface_from_face_name): New definition using
10369 `lface_from_face_name_no_resolve'.
10370 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10371 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10372 (get_lface_attributes): New definition that layers face-remapping on
10373 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10374 (lookup_basic_face): New function.
10375 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10376 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10377 `get_lface_attributes'.
10378 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10379 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10380 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10381
10382 * xdisp.c (init_iterator): Pass base_face_id through
10383 `lookup_basic_face' when we actually use it as a face-id.
10384 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10385 DEFAULT_FACE_ID.
10386
10387 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10388 lookup the initial face-id.
10389
10390 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10391
103922008-06-01 Juanma Barranquero <lekktu@gmail.com>
10393
10394 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10395 (Fremove_text_properties): Fix typos in docstrings.
10396
103972008-05-31 Kenichi Handa <handa@m17n.org>
10398
10399 * font.c (font_list_entities): Fix the car part of data to be
10400 stored in the cache.
10401
10402 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10403
104042008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10405
10406 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10407 Add a `test' argument so another predicate than `equal' can be used.
10408 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10409 (map_char_table): Remove unused vars `c' and `i'.
10410 * lisp.h (Foptimize_char_table): Adjust declaration.
10411 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10412
104132008-05-30 Kenichi Handa <handa@m17n.org>
10414
10415 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10416 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10417 defined.
10418
104192008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10420
10421 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10422 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10423 frame-local settings for the same variable.
10424
104252008-05-30 Kenichi Handa <handa@m17n.org>
10426
10427 * fontset.c (Ffont_info): Move to font.c.
10428 (syms_of_fontset): Delete defsubr of Sfont_info.
10429
10430 * font.c (font_style_to_value, font_score): Delete casting of the
10431 args to xstcasecmp.
10432 (register_font_driver): Increment num_font_drivers only when
10433 registering the driver globally.
10434 (Ffont_info): Move from fontset.c. Handle a font object too.
10435 (syms_of_font): Defsubr Sfont_info.
10436
104372008-05-29 Kenichi Handa <handa@m17n.org>
10438
10439 * coding.h (enum define_coding_utf8_arg_index): New enum.
10440 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10441 coding_attr_utf_bom.
10442 (enum utf_bom_type): Rename from utf_16_bom_type.
10443 (struct utf_16_spec): Adjust for the above change.
10444 (struct coding_system): Add utf_8_bom in `spec' union.
10445
10446 * coding.c (CODING_UTF_8_BOM): New macro.
10447 (enum coding_category): Delete coding_category_utf_8, add
10448 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10449 coding_category_utf_8_sig.
10450 (CATEGORY_MASK_UTF_8): Delete it.
10451 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10452 (CATEGORY_MASK_UTF_8_SIG): New macros.
10453 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10454 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10455 CATEGORY_MASK_UTF_8_SIG.
10456 (CATEGORY_MASK_UTF_8): New macro.
10457 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10458 (detect_coding_utf_8): Check BOM.
10459 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10460 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10461 (encode_coding_utf_16): Likewise.
10462 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10463 (detect_coding, detect_coding_system): Handle utf-8-auto.
10464 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10465 (syms_of_coding): Fix setting up of Vcoding_category_table.
10466
104672008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10468
10469 * process.c (Faccept_process_output): If `millisec' is non-nil,
10470 `seconds' default to 0.
10471 (wait_reading_process_output): Also return non-nil if we read output
10472 from a non-running process.
10473
104742008-05-29 Jason Rumney <jasonr@gnu.org>
10475
10476 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10477 `raster' specified.
10478 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10479 in the uniscribe backend, but disallow any font that has no
10480 unicode subrange support.
10481
104822008-05-29 Juanma Barranquero <lekktu@gmail.com>
10483
10484 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10485 Fix typos in docstrings.
10486
104872008-05-29 Kenichi Handa <handa@m17n.org>
10488
10489 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10490 (Fx_family_fonts): Set frame correctly.
10491
104922008-05-28 Jason Rumney <jasonr@gnu.org>
10493
10494 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10495
104962008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10497
10498 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10499 calling build_annotations.
10500
105012008-05-28 Juanma Barranquero <lekktu@gmail.com>
10502
10503 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10504 (Fencode_coding_string):
10505 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10506 <latin-extra-code-table>: Fix typos in docstrings.
10507 (syms_of_coding) <coding-system-alist>: Doc fix.
10508 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10509
105102008-05-28 Kenichi Handa <handa@m17n.org>
10511
10512 * fontset.c (Ffont_info): Don't call font_close_object.
10513
10514 * font.c (font_parse_family_registry): Use Ffont_put to validate
10515 foundry and family.
10516 (font_delete_unmatched): Don't check spacing.
10517 (font_list_entities): Add spacing to the spec to list fonts.
10518
10519 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10520 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10521
10522 * coding.c (encode_coding_raw_text): Fix previous change.
10523 (encode_coding_object): When the dst_object is a buffer and is
10524 different from src_object, move gap to PT.
10525
105262008-05-27 Chong Yidong <cyd@stupidchicken.com>
10527
10528 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10529
105302008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10531
10532 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10533 all branches. Compute it differently.
10534
10535 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10536
105372008-05-27 Juanma Barranquero <lekktu@gmail.com>
10538
10539 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10540 into "else if () ... else ...".
10541
105422008-05-27 Jason Rumney <jasonr@gnu.org>
10543
10544 * w32font.c (w32font_open_internal): Determine if glyph indices
10545 are likely to work here.
10546
105472008-05-27 Chong Yidong <cyd@stupidchicken.com>
10548
10549 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10550 draw overlap glyphs with appropriate highlighting.
10551
105522008-05-27 Kenichi Handa <handa@m17n.org>
10553
10554 * xfont.c (xfont_open): Fix calculation of font->average_width.
10555
105562008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10557
10558 * casefiddle.c (casify_object): Try to guess better whether the
10559 argument is a byte or a char.
10560
105612008-05-26 Andreas Schwab <schwab@suse.de>
10562
10563 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10564 Always send multiples of format size.
10565
10566 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10567
105682008-05-26 Jason Rumney <jasonr@gnu.org>
10569
10570 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10571 (compute_metrics): Don't set failure if we just cleared the cache.
10572 (w32_weight_table): Remove unused variable.
10573 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10574 backwards compatibility.
10575
105762008-05-25 Kenichi Handa <handa@m17n.org>
10577
10578 * w32term.c (x_draw_glyph_string):
10579 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10580
10581 * xfaces.c: Delete unused function prototypes.
10582 (xstrlwr, font_frame): Delete them.
10583 (clear_face_cache): Delete unused variable.
10584
10585 * xftfont.c (xftfont_open): Delete unused variable.
10586 If underline_thickness is not 1, adjust underline_position.
10587
10588 * ftxfont.c (ftxfont_open): Delete unused variable.
10589
10590 * fontset.c (face_for_char): Optimize for the case of no charset
10591 property.
10592
10593 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10594 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10595 (otf_open, font_otf_capability, generate_otf_features)
10596 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10597 Comment out by surrounding "#if 0" and "#endif" for the moment.
10598 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10599 (syms_of_font): Codes for accessing above commented out.
10600
106012008-05-24 Eli Zaretskii <eliz@gnu.org>
10602
10603 * w32proc.c: Include dispextern.h.
10604
10605 * w32.c: Include dispextern.h.
10606
106072008-05-23 Juanma Barranquero <lekktu@gmail.com>
10608
10609 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10610 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10611 Fix typos in docstrings.
10612
106132008-05-23 Jason Rumney <jasonr@gnu.org>
10614
10615 * xsmfns.c: Remove includes that are already included by config.h.
10616
106172008-05-23 Kenichi Handa <handa@m17n.org>
10618
10619 * charset.c (Qemacs, charset_emacs): New variables.
10620 (char_charset): Fix for non-Unicode characters.
10621 (syms_of_charset): Define charset_emacs.
10622
10623 * w32term.c (x_draw_glyph_string): Be sure to update
10624 s->underline_thickness and s->underline_position. Be sure to draw
10625 underline within the current line area.
10626
10627 * xterm.c (x_draw_glyph_string): Be sure to update
10628 s->underline_thickness and s->underline_position. Be sure to draw
10629 underline within the current line area.
10630
10631 * fontset.c: Delete unused variables and add casting for char *
10632 throughout the file.
10633 (fontset_font): Try the fallback fonts of the current fontset
10634 before consulting the default fontset.
10635
10636 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10637
10638 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10639
106402008-05-22 Jason Rumney <jasonr@gnu.org>
10641
10642 * font.c: Don't include strings.h.
10643
10644 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10645
10646 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10647 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10648 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10649 to call xstrcasecmp.
10650
10651 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10652
10653 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10654
10655 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10656
10657 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10658
106592008-05-22 Kenichi Handa <handa@m17n.org>
10660
10661 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10662
10663 * font.c (font_prop_validate_style): Adjust for the format
10664 change of font_style_table.
10665
10666 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10667 two args.
10668
10669 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10670 two args.
10671
106722008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10673
10674 * minibuf.c (keys_of_minibuf): Delete.
10675 * lisp.h (keys_of_minibuf): Delete.
10676 * emacs.c (main): Don't call keys_of_minibuf.
10677
106782008-05-22 Kenichi Handa <handa@m17n.org>
10679
10680 * ftfont.c (ftfont_resolve_generic_family): Rename from
10681 ftfont_list_generic_family. Return a single family for each
10682 generic family.
10683 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10684 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10685 Call font_add_log.
10686 (ftfont_match): Call font_add_log.
10687
10688 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10689 (FONT_DEBUG): Define it.
10690 (font_add_log): Extern it.
10691 (font_assert): Rename from xassert.
10692
10693 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10694 (xfont_list_family): Call font_add_log.
10695 (xfont_match): Likewise.
10696 (memq_no_quit): Delete.
10697
10698 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10699 call of Ffont_xlfd_name.
10700
10701 * xfaces.c (struct table_entry, slant_table, weight_table)
10702 (swidth_table): Move to font.c.
10703
10704 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10705 xassert are changed to font_assert. Delete many unused variables.
10706 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10707 New variables.
10708 (struct table_entry): Move from xfaces.c and modified.
10709 (weight_table, slant_table, width_table): Move from xfaces.c and
10710 contents adjusted for the change of struct table_entry.
10711 (font_style_to_value, font_style_symbolic): Adjust for the
10712 format change of font_style_table.
10713 (font_parse_family_registry): Don't overwrite existing foundry and
10714 family of font_spec.
10715 (font_score): Fix calculation of diff for sizes.
10716 (font_sort_entites): Call font_add_log.
10717 (font_delete_unmatched): Return a newly created list.
10718 (font_list_entities): Fix previous change. Call font_add_log.
10719 (font_matching_entity, font_open_entity, font_close_entity):
10720 Call font_add_log.
10721 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10722 (Finternal_set_font_style_table): Delete.
10723 (BUILD_STYLE_TABLE): New macro.
10724 (build_style_table): New function.
10725 (Vfont_log, font_log_env_checked): New variables.
10726 (font_add_log): New function.
10727 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10728 Declare Lisp variables "font-weight-table", "font-slant-table",
10729 "font-width-table", and "font-log". Initialize font_style_table.
10730
107312008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10732
10733 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10734
107352008-05-21 Seiji Zenitani <zenitani@mac.com>
10736 Ryo Yoshitake <ryo@shiftmode.net>
10737
10738 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10739 (Vframe_alpha_lower_limit): New variable.
10740 (x_set_alpha): New function.
10741
10742 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10743
10744 * xfns.c (x-create-frame, Qalpha):
10745 Initialize the frame parameter `alpha'.
10746 * xterm.c (OPAQUE, OPACITY): New.
10747 (x_set_frame_alpha): New function.
10748 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10749
10750 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10751 * w32fns.c (w32_frame_parm_handlers): Likewise.
10752
107532008-05-20 Jason Rumney <jasonr@gnu.org>
10754
10755 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10756 truetype fonts to opentype list.
10757
107582008-05-20 Juanma Barranquero <lekktu@gmail.com>
10759
10760 * fontset.c (Ffontset_info): Doc fix.
10761 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10762 <ignore-relative-composition>: Fix typos in docstrings.
10763
10764 * font.c (syms-of-font) <font-encoding-alist>:
10765 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10766 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10767 (Ffont_otf_alternates): Doc fixes.
10768
107692008-05-20 Kenichi Handa <handa@m17n.org>
10770
10771 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10772 font.h through out the file.
10773 (FONT_DRIVERS): Rename from FONTOBJ.
10774 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10775 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10776
10777 * emacs.c (main): Call syms_of_font unconditionally.
10778
10779 * font.h (find_font_encoding): Extern it.
10780
10781 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10782 fontset.c.
194d44e7 10783 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10784 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10785 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10786 only when HAVE_WINDOW_SYSTEM is defined.
10787 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10788 when HAVE_WINDOW_SYSTEM is defined.
10789
10790 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10791 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10792
10793 * xfaces.c: Include font.h unconditionally.
10794 (merge_face_ref, merge_face_vectors)
10795 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10796
107972008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10798
10799 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10800 indirect_variable.
10801 * eval.c (lisp_indirect_variable): New fun.
10802 (Fuser_variable_p): Use it.
10803
108042008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10805
10806 * lisp.h (indirect_variable):
10807 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10808 Use Lisp_Symbol pointers rather than Lisp_Object.
10809 Adjust callers.
10810 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10811 To this end, change calling-convention.
10812
10813 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10814 if some non-hidden buffers are selected by string&pred.
10815
108162008-05-19 Chong Yidong <cyd@stupidchicken.com>
10817
10818 * process.c (wait_reading_process_output): Always check status
10819 when in batch mode.
10820
108212008-05-19 Kenichi Handa <handa@m17n.org>
10822
10823 * font.c (font_list_entities): Fix handling of cache.
10824 (font_matching_entity): Likewise.
10825
10826 * ftfont.c (cs_iso8859_1): Delete.
10827 (ft_face_cache): New variable.
10828 (struct ftfont_info): New member fc_charset_idx.
10829 (ftfont_build_basic_charsets): Delete.
10830 (fc_charset_table): New variable.
10831 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10832 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10833 Callers changed.
10834 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10835 (ftfont_spec_pattern): New argument fc_charset_idx.
10836 Check registry more rigidly. Change callers.
10837 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10838 change of :font-entity property of the font.
10839
10840 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10841 property of the font.
10842
108432008-05-18 Juanma Barranquero <lekktu@gmail.com>
10844
10845 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10846 (Funencodable_char_position, Fcheck_coding_systems_region)
10847 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10848 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10849 (Ffind_operation_coding_system, Fset_coding_system_priority)
10850 (Fcoding_system_eol_type): Doc fixes.
10851
108522008-05-17 Glenn Morris <rgm@gnu.org>
10853
10854 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10855
108562008-05-16 Eli Zaretskii <eliz@gnu.org>
10857
10858 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10859 and st_gid.
10860
10861 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10862 HAVE_WINDOW_SYSTEM is not defined.
10863
10864 * xfaces.c (merge_face_ref, merge_face_vectors)
10865 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10866 HAVE_WINDOW_SYSTEM is defined.
10867 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10868
108692008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10870
10871 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10872
108732008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10874
10875 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10876
108772008-05-15 Kenichi Handa <handa@m17n.org>
10878
10879 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10880 preference.
10881
108822008-05-15 Glenn Morris <rgm@gnu.org>
10883
10884 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10885
108862008-05-15 Chong Yidong <cyd@stupidchicken.com>
10887
10888 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10889 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10890
10891 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10892
108932008-05-15 Kenichi Handa <handa@m17n.org>
10894
10895 * ftfont.c (ftfont_list): Downcase family name to check generic
10896 families.
10897
10898 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10899 font-spec for QCfont value.
10900
10901 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10902 buffer. Check the return value of it.
10903
109042008-05-14 Jason Rumney <jasonr@gnu.org>
10905
10906 * w32term.c (w32_get_glyph_overhangs): Remove.
10907 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10908
109092008-05-14 Kenichi Handa <handa@m17n.org>
10910
10911 * font.c (font_prop_validate): Make nil a valid value.
10912 (font_clear_cache): Check if the cached vector of entities is nil
10913 or not.
10914
109152008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10916
10917 * emacs.c (main_thread): Conditionalize on
10918 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10919 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10920
10921 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10922 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10923 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10924
109252008-05-14 Kenichi Handa <handa@m17n.org>
10926
10927 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10928 has no corresponding coding system.
10929
109302008-05-14 Jason Rumney <jasonr@gnu.org>
10931
10932 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10933
10934 * w32font.h (w32font_open_internal): Update declaration.
10935
10936 * w32font.c (w32font_open_internal): Change last argument from
10937 w32font_info struct to font object. Fill in font object from
10938 font_entity. Get Outline metrics if possible. Use them to
10939 calculate underline position and thickness. Use xlfd name as name
10940 property. Don't set codepage.
10941 (w32font_open): Pass font_object to w32font_open_internal. Don't
10942 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10943 (w32font_draw): Use s->font.
10944 (clear_cached_metrics): Don't clear non-existent blocks.
10945
10946 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10947 font was not found.
10948 (x_draw_glyph_string): Use underline position and thickness from font.
10949
10950 * w32uniscribe.c (uniscribe_open): Pass font_object to
10951 w32font_open_internal.
10952
109532008-05-14 Kenichi Handa <handa@m17n.org>
10954
10955 These changes are to delete all legacy font-handling codes, and
10956 make Emacs use only font-backends.
10957
10958 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10959 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10960
10961 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10962
10963 * charset.h (Vcharset_non_preferred_head)
10964 (Vcurrent_iso639_language): Extern them.
10965
10966 * charset.c (Vcharset_non_preferred_head): New variable.
10967 (Vcurrent_iso639_language): New variable.
10968 (syms_of_charset): Declare it as a Lisp variable.
10969 (char_charset): Don't check non preferred charsets. As a last
10970 resort, return charset_unicode.
10971 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10972
10973 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10974 conditionals. Don't check enable_font_backend. Delete all codes
10975 used only when USE_FONT_BACKEND is not defined.
10976
10977 * dispextern.h (struct glyph_string): Change type of `font' to
10978 `struct font *'.
10979 (struct glyph_string): New member underline_position and
10980 underline_thickness.
10981 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10982 (struct face): Change type of `font' to `struct font *'. Remove
10983 members `font_name', `font_info_id'.
10984 (per_char_metric, encode_char): Delete externs.
10985 (calc_pixel_width_or_height): Adjust the prototype.
10986
10987 * emacs.c (enable_font_backend): Delete extern.
10988 (main): Don't set enable_font_backend. Don't check the command
10989 line argument "-disable-font-backend".
10990
10991 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10992 (enum font_property_index): New members FONT_DPI_INDEX,
10993 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10994 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10995 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10996 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10997 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10998 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10999 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11000 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11001 (struct font_spec, struct font_entity): New structs.
11002 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11003 (struct font): Many members from old "struct font_info" moved to
11004 here. Members font and entity deleted.
11005 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11006 the new font-related objects.
11007 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11008 (CHECK_FONT_GET_OBJECT): Likewise.
11009 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11010 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11011 (struct font_driver): New members case_sensitive anc check. Type
11012 of the member list and open changed.
11013 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11014 (font_symbolic_width, font_find_object, font_get_spec)
11015 (font_set_lface_from_name): Delete extern.
11016 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11017
11018 * font.c: Include <strings.h>.
11019 (enable_font_backend): Delete it.
11020 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11021 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11022 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11023 (null_string): Delete it.
11024 (null_vector): Make it static.
11025 (font_family_alist): Delete it.
11026 (Qnormal): Extern it.
11027 (QCextra, QClanguage): Delete it.
11028 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11029 (font_make_spec, font_make_entity, font_make_object)
11030 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11031 the string. Callers changed.
11032 (font_pixel_size): Adjusted for the format change of font-related
11033 objects.
11034 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11035 (font_style_to_value, font_style_symbolic): New function.
11036 (build_font_family_alist): Delete it.
11037 (font_registry_charsets): Use Fassoc_string instead of
11038 assq_no_quit.
11039 (font_prop_validate_symbol): Don't return null_string.
11040 (font_prop_validate_style): Adjusted for the change of
11041 style-related values in a font vector.
11042 (font_property_table): Delete entries for QClanguage and
11043 QCantialias, add entries for QCavgwidth.
11044 (get_font_prop_index): Delete the 2nd argument FROM.
11045 (font_prop_validate): Arguments changed.
11046 (font_put_extra): Adjusted for the change of font-related objects.
11047 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11048 (font_parse_fcname, font_unparse_fcname)
11049 (font_prepare_composition): Likewise.
11050 (font_parse_family_registry): Renamed from font_merge_old_spec.
11051 (otf_open): Delete the 1st arg entity.
11052 (font_otf_capability): Adjusted for the above change.
11053 (font_score): New arg alternate_families. Adjusted for the change
11054 of font-related objects.
11055 (font_sort_entites): New arg best_only.
11056 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11057 Delete them.
11058 (font_match_p): Check alternate families.
11059 (font_find_object): Delete it.
11060 (font_check_object): New function.
11061 (font_clear_cache): Adjusted for the change of font-related objects.
11062 (font_delete_unmatched): New arg.
11063 (font_list_entities): Call font_driver->list with a spec that
11064 doesn't specify style-related properties.
11065 (font_matching_entity): Arguments changed. Caller changed.
11066 (font_open_entity): Adjusted for the change of font-related objects.
11067 (font_close_object, font_has_char, font_encode_char)
11068 (font_get_name, font_get_spec): Likewise.
11069 (font_spec_from_name, font_clear_prop, font_update_lface):
11070 New functions.
11071 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11072 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11073 (font_at): Adjusted for the change of font-related objects.
11074 (font_range): New function.
11075 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11076 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11077 (Fcopy_font_spec, Fmerge_font_spec): New function.
11078 (Ffont_family_list): Renamed from list-families.
11079 (Finternal_set_font_style_table): Arguments changed.
11080 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11081 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11082 change of font-related objects.
11083 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11084
11085 * fontset.h (struct font_info): Delete it. Most members go to
11086 struct font.
11087 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11088 (enum FONT_SPEC_INDEX): Delete it.
11089 (font_info, list_fonts_func, load_font_func, query_font_func)
11090 (set_frame_fontset_func, find_ccl_program_func)
11091 (get_font_repertory_func, new_fontset_from_font_name): Delete
11092 externs.
11093 (fontset_from_font_name): Extern it.
11094 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11095 (FONT_INFO_FROM_FACE): Deleted.
11096 (face_for_font): Adjust prototype.
11097
11098 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11099 conditionals. Don't check enable_font_backend. Delete all codes
11100 used only when USE_FONT_BACKEND is not defined.
11101 (get_font_info_func, list_font_func, load_font_func)
11102 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11103 (get_font_repertory_func): Delete them.
11104 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11105 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11106 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11107 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11108 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11109 (fontset_compare_rfontdef): New function.
11110 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11111 rfont-defs by qsort. Adjusted for the change of font-group vector.
11112 (load_font_get_repertory): Deleted.
11113 (fontset_find_font): Use new macros to ref/set elements of
11114 font-def and rfont-def.
11115 (fontset_font): Fix the timing of remembering that no font for C.
11116 (free_face_fontset): Do nothing if the face has no fontset.
11117 (face_suitable_for_char_p): Use new macros to ref/set elements of
11118 rfont-def.
11119 (face_for_char): Likewise. Call face_for_char with font_object.
11120 (fs_load_font): Delete. Delete #pragma surrounding it.
11121 (fs_query_fontset): Use strcasecmp instead of strcmp.
11122 (generate_ascii_font_name): Adjusted for the format change of
11123 font-spec.
11124 (Fset_fontset_font): Likewise. Use new macros to set elements of
11125 font-def.
11126 (Fnew_fontset): Use font_unparse_xlfd to generate
11127 FONTSET_ASCII (fontset).
11128 (new_fontset_from_font_name): Deleted.
11129 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11130 a fontset is already created for the font. FIx updating of
11131 Vfontset_alias_alist.
11132 (fontset_ascii_font): Deleted.
11133 (Ffont_info): Adjusted for the format change of font-spec.
11134 (Finternal_char_font): Likewise.
11135 (Ffontset_info): Likewise.
11136 (syms_of_fontset): Don't check load_font_func.
11137
11138 * fns.c (internal_equal): Handle PREV_FONT.
11139
11140 * frame.h: Delete USE_FONT_BACKEND conditional.
11141
11142 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11143 conditionals. Don't check enable_font_backend. Delete all codes
11144 used only when USE_FONT_BACKEND is not defined.
11145 (x_set_font): Call x_new_font, not x_new_fontset2.
11146 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11147 already set for the frame.
11148
11149 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11150 a font-entity by font_make_entity. Use font_intern_prop instead
11151 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11152 font property. If a font is scalable, set avgwidth property to 0.
11153 Set font-entity property by font_put_extra.
11154 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11155 (ffont_driver): Adjusted for the change of struct font_driver.
11156 (ftfont_spec_pattern): New function.
11157 (ftfont_list): Return a list, not vector.
11158 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11159 (ftfont_list_family): Don't downcase names.
11160 (ftfont_free_entity): Deleted.
11161 (ftfont_open): Return a font-object. Adjusted for the change of
11162 struct font. Get underline_thickness and underline_position from
11163 font property. Don't update dpyinfo->smallest_font_height and
11164 dpyinfo->smallest_char_width.
11165 (ftfont_close): Don't free `struct font'.
11166 (ftfont_has_char): Adjusted for the format change of font-entity.
11167 (ftfont_encode_char, ftfont_text_extents): Likewise.
11168
11169 * ftxfont.c (ftxfont_list): Return a list, not vector.
11170 (ftxfont_open): Return a font-object. Adjusted for the change of
11171 struct font. Get underline_thickness and underline_position from
11172 font property. Don't update dpyinfo->smallest_font_height and
11173 dpyinfo->smallest_char_width.
11174 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11175 (ftxfont_draw): Adjusted for the change of struct font.
11176
11177 * image.c (image_ascent): Don't include "charset.h". Include
11178 "character.h" and "font.h".
11179
11180 * lisp.h (enum pvec_type): New member PREV_FONT.
11181 (Fassoc_string): EXFUN it.
11182
11183 * print.c: Include font.h.
11184 (print_object): Handle font-related objects.
11185
11186 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11187 conditionals. Don't check enable_font_backend. Delete all codes
11188 used only when USE_FONT_BACKEND is not defined.
11189 (handle_auto_composed_prop): Do nothing if it->f is not on a
11190 window system. Check how many following characters can be
11191 displayed by the same font.
11192 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11193 'struct font *'.
11194 (get_char_face_and_encoding): Assign the whole encoding task to
11195 the `encode-char' method of a font driver.
11196 (fill_composite_glyph_string): Adjusted for the change of `struct
11197 face' and `struct glyph_string'.
11198 (fill_glyph_string): Likewise.
11199 (get_per_char_metric): Arguments changed.
11200 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11201 and `struct glyph_string'.
11202 (produce_stretch_glyph, calc_line_height_property)
11203 (x_produce_glyphs): Likewise.
11204
11205 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11206 conditionals. Don't check enable_font_backend. Delete all codes
11207 used only when USE_FONT_BACKEND is not defined. Use
11208 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11209 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11210 (Qp): Extern them.
11211 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11212 Deleted.
11213 (struct font_name): Deleted.
11214 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11215 (compare_fonts_by_sort_order): New function.
11216 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11217 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11218 Deleted.
11219 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11220 compare_fonts_by_sort_order.
11221 (Fx_font_family_list): Call Ffont_family_list.
11222 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11223 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11224 (face_symbolic_slant, face_symbolic_swidth)
11225 (split_font_name_into_vector, build_font_name_from_vector)
11226 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11227 (font_rescale_ratio, split_font_name, build_font_name)
11228 (free_font_names, sort_fonts, x_face_list_fonts)
11229 (face_font_available_p, sorted_font_list, cmp_font_names)
11230 (font_list_1, concat_font_list, font_list, remove_duplicates):
11231 Deleted.
11232 (Fx_list_fonts): Use Ffont_list.
11233 (LFACE_AVGWIDTH): Deleted.
11234 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11235 by FONTP.
11236 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11237 (set_lface_from_font_name): Delete it.
11238 (set_lface_from_font): Renamed from
11239 set_lface_from_font_and_fontset. Caller changed. Don't set
11240 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11241 for face.
11242 (merge_face_vectors): Copy font-spec if necessary.
11243 Clear properties of the font-spec if necessary.
11244 (merge_face_ref): Clear properties of the font-spec if necessary.
11245 (Finternal_set_lisp_face_attribute): Likewise.
11246 (set_font_frame_param): Use font_load_for_lface to load a
11247 font-object, and call Fmodify_frame_parameters with it.
11248 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11249 font name by Ffont_xlfd_name.
11250 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11251 QCslant, and QCwidth.
11252 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11253 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11254 Compare fonts by EQ.
11255 (lookup_non_ascii_face): Deleted.
11256 (face_for_font): The 2nd argument changed.
11257 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11258 Check atomic font properties by case insensitive.
11259 (realize_non_ascii_face): Set face->overstrike correctly.
11260 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11261 (dump_realized_face): Get font name from
11262 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11263
11264 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11265 conditionals. Don't check enable_font_backend. Delete all codes
11266 used only when USE_FONT_BACKEND is not defined.
11267 (xic_create_xfontset): Original code deleted and renamed from
11268 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11269 (x_make_gc): Don't set GCFont in GCs.
11270 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11271 opened by "fixed".
11272 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11273 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11274 get_font_repertory_func.
11275
11276 * xfont.c: Include <stdlib.h> and "ccl.h".
11277 (struct xfont_info): New structure.
11278 (xfont_query_font): Deleted.
11279 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11280 moved from xterm.c.
11281 (xfont_driver): Adjusted for the change of struct font_driver.
11282 (compare_font_names): New function.
11283 (xfont_list_pattern): Sort font names case insensitively. Make
11284 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11285 (xfont_list): Return a list, not vector.
11286 (xfont_match): If the font doesn't have QCname property, generate
11287 a name from the other font properties.
11288 (xfont_open): Return a font-object. Adjusted for the change of
11289 struct font. Get underline_thickness and underline_position from
11290 font property. Don't update dpyinfo->smallest_font_height and
11291 dpyinfo->smallest_char_width.
11292 (xfont_close): Don't free struct font.
11293 (xfont_prepare_face): Adjusted for the change of struct font.
11294 (xfont_done_face): Deleted.
11295 (xfont_has_char): Adjusted for the change of struct font.
11296 (xfont_encode_char, xfont_draw): Likewise.
11297 (xfont_check): New function.
11298
11299 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11300 callback function.
11301 (xftfont_match): Adjusted for the format change of font-entity.
11302 (xftfont_open): Adjusted for the format change of font-entity and
11303 font-object. Adjusted for the change of struct font. Return a
11304 font-object. Don't update dpyinfo->smallest_font_height and
11305 dpyinfo->smallest_char_width.
11306 (xftfont_close): Block input while calling XftFontClose.
11307 (xftfont_prepare_face): Don't block input while calling
11308 xftfont_get_colors. Adjusted for the change of struct font.
11309 (xftfont_shape): Return value of error case fixed.
11310
11311 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11312
11313 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11314 conditionals.
11315 (FONT_WIDTH): Return (f)->max_width.
11316 (struct x_display_info): Delete member `font'.
11317 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11318 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11319 (struct x_output): Change type of `font' to `struct font *'.
11320
11321 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11322 conditionals. Don't check enable_font_backend. Delete all codes
11323 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11324 (x_per_char_metric, x_encode_char): Deleted.
11325 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11326 (x_compute_glyph_string_overhangs): Adjusted for the change of
11327 `struct face'.
11328 (x_draw_glyph_string_foreground)
11329 (x_draw_composite_glyph_string_foreground): Likewise.
11330 (x_draw_glyph_string): Likewise. Use font->underline_position and
11331 font->underline_thickness.
11332 (x_new_font): Renamed from x_new_fontset2.
11333 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11334 (x_check_font): Call `check' method of a font driver.
11335 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11336 (x_query_font, x_get_font_repertory): Deleted.
11337 (x_find_ccl_program): Renamed and moved to xfont.c.
11338 (x_redisplay_interface): Adjusted for the change of `struct
11339 redisplay_interface'.
11340
11341 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11342 conditionals. Don't check enable_font_backend. Delete all codes
11343 used only when USE_FONT_BACKEND is not defined. Surround non-used
11344 code by "#ifdef OLD_FONT" and "endif".
11345 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11346
11347 * w32font.h (struct w32font_info): New member.
11348 (FONT_COMPAT): New macro.
11349 (w32font_open_internal): Prototype adjusted.
11350
11351 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11352 OLD_FONT" and "endif".
11353
11354 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11355 conditionals. Don't check enable_font_backend. Delete all codes
11356 used only when USE_FONT_BACKEND is not defined.
11357 (w32font_open): Return a font-object. Make a font-object by
11358 font_make_object. Adjusted for the change of struct w32font_info.
11359 (w32font_close): Don't free struct font. Adjusted for the change
11360 of struct w32font_info.
11361 (w32font_encode_char, w32font_text_extents, w32font_draw):
11362 Adjusted for the change of struct w32font_info.
11363 (w32font_draw): Likewise.
11364 (w32font_list_internal): Return a list, not vector.
11365 (w32font_open_internal): Change the 4th arg to font-object.
11366 Adjusted for the change of struct w32font_info and font-object format.
11367 (add_font_name_to_list): Don't downcase names.
11368 (w32_enumfont_pattern_entity): Make a font-entity by
11369 font_make_entity. Adjusted for the format change of font-entity.
11370 Use FONT_SET_STYLE to set a style-related font property. If a
11371 font is scalable, set avgwidth property to 0. Set font-entity
11372 property by font_put_extra.
11373 (font_matches_spec): Adjusted for the format change of font-entity.
11374 (w32_weight_table, w32_decode_weight): New variables.
11375 (w32_encode_weight): New function.
11376 (fill_in_logfont): Adjusted for the format change of font-spec.
11377 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11378 weight value.
11379 (w32font_driver): Adjusted for the change of struct font_driver.
11380
11381 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11382 conditionals. Don't check enable_font_backend. Surround non-used
11383 code by "#ifdef OLD_FONT" and "endif".
11384 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11385 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11386
11387 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11388 conditionals. Don't check enable_font_backend. Delete all codes
11389 used only when USE_FONT_BACKEND is not defined. Surround non-used
11390 code by "#ifdef OLD_FONT" and "endif".
11391
11392 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11393 (uniscribe_open): Return value changed to font-object.
11394 Adjusted for the format change of font-object.
11395 (uniscribe_otf_capability): Adjusted for the change of struct font.
11396 (add_opentype_font_name_to_list): Don't downcase names.
11397 (uniscribe_font_driver): Adjusted for the change of struct
11398 font_driver.
11399
114002008-05-13 Chong Yidong <cyd@stupidchicken.com>
11401
11402 * dispnew.c (update_frame_1): Check if tty output is still valid
11403 before flushing it.
11404
114052008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11406
11407 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11408 to Gtk+ menus.
11409
114102008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11411
11412 * dired.c (file_name_completion): Tweak the code so as to always do it
11413 in a single pass. Tighten the scope of some variables.
11414
11415 * dired.c (Qdefault_directory): New var.
11416 (file_name_completion): Use it instead of Fexpand_file_name.
11417 (syms_of_dired): Initialize it.
11418
114192008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11420
11421 * fileio.c (double_dollars): Remove dead code.
11422
114232008-05-10 Eli Zaretskii <eliz@gnu.org>
11424
11425 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11426 Mention w32-get-true-file-attributes in doc string.
11427
11428 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11429
114302008-05-09 Glenn Morris <rgm@gnu.org>
11431
11432 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11433 2008-04-23.
11434
114352008-05-09 Eli Zaretskii <eliz@gnu.org>
11436
11437 Support for reporting owner and group of each file on MS-Windows:
11438 * dired.c (stat_uname, stat_gname): New functions, with special
11439 implementation for w32.
11440 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11441
11442 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11443 (dflt_group_name): New static variable.
11444 (dflt_group): Rename from the_group.
11445 (init_user_info): Init dflt_group fields. Get user's group name
11446 from LookupAccountSid.
11447 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11448 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11449 New initialization states.
11450 (globals_of_w32): Initialize them to zero. Initialize the default
11451 group name to "None".
11452 (GetFileSecurity_Name): New global var, the name of the function
11453 to call for GetFileSecurity.
11454 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11455 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11456 (get_file_security, get_security_descriptor_owner)
11457 (get_security_descriptor_group, is_valid_sid)
11458 (get_file_security_desc, get_rid, get_name_and_id)
11459 (get_file_owner_and_group): New functions.
11460 (stat): Use get_file_security_desc and get_file_owner_and_group to
11461 report the owner and primary group of each file. Don't ignore the
11462 high 32 bits of file's size, now that st_size is 64-bit wide.
11463 Fix test when to get true file attributes.
11464 (init_user_info): Use get_rid instead of equivalent inline code.
11465 (fstat): Don't ignore the high 32 bits of file's size.
11466
114672008-05-09 Chong Yidong <cyd@stupidchicken.com>
11468
11469 * image.c (png_load): Use correct bit-depth for setting background
11470 color.
11471
114722008-05-08 Eli Zaretskii <eliz@gnu.org>
11473
11474 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11475 epa-hook.elc.
11476
114772008-05-08 Juanma Barranquero <lekktu@gmail.com>
11478
11479 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11480
114812008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11482
11483 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11484 because the original parameters are in pure storage now.
11485 (mac_window): Remove unused params. Update callers.
11486
114872008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11488
11489 * lread.c (substitute_object_recurse): Use lower-level primitives.
11490 Don't signal errors when traversing sub-char-tables.
11491 Don't loop over all the possible characters when traversing char-tables.
11492
11493 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11494 just like we do in print.c.
11495
114962008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11497
11498 * minibuf.c (Ftry_completion): Remove code left over from when we used
11499 scmp instead of Fcompare_strings.
11500
115012008-05-04 Juanma Barranquero <lekktu@gmail.com>
11502
11503 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11504
115052008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11506
11507 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11508 Create bitmap context in native byte order.
11509
11510 * macterm.c (XDrawLine)
11511 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11512 context in native byte order.
11513
115142008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11515
11516 * config.in: Regenerate.
11517
11518 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11519 New definitions for Image I/O support.
11520 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11521 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11522 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11523 (mac_data_provider_release_data, image_load_image_io)
11524 [USE_MAC_IMAGE_IO]: New functions.
11525 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11526 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11527 (init_image_func_pointer) [MAC_OSX]: Remove function.
11528 (image_load_quartz2d) [MAC_OSX]: Check availability of
11529 CGImageCreateWithPNGDataProvider at compile time.
11530 Use lowercase `false' for boolean constant.
11531 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11532 Use image_load_image_io.
11533 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11534 Don't check MyCGImageCreateWithPNGDataProvider.
11535 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11536 Don't call init_image_func_pointer.
11537
11538 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11539
11540 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11541 Make variable non-static.
11542 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11543 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11544
11545 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11546 (RED_FROM_ULONG): Mask off higher bits.
11547 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11548
11549 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11550 Include AvailabilityMacros.h.
11551 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11552 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11553
115542008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11555
11556 * chartab.c (Fset_char_table_range): If range is t, really set all
11557 chars to that value.
11558
115592008-05-03 Eli Zaretskii <eliz@gnu.org>
11560
11561 * dired.c (Ffile_attributes): Don't allow the device number become
11562 negative.
11563
115642008-05-02 Daiki Ueno <ueno@unixuser.org>
11565
11566 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11567
115682008-05-02 Juri Linkov <juri@jurta.org>
11569
11570 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11571 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11572 DEFAULT argument as a list of default values in docstrings.
11573
115742008-05-01 Chong Yidong <cyd@stupidchicken.com>
11575
11576 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11577
115782008-05-01 Martin Rudalics <rudalics@gmx.at>
11579
11580 * dispnew.c (change_frame_size_1): Preserve small windows when
11581 shrinking frames by calling set_window_height|width with third
11582 arg 2.
11583
11584 * window.h (struct window): Replace field too_small_ok by field
11585 resize_proportionally.
11586
11587 * window.c (make_window): Initialize resize_proportionally.
11588 (enlarge_window): Temporarily set resize_proportionally to make
11589 sure that shrink_windows does scale the window proportionally.
11590 (shrink_windows): When window has resize_proportionally set try
11591 to shrink it proportionally by stealing from other windows.
11592 (struct saved_window, Fset_window_configuration)
11593 (compare_window_configurations): Handle resize_proportionally.
11594 (WINDOW_TOTAL_SIZE): New macro.
11595 (window_min_size, shrink_windows, size_window): Use it.
11596 (check_min_window_sizes): Remove. Invalid values of
11597 window-min-height|width are handled by window_min_size_2 now.
11598 (size_window, Fsplit_window, enlarge_window)
11599 (adjust_window_trailing_edge, grow_mini_window): Don't call
11600 check_min_window_sizes.
11601 (window_min_size_2, window_min_size_1, window_min_size):
11602 New argument safe_p for retrieving "safe" minimum sizes.
11603 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11604 (adjust_window_trailing_edge, grow_mini_window):
11605 Adjust arguments of window_min_size... functions.
11606 (shrink_windows): Argument min_size removed. New argument
11607 safe_p allows shrinking windows to their safe minimum sizes.
11608 Calculate minimum size and decide whether a window shall be
11609 deleted for each window individually.
11610 (size_window): When nodelete_p equals 2, tell shrink_windows to
11611 delete windows only if their new minimum size is no more safe.
11612 (shrink_window_lowest_first): Call window_min_size_1 to make
11613 sure to preserve modeline of bottom-most window when resizing
11614 the minibuffer.
11615 (Fset_window_configuration, Fcurrent_window_configuration)
11616 (compare_window_configurations): Do not handle
11617 window-min-height|width any more.
11618 (syms_of_window): Clarify window-min-height|width doc-strings.
11619
116202008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11621
11622 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11623 some more. Copy some of the code from Ftry_completions.
11624 Remove special case code that dates back to initial revision when the
11625 slash was only added when necessary and that can't trigger nowadays.
11626
116272008-04-27 Kenichi Handa <handa@m17n.org>
11628
11629 * font.c (font_prop_validate): Signal `error' instead of `font'.
11630
116312008-04-29 Jason Rumney <jasonr@gnu.org>
11632
11633 * w32fns.c (Fw32_battery_status): New defun.
11634 (syms_of_w32fns): Defsubr it.
11635
116362008-04-28 Andreas Schwab <schwab@suse.de>
11637
11638 * dired.c (file_name_completion): Fix another mixing of encoded
11639 and decoded names.
11640
116412008-04-28 Juanma Barranquero <lekktu@gmail.com>
11642
11643 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11644
116452008-04-27 Juanma Barranquero <lekktu@gmail.com>
11646
11647 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11648
116492008-04-27 Andreas Schwab <schwab@suse.de>
11650
11651 * dired.c (file_name_completion): Fix inappropriate mixing of
11652 encoded and decoded names.
11653
11654 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11655
11656 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11657
116582008-04-26 Eli Zaretskii <eliz@gnu.org>
11659
11660 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11661 2008-03-31, it's not needed anymore with `struct stat' definition
11662 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11663 for the same reasons.
11664
116652008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11666
11667 * m/sparc.h: Additional redefinitions for GNU/Linux.
11668
116692008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11670
11671 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11672 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11673 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11674 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11675 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11676 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11677 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11678 Likewise.
11679
11680 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11681 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11682 (mac_ax_number_of_characters): Add externs.
11683 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11684 [USE_MAC_TSM]: Likewise.
11685 (mac_handle_text_input_event) [MAC_OSX]:
11686 Handle kEventTextInputOffsetToPos for no active input area case.
11687 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11688 (mac_handle_document_access_event)
11689 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11690 (install_application_handler) [MAC_OSX]: Register handlers for
11691 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11692 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11693 Register mac_handle_document_access_event.
11694
11695 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11696 Make functions non-static.
11697
116982008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11699
11700 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11701 (read_file_name_completion_ignore_case, insert_default_directory)
11702 (Qdefault_directory): Move to minibuffer.el.
11703 (Fread_file_name): Call the new `read-file-name' instead.
11704
117052008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11706
11707 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11708 Make function non-static.
11709 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11710 Remove function.
11711 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11712 Move to mactoolbox.c.
11713 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11714
11715 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11716 (mac_rect_make): New macro.
11717
11718 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11719 instead of float.
11720 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11721 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11722 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11723 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11724 CGRectMake.
11725 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11726 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11727 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11728 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11729 instead of WindowRef in argument type.
11730 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11731 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11732 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11733 instead of DISPLAY. All uses changed.
11734 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11735 (x_calc_absolute_position): Simplify so as not to use
11736 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11737
11738 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11739 instead of WindowRef in argument type.
11740 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11741 [TARGET_API_MAC_CARBON]: Remove externs.
11742 (create_apple_event, mac_event_parameters_to_lisp)
11743 [TARGET_API_MAC_CARBON]: Add externs.
11744
11745 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11746 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11747 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11748 is clicked.
11749 (x_activate_menubar): Remove extern for saved_menu_event_location.
11750 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11751 Move from mac.c.
11752
117532008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11754
11755 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11756 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11757
117582008-04-23 Jason Rumney <jasonr@gnu.org>
11759
11760 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11761 attributes only for local files.
11762
11763 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11764 default to Qlocal.
11765
117662008-04-22 Juri Linkov <juri@jurta.org>
11767
11768 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11769 read-buffer-to-switch instead of using the letter "B".
11770
117712008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11772
11773 * fileio.c (Qdefault_directory): New variable.
11774 (Fread_file_name): Use it to pass `dir' to the completion functions.
11775
117762008-04-20 Chong Yidong <cyd@stupidchicken.com>
11777
11778 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11779
117802008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11781
11782 * keyboard.c (Vpre_help_message): Remove.
11783 (show_help_echo): Remove default C code.
11784
11785 * dired.c (directory_files_internal, file_name_completion):
11786 Only call ENCODE_FILE if the string is indeed decoded.
11787
117882008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11789
11790 * Makefile.in (TOOLKIT_DEFINES): Remove.
11791 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11792
117932008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11794
11795 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11796 (mactoolbox.o): New target.
11797
11798 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11799 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11800
11801 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11802 Use mac_set_frame_window_background instead of XSetWindowBackground.
11803 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11804 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11805 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11806 instead of SetWindowTitleWithCFString.
11807 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11808 Move function to mactoolbox.c.
11809 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11810 Use mac_set_window_modified instead of SetWindowModified.
11811 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11812 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11813 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11814 FrontNonFloatingWindow. Use mac_activate_window instead of
11815 ActivateWindow. Use mac_active_non_floating_window instead of
11816 ActiveNonFloatingWindow.
11817 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11818 Use mac_show_hourglass and mac_hide_hourglass.
11819 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11820 instead of GetGlobalMouse.
11821 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11822 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11823 Use mac_bring_window_to_front instead of BringToFront.
11824 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11825 mactoolbox.c.
11826 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11827 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11828 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11829 mactoolbox.c.
11830
11831 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11832 (XtPointer): Move typedef from macmenu.c.
11833 (enum button_type): Move enum from macmenu.c.
11834 (widget_value): Move typedef from macmenu.c.
11835 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11836 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11837 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11838 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11839 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11840 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11841 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11842 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11843 (Selection): Move typedef from macselect.c.
11844 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11845 macterm.c.
11846 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11847 (mac_is_window_collapsed, mac_bring_window_to_front)
11848 (mac_send_window_behind, mac_hide_window, mac_show_window)
11849 (mac_collapse_window, mac_front_non_floating_window)
11850 (mac_active_non_floating_window, mac_activate_window)
11851 (mac_move_window_structure, mac_move_window, mac_size_window)
11852 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11853
11854 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11855 (enum mac_menu_kind): Move enum to mactoolbox.c.
11856 (min_menu_id): Move variable to mactoolbox.c.
11857 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11858 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11859 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11860 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11861 [TARGET_API_MAC_CARBON]: Likewise.
11862 (XtPointer): Move typedef to macgui.h.
11863 (enum button_type): Move enum to macgui.h.
11864 (widget_value): Move typedef to macgui.h.
11865 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11866 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11867 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11868 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11869 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11870 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11871 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11872 (popup_activated_flag): Make variable non-static.
11873 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11874 (add_menu_item, fill_menu, dispose_menus):
11875 Move functions to mactoolbox.c.
11876 (restore_show_help_function, menu_target_item_handler)
11877 (install_menu_target_item_handler, mac_handle_dialog_event)
11878 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11879 [TARGET_API_MAC_CARBON]: Likewise.
11880 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11881 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11882 (find_and_call_menu_selection, name_is_separator): Make function
11883 non-static.
11884 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11885 to mactoolbox.c.
11886 (set_frame_menubar): Don't call install_menu_quit_handler.
11887 (menu_item_selection): New variable.
11888 (mac_menu_show): Use create_and_show_popup_menu.
11889 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11890 selection but set variable menu_item_selection. All uses changed.
11891 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11892 Call install_menu_quit_handler. Move to mactoolbox.c.
11893
11894 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11895 (Selection): Move typedef to macgui.h.
11896 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11897 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11898 Make variables non-static.
11899 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11900 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11901 Make functions non-static.
11902 (Vmac_service_selection) [MAC_OSX]: Likewise.
11903 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11904 (mac_valid_selection_target_p, mac_clear_selection)
11905 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11906 (mac_put_selection_value, mac_selection_has_target_p)
11907 (mac_get_selection_value, mac_get_selection_target_list)
11908 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11909 Move functions to mactoolbox.c.
11910 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11911 Likewise.
11912 (copy_scrap_flavor_data, mac_handle_service_event)
11913 (install_service_handler) [MAC_OSX]: Likewise.
11914 (syms_of_macselect) <Vmac_dnd_known_types>:
11915 Use mac_dnd_default_known_types.
11916
11917 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11918 Move to mactoolbox.c.
11919 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11920 (Fx_selection_owner_p): Add EXFUN.
11921 (install_window_handler, remove_window_handler, XSetWindowBackground):
11922 Remove externs.
11923 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11924 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11925 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11926 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11927 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11928 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11929 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11930 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11931 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11932 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11933 (mac_valid_selection_target_p, mac_clear_selection)
11934 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11935 (mac_put_selection_value, mac_selection_has_target_p)
11936 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11937 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11938 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11939 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11940 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11941 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11942 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11943 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11944 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11945
11946 * mactoolbox.c: New file.
11947
119482008-04-18 Jason Rumney <jasonr@gnu.org>
11949
11950 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11951
119522008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11953
11954 * character.c (Fmultibyte_char_to_unibyte):
11955 Return latin1 chars unchanged.
11956
11957 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11958 relocated if it points to `name'.
11959
119602008-04-17 Kenichi Handa <handa@m17n.org>
11961
11962 * data.c (Faset): Allow setting a multibyte character in an
11963 ASCII-only unibyte string.
11964
11965 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11966
119672008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11968
11969 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11970 done in config.h.
11971
119722008-04-16 Juanma Barranquero <lekktu@gmail.com>
11973
11974 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11975 (Fchar_direction): Add usage in the docstring.
11976
119772008-04-15 Chong Yidong <cyd@stupidchicken.com>
11978
11979 * keyboard.c (read_key_sequence): Remove always-true checks.
11980
119812008-04-14 Jason Rumney <jasonr@gnu.org>
11982
11983 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11984 compatibility struct, for better underline positioning.
11985
119862008-04-13 David Hansen <david.hansen@gmx.net>
11987
11988 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11989 string.
11990
119912008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11992
11993 * m/hp800.h (XUINT, XSET): Remove.
11994
119952008-04-12 Juanma Barranquero <lekktu@gmail.com>
11996
11997 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11998 previous change.
11999
120002008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12001
12002 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12003 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12004
120052008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12006
12007 * keymap.h (map_keymap_canonical): Declare.
12008 * xmenu.c (single_keymap_panes): Use it.
12009
120102008-04-11 Glenn Morris <rgm@gnu.org>
12011
12012 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12013 set the target's value to that of the alias.
12014
120152008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12016
12017 * term.c (set_tty_color_mode): Left over typo.
12018
120192008-04-10 Michael Albinus <michael.albinus@gmx.de>
12020
12021 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12022 only after check for file name handler functions. Signal, when
12023 native functionality is not supported.
12024 (syms_of_fileio): Declare it unconditionally.
12025
120262008-04-10 Jason Rumney <jasonr@gnu.org>
12027
12028 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12029 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12030
12031 * w32.c (logon_network_drive): Also logon to remote drives that
12032 are mapped to drive letters.
12033
120342008-04-10 Glenn Morris <rgm@gnu.org>
12035
12036 * xdisp.c (truncate-partial-width-windows): Doc fix.
12037
120382008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12039
12040 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12041 Move functions to minibuffer.el.
12042 (syms_of_fileio): Don't declare them.
12043
120442008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12045
12046 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12047 (syms_of_minibuf): Remove its initialization.
12048
12049 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12050
120512008-04-09 Juanma Barranquero <lekktu@gmail.com>
12052
12053 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12054
120552008-04-09 Jason Rumney <jasonr@gnu.org>
12056
12057 * makefile.w32-in (distclean): Delete makefile too.
12058 (maintainer-clean): New target.
12059
12060 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12061
12062 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12063 for new font backend and composite cases.
12064
120652008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12066
12067 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12068 Most of the code moved to run_timers.
12069 (do_pending_atimers): Call run_timers.
12070 (run_timers): New function.
12071
12072 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12073 run atimers.
12074
12075 * process.c (wait_reading_process_output): The same as above.
12076
120772008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12078
12079 * minibuf.c (last_exact_completion): Remove variable.
12080 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12081 (complete_and_exit_1, complete_and_exit_2)
12082 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12083 (Fdisplay_completion_list, display_completion_list_1)
12084 (Fminibuffer_completion_help, Fself_insert_and_exit)
12085 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12086 minibuffer.el.
12087 (syms_of_minibuf): Remove corresponding initializations.
12088
12089 * keyboard.c (Qdeactivate_mark): New var.
12090 (command_loop_1): Use it to call `deactivate-mark'.
12091 (syms_of_keyboard): Initialize it.
12092
12093 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12094 to another frame.
12095 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12096 Don't call set_tty_color_mode.
12097 (store_frame_param): Reset previous_frame rather than call
12098 set_tty_color_mode.
12099 * term.c (set_tty_color_mode): Rewrite.
12100 * dispextern.h (set_tty_color_mode): New type.
12101 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12102
121032008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12104
12105 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12106 for generic chars, which do not exist any more in emacs-unicode.
12107
121082008-04-08 Michael Albinus <michael.albinus@gmx.de>
12109
12110 * coding.c (detect_coding_emacs_mule)
12111 (Ffind_operation_coding_system): Fix typo.
12112
121132008-04-08 Jason Rumney <jasonr@gnu.org>
12114
12115 * w32uniscribe.c (SNAME): Extract only symbol name.
12116
12117 * w32font.h (struct w32_metric_cache): New struct.
12118 (w32font_info): Use it.
12119 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12120 (CACHE_BLOCKSIZE): New constants.
12121
12122 * w32font.c (Qja, Qko, Qzh): New symbols.
12123 (syms_of_w32font): Initialise them.
12124 (font_matches_spec): Use them to filter by language.
12125 (recompute_cached_metrics): Remove function.
12126 (compute_metrics, clear_cached_metrics): New functions.
12127 (w32font_encode_char): Use them to manage metric cache.
12128 (w32font_text_extents): Cache metrics for all glyphs on demand.
12129 Delay converting glyph indices to WORD until needed.
12130 (w32font_open_internal): Initialize metric cache to empty.
12131 (registry_to_w32_charset): Charset should always be a symbol.
12132 (fill_in_logfont, list_all_matching_fonts): Family should
12133 always be a symbol.
12134
121352008-04-06 Jason Rumney <jasonr@gnu.org>
12136
12137 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12138 Give up if glyph indices not supported. Use uniscribe obtained
12139 ABC widths for individual metrics. Map glyph clusters back to
12140 characters using fClusterStart flag. Return number of glyphs
12141 produced, not chars processed.
12142 (uniscribe_shape): Map char at FROM to current glyph.
12143
121442008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12145
12146 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12147 Use SetMenuItemHierarchicalMenu.
12148
121492008-04-05 Jason Rumney <jasonr@gnu.org>
12150
12151 * image.c (pbm_load): Allow color values up to 65535.
12152 Throw an error if max_color_idx is outside the supported range.
12153 Report an error when image size is invalid.
12154 Read two bytes at a time when raw images have max_color_idx above 255.
12155
121562008-04-05 Eli Zaretskii <eliz@gnu.org>
12157
12158 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12159 cFileName a file name that includes `?' characters, use the 8+3
12160 alias in cAlternateFileName instead.
12161
121622008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12163
12164 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12165 append "CCL: Quitted" when the CCL program is quitted.
12166 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12167
12168 * ccl.h (struct ccl_program): New member quit_silently.
12169
121702008-04-05 Chong Yidong <cyd@stupidchicken.com>
12171
12172 * search.c (compile_pattern_1): Treat non-nil and non-string of
12173 search-spaces-regexp as nil.
12174
12175 * minibuf.c (Fassoc_string): Tweak docstring.
12176
121772008-04-05 Eli Zaretskii <eliz@gnu.org>
12178
12179 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12180 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12181 2008-03-14 to force inode be positive.
12182
12183 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12184 _S_* ones, since we now use our own sys/stat.h.
12185 (stat, fstat): Don't mangle the inode number.
12186 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12187
121882008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12189
12190 * frame.h (struct frame): Give one more bit to `visible' since we use
12191 values larger than 1 to indicate obscured frames on ttys.
12192
12193 * keymap.c (Qkeymap_canonicalize): New var.
12194 (Fmap_keymap_internal): New fun.
12195 (describe_map): Use keymap-canonicalize.
12196
12197 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12198 (Fundo_boundary): Set them.
12199 (syms_of_undo): Initialize them.
12200 (record_point): Use them instead of last_point_position*.
12201 (last_undo_buffer): Change type.
12202
122032008-04-04 Jason Rumney <jasonr@gnu.org>
12204
12205 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12206 (recompute_cached_metrics): Don't set ascent and descent per char.
12207
12208 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12209 (uniscribe_check_otf): Add GC protection before consing.
12210 Rearrange loop for counting features.
12211
122122008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12213
12214 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12215 buffer with byte-size of source buffer.
12216
122172008-04-03 Chong Yidong <cyd@stupidchicken.com>
12218
12219 * callint.c (Fcall_interactively): Handle temporary region even
12220 when shift-select-mode is off.
12221
122222008-04-03 Jason Rumney <jasonr@gnu.org>
12223
12224 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12225
122262008-04-03 Kenichi Handa <handa@m17n.org>
12227
12228 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12229 (CATEGORY_MASK_UTF_16): Likewise.
12230 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12231 binary file.
12232 (detect_coding): Add null-byte detection for a binary file.
12233 (detect_coding_system): Likewise.
12234
122352008-04-03 Jason Rumney <jasonr@gnu.org>
12236
12237 * w32uniscribe.c: New file.
12238
12239 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12240
12241 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12242
12243 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12244 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12245 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12246 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12247 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12248 (Qphonetic): New symbols.
12249 (syms_of_w32font): Initialize them.
12250 (font_supported_scripts): Use them.
12251 (w32font_list_family): List all charsets.
12252 (w32font_text_extents, recompute_cached_metrics): Fix metric
12253 calculations.
12254 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12255 Give opentype fonts their own format.
12256 (font_matches_spec): New arguments backend and logfont.
12257 Handle :otf spec for uniscribe backend.
12258 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12259 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12260
12261 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12262 font backend.
12263 (globals_of_w32fns): Initialize uniscribe font backend.
12264
12265 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12266 dependencies.
12267 (w32uniscribe.$(O)): New file to build.
12268 (FONT_OBJ): Include w32uniscribe.$(O).
12269 (LIBS): Add uniscribe libraries.
12270
12271 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12272
122732008-04-02 Chong Yidong <cyd@stupidchicken.com>
12274
12275 * callint.c (Vshift_select_mode): New var.
12276 (Finteractive): Document new ^ spec.
12277 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12278 is present.
12279
12280 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12281 (command_loop_1): Avoid running the direct display versions of
12282 forward-char and backward-char if shift-selection may occur.
12283 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12284 shift-translation takes place.
12285
12286 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12287 avoid clobbering by define-minor-mode.
12288
12289 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12290 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12291
12292 * syntax.c (Fforward_word): Add ^ interactive spec.
12293
12294 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12295 (Fscroll_right): Add ^ interactive spec.
12296
122972008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12298
12299 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12300
12301 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12302
12303 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12304
123052008-03-31 Juri Linkov <juri@jurta.org>
12306
12307 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12308
123092008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12310
12311 * gtkutil.c (xg_set_geometry): Fix indentation.
12312 (xg_resize_outer_widget): Remove.
12313 (x_wm_size_hint_off): Fix indentation.
12314 (xg_frame_set_char_size): Call flush_and_sync after
12315 gtk_window_resize.
12316 (x_wm_set_size_hint): Pass NULL as geometry window to
12317 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12318 Add menu bar and tool bar height to base height.
12319 (xg_update_frame_menubar, free_frame_menubar)
12320 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12321 (update_frame_tool_bar, free_frame_tool_bar):
12322 Change xg_resize_outer_widget to xg_frame_set_char_size.
12323
123242008-03-30 Michael Albinus <michael.albinus@gmx.de>
12325
12326 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12327 (Fdbus_call_method): New parameter TIMEOUT.
12328 (dbus-send-signal): Optimize UNGCPRO call.
12329
123302008-03-29 Juri Linkov <juri@jurta.org>
12331
12332 * window.c (Fdisplay_buffer): Move call to
12333 Vsplit_window_preferred_function out of conditions that check
12334 if window is eligible for vertical splitting.
12335 When Vsplit_window_preferred_function is non-nil, call it and use
12336 its non-nil return value as window. Otherwise, continue doing
12337 vertical splitting using Fsplit_window with arg horflag=nil.
12338 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12339 default value from `split-window' to nil.
12340
123412008-03-29 Juri Linkov <juri@jurta.org>
12342
12343 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12344 for interactive code letters 'b' and 'B'.
12345
123462008-03-29 Eli Zaretskii <eliz@gnu.org>
12347
12348 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12349 multibyte string.
12350
123512008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12352
12353 * keyboard.c (pending_funcalls): New var.
12354 (timer_check): Run it.
12355 (syms_of_keyboard): Initialize it.
12356 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12357 (Vdelete_terminal_functions): New vars.
12358 (syms_of_terminal): Initialize them.
12359 (Fdelete_terminal): Run delete-terminal-functions.
12360 * xdisp.c (safe_eval): Rewrite.
12361 (safe_call2): New fun.
12362 * frame.c (Qdelete_frame_functions): New var.
12363 (syms_of_frame): Initialize it.
12364 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12365 * lisp.h (safe_call2, pending_funcalls): Declare.
12366
123672008-03-28 Andreas Schwab <schwab@suse.de>
12368
12369 * indent.c (Fmove_to_column): Move declaration before statements.
12370
123712008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12372
12373 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12374 (struct frame): Use bit fields for boolean vars.
12375
12376 * process.c (server_accept_connection): Simplify naming.
12377 (emacs_get_tty_pgrp): Use SDATA.
12378
12379 * coding.c (decode_coding_object): Fix last change.
12380
123812008-03-27 Jason Rumney <jasonr@gnu.org>
12382
12383 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12384
123852008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12386
12387 * charset.c (Fdefine_charset_internal): Change the way of
12388 registering charsets in Vcharset_order_list.
12389 (syms_of_charset): Make the charset `eight-bit' supplementary.
12390
123912008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12392
12393 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12394 operations, to avoid having the difference between pointers
12395 overflow.
12396
123972008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12398
12399 * indent.c (check_display_width): New fun.
12400 (scan_for_column): Use it.
12401
12402 * data.c (syms_of_data): Mark most-positive-fixnum and
12403 most-negative-fixnum as constants.
12404
12405 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12406
12407 * indent.c (scan_for_column): Extract from current_column_1.
12408 Merge with the same code from Fmove_to_column.
12409 (current_column_1, Fmove_to_column): Use it.
12410
124112008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12412
12413 * keymap.c (map_keymap_internal): New fun.
12414 (map_keymap): Use it.
12415 (Fmap_keymap_internal): New fun.
12416 (Fmap_keymap): Remove left-out test from before make_save_value.
12417
12418 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12419
12420 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12421 Use XCAR/XCDR.
12422
12423 * process.h (struct Lisp_Process): Remove filter_multibyte.
12424 * process.c (QCfilter_multibyte): Remove.
12425 (setup_process_coding_systems): Don't use filter_multibyte.
12426 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12427 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12428 (Fset_process_filter_multibyte): Change the coding-system to
12429 approximate the previous behavior.
12430 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12431 coding-system.
12432
12433 * coding.c (decode_coding_object): When not decoding into a buffer,
12434 obey the coding system's preference of (uni|multi)byte.
12435
124362008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12437
12438 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12439 every char is changed and has a different byte-length.
12440 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12441 Fix int -> EMACS_INT.
12442
124432008-03-23 David Hansen <david.hansen@gmx.net>
12444
12445 * dbusbind.c (xd_read_message): Remove extra copying of message
12446 strings. Check for NULL `interface' or `member'.
12447
124482008-03-22 Eli Zaretskii <eliz@gnu.org>
12449
12450 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12451 cFileName a file name that includes `?' characters, use the 8+3
12452 alias in cAlternateFileName instead.
12453
124542008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12455
12456 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12457
124582008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12459
12460 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12461 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12462 work on current_buffer only instead (that was already the case
12463 for some of the code anyway).
12464 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12465 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12466 (SET_PT, SET_PT_BOTH): Adjust.
12467 * intervals.h (set_point, temp_set_point, set_point_both)
12468 (temp_set_point_both): Remove redundant declarations.
12469
124702008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12471
12472 * fileio.c (Finsert_file_contents):
12473 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12474 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12475 when buffer != current_buffer anyway.
12476
124772008-03-20 Andreas Schwab <schwab@suse.de>
12478
12479 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12480 as default.
12481
124822008-03-19 Jason Rumney <jasonr@gnu.org>
12483
12484 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12485 (syms_of_w32fns): Initialize them.
12486 (HOURGLASS_ID): New constant.
12487 (x_window_to_frame): Don't check hourglass_window.
12488 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12489 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12490 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12491 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12492 Only change the cursor if hourglass is not active.
12493 (Fx_create_frame): Initialize frame's current_cursor.
12494 (hourglass_atimer): Remove.
12495 (hourglass_started): New function.
12496 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12497 (show_hourglass): Adapt to w32, changing argument to frame.
12498
12499 * w32term.h (struct w32_output): Remove hourglass_window.
12500 Add current_cursor.
12501
12502 * eval.c (call_debugger, Fsignal):
12503 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12504 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12505 (Fexecute_extended_command, cancel_hourglass_unwind):
12506 * minibuf.c (read_minibuf):
12507 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12508
125092008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12510
12511 * window.c (run_funs): New fun.
12512 (run_window_configuration_change_hook): Use it to run the buffer-local
12513 and the global part of the hook.
12514
12515 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12516 (unwind_format_mode_line): Restore selected window.
12517 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12518
125192008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12520
12521 * editfns.c (Fchar_equal): Check they are valid characters.
12522
12523 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12524
125252008-03-17 Andreas Schwab <schwab@suse.de>
12526
12527 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12528 against a charset.
12529
12530 * lisp.h (Fbuffer_list): Declare.
12531
125322008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12533
aac0c6e3
MR
12534 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12535 handlebox_widget is != 0.
12536
125372008-03-16 Juri Linkov <juri@jurta.org>
12538
12539 * callint.c (Fcall_interactively): For interactive code letters
12540 'b' and 'B' put the buffer list into the list of default "future"
12541 values of the minibuffer.
12542
125432008-03-16 Andreas Schwab <schwab@suse.de>
12544
12545 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12546 modifiers.
12547
12548 * regex.c (re_match_2_internal): Correct matching of a charset
12549 against latin-1 characters.
12550
125512008-03-16 Kenichi Handa <handa@m17n.org>
12552
12553 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12554 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12555 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12556 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12557 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12558 CHAR_STRING_ADVANCE.
12559 (produce_chars): Fix for the case that the source and the
12560 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12561 instead of CHAR_STRING_ADVANCE.
12562 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12563 STRING_CHAR_ADVANCE.
12564
125652008-03-15 Andreas Schwab <schwab@suse.de>
12566
12567 * regex.c (re_match_2_internal): Correct matching of eight bit
12568 characters in unibyte strings.
12569
125702008-03-15 Martin Rudalics <rudalics@gmx.at>
12571
12572 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12573 at end of range when it coincides with the end of the buffer.
12574
125752008-03-14 Eli Zaretskii <eliz@gnu.org>
12576
12577 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12578
12579 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12580
125812008-03-14 Jason Rumney <jasonr@gnu.org>
12582
12583 * editfns.c (initial_tz): New variable.
12584 (syms_of_editfns): Initialize it.
12585 (Fset_time_zone_rule): Set it when first called.
12586 Use it when TZSTRING is nil.
12587
12588 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12589 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12590 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12591 (globals_of_w32fns): Initialize them.
12592 (compute_tip_xy): Use them to position tooltips.
12593
125942008-03-14 Glenn Morris <rgm@gnu.org>
12595
12596 * emacs.c (main): Revert previous change.
12597 (standard_args): Revert -internal-script back to -scriptload,
12598 and remove the long-option form.
12599
126002008-03-13 Glenn Morris <rgm@gnu.org>
12601
12602 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12603 Remove option -enable-font-backend.
12604
126052008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12606
12607 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12608
126092008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12610
12611 * xterm.c (x_connection_closed): For GTK: If this is the last
12612 terminal just exit without closing the display.
12613
126142008-03-11 Jason Rumney <jasonr@gnu.org>
12615
12616 * w32font.c (w32font_full_name): Use floor to round.
12617
f0131492 126182008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12619
12620 * sound.c (alsa_configure): Declare vol at beginning of block.
12621
12622 * fontset.c (Ffontset_info): Remove extra semicolon.
12623
126242008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12625
12626 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12627 size of resulting string.
12628
126292008-03-10 Jason Rumney <jasonr@gnu.org>
12630
12631 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12632
126332008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12634
12635 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12636 Don't pretend as if characters with display property haven't been
12637 consumed for string-replacing-string case.
12638
126392008-03-08 Kim F. Storm <storm@cua.dk>
12640
12641 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12642 (get_next_display_element, next_element_from_string)
12643 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12644
126452008-03-08 Andreas Schwab <schwab@suse.de>
12646
12647 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12648
126492008-03-06 Jason Rumney <jasonr@gnu.org>
12650
12651 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12652 when charset not specified. Only translate ANSI to unicode when
12653 font_type is truetype.
12654 (w32font_coverage_ok): New function.
12655 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12656
126572008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12658
12659 * lread.c (Fread_char): Resolve modifiers.
12660 (Fread_char_exclusive): Likewise.
12661
12662 * character.c (char_resolve_modifier_mask): New function.
12663 (char_string): Use char_resolve_modifier_mask.
12664 (Fchar_resolve_modifiers): New function.
12665 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12666 function.
12667
126682008-03-04 Jason Rumney <jasonr@gnu.org>
12669
12670 * makefile.w32-in: Always include w32font.c in the build.
12671 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12672
126732008-03-04 Andreas Schwab <schwab@suse.de>
12674
12675 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12676 (versionclean): Likewise.
12677
126782008-03-04 Juanma Barranquero <lekktu@gmail.com>
12679
12680 * .cvsignore: Add oo.
12681
126822008-03-03 Andreas Schwab <schwab@suse.de>
12683
12684 * coding.c (decode_coding_object): Inhibit gap shrinking while
12685 decoding in place.
12686
126872008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12688
12689 * w32term.c: Remove unused include "gnu.h".
12690 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12691
12692 * gnu.h: Rename to ...
12693 * emacs-icon.h: ... this.
12694 * xterm.c: Use emacs-icon.h instead of gnu.h.
12695 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12696
126972008-03-03 Juanma Barranquero <lekktu@gmail.com>
12698
12699 * w32font.c: Include math.h.
12700
127012008-03-03 Jason Rumney <jasonr@gnu.org>
12702
12703 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12704 Compute options separately.
12705 (w32font_open_internal): Set glyph_idx before caching metrics.
12706
12707 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12708 Define if system headers don't.
12709 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12710 (w32font_encode_char): Don't declare here.
12711
12712 * w32font.c (Quniscribe, QCformat): New symbols.
12713 (syms_of_w32font): Define them.
12714 (w32font_has_char): Indicate uncertainty.
12715 (w32font_encode_char): Encode as glyph point. Make static.
12716 (recompute_cached_metrics): New function.
12717 (w32font_open_internal): Use it. Set font to use glyph points
12718 initially. Set format based on type of font.
12719 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12720 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12721 on it. Set format based on information available here.
12722 (add_font_entity_to_list): Identify backend based on opentype_only.
12723
127242008-03-02 Andreas Schwab <schwab@suse.de>
12725
12726 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12727
12728 * coding.c (decode_coding_big5, produce_chars):
12729 Fix typos in last change.
12730
127312008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12732
12733 * gnu.h: New icon.
12734
127352008-03-02 Kenichi Handa <handa@m17n.org>
12736
12737 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12738 `dos', don't decode '\r' if that is the last in the source.
12739 (decode_coding_utf_16, decode_coding_emacs_mule)
12740 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12741 (decode_coding_raw_text, decode_coding_charset): Likewise.
12742 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12743
127442008-03-01 Jason Rumney <jasonr@gnu.org>
12745
12746 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12747
127482008-03-01 Kim F. Storm <storm@cua.dk>
12749
12750 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12751
127522008-03-01 Jason Rumney <jasonr@gnu.org>
12753
12754 * w32font.c (w32font_full_name): New function.
12755 (w32font_open_internal): Use it.
12756
127572008-03-01 Kim F. Storm <storm@cua.dk>
12758
12759 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12760
127612008-03-01 Jason Rumney <jasonr@gnu.org>
12762
12763 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12764
127652008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12766
12767 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12768 xg_frame_resized when the event is for the edit widget.
12769
12770 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12771
12772 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12773 set_char_size.
12774 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12775 operations on widgets here. Just set frame size if needed.
12776 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12777 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12778 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12779 the whole frame.
12780 (xg_create_tool_bar): Move attachment of the tool bar to
12781 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12782 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12783
127842008-03-01 Jason Rumney <jasonr@gnu.org>
12785
12786 * w32fns.c (w32_msg_pump): Disable debug code.
12787
127882008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12789
12790 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12791
127922008-02-29 Chong Yidong <cyd@stupidchicken.com>
12793
12794 * xdisp.c (next_overlay_string): Don't set
12795 overlay_strings_at_end_processed_p if we're currently reading from
12796 a display string.
12797
127982008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12799
12800 * xdisp.c (get_overlay_strings_1): Fix typo.
12801
128022008-02-29 Chong Yidong <cyd@stupidchicken.com>
12803
12804 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12805
128062008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12807
12808 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12809
12810 * xdisp.c (display_mode_element): Cancel the previous change.
12811 (decode_mode_spec): Likewise.
12812 (handle_auto_composed_prop): Don't make composition if it->string
12813 is a string.
12814
128152008-02-27 Kim F. Storm <storm@cua.dk>
12816
12817 * lisp.h (GLYPH): Change type from int to struct with separate char
12818 and face_id members.
12819 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12820 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12821 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12822 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12823 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12824 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12825 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12826 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12827 handle new Lisp glyph code encoding, either an integer or a cons.
12828
12829 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12830 (GLYPH_ALIAS): Delete.
12831 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12832 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12833 (GLYPH_FROM_CHAR): Replace macro by ...
12834 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12835
12836 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12837 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12838 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12839 (GLYPH_INVALID_P): New macro.
12840 (spec_glyph_lookup_face): Update prototype.
12841
12842 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12843 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12844 new glyph code encoding.
12845 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12846 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12847
12848 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12849 Adapt to new glyph type and new glyph code encoding.
12850
12851 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12852
12853 * indent.c (current_column, current_column_1, Fmove_to_column)
12854 (compute_motion): Adapt to new glyph code encoding.
12855
12856 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12857
128582008-02-27 Chong Yidong <cyd@stupidchicken.com>
12859
12860 * process.c (wait_reading_process_output): Check for window
12861 changes caused by timers.
12862 Suggested by Johan Bockgård.
12863
128642008-02-27 Glenn Morris <rgm@gnu.org>
12865
12866 * emacs.c (USAGE1): Add `--disable-font-backend'.
12867
128682008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12869
12870 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12871 is made to the buffer.
12872
128732008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12874
12875 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12876 (face_at_string_position):
12877 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12878 (face_at_string_position):
12879 * xdisp.c (display_string, next_overlay_change):
12880 * buffer.h (overlays_at):
12881 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12882 Update callers.
12883
128842008-02-26 Chong Yidong <cyd@stupidchicken.com>
12885
12886 * editfns.c (Fformat): Doc fix.
12887
128882008-02-26 Juanma Barranquero <lekktu@gmail.com>
12889
12890 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12891 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12892 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12893
128942008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12895
12896 * buffer.c (Fbuffer_swap_text): New function.
12897 (syms_of_buffer): Defsubr it.
12898
128992008-02-25 Chong Yidong <cyd@stupidchicken.com>
12900
12901 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12902
129032008-02-25 Jason Rumney <jasonr@gnu.org>
12904
12905 * w32font.c (w32font_draw): Draw one character at a time when padding.
12906
129072008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12908
12909 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12910 Handle a nil arg. Use run_window_configuration_change_hook.
12911 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12912 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12913 Use run_window_configuration_change_hook.
12914
129152008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12916
12917 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12918 1-pixel width.
12919
129202008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12921
12922 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12923 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12924 if the glyph in the font is zero pixel with.
12925
12926 * dispextern.h (struct glyph_string): New member padding_p.
12927
12928 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12929
12930 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12931
12932 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12933
12934 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12935
12936 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12937
129382008-02-25 Jason Rumney <jasonr@gnu.org>
12939
12940 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12941
129422008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12943
12944 Allow fine-grained image-cache flushing.
12945 * dispextern.h (struct image): Add `dependencies' field.
12946 (clear_image_caches): Change arg to Lisp_Object.
12947 * image.c (make_image): Initialize `dependencies' field.
12948 (clear_image_cache): Change arg to allow fine-grained flushing.
12949 Perform the flush even if image-cache-eviction-delay is nil.
12950 (clear_image_caches): Change arg to Lisp_Object.
12951 (Fclear_image_cache): Expand meaning of the argument.
12952 (mark_image): Mark `dependencies' field.
12953 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12954 (lface_hash): Use XHASH rather than XFASTINT.
12955 (face_at_buffer_position): Fix int -> EMACS_INT position.
12956 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12957 (select_frame_for_redisplay): Remove code duplication.
12958 (redisplay_internal): Adapt arg to call to clear_image_caches.
12959
129602008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12961
12962 * s/vms4-0.h:
12963 * s/vms4-2.h:
12964 * s/vms4-4.h:
12965 * s/vms5-5.h: Remove, unused.
12966
12967 * s/irix5-2.h:
12968 * s/irix6-0.h:
12969 * s/riscos5.h:
12970 * s/mach-bsd4-3.h:
12971 * m/mips4.h: Remove files for obsolete systems.
12972
12973 * Makefile.in:
12974 * filelock.c:
12975 * unexmips.c:
12976 * m/hp9000s300.h:
12977 * m/iris4d.h:
12978 * s/aix3-1.h:
12979 * s/hpux.h:
12980 * s/msdos.h:
12981 * s/usg5-0.h:
12982 * s/usg5-2-2.h:
12983 * s/usg5-2.h:
12984 * s/usg5-3.h: Remove references to obsolete variables.
12985
12986 * s/irix5-0.h: Remove, move all the contents ...
12987 * s/irix6-5.h: ... here. Simplify.
12988 * config.in: Regenerate.
12989
129902008-02-24 Jason Rumney <jasonr@gnu.org>
12991
12992 * w32term.c (x_draw_glyph_string_background): Clear the background
12993 manually when cleartype is in use.
12994 (x_draw_glyph_string_foreground): Draw text transparently when
12995 cleartype is in use.
12996
12997 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12998 a font into it unless we have to.
12999
130002008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13001
13002 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13003 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13004
aac0c6e3
MR
130052008-02-18 Jason Rumney <jasonr@gnu.org>
13006
13007 * w32fns.c (Fw32_shell_execute): Encode parameters.
13008
130092008-02-09 Eli Zaretskii <eliz@gnu.org>
13010
13011 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13012
130132008-02-05 Juanma Barranquero <lekktu@gmail.com>
13014
13015 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13016
130172008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13018
13019 * xterm.c (x_set_offset): Don't change the gravity if
13020 CHANGE_GRAVITY is -1.
13021
130222008-02-23 Chong Yidong <cyd@stupidchicken.com>
13023
13024 * fileio.c (auto_save_error_occurred): New var.
13025 (auto_save_error): Set it.
13026 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13027 error occurred.
13028
130292008-02-23 Eli Zaretskii <eliz@gnu.org>
13030
13031 * w32.c (globals_of_w32): Add initializations for
13032 g_b_init_get_sid_sub_authority and
13033 g_b_init_get_sid_sub_authority_count.
13034
130352008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13036
13037 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13038 (font_parse_xlfd): Use them for sanity check.
13039 (Finternal_set_font_style_table): Make sure the table is bijective.
13040
13041 Consolidate the image_cache to the terminal struct.
13042 * termhooks.h (P_): Remove redundant def.
13043 (struct terminal): New field `image_cache'.
13044 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13045 of FRAME_X_IMAGE_CACHE.
13046 * xterm.h (struct x_display_info): Remove image_cache field.
13047 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13048 * w32term.h (struct w32_display_info): Remove image_cache field.
13049 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13050 * macterm.h (struct mac_display_info): Remove image_cache field.
13051 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13052 * xterm.c (x_term_init):
13053 * w32term.c (w32_term_init):
13054 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13055 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13056 Remove declarations.
13057 (clear_image_caches, mark_image_cache): New declarations.
13058 * xfaces.c (clear_face_cache):
13059 * xdisp.c (redisplay_internal): Use clear_image_caches.
13060 * image.c (clear_image_cache): Don't check that a frame is on
13061 a window-system before checking if it shares the same cache.
13062 (clear_image_caches): New function.
13063 (Fclear_image_cache): Use it.
13064 (mark_image): Move from allo.c.
13065 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13066 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13067 (mark_object): Don't call mark_image_cache for frames.
13068 (mark_terminals): Call mark_image_cache.
13069
13070 * lisp.h (Fdelete_terminal): Declare.
13071
13072 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13073 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13074 wrong_type_argument.
13075
130762008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13077
13078 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13079 malayalam.el, and tamil.el. Add sinhala.el.
13080
130812008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13082
13083 * xterm.c (x_connection_closed): Consolidate identical tests.
13084 (x_delete_terminal): Don't crash if called via x_connection_closed.
13085
130862008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13087
13088 * xdisp.c (decode_mode_spec): New arg string.
13089 (display_mode_element): Adjust for the above change.
13090
130912008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13092
13093 * callint.c (Fcall_interactively): Use AREF.
13094
130952008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13096
13097 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13098
130992008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13100
13101 * xfns.c (Fx_show_tip): Set string to " " if empty.
13102
131032008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13104
13105 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13106 with Qt.
13107
131082008-02-17 Kenichi Handa <handa@m17n.org>
13109
13110 * ftfont.c (ftfont_shape): Return Lispy number.
13111
13112 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13113 for GCs.
13114 (Finternal_set_font_selection_order): Call font_update_sort_order
13115 only when enable_font_backend is set.
13116 (realize_x_face): Set face->font_info to that of default face only
13117 when enable_font_backend is set.
13118
13119 * xdisp.c (handle_composition_prop): Set it->c to the fist
13120 character of the composed region.
13121 (fill_composite_glyph_string): Set base_face->font_info to
13122 s->font_info. Get a face for ascii from base_face->ascii_face.
13123 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13124 with a face already decided.
13125 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13126 non-negative.
13127 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13128 call font_prepare_composition unconditionally.
13129
13130 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13131
13132 * xterm.h (struct x_display_info): New member font.
13133
13134 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13135 (x_set_mouse_face_gc, x_new_font): Likewise.
13136 (x_term_init): Setup display_info->font.
13137 (x_delete_terminal): Free display_info->font.
13138
13139 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13140
13141 * ftxfont.c (ftxfont_default_fid): Delete it.
13142 (ftxfont_open): Set xfont->fid to 0.
13143 (ftxfont_end_for_frame): Clear data specific to the frame and the
13144 font-driver.
13145
13146 * xftfont.c (xftfont_default_fid): Delete it.
13147 (xftfont_open): Set xfont->fid to 0.
13148
13149 * fontset.c (FONTSET_OBJLIST): New macro.
13150 (fontset_find_font): Update font-object list of the fontset.
13151 (free_realized_fontset): New function.
13152 (free_face_fontset): Call free_realized_fontset.
13153 (Ffont_info): Call font_close_object only when enable_font_backend
13154 is set.
13155
13156 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13157 [HAVE_NTGUI]: Include w32term.h.
13158 [MAC_OS]: Include macterm.ch.
13159 (font_otf_ValueRecord): Use make_number.
13160 (font_finish_cache): Fix handling of reference count.
13161 (font_clear_cache): Update num_fonts.
13162 (font_open_entity): Update smallest_char_width and
13163 smallest_font_height of the frame.
13164 (font_close_object): Update num_fonts.
13165 (Fclear_font_cache): Fix finding the target cache data.
13166
131672008-02-16 Glenn Morris <rgm@gnu.org>
13168
13169 * fontset.c (Finternal_char_font): Fix compilation warning.
13170
131712008-02-16 Eli Zaretskii <eliz@gnu.org>
13172
13173 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13174 instead of char arrays. Enlarge the size of array passed to
13175 get_token_information.
13176
13177 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13178 warnings.
13179
131802008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13181
13182 * .gdbinit: Don't set `args', it breaks gdb --args.
13183
131842008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13185
13186 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13187 within a narrowed buffer.
13188
131892008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13190
13191 * coding.c (decode_coding_object, encode_coding_object):
13192 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13193
131942008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13195
13196 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13197 hardcoding 1.
13198 (detect_coding_system):
13199 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13200 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13201 * insdel.c (insert_from_gap):
13202 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13203 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13204 (string_to_multibyte):
13205 * character.c (chars_in_text, multibyte_chars_in_text):
13206 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13207
13208 * character.h (FETCH_STRING_CHAR_ADVANCE)
13209 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13210 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13211 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13212
13213 * casefiddle.c (casify_region): Only call after-change and composition
13214 functions on the part of the region that was changed.
13215
13216 * keyboard.c (read_avail_input):
13217 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13218
132192008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13220
13221 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13222 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13223
132242008-02-11 Juanma Barranquero <lekktu@gmail.com>
13225
13226 * w32menu.c (push_submenu_start, push_submenu_end)
13227 (push_left_right_boundary, push_menu_pane, push_menu_item):
13228 * keyboard.c (read_key_sequence): Don't pass args with side effects
13229 to AREF, it fails when compiling with -DENABLE_CHECKING.
13230
132312008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13232
13233 * Makefile.in (${lispsource}international/charprop.el):
13234 Delete this target.
13235
13236 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13237 emacs-unicode-2.
13238
132392008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13240
13241 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13242
132432008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13244
13245 * frame.c (Qnoelisp): New symbol.
13246 (syms_of_frame): Initialize it.
13247 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13248 harmless Elisp code, from a strong `force' from x_connection_closed.
13249 * frame.h (Qnoelisp): Declare.
13250 * xterm.c (x_connection_closed): Pass `noelisp'.
13251
13252 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13253 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13254 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13255 rather than `int' for the type of `type'.
13256
132572008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13258
13259 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13260
13261 * Makefile.in (GNUC): Remove support for gcc-1.x.
13262
132632008-02-10 Richard Stallman <rms@gnu.org>
13264
13265 * lisp.h (ASET): Use AREF, not ASLOT.
13266
132672008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13268
13269 * lisp.h (ASET): Check bounds.
13270
132712008-02-10 Glenn Morris <rgm@gnu.org>
13272
13273 * buffer.c (mode-name): Doc fix.
13274
132752008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13276
13277 * Makefile.in:
13278 * emacs.c:
13279 * gmalloc.c:
13280 * keyboard.c:
13281 * lisp.h:
13282 * m/ibm370aix.h:
13283 * process.c:
13284 * regex.c:
13285 * s/hpux.h:
13286 * sysdep.c:
13287 * sysselect.h:
13288 * systty.h:
13289 * unexec.c:
13290 * w32term.c:
13291 * xsmfns.c:
13292 * xterm.c: Remove code that deals with obsolete variables.
13293
13294 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13295
13296 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13297 nothing else needs it anymore.
13298
132992008-02-09 Eli Zaretskii <eliz@gnu.org>
13300
13301 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13302 instead of unibyte_char_to_multibyte.
13303
133042008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13305
13306 * s/gnu-linux.h: Remove commented out code.
13307
13308 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13309
13310 * Makefile.in: Update what RMS says about using autoconf.
13311 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13312 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13313 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13314 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13315
133162008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13317
13318 * keymap.c (Fkey_description): Move side effect outside of macro call.
13319
13320 * xfaces.c (Finternal_make_lisp_face):
13321 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13322
13323 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13324 (syms_of_fontset): Use ASET.
13325
13326 * fns.c (concat): Move side effect outside of macro call.
13327 (hash_clear): Use ASET.
13328
133292008-02-08 Richard Stallman <rms@gnu.org>
13330
13331 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13332 If FORCE, and frame has a surrogate minibuffer for another frame,
13333 delete the other frame first.
13334
133352008-02-07 Timo Savola <timo.savola@iki.fi>
13336
13337 * xterm.c (x_detect_focus_change): Handle embed client message.
13338 (handle_one_xevent): Ditto.
13339 (handle_one_xevent): If embedded and we get a button press/release,
13340 request focus.
13341 (xembed_set_info, xembed_send_message): New functions.
13342 (x_make_frame_visible): Call xembed_set_info if embedded.
13343 (x_make_frame_invisible): Call xembed_set_info if embedded.
13344 (x_term_init): Initialize Xatom_XEMBED.
13345 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13346 (x_iconify_frame): Ditto.
13347
13348 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13349 (enum xembed_info, enum xembed_message, enum xembed_focus)
13350 (enum xembed_modifier, enum xembed_accelerator): New.
13351 (xembed_set_info, xembed_send_message): Declare.
13352 (FRAME_X_EMBEDDED_P): New.
13353
13354 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13355 gtk_plug_new.
13356
13357 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13358 window ID of a frame.
13359 (x_window): Reparent frame if embedded.
13360 (Fx_create_frame): Don't set border width if embedded.
13361
13362 * emacs.c (USAGE3): Add --parent-id.
13363 (standard_args): Ditto.
13364
133652008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13366
13367 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13368
133692008-02-07 Jim Meyering <meyering@redhat.com>
13370
13371 Use "do...while (0)", not "if (1)...else" in macro definitions.
13372 The latter provokes a warning from gcc about the empty else, when
13373 followed by ";". Also, without that trailing semicolon, it would
13374 silently swallow up any following statement.
13375 * syntax.h (SETUP_SYNTAX_TABLE)
13376 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13377 * buffer.h (DECODE_POSITION): Likewise.
13378 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13379 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13380 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13381 (FETCH_CHAR_ADVANCE): Likewise.
13382 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13383
133842008-02-07 Jim Meyering <meyering@redhat.com>
13385
13386 * lread.c [lint]: Don't include <sys/inode.h>.
13387
133882008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13389
13390 * xselect.c (x_handle_dnd_message):
13391 * xmenu.c (digest_single_submenu, xmenu_show):
13392 * xdisp.c (with_echo_area_buffer_unwind_data)
13393 (format_mode_line_unwind_data, unwind_format_mode_line)
13394 (display_menu_bar):
13395 * eval.c (Ffetch_bytecode):
13396 * doc.c (store_function_docstring):
13397 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13398 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13399 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13400
134012008-02-07 Kenichi Handa <handa@m17n.org>
13402
13403 * ftxfont.c (ftxfont_open): Don't set
13404 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13405
13406 * ftfont.c (ftfont_open): Fix previous change.
13407
134082008-02-06 Jason Rumney <jasonr@gnu.org>
13409
13410 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13411 Use cached metrics for ASCII characters.
13412 (w32font_open_internal): Don't set font's owning_frame.
13413 Cache metrics for ASCII characters.
13414
13415 * w32font.h (struct w32font_info): Add ascii_metrics.
13416 Remove owning_frame.
13417
134182008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13419
13420 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13421 to negative value.
13422
13423 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13424
13425 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13426
13427 * charset.c (syms_of_charset): Set QCtest and Qeq.
13428
134292008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13430
13431 * process.c (Fstart_process):
13432 * callproc.c (Fcall_process): Handle the case where
13433 Funhandled_file_name_directory returns nil.
13434
13435 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13436 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13437 * font.c (check_gstring): Use them and AREF to access the vector before
13438 we know it's really a gstring.
13439 (Ffont_shape_text): Fix typo.
46e722a9 13440 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13441
13442 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13443 Declare.
13444
13445 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13446
134472008-02-05 Jason Rumney <jasonr@gnu.org>
13448
13449 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13450 Set smallest_font_height and smallest_char_width in display info.
13451
134522008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13453
13454 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13455
134562008-02-05 Miles Bader <miles@gnu.org>
13457
13458 * xfaces.c (get_lface_attributes, merge_named_face)
13459 (lookup_named_face, lookup_derived_face, realize_named_face):
13460 Revert 2008-02-01 change by cyd@stupidchicken.com.
13461
134622008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13463
13464 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13465 fallback fonts.
13466 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13467
134682008-02-04 Jason Rumney <jasonr@gnu.org>
13469
13470 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13471 set full_name.
13472 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13473
134742008-02-03 Jason Rumney <jasonr@gnu.org>
13475
13476 * makefile.w32-in (OBJ1): Include font.o here.
13477 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13478
134792008-02-02 Jason Rumney <jasonr@gnu.org>
13480
13481 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13482
134832008-02-01 Jason Rumney <jasonr@gnu.org>
13484
13485 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13486
13487 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13488
134892008-02-01 Andreas Schwab <schwab@suse.de>
13490
13491 * Makefile.in (shortlisp, lisp): Update for rename of
13492 ../lisp/language/myanmar.el.
13493
134942008-02-01 Chong Yidong <cyd@stupidchicken.com>
13495
13496 * xfaces.c (get_lface_attributes): Delete function.
13497 (merge_named_face, lookup_named_face, lookup_derived_face)
13498 (realize_named_face): Call lface_from_face_name directly, and use
13499 the fact that merge_face_vectors does not alter its FROM argument.
13500
135012008-02-01 Jason Rumney <jasonr@gnu.org>
13502
13503 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13504 input in the default locale. Handle non-Unicode multibyte input.
13505
135062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13507
13508 * fontset.c (reorder_font_vector): Exclude nil elements from the
13509 font group. Don't try multiple fonts.
13510 (fontset_font): Adjust for the above change.
13511 (Finternal_char_font): Return nil if the found font doesn't
13512 contain the character ch.
13513
13514 * Makefile.in (lisp, shortlisp): Add cham.el.
13515
135162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13517
13518 * font.h (FONTP): Make it return 1 also for a font-object.
13519
13520 * .gdbinit (xfontset): New function.
13521
13522 * font.c (font_find_for_lface): Check if the character C is
13523 supported or not only for the first font.
13524
13525 * fontset.c (reorder_font_vector): Fix typo.
13526 (fontset_find_font): Don't add a font-spec specifying a script.
13527 Use 0 (not Qt) for the indication of empty font-group. Change the
13528 format of RFONT-DEF. Return Qt if no font in the font-group
13529 support the character.
13530 (fontset_font): Adjust for the above change. If no font was
13531 found the character, remember that.
13532 (face_for_char): Adjust for the change of RFONT-DEF.
13533 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13534 no font for the target.
13535 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13536
135372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13538
13539 * font.c (font_load_for_face): Handle the case that the font in
13540 face->lface is a string.
13541
135422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13543
13544 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13545
135462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13547
13548 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13549 Fix previous change. If the frame is not on a window system,
13550 signal an error.
13551
135522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13553
13554 * coding.c (decode_coding_object, encode_coding_object): Adjust
13555 marker positions after conversion.
13556
13557 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13558
135592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13560
13561 * font.c (font_find_for_lface): Fix the handling of the return
13562 value of font_has_char.
13563 (Ffont_shape_text): Fix previous change.
13564
13565 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13566 (fontset_ref_and_range): Delete it.
13567 (fontset_find_font): Call char_table_ref_and_range instead of
13568 FONTSET_REF_AND_RANGE.
13569 (make_fontset): Don't setup font groups of Latin here.
13570 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13571 (new_fontset_from_font): Make the specified font the default for
13572 all Latin characters.
13573
135742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13575
13576 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13577 is on a window system before accessing the fontset of the frame.
13578
135792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13580
13581 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13582
13583 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13584 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13585
13586 * font.c (Ffont_shape_text): If the font driver doesn't have a
13587 shaper function, make zero-width glyphs to have at least one-pixel
13588 width. Fix setting of `to' field of glyphs.
13589
135902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13591
13592 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13593 glyphs.
13594
13595 * font.h (struct font_driver): Improve docstring of member `shape'.
13596
135972008-02-01 Kenichi Handa <handa@m17n.org>
13598
13599 * composite.c (syms_of_composite): Fix docstring of
13600 auto-composition-function.
13601
13602 * font.h (LGLYPH_SIZE): New macro.
13603
13604 * font.c (Ffont_fill_gstring): Stop filling when a character not
13605 supported by the font is found.
13606 (Ffont_shape_text): When a shape callback function returns nil,
13607 try at most two more times with larger gstring.
13608 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13609
13610 * xdisp.c (handle_auto_composed_prop): Change the argument to
13611 auto-composition-function.
13612
13613 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13614 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13615 Lispy glyph and store it in the lgstring.
13616
13617 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13618
13619 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13620
136212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13622
13623 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13624
13625 * fontset.c (Vfont_encoding_charset_alist): New variable.
13626 (syms_of_fontset): DEFVAR it.
13627 (reorder_font_vector, fontset_find_font): Optimize for the case of
13628 no need of reordering.
13629 (face_for_char): Map the charset property by
13630 Vfont_encoding_charset_alist.
13631
136322008-02-01 Jason Rumney <jasonr@gnu.org>
13633
13634 * w32font.c (logfonts_match): Don't check adstyle here.
13635 (font_matches_spec): Check here against physical font instead.
13636 (add_font_entity_to_list): Avoid some substitutions.
13637
13638 * font.c (font_parse_fcname): Default weight and slant to normal.
13639 (font_score): Prefer normal fonts if weight or slant unspecified.
13640 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13641 match freetype scores.
13642
136432008-02-01 Jason Rumney <jasonr@gnu.org>
13644
13645 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13646 font, as it may have been deleted.
13647 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13648 most common hyphenless variation.
13649 (logfonts_match): Check generic family.
13650 (font_matches_spec): Don't check generic family here.
13651 (fill_in_logfont): Set generic family based on adstyle.
13652
13653 * w32font.h (w32font_get_cache): Update declaration.
13654
136552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13656
13657 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13658
13659 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13660 If none of the new drivers are available, call font_update_drivers
13661 with the old drivers.
13662
13663 * w32font.c (w32font_get_cache): Adjust the argument type.
13664
13665 * xfont.c (xfont_get_cache): Adjust the argument type.
13666
13667 * font.h (struct font_driver): Change argument type of get_cache.
13668
13669 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13670
13671 * font.c (Ffont_get): Fix arguments to Fassoc.
13672 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13673 (font_clear_cache): New function.
13674 (font_list_entities, font_matching_entity): Use font_get_cache.
13675 (font_update_drivers): Call font_clear_cache when finishing a driver.
13676
13677 * fontset.c (fontset_find_font): Fix previous change.
13678
136792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13680
13681 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13682 dpyinfo->font_table.
13683 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13684 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13685
13686 * font.c (font_at): Handle the case that the arg C is negative.
13687 Handle the unibyte case.
13688 (Ffont_at): Call font_at with the arg C -1.
13689
13690 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13691 the position here, and call font_at with the arg C -1.
13692 Don't check the range of the existing composition at the point.
13693
136942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13695
13696 * fontset.c (fontset_add): New args charset_id and family.
13697 Change caller.
13698 (load_font_get_repertory, fontset_find_font): Assume that
13699 font_spec is always a font-spec object.
13700 (Fset_fontset_font): Always store a font-spec object in a fontset.
13701
13702 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13703 instead of get_property_and_range.
13704
137052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13706
13707 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13708 (xftfont_open): Don't keep locking face.
13709 (xftfont_close): Don't unlock face.
13710 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13711
13712 * fontset.c (fontset_find_font): Don't prefer a font of
13713 supplementary charset.
13714
137152008-02-01 Kenichi Handa <handa@m17n.org>
13716
13717 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13718 script, langsys_tag to langsys, new member script.
13719 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13720 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13721 listing to the script specified in that property. Fix arg to
13722 OTF_check_features.
13723
137242008-02-01 Jason Rumney <jasonr@gnu.org>
13725
13726 * w32font.h: New file.
13727
13728 * w32font.c: Include it.
13729 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13730 (w32font_open): Set owning_frame.
13731 (w32font_text_extents): Use owning_frame.
13732 (struct font_callback_data): Add opentype_only field.
13733 (add_font_entity_to_list): Use it to filter fonts.
13734 Don't check against full name.
13735 (w32font_list_internal): New function.
13736 (w32font_list): Use it.
13737 (w32font_match_internal): New function.
13738 (w32font_match): Use it.
13739 (w32font_open_internal): New function.
13740 (w32font_open): Use it.
13741 (w32font_get_cache, w32font_close, w32font_has_char)
13742 (w32font_encode_char, w32font_text_extents, w32font_draw):
13743 Make non-static.
13744
13745 * makefile.w32-in (w32font.o): Depend on w32font.h.
13746
137472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13748
13749 * charset.c (Fdefine_charset_internal): Record a supplementary
13750 charset at the tail of Vcharset_order_list.
13751
13752 * font.c (Ffont_shape_text): Fix the return value.
13753
13754 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13755
13756 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13757
137582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13759
13760 * ftfont.c (struct OpenTypeSpec): New struct.
13761 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13762 (ftfont_get_open_type_spec): New function.
13763 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13764
13765 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13766
137672008-02-01 Jason Rumney <jasonr@gnu.org>
13768
13769 * w32font.c (add_font_entity_to_list): Compare only the beginning
13770 of full name.
13771
137722008-02-01 Kenichi Handa <handa@m17n.org>
13773
13774 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13775 Never return HANDLED_RECOMPUTE_PROPS.
13776
137772008-02-01 Kenichi Handa <handa@m17n.org>
13778
13779 * font.c (font_gstring_produce): Delete it.
13780
13781 * composite.h (COMPOSITION_METHOD):
13782 Handle COMPOSITION_WITH_GLYPH_STRING.
13783
137842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13785
13786 * xfont.c (Qx): Delete.
13787 (syms_of_xfont): Don't initialize Qx.
13788
13789 * composite.h (enum composition_method):
13790 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13791
137922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13793
13794 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13795 (choose_face_font): Accept new form of font-spec.
13796
13797 * frame.h (font_driver_list): Declare it unconditionally.
13798 (struct frame): Define members font_driver_list and font_data_list
13799 unconditionally.
13800
13801 * fontset.c: Include "font.h" unconditionally.
13802 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13803 (Fset_fontset_font): Accept a font-spec object.
13804
13805 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13806 PIXEL_SIZE part a wild card.
13807
13808 * dispextern.h (struct glyph_string): Define members clip and
13809 num_clips unconditionally.
13810 (struct face): Define members font_info and extra unconditionally.
13811
13812 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13813 ftfont_info only when HAVE_LIBOTF is defined.
13814
138152008-02-01 Andreas Schwab <schwab@suse.de>
13816
13817 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13818 and end.
13819
138202008-02-01 Jason Rumney <jasonr@gnu.org>
13821
13822 * w32font.c (w32font_driver): Add new fields.
13823
138242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13825
13826 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13827 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13828 (LIBES): Add @M17N_FLT_CFLAGS@.
13829
13830 * composite.c (compose_text): Don't treat the new style
13831 composition specially.
13832
13833 * emacs.c (main): Call syms_of_font unconditionally.
13834
13835 * font.h (FONT_ENTITY_NOT_LOADABLE)
13836 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13837 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13838 (struct font_driver): New member shape.
13839 (font_registry_charsets): Extern it.
13840 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13841 (font_otf_capability, font_drive_otf): Delete their externs.
13842
13843 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13844 (font_charset_alist, font_registry_charsets): Move from xfont.c
13845 and rename.
13846 (font_prop_validate_otf): New function.
13847 (font_property_table): Register it for QCotf.
13848 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13849 (font_drive_otf): Delete.
13850 (font_prepare_composition): New arg F. Adjust for the change of
13851 lispy gstring.
13852 (font_find_for_lface): New arg C.
13853 (font_load_for_face): Adjust for the change of font_find_for_lface.
13854 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13855 lispy gstring.
13856 (Ffont_shape_text): New function.
13857 (Fopen_font): If the font size is not given, use 12-pixel.
13858 (Ffont_at): New arg STRING.
13859 (syms_of_font): Initalize font_charset_alist.
13860 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13861 conditionally.
13862
13863 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13864 fonts of the same font-spec. Change the format of RFONT-DEF.
13865 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13866 Adjust for the change of RFONT-DEF.
13867 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13868
13869 * ftfont.h: New file.
13870
13871 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13872 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13873 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13874 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13875 font_otf_capability and font_drive_otf, set ftfont_shape.
13876 (ftfont_list): Adjust for the change of :otf property value.
13877 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13878 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13879 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13880 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13881 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13882 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13883
13884 * w32term.c (x_draw_composite_glyph_string_foreground):
13885 Adjust for the change of lispy gstring.
13886
13887 * xdisp.c (handle_composition_prop): Adjust for the change of
13888 lispy gstring. Call a function for auto-composition with the
13889 third arg it->window.
13890 (fill_composite_glyph_string): Adjust for the change of lispy string.
13891 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13892
13893 * xfaces.c (set_font_frame_param): Adjust for the change of
13894 font_find_for_lface.
13895
13896 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13897 (xfont_registry_charsets): Likewise. Change caller.
13898 (syms_of_xfont): Don't handle x_font_charset_alist.
13899
13900 * xftfont.c: Include "ftfont.h".
13901 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13902 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13903 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13904 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13905 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13906 Set xftfont_driver.shape to xftfont_shape.
13907
13908 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13909 the change of lispy gstring.
13910
139112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13912
13913 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13914
139152008-02-01 Jason Rumney <jasonr@gnu.org>
13916
13917 * w32font.c (w32font_draw): Fill background manually.
13918
139192008-02-01 Jason Rumney <jasonr@gnu.org>
13920
13921 * font.c (Qfontp): Remove unused symbol.
13922 (QCantialias): New symbol.
13923 (syms_of_font): Define it.
13924 (font_property_table): Set a validator for QCantialias.
13925
13926 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13927 Define if not already.
13928 (QCfamily): Share with xfaces.c.
13929 (Qstandard, Qsubpixel, Qnatural): New symbols.
13930 (syms_of_w32font): Define them. Don't define QCfamily here.
13931 (w32_antialias_type, lispy_antialias_type): New functions.
13932 (w32_enumfont_pattern_entity): New arg requested_font.
13933 Set antialias parameter if non-default was requested.
13934 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13935
139362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13937
13938 * lread.c (read1): Undo the previous change.
13939
139402008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13941
13942 * frame.c (Fdelete_frame): Call font_update_drivers only when
13943 USE_FONT_BACKEND is defined.
13944
139452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13946
13947 * font.h (struct font_bitmap): New member bits_per_pixel.
13948 (struct font_driver): New members start_for_frame and end_for_frame.
13949 (struct font_data_list): New struct.
13950 (font_put_frame_data, font_get_frame_data): Extern them.
13951
13952 * frame.h (struct frame): New member font_data_list.
13953
13954 * font.c (font_update_drivers): Call driver->start_for_frame and
13955 driver->end_for_frame at proper timings.
13956 (font_put_frame_data, font_get_frame_data): New functions.
13957 (Ffont_spec): Add usage in the docstring.
13958
13959 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13960 (Fdelete_frame): Call font_update_drivers.
13961
13962 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13963 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13964 (xftfont_get_xft_draw): New function.
13965 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13966 (xftfont_end_for_frame): New function.
13967 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13968
13969 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13970 Change argument. Cache GCs in the per-frame data.
13971 (struct ftxfont_frame_data): New struct.
13972 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13973 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13974 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13975 (ftxfont_end_for_frame): New function.
13976 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13977
13978 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13979
139802008-02-01 Kenichi Handa <handa@m17n.org>
13981
13982 * xselect.c (Vselection_coding_system)
13983 (Vnext_selection_coding_system): Delete them.
13984 (syms_of_xselect): Don't declare selection-coding-system and
13985 next-selection-coding-system. They are declared in select.el.
13986
139872008-02-01 Jason Rumney <jasonr@gnu.org>
13988
13989 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13990
13991 * w32fns.c: Include imm.h.
13992 (get_composition_string_fn, get_ime_context_fn): New optional
13993 system functions.
13994 (globals_of_w32fns): Load them from imm32.dll.
13995 (ignore_ime_char): New flag.
13996 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13997 WM_IME_ENDCOMPOSITION messages.
13998
13999 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14000 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14001
140022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14003
14004 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14005 (READCHAR_REPORT_MULTIBYTE): New macro.
14006 (readchar): New 2nd arg MULTIBYTE.
14007 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14008 Make symbol's name multibyte according to the multibyteness of the
14009 source.
14010
140112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14012
14013 * xfaces.c (face_for_overlay_string): Call lookup_face with
14014 correct arguments (fix of synching with the trunk).
14015
140162008-02-01 Kenichi Handa <handa@m17n.org>
14017
14018 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14019 (font_prop_validate_non_neg, font_prop_validate_spacing):
14020 Delete argument prop_index.
14021 (font_property_table): Change arguments to validater. Change Callers.
14022 (font_lispy_object): Delete.
14023 (font_at): Use font_find_object instead fo font_lispy_object.
14024
140252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14026
14027 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14028 and file names.
14029
140302008-02-01 Jason Rumney <jasonr@gnu.org>
14031
14032 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14033 (font_matches_spec): Remove debug output.
14034 (add_font_entity_to_list): Avoid using substituted fonts.
14035
140362008-02-01 Jason Rumney <jasonr@gnu.org>
14037
14038 * doc.c (Fsnarf_documentation):
14039 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14040
140412008-02-01 Miles Bader <miles@gnu.org>
14042
14043 * dispextern.h (struct glyph_row): Only define "clip" field if
14044 HAVE_WINDOW_SYSTEM is defined.
14045
140462008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14047
14048 Fix up multi-tty merge.
14049
14050 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14051 and indentation.
14052
14053 * xfaces.c (free_realized_face, clear_face_gcs):
14054 Include font_done_for_face in the input_blocked section, just in case.
14055
14056 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14057 (get_char_face_and_encoding): Undo last change and remove the *other*
14058 duplicate definition (i.e. keep the one that's better scoped and that
14059 includes code for the font-backend).
14060
14061 * terminal.c (create_terminal): Default keyboard_coding to
14062 `no-conversion' and terminal_coding to `undecided'.
14063
14064 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14065
14066 * fontset.c (free_realized_fontsets): Check that the table entry does
14067 contain a fontset before trying to compare it to `base'.
14068
14069 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14070 syms_of_charset, and syms_of_coding earlier because init_window_once
14071 now needs Vcoding_system_hash_table to be setup.
14072
14073 * coding.h (default_buffer_file_coding): Remove.
14074
14075 * coding.c (default_buffer_file_coding): Remove.
14076 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14077 than ->symbol, and use the terminal-local coding system.
14078 (syms_of_coding): Don't setup the coding-systems that are not
14079 terminal-local.
14080 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14081
14082 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14083 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14084
14085 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14086 in chartab.c and were re-added here by mistake.
14087 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14088
14089 * doc.c (Fsnarf_documentation):
14090 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14091 src to etc.
14092
14093 * ChangeLog.10: Add mistakenly removed entry.
14094
140952008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14096
14097 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14098
140992008-02-01 Miles Bader <miles@gnu.org>
14100
14101 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14102 Add extra args to FACE_FOR_CHAR.
14103
141042008-02-01 Kenichi Handa <handa@m17n.org>
14105
14106 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14107 in sequence.
14108
14109 * chartab.c (map_sub_char_table, map_char_table): If the range
14110 contains just one character, call the function with that character
14111 even if the depth is not 3.
14112
141132008-02-01 Jason Rumney <jasonr@gnu.org>
14114
14115 * w32font.c (w32font_text_extents): Calculate metrics for the
14116 whole string.
14117
141182008-02-01 Jason Rumney <jasonr@gnu.org>
14119
14120 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14121
141222008-02-01 Jason Rumney <jasonr@gnu.org>
14123
14124 * w32term.c (x_set_glyph_string_clipping): Use
14125 get_glyph_string_clip_rects.
14126 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14127 Adjust for the change of struct glyph_string.
14128
14129 * w32font.c (w32font_draw): Do clipping here.
14130
141312008-02-01 Kenichi Handa <handa@m17n.org>
14132
14133 * xftfont.c (xftfont_draw): Adjust for the change of struct
14134 glyph_string.
14135
14136 * xterm.c (x_set_glyph_string_clipping): Use
14137 get_glyph_string_clip_rects.
14138 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14139 Adjust for the change of struct glyph_string.
14140
14141 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14142 the resulting clip(s}.
14143 (expose_overlaps): Add arg r. Change callers. Set it to
14144 row->clip temporarily.
14145 (expose_window): Redraw rows overlapping the exposed area.
14146
14147 * dispextern.h (struct glyph_row): New member clip.
14148 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14149 clip_height, new member clip, and num_clips.
14150
141512008-02-01 Kenichi Handa <handa@m17n.org>
14152
14153 * data.c (Fchar_or_string_p): Fix docstring.
14154
141552008-02-01 Kenichi Handa <handa@m17n.org>
14156
14157 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14158 create a temporary XftDraw object.
14159
141602008-02-01 Kenichi Handa <handa@m17n.org>
14161
14162 * font.c (Ffontp): Fix docstring.
14163
14164 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14165 strong evidence of ISO-2022.
14166
141672008-02-01 Kenichi Handa <handa@m17n.org>
14168
14169 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14170 SYNTAX_ENTRY_FOLLOW_PARENT.
14171
141722008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14173
14174 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14175 its type.
14176 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14177 Update to the new type of weak_hash_tables and next_weak.
14178
14179 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14180 a plain C pointer to Lisp_Hash_Table.
14181
14182 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14183 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14184 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14185 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14186 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14187 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14188 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14189 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14190 (GC_EQ): Remove since they've been identical to their non-GC_
14191 alter-egos ever since the markbit was eradicated.
14192
14193 * alloc.c:
14194 * buffer.c:
14195 * buffer.h:
14196 * data.c:
14197 * fileio.c:
14198 * filelock.c:
14199 * fns.c:
14200 * frame.h:
14201 * lisp.h:
14202 * macterm.c:
14203 * print.c:
14204 * process.c:
14205 * w32fns.c:
14206 * w32menu.c:
14207 * w32term.c:
14208 * xfns.c:
14209 * xmenu.c:
14210 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14211
142122008-02-01 Kenichi Handa <handa@m17n.org>
14213
14214 * chartab.c (map_sub_char_table): Make it work for the top-level
14215 char-table. Fix handling of parent char-table.
14216 (map_char_table): Adjust for the above change.
14217
142182008-02-01 Jason Rumney <jasonr@gnu.org>
14219
14220 * w32font.c (Qgdi): Rename from Qw32.
14221
142222008-02-01 Jason Rumney <jasonr@gnu.org>
14223
14224 * w32bdf.c (get_quoted_string): Make function static.
14225
142262008-02-01 Kenichi Handa <handa@m17n.org>
14227
14228 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14229 bigger ascent and descent than those of the font, use them as
14230 font's ascent and descent.
14231
142322008-02-01 Kenichi Handa <handa@m17n.org>
14233
14234 * Makefile.in (${lispsource}international/charprop.el): Move this
14235 target within "#ifdef HAVE_UNIDATA" and "#endif".
14236
142372008-02-01 Kenichi Handa <handa@m17n.org>
14238
14239 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14240 (shortlisp): Add ../lisp/language/tai-viet.el.
14241
142422008-02-01 Ulrich Mueller <ulm@gentoo.org>
14243
14244 * Makefile.in (${lispsource}international/charprop.el): Depend on
14245 temacs${EXEEXT}.
14246
142472008-02-01 Jason Rumney <jasonr@gnu.org>
14248
14249 * w32font.c (w32font_close): Delete the GDI font object.
14250
14251 * w32menu.c: Include character.h.
14252
14253 * w32proc.c: Likewise.
14254
14255 * w32select.c: Likewise.
14256
14257 * makefile.w32-in (w32proc.o): Depend on character.h.
14258
142592008-02-01 Jason Rumney <jasonr@gnu.org>
14260
14261 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14262
14263 * w32menu.c (syms_of_w32menu): Likewise.
14264
14265 * w32proc.c (syms_of_ntproc): Likewise.
14266
14267 * w32select.c (syms_of_w32select): Likewise.
14268
14269 * w32term.c (syms_of_w32term): Likewise.
14270
142712008-02-01 Jason Rumney <jasonr@gnu.org>
14272
14273 * w32font.c (w32font_draw): Delete brush after using it.
14274
142752008-02-01 Jason Rumney <jasonr@gnu.org>
14276
14277 * w32font.c (w32font_open): Don't set font_idx.
14278 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14279 to font settings.
14280 (w32font_draw): Fill background explicitly.
14281
142822008-02-01 Jason Rumney <jasonr@gnu.org>
14283
14284 * w32term.c (w32_initialize): Don't call w32font_initialize.
14285
14286 * w32font.c (w32font_info): Remove subranges.
14287 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14288 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14289 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14290 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14291 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14292 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14293 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14294 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14295 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14296 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14297 New symbols.
14298 (font_callback_data): New struct.
14299 (w32font_list, w32font_match): Use it.
14300 (w32font_open): Don't populate subranges.
14301 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14302 (w32font_encode_char): Always return unicode code-point as-is.
14303 (w32font_text_extents): Supply a transformation matrix to
14304 GetGlyphOutline. Never look up by glyph index. Avoid looping
14305 twice. Use unicode version of GetTexExtentPoint32 instead of
14306 glyph index version.
14307 (set_fonts_frame): Remove.
14308 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14309 set frame parameter. Use backward compatible fake foundries.
14310 Save generic family in extra slot under QCfamily. Make width slot
14311 constant. Save QCspacing value. Save list of scripts instead of
14312 binary subranges.
14313 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14314 (add_font_entity_to_list): Use font_callback_data struct. Filter
14315 unwanted fonts.
14316 (add_one_font_entity_to_list): Use font_callback_data struct.
14317 (w32_registry): Default to iso10646_1.
14318 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14319 string font registries. Don't fill in font name if it is a generic
14320 family name, fill family instead. Use spacing, family and script
14321 extra info to fill pitch, family and charset fields.
14322 (list_all_matching_fonts): Use font_callback_data struct.
14323 (unicode_range_for_char): Remove.
14324 (font_supported_scripts): New function.
14325 (w32font_initialize): Remove.
14326 (syms_of_w32font): Update which symbols are defined.
14327
143282008-02-01 Jason Rumney <jasonr@gnu.org>
14329
14330 * font.c (font_pixel_size): Reverse assq_no_quit args.
14331
14332 * w32term.h (FONT_WIDTH): Report max width, not average.
14333 (FONT_MAX_WIDTH): Remove.
14334 (FONT_AVG_WIDTH): New macro.
14335
14336 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14337 redefinition of FONT_WIDTH.
14338
14339 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14340 (w32_cache_char_metrics): Use FONT_WIDTH.
14341
14342 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14343
143442008-02-01 Jason Rumney <jasonr@gnu.org>
14345
14346 * w32font.c (w32font_open): Make lfHeight negative.
14347
14348 * w32fns.c (x_default_font_parameter): Use new style font name.
14349 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14350
143512008-02-01 Jason Rumney <jasonr@gnu.org>
14352
14353 * w32font.c (QCsubranges): New symbol.
14354 (w32font_open, w32font_has_char): Get subranges from subproperty
14355 of extra.
14356 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14357 (syms_of_w32font): Define :subranges symbol.
14358
14359 * font.c (font_put_extra): Expose externally.
14360
14361 * font.h (font_put_extra): Move declaration from font.c.
14362
14363 * font.c (Ffont_get): Use font driver to determine otf capability.
14364 (adjust_anchor): Check if driver defines anchor_point before using.
14365
14366 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14367 (w32font_draw): Use options.
14368 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14369 Fix detection of truetype fonts.
14370 (registry_to_w32_charset): Handle charsets other than iso8859-1
14371 expressed as lisp symbols.
14372 (w32_registry): Express charset as lisp symbol.
14373 (fill_in_logfont): Reverse pixel and point height logic.
14374 Don't set width here. Set quality to default.
14375
14376 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14377 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14378
14379 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14380 Remove redundant loop and allocation.
14381
14382 * makefile.w32-in (font.o, w32font.o): New objects.
14383 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14384 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14385
14386 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14387 STORE_XCHARB a valid l-value.
14388
14389 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14390 calculations for non-Truetype fonts.
14391 (x_draw_glyph_string): Sync with xterm.c.
14392 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14393 Remove redundant code.
14394 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14395
14396 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14397 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14398
14399 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14400 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14401
14402 * w32font.c: New file for w32 font backend.
14403
144042008-02-01 Kenichi Handa <handa@m17n.org>
14405
14406 * term.c: Don't include "buffer.h" twice.
14407
144082008-02-01 Kenichi Handa <handa@m17n.org>
14409
14410 * character.c (Funibyte_string): New function.
14411 (syms_of_character): Defsubr it.
14412
144132008-02-01 Jason Rumney <jasonr@gnu.org>
14414
14415 * w32term.c [USE_FONT_BACKEND]:
14416 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14417 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14418 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14419 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14420 (x_free_frame_resources): Sync with xterm.c.
14421
144222008-02-01 Andreas Schwab <schwab@suse.de>
14423
14424 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14425 char-table size.
14426
144272008-02-01 Kenichi Handa <handa@m17n.org>
14428
14429 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14430
144312008-02-01 Kenichi Handa <handa@m17n.org>
14432
14433 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14434 font_otf_gpos, add font_drive_otf.
14435
14436 * fontset.c (fontset_find_font): Pay attention to font size
14437 specified for a font.
14438 (reorder_font_vector): Check contents of font_def.
14439
14440 * font.c (struct otf_list): Delete it.
14441 (otf_list): Make it a lisp variable.
14442 (otf_open): Use lispy otf_list.
14443 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14444 (check_otf_features): New function.
14445 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14446 New functions.
14447 (font_drive_otf): New function merging font_otf_gsub and
14448 font_otf_gpos.
14449 (font_open_for_lface): New arg spec. Change argument order.
14450 (font_load_for_face): Adjust for the change of font_open_for_lface.
14451 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14452 Ffont_otf_gpos.
14453 (syms_of_font): Staticpro otf_list. Delete defsubr of
14454 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14455
14456 * xfaces.c (set_font_frame_param): Adjust for the change of
14457 font_open_for_lface.
14458
14459 * font.h (font_open_for_lface): Adjust prototype.
14460 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14461 member otf_drive.
14462 (font_otf_gsub, font_otf_gpos): Delete externs.
14463 (font_drive_otf): Extern it.
14464
144652008-02-01 Kenichi Handa <handa@m17n.org>
14466
14467 * font.c (font_at): If the window W is not on a window system,
14468 return Qnil.
14469
14470 * coding.c (produce_chars, encode_coding): Don't call
14471 insert_from_gap if no characters to produce.
14472
144732008-02-01 Kenichi Handa <handa@m17n.org>
14474
14475 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14476 Fclear_face_cache.
14477
14478 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14479
144802008-02-01 Miles Bader <miles@gnu.org>
14481
14482 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14483 Parse "--disable-font-backend" option.
14484 (standard_args): Add "--disable-font-backend" option.
14485
144862008-02-01 Kenichi Handa <handa@m17n.org>
14487
14488 * fontset.c (fontset_find_font): New function.
14489 (fontset_font): Use fontset_find_font.
14490 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14491 Register the specified font for all Latin characters.
14492 (new_fontset_from_font): Register the specified font for all Latin
14493 characters.
14494 (dump_fontset): For a realized fontset, include the base fontset
14495 name in the returned vector.
14496
144972008-02-01 Kenichi Handa <handa@m17n.org>
14498
14499 * character.h (CHAR_STRING): Cast C to unsigned on calling
14500 char_string.
14501
14502 * character.c (char_string): Type of arg C changed to unsigned.
14503 Signal an error if C is an invalid character code.
14504
14505 * editfns.c (general_insert_function, Fchar_to_string):
14506 Use CHARACTERP, not INTEGERP.
14507
145082008-02-01 Kenichi Handa <handa@m17n.org>
14509
14510 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14511 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14512
14513 * regex.c (analyse_first): Fix for multibyte characters in "case
14514 charset:" and "case categoryspec:".
14515
145162008-02-01 Andreas Schwab <schwab@suse.de>
14517
14518 * Makefile.in (LIBES): Move standard libraries to the end.
14519
145202008-02-01 Kenichi Handa <handa@m17n.org>
14521
14522 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14523 nonzero, don't shrink the buffer nextb.
14524
14525 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14526
14527 * coding.c (coding_alloc_by_making_gap): New arg offset.
14528 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14529 offset.
14530 (decode_coding_iso_2022): Update coding->safe_charsets.
14531 (decode_coding_gap): Temporarily set
14532 current_buffer->text->inhibit_shrinking to 1.
14533
145342008-02-01 Kenichi Handa <handa@m17n.org>
14535
14536 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14537 indexing into elements of s->cmp and s->char2b.
14538
145392008-02-01 Juanma Barranquero <lekktu@gmail.com>
14540
14541 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14542
145432008-02-01 Kenichi Handa <handa@m17n.org>
14544
14545 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14546 target_multibyte instead of multibyte.
14547 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14548 (bcmp_translate): Change the argument name from multibyte to
14549 target_multibyte.
14550
145512008-02-01 Kenichi Handa <handa@m17n.org>
14552
14553 These changes are to compile a regexp into a pattern that can be
14554 used both for multibyte and unibyte targets.
14555
14556 * Makefile.in (search.o): Depend on charset.h.
14557
14558 * character.c (multibyte_char_to_unibyte_safe): New function.
14559
14560 * search.c: Include "charset.h".
14561 (compile_pattern_1): Delete argument multibyte. Don't set
14562 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14563 (compile_pattern): Don't compare cp->buf.target_multibyte.
14564 Compare cp->buf.charset_unibyte.
14565 (compile_pattern): Set cp->buf.target_multibyte.
14566
14567 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14568
14569 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14570
14571 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14572 multibyte. Change callers.
14573 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14574 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14575 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14576 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14577 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14578 (regex_compile): Make the compiled pattern usable both for
14579 multibyte and unibyte targets.
14580 (analyse_first): Make the fastmap usable both for multibyte and
14581 unibyte targets.
14582 (TRANSLATE_VIA_MULTIBYTE): Delete.
14583 (re_match_2_internal): Pay attention to the case that the
14584 multibyteness of bufp and target may be different.
14585
145862008-02-01 Kenichi Handa <handa@m17n.org>
14587
14588 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14589 empty box occupy at least one column width.
14590
145912008-02-01 Miles Bader <miles@gnu.org>
14592
14593 * Makefile.in: Remove redundant HAVE_XFT clause.
14594
145952008-02-01 Kenichi Handa <handa@m17n.org>
14596
14597 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14598
145992008-02-01 Kenichi Handa <handa@m17n.org>
14600
14601 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14602 being nil.
14603
146042008-02-01 Kenichi Handa <handa@m17n.org>
14605
14606 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14607
146082008-02-01 Kenichi Handa <handa@m17n.org>
14609
14610 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14611
146122008-02-01 Kenichi Handa <handa@m17n.org>
14613
14614 * search.c (simple_search): Fix previous change.
14615
146162008-02-01 Kenichi Handa <handa@m17n.org>
14617
14618 * xftfont.c (ftfont_font_format): Extern declaration.
14619
14620 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14621
14622 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14623 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14624
14625 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14626 (ftfont_font_format): Fix previous change.
14627
14628 * font.h (Ffont_xlfd_name): EXFUN it.
14629
14630 * font.c (font_parse_xlfd): Fix the array size of `f'.
14631 (register_font_driver): Use EQ to compare driver->type.
14632
14633 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14634 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14635 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14636
146372008-02-01 Kenichi Handa <handa@m17n.org>
14638
14639 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14640 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14641
146422008-02-01 Kenichi Handa <handa@m17n.org>
14643
14644 * xfont.c (xfont_open): Set font->format.
14645
14646 * xftfont.c (xftfont_open): Set font->format.
14647
14648 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14649 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14650 (ftfont_open): Set font->format.
14651 (ftfont_font_format): New function.
14652
14653 * font.h (struct font): New member format.
14654
14655 * font.c (Qopentype): New variable.
14656 (syms_of_font): Defsym it.
14657 (Fquery_font): Change the format of the last element of the return
14658 value.
14659
146602008-02-01 Kenichi Handa <handa@m17n.org>
14661
14662 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14663 last resort.
14664
146652008-02-01 Kenichi Handa <handa@m17n.org>
14666
14667 * coding.c (detect_coding_charset): Fix detection of multi-byte
14668 charset.
14669
146702008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14671
14672 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14673
146742008-02-01 Kenichi Handa <handa@m17n.org>
14675
14676 * xdisp.c (get_next_display_element): Set it->face_id for the
14677 first component of a composition.
14678 (x_produce_glyphs): Check if the font is changed or not for composition.
14679
146802008-02-01 Kenichi Handa <handa@m17n.org>
14681
14682 * fontset.c (Qlatin): New variable.
14683 (syms_of_fontset): Define it as a lisp symbol.
14684 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14685
146862008-02-01 Kenichi Handa <handa@m17n.org>
14687
14688 * font.c (font_unparse_fcname): Pay attention to the case that
14689 some of font property is a null string.
14690
146912008-02-01 Kenichi Handa <handa@m17n.org>
14692
14693 * term.c: Include "composite.h".
14694 (encode_terminal_code): Output all components of composition.
14695 Check the size of encode_terminal_src.
14696 (produce_glyphs): For composition, call produce_composite_glyph.
14697 (append_composite_glyph, produce_composite_glyph): New functions.
14698
14699 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14700 is not found, get font_info from the current ascii face.
14701
147022008-02-01 Kenichi Handa <handa@m17n.org>
14703
14704 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14705 buffer-file-name to Qnil before calling insert_from_buffer.
14706
14707 * font.c (font_unparse_fcname): Pay attention to the case that
14708 foundry is a null string.
14709
147102008-02-01 Kenichi Handa <handa@m17n.org>
14711
14712 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14713
14714 * font.c (Qunicode_sip): New variable.
14715 (syms_of_font): Declare it as a Lisp symbol.
14716
14717 * font.h (Qunicode_sip): Extern it.
14718
147192008-02-01 Kenichi Handa <handa@m17n.org>
14720
14721 * composite.c (get_composition_id): Pay attention to TAB component.
14722
14723 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14724 TAB. Adjust for the change of s->char2b which always points to
14725 the first element of allocated memory.
14726
14727 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14728
14729 * xdisp.c (handle_composition_prop): Set it->c to the first
14730 non-TAB component.
14731 (fill_composite_glyph_string): Change argument.
14732 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14733 (x_produce_glyphs): Fix handling of left/right padding.
14734
147352008-02-01 Kenichi Handa <handa@m17n.org>
14736
14737 * coding.c (detect_coding_system): Fix for handling off
14738 inhibit_iso_escape_detection. Fix for the case that no coding
14739 system is defined for a specific coding category.
14740
147412008-02-01 Kenichi Handa <handa@m17n.org>
14742
14743 * font.c (font_matching_entity): Delete unused local var.
14744
14745 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14746 opening a font.
14747
14748 * fileio.c (Finsert_file_contents): On recovering a file, assume
14749 Unix-like eol.
14750 (choose_write_coding_system): On auto-saving a file, force
14751 Unix-like eol.
14752
14753 * coding.c (setup_coding_system): Fix setting of
14754 coding->common_flags based on eol_type.
14755 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14756 inherit from it.
14757
147582008-02-01 Kenichi Handa <handa@m17n.org>
14759
14760 * alloc.c (NSTATICS): Increas to 0x600.
14761
147622008-02-01 Kenichi Handa <handa@m17n.org>
14763
14764 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14765 (ftfont_list): Don't check :name property.
14766 (ftfont_match): New function.
14767 (ftfont_pattern_entity): If the pattern doesn't contain
14768 FC_SPACING, don't assume FC_MONO.
14769
14770 * font.h (struct font_driver): New member `match'.
14771 (font_update_drivers): Adjust prototype.
14772
14773 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14774 property of FONT.
14775 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14776 them unconditionally.
14777 (font_matching_entity): New function.
14778 (font_open_by_name): Try font_matching_entity if exact match is
14779 not found.
14780 (font_update_drivers): Delete the arg FONT. Return a list of
14781 actually used backends. Don't free faces, font caches here.
14782 Don't store data in frame parameters. Don't call x_set_font.
14783 (Ffont_spec): Store :name property as is.
14784 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14785 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14786 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14787 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14788 Call font->driver->otf_gsub instead of font_otf_gsub.
14789
14790 * frame.c (x_set_font_backend): Do more works that were done in
14791 font_update_drivers before.
14792
14793 * xfont.c (xfont_match): New function.
14794 (xfont_driver): Set xfont_driver.match to xfont_match.
14795 (xfont_draw): Set font in GC if necessary.
14796
14797 * ftxfont.c (ftxfont_match): New function.
14798 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14799
14800 * xftfont.c (xftfont_match): New function.
14801 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14802
148032008-02-01 Kenichi Handa <handa@m17n.org>
14804
14805 * font.h (struct font): New member scalable.
14806 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14807 (font_otf_gsub): Adjust prototype.
14808
14809 * font.c (font_otf_capability): Fix handling of the default langsys.
14810 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14811 Check the contents of SPEC.
14812 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14813 (check_gstring): New function.
14814 (REPLACEMENT_CHARACTER): New macro.
14815 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14816 glyph codes of GSTRING.
14817 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14818 (font_prepare_composition): Set cmp->glyph_len.
14819 (font_open_entity): Set font->scalable.
14820 (Ffont_get): Handle :otf property.
14821 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14822 functions.
14823 (Fquery_font): Use font->font.full_name.
14824 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14825 Sfont_otf_alternates.
14826
14827 * ftfont.c (ftfont_open): Set font->font.full_name and
14828 font->font.name properly. Fix calculation of font->font.height
14829 and font->min_width.
14830
14831 * ftxfont.c (ftxfont_create_gcs): New function.
14832 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14833 (ftxfont_draw_backgrond): Fix filling region.
14834 (ftxfont_default_fid): New function.
14835 (ftxfont_open): Set xfont->fid to the return value of
14836 ftxfont_default_fid.
14837 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14838 (ftxfont_done_face): Free only GCs that are created by
14839 ftxfont_create_gcs.
14840 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14841
14842 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14843 Clip to src->width, etc (not src->clip_XXX).
14844
14845 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14846 FontBackend frame parameter.
14847
148482008-02-01 Kenichi Handa <handa@m17n.org>
14849
14850 * font.h (struct font_driver_list): New member `on'.
14851 (Fclear_font_cache): EXFUN it.
14852 (font_update_drivers): Extern it.
14853
14854 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14855 (font_list_entities): Check driver_list->on.
14856 (register_font_driver): Initalize `on' member to 0.
14857 (font_update_drivers): New function.
14858 (Fclear_font_cache): Check driver_list->on.
14859
14860 * frame.h (Qfont_backend): Extern it.
14861 (x_set_font_backend): Extern it.
14862
14863 * frame.c (Qfont_backend): New variable.
14864 (frame_parms): New element for font-backend.
14865 (x_set_font_backend): New function.
14866
14867 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14868 FontBackend frame parameter.
14869 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14870 x_set_font_backend.
14871
14872 * xfont.c (xfont_list): Don't try listing by :name property if the
14873 name is not for XLFD.
14874
148752008-02-01 Kenichi Handa <handa@m17n.org>
14876
14877 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14878 (LGLYPH_SET_TO): New macros.
14879 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14880 element of G is vector or not.
14881 (font_at): Extern it.
14882
14883 * font.c: Include window.h.
14884 (font_lispy_object): New function.
14885 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14886 end of valid glyph.
14887 (font_close_object): Fix getting (struct font *).
14888 (font_at): New function.
14889 (Ffont_get): If FONT is a font-object, get entity from it.
14890 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14891 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14892 range check.
14893 (Ffont_at): New function.
14894 (syms_of_font): Defsubr Sfont_at.
14895
14896 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14897 before the entry for Qcomposition.
14898 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14899 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14900 the font in gstring.
14901 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14902 LGLYPH_FORM (g) to detect the end of valid glyph.
14903 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14904 we are composing with gstring.
14905
14906 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14907 Check if adjustment is vector or not.
14908
14909 * Makefile.in (font.o): Make it depends on window.h.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14914 adjustment is vector or not.
14915
149162008-02-01 Miles Bader <miles@gnu.org>
14917
14918 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14919
149202008-02-01 Kenichi Handa <handa@m17n.org>
14921
14922 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14923 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14924 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14925
14926 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14927 (DEVICE_DELTA): Fix typo.
14928 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14929 LGLYPH format.
14930
14931 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14932 the change of LGLYPH format.
14933
149342008-02-01 Kenichi Handa <handa@m17n.org>
14935
14936 * ftfont.c (ftfont_list): Fix typo.
14937 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14938
149392008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14940
14941 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14942
14943 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14944 xftface_info is non-NULL.
14945
149462008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14947
14948 * ftfont.c (ftfont_list): Move misplaced #endif.
14949
149502008-02-01 Kenichi Handa <handa@m17n.org>
14951
14952 * ftfont.c (ftfont_list): Pay attention to the case that
14953 FC_CAPABILITY is not defined.
14954
149552008-02-01 Kenichi Handa <handa@m17n.org>
14956
14957 * xftfont.c (xftfont_open): Set charset related members to -1.
14958
14959 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14960 QCname.
14961 (ftfont_open): Set charset related members to -1.
14962
14963 * fontset.c (Votf_script_alist): New variable.
14964 (syms_of_fontset): Initialize it.
14965 (fontset_font): Delete unused variable.
14966
14967 * fontset.h (Votf_script_alist): Extern it.
14968
14969 * font.c (font_find_for_lface): Optimize code.
14970
14971 * font.h (font_close_object, font_merge_old_spec): Extern them.
14972
149732008-02-01 Kenichi Handa <handa@m17n.org>
14974
14975 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14976 (syms_of_font): Initialize them.
14977 (font_pixel_size): Allow float value in dpi.
14978 (font_prop_validate_type): Delete.
14979 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14980 Change caller.
14981 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14982 (font_prop_validate_extra): Delete.
14983 (font_prop_validate_spacing): New function.
14984 (font_property_table): Add elements for all known properties.
14985 (get_font_prop_index): Rename from check_font_prop_name. New
14986 argument FROM. Change caller.
14987 (font_prop_validate): Validate all known properties.
14988 (font_put_extra): Delete argument force. Change caller.
14989 (font_expand_wildcards): Make it static. Fix the way of shrinking
14990 the possible range.
14991 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14992 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14993 Change caller.
14994 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14995 (font_parse_fcname): Delete argument merge. Fix parsing of point
14996 size. Don't validate properties values here. Change caller.
14997 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14998 (font_open_by_name): Delete unused variable.
14999 (Ffont_spec): Likewise. Validate property values.
15000 (Ffont_match_p): New function.
15001
15002 * font.h (QCscalable): Extern it.
15003 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15004
15005 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15006
15007 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15008 (xfont_list_pattern): New function.
15009 (xfont_list): Use xfont_list_pattern.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * font.h (Flist_fonts): EXFUN it.
15014
150152008-02-01 Jason Rumney <jasonr@gnu.org>
15016
15017 * w32term.c (w32_initialize): Add back smoothing_type and
15018 smoothing_enabled definitions.
15019
150202008-02-01 Kenichi Handa <handa@m17n.org>
15021
15022 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15023 s->face->font on determining underline position.
15024
150252008-02-01 Kenichi Handa <handa@m17n.org>
15026
15027 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15028 (font_has_char): Accept font-object too.
15029 (font_find_for_lface): Try at first with a size specified in face.
15030
150312008-02-01 Kenichi Handa <handa@m17n.org>
15032
15033 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15034 font_open_by_name.
15035
150362008-02-01 Kenichi Handa <handa@m17n.org>
15037
15038 * font.h (QCspacing, QCdpi): Extern them.
15039 (enum font_spacing): New enum.
15040 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15041
15042 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15043 (QCspacing, QCdpi): New variables.
15044 (syms_of_font): Initialize them.
15045 (font_pixel_size): New function.
15046 (font_put_extra): New function.
15047 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15048 in FONT_EXTRA.
15049 (font_parse_fcname): Handle enumerated values (e.g. bold).
15050 Fix handling font size. Add QCname property that contains only
15051 unknown properties.
15052 (font_score): Change argument. Change caller. Pay attention to
15053 FONT_PIXEL_SIZE_QUANTUM.
15054 (font_sort_entites, font_list_entities, font_find_for_lface)
15055 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15056 (Ffont_spec): Add QCname property that contains only unknown properties.
15057
15058 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15059 include weight in listing pattern, instead check weight of each
15060 listed font. Don't include scalable in pattern. Pay attention to
15061 FONT_PIXEL_SIZE_QUANTUM.
15062
150632008-02-01 Kenichi Handa <handa@m17n.org>
15064
15065 * font.c (font_parse_fcname): Fix parsing of point-size.
15066 (font_unparse_fcname): Produce symbolic names for style properties.
15067 (font_list_entities): Handle float size correctly.
15068 (font_open_by_name): Prefer `normal' property values if the name
15069 doesn't specify them.
15070
15071 * fontset.c (Finternal_char_font): Use font_get_name, not
15072 Ffont_xlfd_name.
15073
15074 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15075 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15076 pattern. Don't force scalable.
15077
15078 * xftfont.c (xftfont_open): For generating a name, start from
15079 96-byte buffer.
15080
150812008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15082
15083 * frame.h (x_new_fontset2): Fix prototype.
15084
150852008-02-01 Kenichi Handa <handa@m17n.org>
15086
15087 * font.h (struct font_driver): Delete member parse_name.
15088 (font_match_p, font_get_spec, font_parse_fcname)
15089 (font_unparse_fcname): Extern them.
15090 (font_get_name): Adjust prototype.
15091
15092 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15093 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15094 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15095 unnecessary checks for weight, slant, and swidth.
15096 (font_parse_fcname): New function.
15097 (font_unparse_fcname): New function.
15098 (font_parse_name): New function.
15099 (font_match_p): New function.
15100 (font_get_name): Change return value to Lisp string.
15101 (font_get_spec): New function.
15102 (Qunspecified, Qignore_defface): Don't extern them.
15103 (font_find_for_lface): Assume that LFACE is fully specified.
15104 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15105 object, use it for FACE.
15106 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15107 driver->parse_name.
15108 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15109
15110 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15111 prototype.
15112
15113 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15114 argument F. Don't call Fnew_fontset. Instead, directly call
15115 make_fontset.
15116
15117 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15118
15119 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15120 of x_new_fontset2.
15121
15122 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15123 (Qsans__serif): New variables.
15124 (ftfont_generic_family_list): New variable.
15125 (syms_of_ftfont): Initialize the above variables.
15126 (ftfont_pattern_entity): Delete argument NAME.
15127 (ftfont_list_generic_family): New function.
15128 (ftfont_parse_name): Delete this function.
15129 (ftfont_list): Try generic family only when FcFontList found no font.
15130 (ftfont_list_family): Fix args to FcObjectSetBuild.
15131
15132 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15133 object in attrs[LFACE_FONT_INDEX].
15134 (set_lface_from_font_name): Cancel all changes for font-backend.
15135 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15136 function.
15137 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15138 font object in QCfont attribute.
15139 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15140 (realize_default_face) [USE_FONT_BACKEND]: Call
15141 set_lface_from_font_and_fontset.
15142
15143 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15144 "fixed", and signal error here if no suitable font was found.
15145
15146 * xfont.c (xfont_parse_name): Delete this function.
15147
15148 * xftfont.c (xftfont_open): Change coding style of error
15149 handling. Generate fontconfig's fontname pattern.
15150
15151 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15152 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15153
15154 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15155 Both args FONTSET and FONT_OBJECT must be existing ones.
15156
151572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15158
15159 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15160
151612008-02-01 Kenichi Handa <handa@m17n.org>
15162
15163 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15164
15165 * font.h (struct font): Fix typo.
15166
15167 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15168 XLFD_XXX_INDEX.
15169 (enum xlfd_field_mask): New enum.
15170 (intern_font_field): Changed argument. Change caller. If digits
15171 are followed by non-digits, return a symbol.
15172 (font_expand_wildcards): New function.
15173 (font_parse_xlfd): Fix wildcard handling.
15174 (Ffont_spec): If :name is specified, reflect the info in the other
15175 properties.
15176
15177 * ftfont.c (ftfont_pattern_entity): Fix typo.
15178 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15179 locale.
15180
151812008-02-01 Kenichi Handa <handa@m17n.org>
15182
15183 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15184
15185 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15186 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15187 registry doesn't specify encoding part.
15188 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15189 (font_open_by_name): At first try parsing the name.
15190 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15191 as Lisp symbols.
15192
15193 * fontset.c (reorder_font_vector): Pay attention to the case that
15194 the 3rd element of font_def is nil.
15195 (fontset_font): For the default fontset, append one more fontset
15196 elements for a script-based font specification. Don't add script
15197 attribute on finding a font.
15198 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15199 font name.
15200 (fontset_ascii_font): If a font can't be opened, return nil.
15201
15202 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15203 (ftfont_pattern_entity): New function.
15204 (ftfont_get_cache): Assume that freetype_font_cache is already
15205 initialized.
15206 (ftfont_list): Handle the case that a file is specified in font
15207 name. Use ftfont_pattern_entity to generate entities.
15208 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15209 (syms_of_ftfont): Initialize freetype_font_cache.
15210
15211 * xftfont.c (xftfont_open): Make the font name fontconfig's
15212 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15213 (xftfont_close): Free font->font.name if not NULL.
15214
15215 * xfont.c (xfont_list): If script is specified for a font, return
15216 null_vector.
15217 (xfont_list_family): Declare argument type.
15218
15219 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15220 name, set LFACE_FONT (lface) to nil.
15221
15222 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15223 return Qnil.
15224
152252008-02-01 Kenichi Handa <handa@m17n.org>
15226
15227 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15228 (standard_args): Add "-enable-font-backend".
15229
152302008-02-01 Kenichi Handa <handa@m17n.org>
15231
15232 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15233 (struct xftdraw_list, xftdraw_list): Delete them.
15234 (register_xftdraw, check_xftdraw): Delete them.
15235 (xftfont_prepare_face): Don't call register_xftdraw.
15236 (xftfont_done_face): Don't call check_xftdraw.
15237 (xftfont_draw): Get background color only when with_background is
15238 nonzero.
15239
15240 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15241
152422008-02-01 Kenichi Handa <handa@m17n.org>
15243
15244 These changes are for the new font handling codes.
15245
15246 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15247 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15248 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15249 (FONTSRC, FONTOBJ): New variables.
15250 (obj): Add $(FONTOBJ).
15251 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15252 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15253 @LIBOTF_LIBS@.
15254 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15255 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15256
15257 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15258
15259 * character.h (Vscript_representative_chars): Extern it.
15260
15261 * character.c (Vscript_representative_chars): New variable.
15262 (syms_of_character): Declare it as a Lisp variable.
15263
15264 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15265 enable_font_backend is nonzero, accept the composition method
15266 COMPOSITION_WITH_GLYPH_STRING.
15267
15268 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15269 enumeration COMPOSITION_WITH_GLYPH_STRING.
15270
15271 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15272 members clip_x, clip_y, clip_width, and clip_height.
15273 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15274
15275 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15276 --enable-font-backend. Call syms_of_font.
15277
15278 * fns.c (assoc_no_quit): New function.
15279
15280 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15281 (face_for_font, new_fontset_from_font)
15282 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15283
15284 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15285 (fontset_font, fontset_ascii, face_for_char)
15286 (make_fontset_for_ascii_face, Ffont_info)
15287 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15288 is nonzero, use font-backend mechanism.
15289 (find_font_encoding): Make it non-static.
15290 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15291 New functions.
15292
15293 * frame.h (struct frame): New members resx and resy.
15294 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15295 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15296
15297 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15298 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15299
15300 * lisp.h (assoc_no_quit): Extern it.
15301
15302 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15303 Through out the file, use FONT_INFO_FROM_FACE instead of
15304 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15305 rif->per_char_metric.
15306 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15307 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15308 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15309 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15310 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15311 nonzero, use font-backend mechanism.
15312 (get_per_char_metric): New function.
15313
15314 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15315 (set_lface_from_font_name)
15316 (set_font_frame_param, free_realized_face)
15317 (prepare_face_for_display, clear_face_gcs)
15318 (Finternal_set_font_selection_order, realize_x_face)
15319 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15320 font-backend mechanism.
15321 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15322 (load_face_font) [USE_FONT_BACKEND]: Abort.
15323 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15324 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15325
15326 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15327 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15328 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15329 nonzero, register all available font drivers. Call
15330 x_default_font_parameter for deciding a font.
15331 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15332
15333 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15334 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15335 (x_set_glyph_string_clipping_exactly)
15336 (x_compute_glyph_string_overhangs)
15337 (x_draw_glyph_string_foreground)
15338 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15339 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15340 enable_font_backend is nonzero, use font-backend mechanism.
15341 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15342
153432008-02-01 Kenichi Handa <handa@m17n.org>
15344
15345 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15346 system_eol_type.
15347 (syms_of_coding): Initialize system_eol_type.
15348
15349 * process.c (Fset_process_coding_system): Inherit system's eol
15350 format if necessary.
15351
153522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15353
15354 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15355
153562008-02-01 Kenichi Handa <handa@m17n.org>
15357
15358 * coding.c (decode_eol): Pay attention to buffer relocation in
15359 del_range_2.
15360 (decode_coding): Call decode_eol before restoring undo_list.
15361
153622008-02-01 Kenichi Handa <handa@m17n.org>
15363
15364 * charset.c (Fdefine_charset_internal): Fix setting of
15365 emacs_mule_bytes.
15366
153672008-02-01 Kenichi Handa <handa@m17n.org>
15368
15369 * keyboard.c (read_char): Check if C is a character or not before
15370 looking up Vkeyboard_translate_table.
15371
153722008-02-01 Kenichi Handa <handa@m17n.org>
15373
15374 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15375 condition to terminate the loop.
15376
153772008-02-01 Kenichi Handa <handa@m17n.org>
15378
15379 * coding.c (produce_composition): Compare charbuf[i] instead of
15380 args[i] against 0.
15381 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15382
153832008-02-01 Kenichi Handa <handa@m17n.org>
15384
15385 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15386 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15387 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15388 detect_coding.
15389 (emacs_mule_char): Handle old style (Emacs 20) component character
15390 of a composition.
15391 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15392 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15393 composition rule.
15394 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15395
153962008-02-01 Kenichi Handa <handa@m17n.org>
15397
15398 * coding.c (encode_coding_ccl): Allocate destination dynamically
15399 when necessary.
15400
154012008-02-01 Kenichi Handa <handa@m17n.org>
15402
15403 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15404 the loop. When quitted, show a proper error message.
15405
154062008-02-01 Kenichi Handa <handa@m17n.org>
15407
15408 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15409 src->clip_head and src->clip_tail temporarily instead of src->hl.
15410
15411 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15412 character sequence.
15413 (Fccl_execute_on_string): Use ASET, not XSET.
15414
154152008-02-01 Kenichi Handa <handa@m17n.org>
15416
15417 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15418
154192008-02-01 Kenichi Handa <handa@m17n.org>
15420
15421 * coding.c (decode_coding): Fix the condition of terminating the
15422 decoding loop.
15423
154242008-02-01 Kenichi Handa <handa@m17n.org>
15425
15426 * data.c (Faset): On setting a character bigger than 255 in a
15427 unibyte string, signal an error instead of make the string multibyte.
15428
154292008-02-01 Kenichi Handa <handa@m17n.org>
15430
15431 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15432 made by a mapping table.
15433
154342008-02-01 Kenichi Handa <handa@m17n.org>
15435
15436 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15437 not.
15438 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15439 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15440
15441 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15442 s->face is NULL or not.
15443
154442008-02-01 Kenichi Handa <handa@m17n.org>
15445
15446 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15447 (x_draw_glyph_string): Fix drawing of right_overhang and
15448 left_overhang around/on cursor.
15449
15450 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15451
154522008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15455
154562008-02-01 Kenichi Handa <handa@m17n.org>
15457
15458 * coding.c (Fdefine_coding_system_internal)
15459 (Fdefine_coding_system_alias): Avoid a duplicated element in
15460 Vcoding_system_alist.
15461
154622008-02-01 Kenichi Handa <handa@m17n.org>
15463
15464 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15465
15466 * coding.c (Qcoding_system_define_form): New variable.
15467 (syms_of_coding): Intern and staticpro it.
15468 (Fcoding_system_p): Check Qcoding_system_define_form.
15469 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15470
15471 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15472 Fcoding_system_p.
15473 (CHECK_CODING_SYSTEM): If ID is not available, call
15474 Fcheck_coding_system.
15475 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15476 Try also Fcheck_coding_system.
15477
154782008-02-01 Kenichi Handa <handa@m17n.org>
15479
15480 * coding.c (code_conversion_restore): GCPRO arg.
15481
154822008-02-01 Kenichi Handa <handa@m17n.org>
15483
15484 * character.c (lisp_string_width): Check multibyteness of STRING.
15485
154862008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15487
15488 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15489 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15490 (decode_mac_font_name): Use decode_coding_c_string instead of
15491 decode_coding.
15492 (x_load_font): Initialize fontp->fontset to -1. Set
15493 fontp->encoding_type.
15494
154952008-02-01 Kenichi Handa <handa@m17n.org>
15496
15497 * search.c (search_buffer): Give up BM search on case-fold-search
15498 if one of a target character has a case-equivalence of different
15499 byte length even if that target charcter is an ASCII.
15500 (simple_search): Fix calculation of byte length of matched text.
15501 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15502
155032008-02-01 Kenichi Handa <handa@m17n.org>
15504
15505 * coding.c (decode_coding): Fix handling of invalid bytes.
15506
155072008-02-01 Kenichi Handa <handa@m17n.org>
15508
15509 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15510 Unicode characters.
15511
155122008-02-01 Kenichi Handa <handa@m17n.org>
15513
15514 * coding.c (encode_coding_object): If a pre-write-conversion
15515 function makes a new buffer, kill it.
15516
155172008-02-01 Kenichi Handa <handa@m17n.org>
15518
15519 * coding.c (QCascii_compatible_p): New variable.
15520 (syms_of_coding): Initialize it.
15521 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15522 calling string_char.
15523 (record_conversion_result): Add `default:' case.
15524 (coding_charset_list): Delete unused variable `coding_type'.
15525 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15526 property in the plist of the coding system.
15527 (Fcoding_system_put): Check QCascii_compatible_p.
15528
155292008-02-01 Miles Bader <miles@gnu.org>
15530
15531 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15532 removed calculation of frame `f', as it's now used.
15533
155342008-02-01 Kenichi Handa <handa@m17n.org>
15535
15536 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15537 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15538 (UNIDATA): New variable.
15539 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15540 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15541 $(RUN_TEMACS) unconditionally.
15542
155432008-02-01 Kenichi Handa <handa@m17n.org>
15544
15545 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15546 (admindir): New variable.
15547 ($(lispsource)international/charprop.el): New target.
15548
155492008-02-01 Miles Bader <miles@gnu.org>
15550
15551 * character.c (chars-in-region): Remove obsolete function.
15552 (syms_of_character): Remove its initialization.
15553
155542008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15555
15556 * w32select.c (validate_coding_system)
15557 (setup_windows_coding_system): New functions.
15558 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15559 setup_windows_coding_system.
15560 (setup_config, Fw32_get_clipboard_data): Use
15561 validate_coding_system.
15562 (Fx_selection_exists): Move call to setup_config to a place
15563 where signals are allowed.
15564
15565 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15566 (Fcheck_coding_system): Add declarations.
15567
155682008-02-01 Kenichi Handa <handa@m17n.org>
15569
15570 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15571
155722008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15573
15574 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15575 string as the second argument for x_new_fontset.
15576
155772008-02-01 Kenichi Handa <handa@m17n.org>
15578
15579 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15580 (encode_coding_object): Use safe_call instead of call2.
15581
155822008-02-01 Kenichi Handa <handa@m17n.org>
15583
15584 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15585
15586 * Makefile.in (lisp): Include charprop.el.
15587
155882008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15589
15590 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15591 Not sure if it's unnecessary.
15592
155932008-02-01 Steven Tamm <steventamm@mac.com>
15594
15595 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15596 some possibly unnecessary fontset checking code that crashed
15597 when creating a new frame.
15598
155992008-02-01 Kenichi Handa <handa@m17n.org>
15600
15601 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15602 lookup_face.
15603
15604 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15605
15606 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15607
156082008-02-01 Kenichi Handa <handa@m17n.org>
15609
15610 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15611 (coding_charset_list): New function.
15612
15613 * coding.h (coding_charset_list): Extern it.
15614
156152008-02-01 Kenichi Handa <handa@m17n.org>
15616
15617 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15618 concatenation of family and registry.
15619
156202008-02-01 Kenichi Handa <handa@m17n.org>
15621
15622 * character.h (BYTE8_STRING): Fix typo.
15623
15624 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15625 string to multibyte (sync to HEAD).
15626
15627 * casefiddle.c (casify_region): Handle changes in byte-length
15628 using replace_range_2 (sync to HEAD).
15629
156302008-02-01 Andreas Schwab <schwab@suse.de>
15631
15632 * chartab.c (map_char_table): GCPRO table and arg.
15633
156342008-02-01 Kenichi Handa <handa@m17n.org>
15635
15636 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15637 already at limit.
15638
156392008-02-01 Kenichi Handa <handa@m17n.org>
15640
15641 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15642 instead of fast_c_string_match_ignore_case.
15643 (find_font_encoding): Change argument to Lisp_Object. Use
15644 fast_string_match_ignore_case instead of
15645 fast_c_string_match_ignore_case. Change caller.
15646
156472008-02-01 Kenichi Handa <handa@m17n.org>
15648
15649 * xdisp.c (get_next_display_element): In unibyte case, decide to
15650 display in octal form by checking a character by
15651 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15652
15653 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15654
15655 * character.c (unibyte_has_multibyte_table): New variable.
15656
15657 * character.h (unibyte_has_multibyte_table): Extern it.
15658 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15659
156602008-02-01 Kenichi Handa <handa@m17n.org>
15661
15662 * coding.c (encode_coding_iso_2022): Fix handling of charset
15663 annotation.
15664
156652008-02-01 Kenichi Handa <handa@m17n.org>
15666
15667 * coding.c (setup_coding_system): If coding_system is nil, use
15668 Qundecided.
15669 (Fterminal_coding_system): Return nil if terminal coding system is
15670 `undecided'.
15671 (syms_of_coding): Define coding-system `undecided' here. Setup
15672 terminal_coding as `undecided'.
15673
156742008-02-01 Kenichi Handa <handa@m17n.org>
15675
15676 * xdisp.c (message_dolog, set_message_1): Call
15677 unibyte_char_to_multibyte with arg type int.
15678
15679 * lread.c (read1): Fix reading of a char-table.
15680
15681 * print.c (print_object): Include sub char-table in circularities
15682 detection.
15683
156842008-02-01 Kenichi Handa <handa@m17n.org>
15685
15686 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15687 Append the found sequences in car of ARGS instead of prepending.
15688
156892008-02-01 Kenichi Handa <handa@m17n.org>
15690
15691 * fileio.c (report_file_error): Make a unibyte string from
15692 strerror (errorno).
15693 (Fsubstitute_in_file_name): Fix the arg to
15694 unibyte_char_to_multibyte. It is evaluated twice.
15695
156962008-02-01 Kenichi Handa <handa@m17n.org>
15697
15698 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15699
157002008-02-01 Kenichi Handa <handa@m17n.org>
15701
15702 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15703 BOM is not found.
15704 (detect_coding, detect_coding_system): Optimization for ISO-2022
15705 when no 8-bit data is found.
15706
157072008-02-01 Jason Rumney <jasonr@gnu.org>
15708
15709 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15710
157112008-02-01 Kenichi Handa <handa@m17n.org>
15712
15713 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15714 CHARS.
15715
157162008-02-01 Steven Tamm <steventamm@mac.com>
15717
15718 * macterm.c (mac_encode_char): Add charset argument and update
15719 to use encoding_type.
15720 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15721 switch to pure fontset.
15722 (decode_mac_font_name): Temporarily remove decoding.
15723 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15724 (x_load_font): Temporarily remove encoding.
15725
157262008-02-01 Kenichi Handa <handa@m17n.org>
15727
15728 * xfaces.c (Fface_font): If frame is not on a window system,
15729 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15730 refer to face->font.
15731 (split_font_name_into_vector, build_font_name_from_vector)
15732 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15733 when HAVE_WINDOW_SYSTEM is defined.
15734
157352008-02-01 Kenichi Handa <handa@m17n.org>
15736
15737 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15738 (x_produce_glyphs): Fix setting of members of cmp in case
15739 cmp->glyph_len is zero.
15740
15741 * fontset.c (Fset_fontset_font): Fix docstring.
15742 (Ffontset_info): Make it backward compatible. New arg ALL.
15743
157442008-02-01 Kim F. Storm <storm@cua.dk>
15745
15746 * process.c (read_process_output): Grow decoding_buf when needed;
15747 this could cause a crash in allocate_string and compact_small_strings.
15748
157492008-02-01 Kenichi Handa <handa@m17n.org>
15750
15751 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15752
157532008-02-01 Kenichi Handa <handa@m17n.org>
15754
15755 * coding.c (setup_coding_system): Set coding->common_flags
15756 correctly for raw-text.
15757 (consume_chars): On encoding unibyte text by raw-text, don't check
15758 multibyte form.
15759 (encode_coding): On encoding by raw-text, never use translation tables.
15760
15761 * fileio.c (e_write): Short cut for the case of no encoding.
15762
157632008-02-01 Kenichi Handa <handa@m17n.org>
15764
15765 * coding.c (detect_coding, detect_coding_system): Delete unused
15766 variables.
15767
157682008-02-01 Kenichi Handa <handa@m17n.org>
15769
15770 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15771 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15772
157732008-02-01 Kenichi Handa <handa@m17n.org>
15774
15775 * coding.c (Ffind_coding_systems_region_internal): Include
15776 raw-text and no-conversion in the result.
15777
157782008-02-01 Kenichi Handa <handa@m17n.org>
15779
15780 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15781 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15782 FONT_DEF.
15783 (font_def_arg, add_arg, from_arg, to_arg): New args.
15784 (set_fontset_font): Change argument.
15785 (Fset_fontset_font): Fix for the case that TARGET is a script
15786 name and charset name.
15787 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15788
157892008-02-01 Kenichi Handa <handa@m17n.org>
15790
15791 * fontset.c (fontset_font): Rename from fontset_face. Change return
15792 value.
15793 (face_suitable_for_char_p, face_for_char): Adjust for the change
15794 of fontset_font.
15795 (make_fontset_for_ascii_face): Fix setting of the fontset element
15796 for ASCII.
15797 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15798 to get a font name.
15799 (Ffontset_info): Adjust for the change of fontset_font.
15800
15801 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15802
15803 * character.h (LEADING_CODE_LATIN_1_MIN)
15804 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15805
158062008-02-01 Kenichi Handa <handa@m17n.org>
15807
15808 * editfns.c (check_translation): New function.
15809 (Ftranslate_region_internal): Handle M:N mapping.
15810
158112008-02-01 Kenichi Handa <handa@m17n.org>
15812
15813 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15814
158152008-02-01 Kenichi Handa <handa@m17n.org>
15816
15817 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15818 goto invalid_code.
15819 (decode_coding_iso_2022): Fix handling of invalid designation.
15820
15821 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15822 after calling code_conversion_save.
15823
158242008-02-01 Kenichi Handa <handa@m17n.org>
15825
15826 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15827
15828 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15829
15830 * fontset.c: Include "intervals.h".
15831 (fontset_face): Fix comparing of Lisp_Objects.
15832 (free_face_fontset, new_fontset_from_font_name): Fix
15833 Lisp_Object/int mixup.
15834
15835 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15836
15837 * coding.c: Add many prototypes for static functions.
15838 (get_translation_table): Allow max_lookup to be NULL.
15839 (decode_coding, Ffind_coding_systems_region_internal)
15840 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15841 get_translation_table with max_lookup NULL.
15842
158432008-02-01 Kenichi Handa <handa@m17n.org>
15844
15845 * coding.c (get_translation_table): Declare it as Lisp_Object.
15846 (LOOKUP_TRANSLATION_TABLE): New macro.
15847 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15848 instead of CHAR_TABLE_REF.
15849
158502008-02-01 Kenichi Handa <handa@m17n.org>
15851
15852 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15853 annotation data format.
15854 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15855 Change arguments FROM and TO to single argument NCHARS. Change caller.
15856 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15857 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15858 (decode_coding_ccl, decode_coding_charset): Pay attention to
15859 coding->charbuf_used.
15860 (get_translation): New function.
15861 (produce_chars): New arguments translation_table and last_block.
15862 Translate characters here. Return number of carryover chars.
15863 Change caller.
15864 (produce_composition): New argument pos. Change caller.
15865 Adjust for the change of annotation data format.
15866 (produce_charset, produce_annotation): Likewise.
15867 (decode_coding, encode_coding): Don't call translate_chars.
15868 (consume_chars): New arg translation_table. Change caller.
15869 (translate_chars): Delete.
15870 (syms_of_coding): Make translation-table's number of extra slots 2.
15871
158722008-02-01 Kenichi Handa <handa@m17n.org>
15873
15874 * search.c (simple_search): Fix setting this_pos_byte in backward
15875 search.
15876
15877 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15878 byte sequence.
15879 (detect_coding_ccl): Fix setting of the variable valids.
15880
158812008-02-01 Kenichi Handa <handa@m17n.org>
15882
15883 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15884
15885 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15886
15887 * editfns.c (Ftranslate_region_internal): Rename from
15888 Ftranslate_region. Accept a char-table in TABLE.
15889 (syms_of_editfns): Defsubr Stranslate_region_internal.
15890
15891 * xfaces.c (set_lface_from_font_name): If a font is specified for
15892 a frame, generate a fontset from the font.
15893 (build_scalable_font_name): If the scalable font is requested for
15894 a specific size, don't change that size.
15895 (try_font_list): Try a scalable font also in the case that a
15896 pattern string is specified.
15897
158982008-02-01 Kenichi Handa <handa@m17n.org>
15899
15900 * xfaces.c (Fface_font): New optional arg CHARACTER.
15901
159022008-02-01 Kenichi Handa <handa@m17n.org>
15903
15904 * charset.h (CHARSET_OFFSET): New macro.
15905
159062008-02-01 Kenichi Handa <handa@m17n.org>
15907
15908 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15909
15910 * fontset.c (fontset_face): Handle the case that repertory is a
15911 char-table.
15912 (find_font_encoding): Return nil for unknown encoding.
15913 (Fset_fontset_font): Ignore a font of unknown encoding.
15914
159152008-02-01 Kenichi Handa <handa@m17n.org>
15916
15917 * keymap.c (describe_vector): Handle default value of a char table.
15918
15919 * fontset.c (fontset_face): Handle fallback fonts correctly.
15920 (Ffontset_info): Return infomation about fallback fonts.
15921
159222008-02-01 Kenichi Handa <handa@m17n.org>
15923
15924 * fontset.c (FONTSET_DEFAULT): New macro.
15925 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15926 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15927 the case that it is nil.
15928 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15929 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15930
15931 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15932 subset or superset.
15933
159342008-02-01 Kenichi Handa <handa@m17n.org>
15935
15936 * emacs.c (main): Call init_charset after syms_of_XXX.
15937
15938 * charset.c (Vcharset_map_directory): Delete.
15939 (Vcharset_map_path): New variable.
15940 (load_charset_map_from_file): Use Vcharset_map_path instead.
15941 (init_charset): Initialize Vcharset_map_path.
15942 (syms_of_charset): Delete declaration of "charset-map-directory",
15943 add declaration of "charset-map-path".
15944
159452008-02-01 Kenichi Handa <handa@m17n.org>
15946
15947 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15948 ASCII only string.
15949
15950 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15951
15952 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15953 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15954
159552008-02-01 Kenichi Handa <handa@m17n.org>
15956
15957 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15958
15959 * coding.c (QCmnemonic, QCdefalut_char)
15960 (QCdecode_translation_table, QCencode_translation_table)
15961 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15962 (get_translation_table): Return a list of translation tables if
15963 necessary.
15964 (decode_coding): Call get_translation_table with ENCODEP 0.
15965 (char_encodable_p): If translation_table is non-nil, always call
15966 translate_char.
15967 (Fdefine_coding_system_internal): Accept list of translation
15968 tables as :encode-translation-table and :decode-translation-table.
15969 (Fcoding_system_put): New function.
15970 (syms_of_coding): Declare new symbols. Defsubr
15971 Scoding_system_put.
15972 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15973 typically JISX0212.
15974
15975 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15976 when the charset is superset type.
15977
15978 * character.c (translate_char): Accept list of translation tables.
15979
159802008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15983 (CODING_ATTR_TRANS_TBL): New macro.
15984
15985 * coding.c (get_translation_table): New function.
15986 (translate_chars): Fix the bug of skipping annotation data.
15987 (decode_coding, encode_coding): Utilize get_translation_table.
15988 (char_encodable_p, Funencodable_char_position): Translate char if
15989 necessary.
15990 (Ffind_coding_systems_region_internal)
15991 (Fcheck_coding_systems_region): Setup translation table for encode
15992 in a coding system attribute vector in advance.
15993 (Fdefine_coding_system_internal): Allow a symbol as translation
15994 table. For shift-jis type coding system, allow 4th charset.
15995
159962008-02-01 Kenichi Handa <handa@m17n.org>
15997
15998 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15999
16000 * xdisp.c (get_next_display_element): Pass -1 as POS to
16001 FACE_FOR_CHAR if displaying a C-string.
16002
160032008-02-01 Kenichi Handa <handa@m17n.org>
16004
16005 * composite.c (get_composition_id): Handle xoff and yoff in a
16006 composition rule.
16007
16008 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16009 (struct composition): New member lbearing and rbearing.
16010
16011 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16012 (x_get_glyph_overhangs): Handle a composition glyph.
16013 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16014
16015 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16016 composition glyph.
16017
160182008-02-01 Kenichi Handa <handa@m17n.org>
16019
16020 * print.c: Include charset.h.
16021 (Vprint_charset_text_property): New variable.
16022 (Qdefault): Extern it.
16023 (PRINT_STRING_NON_CHARSET_FOUND)
16024 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16025 (print_check_string_result): New variable.
16026 (print_check_string_charset_prop): New function.
16027 (print_prune_charset_plist): New variable.
16028 (print_prune_string_charset): New function.
16029 (print_object): Call print_prune_string_charset if
16030 Vprint_charset_text_property is not t.
16031 (print_interval): Print nothing if interval->plist is nil.
16032 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16033 variable. Init and staticpro print_prune_charset_plist.
16034
160352008-02-01 Kenichi Handa <handa@m17n.org>
16036
16037 * fontset.c (new_fontset_from_font_name): Use the specified font
16038 for all characters in the new fontset.
16039
16040 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16041 OBJECT args.
16042
16043 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16044 OBJECT args for composition too.
16045
16046 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16047 OBJECT args.
16048
160492008-02-01 Kenichi Handa <handa@m17n.org>
16050
16051 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16052
16053 * fontset.c (reorder_font_vector): Adjust for the change of
16054 FONT_DEF format.
16055 (fontset_face): New arg id. Change caller.
16056 (face_for_char): New args pos and object.
16057 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16058 (fs_query_fontset): Check NAME by Fassoc too.
16059 (Fset_fontset_font): Allow non-XLFD font name.
16060 (Ffontset_info): Adjust for the change of FONT_DEF format.
16061
16062 * fontset.h (face_for_char): Adjust prototype.
16063
16064 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16065 (append_space, extend_face_to_end_of_line)
16066 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16067 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16068
16069 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16070 POS and OBJECT args.
16071
16072 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16073 POS and OBJECT args.
16074
160752008-02-01 Jason Rumney <jasonr@gnu.org>
16076
16077 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16078 of GlobalAlloc'ed memory.
16079
160802008-02-01 Kenichi Handa <handa@m17n.org>
16081
16082 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16083
16084 * charset.h (charset_table_used): Delete extern.
16085
16086 * charset.c (charset_table_used): Make it static.
16087 (map_charset_chars): Fix args to c_function with.
16088
16089 * chartab.c (map_sub_char_table_for_charset): Fix args to
16090 c_function with.
16091
16092 * coding.h (enum coding_result_code): Delete
16093 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16094
16095 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16096 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16097 (Vlast_code_conversion_error): New variables.
16098 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16099 (ONE_MORE_BYTE): Record error if any instead of signaling an
16100 error. If non-ASCII multibyte char is found, return the negative
16101 value of the code. All callers changed to check it.
16102 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16103 (record_conversion_result): New function. Change all codes setting
16104 coding->result to call this function.
16105 (detect_coding_utf_8, decode_coding_utf_8)
16106 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16107 Don't use the local variable incomplete.
16108 (emacs_mule_char): Change the second arg to `const'.
16109 (decode_coding): Fix of flushing out unprocessed data.
16110 (make_conversion_work_buffer): Fix making of a work buffer.
16111 (decode_coding_object): Return coding->dst_object.
16112
16113 * fontset.c (set_fontset_font): Fix args.
16114
16115 * lisp.h (CHARACTERBITS): Define as 22.
16116
16117 * process.c (send_process): Be sure to set coding->src_multibyte.
16118
16119 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16120
161212008-02-01 Kenichi Handa <handa@m17n.org>
16122
16123 * xdisp.c (handle_auto_composed_prop): Give limit to
16124 Fnext_single_char_property_change.
16125
161262008-02-01 Kenichi Handa <handa@m17n.org>
16127
16128 * composite.c (syms_of_composite): Don't make the composition hash
16129 table weak.
16130
16131 * fontset.c (Fset_fontset_font): Fix docstring.
16132
16133 * lisp.h (detect_coding_system): Adjust prototype.
16134
16135 * fileio.c (kill_workbuf_unwind): Delete this function.
16136 (Finsert_file_contents): Adjust the call of detect_coding_system.
16137 Get conversion_buffer by code_conversion_save. Use the macro
16138 CODING_MAY_REQUIRE_DECODING. After decoding, update
16139 coding_system.
16140
16141 * coding.h (make_conversion_work_buffer): Delete extern.
16142 (code_conversion_save): Extern it.
16143
16144 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16145 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16146 (decode_coding_utf_8): Don't do eol converion.
16147 (detect_coding_utf_16): Check coding->src_chars, not
16148 coding->src_bytes. Add heuristics for those that have no signature.
16149 (decode_coding_emacs_mule, decode_coding_iso_2022)
16150 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16151 Don't do eol converion.
16152 (adjust_coding_eol_type): Return a new coding system.
16153 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16154 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16155 each change.
16156 (decode_coding): Pay attention to undo_list. Do eol conversion for
16157 all types of coding-systems (if necessary).
16158 (Vcode_conversion_work_buf_list): Delete it.
16159 (Vcode_conversion_reused_workbuf): Rename from
16160 Vcode_conversion_reused_work_buf.
16161 (Vcode_conversion_workbuf_name): New variable.
16162 (reused_workbuf_in_use): New variable.
16163 (make_conversion_work_buffer): Delete the arg DEPTH.
16164 (code_conversion_restore): Change argument to cons.
16165 (code_conversion_save): Delete the argument BUFFER. Change callers.
16166 (detect_coding_system): New argument src_chars. Change callers.
16167 Fix for utf-16 detection.
16168 (init_coding_once): Don't use ISO_carriage_return.
16169 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16170 reused_workbuf_in_use.
16171
161722008-02-01 Kenichi Handa <handa@m17n.org>
16173
16174 * keymap.c (store_in_keymap): Pay attention to the case that idx
16175 is a cons specifying a character range.
16176
161772008-02-01 Kenichi Handa <handa@m17n.org>
16178
16179 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16180 HANDLED_RECOMPUTE_PROPS.
16181
16182 * coding.c (Fdefine_coding_system_internal): Fix checking of
16183 ascii compatibility.
16184
161852008-02-01 Kenichi Handa <handa@m17n.org>
16186
16187 * charset.c (find_charsets_in_text): Delete unused locale variable.
16188 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16189
16190 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16191 Resync charset_list to Vemacs_mule_charset_list.
16192
16193 * keymap.c (store_in_keymap): Pay attention to the case that idx
16194 is a cons specifying a character range.
16195
161962008-02-01 Kenichi Handa <handa@m17n.org>
16197
16198 * composite.c (update_compositions): Bind inhibit-read-only, etc
16199 to t before calling remove-list-of-text-properties.
16200
16201 * print.c (print_object): Always print ASCII chars as is.
16202
162032008-02-01 Kenichi Handa <handa@m17n.org>
16204
16205 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16206
16207 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16208 is a char table.
16209
162102008-02-01 Kenichi Handa <handa@m17n.org>
16211
16212 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16213
162142008-02-01 Kenichi Handa <handa@m17n.org>
16215
16216 * xfaces.c (set_lface_from_font_name): Fix for the case that
16217 FONTNAME is not fontset name.
16218
162192008-02-01 Kenichi Handa <handa@m17n.org>
16220
16221 * fns.c (base64_encode_1): Fix previous change.
16222
162232008-02-01 Kenichi Handa <handa@m17n.org>
16224
16225 * fontset.c (set_fontset_font): New function.
16226 (Fset_fontset_font): If a font is specified for a charset, use
16227 map_charset_chars to store the font spec in a fontset.
16228
162292008-02-01 Kenichi Handa <handa@m17n.org>
16230
16231 * fontset.c (fontset_face): Create a fallback fontset on demand.
16232 (make_fontset): Don't create a fallback fontset here.
16233 (free_face_fontset): Free a fallback fontset (if any) too.
16234 (n_auto_fontsets): Delete this variable.
16235 (auto_fontset_alist): New variable.
16236 (new_fontset_from_font_name): Check auto_fontset_alist.
16237 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16238 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16239 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16240 Defsubr Sfontset_list_all.
16241
162422008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16245
162462008-02-01 Kenichi Handa <handa@m17n.org>
16247
16248 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16249
162502008-02-01 Kenichi Handa <handa@m17n.org>
16251
16252 * editfns.c (Fgoto_char): Fix docstring.
16253
162542008-02-01 Kenichi Handa <handa@m17n.org>
16255
16256 * insdel.c (insert_from_gap): Adjust intervals correctly.
16257
162582008-02-01 Jason Rumney <jasonr@gnu.org>
16259
16260 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16261 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16262 (w32_initialize): Try to load it.
16263 (x_get_font_repertory): Use it if available.
16264 (w32_encode_char): Add shortcut for unicode output.
16265
16266 * w32fns.c (w32_load_system_font): Default charset to -1.
16267 (x_to_w32_charset): Match all fonts for unicode.
16268 (w32_to_x_charset): New parameter matching. Don't return partial
16269 or wildcard charsets.
16270 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16271 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16272 (w32_to_x_font): Match charset to real charset.
16273 (enum_font_cb2): Always list unicode versions.
16274
16275 * makefile.w32-in (temacs): Increase EMHEAP.
16276
162772008-02-01 Jason Rumney <jasonr@gnu.org>
16278
16279 * w32term.c (w32_encode_char): New charset parameter.
16280 font_info.encoding becomes encoding_type.
16281 (x_get_font_repertory): New function. Warning: stub only!
16282 (x_new_font): Return quickly if font already set.
16283 (x_new_fontset): fontsetname parameter is Lisp_Object.
16284 Use new fs_query_fontset. Try new_fontset_from_font_name.
16285 Use fontset_name for return value.
16286
16287 * w32term.h: Declare x_get_font_repertory.
16288
16289 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16290 place of find_charset_in_text. Use encode_coding_object in place
16291 of encode_coding.
16292 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16293 decode_coding.
16294
16295 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16296 of x_new_fontset.
16297 (w32_load_system_font): Initialize charset as unicode.
16298 font_info.encoding becomes encoding_type.
16299 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16300 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16301 (syms_of_w32fns): Set get_font_repertory_func.
16302
16303 * w32console.c: Include character.h. Use terminal_encode_buffer
16304 from term.c.
16305 (write_glyphs): Use new version of encode_terminal_code. Use
16306 encode_coding_object in place of encode_coding.
16307
16308 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16309 encoding becomes encoding_type.
16310
16311 * term.c (terminal_encode_buffer): Make externally visible.
16312
16313 * makefile.w32-in: Add character.h dependancies.
16314 (character.o, chartab.o): New targets.
16315
163162008-02-01 Kenichi Handa <handa@m17n.org>
16317
16318 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16319 CODING_ID_EOL_TYPE.
16320
163212008-02-01 Andreas Schwab <schwab@suse.de>
16322
16323 * coding.c (produce_chars): Revert last change.
16324
163252008-02-01 Kenichi Handa <handa@m17n.org>
16326
16327 * charset.h (charset_unicode): Extern it.
16328
16329 * charset.c (string_xstring_p): Check by (C >= 0x100).
16330 (find_charsets_in_text): Change format of the arc CHARSETS. New
16331 arg MULTIBYTE.
16332 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16333 change of find_charsets_in_text.
16334 (Fsplit_char): Fix doc. Never return unknown.
16335
16336 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16337
16338 * coding.c (Fdefine_coding_system_alias): Update
16339 Vcoding_system_list.
16340
16341 * fontset.c (load_font_get_repertory): Pay attention to the case
16342 that ENCODING of a font is specified by a char-table.
16343
16344 * xterm.c (x_get_font_repertory): Handle the case that the
16345 encoding of font is other than Unicode.
16346
163472008-02-01 Kenichi Handa <handa@m17n.org>
16348
16349 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16350 if a character is encodable by the terminal coding system. If
16351 not, produces proper number of `?'s. Update
16352 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16353 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16354
163552008-02-01 Kenichi Handa <handa@m17n.org>
16356
16357 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16358 variables.
16359 (encode_terminal_code): Change argument. Encode multiple
16360 characters at once. Store the result of encoding in
16361 terminal_encode_buffer.
16362 (write_glyphs, insert_glyphs): Adjust for the change of
16363 encode_terminal_code.
16364 (term_init): Initialize terminal_encode_buffer and
16365 terminal_encode_buf_size.
16366
16367 * coding.c (consume_chars): If coding->src_object is nil, don't
16368 check annotation.
16369
163702008-02-01 Kenichi Handa <handa@m17n.org>
16371
16372 * character.c (char_string): Use ASCII_CHAR_P instead of
16373 SINGLE_BYTE_CHAR_P.
16374
163752008-02-01 Kenichi Handa <handa@m17n.org>
16376
16377 * xdisp.c (handle_auto_composed_prop): Check if the last
16378 characters of auto-composed region is newly composed with the
16379 following characters.
16380 (handle_composition_prop): Fix checking of point being inside
16381 composition.
16382
163832008-02-01 Kenichi Handa <handa@m17n.org>
16384
16385 * fns.c (concat): Don't change multibyteness of the result by
16386 concatenating an 8-bit character.
16387
16388 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16389 multibyteness of the result when newelt is an 8-bit character.
16390
163912008-02-01 Dave Love <fx@gnu.org>
16392
16393 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16394 EMACS_INT.
16395
16396 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16397
16398 * xfaces.c (face_numeric_value): Declare dim size_t.
16399 (Finternal_lisp_face_equal_p): Remove unused f.
16400
16401 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16402 (MATRIX_ROW): Remove unused vars.
16403 (draw_glyphs, x_insert_glyphs, fast_find_position)
16404 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16405 byte/char counts.
16406
16407 * regex.c (regex_compile): Remove unused var.
16408
16409 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16410
16411 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16412 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16413
16414 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16415
16416 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16417
16418 * fileio.c (Fwrite_region): Remove unused var.
16419
16420 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16421 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16422
16423 * composite.c (Fremove_list_of_text_properties): Declare.
16424
16425 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16426 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16427 (coding_inherit_eol_type): Remove unused attrs.
16428 (detect_coding): Cast arg of detect_eol.
16429
16430 * charset.c (syms_of_charset): Remove unused var p.
16431 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16432 byte/char counts.
16433
16434 * casetab.c (set_case_table): Remove unused var.
16435
16436 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16437 unused vars.
16438
164392008-02-01 Dave Love <fx@gnu.org>
16440
16441 * xterm.c (x_bitmap_mask): Declare.
16442
164432008-02-01 Dave Love <fx@gnu.org>
16444
16445 * xterm.c (x_term_init): Fix type error.
16446
16447 * lisp.h: Add Funibyte_char_to_multibyte.
16448
16449 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16450 (Fset_coding_system_priority): Doc fix.
16451
16452 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16453
16454 * indent.c (check_composition): Make start and end EMACS_INT.
16455
16456 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16457
16458 * xdisp.c (handle_composition_prop, check_point_in_composition):
16459 Make buffer positions EMACS_INT.
16460
16461 * composite.c (find_composition, run_composition_function)
16462 (update_compositions, Ffind_composition_internal): Make buffer
16463 positions EMACS_INT.
16464
16465 * composite.h (find_composition, update_compositions): Make
16466 position args EMACS_INT.
16467
16468 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16469
16470 * intervals.c (get_property_and_range):
16471 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16472
16473 * unexalpha.c: Don't include varargs.h.
16474
164752008-02-01 Dave Love <fx@gnu.org>
16476
16477 * coding.h (ENCODE_UTF_8): New.
16478
16479 * Makefile.in (gtkutil.o): Depend on coding.h.
16480
16481 * coding.c (Fset_coding_system_priority): Doc fix.
16482
164832008-02-01 Kenichi Handa <handa@m17n.org>
16484
16485 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16486 the case of auto saving.
16487
164882008-02-01 Andreas Schwab <schwab@suse.de>
16489
16490 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16491 `range' from GC.
16492
164932008-02-01 Kenichi Handa <handa@m17n.org>
16494
16495 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16496
164972008-02-01 Kenichi Handa <handa@m17n.org>
16498
16499 * fileio.c (choose_write_coding_system): Return a decided coding system.
16500 (Fwrite_region): Set Vlast_coding_system_used to the return value
16501 of choose_write_coding_system.
16502
165032008-02-01 Kenichi Handa <handa@m17n.org>
16504
16505 * charset.c (Fset_charset_priority): Pay attention to duplicated
16506 arguments.
16507
16508 * coding.c (QCcategory): New variable.
16509 (syms_of_coding): Defsym it. Set all elements of
16510 Vcoding_category_table and their symbol values.
16511 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16512 coding-category-XXX, and coding-category-list.
16513 (Fdefine_coding_system_internal): Add category in the plist.
16514
165152008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * callproc.c (Fcall_process): Handle carryover correctly.
16518
16519 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16520 (raw_text_coding_system): Check NILP (coding_system).
16521 (coding_inherit_eol_type): Check NILP (coding_system) and
16522 NILP (parent).
16523 (consume_chars): Fix for the case of raw-text.
16524
16525 * process.c (read_process_output): Handle carryover correctly.
16526
165272008-02-01 Dave Love <fx@gnu.org>
16528
16529 * regex.c (re_search_2): Fix last change.
16530
165312008-02-01 Kenichi Handa <handa@m17n.org>
16532
16533 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16534 target_multibyte. Even in a unibyte case, return a converted
16535 multibyte char.
16536 (GET_CHAR_AFTER): New macro.
16537 (PATFETCH): Translate via multibyte char.
16538 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16539 (SETUP_MULTIBYTE_RANGE): New macro.
16540 (regex_compile): Setup compiled code so that its multibyteness
16541 matches that of a target. Fix the handling of "[X-YZ]" using
16542 SETUP_MULTIBYTE_RANGE.
16543 (analyse_first) <charset>: For filling fastmap for all multibyte
16544 characters, don't check by BASE_LEADING_CODE_P.
16545 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16546 the same as RE_MULTIBYTE_P (bufp) now.
16547 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16548 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16549 (TRANSLATE_VIA_MULTIBYTE): New macro.
16550 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16551 It is the same as RE_MULTIBYTE_P (bufp) now.
16552 <exactn>: Translate via multibyte.
16553 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16554 translate it.
16555 <charset, charset_not>: Fetch a character by
16556 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16557 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16558 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16559 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16560 by GET_CHAR_AFTER.
16561 (bcmp_translate): Likewise.
16562
16563 * search.c (compile_pattern): Check the member target_multibyte,
16564 not the member multibyte of buf.
16565
16566 * lread.c (read1): While reading a string, set force_singlebyte
16567 and force_multibyte correctly.
16568
16569 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16570 up of unibyte_to_multibyte_table.
16571
165722008-02-01 Kenichi Handa <handa@m17n.org>
16573
16574 * coding.c (setup_coding_system): If coding has
16575 post-read-conversion or pre-write-conversion, set
16576 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16577 respectively.
16578 (decode_coding_gap): Run post-read-conversion if any.
16579
16580 * fileio.c (Finsert_file_contents): Even if we read into a
16581 unibyte buffer, check if we must decode the result or not.
16582
165832008-02-01 Kenichi Handa <handa@m17n.org>
16584
16585 * coding.c (make_conversion_work_buffer): Change the work buffer
16586 name to the same one as that of Emacs 21.
16587
165882008-02-01 Kenichi Handa <handa@m17n.org>
16589
16590 * coding.h (make_conversion_work_buffer): Adjust prototype.
16591 (code_conversion_restore): Don't extern it.
16592
16593 * coding.c (detected_mask): Delete unused variable.
16594 (decode_coding_iso_2022): Pay attention to the byte sequence of
16595 CTEXT extended segment, and retain those bytes as is.
16596 (decode_coding_ccl): Delete unused variable `valids'.
16597 (setup_coding_system): Delete unused variable `category'.
16598 (consume_chars): Delete unused variable `category'. Make it work
16599 for non-multibyte case.
16600 (make_conversion_work_buffer): Change argument.
16601 (saved_coding): Delete unused variable.
16602 (code_conversion_restore): Don't check saved_coding->destination.
16603 (code_conversion_save): New function.
16604 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16605 instead of record_unwind_protect.
16606 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16607 (detect_coding_system): Delete unused variable `mask'.
16608 (Fdefine_coding_system_internal): Delete unused variable id.
16609
16610 * fileio.c (kill_workbuf_unwind): New function.
16611 (Finsert_file_contents): On replacing, call
16612 make_conversion_work_buffer with correct args, and call
16613 record_unwind_protect with the first arg kill_workbuf_unwind.
16614
16615 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16616
166172008-02-01 Kenichi Handa <handa@m17n.org>
16618
16619 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16620 (fontset_add): Fix for the case that TO is less than TO1.
16621 (Ffontset_info): Don't use fallback fontset on checking the
16622 default fontset.
16623 (dump_fontset): New function for debugging.
16624
16625 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16626 coding_type is Qcharset.
16627
166282008-02-01 Kenichi Handa <handa@m17n.org>
16629
16630 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16631 (map_char_table): Don't inherit the value from the parent on
16632 initializing VAL. Adjust for the above change.
16633
166342008-02-01 Kenichi Handa <handa@m17n.org>
16635
16636 * coding.c (Qsignature, Qendian): Delete these variables.
16637 (syms_of_coding): Don't initialize them.
16638 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16639 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16640 detect_info->found.
16641 (decode_coding_utf_16): Don't detect BOM here.
16642 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16643 is NOT utf_16_without_bom.
16644 (setup_coding_system): For a coding system of type utf-16, check
16645 if the attribute :endian is Qbig or not (not nil or not), and set
16646 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16647 (detect_coding): If coding type is utf-16 and BOM detection is
16648 required, detect it.
16649 (Fdefine_coding_system_internal): For a coding system of type
16650 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16651
166522008-02-01 Kenichi Handa <handa@m17n.org>
16653
16654 * coding.c (coding_set_source): Fix for the case that the current
16655 buffer is different from coding->src_object.
16656 (decode_coding_object): Don't use the conversion work buffer if
16657 DST_OBJECT is a buffer.
16658
166592008-02-01 Dave Love <fx@gnu.org>
16660
16661 * lread.c (read_emacs_mule_char) [len==2]: Index
16662 emacs_mule_charset correctly.
16663
166642008-02-01 Dave Love <fx@gnu.org>
16665
16666 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16667 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16668 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16669 treated specially.)
16670 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16671 (detected_mask): Remove Big5 bits.
16672
166732008-02-01 Kenichi Handa <handa@m17n.org>
16674
16675 The following changes are to make the font rescaling facility
16676 compatible with Emacs 21.
16677
16678 * xfaces.c (Vface_font_rescale_alist): Rename from
16679 Vface_resizing_fonts.
16680 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16681 (font_rescale_ratio): Rename from font_resizing_ratio.
16682 (split_font_name): Set font->rescale_ratio.
16683 (better_font_p): Pay attention to font->rescale_ratio.
16684 (build_scalable_font_name): Likewise. Change RESX, and RESY
16685 fields.
16686 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16687
166882008-02-01 Kenichi Handa <handa@m17n.org>
16689
16690 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16691 (Qutf_16_le): Remove these variables.
16692 (syms_of_coding): Don't DEFSYM them.
16693 (decode_coding_utf_16): Fix handling of BOM.
16694 (encode_coding_utf_16): Fix handling of BOM.
16695
166962008-02-01 Kenichi Handa <handa@m17n.org>
16697
16698 * fileio.c (Finsert_file_contents): On replacing, before decoding
16699 the file into the work buffer, set point of the work buffer to the end.
16700
167012008-02-01 Dave Love <fx@gnu.org>
16702
16703 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16704
167052008-02-01 Dave Love <fx@gnu.org>
16706
16707 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16708 and fix C types.
16709
167102008-02-01 Kenichi Handa <handa@m17n.org>
16711
16712 * xdisp.c (SKIP_GLYPHS): New macro.
16713 (set_cursor_from_row): Pay attention to string display properties.
16714
16715 * category.c (copy_category_entry): Fix for the case that RANGE
16716 is an integer.
16717
16718 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16719
16720 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16721
167222008-02-01 Kenichi Handa <handa@m17n.org>
16723
16724 * charset.c (Fcharset_id_internal): New function.
16725 (syms_of_charset): Defsubr it.
16726
16727 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16728 with the last arg charset_list acquired from coding.
16729 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16730 the attribute coding_attr_ccl_valids.
16731
16732 * coding.h (enum define_coding_ccl_arg_index): Set the first
16733 member coding_arg_ccl_decoder to coding_arg_max.
16734
16735 * ccl.h (ccl_driver): Adjust prototype.
16736
16737 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16738 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16739 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16740 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16741 last arg Qnil.
16742
167432008-02-01 Kenichi Handa <handa@m17n.org>
16744
16745 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16746 call encode_char.
16747
16748 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16749
167502008-02-01 Dave Love <fx@gnu.org>
16751
16752 * composite.c (syms_of_composite): Make composition_hash_table weak.
16753
167542008-02-01 Kenichi Handa <handa@m17n.org>
16755
16756 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16757 (font_name_registry): Don't extern them.
16758 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16759
16760 * fontset.h (Qfontset): Don't extern it.
16761 (new_fontset_from_font_name): Extern it.
16762
16763 * fontset.c: Give 8 extra slots to fontset objects.
16764 (Qfontset_info): New variable.
16765 (syms_of_fontset): Defsym it.
16766 (FONTSET_FALLBACK): New macro.
16767 (fontset_face): Try also the default fontset.
16768 (make_fontset): Realize a fallback fontset from the default fontset.
16769 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16770 using split_font_name_into_vector and build_font_name_from_vector.
16771 (Fset_fontset_font): Access the elements of font_spec by enum
16772 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16773 name by using split_font_name_into_vector.
16774 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16775 generate a proper font name from the fontset name. Update
16776 Vfontset_alias_alist.
16777 (n_auto_fontsets): New variable.
16778 (new_fontset_from_font_name): New function.
16779 (Ffont_info): Store the information about fonts generated from the
16780 default fontset in the first extra slot of the returned char-table.
16781
16782 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16783 (font_name_registry): Delete function.
16784 (split_font_name_into_vector): New function.
16785 (build_font_name_from_vector): New function.
16786 (font_list): The argument REGISTRY is now a list of registry names.
16787 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16788 specifies an explicit font name, return the name as is. Make a
16789 list of registy names.
16790
16791 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16792 of x_new_fontset.
16793 (Fx_create_frame): Don't call x_new_fontset here. Just use
16794 x_list_fonts to check the existence of fonts.
16795
16796 * xterm.h (x_new_fontset): Adjust prototype.
16797
16798 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16799 string. Use new_fontset_from_font_name to create a fontset from a
16800 font name.
16801
168022008-02-01 Kenichi Handa <handa@m17n.org>
16803
16804 * syntax.c (Vfind_word_boundary_function_table): New name for
16805 Vnext_word_boundary_function_table.
16806 (find-word-boundary-function-table): New name for
16807 next-word-boundary-function-table.
16808
168092008-02-01 Dave Love <fx@gnu.org>
16810
16811 * Makefile.in: Fix some dependencies.
16812
16813 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16814 set it to nil before returning.
16815
16816 * composite.c (update_compositions): Fix type error.
16817
16818 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16819
168202008-02-01 Kenichi Handa <handa@m17n.org>
16821
16822 * xterm.c (x_new_font): Optimize for the case that the font is
16823 already set for the frame.
16824
168252008-02-01 Kenichi Handa <handa@m17n.org>
16826
16827 * chartab.c (char_table_ascii): Check if the char table contents
16828 is sub-char-table or not.
16829 (char_table_set, char_table_set_range): Fix argument to
16830 char_table_ascii.
16831
16832 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16833 (detect_coding_utf_8, detect_coding_utf_16)
16834 (detect_coding_emacs_mule, detect_coding_iso_2022)
16835 (detect_coding_sjis, detect_coding_big5)
16836 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16837 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16838 sequence is valid in this coding system. Change callers.
16839 (MAX_ANNOTATION_LENGTH): New macro.
16840 (ADD_ANNOTATION_DATA): New macro.
16841 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16842 ADD_ANNOTATION_DATA. Change the format of annotation data.
16843 (ADD_CHARSET_DATA): New macro.
16844 (emacs_mule_char): New argument ID. Change callers.
16845 (decode_coding_emacs_mule, decode_coding_iso_2022)
16846 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16847 Produce charset annotation data in coding->charbuf.
16848 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16849 to charset annotation data in coding->charbuf.
16850 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16851 coding->common_flags if the coding system is iso-2022 based and
16852 uses designation.
16853 (produce_composition): Adjust for the new annotation data format.
16854 (produce_charset): New function.
16855 (produce_annotation): Handle charset annotation.
16856 (handle_composition_annotation, handle_charset_annotation): New
16857 functions.
16858 (consume_chars): Handle charset annotation. Utilize the above two
16859 functions.
16860 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16861 buffer, get the deleted text as a string and set
16862 coding->src_object to that string.
16863 (detect_coding, detect_coding_system): Use the new struct
16864 coding_detection_info.
16865
16866 * coding.h (struct coding_detection_info): New structure.
16867 (struct coding_system): Adjust prototype of the member `detector'.
16868 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16869
168702008-02-01 Kenichi Handa <handa@m17n.org>
16871
16872 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16873
168742008-02-01 Dave Love <fx@gnu.org>
16875
16876 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16877 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16878 to new local and nullify apropos_accumulate before returning.
16879 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16880
168812008-02-01 Kenichi Handa <handa@m17n.org>
16882
16883 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16884 correctly.
e3eea1fc 16885
aac0c6e3
MR
168862008-02-01 Dave Love <fx@gnu.org>
16887
16888 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16889
168902008-02-01 Kenichi Handa <handa@m17n.org>
16891
16892 The following changes are to make character composition happen
16893 automatically on displaying.
16894
16895 * Makefile.in (lisp, shortlisp): Add composite.elc.
16896
16897 * composite.h (Qauto_composed, Vauto_composition_function)
16898 (Qauto_composition_function): Extern them.
16899
16900 * composite.c (Vcomposition_function_table)
16901 (Qcomposition_function_table): Delete variables.
16902 (Qauto_composed, Vauto_composition_function)
16903 (Qauto_composition_function): New variables.
16904 (run_composition_function): Don't call
16905 compose-chars-after-function.
16906 (update_compositions): Clear `auto-composed' text property.
16907 (compose_chars_in_text): Delete this function.
16908 (syms_of_composite): Staticpro Qauto_composed and
16909 Qauto_composition_function. Declare Vauto_composition_function as
16910 a Lisp variable.
16911
16912 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16913
16914 * xdisp.c (it_props): Add an entry for Qauto_composed.
16915 (handle_auto_composed_prop): New function.
16916
16917 * xselect.c (selection_data_to_lisp_data): Don't call
16918 compose_chars_in_text.
16919
169202008-02-01 Dave Love <fx@gnu.org>
16921
16922 * keyboard.c (read_char): Modify checking around use of
16923 Vkeyboard_translate_table.
16924
16925 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16926 and fix C types.
16927
169282008-02-01 Kenichi Handa <handa@m17n.org>
16929
16930 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16931 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16932 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16933 the case that the last byte is '\r' correctly.
16934 (decode_coding): Flush out the unprocessed data correctly.
16935 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16936
169372008-02-01 Dave Love <fx@gnu.org>
16938
16939 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16940 Add XK_ISO... case.
16941 (xaw_scroll_callback): Revert last change.
16942
169432008-02-01 Kenichi Handa <handa@m17n.org>
16944
16945 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16946
169472008-02-01 Kenichi Handa <handa@m17n.org>
16948
16949 * xfaces.c (Vface_resizing_fonts): New variable.
16950 (struct font_name): New member `resizing_ratio'.
16951 (font_resizing_ratio): New function.
16952 (split_font_name): Set font->resizing_ratio.
16953 (better_font_p): Pay attention to font->resizing_ratio.
16954 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16955 RESX, and RESY fields.
16956 (try_alternative_families): Try scalable fonts if
16957 Vscalable_fonts_allowed is not Qt.
16958 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16959
169602008-02-01 Dave Love <fx@gnu.org>
16961
16962 * xterm.c (xaw_scroll_callback): Cast correctly.
16963
169642008-02-01 Dave Love <fx@gnu.org>
16965
16966 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16967 (lispy_kana_keys): Comment out.
16968 (make_lispy_event) [XK_kana_A]: Comment out.
16969
16970 * xterm.c (xaw_scroll_callback): Cast call_data.
16971 (XTread_socket): Deal with ASCII keysyms.
16972 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16973
169742008-02-01 Dave Love <fx@gnu.org>
16975
16976 * xterm.c (Vx_keysym_table): New.
16977 (syms_of_xterm): Initialize it.
16978 (XTread_socket): Use it.
16979 From head: Eliminate incorrect optimization that tried to avoid
16980 decoding the output of X*LookupString.
16981 (x_get_font_repertory): Delete charset declaration.
16982
169832008-02-01 Kenichi Handa <handa@m17n.org>
16984
16985 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16986 return 0.
16987 (Fdefine_coding_system_internal): Setup
16988 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16989
169902008-02-01 Dave Love <fx@gnu.org>
16991
16992 * coding.c (Fcheck_coding_system): Doc fix.
16993
16994 * editfns.c (Finsert_byte): Return a proper value.
16995
169962008-02-01 Kenichi Handa <handa@m17n.org>
16997
16998 * coding.c (decode_coding): Fix args to translate_chars. Pay
16999 attention to Vstandard_translation_table_for_decode.
17000 (encode_coding): Fix args to translate_chars. Pay attention to
17001 Vstandard_translation_table_for_encode.
17002
17003 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17004 SINGLE_BYTE_CHAR_P.
17005
17006 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17007 not by SINGLE_BYTE_CHAR_P.
17008
17009 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17010 SINGLE_BYTE_CHAR_P.
17011
17012 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17013 SINGLE_BYTE_CHAR_P.
17014
17015 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17016 by SINGLE_BYTE_CHAR_P.
17017
17018 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17019 SINGLE_BYTE_CHAR_P.
17020
170212008-02-01 Dave Love <fx@gnu.org>
17022
17023 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17024
170252008-02-01 Dave Love <fx@gnu.org>
17026
17027 * fns.c (Flanginfo): Fix typo.
17028
17029 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17030
170312008-02-01 Kenichi Handa <handa@m17n.org>
17032
17033 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17034 (detect_coding_emacs_mule, detect_coding_iso_2022)
17035 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17036 incomplete byte sequence. Don't update *mask when correctly detected.
17037 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17038 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17039 (detect_coding, detect_coding_system): Adjust for the changes above.
17040
170412008-02-01 Kenichi Handa <handa@m17n.org>
17042
17043 * character.c (char_string): Rename from
17044 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17045 (string_char): Rename from string_char.
17046
17047 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17048 if C is greater than MAX_3_BYTE_CHAR.
17049 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17050 string_char instead of string_char_with_unification.
17051
170522008-02-01 Dave Love <fx@gnu.org>
17053
17054 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17055
170562008-02-01 Kenichi Handa <handa@m17n.org>
17057
17058 * keymap.c (push_key_description): Pay attention to force_multibyte.
17059
17060 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17061
170622008-02-01 Dave Love <fx@gnu.org>
17063
17064 * charset.c (define_charset_internal): Rename `supprementary'.
17065
17066 * Makefile.in (lisp, shortlisp): Remove latin-N.
17067
170682008-02-01 Dave Love <fx@gnu.org>
17069
17070 * xfns.c (x_window, x_window): Use use_xim.
17071
17072 * xterm.c (use_xim): Initialize.
17073 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17074 (x_term_init): Maybe set use_xim.
17075
17076 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17077
170782008-02-01 Kenichi Handa <handa@m17n.org>
17079
17080 * search.c (search_buffer): Fix case-fold-search of multibyte
17081 characters.
17082 (boyer_moore): Rename the last argument to char_high_bits.
17083
170842008-02-01 Kenichi Handa <handa@m17n.org>
17085
17086 * xdisp.c (display_string): Fix for the case of zero width glyph.
17087
17088 * xfns.c (x_set_font): Change the error message of the case that
17089 x_new_fontset returns Qt.
17090
17091 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17092 (Finternal_set_lisp_face_attribute): Use signal_error for the
17093 error of invalid fontset.
17094
17095 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17096 fontset, return Qt.
17097
170982008-02-01 Dave Love <fx@gnu.org>
17099
17100 * unexelf.c (unexec): Make .got handling not SGI-specific.
17101
17102 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17103
17104 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17105
17106 * keyboard.c (read_key_sequence): Fix type error.
17107
17108 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17109 type error.
17110
17111 * fontset.c (fontset_add): Return Lisp_Object.
17112
171132008-02-01 Dave Love <fx@gnu.org>
17114
17115 * charset.h (charset_ordered_list_tick): Declare extern.
17116
171172008-02-01 Kenichi Handa <handa@m17n.org>
17118
17119 The following changes (and some of 2008-02-01 changes of mine) are
17120 for handling syntax, category, and case conversion for unibyte
17121 characters by converting them to multibyte on the fly. With these
17122 changes, we don't have to setup syntax and case tables for unibyte
17123 characters in each language environment.
17124
17125 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17126 multibyte if necessary.
17127
17128 * bytecode.c (Fbyte_code): Likewise.
17129
17130 * character.h (LEADING_CODE_LATIN_1_MIN)
17131 (LEADING_CODE_LATIN_1_MAX): New macros.
17132 (unibyte_to_multibyte_table): Extern it.
17133 (unibyte_char_to_multibyte): New macro.
17134 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17135 (CHAR_LEADING_CODE): New macro.
17136 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17137
17138 * character.c (unibyte_to_multibyte_table): New variable.
17139 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17140 (multibyte_char_to_unibyte): If C is an eight-bit character,
17141 convert it to the corresponding byte value.
17142
17143 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17144 not 1, signals an error. Update the elements of
17145 unibyte_to_multibyte_table.
17146 (init_charset_once): Initialize unibyte_to_multibyte_table.
17147 (syms_of_charset): Define the charset `iso-8859-1'.
17148
17149 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17150 as is without converting it to unibyte. In a unibyte buffer,
17151 convert C to multibyte before checking the syntax.
17152
17153 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17154
17155 * minibuf.c (Fminibuffer_complete_word): Use the macro
17156 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17157
17158 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17159
17160 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17161 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17162 that is zero, convert an eight-bit char to multibyte.
17163 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17164 non-emacs case.
17165 (PATFETCH): Convert an eight-bit char to multibyte.
17166 (HANDLE_UNIBYTE_RANGE): New macro.
17167 (regex_compile): Setup the compiled pattern for multibyte chars
17168 even if the given regex string is unibyte. Use PATFETCH_RAW
17169 instead of PATFETCH in many places. To handle `charset'
17170 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17171 only for ASCII chars.
17172 (analyse_first) <exactn>: Simplify because the compiled pattern
17173 is multibyte.
17174 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17175 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17176 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17177 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17178 multibyte always 1.
17179 (re_search_2): In emacs, set the locale variable multibyte to 1,
17180 otherwise to 0. New local variable target_multibyte. Check it
17181 to decide the multibyteness of STR1 and STR2. If
17182 target_multibyte is zero, convert unibyte chars to multibyte
17183 before translating and checking fastmap.
17184 (TARGET_CHAR_AND_LENGTH): New macro.
17185 (re_match_2_internal): In emacs, set the locale variable multibyte
17186 to 1, otherwise to 0. New local variable target_multibyte. Check
17187 it to decide the multibyteness of STR1 and STR2. Use
17188 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17189 <charset, charset_not>: If multibyte is nonzero, check fastmap
17190 only for ASCII chars. Call bcmp_translate with
17191 target_multibyte, not with multibyte.
17192 <begline>: Declare the local variable C as `unsigned'.
17193 (bcmp_translate): Change the last arg name to target_multibyte.
17194
17195 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17196 the regexp pattern and the matching target. Set cp->buf.multibyte
17197 to the multibyteness of the regexp pattern. Set
17198 cp->but.target_multibyte to the multibyteness of the matching target.
17199 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17200 FETCH_STRING_CHAR_ADVANCE.
17201 (Freplace_match): Convert unibyte chars to multibyte.
17202
17203 * syntax.c (char_quoted, back_comment, scan_words)
17204 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17205 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17206 unibyte chars to multibyte.
17207 (skip_chars): Delete the arg syntaxp, and move the code for
17208 handling syntaxes to skip_syntaxes. Change callers.
17209 Fix the case that the multibyteness of STRING and the current
17210 buffer doesn't match.
17211 (skip_syntaxes): New function.
17212 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17213 SINGLE_BYTE_CHAR_P.
17214
172152008-02-01 Kenichi Handa <handa@m17n.org>
17216
17217 * xfaces.c (QCfontset): New variable.
17218 (LFACE_FONTSET): New macro.
17219 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17220 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17221 (Finternal_set_lisp_face_attribute)
17222 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17223 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17224 check also LFACE_FONTSET_INDEX.
17225 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17226 attrs[LFACE_FONT_INDEX].
17227 (syms_of_xfaces): Intern and staticpro QCfontset.
17228
17229 * dispextern.h (enum lface_attribute_index): New member
17230 LFACE_FONTSET_INDEX.
17231
17232 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17233
172342008-02-01 Kenichi Handa <handa@m17n.org>
17235
17236 * coding.c (coding_set_destination): Fix coding->destination for
17237 the case converting a region.
17238 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17239 (encode_coding_object): Fix coding->dst_pos and
17240 coding->dst_pos_byte for the case converting a region.
17241
17242 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17243
17244 * character.h (BYTE8_STRING): New macro.
17245
17246 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17247
172482008-02-01 Kenichi Handa <handa@m17n.org>
17249
17250 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17251 characters by octal form.
17252
17253 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17254
17255 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17256 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17257 _fetch_multibyte_char_len.
17258 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17259
17260 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17261
17262 * casefiddle.c (casify_object): Simplify. Handle the case that
17263 the case conversion change the byte length.
17264 (casify_region): Likewise.
17265
17266 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17267
17268 * character.c (_fetch_multibyte_char_len): Delete this variable.
17269 (syms_of_character): Setup Vprintable_chars.
17270
17271 * editfns.c (Fchar_equal): Fix for the unibyte case.
17272 (Finsert_byte): New function.
17273 (syms_of_editfns): Defsubr it.
17274
17275 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17276 of direct code 0x3ffff.
17277
17278 * search.c (Freplace_match): Fix for the unibyte case.
17279
172802008-02-01 Kenichi Handa <handa@m17n.org>
17281
17282 * lread.c (safe_to_load_p): Fix the logic.
17283
17284 * syntax.c (scan_words): Don't treat characters belonging to
17285 different scripts as constituting a word.
17286
17287 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17288
17289 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17290
17291 * emacs.c (main): In the case of --unibyte, instead of aborting on
17292 finding non-empty buffer, make it unibyte.
17293
172942008-02-01 Kenichi Handa <handa@m17n.org>
17295
17296 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17297 to create a fontset.
17298
172992008-02-01 Dave Love <fx@gnu.org>
17300
17301 * character.c (Funibyte_char_to_multibyte): Doc fix.
17302
17303 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17304
173052008-02-01 Kenichi Handa <handa@m17n.org>
17306
17307 * fontset.c (fontset_add): Make the type `int'.
17308 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17309
17310 * character.c (unibyte_char_to_multibyte)
17311 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17312 charset_unibyte, not charset_primary.
17313
17314 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17315
17316 * charset.c (charset_unibyte): Rename from charset_primary.
17317 (Funibyte_charset): Rename from Fprimary_charset.
17318 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17319 (syms_of_charset): Adjust for the above changes.
17320
17321 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17322 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17323 it->multibyte_p is zero.
17324
17325 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17326 Delete extern.
17327
173282008-02-01 Kenichi Handa <handa@m17n.org>
17329
17330 * coding.c (Fdefine_coding_system_internal): Fix category setting
17331 for a coding system of type iso-2022.
17332
173332008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17336
173372008-02-01 Kenichi Handa <handa@m17n.org>
17338
17339 * syntax.c (Vnext_word_boundary_function_table): New variable.
17340 (next-word-boundary-function-table): Declare it as a Lisp variable
17341 in syms_of_syntax.
17342 (scan_words): Call functions in Vnext_word_boundary_function_table
17343 if any.
17344
17345 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17346
17347 * fontset.c (fs_load_font): If fontp->charset is not negative,
17348 return fontp without setting its members.
17349
173502008-02-01 Dave Love <fx@gnu.org>
17351
17352 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17353
17354 * m/sparc.h (HAVE_ALLOCA): Delete.
17355
17356 * s/irix6-5.h: Don't include strings.h.
17357 (bcopy, bzero, bcmp): Don't undef.
17358
17359 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17360
17361 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17362 (TIOCSIGSEND): Don't test IRIX6.
17363 (bcopy, bzero, bcmp): Define conditionally.
17364
173652008-02-01 Kenichi Handa <handa@m17n.org>
17366
17367 * buffer.c (Qas, Qmake, Qto): New variables.
17368 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17369 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17370
17371 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17372 we are inserting a process output into a multibyte buffer.
17373
17374 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17375 multibyte_char_to_unibyte.
17376
17377 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17378 by the primary charset, make it eight-bit char.
17379 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17380
17381 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17382 (charset_8_bit__control, charset_8_bit_graphic)
17383 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17384 (define_charset_internal): New function.
17385 (syms_of_charset): Call define_charset_internal for pre-defined
17386 charsets.
17387
17388 * charset.h (charset_8_bit): Extern it.
17389
17390 * coding.c (make_conversion_work_buffer): Adjust for the change
17391 of Fset_buffer_multibyte.
17392 (encode_coding_raw_text): Increment p0 in the loop.
17393
17394 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17395
17396 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17397 for the change of Fset_buffer_multibyte.
17398
17399 * fns.c (Fstring_to_multibyte): New function.
17400 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17401
174022008-02-01 Dave Love <fx@gnu.org>
17403
17404 * xfns.c (x_put_x_image): Declare args.
17405
17406 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17407 (try_font_list): Declare an arg.
17408
17409 * xdisp.c (message2_nolog, set_message): Declare an arg.
17410
17411 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17412
17413 * syntax.c (scan_sexps_forward): Declare an arg.
17414
17415 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17416 Declare an arg.
17417
17418 * lisp.h (Fnew_fontset): Declare.
17419
17420 * keymap.c (push_key_description): Call CHARACTERP correctly.
17421
17422 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17423 (face_for_char): Delete unused vars.
17424 (Fset_fontset_font): Doc fix. Delete unused vars.
17425
17426 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17427
17428 * composite.c (update_compositions): Declare arg.
17429
17430 * cm.c (calccost, cmgoto): Declare args.
17431
17432 * charset.c: Remove `emacs' conditional. Doc fixes.
17433 (map_char_table_for_charset): Declare.
17434
17435 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17436
17437 * ccl.c: Remove `emacs' conditional.
17438
174392008-02-01 Kenichi Handa <handa@m17n.org>
17440
17441 The following changes are to allow specifying multiple font
17442 patterns for a character range (specified by script or charset).
17443
17444 * Makefile.in (abbrev.o): Depend on syntax.h.
17445 (xfaces.o): Depend on charset.h.
17446
17447 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17448 SINGLE_BYTE_CHAR_P.
17449
17450 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17451
17452 * character.h (Vchar_script_table): Extern it.
17453
17454 * character.c (Vscript_alist): Delete.
17455 (Vchar_script_table, Qchar_script_table): New variable.
17456 (syms_of_character): Declare Vchar_script_table as a lisp variable
17457 and initialize it.
17458
17459 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17460 have property char-table-extra-slots, make no extra slot.
17461
17462 * dispextern.h (struct face): Delete member `charset'.
17463 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17464 SINGLE_BYTE_CHAR_P.
17465 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17466 Add prototypes.
17467 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17468 (generate_ascii_font_name): Rename from generate_ascii_font.
17469
17470 * fontset.h (get_font_repertory_func): New prototype.
17471 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17472 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17473
17474 * fontset.c (Qprepend, Qappend): New variables.
17475 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17476 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17477 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17478 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17479 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17480 (load_font_get_repertory): New functions.
17481 (fontset_set): Delete.
17482 (fontset_face): New arg FACE. Return face ID, not face.
17483 Complete re-write to handle new fontset structure. Change caller.
17484 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17485 (face_for_char): Don't call lookup_face.
17486 (make_fontset_for_ascii_face): New arg FACE.
17487 (fs_load_font): New arg CHARSET_ID. Don't check
17488 Vfont_encoding_alist here.
17489 (find_font_encoding): New function.
17490 (list_fontsets): Use STRINGP, not ! NILP.
17491 (accumulate_script_ranges): New function.
17492 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17493 re-written to handle new fontset structure.
17494 (Ffontset_font): Return a copy of element.
17495 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17496 docstring of font-encoding-alist.
17497
17498 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17499 (Fset_fotset_font): Fix arguments to 5.
17500
17501 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17502
17503 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17504 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17505 (highlight_trailing_whitespace): Adjust for the change of
17506 lookup_named_face.
17507
17508 * xfaces.c: Include charset.h.
17509 (load_face_font): Delete argument C. Change caller.
17510 (generate_ascii_font_name): Rename from generate_ascii_font.
17511 (font_name_registry): New function.
17512 (cache_face): Store ascii faces before non-ascii faces in buckets.
17513 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17514 Lookup only ascii faces.
17515 (lookup_non_ascii_face): New function.
17516 (lookup_named_face): Delete argument C. Change caller.
17517 (lookup_derived_face): Delete argument C. Change caller.
17518 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17519 a string, just call font_list with it.
17520 (choose_face_font): Delete arguments FACE and C. New arg
17521 FONT_SPEC. Change caller.
17522 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17523 Change caller.
17524 (realize_non_ascii_face): New function.
17525 (realize_x_face): Call load_face_font here.
17526 (realize_tty_face): Delete argument C. Change caller.
17527 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17528 get a face ID.
17529 (dump_realized_face): Don't print charset of FACE.
17530
17531 * xfns.c (x_set_font): Always call x_new_fontset and
17532 store_frame_parameter.
17533 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17534 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17535
17536 * xterm.h (x_get_font_repertory): Extern it.
17537
17538 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17539 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17540 it->multibyte_p is zero.
17541 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17542 (x_new_fontset): If FONTSETNAME doesn't match any existing
17543 fontsets, create a new one.
17544 (x_get_font_repertory): New function.
17545
175462008-02-01 Kenichi Handa <handa@m17n.org>
17547
17548 * coding.c (Ffind_coding_systems_region_internal): Detect an
17549 ASCII only string correctly.
17550
17551 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17552 version is 0.
17553
175542008-02-01 Kenichi Handa <handa@m17n.org>
17555
17556 * lread.c: Include "coding.h".
17557 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17558 (load_each_byte, unread_char): New variables.
17559 (readchar_backlog): Delete.
17560 (readchar): Return a character unless load_each_byte is nonzero.
17561 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17562 cons. If unread_char is not -1, simply return it.
17563 (unreadchar): Handle the case that readcharfun is
17564 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17565 (read_multibyte): Delete.
17566 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17567 (read_emacs_mule_char): New functions.
17568 (Fload): Even if the file doesn't have the extension ".elc", if
17569 safe_to_load_p returns a positive version number, assume that the
17570 file contains bytecompiled code. If the version is less than 22,
17571 load the file while decoding multibyte sequences by emacs-mule.
17572 (readevalloop): Don't use readchar_backlog.
17573 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17574 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17575 (read_escape): Delete the arg BYTEREP.
17576 (read1): Set load_each_byte to 1 temporarily while handling
17577 #@NUMBER. Don't call read_multibyte.
17578 (read_vector): Call Fread with a cons. If readcharfun is
17579 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17580 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17581 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17582 and Qload_force_doc_strings.
17583
175842008-02-01 Kenichi Handa <handa@m17n.org>
17585
17586 * xdisp.c (face_before_or_after_it_pos): Call
17587 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17588
175892008-02-01 Kenichi Handa <handa@m17n.org>
17590
17591 * character.h (TRAILING_CODE_P): New macro.
17592 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17593 (string_char_with_unification): Fix prototype.
17594 (Vscript_alist): Extern it.
17595
17596 * character.c (Vscript_alist): New variable.
17597 (string_char_with_unification, str_as_unibyte)
17598 (string_escape_byte8): Add `const' to local variables.
17599 (syms_of_character): Declare script-alist as a Lisp variable.
17600
17601 * charset.h (Vcharset_ordered_list): Extern it.
17602 (charset_ordered_list_tick): Extern it.
17603 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17604 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17605 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17606 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17607 (Funify_charset): Adjust for the change of Funify_charset.
17608
17609 * charset.c (charset_ordered_list_tick): New variable.
17610 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17611 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17612 deunify intead of unify a charset.
17613 (string_xstring_p): Add `const' to local variables.
17614 (find_charsets_in_text): Add `const' to arguments and local variables.
17615 (encode_char): Adjust for the change of Funify_charset. Fix
17616 detecting of invalid code.
17617 (Fset_charset_priority): Increment charset_ordered_list_tick.
17618 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17619 and TO_CODE.
17620
17621 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17622 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17623 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17624 (decode_coding_ccl, consume_chars)
17625 (Ffind_coding_systems_region_internal)
17626 (Fcheck_coding_systems_region): Add `const' to local variables.
17627
17628 * print.c (print_object): Use octal form for printing the
17629 contents of a bool vector.
17630
176312008-02-01 Dave Love <fx@gnu.org>
17632
17633 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17634 <version == 20>: Refuse to load.
17635
176362008-02-01 Dave Love <fx@gnu.org>
17637
17638 * fns.c: Move coding.h.
17639 (Qcodeset, Qdays, Qmonths): New.
17640 (concat): Use CHARACTERP instead of INTEGERP.
17641 (Flocale_codeset): Delete.
17642 (Flanginfo): New function.
17643 (syms_of_fns): Change accordingly.
17644
17645 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17646
176472008-02-01 Dave Love <fx@gnu.org>
17648
17649 * casetab.c (init_casetab_once, init_casetab_once): Fix
17650 CHAR_TABLE_SET call.
17651
17652 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17653
17654 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17655
17656 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17657 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17658 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17659
17660 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17661
17662 * coding.c (ENCODE_DESIGNATION, decode_eol)
17663 (make_conversion_work_buffer, code_conversion_restore)
17664 (Fdefine_coding_system_internal): Convert Lisp types.
17665 (code_conversion_restore): Use EQ, not ==.
17666 (Fencode_coding_string): Fix code_convert_string call.
17667
17668 * coding.h (code_convert_region): Fix prototype.
17669
17670 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17671
17672 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17673 (Ffontset_info): Convert Lisp types.
17674
17675 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17676
17677 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17678
17679 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17680
17681 * chartab.c: Include "...h", not <...h> in some cases.
17682
17683 * callproc.c (Fcall_process): Remove unused variables.
17684
176852008-02-01 Dave Love <fx@gnu.org>
17686
17687 * coding.c (Fset_coding_system_priority): Allow null arg list.
17688
176892008-02-01 Dave Love <fx@gnu.org>
17690
17691 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17692 (Fself_insert_and_exit): Use CHARACTERP.
17693
17694 * callproc.c (Fcall_process): Remove unused vars.
17695
17696 * xterm.c (XTread_socket): Add extra dead keysyms.
17697
17698 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17699
17700 * dispextern.h: Remove prototypes for redraw_frame,
17701 redraw_garbaged_frames.
17702
17703 * cmds.c (Fself_insert_command): Use CHARACTERP.
17704
17705 * chartab.c (make_sub_char_table): Remove unused var.
17706 (Fset_char_table_default, Fmap_char_table): Doc fix.
17707
17708 * keymap.c (access_keymap): Remove generic char code.
17709 (push_key_description): Use CHARACTERP.
17710
177112008-02-01 Dave Love <fx@gnu.org>
17712
17713 * charset.c: Doc fixes.
17714 (Funify_charset): Extra checking.
17715
177162008-02-01 Dave Love <fx@gnu.org>
17717
17718 * lread.c: Remove some unused variables.
17719 (safe_to_load_p): If safe, return the magic number version byte.
17720 (Fload): Maybe use load-with-code-conversion.
17721
177222008-02-01 Kenichi Handa <handa@m17n.org>
17723
17724 * category.c (Fmodify_category_entry): Don't modify the contents
17725 of category_set for characters out of the range. Avoid
17726 unnecessary modification.
17727
17728 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17729 Vchar_unify_table. The default value of the table is now nil.
17730
17731 * character.c (syms_of_character): Setup Vchar_width_table for
17732 eight-bit-control and raw-byte chars.
17733
17734 * charset.h (enum define_charset_arg_index): Delete
17735 charset_arg_parents and add charset_arg_subset and
17736 charset_arg_superset.
17737 (enum charset_attr_index): Delete charset_parents and add
17738 charset_subset and charset_superset.
17739 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17740 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17741 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17742 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17743 (CHARSET_SUPERSET): New macros.
17744 (charset_work): Extern it.
17745 (ENCODE_CHAR): Use charset_work.
17746 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17747 (map_charset_chars): Extern it.
17748
17749 * charset.c (load_charset_map): Set the default value of encoder
17750 and deunifier char-tables to nil.
17751 (map_charset_chars): Change argument. Change callers. Use
17752 map_char_table_for_charset instead of map_char_table.
17753 (Fmap_charset_chars): New optional args from_code and to_code.
17754 (Fdefine_charset_internal): Adjust for the change of
17755 `define-charset' (:parents -> :subset or :superset).
17756 (charset_work): New variable.
17757 (encode_char, syms_of_charset): Adjust for the change of
17758 Fdefine_charset_internal.
17759 (Ffind_charset_string): Setup the vector `charsets' correctly.
17760
17761 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17762 the previous change.
17763 (char_table_ref_and_range): Adjust for the above change.
17764 (map_sub_char_table_for_charset): New function.
17765 (map_char_table_for_charset): New function.
17766
17767 * keymap.c (describe_vector): Handle a char-table directly here.
17768 (describe_char_table): Delete.
17769
17770 * lisp.h (map_charset_chars): Delete.
17771
177722008-02-01 Dave Love <fx@gnu.org>
17773
17774 * fns.c (count_combining): Comment out (unused).
17775 (Flocale_codeset): New.
17776 (syms_of_fns): Defsubr it.
17777
17778 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17779 (size_t): Remove.
17780
177812008-02-01 Dave Love <fx@gnu.org>
17782
17783 * Makefile.in (chartab.o): Depend on charset.h.
17784
177852008-02-01 Kenichi Handa <handa@m17n.org>
17786
17787 * character.c (syms_of_character): Set the default value of
17788 Vprintable_chars to Qnil.
17789
177902008-02-01 Dave Love <fx@gnu.org>
17791
17792 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17793
177942008-02-01 Kenichi Handa <handa@m17n.org>
17795
17796 * charset.c (load_charset_map): Handle the case that from < to
17797 correctly.
17798
17799 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17800 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17801 Pay attention to raw-8-bit chars.
17802
178032008-02-01 Kenichi Handa <handa@m17n.org>
17804
17805 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17806 It is not bytecompiled now.
17807
17808 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17809 (charset_jisx0208): New variables.
17810 (Fdefine_charset_internal): Setup them if appropriate.
17811 (init_charset_once): Initialize them to -1.
17812
17813 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17814 (charset_jisx0208): Extern them.
17815
17816 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17817 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17818 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17819 (setup_iso_safe_charsets): Fix arguments to Fassq.
17820 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17821 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17822 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17823 (encode_coding_iso_2022): Change the 1st arg to
17824 ENCODE_ISO_CHARACTER to a variable.
17825
178262008-02-01 Kenichi Handa <handa@m17n.org>
17827
17828 * charset.h (enum define_charset_arg_index): New enums
17829 charset_arg_min_code and charset_arg_max_code.
17830 (struct charset): New member char_index_offset.
17831
17832 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17833 Take charset->char_index_offset into account.
17834 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17835 args[charset_arg_max_code]. Setup charset.char_index_offset.
17836 (syms_of_charset): Fix args to Fdefine_charset_internal.
17837
178382008-02-01 Dave Love <fx@gnu.org>
17839
17840 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17841
178422008-02-01 Dave Love <fx@gnu.org>
17843
17844 * coding.c: Doc fixes.
17845 (Fcoding_system_aliases): Fix return value.
17846 (Qmac): Remove (duplicated) definition.
17847
178482008-02-01 Dave Love <fx@gnu.org>
17849
362654a6
JB
17850 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17851 New functions.
aac0c6e3
MR
17852
17853 * character.c (Fstring): Doc fix.
17854
17855 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17856
362654a6 17857 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17858 (font-encoding-alist): Doc fix.
17859
178602008-02-01 Dave Love <fx@gnu.org>
17861
17862 * term.c (costs_set): Declare static, non-initialized for pcc.
17863 (encode_terminal_code): Remove unused var.
17864
17865 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17866 for K&R.
17867
17868 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17869
17870 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17871 (suffixes): Move out of make_subsidiaries for K&R.
17872
17873 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17874
17875 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17876
178772008-02-01 Dave Love <fx@gnu.org>
17878
17879 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17880
17881 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17882
178832008-02-01 Yong Lu <lyongu@asia-infonet.com>
17884
17885 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17886
17887 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17888
178892008-02-01 Kenichi Handa <handa@m17n.org>
17890
17891 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17892 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17893
178942008-02-01 Kenichi Handa <handa@m17n.org>
17895
17896 * coding.c (decode_coding_charset): Adjust for the change of
17897 Fdefine_coding_system_internal.
17898 (Fdefine_coding_system_internal): For a coding system of
17899 `charset' type, store a list of charset IDs in
17900 `charset_attr_charset_valids' element of coding attributes.
17901
179022008-02-01 Kenichi Handa <handa@m17n.org>
17903
17904 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17905 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17906 caller. Handle 2-byte and 3-byte charsets correctly.
17907 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17908 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17909 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17910 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17911 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17912 sequence.
17913 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17914 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17915 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17916 and alt&rule composition.
17917 (decode_coding_iso_2022): Handle composition correctly.
17918 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17919
17920 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17921 re-defining a charset. If the charset has :emacs-mule-id, setup
17922 emacs_mule_bytes.
17923 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17924
179252008-02-01 Kenichi Handa <handa@m17n.org>
17926
17927 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17928 (encode_coding_big5, encode_coding_charset): If coding requires safe
17929 encoding, produce a character specified by
17930 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17931
179322008-02-01 Dave Love <fx@gnu.org>
17933
17934 * xterm.c (XSetIMValues): Declare.
17935
17936 * process.c: Conditionally include sys/wait.h, pty.h.
17937
17938 * print.c (print_object): Fix print format for 64-bit systems.
17939
17940 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17941
17942 * buffer.c (emacs_strerror): Declare.
17943
17944 * fontset.c (Fclear_face_cache): Declare.
17945 (accumulate_font_info): Comment-out (unused).
17946 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17947 variables.
17948
17949 * character.h (string_escape_byte8): Declare.
17950
17951 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17952 unused vars.
17953 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17954 (Fmap_charset_chars): Doc fix.
17955
17956 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17957 (Fset_coding_system_priority, Fset_coding_system_priority)
17958 (Fdefine_coding_system_internal): Doc fix.
17959
179602008-02-01 Dave Love <fx@gnu.org>
17961
17962 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17963
179642008-02-01 Kenichi Handa <handa@m17n.org>
17965
17966 * character.c (string_escape_byte8): Make multibyte string with
17967 correct size.
17968
17969 * charset.c (Fmake_char): Delete unnecessary code.
17970
179712008-02-01 Kenichi Handa <handa@m17n.org>
17972
17973 * xfns.c (x_encode_text): Allocate coding.destination here, and
17974 call encode_coding_object with dst_object Qnil.
17975
17976 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17977 multibyte form correctly.
17978
17979 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17980 against Vfont_encoding_alist.
17981
17982 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17983 handling of charset list.
17984 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17985 (decode_coding_object): Move point to coding->dst_pos before
17986 calling post-read-conversion function.
17987 (encode_coding_object): Give correct arguments to
17988 pre-write-conversion. Ignore the return value of
17989 pre-write-conversion function. Pay attention to the case that
17990 pre-write-conversion changes the current buffer. If dst_object is
17991 Qt, even if coding->src_bytes is zero, allocate at least one byte
17992 to coding->destination.
17993
17994 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17995
17996 * charset.c (Fmake_char): Make it more backward compatible.
17997 (Fmap_charset_chars): Fix docstring.
17998
179992008-02-01 Dave Love <fx@gnu.org>
18000
18001 * coding.c: Doc fixes.
18002 (Fdefine_coding_system_alias): Use names, not symbols, in
18003 coding-system-alist.
18004
180052008-02-01 Kenichi Handa <handa@m17n.org>
18006
18007 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18008 of calling free_realized_face.
18009
180102008-02-01 Yong Lu <lyongu@asia-infonet.com>
18011
18012 * charset.c (read_hex): Don't treat SPC as a comment starter.
18013 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18014 (Fdecode_char): Fix typo.
18015
180162008-02-01 Kenichi Handa <handa@m17n.org>
18017
18018 * charset.h (struct charset): New member `code_space_mask'.
18019
18020 * coding.c (coding_set_source): Delete the local variable beg_byte.
18021 (encode_coding_charset, Fdefine_coding_system_internal):
18022 Delete the local variable charset.
18023 (Fdefine_coding_system_internal): Setup
18024 attrs[coding_attr_charset_valids] correctly.
18025
18026 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18027 member to check if CODE is valid or not.
18028 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18029 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18030 is within the range of charset->min_code and carset->max_code.
18031
180322008-02-01 Dave Love <fx@gnu.org>
18033
18034 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18035
18036 * dispextern.h (generate_ascii_font): Fix return type.
18037
18038 * xfaces.c (generate_ascii_font): Fix arg declaration.
18039
18040 * coding.c (coding_inherit_eol_type)
18041 (Fset_terminal_coding_system_internal)
18042 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18043
180442008-02-01 Kenichi Handa <handa@m17n.org>
18045
18046 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18047 multiple charsets correctly.
18048
180492008-02-01 Kenichi Handa <handa@m17n.org>
18050
18051 * search.c (boyer_moore): Fix handling of multibyte character
18052 translation.
18053
18054 * xdisp.c (display_mode_element): When the variable `elt' is
18055 changed, update `this' and `lisp_string'.
18056
180572008-02-01 Kenichi Handa <handa@m17n.org>
18058
18059 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18060
18061 * callproc.c (Fcall_process): Be sure to give the current buffer
18062 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18063
18064 * charset.c (struct charset_map_entries): New struct.
18065 (load_charset_map): Rename from parse_charset_map. New args
18066 entries and n_entries. Change caller.
18067 (load_charset_map_from_file): Rename from load_charset_map.
18068 Change caller. New arg control_flag. Call load_charset_map at
18069 the tail.
18070 (load_charset_map_from_vector): New function.
18071 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18072 (encode_char): If the charset is compact, change a character index
18073 to a code point.
18074
18075 * coding.c (coding_alloc_by_making_gap): Check the case that the
18076 source and destination are the same correctly.
18077 (decode_coding_raw_text): Set coding->consumed_char and
18078 coding->consumed to 0.
18079 (produce_chars): If coding->chars_at_source is nonzero, update
18080 coding->consumed_char and coding->consumed before calling
18081 alloc_destination.
18082 (Fdefine_coding_system_alias): Register ALIAS in
18083 Vcoding_system_alist.
18084 (syms_of_coding): Define `no-conversion' coding system at the tail.
18085
18086 * fileio.c (Finsert_file_contents): Set coding_system instead of
18087 val. If the current buffer is multibyte, always call
18088 decode_coding_gap.
18089
18090 * xfaces.c (try_font_list): Give higher priority to fontset's
18091 family than face's family.
18092
180932008-02-01 Kenichi Handa <handa@m17n.org>
18094
18095 * callproc.c (Fcall_process): Be sure to give the current buffer
18096 to decode_coding_c_string.
18097
18098 * xfaces.c (try_font_list): Give a family specified in a fontset
18099 higher priority than a family specified in a face.
18100
181012008-02-01 Kenichi Handa <handa@m17n.org>
18102
18103 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18104 Fix arguments to insert_from_buffer.
18105
18106 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18107
181082008-02-01 Kenichi Handa <handa@m17n.org>
18109
18110 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18111 (decode_coding_gap): Set coding->dst_multibyte correctly.
18112
181132008-02-01 Kenichi Handa <handa@m17n.org>
18114
18115 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18116 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18117 (encode_coding_utf_16): Substitute coding->default_char for
18118 non-Unicode characters.
18119 (decode_coding): Don't call record_insert here.
18120 (setup_coding_system): Initialize `surrogate' of
18121 coding->spec.utf_16 to 0.
18122 (EMIT_ONE_BYTE): Fix for multibyte case.
18123
18124 * insdel.c (insert_from_gap): Call record_insert.
18125
181262008-02-01 Kenichi Handa <handa@m17n.org>
18127
18128 * casefiddle.c (casify_region): Fix multibyte case.
18129
18130 * character.c (c_string_width): Add return type `int'.
18131 (char_string_with_unification): Delete arg ADVANCED.
18132
18133 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18134 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18135 (CHAR_STRING_ADVANCE): Make it do-while statement.
18136
18137 * chartab.c (sub_char_table_set_range): Optimize for the case
18138 DEPTH == 3. Add workaround code for a GCC optimization bug.
18139
18140 * charset.c (parse_charset_map): Remove an unused variable.
18141
18142 * coding.c: Delete unused variables.
18143
18144 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18145 earlier. If inserted is zero and the coding system doesn't
18146 require flushing, don't call decode_coding_gap.
18147
18148 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18149
181502008-02-01 Kenichi Handa <handa@m17n.org>
18151
18152 The following changes are for using Unicode as an internal
18153 character model, and use UTF-8 format for buffer/string
18154 representation.
18155
18156 * .gdbinit (xchartable): Adjust for the change of char table structure.
18157 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18158
18159 * Makefile.in (obj): Add character.o and chartab.o.
18160 (lisp, shortlisp): Remove utf-8.elc.
18161 (*.o): For many files, change dependency on charset.h to
18162 character.h, and add dependency on character.h.
18163 (character.o, chartab.o): New targets.
18164
18165 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18166 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18167 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18168 of "charset.h".
18169
18170 * dired.c, filelock.c: Include "character.h".
18171
18172 * alloc.c: Include "character.h" instead of "charset.h".
18173 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18174 (syms_of_alloc): Remove defsubr for Smake_char_table.
18175
18176 * buffer.c: Include "character.h" instead of "charset.h", don't
18177 include "coding.h".
18178 (Fset_buffer_multibyte): Adjust for UTF-8.
18179
18180 * buffer.h: EXFUN Fbuffer_live_p.
18181
18182 * callproc.c: Include "character.h" instead of "charset.h".
18183 (Fcall_process): Big change for the new code-conversion APIs.
18184
18185 * casetab.c: Include "character.h" instead of "charset.h".
18186 (set_canon, set_identity, shuffle): Adjust for the new
18187 map_char_table spec.
18188 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18189 accessing the char table structure.
18190
18191 * chartab.c: New file that implements char table.
18192
18193 * category.c: Include "character.h".
18194 (copy_category_entry): New function.
18195 (copy_category_table): Call map_char_table and copy_category_entry.
18196 (Fmake_category_table): Initialize all top-level slots.
18197 (char_category_set): New function.
18198 (modify_lower_category_set): Delete.
18199 (Fmodify_category_entry): Call char_table_ref_and_range.
18200
18201 * category.h (CATEGORY_SET): Just call char_category_set.
18202
18203 * ccl.c: Include "character.h".
18204 (Qccl, Qcclp): New variables.
18205 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18206 it's less than 256.
18207 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18208 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18209 and DST type.
18210 (ccl_driver): Change types of argument, adjust code accordingly.
18211 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18212 ccl_driver.
18213 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18214
18215 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18216 New members src_multibyte, dst_multibyte, consumed, and produced.
18217 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18218 (CODING_SPEC_CCL_PROGRAM): New macro.
18219 (ccl_driver): Update prototype.
18220 (Qccl, Qcclp, Fccl_program_p): Extern them.
18221 (CHECK_CCL_PROGRAM): New macro.
18222
18223 * character.c, character.h, chartab.c: New files.
18224
18225 * charset.c: Mostly re-written. Move character and multibyte sequence
18226 handling codes to character.c.
18227
18228 * charset.h: Mostly re-written. Move character and multibyte sequence
18229 handling codes to character.h.
18230
18231 * coding.c, coding.h: Mostly re-written.
18232
18233 * composite.c: Include "character.h" instead of "charset.h".
18234 (CHAR_WIDTH): Move to character.h.
18235 (HASH_KEY, HASH_VALUE): Delete.
18236
18237 * composite.h (enum composition_method): Change order of enumeration
18238 symbols.
18239
18240 * data.c: Include "character.h" instead of "charset.h".
18241 (Faref): Call CHAR_TABLE_REF for a char table.
18242 (Faset): Call CHAR_TABLE_SET for a char table.
18243
18244 * dispextern.h (free_realized_face, check_face_attribytes)
18245 (generate_ascii_font): Extern them.
18246 (free_realized_multibyte_face): Delete extern.
18247
18248 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18249 table structure.
18250
18251 * editfns.c: Include "character.h" instead of "charset.h".
18252 (Fchar_to_string): Always call CHAR_STRING.
18253
18254 * emacs.c (main): Call init_charset_once, init_charset,
18255 syms_of_chartab, and syms_of_character.
18256
18257 * fileio.c: Include "character.h" instead of "charset.h".
18258 (Finsert_file_contents): Big change for the new code-conversion API.
18259 (choose_write_coding_system, Fwrite_region): Likewise.
18260 (build_annotations_2): Delete.
18261 (e_write): Big change for the new code-conversion API.
18262
18263 * fns.c: Include "character.h" instead of "charset.h".
18264 (copy_sub_char_table): Move to chartab.c.
18265 (Fcopy_sequence): Call copy_char_table for a char table.
18266 (concat): Delete codes calling count_multibyte.
18267 (string_char_to_byte, string_byte_to_char): Adjust for the new
18268 multibyte form.
18269 (internal_equal): Adjust for the change of char table structure.
18270 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18271 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18272 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18273 (char_table_translate, optimize_sub_char_table)
18274 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18275 chartab.c.
18276 (char_table_ref_and_index): Delete.
18277 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18278 (Fmd5): Call preferred_coding_system instead of accessing
18279 Vcoding_category_list. Adjust for the new code-conversion API.
18280 (syms_of_fns): Move defsubr for char table related functions to
18281 chartab.c.
18282
18283 * fontset.c: Mostly re-written.
18284
18285 * fontset.h (struct font_info): Change type of the member encoding_type.
18286 (enum FONT_SPEC_INDEX): New enum.
18287 (fontset_font_pattern, fs_load_font): Update prototype.
18288 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18289
18290 * indent.c: Include "character.h" instead of "charset.h".
18291 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18292
18293 * insdel.c: Include "character.h" instead of "charset.h".
18294 (copy_text): Don't refer to Vnonascii_translation_table.
18295 (insert_from_gap): New function.
18296
18297 * keyboard.c: Include "character.h" instead of "charset.h".
18298 (command_loop_1): Never call direct_output_forward_char before
18299 a non-ASCII character.
18300 (read_char): If Vkeyboard_translate_table is a char table, always
18301 translate a character.
18302
18303 * keymap.c: Include "character.h".
18304 (store_in_keymap): Handle the case that IDX is a cons.
18305 (Fdefine_key): Handle the case that KEY is a cons and the car part
18306 is also a cons (range).
18307 (push_key_description): Adjust for the new character code.
18308 (describe_vector): Call describe_char_table for a char table.
18309 (describe_char_table): New function.
18310
18311 * keymap.h (describe_char_table): Extern it.
18312
18313 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18314 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18315 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18316 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18317 Delete.
18318 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18319 structure.
18320 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18321 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18322 (CHARTAB_SIZE_BITS_3): New macros.
18323 (chartab_size): Extern it.
18324 (struct Lisp_Char_Table): Re-design.
18325 (struct Lisp_Sub_Char_Table): New structure.
18326 (HASH_KEY, HASH_VALUE): Move from fns.c.
18327 (CHARACTERBITS): Define as 22.
18328 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18329 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18330 (GC_SUB_CHAR_TABLE_P): New macro.
18331 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18332 (code_convert_string_norecord): Deleted extern.
18333 (init_character_once, syms_of_character, init_charset)
18334 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18335
18336 * lread.c: Include "character.h".
18337 (read_multibyte): New arg NBYTES.
18338 (read_escape): Change the meaning of returned *BYTEREP.
18339 (to_multibyte): Delete.
18340 (read1): Adjust the handling of char table and string.
18341
18342 * print.c: Include "character.h" instead of "charset.h".
18343 (print_string): Convert 8-bit raw bytes to octal form by
18344 string_escape_byte8.
18345 (print_object): Adjust for the new multibyte form. Print 8-bit
18346 raw bytes always in octal form. Handle sub char table correctly.
18347
18348 * process.c: Include "character.h" instead of "charset.h".
18349 (read_process_output, send_process): Adjust for the new
18350 code-conversion API.
18351
18352 * puresize.h (BASE_PURESIZE): Increase.
18353
18354 * regex.c: Include "character.h" instead of "charset.h".
18355 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18356 (regex_compile): Accept a range whose starting and ending
18357 character have different leading bytes.
18358 (analyse_first): Adjust for the above change.
18359
18360 * search.c: Include "character.h" instead of "charset.h".
18361 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18362 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18363
18364 * syntax.c: Include "character.h" instead of "charset.h".
18365 (syntax_parent_lookup): Delete.
18366 (Fmodify_syntax_entry): Accept a cons as CHAR.
18367 (skip_chars): Adjust for the new multibyte form.
18368 (init_syntax_once): Call char_table_set_range instead of directly
18369 accessing the structure of a char table.
18370
18371 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18372 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18373 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18374 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18375
18376 * term.c: Include "buffer.h" and "character.h".
18377 (encode_terminal_code, write_glyphs): Adjust for the new
18378 code-conversion API.
18379 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18380
18381 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18382
18383 * xdisp.c: Include "character.h".
18384 (get_next_display_element): Adjust for the new multibyte form.
18385 (disp_char_vector): Adjust for the new char table structure.
18386 (decode_mode_spec_coding): Adjust for the new structure of
18387 coding system.
18388 (decode_mode_spec): Adjust for the new code-conversion API.
18389
18390 * xfaces.c: Include "character.h" instead of "charset.h".
18391 (load_face_font): Adjust for the change of choose_face_font and
18392 FS_LOAD_FONT.
18393 (generate_ascii_font): New function.
18394 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18395 (set_font_frame_param): Adjust for the change of choose_face_font.
18396 (free_realized_face): Make it public.
18397 (free_realized_faces_for_fontset): Rename from
18398 free_realized_multibyte_face. Free also faces realized for ASCII.
18399 (choose_face_font): Change arguments. Adjust for the change of
18400 fontset_font_pattern and FS_LOAD_FONT.
18401
18402 * xfns.c: Include "character.h".
18403 (x_encode_text): Adjust for the new code-conversion API.
18404
18405 * xselect.c: Don't include "charset.h".
18406 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18407
18408 * xterm.c: Include "character.h".
18409 (x_encode_char): New argument CHARSET. Change caller.
18410 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18411 Call ENCODE_CHAR instead of SPLIT_CHAR.
18412 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18413 CHAR_WIDTH instead of CHARSET_WIDTH.
18414 (XTread_socket): Adjust for the new code-conversion API.
18415 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18416 (x_load_font): Adjust for the change of struct font.
18417
184182008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18419
18420 * xfaces.c (face_at_buffer_position): Remove unused vars.
18421
184222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18423
18424 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18425 Fix overflow checking.
18426
184272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18428
18429 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18430 Cancel previous change.
18431
184322008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18433
18434 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18435 ccl->eight_bit_control. Fix check for buffer overflow.
18436 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18437 (ccl_driver): Initialize extra_bytes to 0.
18438
184392008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18440
18441 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18442 return it ORed with ctrl_modifier.
18443
184442008-01-29 Miles Bader <miles@gnu.org>
18445
18446 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18447
184482008-01-28 Jason Rumney <jasonr@gnu.org>
18449
18450 * w32.c (stat): Don't double check for networked drive.
18451
184522008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18453
18454 * window.c (run_window_configuration_change_hook): New function.
18455 Code extracted from set_window_buffer. Set the selected frame.
18456 (set_window_buffer): Use it.
18457 * window.h (run_window_configuration_change_hook): Declare.
18458 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18459
18460 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18461
184622008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18463
18464 * Makefile.in: Remove references to unused macros.
18465
184662008-01-26 Eli Zaretskii <eliz@gnu.org>
18467
18468 * w32.c (g_b_init_get_sid_sub_authority)
18469 (g_b_init_get_sid_sub_authority_count): New static variables.
18470 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18471 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18472 (init_user_info): Use them to retrieve uid and gid.
18473 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18474 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18475 st_uid and st_gid of the file.
18476
184772008-01-26 Jason Rumney <jasonr@gnu.org>
18478
18479 * w32.c (logon_network_drive): New function.
18480 (stat): Use it.
18481
184822008-01-26 Chong Yidong <cyd@stupidchicken.com>
18483
18484 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18485 invisible text covered with an ellipsis.
18486
184872008-01-25 Richard Stallman <rms@gnu.org>
18488
18489 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18490 jump back to beginning. Move some other initializations after that.
18491 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18492 New variables.
18493 (syms_of_xdisp): Init them.
18494
18495 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18496
18497 * buffer.c (reset_buffer_local_variables):
18498 Implement `permanent-local-hook'.
18499 (Qpermanent_local_hook): New variable.
18500 (syms_of_buffer): Init and staticpro it.
18501
185022008-01-25 Michael Albinus <michael.albinus@gmx.de>
18503
18504 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18505
185062008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18507
18508 * fns.c (Fclrhash): Return TABLE.
18509
185102008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18511
18512 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18513 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18514 is set even without positional changes.
18515 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18516
18517 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18518
185192008-01-23 Jason Rumney <jasonr@gnu.org>
18520
18521 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18522
18523 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18524 the unicode range available in MULE by locale-coding-system.
18525 Improve dbcs lead byte detection. Set event timestamp and modifiers
18526 earlier.
18527
185282008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18529
18530 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18531 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18532 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18533 when used on child processes.
18534
185352008-01-21 Michael Albinus <michael.albinus@gmx.de>
18536
18537 * dbusbind.c (Fdbus_method_return_internal): Rename from
18538 Fdbus_method_return.
18539 (Fdbus_unregister_object): Move to dbus.el.
18540 (Fdbus_call_method, Fdbus_method_return_internal)
18541 (Fdbus_send_signal): Improve debug messages.
18542
185432008-01-20 Martin Rudalics <rudalics@gmx.at>
18544
18545 * undo.c (undo_inhibit_record_point): New variable.
18546 (syms_of_undo): Initialize it.
18547 (record_point): Don't record point when undo_inhibit_record_point
18548 is set.
18549
185502008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18551
18552 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18553
18554 * xdisp.c (Qauto_hscroll_mode): New var.
18555 (syms_of_xdisp): Initialize it.
18556 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18557 window's buffer.
18558 (hscroll_windows): Don't check automatic_hscrolling_p here.
18559
18560 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18561 vscroll if we're setting window-buffer to the value it already has.
18562
185632008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18564
18565 * m/intel386.h: Remove references to XENIX.
18566
185672008-01-17 Andreas Schwab <schwab@suse.de>
18568
18569 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18570 instead of HAVE_X86_64_LIB64_DIR.
18571 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18572
185732008-01-17 Glenn Morris <rgm@gnu.org>
18574
18575 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18576 to HAVE_X86_64_LIB64_DIR.
18577
185782008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18579
18580 * s/irix3-3.h:
18581 * s/irix4-0.h:
18582 * s/386-ix.h:
18583 * s/domain.h:
18584 * s/hpux9-x11r4.h:
18585 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18586
18587 * sysdep.c: Remove code containing references to symbols defined
18588 by unsupported systems.
18589
185902008-01-16 Glenn Morris <rgm@gnu.org>
18591
18592 * coding.c (select-safe-coding-system-function): Doc fix.
18593
185942008-01-15 Glenn Morris <rgm@gnu.org>
18595
18596 * config.in: Revert 2008-01-13 change: this is a generated file.
18597
185982008-01-13 Tom Tromey <tromey@redhat.com>
18599
18600 * lisp.h: Fix typo.
18601
186022008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18603
18604 * m/sequent-ptx.h:
18605 * m/sequent.h:
18606 * s/ptx.h:
18607 * s/ptx4-2.h:
18608 * s/ptx4.h: Remove files for systems no longer supported.
18609
18610 * callproc.c (Fcall_process): Fix previous change.
18611
186122008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18613
18614 * unexsunos4.c: Remove file, system not supported anymore.
18615
18616 * m/mips.h:
18617 * m/intel386.h:
18618 * callproc.c:
18619 * config.in:
18620 * ecrt0.c:
18621 * emacs.c:
18622 * fileio.c:
18623 * frame.c:
18624 * getpagesize.h:
18625 * keyboard.c:
18626 * lread.c:
18627 * process.c:
18628 * puresize.h:
18629 * sysdep.c:
18630 * systty.h:
18631 * syswait.h:
18632 * unexec.c:
18633 * xdisp.c:
18634 * alloc.c: Remove code containing references to symbols defined by
18635 unsupported systems.
18636
186372008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18638
18639 * coding.c (detect_coding_mask): Fix previous change.
18640
186412008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18642
18643 * coding.c (detect_coding_iso2022): New arg
18644 latin_extra_code_state. Allow Latin extra codes only
18645 when *latin_extra_code_state is nonzero.
18646 (detect_coding_mask): If there is a NULL byte, detect the encoding
18647 as UTF-16 or binary. If Latin extra codes exist, detect the
18648 encoding as ISO-2022 only when there's no other proper encoding is
18649 found.
18650
186512008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18652
18653 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18654 #ifdef MAC_OS.
18655
186562008-01-08 Richard Stallman <rms@gnu.org>
18657
18658 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18659
186602008-01-06 Nick Roberts <nickrob@snap.net.nz>
18661
18662 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18663 menu bar in parentheses.
18664
186652008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18666
18667 * m/7300.h:
18668 * m/acorn.h:
18669 * m/alliant-2800.h:
18670 * m/alliant.h:
18671 * m/alliant1.h:
18672 * m/alliant4.h:
18673 * m/altos.h:
18674 * m/amdahl.h:
18675 * m/apollo.h:
18676 * m/att3b.h:
18677 * m/aviion-intel.h:
18678 * m/aviion.h:
18679 * m/celerity.h:
18680 * m/clipper.h:
18681 * m/cnvrgnt.h:
18682 * m/convex.h:
18683 * m/cydra5.h:
18684 * m/delta88k.h:
18685 * m/dpx2.h:
18686 * m/dual.h:
18687 * m/elxsi.h:
18688 * m/f301.h:
18689 * m/gould-np1.h:
18690 * m/gould.h:
18691 * m/i860.h:
18692 * m/ibmps2-aix.h:
18693 * m/ibmrt-aix.h:
18694 * m/ibmrt.h:
18695 * m/irist.h:
18696 * m/is386.h:
18697 * m/isi-ov.h:
18698 * m/mega68.h:
18699 * m/mg1.h:
18700 * m/news-r6.h:
18701 * m/news-risc.h:
18702 * m/news.h:
18703 * m/nh3000.h:
18704 * m/nh4000.h:
18705 * m/ns16000.h:
18706 * m/ns32000.h:
18707 * m/nu.h:
18708 * m/orion.h:
18709 * m/orion105.h:
18710 * m/paragon.h:
18711 * m/pfa50.h:
18712 * m/plexus.h:
18713 * m/pyramid.h:
18714 * m/pyrmips.h:
18715 * m/sh3el.h:
18716 * m/sps7.h:
18717 * m/sr2k.h:
18718 * m/stride.h:
18719 * m/sun1.h:
18720 * m/sun2.h:
18721 * m/sun3-68881.h:
18722 * m/sun3-fpa.h:
18723 * m/sun3-soft.h:
18724 * m/sun3.h:
18725 * m/sun386.h:
18726 * m/symmetry.h:
18727 * m/tad68k.h:
18728 * m/tahoe.h:
18729 * m/targon31.h:
18730 * m/tek4300.h:
18731 * m/tekxd88.h:
18732 * m/tower32.h:
18733 * m/tower32v3.h:
18734 * m/ustation.h:
18735 * m/wicat.h:
18736 * m/xps100.h:
18737 * s/cxux.h:
18738 * s/cxux7.h:
18739 * s/dgux.h:
18740 * s/dgux4.h:
18741 * s/dgux5-4-3.h:
18742 * s/dgux5-4r2.h:
18743 * s/esix.h:
18744 * s/esix5r4.h:
18745 * s/hiuxmpp.h:
18746 * s/hiuxwe2.h:
18747 * s/iris3-5.h:
18748 * s/iris3-6.h:
18749 * s/isc2-2.h:
18750 * s/isc3-0.h:
18751 * s/isc4-0.h:
18752 * s/isc4-1.h:
18753 * s/newsos5.h:
18754 * s/newsos6.h:
18755 * s/osf1.h:
18756 * s/osf5-0.h:
18757 * s/riscix1-1.h:
18758 * s/riscix12.h:
18759 * s/sco4.h:
18760 * s/sco5.h:
18761 * s/sunos4-0.h:
18762 * s/sunos4-1.h:
18763 * s/sunos413.h:
18764 * s/sunos4shr.h:
18765 * s/umax.h:
18766 * s/unipl5-2.h:
18767 * s/xenix.h:
18768 * cxux-crt0.s:
18769 * unexapollo.c:
18770 * unexconvex.c:
18771 * unexenix.c:
18772 * unexsni.c: Remove files for systems no longer supported.
18773
18774 * m/intel386.h: Remove references to unsupported systems.
18775
18776 * w32.c (get_emacs_configuration): Remove reference to i860.
18777
18778 * sysdep.c: Remove dead code.
18779
187802008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18781
18782 * s/rtu.h:
18783 * m/masscomp.h: Remove files. Platform is obsolete.
18784
187852008-01-04 Michael Albinus <michael.albinus@gmx.de>
18786
18787 * dbusbind.c (Fdbus_method_return): New function.
18788 (xd_read_message): Add the serial number to the event.
18789 (Fdbus_register_method): Activate the function.
18790
187912008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18792
18793 * keyboard.c (read_key_sequence): Fix typo.
18794
187952008-01-03 Michael Albinus <michael.albinus@gmx.de>
18796
18797 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18798 (xd_signature, xd_append_arg): Handle element type detection for
18799 empty arrays.
18800 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18801 SDATA () calls; this must be solved more general.
18802 (Fdbus_register_signal): Use SBYTES instead of strlen.
18803
188042008-01-03 Magnus Henoch <magnus@zemdatav>
18805
18806 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18807 unsigned int for byte values (necessary for big-endian platform).
18808 (Fdbus_call_method): Handle the case of no returned arguments.
18809
188102007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18811
18812 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18813
188142007-12-31 Magnus Henoch <mange@freemail.hu>
18815
18816 * dbusbind.c (xd_signature): Signature of variant is just "v".
18817
188182007-12-30 Michael Albinus <michael.albinus@gmx.de>
18819
18820 * dbusbind.c: Fix several errors and compiler warnings.
18821 Reported by Tom Tromey <tromey@redhat.com>.
18822 (XD_ERROR, XD_DEBUG_MESSAGE)
18823 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18824 (xd_append_arg): Part for basic D-Bus types rewritten.
18825 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18826 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18827 appropriate.
18828 (xd_read_message): Return Qnil. Don't signal an error; it is not
18829 useful during event reading.
18830 (Fdbus_register_signal): Signal an error if the check for
18831 FUNCTIONP fails.
18832 (Fdbus_register_method): New function. The implementation is not
18833 complete, the call of the function signals an error therefore.
18834 (Fdbus_unregister_object): New function, renamed from
18835 Fdbus_unregister_signal. The initial check signals an error, if
18836 the object is not well formed.
18837
188382007-12-30 Richard Stallman <rms@gnu.org>
18839
18840 * textprop.c (get_char_property_and_overlay):
18841 Signal error if POSITION is out of range in a buffer.
18842
188432007-12-29 Martin Rudalics <rudalics@gmx.at>
18844
18845 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18846 because the original parameters are in pure storage now.
18847
188482007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18849
18850 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18851
188522007-12-22 Eli Zaretskii <eliz@gnu.org>
18853
18854 * callint.c (syms_of_callint) <command-history>: Add reference to
18855 history-length in the doc string.
18856
188572007-12-17 Jason Rumney <jasonr@gnu.org>
18858
18859 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18860 before passing as wParam.
18861
188622007-12-22 Michael Albinus <michael.albinus@gmx.de>
18863
18864 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18865 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18866 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18867 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18868 as number.
18869 (Fdbus_call_method): Fix docstring.
18870
188712007-12-21 Michael Albinus <michael.albinus@gmx.de>
18872
18873 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18874 New macros.
18875 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18876 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18877 Simplify.
18878 (xd_signature): New function.
18879 (xd_append_arg): Compute also signatures. Major rewrite.
18880 (xd_retrieve_arg): Make debug messages friendly.
18881 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18882 Check for signatures of arguments.
18883
188842007-12-19 Michael Albinus <michael.albinus@gmx.de>
18885
18886 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18887 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18888 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18889 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18890 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18891 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18892 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18893 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18894 (xd_retrieve_value): Remove. Functionality included in ...
18895 (xd_append_arg): New function.
18896 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18897
188982007-12-16 Michael Albinus <michael.albinus@gmx.de>
18899
18900 * dbusbind.c (top): Include <stdio.h>.
18901 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18902 dbus_message_new_method_call and dbus_message_new_signal.
18903 (Fdbus_register_signal): Rename unique_name to uname.
18904 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18905 non-existing unique name. Fix typos in matching rule. Return an
18906 object which is useful in Fdbus_unregister_signal.
18907 (Fdbus_unregister_signal): Reimplementation, in order to remove
18908 only the corresponding entry.
18909 (Vdbus_registered_functions_table): Change the order of entries.
18910 Apply these changes in xd_read_message and Fdbus_register_signal.
18911
189122007-12-16 Andreas Schwab <schwab@suse.de>
18913
18914 * fileio.c (Finsert_file_contents): Fix overflow check to not
18915 depend on undefined integer overflow.
18916
189172007-12-14 Jason Rumney <jasonr@gnu.org>
18918
18919 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18920 for characters above 127.
18921
189222007-12-13 Jason Rumney <jasonr@gnu.org>
18923
18924 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18925 before dereferencing array.
18926 (lookup_vk_code): Remove zero comparison.
18927
189282007-12-14 Michael Albinus <michael.albinus@gmx.de>
18929
18930 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18931 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18932 Use `unsigned int' instead of `uint'.
18933 (xd_read_message, Fdbus_register_signal): Split expressions into
18934 multiple lines before operators "&&" and "||", according to the
18935 GNU Coding Standards.
18936
189372007-12-14 Eli Zaretskii <eliz@gnu.org>
18938
18939 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18940
189412007-12-12 Juri Linkov <juri@jurta.org>
18942
18943 * buffer.c (Frename_buffer): In interactive spec replace
18944 `read-buffer' with `read-string' that uses `buffer-name-history'
18945 as history, and the current buffer's name as default.
18946
189472007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18948
18949 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18950 manipulating the backtrace manually.
18951 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18952 (struct backtrace, backtrace_list): Remove.
18953 (command_loop_1): Remove dead var `no_direct'.
18954
18955 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18956 preserve non-built-in buffer-local variables.
18957 (Fkill_all_local_variables): Don't re-create&re-set permanent
18958 buffer-local variables.
18959
189602007-12-09 Juri Linkov <juri@jurta.org>
18961
18962 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18963 Lisp code that uses `read-buffer' with current buffer as default.
18964
189652007-12-08 Michael Albinus <michael.albinus@gmx.de>
18966
18967 * dbusbind.c (xd_read_message): Generate an event for every
18968 registered handler. There might be several handlers registered
18969 for the same signal.
18970 (Fdbus_register_signal): Don't overwrite a registration for the
18971 same signal. Add a new registration if handlers are different.
18972 (Vdbus_registered_functions_table): Rework doc string.
18973
189742007-12-07 Michael Albinus <michael.albinus@gmx.de>
18975
18976 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18977 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18978 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18979 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18980 Unify argument lists.
18981 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18982 arguments and hash table keys. Use unique name for service.
18983 (Fdbus_unregister_signal): Remove checks.
18984 (Vdbus_registered_functions_table): Fix doc string.
18985
189862007-12-05 Magnus Henoch <mange@freemail.hu>
18987
18988 * process.c (make_process): Initialize pty_flag to 0.
18989
189902007-12-05 Jason Rumney <jasonr@gnu.org>
18991
18992 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18993 specified XBMs.
18994
189952007-12-05 Richard Stallman <rms@gnu.org>
18996
18997 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18998
189992007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19000
19001 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19002 New variable.
19003 (mac_try_close_socket) [MAC_OSX]: New function.
19004 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19005 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19006
19007 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19008 Use mac_try_close_socket.
19009
190102007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19011
19012 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19013 reloc_base.
19014 (copy_dysymtab): Compute relocation base here.
19015 (rebase_reloc_address) [__ppc64__]: New function.
19016 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19017 changed.
19018
190192007-12-05 Jason Rumney <jasonr@gnu.org>
19020
19021 * w32proc.c (sys_spawnve): Quote args with wildcards.
19022
190232007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19024
19025 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19026 __objc_* sections.
19027 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19028
190292007-12-05 Michael Albinus <michael.albinus@gmx.de>
19030
19031 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19032 Move check for Vdbus_registered_functions_table to
19033 xd_read_queued_messages.
19034 (xd_read_queued_messages): Protect xd_read_message calls by
19035 internal_condition_case_1.
19036
190372007-12-04 Michael Albinus <michael.albinus@gmx.de>
19038
19039 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19040 Qdbus_system_bus and Qdbus_session_bus, respectively.
19041 (Vdbus_intern_symbols): Remove.
19042 (Vdbus_registered_functions_table): New hash table.
19043 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19044 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19045 Rewrite in order to manage registered functions by hash table
19046 Vdbus_registered_functions_table.
19047
190482007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19049
19050 * xterm.c: Update URL to Window Manager Specification in comment.
19051
190522007-12-02 Michael Albinus <michael.albinus@gmx.de>
19053
19054 * config.in (HAVE_DBUS): Add.
19055
19056 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19057 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19058 (obj): Add $(DBUS_OBJ).
19059 (LIBES): Add $(DBUS_LIBS).
19060 (dbusbind.o): New target.
19061
19062 * dbusbind.c: New file.
19063
19064 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19065
19066 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19067 (Qdbus_event): New Lisp symbol.
19068 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19069 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19070 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19071
19072 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19073
190742007-12-01 Richard Stallman <rms@gnu.org>
19075
19076 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19077
190782007-11-30 Jason Rumney <jasonr@gnu.org>
19079
19080 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19081 (w32con_reset_terminal_modes): Clear screen buffer.
19082 (w32_face_attributes): Don't use color indexes that are out of range.
19083 Only reverse the default colors.
19084
19085 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19086 WINDOWSNT.
19087
19088 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19089
190902007-11-29 Jason Rumney <jasonr@gnu.org>
19091
19092 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19093 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19094 if the terminal colors are initialized.
19095 (unspecified_fg, unspecified_bg): Remove unused declarations.
19096
190972007-11-29 Andreas Schwab <schwab@suse.de>
19098
19099 * keyboard.c (apply_modifiers): Fix typo.
19100
191012007-11-29 Richard Stallman <rms@gnu.org>
19102
19103 * keymap.c (Fcurrent_local_map): Doc fix.
19104
191052007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19106
19107 * s/gnu-kfreebsd.h: New file.
19108
191092007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19110
19111 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19112 Don't cast redundantly.
19113
19114 * keyboard.c (KEY_TO_CHAR): New macro.
19115 (parse_modifiers, apply_modifiers): Accept integer arguments.
19116 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19117 for chars and symbol keys.
19118 After doing such remapping, apply function-key-map again.
19119
191202007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19121
19122 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19123 compiled anymore.
19124
191252007-11-26 Andreas Schwab <schwab@suse.de>
19126
19127 * process.c (list_processes_1): Fix indentation level of the
19128 command column.
19129
191302007-11-23 Andreas Schwab <schwab@suse.de>
19131
19132 * editfns.c (Fformat): Handle %c specially since it requires the
19133 argument to be of type int.
19134
191352007-11-23 Markus Triska <markus.triska@gmx.at>
19136
19137 * emacs.c (main): Call init_editfns before init_process, since
19138 init_process sets Vprocess_connection_type depending on OS release.
19139
191402007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19141
19142 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19143 (find_symbol_value): Use do_symval_forwarding.
19144
19145 * data.c (set_internal): Set the value in the `cons-cell' (for
19146 Buffer_Local_values) not only for frame-local variables.
19147
191482007-11-22 Andreas Schwab <schwab@suse.de>
19149
19150 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19151 values to sprintf.
19152 * keymap.c (Fsingle_key_description): Likewise.
19153 * print.c (print_object): Likewise.
19154
191552007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19156
19157 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19158 file for image is nil.
19159
191602007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19161
19162 * term.c: Include stdarg.h.
19163 (fatal): Implement using varargs.
19164 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19165
191662007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19167
19168 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19169 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19170 Update call to buffer_slot_type_mismatch.
19171 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19172 (buffer_slot_type_mismatch): Update.
19173 * buffer.c (buffer_local_types): Remove.
19174 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19175 (defvar_per_buffer): Set the type in the buffer_objfwd.
19176
191772007-11-21 Jason Rumney <jasonr@gnu.org>
19178
19179 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19180 CreateFileMapping returns NULL on failure.
19181
191822007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19183
19184 * search.c (Fset_match_data): Remove the `evaporate' feature.
19185 (unwind_set_match_data): Don't use the `evaporate' feature.
19186
191872007-11-21 Jason Rumney <jasonr@gnu.org>
19188
19189 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19190
19191 * w32console.c (w32con_write_glyphs): Remove unused variables.
19192
191932007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19194
19195 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19196
19197 * s/darwin.h (MULTI_KBOARD): Remove.
19198
19199 * macfns.c (x_create_tip_frame, Fx_create_frame)
19200 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19201
192022007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19203
19204 * buffer.c (Fbuffer_local_value): Remove redundant test.
19205 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19206 than in `current-buffer' to match the comment.
19207 Do the swap using swap_in_global_binding.
19208
19209 * data.c (store_symval_forwarding, set_internal):
19210 * eval.c (specbind): Remove dead code.
19211
19212 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19213 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19214 Since we do not want to see internal Lisp_*fwd objects here.
19215
192162007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19217
19218 * sysdep.c (init_system_name): Use getaddrinfo if available.
19219
19220 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19221 (x_scroll_bar_note_movement): start, end, with, height in struct
19222 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19223
192242007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19225
19226 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19227
192282007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19229
19230 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19231 This undoes Richard's change of 14-Oct-2002.
19232
19233 * alloc.c (allocate_other_vector):
19234 * lisp.h (allocate_other_vector): Remove.
19235
19236 * window.c (struct save_window_data): Move non-lisp data to the end
19237 and make it `int' rather than Lisp_Object.
19238 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19239 Done wrap/unwrap integer values.
19240 (Fset_window_configuration, compare_window_configurations):
19241 Update use of fields to their new types.
19242
19243 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19244 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19245 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19246 (SET_SCROLL_BAR_X_WINDOW): Remove.
19247 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19248 Access the new x_window field directly.
19249 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19250 Don't wrap/unwrap integers into Lisp_Objects.
19251 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19252 (x_scroll_bar_report_motion):
19253 Don't wrap/unwrap integers into Lisp_Objects.
19254 (x_term_init): Use SDATA.
19255 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19256 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19257 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19258 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19259 * xfns.c (x_set_background_color):
19260 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19261 Access the new x_window field directly.
19262
19263 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19264 (allocate_pseudovector): Make non-static.
19265
19266 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19267 (allocate_pseudovector): Declare.
19268 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19269
192702007-11-15 Andreas Schwab <schwab@suse.de>
19271
19272 * editfns.c (Fformat): Correctly format EMACS_INT values.
19273 Also take precision into account when formatting an integer.
19274
19275 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19276
192772007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19278
19279 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19280 (syms_of_keyboard): Defsubr it.
19281
19282 * data.c (swap_in_global_binding): Fix longstanding bug where
19283 store_symval_forwarding was not called with the right second argument,
19284 thus causing objfwd-ing from being dropped.
19285
192862007-11-14 Juanma Barranquero <lekktu@gmail.com>
19287
19288 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19289 (Fx_display_pixel_height, Fx_display_planes)
19290 (Fx_display_color_cells, Fx_server_max_request_size)
19291 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19292 (Fx_display_visual_class, Fx_display_save_under):
19293 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19294 (Fx_display_pixel_height, Fx_display_planes)
19295 (Fx_display_color_cells, Fx_server_max_request_size)
19296 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19297 (Fx_display_mm_height, Fx_display_mm_width)
19298 (Fx_display_backing_store, Fx_display_visual_class)
19299 (Fw32_select_font, Fx_display_save_under):
19300 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19301 (Fx_display_pixel_height, Fx_display_planes)
19302 (Fx_display_color_cells, Fx_server_max_request_size)
19303 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19304 (Fx_display_save_under): Fix typos in docstrings.
19305
193062007-11-14 Juanma Barranquero <lekktu@gmail.com>
19307
19308 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19309 corresponding to deleted entries; they are an implementation detail.
19310 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19311 Remove variables.
19312 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19313 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19314 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19315 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19316 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19317 (Fw32_define_rgb_color, Fw32_load_color_file)
19318 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19319 Fix typos in docstrings.
19320 (Fx_server_version): Reflow docstring.
19321 (Fw32_shell_execute): Doc fixes.
19322
193232007-11-13 Juanma Barranquero <lekktu@gmail.com>
19324
19325 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19326 if w32_parse_hot_key returned nil.
19327
193282007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19329
19330 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19331
193322007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19333
aac0c6e3
MR
19334 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19335
19336 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19337
19338 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19339 Remove W32_SCROLL_BAR_CLICK_EVENT.
19340
19341 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19342 Add MULTIMEDIA_KEY_EVENT.
19343
19344 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19345 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19346 (make_lispy_event) [WINDOWSNT]: Use it to translate
19347 MULTIMEDIA_KEY_EVENT.
19348
19349 * w32term.h (WM_APPCOMMAND): Define if not already.
19350 (GET_APPCOMMAND_LPARAM): Likewise.
19351
19352 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19353 WM_APPCOMMAND.
19354
19355 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19356 (syms_of_w32fns): Export and initialize it.
19357 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19358
193592007-11-09 Chong Yidong <cyd@stupidchicken.com>
19360
19361 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19362 twice.
19363
19364 * xdisp.c (handle_face_prop): Fix last change.
19365
193662007-11-09 Richard Stallman <rms@gnu.org>
19367
19368 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19369 not just for after-strings and before-strings.
19370 Call face_for_overlay_string and pass the overlay to it.
19371 (handle_display_prop): Determine whether property came from an overlay.
19372 Pass OVERLAY arg to handle_single_display_spec.
19373 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19374 (load_overlay_strings): Fill in it->string_overlays.
19375 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19376
19377 * xfaces.c (face_for_overlay_string): Function renamed from
19378 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19379
19380 * dispextern.h (struct it): New elt string_overlays.
19381 New elt from_overlay, also in stack.
19382 Rearrange a few elements.
19383 (face_for_overlay_string): Decl renamed from
19384 face_at_buffer_position_no_overlays, and add argument.
19385
193862007-11-09 Richard Stallman <rms@gnu.org>
19387
19388 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19389 to get the base face for an overlay string.
19390
19391 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19392
19393 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19394
19395 * xdisp.c (handle_stop): Move some code out of loop.
19396
193972007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19398
19399 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19400 Fix conversion from Lisp object to ATSUFontID.
19401
194022007-11-09 Jason Rumney <jasonr@gnu.org>
19403
19404 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19405
194062007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19407
19408 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19409 Don't assume regions are aligned to page boundary.
19410 (print_load_command_name): Add LC_UUID if defined.
19411
194122007-11-09 Richard Stallman <rms@gnu.org>
19413
19414 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19415
194162007-11-07 Jason Rumney <jasonr@gnu.org>
19417
19418 * s/windows95.h: Remove.
19419
194202007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19421
19422 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19423 abort with a message on unhandled store_type values.
19424
194252007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19426
19427 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19428 Remove HAVE_X11R5 and HAVE_X11R4.
19429
194302007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19431
19432 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19433
194342007-11-01 Johan Bockgård <bojohan@gnu.org>
19435
19436 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19437 Don't set s->stippled_p here, since it has already been set by
19438 x_set_glyph_string_gc from x_draw_glyph_string.
19439
194402007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19441
19442 * sunfns.c: Remove file.
19443
19444 * m/sun386.h:
19445 * m/sun2.h:
19446 * m/sparc.h: Remove Sun windows code.
19447
194482007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19449
19450 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19451 (init_keyboard): Set current_kboard's window-system to nil.
19452 (tty_read_avail_input): Typo.
19453 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19454
194552007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19456
19457 * s/usg5-4.h:
19458 * s/usg5-3.h:
19459 * s/ptx.h:
19460 * m/is386.h:
19461 * m/ibmps2-aix.h:
19462 * Makefile.in: Remove all mentions of X10.
19463
19464 * dispnew.c (syms_of_display): Don't mention version 10.
19465
194662007-10-28 Juanma Barranquero <lekktu@gmail.com>
19467
19468 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19469 ($(BLD)/abbrev.$(O)): Remove.
19470
194712007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19472
19473 Rewrite abbrev.c in Elisp.
19474 * image.c (Qcount): Don't declare as extern.
19475 (syms_of_image): Initialize and staticpro `Qcount'.
19476 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19477 * emacs.c (main): Don't call syms_of_abbrev.
19478 * Makefile.in (obj): Remove abbrev.o.
19479 (abbrev.o): Remove.
19480 * abbrev.c: Remove.
19481
194822007-10-26 Martin Rudalics <rudalics@gmx.at>
19483
19484 * window.c (window_min_size_2): Don't count header-line.
19485
194862007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19487
19488 * frame.h (struct frame): Move all bit fields after the first bit
19489 field to take advantage of the available space. Group all the
19490 chars together to reduce wasted space due to padding.
19491
194922007-10-26 Juanma Barranquero <lekktu@gmail.com>
19493
19494 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19495
19496 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19497 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19498 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19499 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19500 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19501 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19502 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19503 (last_marked, mark_object_loop_halt): Make static.
19504
19505 * frame.c (syms_of_frame) <delete-frame-functions>:
19506 Fix typo in docstring.
19507
195082007-10-25 Juanma Barranquero <lekktu@gmail.com>
19509
19510 * w32.c (init_environment): Fix tiny memory leak.
19511 (w32_get_resource): Remove unused variable `ok'.
19512
195132007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19514
19515 Make `window-system' into a keyboard-local variable (rather than
19516 frame-local as done originally by multi-tty).
19517
19518 * keyboard.h (struct kboard): Add Vwindow_system.
19519 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19520 (mark_kboards): Mark Vwindow_system.
19521
19522 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19523 (init_display): Don't set the obsolete `window-system' frame-param.
19524
19525 * xterm.c (x_term_init):
19526 * w32term.c (w32_create_terminal):
19527 * term.c (init_tty): Set Vwindow_system.
19528 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19529 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19530
19531 * xfns.c (Fx_create_frame, x_create_tip_frame):
19532 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19533 * macfns.c (Fx_create_frame):
19534 Don't set the obsolete `window-system' frame-param.
19535
19536 * frame.h (Qwindow_system): Remove.
19537 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19538 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19539
195402007-10-24 Richard Stallman <rms@gnu.org>
19541
19542 * frame.c (x_figure_window_size): For fullscreen case,
19543 set USPosition | PPosition without clobbering rest of window_prompting.
19544
19545 * keyboard.c (Fcurrent_idle_time): Doc fix.
19546
19547 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19548
195492007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19550
19551 * process.c (unwind_request_sigio): Only define if __ultrix__.
19552
19553 * callproc.c (child_setup): Remove spurious *.
19554
19555 * lisp.h (Fget_text_property): Declare.
19556 (have_menus_p): Declare it here rather than in sys-dep header files.
19557 * macterm.h (have_menus_p):
19558 * msdos.h (have_menus_p):
19559 * xterm.h (have_menus_p): Remove.
19560
19561 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19562 (Fmake_variable_frame_local): Just check the variable's const-ness
19563 rather than checking nil or t.
19564
195652007-10-22 Jason Rumney <jasonr@gnu.org>
19566
19567 * w32fns.c: Include math.h.
19568 (w32_abort): Declaration moved to nt/config.nt.
19569
19570 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19571 (abort): Redefinition moved to nt/config.nt.
19572
19573 * m/windowsnt.h: Remove.
19574
195752007-10-22 Juanma Barranquero <lekktu@gmail.com>
19576
19577 * emacs.c (Fdump_emacs): Fix typo in message.
19578 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19579 <installation-directory>: Reflow docstring.
19580
195812007-10-22 Juri Linkov <juri@jurta.org>
19582
19583 * minibuf.c: Allow minibuffer default to be a list of default values.
19584 With empty input use the first element of this list as returned default.
19585 (string_to_object)
19586 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19587 (read_minibuf): If defalt is cons, set histstring to its car.
19588 (Fread_string): If default_value is cons, set val to its car.
19589 (Fread_buffer): If def is cons, use its car.
19590 (Fcompleting_read): If defalt is cons, set val to its car.
19591
195922007-10-21 Michael Albinus <michael.albinus@gmx.de>
19593
19594 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19595
195962007-10-20 Juanma Barranquero <lekktu@gmail.com>
19597
19598 * doc.c (Fdocumentation): Check for advice in all cases.
19599
196002007-10-19 Chong Yidong <cyd@stupidchicken.com>
19601
19602 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19603
196042007-10-19 Richard Stallman <rms@gnu.org>
19605
19606 * doc.c (Fdocumentation): Check for and handle an advised function.
19607
196082007-10-19 Juanma Barranquero <lekktu@gmail.com>
19609
19610 * process.c (Fset_process_filter): Doc fix.
19611
196122007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19613
19614 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19615 which caused key-translation-map to applied repeatedly (thus breaking
19616 double-mode).
19617
196182007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19619
19620 * xselect.c (x_own_selection, x_handle_selection_clear)
19621 (x_clear_frame_selections):
19622 * w32menu.c (list_of_panes, list_of_items):
19623 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19624 * textprop.c (validate_plist, interval_has_all_properties)
19625 (interval_has_some_properties, interval_has_some_properties_list)
19626 (add_properties, text_property_list):
19627 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19628 * minibuf.c (Fassoc_string):
19629 * macselect.c (x_own_selection, x_clear_frame_selections)
19630 (Fx_disown_selection_internal):
19631 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19632 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19633
196342007-10-17 Chong Yidong <cyd@stupidchicken.com>
19635
19636 * process.c: Link to libs for calling res_init() if available.
19637 (Fmake_network_process): Call res_init() before getaddrinfo or
19638 gethostbyname, if possible.
19639
196402007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19641
19642 * lread.c (read1): Set pvectype for char_tables.
19643
19644 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19645 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19646 Add type checks.
19647 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19648
19649 * alloc.c (free_misc): Use XMISCTYPE.
19650 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19651
196522007-10-17 Glenn Morris <rgm@gnu.org>
19653
19654 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19655 (syms_of_minibuf): Add Qcompletion_ignore_case.
19656 * dired.c (Qcompletion_ignore_case): Change to external.
19657 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19658 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19659 (Fread_file_name): Use it rather than intern'ing.
19660
19661 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19662 (Fread_coding_system): Ignore case of user input.
19663
196642007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19665
19666 * xdisp.c (handle_display_prop): Ignore display specs after
19667 replacing one when string text is being replaced.
19668 (handle_single_display_spec): Pretend as if characters with display
19669 property haven't been consumed only when buffer text is being replaced.
19670
196712007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19672
19673 * xfns.c (Fx_create_frame, Fx_display_list):
19674 * window.c (window_fixed_size_p, enlarge_window)
19675 (shrink_window_lowest_first):
19676 * macterm.c (init_font_name_table):
19677 * macfns.c (Fx_create_frame, Fx_display_list):
19678 * lread.c (close_load_descs):
19679 * keyboard.c (read_char_x_menu_prompt):
19680 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19681 * coding.c (code_convert_region_unwind): Test the type of an object
19682 rather than just !NILP before extracting data from it.
19683
19684 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19685
19686 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19687 (XMISCANY): New macro.
19688 (XMISCTYPE): Use it.
19689 (struct Lisp_Misc_Any): New type.
19690 (union Lisp_Misc): Use it.
19691 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19692 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19693 (find_symbol_value, set_internal, default_value, Fset_default)
19694 (Fmake_variable_buffer_local, Fmake_local_variable)
19695 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19696 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19697 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19698 * alloc.c (allocate_buffer): Set the size and tag.
19699 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19700 Use XMISCANY.
19701 (die): Follow the GNU convention for error messages.
19702 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19703 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19704 tag any more.
19705 (set_buffer_internal_1):
19706 * frame.c (store_frame_param):
19707 * eval.c (specbind):
19708 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19709
19710 * doc.c (Fsnarf_documentation): Simplify.
19711
197122007-10-14 Juanma Barranquero <lekktu@gmail.com>
19713
19714 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19715 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19716
197172007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19718
19719 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19720
197212007-10-14 Juanma Barranquero <lekktu@gmail.com>
19722
19723 * eval.c (do_autoload): Don't save autoloads.
19724
19725 * data.c (Ffset): Save autoload of the function being set.
19726
197272007-10-07 John Paul Wallington <jpw@pobox.com>
19728
19729 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19730 parameter before setting up faces.
19731
197322007-10-13 Eli Zaretskii <eliz@gnu.org>
19733
19734 * ccl.c (Fregister_code_conversion_map):
19735 * keyboard.c (append_tool_bar_item): Reformat last change.
19736
19737 * lisp.h (eabs): Rename from `abs'. All callers changed.
19738
197392007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19740
19741 * buffer.c (add_overlay_mod_hooklist):
19742 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19743 * fontset.c (make_fontset):
19744 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19745 (append_tool_bar_item):
19746 * macmenu.c (grow_menu_items):
19747 * w32menu.c (grow_menu_items):
19748 * xmenu.c (grow_menu_items): Use larger_vector.
19749
197502007-10-13 Eli Zaretskii <eliz@gnu.org>
19751
19752 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19753 selected frame'' on MSDOS).
19754
197552007-10-12 Martin Rudalics <rudalics@gmx.at>
19756
19757 * frame.c (Qexplicit_name): New variable.
19758 (x_report_frame_params): Report it in parameter alist.
19759 (syms_of_frame): Intern and staticpro it.
19760
197612007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19762
19763 * macfns.c (x_create_tip_frame): Set terminal for frame.
19764
197652007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19766
19767 * frame.c (Qenvironment): Remove.
19768 (syms_of_frame) <Qenvironment>: Don't initialize.
19769 (Fdelete_frame): Don't treat the `environment' param specially.
19770 * frame.h (Qenvironment): Don't declare.
19771 * callproc.c (set_initial_environment): Don't set unused frame param.
19772
19773 * frame.c (Fframe_with_environment): Remove.
19774 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19775
19776 * lisp.h (Fframe_with_environment): Don't declare.
19777
197782007-10-10 Juanma Barranquero <lekktu@gmail.com>
19779
19780 * indent.c (indent_tabs_mode, last_known_column)
19781 (last_known_column_modified): Make static.
19782 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19783
197842007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19785
19786 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19787
197882007-10-09 Jason Rumney <jasonr@gnu.org>
19789
19790 * w32term.c (x_set_window_size): Disable code that attempts to tell
19791 Lisp code about a size change before it actually happens.
19792
197932007-10-09 Richard Stallman <rms@gnu.org>
19794
19795 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19796 return HANDLED_RETURN.
19797
197982007-10-08 Martin Rudalics <rudalics@gmx.at>
19799
19800 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19801 when there's an unread command event.
19802
19803 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19804 window autoselection act appropriately when leaving selected frame.
19805 (syms_of_frame): Initialize focus_follows_mouse.
19806 * frame.h (focus_follows_mouse): Extern it.
19807 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19808 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19809 * msdos.c (dos_rawgetc): Likewise.
19810 * w32term.c (w32_read_socket): Likewise.
19811 * xterm.c (handle_one_xevent): Likewise.
19812 * xdisp.c (syms_of_xdisp): In doc-string of
19813 mouse-autoselect-window mention focus-follows-mouse.
19814
198152007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19816
19817 * macterm.c (mac_load_query_font): Fix missing return value.
19818 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19819 Add BLOCK_INPUT.
19820
198212007-10-08 Richard Stallman <rms@gnu.org>
19822
19823 * xdisp.c (get_window_cursor_type): Implement documented behavior
19824 for cursor-in-non-selected-windows = t.
19825
198262007-10-08 Jason Rumney <jasonr@gnu.org>
19827
19828 * w32.c (w32_get_resource): Always close registry keys.
19829
198302007-10-08 Jason Rumney <jasonr@gnu.org>
19831
19832 * makefile.w32-in (LIBS): Add COMCTL32.
19833
19834 * w32fns.c (globals_of_w32fns): Init common controls.
19835
198362007-10-08 Richard Stallman <rms@gnu.org>
19837
19838 * image.c (our_memory_buffer): Rename from omfib_buffer.
19839
198402007-10-08 Richard Stallman <rms@gnu.org>
19841
19842 * buffer.c (Foverlays_at): Doc fix.
19843
198442007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19845
19846 * fns.c (Fplist_put): Preserve uneven tail data.
19847
198482007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19849
19850 * termhooks.h (enum event_kind): Remove trailing comma.
19851
19852 * frame.h (enum): Remove trailing comma.
19853
198542007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19855
19856 * w32proc.c (delete_child): Don't terminate threads of zombies.
19857
198582007-10-08 Martin Rudalics <rudalics@gmx.at>
19859
19860 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19861
19862 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19863 last-repeatable-command.
19864 (init_kboard): Initialize Vlast_repeatable_command.
19865 (command_loop_1): Set it to real_this_command unless that was
19866 bound to an input event.
19867 (mark_kboards): Mark it.
19868
198692007-10-08 Richard Stallman <rms@gnu.org>
19870
19871 * eval.c (condition-case): Doc fix.
19872
198732007-10-08 Masatake YAMATO <jet@gyve.org>
19874
19875 * xfaces.c (tty_supports_face_attributes_p): Fix code
19876 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19877 was copied and not edited.
19878
198792007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19880
19881 Add new `input-decode-map' keymap and use it for terminal
19882 escape sequences.
19883 * keyboard.h (struct kboard): Add Vinput_decode_map.
19884 Remove Vlocal_key_translation_map.
19885 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19886 (init_kboard): Init input-decode-map.
19887 Replace local-key-translation-map back with key-translation-map.
19888 (syms_of_keyboard): Declare input-decode-map.
19889 Remove local-key-translation-map. Update docstrings.
19890 (mark_kboards): Mark Vinput_decode_map.
19891 Don't mark Vlocal_key_translation_map.
19892 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19893 Replace local-key-translation-map back with key-translation-map.
19894 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19895 Bind in input-decode-map rather than function-key-map.
19896
19897 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19898 This was made redundant by the previous introduction of XSETPVECTYPE.
19899
199002007-10-09 Richard Stallman <rms@gnu.org>
19901
19902 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19903
199042007-09-29 Richard Stallman <rms@gnu.org>
19905
19906 * eval.c (internal_condition_case_2, internal_condition_case_1)
19907 (internal_condition_case): Reenable abort if x_catching_errors ()
19908 to see if that really happens and why.
19909
199102007-10-06 Andreas Schwab <schwab@suse.de>
19911
19912 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19913
199142007-10-04 Juanma Barranquero <lekktu@gmail.com>
19915
19916 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19917
199182007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19919
19920 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19921
199222007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19923
19924 * window.h (struct window):
19925 * window.c (struct save_window_data, struct saved_window):
19926 * termhooks.h (struct terminal):
19927 * process.h (struct Lisp_Process):
19928 * frame.h (struct frame):
19929 * buffer.h (struct buffer):
19930 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19931 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19932 The size field of (pseudo)vectors is now unsigned.
19933 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19934
19935 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19936 Turn `count' into an integer.
19937
19938 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19939 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19940 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19941 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19942 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19943
19944 * alloc.c (allocate_pseudovector): New fun.
19945 (ALLOCATE_PSEUDOVECTOR): New macro.
19946 (allocate_window, allocate_terminal, allocate_frame)
19947 (allocate_process): Use it.
19948 (mark_vectorlike): New function.
19949 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19950 (mark_terminals): Use it.
19951 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19952 (Fmake_byte_code): Use XSETPVECTYPE.
19953
19954 * frame.c (Fframe_parameters): Minor simplification.
19955
19956 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19957
19958 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19959
19960 * buffer.c (Fget_buffer_create, init_buffer_once):
19961 * lread.c (defsubr):
19962 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19963
19964 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19965 defined differently in the m/*.h files.
19966 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19967 (XSETPVECTYPE): New macro.
19968 (XSETPSEUDOVECTOR): Use it.
19969
19970 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19971 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19972
19973 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19974 * lread.c (defvar_per_buffer):
19975 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19976
19977 * window.c (candidate_window_p): Only consider as visible frames that
19978 are on the same terminal.
19979
19980 * m/ibms390x.h (MARKBIT): Remove unused macro.
19981
199822007-10-01 Juanma Barranquero <lekktu@gmail.com>
19983
19984 * lread.c (Fload): Fix typo in docstring.
19985
199862007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19987
19988 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19989 of a non-zero value can't yield zero.
19990
199912007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19992
19993 * term.c (term_clear_mouse_face, term_mouse_highlight)
19994 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19995
19996 * print.c (safe_debug_print): Use XHASH.
19997
19998 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19999 Lisp elements such as tags.
20000 (XHASH): New macro.
20001 (EQ): Use it.
20002 (SREF, SSET, STRING_COPYIN): Use SDATA.
20003 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20004
20005 * alloc.c (mark_terminal): Remove left-over declaration.
20006 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20007 (allocate_vectorlike): Remove type argument. Adjust callers.
20008 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20009 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20010
20011 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20012 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20013 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20014 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20015 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20016 Use them.
20017
20018 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20019 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20020 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20021
200222007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20023
20024 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20025 loaded by default.
20026
200272007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20028
20029 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20030 on this tty.
20031 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20032
20033 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20034 Update all users.
20035 (handle_one_term_event): Use Gpm_DrawPointer.
20036 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20037 Signal errors instead of returning nil. Always return nil.
20038 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20039 Make it a noop if gpm-mouse was not activated.
20040 (syms_of_term): Update names.
20041
200422007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20043
20044 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20045 (init_sys_modes): Check that gpm_tty is the current tty.
20046
20047 * alloc.c (allocate_terminal): Set the vector size to only count the
20048 lisp fields. Initialize those to nil.
20049 (mark_object): Don't treat terminals specially.
20050 (mark_terminal): Remove.
20051 (mark_terminals): Use mark_object instead.
20052
20053 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20054 the GC to the beginning.
20055
20056 * indent.h:
20057 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20058
20059 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20060
200612007-09-25 Jason Rumney <jasonr@gnu.org>
20062
20063 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20064
20065 * w32console.c (create_w32cons_output): Remove.
20066
20067 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20068
20069 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20070 (reset_sys_modes): Use reset_terminal_modes_hook.
20071
200722007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20073
20074 * eval.c (do_autoload): Don't output any message.
20075
200762007-09-24 Juri Linkov <juri@jurta.org>
20077
20078 * emacs.c (standard_args): Change priority of "--no-splash"
20079 from 40 to 3. Add "--no-desktop" with the same priority.
20080
200812007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20082
20083 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20084 and optimize the case where they are all 1.
20085
200862007-09-23 Johannes Weiner <hannes@saeurebad.de>
20087
20088 * lisp.h (abs): Define if not defined.
20089 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20090 Don't define `abs', since it's defined in lisp.h.
20091
200922007-09-22 Eli Zaretskii <eliz@gnu.org>
20093
20094 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20095 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20096 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20097 (init_tty): Use DEV_TTY instead of "/dev/tty".
20098 [WINDOWSNT]: No need to protect from NAME arg being null.
20099
201002007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20101
20102 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20103 up the tty state.
20104
201052007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20106
20107 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20108 (gpm_tty): Change its type.
20109 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20110 (gpm_tty): Change its type and initialize it.
20111 (Fterm_open_connection): Check the frame is indeed a tty.
20112 Use the new gpm_tty.
20113 (Fterm_close_connection): Use the new gpm_tty.
20114 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20115 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20116
201172007-09-21 Juanma Barranquero <lekktu@gmail.com>
20118
20119 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20120 underline_color, to draw strike-through.
20121
201222007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20123
20124 * lisp.h (allocate_terminal): Declare.
20125
20126 * window.c (candidate_window_p): Consider frames that are being placed
20127 by the user as somewhere between visible and iconified.
20128 (window_loop): Prefer windows on the current frame.
20129 (Fselect_window): Move the use of select-frame to the beginning so we
20130 can just delegate all the work (it'll call us back anyway).
20131
20132 * frame.c (Qdisplay_environment_variable):
20133 * frame.h (Qdisplay_environment_variable): Delete.
20134
20135 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20136 of the first arg, since that value may be a union.
20137
20138 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20139 parameter rather than Qdisplay_environment_variable. If all else
20140 fails, look for DISPLAY in initial-environment.
20141
201422007-09-21 Glenn Morris <rgm@gnu.org>
20143
20144 * Makefile.in (emacstool): Remove target.
20145 (lisp, shortlisp): Remove termdev.elc.
20146
201472007-09-21 Markus Triska <markus.triska@gmx.at>
20148
20149 * xterm.c (x_delete_display): Compile session management conditionally.
20150
201512007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20152
20153 * callproc.c (getenv_internal_1): New function.
20154 (getenv_internal): Use it.
20155 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20156
20157 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20158 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20159 (Fset_terminal_parameter): Work with dead terminals as well.
20160 (Fmodify_terminal_parameters): Remove.
20161
20162 * terminal.c (get_terminal): Handle terminals.
20163 Make sure the terminal returned is live.
20164 (create_terminal): Use allocate_terminal.
20165 (mark_terminals): Move to alloc.c.
20166 (delete_terminal): Use terminal->name as liveness status.
20167 NULL out fields after freeing their contents.
20168 Don't deallocate the object.
20169 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20170 rather than an int.
20171 (Fterminal_live_p): Accept non-integer arguments.
20172 (Fterminal_list): Return terminal objects rather than an ints.
20173
20174 * alloc.c (enum mem_type): New member for `terminal' objects.
20175 (allocate_terminal): New function.
20176 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20177 Handle terminals.
20178 (mark_terminal): New fun.
20179 (mark_terminals): Move from terminal.c.
20180
20181 * term.c (get_tty_terminal): Don't treat output_initial specially.
20182 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20183 (delete_tty): Use terminal->name as liveness status.
20184
20185 * termhooks.h (struct terminal): Make it into a pseudovector.
20186 Remove `deleted' replaced by checking `name's nullness.
20187
20188 * print.c (print_object): Handle terminals.
20189
20190 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20191 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20192
20193 * frame.c (make_terminal_frame):
20194 * keyboard.c (tty_read_avail_input):
20195 * w32term.c (x_delete_terminal):
20196 * xfns.c (Fx_create_frame, x_create_tip_frame):
20197 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20198
201992007-09-20 Glenn Morris <rgm@gnu.org>
20200
20201 * process.c (Fmake_network_process): Doc fix.
20202
202032007-09-19 Jason Rumney <jasonr@gnu.org>
20204
20205 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20206
202072007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20208
20209 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20210 Fix a C warning regarding variable constness.
20211
20212 * xterm.c (handle_one_xevent): Fix a C warning.
20213
202142007-09-18 Jason Rumney <jasonr@gnu.org>
20215
20216 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20217
202182007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20219
20220 * gtkutil.c (gdpy_def): New variable.
20221 (xg_initialize): Initialize gdpy_def.
20222 (xg_display_close): If no other display exists, set gdpy_def to a
20223 new connection.
20224
202252007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20226
20227 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20228 when we have no file name for the icon.
20229 (xg_tool_bar_expose_callback): Remove.
20230 (xg_create_tool_bar): Don't connect expose signal to
20231 xg_tool_bar_expose_callback.
20232 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20233
202342007-09-16 Andreas Schwab <schwab@suse.de>
20235
20236 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20237 values instead of zapping them.
20238
202392007-09-14 Glenn Morris <rgm@gnu.org>
20240
20241 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20242 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20243 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20244 scope and rename to omfib_buffer for clarity.
20245 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20246
202472007-09-14 Kenichi Handa <handa@m17n.org>
20248
20249 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20250
202512007-09-13 Jason Rumney <jasonr@gnu.org>
20252
20253 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20254
20255 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20256
20257 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20258 (mac_term_init): Call here instead, passing rif.
20259
202602007-09-13 Glenn Morris <rgm@gnu.org>
20261
20262 * s/hpux.h: No longer define `static' as nothing.
20263
202642007-09-13 Johan Bockgård <bojohan@gnu.org>
20265
20266 * callint.c (Fcall_interactively): Remove unused var `fun'.
20267
202682007-09-12 Romain Francoise <romain@orebokech.com>
20269
20270 * window.c (prefer_window_split_horizontally, display_buffer):
20271 Revert 2007-09-08 change.
20272
202732007-09-12 Glenn Morris <rgm@gnu.org>
20274
20275 * alloca.c: Remove file.
20276 * Makefile.in (alloca): Do not undef.
20277 (allocaobj, alloca.o): Remove.
20278 (otherobj): Remove allocaobj.
20279 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20280 * regex.c (C_ALLOCA): Remove all references and code that was only
20281 used when this was defined.
20282 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20283 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20284 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20285
20286 * Makefile.in (SOURCES, unlock, relock): Delete.
20287
20288 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20289 (menu_grab_callback): All uses changed.
20290
20291 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20292 (x_reply_selection_request): All uses changed.
20293
202942007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20295
20296 * lread.c (load_warn_old_style_backquotes): Change message to look
20297 better when it appears in the middle of byte-compiler messages.
20298
202992007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20300
20301 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20302
20303 * xterm.c (x_create_terminal): Add comment.
20304
20305 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20306
203072007-09-10 Richard Stallman <rms@gnu.org>
20308
20309 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20310
203112007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20312
20313 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20314 (DEFUN): Document `intspec', use it instead of `prompt'.
20315
20316 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20317
20318 * data.c (Finteractive_form): If the interactive specification starts
20319 with a `(', use it as a Lisp form.
20320
20321 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20322 name and file modes.
20323
20324 * callint.c (Fcall_interactively): Comment fixes.
20325
203262007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20327
20328 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20329 and compiled functions.
20330
203312007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20332
20333 * window.c (prefer_window_split_horizontally): New variable.
20334 (display_buffer): Consider splitting window horizontally depending
20335 on prefer_window_split_horizontally.
20336
203372007-09-08 Eli Zaretskii <eliz@gnu.org>
20338
20339 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20340
203412007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20342
20343 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20344
20345 * frame.c (x_set_frame_parameters): Check number is positive before
20346 using XFASTINT.
20347
20348 * window.c (freeze_window_start): Don't presume selected_window holds
20349 a window object.
20350 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20351
203522007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20353
20354 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20355
203562007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20357
20358 * window.c (Vsplit_window_preferred_function): New var.
20359 (Fdisplay_buffer): Use it.
20360 (syms_of_window): Export, and initialize it.
20361
203622007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20363
20364 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20365
203662007-09-06 Glenn Morris <rgm@gnu.org>
20367
20368 * gtkutil.c (menu_grab_callback) <cnt>:
20369 * xselect.c (x_reply_selection_request) <cnt>: Move static
20370 variable to file scope.
20371
203722007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20373
20374 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20375 consistent values of selected_frame and selected_window.
20376
203772007-09-04 Jason Rumney <jasonr@gnu.org>
20378
20379 * w32console.c (initialize_w32_display): Zero unused hooks.
20380
203812007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20382
20383 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20384 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20385
203862007-09-04 Jason Rumney <jasonr@gnu.org>
20387
20388 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20389 in w32console.c. Set up input. Remove XXX comments that have been
20390 confirmed as correct.
20391
20392 * s/ms-w32.h (MULTI_KBOARD): Define.
20393
20394 * w32console.c (one_and_only_w32cons): Remove.
20395 (initialize_w32_display): Take terminal argument.
20396
20397 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20398 initialize_w32_display.
20399 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20400
20401 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20402
20403 * keyboard.c (discard_mouse_events): Discard it.
20404 (make_lispy_event): Translate it to a lisp event.
20405 (lispy_wheel_names): Add wheel-left and right events.
20406 (syms_of_keyboard): Enlarge wheel_syms.
20407
20408 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20409 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20410
20411 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20412
20413 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20414 from WM_MOUSEHWHEEL.
20415 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20416
20417 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20418 terminal.
20419
20420 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20421 keyboard for the terminal.
20422
204232007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20424
20425 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20426 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20427 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20428 and resume-tty-function to resume-tty-hook.
20429 (Fsuspend_tty, Fresume_tty): Use new names.
20430
204312007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20432
20433 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20434 if it starts with "n:".
20435
204362007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20437
20438 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20439
204402007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20441
20442 * frame.h:
20443 * frame.c (Qterm_environment_variable): Remove.
20444 (syms_of_frame): Don't init and staticpro it.
20445
20446 * callproc.c (getenv_internal): Remove special case for $TERM.
20447
20448 * callproc.c (Vinitial_environment): New variable.
20449 (set_initial_environment): Initialize it.
20450 (syms_of_callproc): Declare it.
20451 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20452 TERM under which a process runs is never related to the TERM in which
20453 Emacs is running.
20454
204552007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20456
20457 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20458 * s/darwin.h: ... do it here.
20459
204602007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20461
20462 * lisp.h (set_initial_environment): Rename from set_global_environment.
20463
20464 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20465 removed by mistake on the multi-tty branch.
20466
20467 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20468 (Fmodify_frame_parameters): Return a value.
20469
20470 * image.c (png_load): Comment-out var only used in commented-out code.
20471
20472 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20473 before passing it to mark_object.
20474
20475 * xfaces.c (internal_resolve_face_name): Return a value.
20476 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20477
20478 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20479 (x_icon): Comment-out var only used in commented-out code.
20480
204812007-08-29 Romain Francoise <romain@orebokech.com>
20482
20483 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20484 QUIT hasn't been provided.
20485
204862007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20487
20488 * callproc.c (child_setup, getenv_internal): Use the
20489 display-environment-variable and term-environment-variable frame params.
20490 (set_initial_environment): Initialise Vprocess_environment.
20491
20492 * config.in: Disable multi-keyboard support on a mac.
20493
20494 * frame.c (Qterm_environment_variable)
20495 (Qdisplay_environment_variable): New variables.
20496 (syms_of_frame): Intern and staticpro them.
20497 (Fmake_terminal_frame): Disable output method test.
20498
20499 * frame.h: Declare them here.
20500
20501 * macfns.c (x_set_mouse_color): Get rif from the frame.
20502 (x_set_tool_bar_lines): Don't use updating_frame.
20503 (mac_window): Add 2 new parameters for consistency with other systems.
20504 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20505 frame parameters following what is done in X11 and w32. Don't use
20506 FRAME_MAC_DISPLAY_INFO.
20507 (Fx_open_connection, start_hourglass): Remove window-system check.
20508 (x_create_tip_frame): Get the keyboard from the terminal.
20509
20510 * macmenu.c: Reorder includes.
20511 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20512
20513 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20514 terminal parameter.
20515 (x_clear_frame): Add a frame parameter.
20516 (note_mouse_movement): Get rif from the frame.
20517 (mac_term_init): Initialize the terminal.
20518 (mac_initialize): Make static and move terminal initialization ...
20519 (mac_create_terminal): ... to this new function.
20520
20521 * macterm.h (struct mac_display_info): Add terminal.
20522 (mac_initialize): Delete declaration.
20523
20524 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20525
20526 * sysdep.c: Comment out text after #endif.
20527
20528 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20529 is defined. Better initialize ttys in windows. Use terminal
20530 specific mouse_position_hook.
20531
20532 * termhooks.h (union display_info): Add mac_display_info.
20533
20534 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20535 Set the default minibuffer frame, window_system and the rest of the
20536 frame parameters following what is done in X11.
20537
20538 * w32term.c (w32_initialize): Make static.
20539
20540 * xselect.c (x_handle_selection_clear): Only access
20541 terminal->kboard when MULTI_KBOARD is defined.
20542
20543 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20544 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20545
205462007-08-29 Jason Rumney <jasonr@gnu.org>
20547
20548 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20549 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20550
20551 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20552 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20553
20554 * keyboard.c (restore_kboard_configuration): Only define when
20555 MULTI_KBOARD defined.
20556
20557 * makefile.w32-in: Update dependancies from Makefile.in.
20558 (OBJ1): Add terminal.$(O)
20559
20560 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20561 Don't define function body.
20562 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20563
20564 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20565
20566 * w32.c (request_sigio, unrequest_sigio): Remove.
20567
20568 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20569 (w32con_clear_frame, w32con_clear_end_of_line)
20570 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20571 (w32con_delete_glyphs, w32con_set_terminal_window)
20572 (scroll_line, w32_sys_ring_bell): Add frame arg.
20573 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20574 Add terminal arg.
20575 (PICK_FRAME): Remove.
20576 (w32con_write_glyphs): Use frame specific terminal coding.
20577 (one_and_only_w32cons): New global variable.
20578 (initialize_w32_display): Use it for storing hooks.
20579 (create_w32cons_output): New function.
20580
20581 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20582 arg a frame.
20583
20584 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20585 Set window_system.
20586 (x_set_tool_bar_lines): Don't use updating_frame.
20587 (Fx_create_frame): Set terminal and ref count.
20588 (Fx_open_connection): Remove window-system check.
20589
20590 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20591
20592 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20593 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20594 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20595 Add frame arg.
20596 (x_delete_terminal, w32_create_terminal): New functions.
20597 (w32_term_init): Create a terminal.
20598 (w32_initialize): Move terminal specific initialization to
20599 w32_create_terminal.
20600
20601 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20602 (w32_clear_rect, w32_clear_area): Use background from frame.
20603 (w32_display_info): Add terminal.
20604 (w32_sys_ring_bell, x_delete_display): Declare here.
20605
20606 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20607
20608 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20609
206102007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20611
20612 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20613 Fix get_named_tty calls for the controlling tty.
20614
206152007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20616
194d44e7 20617 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20618
206192007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20620
20621 * term.c (tty_insert_glyphs): Add missing first parameter.
20622
206232007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20624
20625 * buffer.c (Fbuffer_list, Fbury_buffer):
20626 Take frame->buried_buffer_list into account.
20627
20628 * cm.c (current_tty): New variable, for cmputc().
20629 (cmputc): Use it.
20630 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20631 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20632 (cmgoto): Add tty parameter. Pass it on to calccost().
20633 Use emacs_tputs() instead of tputs().
20634
20635 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20636 tputs().
20637 (current_tty): New variable, for cmputc().
20638 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20639
20640 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20641 (internal_condition_case, internal_condition_case_1)
20642 (internal_condition_case_2): Don't abort when x_catching_errors.
20643
20644 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20645 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20646 prevent crashes caused by bogus longjmps in read_char.
20647
20648 * keymap.h (Fset_keymap_parent): Add EXFUN.
20649
20650 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20651 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20652 Remove redundant definition.
20653
20654 * macfns.c (x_set_mouse_color, x_make_gc):
20655 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20656
20657 * w32term.c (x_free_frame_resources):
20658 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20659 (w32_initialize): Use the accessor macros for terminal characteristics.
20660
20661 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20662 Use the accessor macros for terminal characteristics.
20663 * msdos.c (internal_terminal_init): Use the accessor macros for
20664 terminal characteristics.
20665 (ScreenVisualBell, internal_terminal_init):
20666 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20667
20668 * termopts.h (no_redraw_on_reenter): Declare.
20669
20670 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20671 (mark_terminals, mark_ttys): Declare.
20672 (Fgarbage_collect): Call them.
20673 (mark_object): Mark buried_buffer_list.
20674
20675 * prefix-args.c: Include stdlib.h for exit.
20676
20677 * syssignal.h: Add comment.
20678
20679 * indent.c: Include stdio.h.
20680
20681 * window.h (Vinitial_window_system): Declare.
20682 (Vwindow_system): Delete declaration.
20683
20684 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20685
20686 * image.c (lookup_image): Don't initialize `c' until the xasserts
20687 have been run.
20688
20689 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20690 FRAME_FOREGROUND_PIXEL.
20691
20692 * print.c (print_preprocess): Don't lose print_depth levels while
20693 iterating.
20694
20695 * widget.c (update_from_various_frame_slots):
20696 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20697
20698 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20699 frames.
20700 (window_internal_height): Remove bogus make_number call.
20701 (init_window_once): Call make_terminal_frame with two zero parameters.
20702
20703 * fileio.c (Fread_file_name): Update comment.
20704
20705 * callint.c (Fcall_interactively):
20706 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20707 Make sure it is correctly unwound.
20708
20709 * xsmfns.c (x_session_close): New function.
20710
20711 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20712 Delete declarations.
20713
20714 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20715 (x_output): Remove background_pixel and foreground_pixel fields.
20716 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20717 (x_delete_device, x_session_close): Declare.
20718
20719 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20720 (read_filtered_event): Call `read_char' with a local
20721 `wrong_kboard_jmpbuf'.
20722
20723 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20724 Don't call single_kboard_state. Use FRAME_RIF.
20725
20726 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20727 systems.
20728
20729 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20730 (Fframe_with_environment, Fset_input_meta_mode)
20731 (Fset_quit_char): EXFUN.
20732 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20733 (init_sys_modes, reset_sys_modes): Update prototypes.
20734 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20735
20736 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20737 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20738 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20739 Delete declarations.
20740 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20741 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20742 New declarations.
20743
20744 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20745 already does that during init_display(). Call syms_of_keymap
20746 before syms_of_keyboard. Call `syms_of_terminal'.
20747 Call set_initial_environment, not set_process_environment.
20748 (shut_down_emacs): Call reset_all_sys_modes() instead of
20749 reset_sys_modes().
20750
20751 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20752 (internal_resolve_face_name, resolve_face_name_error): New functions.
20753 (resolve_face_name): Protect against loops and errors thrown by Fget.
20754 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20755 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20756
20757 * scroll.c: Replace CURTTY() with local variables throughout the
20758 file (where applicable).
20759 (calculate_scrolling, calculate_direct_scrolling)
20760 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20761 characteristics.
20762
20763 * keymap.c (Vfunction_key_map): Remove.
20764 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20765 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20766 (Vkey_translation_map): Remove.
20767 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20768 (Fdescribe_buffer_bindings)
20769 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20770 Update for terminal-local key-translation-map.
20771
20772 * Makefile.in (callproc.o): Update dependencies.
20773 (lisp, shortlisp): Add termdev.elc.
20774 (obj): Add terminal.o.
20775 (terminal.o): Add dependencies.
20776 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20777 (data.o, fns.o): Add termhooks.h dependency.
20778 (SOME_MACHINE_LISP): Add dnd.elc.
20779 (minibuf.o): Fix typo.
20780 Update dependencies.
20781
20782 * data.c (do_symval_forwarding, store_symval_forwarding)
20783 (find_symbol_value): Use the selected frame's keyboard, not
20784 current_kboard.
20785
20786 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20787 Vwindow_system.
20788
20789 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20790 Fmenu_bar_open.
20791 (syms_of_xmenu): Update defsubr.
20792 (mouse_position_for_popup, Fx_popup_menu)
20793 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20794 (set_frame_menubar, free_frame_menubar)
b97439ce 20795 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20796 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20797 an X frame.
20798
20799 * xselect.c (x_own_selection): Abort if not an X frame.
20800 (some_frame_on_display): Check if it is an X frame.
20801 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20802
20803 * coding.c: Include frame.h and termhooks.h.
20804 (terminal_coding, keyboard_coding): Delete.
20805 (Fset_terminal_coding_system_internal)
20806 (Fset_keyboard_coding_system_internal)
20807 (Fkeyboard_coding_system)
20808 (Fterminal_coding_system): Add a terminal parameter.
20809 Get terminal_coding from the terminal.
20810 (init_coding_once): Don't call setup_coding_system here.
20811
20812 * dispextern.h (set_scroll_region, turn_off_insert)
20813 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20814 (tty_clear_end_of_line, tty_setup_colors)
20815 (delete_tty, updating_frame)
20816 (produce_special_glyphs, produce_glyphs, write_glyphs)
20817 (insert_glyphs): Remove.
20818 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20819 (tty_turn_off_highlight, get_tty_size): Add declaration.
20820 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20821
20822 * frame.h (enum output_method): Add output_initial.
20823 (struct x_output): Delete.
20824 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20825 Access foreground_pixel and background_pixel directly from the frame.
20826 (tty_display): Delete.
20827 (struct frame): Add buried_buffer_list, foreground_pixel,
20828 background_pixel and terminal. Delete kboard.
20829 (union output_data): Add tty.
20830 (FRAME_KBOARD): Get the kboard from the terminal.
20831 (FRAME_INITIAL_P): New macro.
20832 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20833 (Qterm_environment_variable, Qdisplay_environment_variable)
20834 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20835 New declarations.
20836
20837 * termchar.h (tty_output, tty_display_info): New structures.
20838 (tty_list): Declare.
20839 (FRAME_TTY, CURTTY): New macros.
20840 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20841 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20842 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20843 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20844
20845 * callproc.c: Include frame.h and termhooks.h, for terminal
20846 parameters.
20847 (add_env): New function.
20848 (child_setup): Use it.
20849 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20850 (getenv_internal): Fix get_terminal_param call.
20851 (Fgetenv_internal, egetenv): Update doc.
20852 (syms_of_callproc): Initialize Vprocess_environment to nil.
20853 Register and initialize them. Remove obsolete defvars. Update doc
20854 strings.
20855 (child_setup): Handle Vlocal_environment_variables.
20856 (getenv_internal): Add terminal parameter.
20857 Handle Vlocal_environment_variables.
20858 (Fgetenv_internal): Add terminal parameter.
20859 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20860 environment in a frame (not terminal) parameter. Update doc strings.
20861 (set_initial_environment): Rename from set_global_environment.
20862 Store Emacs environment in initial frame parameter.
20863
20864 * xdisp.c (redisplay_internal): Update references to
20865 `previous_terminal_frame'.
20866 (display_mode_line, Fformat_mode_line): Replace calls to
20867 `push_frame_kboard' with `push_kboard'.
20868 (get_glyph_string_clip_rects): Add extra parentheses and
20869 braces to prevent compiler warnings.
20870 (calc_pixel_width_or_height): Add xassert to check that the
20871 frame is alive. Don't call `lookup_image' on a termcap frame.
20872 (message2_nolog, message3_nolog, redisplay_internal)
20873 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20874 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20875 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20876 (Fx_display_pixel_width, Fx_display_pixel_height)
20877 (Fx_display_planes, Fx_display_color_cells)
20878 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20879 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20880 (Fx_display_backing_store, Fx_display_visual_class)
20881 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20882 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20883
20884 * xfns.c (x_set_foreground_color x_set_background_color)
20885 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20886 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20887 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20888 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20889 terminal that is being deleted.
20890 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20891 frame parameter, and make sure it overrides any user-supplied setting.
20892 (Fx_close_connection, Fx_synchronize): Unify argument names with
20893 the rest of the DEFUNs.
20894
20895 * dispnew.c (Fsend_string_to_terminal): Update call to
20896 `get_tty_terminal'.
20897 (Fredraw_frame, Fsend_string_to_terminal)
20898 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20899 FRAME_TERMCAP_P and FRAME_TTY.
20900 (window_change_signal): Don't believe width/height values that are
20901 impossibly small.
20902 (Vinitial_window_system): Rename from Vwindow_system.
20903 (termscript, Wcm, rif): Delete.
20904
20905 * termhooks.h (struct terminal): New struct containing the
20906 previously global text display hooks and new members NAME,
20907 DELETED and PARAM_ALIST.
20908 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20909 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20910 (FRAME_RIF): New macros.
20911 (get_terminal_param, get_device): New declarations.
20912 (termscript): Delete declaration.
20913
20914 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20915 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20916 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20917 FRAME_FOREGROUND_PIXEL.
20918 (x_fully_uncatch_errors): Disable definition.
20919 (x_scroll_bar_expose): Fix reference to foreground pixel.
20920 (XTread_socket): Disable loop on all X displays.
20921 (x_delete_terminal): Don't set terminal->deleted and let
20922 delete_terminal delete the frames on the terminal.
20923 (x_delete_display): Doc update to reflect changes in
20924 delete_terminal.
20925 (x_display_info) <terminal>: Move member earlier in the struct.
20926 (deleting_tty): Remove old variable.
20927 (Fsuspend_tty): Call clear_tty_hooks.
20928 (Fresume_tty, init_tty): Call set_tty_hooks.
20929 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20930 errors on X frames.
20931 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20932 (handle_one_xevent): Initialize `f' to NULL.
20933 (x_delete_terminal, x_create_terminal): New functions.
20934 (XTset_terminal_modes, XTreset_terminal_modes)
20935 (XTread_socket, x_connection_closed, x_term_init)
20936 (x_term_init, x_delete_display): Add terminal parameter.
20937 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20938 X connections.
20939
20940 * frame.c: Include termchar.h.
20941 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20942 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20943 (Qdisplay_environment_variable): New vars.
20944 (Fframep): Deal with output_initial.
20945 (Fframe-live-p): Doc fix.
20946 (Fwindow-system): New function.
20947 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20948 (make_terminal_frame): Don't create frames on a terminal that is
20949 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20950 (store_frame_param): Check for found_for_frame before calling XFRAME.
20951 (Fmake_terminal_frame): Handle NULL tty names correctly.
20952 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20953 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20954 frames to refer to a deleted frame in their 'environment parameter.
20955 (Fframe_with_environment): New function.
20956 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20957 (get_future_frame_param): New function.
20958 (Fmake_terminal_frame): Use it.
20959 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20960
20961 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20962 * sysdep.c (reset_sys_modes): Update for renames.
20963
20964 * keyboard.c (tty_read_avail_input): New function.
20965 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20966 (syms_of_keyboard): Defsubr them.
20967 (Fset_input_meta_mode, Fset_quit_char): New functions.
20968 (Fset_input_mode): Split to above functions.
20969 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20970 parameter. Use it in call to `read_char'.
20971 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20972 Set wrong_kboard_jmpbuf correctly in recursive calls.
20973 Use current_kboard to access Vkeyboard_translate_table.
20974 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20975 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20976 Update longjmp invocations. Remember the original current_kboard,
20977 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20978 changes it. Comment out unnecessary calls to
20979 `record_single_kboard_state' and `any_kboard_state'.
20980 Update recursive calls.
20981 (wrong_kboard_jmpbuf): Remove global variable.
20982 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20983 Handle deleted interrupted_kboards correctly; that is a legal
20984 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20985 and read_char calls. Abort if interrupted_kboard died in read_char.
20986 (any_kboard_state, single_kboard_state)
20987 (push_frame_kboard): Remove function.
20988 (pop_kboard): Switch out of single_kboard mode if the kboard has
20989 been deleted. Remove unused variable. Help debugging by not
20990 changing current_kboard unnecessarily. Set current_kboard to the
20991 kboard of the selected frame when the stored kboard object has
20992 been deleted before pop_kboard.
20993 (temporarily_switch_to_single_kboard): Change first parameter to a
20994 frame pointer. Throw an error when caller wants to change kboards
20995 while in single_kboard mode. Don't push_kboard if we weren't in
20996 single kboard state. Don't pop_kboard if we popped into any
20997 kboard state.
20998 (restore_kboard_configuration): Abort if pop_kboard changed the
20999 kboard in single_kboard mode. Call pop_kboard only after setting
21000 up single_kboard mode.
21001 (Frecursive_edit): Switch to single_kboard mode only in nested
21002 command loops.
21003 (cmd_error, command_loop, command_loop_1, timer_check):
21004 Comment out unnecessary call to `any_kboard_state' and
21005 `record_single_kboard_state'.
21006 (delete_kboard): Exit single_kboard mode if we have just deleted
21007 that kboard. Use FRAME_KBOARD.
21008 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21009 `fatal_error_signal'.
21010 (record_single_kboard_state): Don't push_kboard if we weren't in
21011 single kboard state. Don't pop_kboard if we popped into any
21012 kboard state.
21013 (push_frame_kboard): Rename to push_kboard.
21014 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21015 (read_avail_input): Read input from all terminals.
21016 (mark_kboards): Also mark Vkeyboard_translate_table.
21017 (kbd_buffer_store_event_hold): Simplify condition.
21018 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21019 (Vkeyboard_translate_table): Move to struct kboard.
21020 (init_kboard): Initialize Vkeyboard_translate_table.
21021 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21022 Vkeyboard_translate_table. Update doc strings. Update docs of
21023 local-function-key-map and function-key-map.
21024
21025 * terminal.c: New file.
21026
21027 * term.c: Include errno.h.
21028 (Vring_bell_function, device_list, initial_device)
21029 (next_device_id, ring_bell, update_begin, update_end)
21030 (set_terminal_window, cursor_to, raw_cursor_to)
21031 (clear_to_end, clear_frame, clear_end_of_line)
21032 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21033 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21034 (syms_of_term): Move their initialization to terminal.c.
21035 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21036 (Ftty_display_color_cells)
21037 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21038 (clear_tty_hooks, set_tty_hooks)
21039 (init_tty, maybe_fatal): New functions.
21040 (Ftty_type): Return nil if terminal is not on a tty instead of
21041 throwing an error. Doc update.
21042 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21043 Doc update. Initialize new subrs and variables.
21044 (delete_tty): Use terminal->deleted.
21045 (tty_set_terminal_modes): Rename from set_terminal_modes.
21046 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21047 (set_scroll_region): Rename to `tty_set_scroll_region'.
21048 (turn_on_insert): Rename to `tty_turn_on_insert'.
21049 (turn_off_insert): Rename to `tty_turn_off_insert'.
21050 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21051 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21052 (toggle_highligh): Rename to `tty_toggle_highlight'.
21053 (background_highlight): Rename to `tty_background_highlight'.
21054 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21055 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21056 (tty_set_scroll_region, tty_background_highlight)
21057 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21058 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21059 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21060 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21061 Add static modifier.
21062 (tty_reset_terminal_modes, tty_set_terminal_window)
21063 (tty_set_scroll_region, tty_background_highlight)
21064 (tty_highlight_if_desired, tty_cursor_to)
21065 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21066 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21067 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21068 renames.
21069
210702007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21071
21072 * keyboard.c: Qrtl is new.
21073 (parse_tool_bar_item): Handle :rtl keyword.
21074 (syms_of_keyboard): Intern :rtl keyword.
21075
21076 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21077
21078 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21079 so no Lisp code is executed.
21080 (file_for_image, find_rtl_image): New functions.
21081 (xg_get_image_for_pixmap): Use file_for_image.
21082 (update_frame_tool_bar): If direction is RTL, use RTL image if
21083 defined. Use Gtk stock images if defined.
21084
210852007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21086
21087 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21088 for nonexistent or zero-width glyph in composition glyph.
21089
210902007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21091
21092 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21093
21094 * xdisp.c (Finvisible_p): New function.
21095 (syms_of_xdisp): defsubr it.
21096
210972007-08-24 Juanma Barranquero <lekktu@gmail.com>
21098
21099 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21100 Doc fixes.
21101
211022007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21103
21104 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21105
211062007-08-24 Martin Rudalics <rudalics@gmx.at>
21107
21108 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21109 whether decoding has modified buffer contents.
21110
211112007-08-24 Jason Rumney <jasonr@gnu.org>
21112
21113 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21114 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21115 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21116 (init_svg_functions) [HAVE_NTGUI]: New function.
21117 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21118 (svg_load_image): Use them.
21119 (svg_load_image) [HAVE_NTGUI]: Implement background.
21120
211212007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21122
21123 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21124 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21125 (LIBX): Remove @RSVG_LIBS@.
21126 (LIBES): Add $(RSVG_LIBS).
21127
21128 * image.c (svg_load_image): Blend with specified background if exists.
21129 Use IMAGE_BACKGROUND. Add Mac OS Support.
21130
21131 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21132 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21133 Remove macros.
21134 [MAC_OSX] (socket_callback): Do nothing.
21135 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21136 ReceiveNextEvent.
21137 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21138 socket_callback.
21139 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21140
211412007-08-22 Glenn Morris <rgm@gnu.org>
21142
21143 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21144
211452007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21146
21147 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21148
21149 * image.c: Add support for SVG images. Some additional comments
21150 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21151 (svg_image_p): New function to test for SVG image.
21152 (svg_load): New function to load SVG image.
21153 (svg_load_image): New function, helper for svg_load.
21154 (Qsvg): New Lisp_object.
21155 (svg_keyword_index): New enum.
21156 (svg_format): New static `image_keyword' struct.
21157 (svg_type): New static `image_type' struct.
21158 (librsvg/rsvg.h): Include it.
21159
211602007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21161
21162 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21163
211642007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21165
21166 * lread.c (Qold_style_backquotes): New var.
21167 (syms_of_lread): Init and staticpro it.
21168 (load_warn_old_style_backquotes): New fun.
21169 (Fload): Use them to warn about old style backquotes.
21170 (end_of_file_error, Fload): Remove unused vars.
21171
21172 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21173
21174 * lread.c (Vold_style_backquotes): New var.
21175 (syms_of_lread): Init and export it to Elisp.
21176 (read1): Set it when we find an old-style (back)quote.
21177
211782007-08-22 Jason Rumney <jasonr@gnu.org>
21179
21180 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21181
211822007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21183
21184 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21185
211862007-08-19 Richard Stallman <rms@gnu.org>
21187
21188 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21189
211902007-08-19 Andreas Schwab <schwab@suse.de>
21191
21192 * alloc.c (pure): Round PURESIZE up.
21193
211942007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21195
21196 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21197 active frame.
21198
211992007-08-16 Richard Stallman <rms@gnu.org>
21200
21201 * eval.c (Fcommandp): Add parens to clarify.
21202
21203 * minibuf.c (Fall_completions): Use enum for type of table.
21204
21205 * emacs.c (USAGE2): Improve text.
21206
212072007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21208
21209 * term.c (tty_default_color_capabilities): Declare static
21210 variables in file scope, to avoid HPUX compiler problem.
21211
212122007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21213
21214 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21215 to gtk_toolbar_insert.
21216
212172007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21218
21219 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21220
21221 * insdel.c (reset_var_on_error): New fun.
21222 (signal_before_change, signal_after_change):
21223 Use it to reset (after|before)-change-functions to nil in case of error.
21224 Bind inhibit-modification-hooks to t.
21225 Don't bind (after|before)-change-functions to nil while they run.
21226
212272007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21228
21229 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21230 filling pixmap with stippled background.
21231
212322007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21233
21234 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21235 Don't use invisible frame as parent window for repositioning.
21236
212372007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21238
21239 * print.c (new_backquote_output): Rename from old_backquote_output.
21240 (print): Inverse its logic (according to its name) so as to match the
21241 behavior of new_backquote_flag in lread.c.
21242
212432007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21244
21245 * gmalloc.c (posix_memalign): New function.
21246
21247 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21248 ActivateControl/DeactivateControl here.
21249 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21250 frame-notice-user-settings is non-nil.
21251 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21252 for kEventParamFMFontStyle.
21253 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21254 mac_pass_command_to_system and mac_pass_control_to_system here.
21255 (XTread_socket): Call ActivateControl/DeactivateControl here.
21256 (XTread_socket) [TARGET_API_MAC_CARBON]:
21257 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21258 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21259 for window repositioning.
21260
212612007-08-08 Glenn Morris <rgm@gnu.org>
21262
21263 * Replace `iff' in doc-strings and comments.
21264
212652007-08-07 Chong Yidong <cyd@stupidchicken.com>
21266
21267 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21268
212692007-08-07 Martin Rudalics <rudalics@gmx.at>
21270
21271 * fileio.c (Finsert_file_contents): Run format-decode and
21272 after_insert_file_functions on entire buffer when REPLACE is
21273 non-nil and inhibit modification_hooks and point_motion_hooks.
21274 For consistency, run after_insert_file_functions iff something
21275 got inserted. Move signal_after_change and update_compositions
21276 after code running after_insert_file_functions. Make sure that
21277 undo_list doesn't record intermediate steps of the decoding process.
21278
212792007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21280
21281 * emacs.c (main)
21282 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21283 Call malloc_enable_thread on interactive startup.
21284
21285 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21286 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21287 [USE_PTHREAD]: Conditionalize with it.
21288 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21289 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21290 New functions.
21291
212922007-08-06 Chong Yidong <cyd@stupidchicken.com>
21293
21294 * xdisp.c (redisplay_window): When restoring original buffer
21295 position, make sure it is still valid.
21296
21297 * image.c (png_load): Ignore png-supplied background color.
21298
212992007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21300
21301 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21302 Use kCFAbsoluteTimeIntervalSince1970.
21303
21304 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21305 New variable.
21306 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21307 event loop should be quit.
21308 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21309 Quit dialog event loop if quit_dialog_event_loop is set.
21310
21311 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21312 (Selection): New typedef. Use instead of ScrapRef.
21313 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21314 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21315 (mac_clear_selection): Rename from clear_scrap.
21316 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21317 scrap_has_target_type. All uses changed.
21318 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21319 (mac_selection_has_target_p): New functions.
21320 (mac_put_selection_value): Rename from put_scrap_string.
21321 (mac_get_selection_value): Rename from get_scrap_string.
21322 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21323 (put_scrap_private_timestamp, scrap_has_target_type)
21324 (get_scrap_private_timestamp): Remove functions.
21325 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21326 (x_own_selection, x_get_local_selection):
21327 Use mac_valid_selection_value_p.
21328 (x_own_selection): Don't use put_scrap_private_timestamp.
21329 Record OWNERSHIP-INFO into Vselection_alist instead.
21330 (x_get_local_selection): Don't check type if request is local.
21331 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21332 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21333
213342007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21335
21336 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21337 add comment explaining why.
21338
213392007-08-03 Richard Stallman <rms@gnu.org>
21340
21341 * fileio.c (Fvisited_file_modtime): Use make_time.
21342
213432007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21344
21345 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21346 build.
21347
213482007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21349
21350 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21351
213522007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21353
21354 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21355
213562007-07-30 Richard Stallman <rms@gnu.org>
21357
21358 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21359
213602007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21361
21362 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21363
213642007-07-28 Nick Roberts <nickrob@snap.net.nz>
21365
21366 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21367 remote default-directory.
21368
21369 * buffer.c (mode-line-format): Update doc string.
21370
213712007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21372
21373 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21374 scroll bar gap.
21375 (x_scroll_bar_create): Set bar->fringe_extended_p.
21376 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21377 on frame edge. Check fringe background extension. Don't clear
21378 extended fringe background area.
21379
21380 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21381 (w32_fill_area): Enclose multiple statements with do ... while (0).
21382
21383 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21384 Extend fringe background to scroll bar gap.
21385 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21386 Set bar->fringe_extended_p.
21387 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21388 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21389 background extension. Don't clear extended fringe background area.
21390
21391 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21392 New member fringe_extended_p.
21393
213942007-07-25 Glenn Morris <rgm@gnu.org>
21395
21396 * Relicense all FSF files to GPLv3 or later.
21397
21398 * COPYING: Switch to GPLv3.
21399
214002007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21401
21402 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21403
21404 * data.c (Finteractive_form): Check for the presence of an
21405 `interactive-form' symbol property more thoroughly.
21406
21407 * data.c (Finteractive_form): Use an `interactive-form' property if
21408 present, analogous to the function-documentation property.
21409
214102007-07-24 Jason Rumney <jasonr@gnu.org>
21411
21412 * w32fns.c (x_real_positions): Get real position from OS instead of
21413 calculating it.
21414
214152007-07-23 Jason Rumney <jasonr@gnu.org>
21416
21417 * filelock.c (current_lock_owner): Allow for @ sign in username.
21418
214192007-07-22 Nick Roberts <nickrob@snap.net.nz>
21420
21421 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21422 remote default-directory.
21423
21424 * buffer.c (mode-line-format): Describe above case in doc string.
21425
214262007-07-20 Eli Zaretskii <eliz@gnu.org>
21427
21428 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21429 Define if not defined.
21430
214312007-07-18 Jason Rumney <jasonr@gnu.org>
21432
21433 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21434
214352007-07-18 Richard Stallman <rms@gnu.org>
21436
21437 * data.c (Fsetq_default): Doc fix.
21438
21439 * eval.c (Fsetq): Doc fix.
21440
214412007-07-18 Juanma Barranquero <lekktu@gmail.com>
21442
21443 * coding.c (Ffind_operation_coding_system):
21444 * eval.c (For, Fand): Doc fixes.
21445 Reported by Johan Bockgård.
21446
214472007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21448
21449 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21450
21451 * xterm.h: Declare x_ewmh_activate_frame.
21452
21453 * xterm.c (x_ewmh_activate_frame): New function.
21454 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21455
214562007-07-17 Martin Rudalics <rudalics@gmx.at>
21457
21458 * window.c (Fdisplay_buffer): If largest or LRU window is the
21459 only window, split it even if it is not eligible for splitting.
21460 This restores the original behavior broken by the 2007-07-15
21461 change.
21462
214632007-07-17 Glenn Morris <rgm@gnu.org>
21464
21465 * abbrev.c (abbrev_check_chars): New function.
21466 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21467 Call abbrev_check_chars to check abbrev characters are word
21468 constituents. Doc fix.
21469
214702007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21471
21472 * process.c (Fstart_process, Fmake_network_process)
21473 (read_process_output): Fix up last changes.
21474
214752007-07-16 Eli Zaretskii <eliz@gnu.org>
21476
21477 * makefile.w32-in (clean): Don't delete *~.
21478
214792007-07-16 Andreas Schwab <schwab@suse.de>
21480
21481 * window.c (Fdisplay_buffer): Use NILP.
21482 (Fset_window_scroll_bars): Likewise.
21483
214842007-07-15 Martin Rudalics <rudalics@gmx.at>
21485
21486 * window.c (window_min_size_2): New function.
21487 (window_min_size_1, size_window, Fdisplay_buffer)
21488 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21489 windows without mode- or header-lines when window-min-height is
21490 too small.
21491 (size_window): Reset nodelete_p after testing it, following an
21492 earlier note by Kim F. Storm.
21493 (display_buffer): Do not set split_height_threshold to twice the
21494 value of window_min_height to avoid changing the value of a
21495 customizable variable. Rather explicitly check whether the
21496 height of the window that shall be splitted is at least as large
21497 as split_height_threshold.
21498 (Fwindow_full_width_p): New defun.
21499 (syms_of_window): Defsubr it.
21500
21501 * window.h: Add EXFUN for Fwindow_full_width_p.
21502
215032007-07-14 Jason Rumney <jasonr@gnu.org>
21504
21505 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21506
215072007-07-14 Richard Stallman <rms@gnu.org>
21508
21509 * eval.c (maybe_call_debugger): New function.
21510 (find_handler_clause): Use maybe_call_debugger.
21511 Call it when the handler says `debug'.
21512 Eliminate DEBUGGER_VALUE_PTR.
21513 (Fsignal): Eliminate debugger_value.
21514 (Qdebug): New variable.
21515 (syms_of_eval): Initialize it.
21516
215172007-07-14 Juanma Barranquero <lekktu@gmail.com>
21518
21519 * eval.c (Fprogn):
21520 * keyboard.c (Ftrack_mouse):
21521 * print.c (Fwith_output_to_temp_buffer):
21522 * window.c (Fsave_window_excursion): Doc fix.
21523
215242007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21525
21526 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21527
215282007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21529
21530 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21531 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21532 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21533 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21534 Remove unused encoding_carryover.
21535 * process.c: Adjust all functions accordingly.
21536
215372007-07-12 Richard Stallman <rms@gnu.org>
21538
21539 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21540
215412007-07-11 Jason Rumney <jasonr@gnu.org>
21542
21543 * makefile.w32-in (LIBS): Include OLE32.
21544
21545 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21546 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21547
215482007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21549
21550 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21551 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21552 from a Lisp_Object into a bare pointer.
21553 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21554 Adjust the code correspondingly.
21555
21556 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21557
21558 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21559 (term_show_mouse_face): Remove unused var `j'.
21560 (handle_one_term_event): Remove unused vars `i' and `j'.
21561 Don't cast return value of ttyname since it's not necessary.
21562
215632007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21564
21565 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21566 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21567
21568 * fns.c (map_char_table): Use an array of int for `indices' rather than
21569 an array of Lisp_Objects (which are only ever integers anyway).
21570 (Fmap_char_table): Update caller.
21571 * lisp.h: Update prototype.
21572 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21573 * fontset.c (Ffontset_info):
21574 * casetab.c (set_case_table): Update callers.
21575
21576 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21577
21578 * keymap.c (struct accessible_keymaps_data)
21579 (struct where_is_internal_data): New structures.
21580 (accessible_keymaps_1, where_is_internal_1): Use them to change
21581 interface to adhere to the one used by map_keymap.
21582 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21583 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21584
21585 * keymap.h (map_keymap_function_t): More informative prototype.
21586
215872007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21588
21589 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21590 (looking_at_1): Don't change search_regs and last_thing_searched
21591 if `inhibit-changing-match-data' is non-nil.
21592 (string_match_1, search_buffer, set_search_regs): Likewise.
21593 (syms_of_search): Add Lisp level definition for
21594 `inhibit-changing-match-data' and set it to nil.
21595 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21596 start and end of the match, instead of using values in search_regs.
21597
215982007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21599
21600 * minibuf.c (Fcompleting_read): New value `confirm-only'
21601 for `require-match'.
21602
216032007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21604
21605 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21606 part of the 2007-06-27 change to syms_of_fileio.
21607
216082007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21609
21610 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21611 Check WINDOWP before using XWINDOW. Consolidate return statements.
21612
216132007-06-27 Richard Stallman <rms@gnu.org>
21614
21615 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21616
216172007-06-27 Juanma Barranquero <lekktu@gmail.com>
21618
21619 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21620
216212007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21622
21623 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21624 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21625 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21626 (_free_internal, memalign): Use them.
21627 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21628 Initialize to PTHREAD_MUTEX_INITIALIZER.
21629 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21630 (morecore_nolock): Rename from morecore. All uses changed.
21631 Use only nolock versions of internal allocation functions.
21632 (_malloc_internal_nolock, _realloc_internal_nolock)
21633 (_free_internal_nolock): New functions created from
21634 _malloc_internal, _realloc_internal, and _free_internal.
21635 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21636 Copy hook value to automatic variable before its use.
21637 (memalign): Copy hook value to automatic variable before its use.
21638
216392007-06-26 Kenichi Handa <handa@m17n.org>
21640
21641 * coding.c (Ffind_operation_coding_system): Docstring improved.
21642 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21643
216442007-06-25 David Kastrup <dak@gnu.org>
21645
21646 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21647 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21648 cater for additional parameter.
21649
21650 * keymap.h: Adjust number of parameters to `current-active-maps'.
21651
21652 * doc.c (Fsubstitute_command_keys): Adjust call of
21653 `current-active-maps'.
21654
216552007-06-25 David Kastrup <dak@gnu.org>
21656
21657 * callint.c (Fcall_interactively): Make the parsing of interactive
21658 specs somewhat more readable.
21659
216602007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21661
21662 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21663 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21664 if extended background has already been filled.
21665
216662007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21667
21668 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21669 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21670
21671 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21672 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21673 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21674 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21675 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21676 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21677 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21678 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21679 Run timers during dialog popup.
21680 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21681
216822007-06-21 Jason Rumney <jasonr@gnu.org>
21683
21684 * image.c (convert_mono_to_color_image): Swap fore and background.
21685
216862007-06-20 Jason Rumney <jasonr@gnu.org>
21687
21688 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21689 (w32_free_bdf_font): Unmap memory not handle.
21690
216912007-06-20 Sam Steingold <sds@gnu.org>
21692
21693 * gmalloc.c (__morecore): Fix the declaration to comply with the
21694 definition.
21695
216962007-06-20 Juanma Barranquero <lekktu@gmail.com>
21697
21698 * w32term.c (w32_delete_display): Remove leftover declaration.
21699 (w32_define_cursor, w32_initialize): Make static.
21700
21701 * w32.c (_wsa_errlist): Fix typo in error message.
21702 (init_environment): Ignore any environment variable from the
21703 registry having a null value.
21704
217052007-06-20 Glenn Morris <rgm@gnu.org>
21706
21707 * Makefile.in (LIBGIF): Default to -lgif.
21708
217092007-06-17 Jason Rumney <jasonr@gnu.org>
21710
21711 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21712 unicode strings.
21713
217142007-06-16 Juanma Barranquero <lekktu@gmail.com>
21715
21716 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21717 Fix typo in docstring.
21718
217192007-06-16 Eli Zaretskii <eliz@gnu.org>
21720
21721 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21722 and their keybindings.
21723
217242007-06-15 Chong Yidong <cyd@stupidchicken.com>
21725
21726 * composite.c (update_compositions): Fix last fix.
21727
217282007-06-14 Jason Rumney <jasonr@gnu.org>
21729
21730 * w32.c (get_process_times_fn): New function pointer.
21731 (globals_of_w32): Intialize it if present in kernel32.dll.
21732 (w32_get_internal_run_time): New function.
21733
21734 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21735
217362007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21737
21738 * composite.c (update_compositions): Check the validness of
21739 compositions.
21740
217412007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21742
21743 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21744 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21745
21746 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21747 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21748
21749 * macgui.h (USE_MAC_TOOLBAR): New define.
21750
21751 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21752 Return immediately unless popup is activated.
21753
21754 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21755 background to scroll bar gap.
21756 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21757 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21758 scroll bars on frame edge. Check fringe background extension.
21759 Don't clear extended fringe background area.
21760 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21761 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21762 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21763 [USE_MAC_TOOLBAR]: New macros.
21764 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21765 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21766 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21767 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21768 [USE_MAC_TOOLBAR]: New functions.
21769 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21770 manually if previous repositioning has failed.
21771 (mac_handle_keyboard_event): Use precomputed event kind.
21772 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21773 as tool bar item click. Handle mouse movement over tool bar items.
21774
21775 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21776 toolbar_win_gravity.
21777 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21778 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21779 Add externs.
21780
21781 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21782 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21783
217842007-06-14 Chong Yidong <cyd@stupidchicken.com>
21785
21786 * image.c (search_image_cache): Remove unused variable.
21787
217882007-06-13 Chong Yidong <cyd@stupidchicken.com>
21789
21790 * xfns.c, xmenu.c: Link to xaw3d if available.
21791
217922007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21793
21794 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21795 frame_foreground and frame_background.
21796
21797 * image.c (lookup_image): Save frame foreground and background colors.
21798 (search_image_cache): Check if saved and current frame colors match.
21799
218002007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21801
21802 * regex.c (regex_compile): Remove the `regnum' counter.
21803 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21804
218052007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21806
21807 * term.c: Include intervals.h to declare Fget_text_property.
21808
218092007-06-10 Jason Rumney <jasonr@gnu.org>
21810
21811 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21812
218132007-06-08 Juanma Barranquero <lekktu@gmail.com>
21814
21815 * callint.c (Fcall_interactively):
21816 * editfns.c (Fdelete_and_extract_region):
21817 * fileio.c (Fread_file_name):
21818 * fns.c (Fmapconcat):
21819 * keyboard.c (cmd_error_internal):
21820 * keymap.c (Fkey_description):
21821 * lread.c (openp):
21822 * minibuf.c (read_minibuf):
21823 * search.c (wordify):
21824 * sunfns.c (sel_read):
21825 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21826 * xfns.c (x_default_scroll_bar_color_parameter):
21827 * xmenu.c (menu_help_callback):
21828 * xselect.c (Fx_get_atom_name):
21829 * xterm.c (x_term_init): Use empty_unibyte_string.
21830
218312007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21832
21833 * alloc.c (init_strings): Initialize canonical empty strings.
21834 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21835 canonical empty string when the requested size is 0.
21836
21837 * emacs.c (empty_unibyte_string): Rename from empty_string.
21838 (empty_multibyte_string): New canonical empty string.
21839 (syms_of_emacs): Don't initialize empty_string.
21840
21841 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21842 string, if appropriate.
21843 (empty_unibyte_string, empty_multibyte_string): New externs.
21844 (empty_string): Remove extern.
21845
21846 * lread.c (syms_of_lread): Use empty_unibyte_string.
21847
218482007-06-07 Jason Rumney <jasonr@gnu.org>
21849
21850 * s/ms-w32.h: Don't define HAVE_TZNAME.
21851
21852 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21853
218542007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21855
21856 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21857
21858 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21859 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21860
21861 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21862 Don't call next handler.
21863 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21864 Remove argument. Install handler to application.
21865 (set_frame_menubar): Don't change deep_p.
21866 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21867 FRAME_OUTER_TO_INNER_DIFF_Y.
21868 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21869 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21870 [HAVE_DIALOGS]: New macros.
21871 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21872 Use them.
21873 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21874
21875 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21876 init_service_handler. All callers changed. Return OSStatus value.
21877
21878 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21879 All callers changed so as not to call SetPortWindowPort.
21880 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21881 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21882 mac_draw_string_common.
21883 (mac_draw_image_string_qd): Likewise.
21884 (mac_draw_string_common): Use them. Add INLINE.
21885 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21886 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21887 GetGlobalMouse.
21888 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21889 and FRAME_OUTER_TO_INNER_DIFF_Y.
21890 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21891 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21892 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21893 repositioning window to mac_handle_window_event.
21894 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21895 saving window location to mac_handle_window_event
21896 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21897 (install_menu_target_item_handler): Remove argument in extern.
21898 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21899 Also accept command events.
21900 (do_keystroke): New function created from XTread_socket.
21901 (init_command_handler): Remove functions.
21902 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21903 and save window location by kEventWindowShowing and kEventWindowHiding
21904 handlers here. Don't call next handler for window state change and
21905 focus events.
21906 (mac_handle_application_event, mac_handle_keyboard_event)
21907 [TARGET_API_MAC_CARBON]: New functions.
21908 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21909 kEventWindowShowing and kEventWindowHiding events. Move installation
21910 of mouse, font, text input and menu target item handlers to
21911 install_application_handler.
21912 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21913 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21914 New function.
21915 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21916 Register it.
21917 (XTread_socket) [TARGET_API_MAC_CARBON]:
21918 Consolidate SendEventToEventTarget calls.
21919 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21920 Move application activation handler to mac_handle_application_event.
21921 Move keyboard handler to mac_handle_keyboard_event.
21922 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21923 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21924 init_command_handler. Call install_application_handler.
21925
21926 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21927 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21928
219292007-06-07 Glenn Morris <rgm@gnu.org>
21930
21931 * emacs.c (main): Use `emacs-copyright' in --version output.
21932
219332007-06-06 Chong Yidong <cyd@stupidchicken.com>
21934
21935 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21936
219372007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21938
21939 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21940
21941 * macgui.h: Replace WindowPtr with WindowRef.
21942
21943 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21944 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21945 Replace ControlHandle with ControlRef.
21946 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21947
21948 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21949 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21950 Replace ControlHandle with ControlRef.
21951 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21952 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21953
21954 * macterm.h (struct scroll_bar): Rename member control_handle_low
21955 and control_handle_high to control_ref_low and control_ref_high.
21956 All uses changed.
21957 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21958 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21959 respectively. All uses changed.
21960 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21961 (install_window_handler, remove_window_handler): Replace WindowPtr
21962 with WindowRef in externs.
21963
219642007-06-05 Juanma Barranquero <lekktu@gmail.com>
21965
21966 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21967
219682007-06-03 Nick Roberts <nickrob@snap.net.nz>
21969
21970 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21971
21972 * frame.c (Fmouse_position, Fmouse_pixel_position):
21973 Condition on HAVE_GPM too.
21974
21975 * term.c (term_mouse_highlight): Remove unused variables.
21976 (Fterm_open_connection): Set gpm_zerobased to 1.
21977 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21978 Use zero based co-ordinates.
21979 (handle_one_term_event): Report a drag as mouse movement too.
21980
21981 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21982
219832007-06-03 Chong Yidong <cyd@stupidchicken.com>
21984
21985 * image.c (search_image_cache): New function. Require background
21986 color match if background color is unspecified in the image spec.
21987 (uncache_image, lookup_image): Use it.
21988
219892007-06-01 Juanma Barranquero <lekktu@gmail.com>
21990
21991 * window.c (Fshrink_window): Reflow docstring.
21992
219932007-06-02 Chong Yidong <cyd@stupidchicken.com>
21994
21995 * Version 22.1 released.
21996
219972007-06-01 Richard Stallman <rms@gnu.org>
21998
21999 * xfns.c (x_encode_text): Add GCPRO.
22000
220012007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22002
22003 * xfns.c (x_set_name_internal): Save encoded name before
22004 x_encode_text in case string data is relocated.
22005
220062007-05-31 Richard Stallman <rms@gnu.org>
22007
22008 * buffer.c (syms_of_buffer): Doc fix.
22009
220102007-05-30 Nick Roberts <nickrob@snap.net.nz>
22011
22012 * sysdep.c (init_sys_modes): Add rather than replace with
22013 O_NONBLOCK.
22014
22015 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22016 term_mouse_moveto.
22017
22018 * termhooks.h (term_mouse_moveto): New extern.
22019
22020 * term.c (mouse_face_window): Rename...
22021 (Qmouse_face_window): ...to this.
22022 (term_show_mouse_face, term_clear_mouse_face)
22023 (term_mouse_highlight): Use Qmouse_face_window.
22024 (term_mouse_moveto): New function.
22025 (term_mouse_position): Make it work.
22026 (syms_of_term): Uncomment assignment to mouse_position_hook.
22027 Staticpro Qmouse_face_window.
22028
220292007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22030
22031 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22032 around current_column call.
22033
220342007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22035
22036 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22037 * xdisp.c (next_element_from_buffer):
22038 * window.c (delete_window):
22039 * term.c (term_mouse_highlight):
22040 * msdos.c (getdefdir):
22041 * macterm.c (mac_create_bitmap_from_bitmap_data)
22042 (init_font_name_table):
22043 * fns.c (Fsxhash):
22044 * data.c (Fmake_local_variable):
22045 * ccl.c (ccl_driver): Likewise.
22046
220472007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22048
22049 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22050 Call mac_wakeup_from_rne on window size change.
22051
220522007-05-25 Chong Yidong <cyd@stupidchicken.com>
22053
22054 * image.c (uncache_image): Fix typo.
22055
220562007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22057
22058 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22059
220602007-05-22 Richard Stallman <rms@gnu.org>
22061
22062 * xterm.c (x_connection_closed): Remove NO_RETURN.
22063
220642007-05-22 Martin Rudalics <rudalics@gmx.at>
22065
22066 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22067
220682007-05-21 Chong Yidong <cyd@stupidchicken.com>
22069
22070 * image.c (uncache_image): New function.
22071 (Fimage_refresh): New function.
22072
220732007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22074
22075 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22076
220772007-05-20 Nick Roberts <nickrob@snap.net.nz>
22078
22079 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22080 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22081
220822007-05-20 Nick Roberts <nickrob@snap.net.nz>
22083
22084 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22085 conditional on [HAVE_GPM_H].
22086
220872007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22088
22089 * syntax.c (skip_chars): Update syntax-table only after we checked that
22090 the new location is valid.
22091
220922007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22093
22094 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22095 mac_get_window_bounds.
22096
220972007-05-20 Nick Roberts <nickrob@snap.net.nz>
22098
22099 * Makefile.in (LIBGPM): Allow it to be set from configure.
22100 If set then link Emacs with it.
22101
22102 * config.in: Regenerate.
22103
22104 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22105 New externs.
22106
22107 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22108 Include gpm.h.
22109 (handle_one_term_event, term_gpm): New externs.
22110
22111 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22112 and allow it to be interrupted by SIGIO.
22113
22114 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22115 (wait_reading_process_output): Wait on gpm_fd too.
22116 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22117 (add_gpm_wait_descriptor_called_flag): New variable.
22118 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22119
22120 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22121 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22122 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22123 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22124 (make_lispy_event): Add case GPM_CLICK_EVENT.
22125 (read_avail_input): Handle mouse input.
22126
22127 * term.c (write_glyphs_with_face): New function.
22128 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22129 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22130 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22131 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22132 (last_mouse_x, last_mouse_y): New variables.
22133 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22134 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22135 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22136 (Fterm_close_connection): New functions.
22137 (term_init): Initialise mouse_face_window.
22138
221392007-05-19 Chong Yidong <cyd@stupidchicken.com>
22140
22141 * xdisp.c (redisplay_window): If first window line is a
22142 continuation line, recompute the new window start instead of
22143 recentering.
22144
221452007-05-18 Glenn Morris <rgm@gnu.org>
22146
22147 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22148 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22149
221502007-05-17 Glenn Morris <rgm@gnu.org>
22151
22152 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22153
221542007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22155
22156 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22157 dead key repeat and up events.
22158
221592007-05-14 Chong Yidong <cyd@stupidchicken.com>
22160
22161 * image.c (pbm_load): Check image size for monochrome pbm.
22162
221632007-05-13 Chong Yidong <cyd@stupidchicken.com>
22164
22165 * xterm.c (XTread_socket): Revert last change.
22166
221672007-05-12 Chong Yidong <cyd@stupidchicken.com>
22168
22169 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22170
22171 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22172
221732007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22174
22175 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22176 mixup (YAILOM).
22177
221782007-05-07 Andreas Schwab <schwab@suse.de>
22179
22180 * keymap.c (Flookup_key): Fix typo in last change.
22181
221822007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22183
22184 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22185 mapping for unibyte strings.
22186
221872007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22188
22189 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22190 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22191
221922007-04-29 Richard Stallman <rms@gnu.org>
22193
22194 * insdel.c (replace_range): For undo, record insertion first.
22195
221962007-04-29 Andreas Schwab <schwab@suse.de>
22197
22198 * lisp.h (VECSIZE): Use OFFSETOF.
22199
222002007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22201
22202 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22203 disabled lines.
22204
222052007-04-28 Richard Stallman <rms@gnu.org>
22206
22207 * lread.c (read_escape): In a string, \s is always space.
22208
222092007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22210
22211 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22212
22213 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22214 submenu for menu bar items.
22215
22216See ChangeLog.10 for earlier changes.
22217
22218;; Local Variables:
22219;; coding: utf-8
22220;; add-log-time-zone-rule: t
aac0c6e3
MR
22221;; End:
22222
e3eb1dae 22223 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22224
22225 This file is part of GNU Emacs.
22226
22227 GNU Emacs is free software: you can redistribute it and/or modify
22228 it under the terms of the GNU General Public License as published by
22229 the Free Software Foundation, either version 3 of the License, or
22230 (at your option) any later version.
22231
22232 GNU Emacs is distributed in the hope that it will be useful,
22233 but WITHOUT ANY WARRANTY; without even the implied warranty of
22234 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22235 GNU General Public License for more details.
22236
22237 You should have received a copy of the GNU General Public License
22238 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22239
22240;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40