* dbusbind.c (syms_of_dbusbind): Move putenv call ...
[bpt/emacs.git] / src / ChangeLog
CommitLineData
a79b0f28
MA
12010-10-03 Michael Albinus <michael.albinus@gmx.de>
2
3 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4 (Fdbus_init_bus): ... here. (Bug#7113)
5
7b2bf907
GM
62010-10-03 Glenn Morris <rgm@gnu.org>
7
8 * buffer.c (before-change-functions, after-change-functions):
9 Three-year overdue doc fix following 2007-08-13 change.
10
1911a33b
KH
112010-10-02 Kenichi Handa <handa@m17n.org>
12
13 * coding.c (coding_inherit_eol_type): If parent doesn't specify
14 eol-format, inherit from the system's default.
15 (complement_process_encoding_system): Make a new coding system
16 inherit the original eol-format.
17
fcaf8878
KH
182010-09-30 Kenichi Handa <handa@m17n.org>
19
20 * coding.c (complement_process_encoding_system): New function.
21
22 * coding.h (complement_process_encoding_system): Extern it.
23
24 * callproc.c (Fcall_process): Complement the coding system for
25 encoding arguments.
26 (Fcall_process_region): Complement the coding system for encoding
27 the input to the process.
28
29 * process.c (Fstart_process): Complement the coding system for
30 encoding arguments.
31 (send_process): Complement the coding system for encoding what
32 sent to the process.
33
18acb5ad
KH
342010-09-29 Kenichi Handa <handa@m17n.org>
35
36 * xfont.c (xfont_open): Fix setting of font->average_width from
37 :avgwidth property (Bug#7123).
38
dec83468
MA
392010-09-28 Michael Albinus <michael.albinus@gmx.de>
40
41 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
42 is more portable.
43
44 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
45 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
46 has not defined SIGIO.
47
e0720500
MA
482010-09-27 Michael Albinus <michael.albinus@gmx.de>
49
11a5af7c 50 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
51 (Bug#7113)
52
42d3022b
J
532010-09-26 Jan Djärv <jan.h.d@swipnet.se>
54
55 * xgselect.c (xg_select): Clear file descriptors not set from
56 rfds and wfds.
57
fbb3da77
SM
582010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
59
60 * syntax.c (back_comment): Detect the case where a 1-char comment
61 starter is also the 2nd char of a 2-char comment ender.
62
2b5b82db
J
632010-09-17 Jan Djärv <jan.h.d@swipnet.se>
64
65 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
66
5f61a25c
J
672010-09-12 Jan Djärv <jan.h.d@swipnet.se>
68
69 * xterm.c (get_current_vm_state): New function.
70 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
71 want_fullscreen so set_wm_state calls are few (Bug#7013).
72 (x_handle_net_wm_state): Move code to get_current_vm_state and
73 call that function.
74
65c92e31 752010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
76
77 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
78
a552b35a
KH
792010-09-08 Kenichi Handa <handa@m17n.org>
80
81 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
82 we may use designation or locking-shift.
83
396475b7
KH
842010-09-07 Kenichi Handa <handa@m17n.org>
85
86 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
87 sequence when the source is multibyte.
88
d419e1d9
KH
892010-08-31 Kenichi Handa <handa@m17n.org>
90
91 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
92 characters.
93
94 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
95 (produce_glyphs): Don't set it->char_to_display here.
96 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
97 (produce_special_glyphs): Set temp_it.char_to_display before
98 calling produce_glyphs.
99
100 * xdisp.c (get_next_display_element): Set it->char_to_display
101 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
102 characters.
103 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
104 calling PRODUCE_GLYPHS.
105 (append_space_for_newline): Save and store it->char_to_display.
106 Set it->char_to_display before calling PRODUCE_GLYPHS.
107 (extend_face_to_end_of_line): Set it->char_to_display before
108 calling PRODUCE_GLYPHS.
109 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
110 character to its byte value.
111 (get_char_glyph_code): New function.
112 (produce_stretch_glyph): Set it2.char_to_display too before
113 calling x_produce_glyphs.
114 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
115 non-ASCII characters. Don't set it->char_to_display here.
116 Don't handle unibyte-display-via-language-environment here. For a
d419e1d9
KH
117 charater of no glyph, use font->space_width instead of FONT_WIDTH.
118
769ae9e1
KH
1192010-08-29 Kenichi Handa <handa@m17n.org>
120
121 * term.c (encode_terminal_code): Encode byte chars to the
122 correspnding bytes.
123
b72e0717
AS
1242010-08-17 Andreas Schwab <schwab@linux-m68k.org>
125
126 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
127 instead of SAFE_ALLOCA.
128
3a7a9129
CY
1292010-08-17 Chong Yidong <cyd@stupidchicken.com>
130
131 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
132 (Bug#6214).
133
983b8302
J
1342010-08-14 Jan Djärv <jan.h.d@swipnet.se>
135
136 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
137
7d1b9df3
J
1382010-08-13 Jan Djärv <jan.h.d@swipnet.se>
139
140 * doc.c (Fsnarf_documentation): Initialize skip_file before
141 build-files test.
142
2294b255
PG
1432010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
144
65b3d997
A
145 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
146 New definitions.
2294b255
PG
147 (HAVE_TERMIO): Remove.
148
7a84eee5
KH
1492010-08-06 Kenichi Handa <handa@m17n.org>
150
151 * charset.c: Include <stdlib.h>
152 (struct charset_sort_data): New struct.
153 (charset_compare): New function.
154 (Fsort_charsets): New funciton.
155 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
156
157 * coding.c (decode_coding_iso_2022): Fix checking of dimension
158 number in CTEXT extended segment.
159
f5f6c0e0
JB
1602010-08-01 Juanma Barranquero <lekktu@gmail.com>
161
162 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
163 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
164
b756c005
JB
1652010-07-30 Juanma Barranquero <lekktu@gmail.com>
166
167 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
168 (Fhash_table_size): Fix typos in docstrings.
169 (Fmake_hash_table): Doc fix.
170
b4f588fa
JB
1712010-07-28 Juanma Barranquero <lekktu@gmail.com>
172
173 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
174 Doc fix (bug#5625).
175
9f8c08a7
KB
1762010-07-27 Ken Brown <kbrown@cornell.edu>
177
178 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
179 the MSDOS definition.
180
a2a0d36b
CS
1812010-07-25 Christoph Scholtes <cschol2112@gmail.com>
182
183 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
184
a77cfeaf
CS
1852010-07-22 Christoph Scholtes <cschol2112@gmail.com>
186
187 * window.c (Fwindow_height): Doc fix (bug#6518).
188
14fb5704
JB
1892010-07-21 Juanma Barranquero <lekktu@gmail.com>
190
191 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
192
499322ce
J
1932010-07-17 Jan Djärv <jan.h.d@swipnet.se>
194
195 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
196 is related to the menu bar (Bug#6499).
197
b78f9767
J
1982010-07-14 Jan Djärv <jan.h.d@swipnet.se>
199
200 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
201
202 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
203
204 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
205 i.e. don't put back ButtonRelease (Bug#6608).
206
207 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
208 instead of Window. Call xg_event_is_for_menubar when
209 USE_GTK (Bug#6499).
210
211 * gtkutil.h (xg_event_is_for_menubar): Declare.
212
213 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
214
1f60c16a
EZ
2152010-07-14 Eli Zaretskii <eliz@gnu.org>
216
217 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
218 when it's the same as the old foreground. (Bug#6609)
219
7c33a057
CY
2202010-07-10 Chong Yidong <cyd@stupidchicken.com>
221
222 * xfaces.c (realize_face): Garbage the frame if a face is removed
223 (Bug#6593).
224
9d70a3fc
AS
2252010-07-05 Andreas Schwab <schwab@linux-m68k.org>
226
227 * keyboard.c: Remove duplicate <setjmp.h>.
228 (read_key_sequence): Remove volatile qualifiers.
229
5a874e95
YM
2302010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
231
232 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
233 (struct glyph_row): New members left_fringe_offset and
234 right_fringe_offset.
235
236 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
237 specially.
238 * w32term.c (w32_draw_fringe_bitmap): Likewise.
239 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
240
241 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
242 Take account of bitmap offset.
243 (draw_window_fringes): Take account of window vscroll.
244 (update_window_fringes): Likewise. Extend top-aligned top indicator
245 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
246 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
247 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
248
0682186e
JB
2492010-07-04 Juanma Barranquero <lekktu@gmail.com>
250
251 * w32fns.c (Qtooltip): Declare.
252 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
253
ad3e6f44
J
2542010-07-03 Jan Djärv <jan.h.d@swipnet.se>
255
256 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
257 grab on just Press (Bug#6499).
258
54ee7410
CY
2592010-07-02 Chong Yidong <cyd@stupidchicken.com>
260
261 * frame.c (Qtooltip): New var.
262 (delete_frame): Use it. Fix faulty if statement. Don't update
263 mode line for tooltip frames. Suggested by Martin Rudalics.
264
265 * xfns.c (x_create_tip_frame):
266 * w32fns.c (x_create_tip_frame): Use it.
267
3d8416fc
NA
2682010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
269
270 * xftfont.c (xftfont_open): Check font width one by one also when
271 spacing is dual.
272
273 * ftfont.c (ftfont_open): Ditto.
274
b1feb9b4
AS
2752010-06-26 Andreas Schwab <schwab@linux-m68k.org>
276
277 * alloc.c (Fmake_byte_code): Don't access undefined argument
278 (Bug#6517).
279
c7dd9743
CY
2802010-06-25 Chong Yidong <cyd@stupidchicken.com>
281
282 * xdisp.c (next_element_from_image): Ensure that after-strings are
283 read the next time we hit handle_stop (Bug#1336).
284
5721b4ed
AS
2852010-06-23 Andreas Schwab <schwab@linux-m68k.org>
286
287 * lread.c (read1): Signal error if #s is not followed by paren.
288
277c5f18
CY
2892010-06-19 Chong Yidong <cyd@stupidchicken.com>
290
52ab9bb2
CY
291 * image.c (free_image): Mark frame as garbaged (Bug#6426).
292
277c5f18
CY
293 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
294
6fda6a0c
GM
2952010-06-15 Glenn Morris <rgm@gnu.org>
296
297 * editfns.c (Fbyte_to_string): Pacify compiler.
298
e454a4a3
SM
2992010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
300
301 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
302 Check `object's type before accessing its guts.
303
657d4c0b
AS
3042010-06-08 Andreas Schwab <schwab@linux-m68k.org>
305
306 * minibuf.c (Fall_completions): Add more checks.
307
9b27fd9f
JB
3082010-06-08 Juanma Barranquero <lekktu@gmail.com>
309
310 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
311
0eb7675e
AS
3122010-06-03 Andreas Schwab <schwab@linux-m68k.org>
313
314 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 315 address. (Bug#6346)
0eb7675e 316
78edd3b7
JB
3172010-06-03 Juanma Barranquero <lekktu@gmail.com>
318
319 * ccl.c (Fccl_program_p): Fix typo in docstring.
320
1ab8293c
SM
3212010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
322
323 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
324 of bug#6305).
325
5ca3929b
CY
3262010-05-27 Chong Yidong <cyd@stupidchicken.com>
327
328 * xdisp.c (redisplay_window): After redisplay, check if point is
329 still valid before setting it (Bug#6177).
330
f5b416d2 3312010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
332
333 * s/netbsd.h: If terminfo is found, use it in preference to
334 termcap. (Bug#6190) [Backport from trunk]
335
aeb77d46
CY
3362010-05-20 Kevin Ryde <user42@zip.com.au>
337
338 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
339 (Voverriding_terminal_local_map, Vsystem_key_alist)
340 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
341
c3bb441d
SM
3422010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
343
344 * editfns.c (Fbyte_to_string): New function.
345
754790b6
CY
3462010-05-18 Chong Yidong <cyd@stupidchicken.com>
347
348 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
349 prevent stack overflow if number of arguments is too large
350 (Bug#6214).
351
c8670ded
EZ
3522010-05-11 Eli Zaretskii <eliz@gnu.org>
353
354 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
355
356 * w32fns.c: Include w32.h.
357 (Fw32_shell_execute): Decode the error message before passing it
358 to `error'. (Bug#6126)
359
3ffd4615 3602010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
361
362 * ftfont.c: Fix incorrect parentheses of #if condition for
363 definining M17N_FLT_USE_NEW_FEATURE.
364
61a808e8
CY
3652010-05-07 Chong Yidong <cyd@stupidchicken.com>
366
367 * Version 23.2 released.
368
5dcde606
AS
3692010-04-30 Andreas Schwab <schwab@linux-m68k.org>
370
371 * composite.c (autocmp_chars): Save point as marker before calling
372 auto-composition-function (Bug#5984).
373
374 * lisp.h (restore_point_unwind): Add prototype.
375
376 * fileio.c (restore_point_unwind): Remove static attribute.
377
c4170e32
KH
3782010-04-23 Kenichi Handa <handa@m17n.org>
379
380 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
381 new feature of libotf and m17n-flt.
65b3d997
A
382 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
383 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
384 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
385 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
386 that OUT is NULL. Use OTF_drive_gsub_with_log and
387 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
388 OTF_drive_gpos.
389 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
390 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
391 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 392
e42cd1a7
JB
3932010-04-19 Juanma Barranquero <lekktu@gmail.com>
394
395 * dired.c (Ffile_attributes): Fix typo in docstring.
396
79353a53
AR
3972010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
398
399 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
400 NSInteger (Bug#5811).
401
658b9b93
YM
4022010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
403
404 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
405 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
406
16009a0e
YM
4072010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
408
409 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
410
f016f225
JD
4112010-04-07 Jan Djärv <jan.h.d@swipnet.se>
412
413 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
414 FRAME_LINE_TO_PIXEL_Y.
415
416 * xterm.c (x_set_window_size_1): Don't add border_width/height to
417 pixelwidth/height.
418
84257d93
CY
4192010-04-05 Chong Yidong <cyd@stupidchicken.com>
420
421 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
422 terminal frames (Bug#5837).
423
95b1abcf
CY
4242010-03-31 Chong Yidong <cyd@stupidchicken.com>
425
426 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
427 * nsterm.h: Fix prototype.
428
4a217bed
EZ
4292010-03-31 Eli Zaretskii <eliz@gnu.org>
430
431 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
432 in this function. (Bug#5703)
433
4f103e04
CY
4342010-03-31 Chong Yidong <cyd@stupidchicken.com>
435
436 * nsterm.h: Fix last change.
437
a6d676d9
CY
4382010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
439
440 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
441
67fee863
JD
4422010-03-30 Jan Djärv <jan.h.d@swipnet.se>
443
444 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
445 invisible (Bug#5766).
446
9ae6e189
CY
4472010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
448
449 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
450 HAVE_NS conditionals.
194d44e7 451 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
452
453 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
454 filename for the title.
455 (ns_set_doc_edited): Do nothing if the selected window is a
456 minibuffer window.
457
458 * nsterm.h: Add prototypes for ns_set_name_as_filename and
459 ns_set_doc_edited.
460
461 * nsterm.m: Remove unneeded prototype.
462
25c72475
GM
4632010-03-28 Glenn Morris <rgm@gnu.org>
464
465 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
466 in the DOC file. (Bug#5336)
467
f79a01db
CY
4682010-03-24 Chong Yidong <cyd@stupidchicken.com>
469
470 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
471
93318cbd
JD
4722010-03-20 Jan Djärv <jan.h.d@swipnet.se>
473
474 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
475
476 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
477
478 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
479
ad13a3ee
YM
4802010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
481
482 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
483 XLoadQueryFont.
484
fbdc1721
KH
4852010-03-16 Kenichi Handa <handa@m17n.org>
486
487 * coding.c (decode_coding_ccl): Fix previous change for the
488 multibyte case.
fb608df3
KH
489 (encode_coding_ccl): Don't setup ccl program here. Fix for the
490 case that the output buffer is fullfilled.
491 (encode_coding): Setup ccl program here.
fbdc1721 492
35cd7cd6
CY
4932010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
494
495 * editfns.c (Fformat): Account for string precision when computing
496 field width (Bug#5710).
497
618db430
SM
4982010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
499
c0335e02
SM
500 Make it possible to C-g in a tight bytecode loop again (bug#5680).
501 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
502 (QUIT): Use it to consolidate code and remove redundancy.
503 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
504
254c06a8
SM
505 * regex.c (regex_compile): Setup gl_state as well.
506
618db430
SM
507 * syntax.c (skip_chars): Setup gl_state (bug#3823).
508 (in_classes): Use CONSP before XCAR/XCDR.
509
233f0c9f
CY
5102010-03-03 Chong Yidong <cyd@stupidchicken.com>
511
512 * keymap.c (Fwhere_is_internal): Use Fequal to compare
513 definitions, so that keyboard macros are correctly handled
514 (Bug#5481).
515
75f80e63
EZ
5162010-03-02 Eli Zaretskii <eliz@gnu.org>
517
518 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
519 text that could be relocated inside the call to emacs_mule_char.
520 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
521 (CODING_DECODE_CHAR): Add a comment describing its purpose.
522
dcfb9bc4
KH
5232010-03-02 Kenichi Handa <handa@m17n.org>
524
fc9a17bc
KH
525 * character.c (parse_str_as_multibyte): Fix handling of the
526 multibyte form of raw-bytes.
527 (str_as_multibyte): Likewise.
528
dcfb9bc4
KH
529 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
530 form of raw-bytes.
531
412c01b6
CY
5322010-02-28 Chong Yidong <cyd@stupidchicken.com>
533
534 * charset.c (load_charset_map_from_file)
535 (load_charset_map_from_vector): Zero out allocated
536 charset_map_entries before using them.
537
df7e1ea0
AS
5382010-02-27 Andreas Schwab <schwab@linux-m68k.org>
539
540 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
541
fe69a722
CY
5422010-02-27 Chong Yidong <cyd@stupidchicken.com>
543
4ed28cf4
CY
544 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
545 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 546
7379cfce
KH
5472010-02-26 Kenichi Handa <handa@m17n.org>
548
f88cc4d6
KH
549 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
550
7379cfce
KH
551 * xdisp.c (reseat_to_string): Fix previous change.
552
cf2fdcfb
CY
5532010-02-26 David Reitter <david.reitter@gmail.com>
554
555 * nsfont.m (nsfont_draw): ns_antialias_text should be a
556 Lisp_Object (Bug#4736).
557
cc6c7c75
KH
5582010-02-25 Kenichi Handa <handa@m17n.org>
559
560 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
561
32e737d7
JD
5622010-02-24 Jan Djärv <jan.h.d@swipnet.se>
563
564 * xterm.c (XTflash): Move declarations before statements.
565
566 * gtkutil.c (xg_get_gdk_display): Remove (unused).
567 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
568 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
569 (xg_create_tool_bar): Remove unused variables.
570 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 571 (xg_create_frame_widgets): Remove variable grav.
32e737d7 572
676cae9f
CY
5732010-02-21 Chong Yidong <cyd@stupidchicken.com>
574
575 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
576
886cc2b8
SM
5772010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
578
579 * term.c (fatal): Add a final \n if needed (bug#5596).
580
ddb2d8e2
CY
5812010-02-18 Chong Yidong <cyd@stupidchicken.com>
582
583 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
584
2a4f8d3d
GM
5852010-02-18 Glenn Morris <rgm@gnu.org>
586
587 * callint.c (Finteractive): Doc fix.
588
ebaf11b6
KH
5892010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
590
886cc2b8
SM
591 * coding.c (record_conversion_result):
592 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
593 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
594 memory allocation error.
595
d0396581
KH
5962010-02-17 Kenichi Handa <handa@m17n.org>
597
886cc2b8
SM
598 * coding.c (decode_coding_ccl): Don't setup ccl program here.
599 Fix for the case that the output buffer is fullfilled.
d0396581
KH
600 (decode_coding): Setup ccl program here. Keep looping when the
601 decoder stopped because the output buffer is
602 fullfilled (bug#5534).
603
604 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
605
98599f74
JD
6062010-02-13 Jan Djärv <jan.h.d@swipnet.se>
607
471e4f04 608 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 609 bug #5571.
886cc2b8 610 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 611 overdrawn.
98599f74 612
182659ae
JD
6132010-02-10 Jan Djärv <jan.h.d@swipnet.se>
614
615 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
616 doing_interact here.
617 (ice_connection_closed): New function.
618 (x_session_check_input, smc_die_CB, ice_io_error_handler)
619 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
620 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
621 returns I/O error.
622 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
623 bug #5512.
624
9be32c4e 6252010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
626
627 * nsfont.m (nsfont_open): The system's value for the font descent
628 is negative, so round it down to avoid clipping.
629
a2f3eb19
CY
6302010-02-06 Chong Yidong <cyd@stupidchicken.com>
631
632 * charset.c (load_charset_map_from_file)
633 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 634 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 635
3088147c
CY
6362010-02-05 Chong Yidong <cyd@stupidchicken.com>
637
638 * charset.c (load_charset_map_from_file): Allocate large
639 charset_map_entries structure on the heap rather than the stack.
640 (Bug#5526).
641
b57d9029
KH
6422010-01-31 Kenichi Handa <handa@m17n.org>
643
644 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 645 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 646
c67d885b
CY
6472010-01-31 Chong Yidong <cyd@stupidchicken.com>
648
649 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
650 <deactivated@gmail.com> (Bug#3605).
651
8fab2362
CY
6522010-01-31 David De La Harpe Golden <david@harpegolden.net>
653
654 * fileio.c (Frename_file): Correctly rename symlinks to
655 directories (Bug#5496).
656
cb2a62f2
CY
6572010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
658
659 * nsterm.m (ns_ring_bell): Handle visible bell like X.
660
944c7a26
AS
6612010-01-30 Andreas Schwab <schwab@linux-m68k.org>
662
663 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
664
c024ac08
CY
6652010-01-29 Chong Yidong <cyd@stupidchicken.com>
666
667 * frame.c (DEFAULT_ROWS): Change default to 35.
668
669 * xfns.c (x_default_font_parameter): Change default XFT font to
670 monospace-10 (Bug#3643).
671
af93af83
EZ
6722010-01-29 Eli Zaretskii <eliz@gnu.org>
673
674 * w32inevt.c (key_event): Remove unnecessary comparison of
675 event->uChar.AsciiChar with 128.
676
ca0eb708
CY
6772010-01-28 Chong Yidong <cyd@stupidchicken.com>
678
b242dbfc
CY
679 * fileio.c (Frename_file): Fix last change (Bug#5487).
680
ca0eb708
CY
681 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
682
683 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
684
45d45af5
JD
6852010-01-28 Jan Djärv <jan.h.d@swipnet.se>
686
687 * xfns.c (Fx_create_frame): Remove window size matching code from
688 2010-01-15.
a73f9c9d 689 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 690
7e233730
JR
6912010-01-27 Jason Rumney <jasonr@gnu.org>
692
693 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 694 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 695
86e893e3
KH
6962010-01-27 Kenichi Handa <handa@m17n.org>
697
698 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 699 pattern string (Bug#4209).
86e893e3 700
8719abec
CY
7012010-01-27 David De La Harpe Golden <david@harpegolden.net>
702
703 * fileio.c (Frename_file): Call copy-directory and
704 delete-directory for directories, in order to handle cross-device
705 renaming (Bug#3353).
706
844794c8
JD
7072010-01-25 Jan Djärv <jan.h.d@swipnet.se>
708
aa3e13b5 709 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 710 sizes 24 and 10. Bug #3643.
844794c8 711
bd4b5750
SM
7122010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
713
8dc1adf6 714 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
715 * keymap.c (shadow_lookup): Add `remap' arg.
716 (describe_map, describe_vector): Update calls to shadow_lookup.
717 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
718 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
719 perform remapping during shadow_lookup check of remapped_sequences.
720
285d07e2
CY
7212010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
722
723 * image.c (png_load): Use png_sig_cmp instead of the obsolete
724 png_check_sig, which has been removed in libpng 1.4.
725
c6d09b8d
CY
7262010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
727
728 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
729 lacks this header file).
730
3d782998
YM
7312010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
732
733 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
734 as in Emacs 22.
735
2aff7c53
YM
7362010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
737
738 * lisp.h (make_pure_string): String pointer arg now points to const.
739
740 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
741 args now point to const.
742
74327f7a
EZ
7432010-01-22 Eli Zaretskii <eliz@gnu.org>
744
745 * lread.c (Fload): Don't treat files without .elc extension as
746 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
747 them. (bug#5303)
748
4d1e6632
KH
7492010-01-20 Kenichi Handa <handa@m17n.org>
750
751 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
752 treat the source as actual byte sequence.
753
1fdede8f
AM
7542010-01-19 Alan Mackenzie <acm@muc.de>
755
756 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 757 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
758 `signal_after_change_p' to `coherent_change_p', and make the
759 invocation of `modify_region' conditional on it.
760
67477f30
JD
7612010-01-19 Jan Djärv <jan.h.d@swipnet.se>
762
763 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
764 for debug purpose.
765 (syms_of_xsettings): Declare xft-settings.
766
244b023e
CY
7672010-01-18 Chong Yidong <cyd@stupidchicken.com>
768
769 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
770
617364fe
CY
7712010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
772
773 * xterm.c (event_handler_gdk): Block input (Bug#5037).
774
4fe22cdf
CY
7752010-01-16 Chong Yidong <cyd@stupidchicken.com>
776
777 * emacs.c (standard_args): Adjust arg priorities to reflect how
778 they are processed in startup.el.
779
e118d2be
AS
7802010-01-16 Andreas Schwab <schwab@linux-m68k.org>
781
782 * Makefile.in (lisp, shortlisp): Update.
783
523ae620
SM
7842010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
785
786 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
787 code, link the new kboard into all_kboard before running Lisp code,
788 and protect the new terminal with GCPRO (Bug#5365).
789 (x_term_init): Remove unused var `atom'.
790 (x_delete_display, x_delete_terminal): Remove unused var `i'.
791
f0d13888
JD
7922010-01-15 Jan Djärv <jan.h.d@swipnet.se>
793
794 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
795 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
796 to find out usable size of the desktop. Don't make frames larger than
ac146f82 797 this. Bug #3643.
f0d13888 798
cc320f07
KH
7992010-01-15 Kenichi Handa <handa@m17n.org>
800
801 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
802
7ffdf101
CY
8032010-01-15 Chong Yidong <cyd@stupidchicken.com>
804
805 * nsterm.m (Qnone): Define.
806
807 * nsfns.m (Qnone): Move definition to nsterm.m.
808
d12bd917
KH
8092010-01-14 Kenichi Handa <handa@m17n.org>
810
811 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
812 systems.
813
d9a7c140
KH
8142010-01-14 Kenichi Handa <handa@m17n.org>
815
816 Make auto-composition work on all buffers even if they are
817 fundamental mode.
818
819 * composite.c (Vauto_composition_mode): New variable.
820 (composition_compute_stop_pos): Check Vauto_composition_mode
821 instead of Vauto_composition_function.
822 (composition_adjust_point, Ffind_composition_internal): Likewise.
823 (syms_of_composite): Declare Lisp variable
824 "auto-composition-mode" here.
825
63286bb2
CY
8262010-01-13 Chong Yidong <cyd@stupidchicken.com>
827
828 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
829 during call to vendor-specific-keysyms (Bug#5365).
830
c2623ee7
YM
8312010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
832
833 * keyboard.c (input_available_signal) [SYNC_INPUT]:
834 Call SIGNAL_THREAD_CHECK (Bug#5333).
835
836 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
837 Call SIGNAL_THREAD_CHECK.
838
0b5397c2
SM
8392010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
840
841 Try to fix bug#5314. This is probably not the final word, tho.
842 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
843 recent-auto-save-p as a side-effect.
844 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
845 * buffer.c (Fkill_buffer, reset_buffer):
846 * editfns.c (Fsubst_char_in_region):
847 * fileio.c (Finsert_file_contents, Fdo_auto_save)
848 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
849
dc954cb2
KH
8502010-01-13 Kenichi Handa <handa@m17n.org>
851
852 Display buffer name, etc. in mode line by composing correctly.
853
854 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
855 STRING is not nil.
0b5397c2 856 (display_mode_element): Adjust for the change of
dc954cb2
KH
857 decode_mode_spec and display_line.
858 (decode_mode_spec): Change arg MULTIBYTE to STRING.
859 (display_string): Handle the case that STRING is non-null and
860 LISP_STRING is not nil.
861
0b5397c2
SM
862 * xterm.c (x_draw_composite_glyph_string_foreground):
863 Pay attention to s->face->overstrike.
dc954cb2
KH
864
865 * composite.c (composition_reseat_it): Don't check PT if STRING is
866 non nil.
867
4a00eaca
YM
8682010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
869
870 * keyboard.c (read_char): Don't apply previous change when current
871 buffer is unchanged by command execution.
872
60abb287
JD
8732010-01-12 Jan Djärv <jan.h.d@swipnet.se>
874
875 * keyboard.c (read_char): Return after executing from special map.
876
893db5bc
GM
8772010-01-12 Glenn Morris <rgm@gnu.org>
878
879 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
880 bug-gnu-emacs rather than emacs-pretest-bug.
881
4d03ece0
CY
8822010-01-11 Chong Yidong <cyd@stupidchicken.com>
883
884 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
885 initializing the Lisp variables that depend on them.
886
1df47e38
YM
8872010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
888
889 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
890 Clear areas that will not be updated after change of menu bar lines.
891 Clear the menu bar window's current matrix when the window gets empty.
892
2f1c6384
CY
8932010-01-09 Chong Yidong <cyd@stupidchicken.com>
894
e398c61c
CY
895 * intervals.h, textprop.c (extend_property_ranges): Return value
896 and args changed. Discard properties that begin at or after the
897 new end (Bug#5306).
898
899 * editfns.c (Fformat): Caller changed.
900
e5a29a10
CY
901 * nsterm.m (ns_set_default_prefs): Delete function.
902 (syms_of_nsterm): Initialize ns_command_modifier,
903 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
904 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
905
2f1c6384
CY
906 * xdisp.c (pos_visible_p): Check for invisible text at the correct
907 position (Bug#4040).
908
d427a9fa
EZ
9092010-01-09 Eli Zaretskii <eliz@gnu.org>
910
911 * editfns.c (Ffloat_time): Doc fix.
912
21b9df2f
JD
9132010-01-09 Jan Djärv <jan.h.d@swipnet.se>
914
915 * xfns.c (Fx_create_frame): Don't create frame larger than display
916 by default bug#3643.
917
4b00d3b1
YM
9182010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
919
920 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
921 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
922 windows above internal border.
923
924 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
925 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
926 windows above internal border.
927
928 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
929 tool bar windows specially.
930
931 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
932
933 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
934 specially.
935 (XTflash): Take account of menu bar height.
936
937 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
938 specially.
939
5075d853
JD
9402010-01-08 Jan Djärv <jan.h.d@swipnet.se>
941
ac146f82 942 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
943 also be true before we can return early (bug #5339).
944
474217c8
CY
9452010-01-06 David Reitter <david.reitter@gmail.com>
946
947 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
948 (Fns_display_usable_bounds): Rewrite, computing bounds properly
949 (Bug#3233).
950
c0e6d47d
JD
9512010-01-06 Jan Djärv <jan.h.d@swipnet.se>
952
d0cf45b7
JD
953 * font.c (font_open_entity): Enable chache and call cached_font_ok
954 for the driver if defined.
955 (QCuser_spec): New symbol.
956 (font_spec_from_name): Save name as user-spec.
957 (font_load_for_lface): Keep user-spec instead of name.
958 (font_open_by_name): Save name as user-spec.
959 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 960 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
961
962 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
963 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
964 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
965
966 * font.h (struct font_driver): Add cached_font_ok.
967
c0e6d47d
JD
968 * xterm.c (x_clear_frame): Queue draw for scroll bars.
969
7c583cd8
JD
9702010-01-05 Jan Djärv <jan.h.d@swipnet.se>
971
972 * xterm.c (x_new_font): Move code for setting rows/cols before
973 resizing ...
ac146f82 974 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
975
976 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
977 (xg_frame_resized, xg_frame_set_char_size):
978 Call xg_clear_under_internal_border.
7c583cd8 979 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 980
03f77f0a
CY
9812010-01-05 Chong Yidong <cyd@stupidchicken.com>
982
983 * keyboard.c (read_key_sequence): Catch keyboard switch after
984 making a new tty frame (Bug#5095).
985
2a1ef5be
KH
9862010-01-05 Kenichi Handa <handa@m17n.org>
987
988 * fontset.c (fontset_find_font): Fix getting the frame pointer.
989
e3eb1dae
SM
9902010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
991
992 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
993 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
994 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
995
777013f2
MA
9962010-01-03 Michael Albinus <michael.albinus@gmx.de>
997
998 * dbusbind.c (xd_add_watch): Improve debug message.
999 (xd_remove_watch): Improve debug message. If DATA is the session
1000 bus, unset D-Bus session environment.
1001 (Fdbus_init_bus): Pass the bus as argument to
1002 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1003
8932b1c2
CY
10042010-01-01 Chong Yidong <cyd@stupidchicken.com>
1005
87231e2c
CY
1006 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1007
4801c5fa
CY
1008 * lread.c (syms_of_lread): Make it clearer that these are the
1009 names of loaded files (Bug#5068).
1010
8932b1c2
CY
1011 * eval.c (run_hook_with_args): Handle the case where the global
1012 value has the obsolete single-function form (Bug#5026).
1013
11e3c684
CY
10142009-12-27 Chong Yidong <cyd@stupidchicken.com>
1015
1016 * minibuf.c (Fall_completions): Minor optimization.
1017
5b28ce35
EZ
10182009-12-26 Eli Zaretskii <eliz@gnu.org>
1019
5ce6e4f4
JB
1020 * .gdbinit (pgx): Fix display of composite glyphs.
1021 Display cmp.from and cmp.to as well.
1022 (pitx): Fix last change.
5b28ce35 1023
bcffff46
KH
10242009-12-25 Kenichi Handa <handa@m17n.org>
1025
1026 * composite.h (composition_adjust_point): Update prototype.
1027
1028 * composite.c (composition_reseat_it): Don't make a composition
1029 spanning over point.
1030 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1031 composable characters.
1032 (composition_adjust_point): New arg NEW_PT. Callers changed.
1033
1034 * keyboard.c (command_loop_1): Force redisplay if the last point
1035 was within a composition.
1036 (adjust_point_for_property): Don't adjust point for automatic
1037 composition when called after buffer modification.
1038
3f670e9a
EZ
10392009-12-19 Eli Zaretskii <eliz@gnu.org>
1040
5ce6e4f4
JB
1041 * .gdbinit (pitx): Don't use enum names, use their values.
1042 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1043 (pgx): Don't use enum names, use their values.
1044 (pitmethod): New helper command.
1045 (pitx): Use it to display iteration method.
1046 (pgrowit): New command.
1047
ad903955
EZ
1048 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1049
3f670e9a
EZ
1050 Update dependencies in Makefile.in.
1051
1052 * Makefile.in (alloc.o): Depend on termhooks.h.
1053 (atimer.o): Depend on blockinput.h.
1054 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1055 and frame.h.
1056 (callint.o): Depend on systime.h, coding.h, and composite.h.
1057 (callproc.o): Depend on buffer.h.
1058 (casefiddle.o): Don't depend on charset.h.
1059 (casetab.o): Depend on character.h.
1060 (ccl.o): Depend on composite.h.
1061 (chartab.o): Depend on ccl.h.
1062 (cm.o): Depend on dispextern.h.
1063 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1064 (coding.o): Don't depend on $(INTERVALS_H).
1065 (composite.o): Don't depend on dispextern.h explicitly (it's in
1066 $(INTERVALS_H)). Depend on ccl.h.
1067 (data.o): Depend on systime.h, coding.h, composite.h,
1068 dispextern.h, font.h, and ccl.h.
1069 (dired.o): Depend on composite.h.
1070 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1071 composite.h (it's in $(INTERVALS_H)).
1072 (doc.o): Depend on systime.h, coding.h, and composite.h.
1073 (editfns.o): Don't depend explicitly on dispextern.h.
1074 (emacs.o): Depend on frame.h and coding.h.
1075 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1076 (fileio.o): Depend on frame.h and commands.h. Don't depend
1077 explicitly on dispextern.h.
1078 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1079 composite.h.
1080 (fns.o): Don't depend on termhooks.h.
1081 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1082 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1083 coding.h, $(INTERVALS_H), window.h, xterm.h.
1084 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1085 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1086 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1087 fontset.h, ccl.h, and ftfont.h.
1088 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1089 (gtkutil.o): Depend on dispextern.h and composite.h.
1090 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1091 termhooks.h, and ccl.h.
1092 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1093 (intervals.o): Depend on systime.h and coding.h.
1094 (keyboard.o): Depend on composite.h and coding.h.
1095 (keymap.o): Depend on coding.h and frame.h.
1096 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1097 (macros.o): Depend on systime.h, coding.h, and composite.h.
1098 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1099 and atimer.h.
1100 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1101 dispextern.h explicitly.
0b5397c2
SM
1102 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1103 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1104 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1105 (regex.o): Don't depend on charset.h.
1106 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1107 (search.o): Don't depend explicitly on composite.h.
1108 (sound.o): Depend on atimer.h and systime.h.
1109 (syntax.o): Don't depend explicitly on composite.h.
1110 (sysdep.o): Depend on coding.h and composite.h.
1111 (term.o): Depend on xterm.h and buffer.h.
1112 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1113 (textprop.o): Don't depend on dispextern.h explicitly.
1114 (undo.o): Depend on dispextern.h.
1115 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1116 dispextern.h and composite.h explicitly.
1117 (xdisp.o): Depend on ccl.h.
1118 (xfaces.o): Depend on coding.h and ccl.h.
1119 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1120 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1121 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1122 ftfont.h.
1123 (xgselect.o): New dependency.
1124 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1125 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1126 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1127 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1128 (xsmfns.o): Depend on frame.h and dispextern.h.
1129 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1130 sysselect.h.
1131
7a6f7fea
AS
11322009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1133
1134 * font.c (Fclear_font_cache): Pass correct cache argument to
1135 font_clear_cache.
1136
f4c21026
AS
11372009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1138
1139 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1140 twice.
1141
f7ab0997
CY
11422009-12-15 Chong Yidong <cyd@stupidchicken.com>
1143
1144 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1145 calling file-remote-p. Reported by Jim Meyering.
1146
fa8e045a
MA
11472009-12-15 Michael Albinus <michael.albinus@gmx.de>
1148
1149 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1150 avoid compiler warnings. (Bug #5217)
fa8e045a 1151
a63dba42
KH
11522009-12-14 Kenichi Handa <handa@m17n.org>
1153
1154 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1155 in 8-bit encoding.
1156
5ce6e4f4 11572009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1158
1159 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1160 tooltip windows.
1161
223e5fc6
JD
11622009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1163
36acb2a7
JD
1164 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1165 Xatom_net_window_type.
1166
1167 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1168 Xatom_net_window_type.
1169
b8f00677
JD
1170 * xterm.c (my_log_handler): New function.
1171 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1172 so we can filter out buggy messages. (Bug #5120).
b8f00677 1173
e5f0bc9a
JD
1174 * xterm.c (xg_scroll_callback): Parameter list changed,
1175 use parameter GtkScrollType to determine scroll/line/page.
1176 Only allow dragging if a button < 4 is grabbed (bug #5177).
1177 (xg_end_scroll_callback): New function.
1178 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1179 xg_create_scroll_bar.
1180
1181 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1182 (scroll_end_callback): Remove.
1183 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1184 button-release-event. Replace value-changed event with change-value,
1185 bug #5177,
1186 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1187 bug #5177.
1188
1189 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1190 (xg_create_scroll_bar): Add GCallback end_callback.
1191
223e5fc6
JD
1192 * xftfont.c (QClcdfilter): New variable.
1193 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1194 (syms_of_xftfont): Initialize QClcdfilter.
1195
3c055b77
JD
11962009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1197
1198 * xsettings.c (struct xsettings): Add member seen.
1199 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1200 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1201 (apply_xft_settings): Only update Xft settings with what member seen
1202 indicates as new.
1203
05fe33ff
EZ
12042009-12-12 Eli Zaretskii <eliz@gnu.org>
1205
1206 * dispextern.h (struct text_pos): Use EMACS_INT;
1207 (struct glyph): Use EMACS_INT for charpos.
1208 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1209 region_beg_charpos, region_end_charpos,
1210 redisplay_end_trigger_charpos, and also for
1211 iterator_stack_entry.end_charpos and
1212 iterator_stack_entry.stop_charpos.
1213
e8d7886a
JD
12142009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1215
5ce6e4f4 1216 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1217 (xg_create_scroll_bar): Call scroll_end_callback on button release
1218 event (bug #5177).
1219 (xg_event_is_for_scrollbar): != replaced with ==.
1220
d0db2ec8
KH
12212009-12-12 Kenichi Handa <handa@m17n.org>
1222
1223 * ftfont.c (struct ftfont_info): New member matrix.
1224 (ftfont_open): Setup xftfont_info->matrix.
1225 (MFLTFontFT): New member matrix.
1226 (FLOOR, CEIL, ROUND): New macros.
1227 (ftfont_get_metrics): Handle matrix transformation.
1228 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1229
1230 * xftfont.c (struct xftfont_info): New member matrix.
1231 (xftfont_open): Setup xftfont_info->matrix.
1232
12332009-12-10 Kenichi Handa <handa@m17n.org>
1234
1235 * xdisp.c (append_space_for_newline): Consider face-remapping.
1236
2cc7b62f
AS
12372009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1238
b87dd913
AS
1239 * xsettings.c: Include "keyboard.h".
1240
eba5eb94
AS
1241 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1242
2cc7b62f
AS
1243 Fix implicit function declarations.
1244 * cmds.c: Include "frame.h".
1245 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1246 * frame.h: Move declaration of delete_frame outside of
1247 HAVE_WINDOW_SYSTEM.
1248
a4ef73c8
CY
12492009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1250
1251 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1252
1253 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1254 GTK builds.
1255
944a300c
AS
12562009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1257
1258 * unexelf.c (unexec): Don't search for .data twice.
1259
022eef62
CY
12602009-12-05 Chong Yidong <cyd@stupidchicken.com>
1261
426ac949
CY
1262 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1263 if push failed.
1264 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1265 of push_display_prop (Bug#5000).
1266
022eef62
CY
1267 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1268 value of font_list_entities (Bug#5085).
1269
be95bee9
JB
12702009-12-04 Juanma Barranquero <lekktu@gmail.com>
1271
1272 Fix `string-to-number' to deal consistently with integers and floats.
1273 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1274 trailing characters, not just whitespace.
1275 (read1): Pass new arg 0 to keep old behavior.
1276 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1277 trailing chars, as it is already done for integers. Doc fixes.
1278 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1279
24c2d7ce
EZ
12802009-12-04 Eli Zaretskii <eliz@gnu.org>
1281
0b5397c2
SM
1282 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1283 Delete unused enumeration value.
24c2d7ce 1284
7e694795
EZ
12852009-12-03 Eli Zaretskii <eliz@gnu.org>
1286
1287 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1288
84b31826
SM
12892009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1290
1291 * process.c (Fmake_network_process): Fix up the tests for
1292 "connectionless socket", so they DTRT for seqpacket sockets as well.
1293
f00c449b
SM
12942009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1295
1296 * process.c (Qseqpacket): New symbol.
1297 (HAVE_SEQPACKET): New macro.
1298 (Fmake_network_process): Accept new :type `seqpacket'.
1299 (init_process): Add `seqpacket' feature when applicable.
1300 (syms_of_process): Initialize Qseqpacket.
1301
8096a0ff
YM
13022009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1303
1304 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1305 if entity is Qnil.
1306
3e0de07f
SM
13072009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1308
1309 * print.c (print_preprocess): Preprocess the key_and_value table of
1310 hashtables, even tho they're "hidden" (bug#5082).
1311
abeafb2a
JD
13122009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1313
1314 * frame.c (frame_make_pointer_invisible)
1315 (frame_make_pointer_visible): Declare f before statements.
1316
4bf47195
EZ
13172009-11-28 Eli Zaretskii <eliz@gnu.org>
1318
1319 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1320 omitted dependencies on lisp.h.
1321
c525b3f2
JD
13222009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1323
ece2d4ed
JD
1324 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1325 is NULL.
1326
1327 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1328
1329 * frame.c (frame_make_pointer_invisible)
3e0de07f 1330 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1331 frame.
1332
c525b3f2
JD
1333 * search.c (simple_search): Remove warning by making *p const.
1334
2f00e299
DN
13352009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1336
1337 * xdisp.c (power_letter): Remove duplicate const.
1338
084b049b
JD
13392009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1340
a1fadc6f
JD
1341 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1342
5ce6e4f4 1343 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1344 defaults (bug #5025).
1345
28259cac
SM
13462009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1347
1348 * insdel.c (adjust_markers_for_delete): Move it in the
1349 right direction! (bug#4803)
1350
e8e14166
YM
13512009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1352
1353 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1354
1355 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1356
86677b58
GM
13572009-11-24 Glenn Morris <rgm@gnu.org>
1358
1359 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1360
581e51e8
JD
13612009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1362
cfc86c7a
JD
1363 * Makefile.in: Must create deps for ecrt0.o in its rule.
1364
581e51e8
JD
1365 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1366 because that is what Gtk+ font dialog understands.
1367
1368 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1369 of Fcopy_sequence.
1370 (font_open_by_name): Put name given into QCname for font-object returned.
1371
1372 * frame.c (x_set_font): Save original font name as frame parameter
1373 font-parameter.
1374
1375 * xsettings.c (set_default_xft_settings): New function.
1376 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1377 is found.
1378
8b264ecb
AS
13792009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1380
1381 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1382 searching backwards through multibyte buffer.
1383
872870b2
JD
13842009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1385
1386 * xterm.c: #include xgselect.h.
1387 (x_initialize): Call xgselect_initialize.
1388
1389 * xsettings.c (something_changedCB): C++ comments => C comments.
1390 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1391 does that now.
1392
1393 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1394 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1395 (scroll_bar_button_cb): Remove.
5ce6e4f4 1396 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1397 event.
1398 (xg_create_scroll_bar): Don't bind button-press-event and
1399 button-release-event.
1400
1401 * process.c: Include xgselect.h if defined (USE_GTK) ||
1402 defined (HAVE_GCONF).
1403 (wait_reading_process_output): Call xg_select for the same condition.
1404
1405 * xgselect.c (xg_select): New function to better integrate with
1406 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1407
1408 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1409
1410 * Makefile.in (XOBJ): Add xgselect.o.
1411
62a6e103
AS
14122009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1413
0b5397c2
SM
1414 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1415 Remove ignored second argument. All callers changed.
62a6e103
AS
1416 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1417 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1418 * xdisp.c (string_char_and_length): Likewise.
1419
b0ca0f33
DN
14202009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1421
1422 * xterm.c (x_new_font):
1423 * print.c (print_object):
1424 * cmds.c (Fself_insert_command): Move declarations before statements.
1425
dd5a6279
CY
14262009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1427
1428 * s/cygwin.h: Remove unneeded linker flags.
1429
4a8e097d
JD
14302009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1431
0d1d0d26
JD
1432 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1433
1434 * xsettings.h: Declare xsettings_get_system_font.
1435
1436 * xsettings.c (xsettings_get_system_font): New function.
1437 (init_gconf): No use initiating gconf unless we have Xft also.
1438 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1439 HAVE_GCONF.
1440
4a8e097d
JD
1441 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1442 add a blank entry so it doesn't collapse into nothing.
1443
8ab1650e
SM
14442009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1445
1446 * lread.c (Funintern): Comment out last change.
1447
82c602f0
RS
14482009-11-19 Richard Stallman <rms@gnu.org>
1449
1450 * lread.c (Funintern): Error if symbol is t or nil.
1451
87e32266
SM
14522009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1453
1454 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1455 representation of Lisp integers.
1456 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1457
1b9ac145
AS
14582009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1459
1460 * lisp.h: Remove declaration of Ffont_get_system_font.
1461 * xfns.c: Move include of "xsettings.h".
1462 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1463
dfb3c4c6
JD
14642009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1465
87e32266
SM
1466 * xsettings.c (something_changedCB, Ffont_get_system_font):
1467 Check use_system_font.
dfb3c4c6
JD
1468 (syms_of_xsettings): DEFVAR font-use-system-font.
1469
9370c1d8
AS
14702009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1471
25fe851a
AS
1472 * xfns.c (x_default_font_parameter): Remove dead assignment.
1473
9370c1d8
AS
1474 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1475
637fa988
JD
14762009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1477
87e32266 1478 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1479 not have FC_LCD_*. #define them if not there.
a6eb20d8 1480
87e32266 1481 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1482
637fa988
JD
1483 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1484
1485 * xterm.c (handle_one_xevent): Call xft_settings_event for
1486 ClientMessage, PropertyNotify and DestroyNotify.
1487 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1488 Call xsettings_initialize.
1489
1490 * xftfont.c (xftfont_fix_match): New function.
1491 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1492 Call xftfont_fix_match after XftFontMatch.
1493
1494 * xfont.c (xfont_driver): Initialize all members.
1495
87e32266
SM
1496 * xfns.c (x_default_font_parameter):
1497 Try font from Ffont_get_system_font.
637fa988
JD
1498 Do not get font from x_default_parameter if we got one from
1499 Ffont_get_system_font.
87e32266 1500 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1501
1502 * w32font.c (w32font_driver): Initialize all members.
1503
1504 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1505
1506 * lisp.h: Declare syms_of_xsettings.
1507
87e32266
SM
1508 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1509 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1510
1511 * ftfont.c (ftfont_filter_properties): New function.
1512
1513 * frame.c (x_set_font): Remove unused variable lval.
1514
87e32266 1515 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1516
1517 * font.c (font_put_extra): Don't return if val is nil, it means
1518 boolean option is off.
1519 (font_parse_fcname): Collect all extra properties in extra_props
1520 and call filter_properties for all drivers with extra_props and
1521 font as parameter.
87e32266
SM
1522 (font_open_entity): Do not use cache, it does not pick up new
1523 fontconfig settings like hinting.
637fa988
JD
1524 (font_load_for_lface): If spec had a name in it, store it in entity.
1525
a73f9c9d 1526 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
1527
1528 * config.in: HAVE_GCONF is new.
1529
1530 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1531 xsettings.o is new.
1532
5a942932
KH
15332009-11-17 Kenichi Handa <handa@m17n.org>
1534
1535 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1536 back to the default font in case that no suitable font is found.
1537
b7c7a4d1
SM
15382009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1539
1540 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1541 Suggested by Chad Brown <yandros@mit.edu>.
1542 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1543
072f1e39
JD
15442009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1545
1546 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1547
5d1e70a2
AS
15482009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1549
87e32266 1550 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1551
a53cfbe5
JD
15522009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1553
473a99b7
JD
1554 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1555 has a parent.
1556
a53cfbe5 1557 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1558 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1559
1560 * config.in: Generated (AUTO_DEPEND).
1561
f04bb9b2
MA
15622009-11-13 Michael Albinus <michael.albinus@gmx.de>
1563
b7c7a4d1 1564 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1565 Vdbus_registered_functions_table, because it contains also
1566 properties. Fix docstring.
b7c7a4d1 1567 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1568
8f11f7ec
SM
15692009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1570
1571 * alloc.c (mark_object): Don't reprocess marked strings.
1572 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1573 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1574
8a605fe8
KH
15752009-11-13 Kenichi Handa <handa@m17n.org>
1576
8f11f7ec 1577 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1578 semantics of Vword_combining_categories.
1579 (Vword_combining_categories): Describe the slight change of the
1580 semantics.
1581
241c4680
EZ
15822009-11-13 Eli Zaretskii <eliz@gnu.org>
1583
1584 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1585
1586 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1587
5d58e44c
SM
15882009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1589
1590 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1591
5e13f9d3
JB
15922009-11-12 Juanma Barranquero <lekktu@gmail.com>
1593
1594 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1595
cf54c754
DR
15962009-11-11 David Reitter <david.reitter@gmail.com>
1597
1598 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1599 variables to fix 2009-11-09 change.
1600
a4ada374
DN
16012009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1602
91433552
DN
1603 * process.c (ifflag_def): Make flag_sym constant.
1604 (Fnetwork_interface_info): Use a constant pointer.
1605 (ifflag_table):
1606 * xfns.c (cursor_bits):
1607 * xdisp.c (power_letter):
1608 * termcap.c (speeds, esctab):
1609 * sysdep.c (baud_convert):
1610 * keyboard.c (lispy_accent_codes, modifier_names):
1611 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1612 (jpeg_format, tiff_format, gif_format, svg_format)
1613 (interlace_start, interlace_increment, gs_format):
1614 * gtkutil.c (separator_names):
1615 * fringe.c (swap_nibble):
1616 * fns.c (base64_value_to_char, base64_char_to_value):
1617 * fileio.c (make_temp_name_tbl):
1618 * coding.c (suffixes): Make constant.
1619
f4265f6c
DN
1620 * frame.c (make_initial_frame):
1621 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1622 build_string.
1623 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1624
04420943
DN
1625 * s/freebsd.h:
1626 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1627
0a5d24ae
DN
1628 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1629 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1630
a4ada374
DN
1631 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1632 * xterm.c (syms_of_xterm):
1633 * xfaces.c (syms_of_xfaces):
1634 * xdisp.c (syms_of_xdisp):
1635 * lread.c (syms_of_lread):
1636 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1637 build_string.
91433552 1638
a4ada374
DN
1639 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1640
af98fc7f
SM
16412009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1642
8ab1650e 1643 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1644
e90292a9
JD
16452009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1646
1647 * keyboard.h: Declare timer_check.
1648
1649 * keyboard.c (timer_check_2): New function that does what the old
1650 timer_check did.
1651 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1652 returned, i.e. don't return -1 with timers pending.
1653
1654 * process.c: Remove extern declaration of timer_check.
1655
1656 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1657 even if timer_check returned -1.
1658
af98fc7f
SM
1659 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1660 xg_dialog_data.
e90292a9
JD
1661 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1662 the event loop.
1663 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1664 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1665 Destroy the dialog after xg_dialog_run.
1666
045b83c0
SM
16672009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1668
1669 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1670
1fb99a3a
JD
16712009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1672
1673 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1674
04e452cb
JB
16752009-11-09 Juanma Barranquero <lekktu@gmail.com>
1676
1677 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1678
ef7417fd
SM
16792009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1680
1681 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1682 w32menu.c, and nsmenu.m.
1683 Simplify the obsolete case where position is nil.
1684 (cleanup_popup_menu): New function, moved from nsmenu.m.
1685 (struct skp): Remove slot `notreal'.
1686 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1687 adjust callers.
1688 (single_menu_item): Adjust call to parse_menu_item.
1689 (syms_of_menu): Defsubr x-popup-menu.
1690 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1691 (keymap_panes): Don't export any more.
1692 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1693 (xmenu_show): Declare.
1694 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1695 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1696 * keyboard.h (parse_menu_item): Update declaration.
1697 * xmenu.c (Fx_popup_menu): Remove.
1698 (syms_of_xmenu): Don't defsubr x-popup-menu.
1699 * w32menu.c (Fx_popup_menu): Remove.
1700 (syms_of_w32menu): Don't defsubr x-popup-menu.
1701 * nsmenu.m (cleanup_popup_menu): Remove.
1702 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1703 moved to menu.c's Fx_popup_menu.
1704 (Fx_popup_menu): Remove.
1705 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1706 menu_items (it's done in menu.c already).
1707
424d6179
SM
17082009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1709
1710 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1711 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1712
c0df13a6 17132009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1714
1715 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1716 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1717 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1718 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1719
2de9f71c
SM
17202009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1721
1722 Let integers use up 2 tags to give them one extra bit and thus double
1723 their range.
1724 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1725 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1726 New macros.
1727 (enum Lisp_Type): Use them. Give explicit values.
1728 (Lisp_Type_Limit): Remove.
1729 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1730 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1731 Pay attention to USE_2_TAGS_FOR_INTS.
1732 (INTEGERP): Use LISP_INT_TAG_P.
1733 * fns.c (internal_equal): Simplify the default case.
1734 (sxhash): Use case_Lisp_Int.
1735 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1736 any more.
1737 (Ftype_of): Use case_Lisp_Int.
1738 (store_symval_forwarding): Take into account the fact that Ints can
1739 now have more than one tag.
1740 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1741 buffer_slot_type_mismatch):
1742 * xfaces.c (face_attr_equal_p):
1743 * print.c (print_object):
1744 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1745 Use case_Lisp_Int.
1746
323637a2
EZ
17472009-11-06 Eli Zaretskii <eliz@gnu.org>
1748
7ac65b38
EZ
1749 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1750
323637a2
EZ
1751 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1752 warning.
1753
e511451f
JD
17542009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1755
1756 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1757
1758 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1759
1760 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1761 ButtonPressRelease and MotionNotify (bug#4870).
1762
5e2327cf
DN
17632009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1764
5adc433e
DN
1765 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1766
d67b4f80
DN
1767 * xterm.c (syms_of_xterm):
1768 * xselect.c (syms_of_xselect):
1769 * xmenu.c (syms_of_xmenu):
1770 * xfns.c (syms_of_xfns):
1771 * xfaces.c (syms_of_xfaces):
1772 * xdisp.c (syms_of_xdisp):
1773 * window.c (syms_of_window):
1774 * w32fns.c (syms_of_w32fns):
1775 * undo.c (syms_of_undo):
1776 * textprop.c (syms_of_textprop):
1777 * terminal.c (syms_of_terminal):
1778 * syntax.c (syms_of_syntax):
1779 * sound.c (syms_of_sound):
1780 * search.c (syms_of_search):
1781 * print.c (syms_of_print):
1782 * minibuf.c (syms_of_minibuf):
1783 * macros.c (syms_of_macros):
1784 * keymap.c (syms_of_keymap, initial_define_key)
1785 (initial_define_lispy_key):
1786 * keyboard.c (syms_of_keyboard):
1787 * insdel.c (syms_of_insdel):
1788 * image.c (syms_of_image):
1789 * fringe.c (syms_of_fringe):
1790 * frame.c (syms_of_frame):
1791 * fontset.c (syms_of_fontset):
1792 * fns.c (syms_of_fns):
1793 * fns.c (syms_of_fns):
1794 * fileio.c (syms_of_fileio):
1795 * fileio.c (syms_of_fileio):
1796 * eval.c (syms_of_eval):
1797 * doc.c (syms_of_doc):
1798 * dispnew.c (syms_of_display):
1799 * dired.c (syms_of_dired):
1800 * dbusbind.c (syms_of_dbusbind):
1801 * data.c (syms_of_data):
1802 * composite.c (syms_of_composite):
1803 * coding.c (syms_of_coding):
1804 * cmds.c (syms_of_cmds):
1805 * charset.c (define_charset_internal, syms_of_character):
1806 * ccl.c (syms_of_ccl):
1807 * category.c (syms_of_category, init_category_once):
1808 * casetab.c (syms_of_casetab):
1809 * casefiddle.c (syms_of_casefiddle):
1810 * callint.c (syms_of_callint):
1811 * bytecode.c (syms_of_bytecode):
1812 * buffer.c (keys_of_buffer, syms_of_buffer):
1813 * alloc.c (syms_of_alloc):
1814 * process.c (syms_of_process, init_process):
1815 * lread.c (syms_of_lread, init_obarray):
1816 * font.c (build_style_table):
1817 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1818 intern_c_string, calls to make_pure_string with
1819 make_pure_c_string. Use pure_cons instead of Fcons.
1820
5e2327cf
DN
1821 * process.c (socket_options): Make it const.
1822 (set_socket_option, init_process): Use a const pointer.
1823
1824 * lread.c (intern_c_string): New function.
1825 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1826 (defvar_int): Uset it. Make the name const char*.
1827
1828 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1829 (defvar_int): Update prototypes.
1830 (DEFUN, EXFUN): Support for prototypes is now required.
1831 (intern_c_string): New prototype.
1832 (struct Lisp_Subr): Make symbol_name constant.
1833
1834 * font.c (struct table_entry): Remove unused member. Make NAMES
1835 constant.
1836 (weight_table, slant_table, width_table): Make constant.
1837
1838 * emacs.c (struct standard_args): Make name and longname constant.
1839
1840 * character.h (DEFSYM): Use intern_c_string.
1841
a56eaaef
DN
18422009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1843
1844 * alloc.c (make_pure_c_string): New function.
1845
1846 * eval.c (Fautoload): Purecopy all arguments.
1847
f6a07420
KH
18482009-11-05 Kenichi Handa <handa@m17n.org>
1849
1850 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1851 the buffer in case of replace.
1852
5d28d4b1
DN
18532009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1854
1855 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1856
b349d111
SM
18572009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1858
d528b1ce
SM
1859 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1860 when applicable (bug#4851).
1861
b349d111
SM
1862 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1863 (P_): Support for prototypes is now required.
1864
c38eb027
CY
18652009-10-31 Chong Yidong <cyd@stupidchicken.com>
1866
1867 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1868 (Bug#4827).
1869
0405f8d9
EZ
18702009-10-30 Eli Zaretskii <eliz@gnu.org>
1871
d528b1ce 1872 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1873
ca0a881a
DN
18742009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1875
1876 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1877
d528b1ce
SM
1878 * lread.c (Fload): Purecopy the file name when building
1879 Vpreloaded_file_list.
ca0a881a 1880
47e0e0e4
JR
18812009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1882
1883 * w32fns.c (syms_of_w32fns): Change default value of
1884 w32-scroll-lock-modifier to nil. (Bug#2827)
1885
057bce6f
JB
18862009-10-26 Juanma Barranquero <lekktu@gmail.com>
1887
782a943e 1888 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1889
242bc74c
AS
18902009-10-26 Andreas Schwab <schwab@redhat.com>
1891
1892 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1893
522d013a
JB
18942009-10-26 Juanma Barranquero <lekktu@gmail.com>
1895
1896 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1897 For delta < 0, skip check that only makes sense when the mini-window
1898 is going to be enlarged. (Bug#4534)
1899
18060980
CY
19002009-10-25 Chong Yidong <cyd@stupidchicken.com>
1901
1902 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1903 string in menu maps (Bug#4471).
1904
fec8f0fe
CY
19052009-10-24 Chong Yidong <cyd@stupidchicken.com>
1906
1907 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1908 FRAME_NS_VIEW on terminal frames (Bug#4765).
1909
10d66ec0
AS
19102009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1911
1cae01f7
AS
1912 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1913 DBUS_TYPE_UINTnn separately to get proper sign extension.
1914
58a12889
AS
1915 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1916 can properly handle unsigned types.
d528b1ce 1917 (make_uid, make_gid): Remove.
58a12889 1918
987c9327
AS
1919 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1920 types again.
1921
522d013a 1922 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1923 (system_process_attributes): Likewise.
1924
905a9ed3
DN
19252009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1926
1927 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1928
1929 * eval.c (Fautoload): Purecopy the filename. Simplify.
1930
1931 * category.c (Fdefine_category): Purecopy docstring.
1932
a599b3e8
AS
19332009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1934
7b792fc9
AS
1935 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1936
a599b3e8
AS
1937 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1938
b35ac83e
CY
19392009-10-23 Chong Yidong <cyd@stupidchicken.com>
1940
1941 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1942 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1943 (Bug#4775).
1944
e8903e00
SM
19452009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1946
1947 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1948 (init_fileio_once):
1949 * lisp.h (init_fileio_once): Remove.
1950 * emacs.c (main): Don't call init_fileio_once.
1951
8f43cbf3
DN
19522009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1953
1954 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1955
26898943
AS
19562009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1957
1958 * doprnt.c (doprnt): Fix overflow check.
1959
5c646d5a
JD
19602009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1961
3132a7ea
JD
1962 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1963
5c646d5a
JD
1964 * xterm.h (x_wait_for_event): Declare it.
1965
1966 * xterm.c (pending_event_wait): New variable.
1967 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1968 see pending_event_wait.eventtype.
1969 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1970 (x_new_font): Call change_frame_size with new rows/columns before we
1971 try to resize the frame.
5c646d5a 1972 (x_wait_for_event): New function.
d528b1ce
SM
1973 (x_set_window_size_1): Don't change gravity unless change_gravity
1974 is set.
5c646d5a
JD
1975 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1976 don't change frame size, instead wait for the ConfigureNotify.
1977 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1978 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1979 (x_initialize): Initialize pending_event_wait.
1980
1981 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1982 size.
1983
1984 * widget.c (EmacsFrameSetValues): Add comment.
1985 (EmacsFrameSetCharSize): Just call x_set_window_size.
1986
1987 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1988 x_wait_for_event.
d528b1ce 1989 (flush_and_sync): Remove again.
5c646d5a
JD
1990 (xg_get_font_name): Suggest monospace if no previous font is known.
1991
e9c1637d
SM
19922009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1993
1994 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1995 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1996
5a72cccb
YM
19972009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1998
1999 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2000 processing pending events when event is filtered for input method.
ab04798f 2001 (Bug#3681)
5a72cccb 2002
2629aa37
JB
20032009-10-20 Juanma Barranquero <lekktu@gmail.com>
2004
2005 * fns.c: Add #endif accidentally removed in previous change.
2006
c3417a74
DN
20072009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2008
2009 * fns.c: Remove code for unsupported system: MAC_OS.
2010 * image.c: Likewise. Include setjmp.h.
2011
9685cef2
JD
20122009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2013
2014 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2015 pixel -1 (bug #4742).
2016
d7306fe6
DN
20172009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2018
019d2c4c
DN
2019 * process.c (create_pty): Remove conditionals for no longer
2020 supported systems: UNIPLUS and RTU.
2021
ee6bacd4
DN
2022 * xterm.c:
2023 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2024
d7306fe6
DN
2025 * alloc.c: Do not define struct catchtag.
2026 * eval.c: Move struct catchtag definition ...
2027 * lisp.h: ... here.
2028
2029 * image.c: Move png.h #include earlier to avoid warnings.
2030
2031 * xterm.c:
2032 * xsmfns.c:
2033 * xselect.c:
2034 * xrdb.c:
2035 * xmenu.c:
2036 * xftfont.c:
2037 * xfont.c:
2038 * xfns.c:
2039 * xfaces.c:
2040 * xdisp.c:
2041 * window.c:
2042 * widget.c:
2043 * w32xfns.c:
2044 * w32uniscribe.c:
2045 * w32term.c:
2046 * w32select.c:
2047 * w32reg.c:
2048 * w32proc.c:
2049 * w32menu.c:
2050 * w32inevt.c:
2051 * w32heap.c:
2052 * w32font.c:
2053 * w32fns.c:
2054 * w32console.c:
2055 * w32.c:
2056 * w16select.c:
2057 * vm-limit.c:
2058 * unexsol.c:
2059 * unexec.c:
2060 * unexcw.c:
2061 * unexaix.c:
2062 * undo.c:
2063 * tparam.c:
2064 * textprop.c:
2065 * terminfo.c:
2066 * terminal.c:
2067 * termcap.c:
2068 * term.c:
2069 * syntax.c:
2070 * sound.c:
2071 * sheap.c:
2072 * search.c:
2073 * scroll.c:
2074 * region-cache.c:
2075 * regex.c:
2076 * ralloc.c:
2077 * process.c:
2078 * print.c:
b024548b
DN
2079 * nsterm.m:
2080 * nsselect.m:
2081 * nsmenu.m:
2082 * nsimage.m:
2083 * nsfont.m:
2084 * nsfns.m:
d7306fe6
DN
2085 * msdos.c:
2086 * minibuf.c:
2087 * menu.c:
2088 * marker.c:
2089 * macros.c:
2090 * keymap.c:
2091 * keyboard.c:
2092 * intervals.c:
2093 * insdel.c:
2094 * indent.c:
2095 * gtkutil.c:
2096 * ftxfont.c:
2097 * ftfont.c:
2098 * fringe.c:
2099 * frame.c:
2100 * fontset.c:
2101 * font.c:
2102 * fns.c:
2103 * floatfns.c:
2104 * filelock.c:
2105 * fileio.c:
2106 * emacs.c:
2107 * editfns.c:
2108 * dosfns.c:
2109 * doprnt.c:
2110 * doc.c:
2111 * dispnew.c:
2112 * dired.c:
2113 * dbusbind.c:
2114 * data.c:
2115 * composite.c:
2116 * coding.c:
2117 * cmds.c:
2118 * cm.c:
2119 * chartab.c:
2120 * charset.c:
2121 * character.c:
2122 * ccl.c:
2123 * category.c:
2124 * casetab.c:
2125 * casefiddle.c:
2126 * callproc.c:
2127 * callint.c:
2128 * bytecode.c:
2129 * buffer.c:
2130 * atimer.c: Include setjmp.h. (Bug#4643)
2131
fd5f21e6
SM
21322009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2133
4c0354d7
SM
2134 Remove leftover table unibyte_to_multibyte_table.
2135 * character.c (unibyte_to_multibyte_table): Remove.
2136 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2137 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2138 * character.h (UNIBYTE_TO_CHAR): New macro.
2139 (MAKE_CHAR_MULTIBYTE): Use it.
2140 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2141 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2142 (message_dolog, set_message_1):
2143 * search.c (Freplace_match):
2144 * editfns.c (Fcompare_buffer_substrings):
2145 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2146 (concat):
2147 * insdel.c (copy_text, count_size_as_multibyte):
2148 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2149 * term.c (produce_glyphs):
2150 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2151 * regex.c (RE_CHAR_TO_MULTIBYTE):
2152 * cmds.c (internal_self_insert):
2153 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2154
fd5f21e6
SM
2155 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2156
4418646e
DN
21572009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2158
2159 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2160
35f5c1d2
JB
21612009-10-16 Juanma Barranquero <lekktu@gmail.com>
2162
2163 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2164
a0cd8f6b
AR
21652009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2166
2167 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2168 still needed under Tiger.
2169
2170 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2171
2172 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2173 __Apple__.
2174
2175 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2176
01a8d3fa
KH
21772009-10-15 Kenichi Handa <handa@m17n.org>
2178
2179 * print.c (print_object): Escape a symbol like "2E10" too.
2180
bf6c75c9 21812009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2182
2183 Cleanups and changes for 64-bit compile under Snow Leopard.
2184 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2185
2186 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2187
c5959062 2188 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2189 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2190 cast argument.
2191 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2192 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2193
2194 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2195
2196 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2197 where appropriate.
2198
2199 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2200 where appropriate.
6e4780c5
JB
2201 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2202 Use stringWithUTF8String.
bf6c75c9
AR
2203 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2204
6e4780c5
JB
2205 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2206 Add formal protocol mention to inheritance.
bf6c75c9
AR
2207 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2208
6e4780c5
JB
2209 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2210 Fix printf format.
bf6c75c9
AR
2211 (ns_query_color): Use CGFloat where appropriate.
2212 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2213 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2214 argument.
2215
3d87f118
AR
2216 * config.in (NS_HAVE_NSINTEGER): Drop.
2217
a95c8102
AR
2218 * dbusbind.c (dbus-method-return-internal)
2219 (dbus-method-error-internal): Use long format in printf, and cast
2220 argument.
2221
2222 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2223 in printf, and cast argument.
2224
6873acca 2225 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2226 cast argument.
2227
9ec6f100
GM
22282009-10-11 Glenn Morris <rgm@gnu.org>
2229
2230 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2231
5be883cd
JD
22322009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2233
2234 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2235 menu bar with a small width so it doesn't enlarge the frame.
2236
d7a39b51
JB
22372009-10-08 Juanma Barranquero <lekktu@gmail.com>
2238
2239 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2240
0c2b6f8e
GM
22412009-10-06 Glenn Morris <rgm@gnu.org>
2242
2243 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2244 SOME_MACHINE_LISP (this enters indirectly via DOC).
2245
e02131a2
EZ
22462009-10-05 Eli Zaretskii <eliz@gnu.org>
2247
2248 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2249
b4744254
EZ
22502009-10-04 Eli Zaretskii <eliz@gnu.org>
2251
2252 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2253 Doc fix.
2254
dbf64827
JB
22552009-10-03 Martin Rudalics <rudalics@gmx.at>
2256
2257 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2258
e9a0aef8
MA
22592009-10-02 Michael Albinus <michael.albinus@gmx.de>
2260
d528b1ce 2261 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2262 used anymore outside fileio.c.
2263
2264 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2265
64eb2b56
JB
22662009-10-01 Juanma Barranquero <lekktu@gmail.com>
2267
2268 * lisp.h (Qdelete_directory_internal):
2269 Declare, instead of Qdelete_directory.
2270
2271 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2272
9d28c33e
SM
22732009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2274
2275 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2276
9d8f3bd9
MA
22772009-10-01 Michael Albinus <michael.albinus@gmx.de>
2278
9d28c33e 2279 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2280 Fdelete_directory. It is not a command anymore. It has no file
2281 name handler.
2282
9694740b
SM
22832009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2284
2285 * xdisp.c (get_next_display_element): Use an enum in last change.
2286
748e162f
KH
22872009-09-28 Kenichi Handa <handa@m17n.org>
2288
9694740b 2289 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2290 unibyte_display_via_language_environment in handling
2291 Vnobreak_char_display.
2292
17efd58d
AR
22932009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2294
2295 * nsterm.h (ns_app_name): New extern variable.
2296
2297 * nsterm.m (ns_app_name): New variable.
2298 (ns_term_init): Set and use it.
2299 (ns_term_shutdown): Use it.
2300
2301 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2302 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2303
2304 * nsfns.m (ns_set_name_iconic, ns_set_name)
2305 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2306 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2307
9694740b
SM
2308 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2309 Remove double-casting in client_data comparison.
31c2d412 2310
3208cb35
YM
23112009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2312
2313 * keyboard.c (make_lispy_event): Remember last wheel direction.
2314 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2315
b7d552d6
GM
23162009-09-26 Glenn Morris <rgm@gnu.org>
2317
2318 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2319 internal.elc. Add term/pc-win.elc.
2320 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2321 term/x-win.elc.
2322 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2323 term/w32-win.elc.
2324 (NS_SUPPORT): New.
2325 (lisp): Add NS_SUPPORT.
2326 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2327
4ff670a8
DR
23282009-09-25 David Reitter <david.reitter@gmail.com>
2329
2330 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2331 on Mac OS X 10.6+ (bug#4513).
2332
feabfb6c
JB
23332009-09-24 Juanma Barranquero <lekktu@gmail.com>
2334
2335 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2336 some parts of Emacs code (like font selection) don't grok them.
2337 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2338
de59072a
AS
23392009-09-24 Andreas Schwab <schwab@redhat.com>
2340
2341 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2342
a489517b
JB
23432009-09-24 Juanma Barranquero <lekktu@gmail.com>
2344
2345 * dired.c (Fdirectory_files): Fix typo in docstring.
2346
0592970c
AR
23472009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2348
2349 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2350 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2351 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2352 under GNUstep.
2353 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2354
2355 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2356 glyph advancement.
2357
48e8a88b
AR
23582009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2359
2360 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2361 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2362
2363 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2364 deleted (bug #4492).
2365
e14f0a78
AR
2366 * nsfont.m (Vns_reg_to_script): New lisp variable.
2367 (syms_of_nsfont): Declare it.
2368 (ns_registry_to_script): New function.
2369 (ns_get_req_script): Call it.
2370 (ns_findfonts): Don't give up on non-unicode registry.
2371
2372 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2373
5b650faa
SM
23742009-09-20 Tom Tromey <tromey@redhat.com>
2375
2376 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2377 batch mode (bug#4228).
2378
a489517b 23792009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2380
2381 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2382 carefully. (Bug #4339)
0bae4e09 2383
fcfe06f3
CY
23842009-09-18 Chong Yidong <cyd@stupidchicken.com>
2385
d798ba87 2386 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2387
31642728
AR
23882009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2389
2390 * emacs.c (inhibit_x_resources): Update doc string for NS.
2391 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2392 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2393
2394 * nsterm.h (ns_no_defaults): Remove.
2395
2396 * nsterm.m (ns_no_defaults): Remove.
2397 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2398 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2399 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2400 don't update the NSWindow itself.
2401 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2402 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2403
2404 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2405 ns_use_qd_smoothing.
2406
2407 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2408 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2409 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2410 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2411
8686ac71
JB
24122009-09-17 Juanma Barranquero <lekktu@gmail.com>
2413
2414 * emacs.c (inhibit_x_resources): New variable.
2415 (main) [HAVE_NS]: Don't process --quick command line option.
2416 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2417
2418 * lisp.h (inhibit_x_resources): Declare it extern.
2419
2420 * w32reg.c (x_get_string_resource):
2421 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2422
e227ba05
EZ
24232009-09-17 Eli Zaretskii <eliz@gnu.org>
2424
362654a6
JB
2425 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2426 Add lisp/term/internal.elc.
e227ba05 2427
742d40e8
SM
24282009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2429
2430 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2431 (bug#4461).
2432
005bd5a2
DN
24332009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2434
2435 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2436
2437 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2438 (OBJECTS_MACHINE): Remove, unused.
2439
f9af9719
SM
24402009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2441
2442 * frame.c (x_get_resource_string): Remove unused.
2443
0307c7d2
JD
24442009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2445
2446 * xterm.c (x_new_font): Call change_frame_size before calling
2447 x_set_window_size, in case frame size won't change.
2448
2449 * frame.c (x_set_font): Remove dead code.
2450
428b13d6
SM
24512009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2452
2453 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2454
5766c380
SM
24552009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2456
2457 * lread.c (Fload): Don't output a message after loading an obsolete
2458 package any more (done in Lisp now).
2459
2fd0161b
CY
24602009-09-12 Chong Yidong <cyd@stupidchicken.com>
2461
2462 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2463
bc5e75b6
SM
24642009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2465
2466 * keymap.c (Fwhere_is_internal): Use nconc2.
2467
c31c985e
AM
24682009-09-11 Alan Mackenzie <acm@muc.de>
2469
2470 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2471 batch mode.
2472
78012bd2
AS
24732009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2474
2475 * xdisp.c (display_mode_element): Detect cycles.
2476
9d889332
SM
24772009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2478
2479 * keymap.c (where_is_internal): Don't erroneously return nil right after
2480 filling the cache.
2481 (where_is_internal_1): Fix up typo.
2482
7ab5d780
GM
24832009-09-11 Glenn Morris <rgm@gnu.org>
2484
2485 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2486 share a common doc-string.
2487
5238a749
SM
24882009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2489
66d77eda
SM
2490 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2491 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2492
5238a749
SM
2493 * keymap.c (QCadvertised_binding): New constant.
2494 (syms_of_keymap): Initialize it.
2495 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2496 if applicable.
2497
19f48442
SM
24982009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2499
50d4ba39
SM
2500 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2501 (parse_menu_item): Streamline since bindings are recomputed all the
2502 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2503 more and don't support lmenu's menu-alias any more either.
2504
a88a5372
SM
2505 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2506 (where_is_internal): Strip it down to only traverse the keymaps.
2507 Move the cache handling from Fwhere_is_internal to here.
2508 (Fwhere_is_internal): Move the handling of remapping and the choice of
2509 the best binding from where_is_internal to here.
2510 Unify the cached/noncached paths, so remapping is also handled
2511 correctly when the cache is used, and so the cache can be used to
2512 speed up remap-handling when applicable.
2513 Give preference to non-remapped bindings.
2514 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2515 non-remapped bindings.
2516 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2517 command remapping.
2518
19f48442
SM
2519 * xdisp.c (display_mode_element): Move list length limit from 50 to
2520 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2521
599498c3 25222009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2523
2524 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2525
f9b7b5ac
SM
25262009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2527
a53af587
JB
2528 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2529 (Bug#4334)
2530
f9b7b5ac
SM
2531 * keymap.c (where_is_internal): Filter out shadowed remappings.
2532 Assume that where_is_internal returns unshadowed bindings to simplify
2533 the code and get rid of the gotos. Use ASIZE.
2534
04f4b72d
JD
25352009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2536
4da146f2
JD
2537 * xterm.c (x_focus_changed): If we get a focusout and pointer
2538 is invisible, make it visible.
2539
04f4b72d
JD
2540 * xterm.h: Remove condition for declaration of
2541 x_*_window_to_frame.
2542
7cef7ce3
SM
25432009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2544
2545 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2546 initial terminal as well.
2547
a54fa5b7
JD
25482009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2549
2550 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2551 x_menubar_window_to_frame.
a54fa5b7
JD
2552
2553 * xterm.c: Remove declarations also in xterm.h
2554 (XTmouse_position): Do not return valid positions
2555 for clicks in the menubar and the toolbar for Gtk+.
2556
2557 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2558 if the widget for the event has the same top level as a frame,
2559 return the frame.
2560 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2561 internal windows, bug #4122.
2562 (x_non_menubar_window_to_frame): Remove.
2563
5a021dd0
GM
25642009-09-02 Glenn Morris <rgm@gnu.org>
2565
2566 * buffer.c (default-major-mode): Move most of the doc from here...
2567 (major-mode): ... to here.
2568
548fe2f3
NR
25692009-08-30 Nick Roberts <nickrob@snap.net.nz>
2570
2571 * process.c (wait_reading_process_output): Keep the descriptor
2572 when pty is used by a non-child process, e.g., in I/O buffer of
2573 GDB this allows inferior to be restarted.
2574
e0840eef
EZ
25752009-08-29 Eli Zaretskii <eliz@gnu.org>
2576
2577 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2578 both branches into one.
2579
82e98df4
SM
25802009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2581
2582 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2583 (main): Use enable-multibyte-characters rather than
2584 default-enable-multibyte-characters. Output a warning message when
2585 running a unibyte session.
2586
890617cb
YM
25872009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2588
2589 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2590 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2591 (copy_data_segment): Also copy __program_vars section.
2592 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2593 (dump_it) [LC_DYLD_INFO]: Use it.
2594
2595 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2596
e7adeadc
EZ
25972009-08-28 Eli Zaretskii <eliz@gnu.org>
2598
2599 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2600 $(SRC)/buildobj.h.
2601 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2602 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2603 $(SRC)/buildobj.h.
2604 (clean): Add buildobj.h.
2605
3ed8bbdc
TZ
26062009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2607
2608 * print.c (print_object): Set escapeflag to 1 when printing
2609 hashtable keys and values.
2610
155a6764
SM
26112009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2612
2613 * lread.c (read_integer): Use doubles (and potentially return a float
2614 number) as we do in string-to-number.
2615 (read1): Use strtol to read integers, signal errors on strtol's
2616 overflow and use floats if strtol's output is too large for
2617 Elisp integers.
2618
877610de
EZ
26192009-08-27 Eli Zaretskii <eliz@gnu.org>
2620
2621 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2622 (make-buildobj-SH): Fix last change.
2623 (SRC): Move to before where it's first used.
2624
ef73e7be
KH
26252009-08-27 Kenichi Handa <handa@m17n.org>
2626
550c8289
KH
2627 * process.c (send_process): Use encode_coding_object instead of
2628 encode_coding_string to perform eol-conversion even if the string
2629 is unibyte.
2630
60afa08d
KH
2631 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2632 character.
2633
ef73e7be 2634 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2635 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2636
7b3a82d7
DN
26372009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2638
5654bf63
DN
2639 * callproc.c (Fcall_process): Remove always true #if.
2640
7b3a82d7
DN
2641 * lisp.h: Replace #if 0 code for checking with text pointing to
2642 the --enable-checking configure flag.
2643
2644 * emacs.c (main): Mention the --enable-profiling configure flag
2645 instead of using CFLAGS.
2646
878bde49
KR
26472009-08-26 Ken Raeburn <raeburn@raeburn.org>
2648
2649 * Makefile.in (buildobj.h): New target.
2650 (doc.o): Depend on it.
2651 (temacs${EXEEXT}): Don't generate buildobj.lst.
2652 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2653 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2654 ($(BLD)/doc.$(O)): Depend on it.
2655 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2656 provided by Eli Zaretskii.)
2657 ($(TEMACS)): Don't generate buildobj.lst.
2658 * doc.c: Include buildobj.h.
2659 (buildobj): New static variable.
2660 (Fsnarf_documentation): Use it, instead of opening and reading
2661 buildobj.lst.
2662
1574224c
MA
26632009-08-25 Michael Albinus <michael.albinus@gmx.de>
2664
2665 * dbusbind.c (Fdbus_call_method)
2666 (Fdbus_call_method_asynchronously): Use English numeric format for
2667 timeout values in doc string.
2668
d9da2f45
KH
26692009-08-25 Kenichi Handa <handa@m17n.org>
2670
ef73e7be
KH
2671 * alloc.c (mark_char_table): New function.
2672 (mark_object): Use mark_char_table for a char-table.
2673
d9da2f45
KH
2674 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2675 (CHAR_TABLE_REF): Use it.
2676
c8edcc01
KR
26772009-08-23 Ken Raeburn <raeburn@raeburn.org>
2678
2679 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2680 before invoking the newly build emacs to check for load-path
2681 shadowing.
2682
7763401b
GM
26832009-08-22 Glenn Morris <rgm@gnu.org>
2684
2685 * Makefile.in (bootstrap_exe): New variable.
2686 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2687 Use ${bootstrap_exe}.
2688
729eadda
EZ
26892009-08-22 Eli Zaretskii <eliz@gnu.org>
2690
2691 * coding.h (encode_coding_string): Don't encode unibyte strings.
2692 (Bug#4047)
2693
eb4c6ace
MA
26942009-08-22 Michael Albinus <michael.albinus@gmx.de>
2695
2696 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2697
2698 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2699 intended as hotfix only.
2700 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2701
36e34d1b
AR
27022009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2703
2704 * nsterm.m (ns_get_color): Update documentation properly for last
2705 change, and clean up loose ends in the code left by it. Fix
2706 longstanding bug with 16-bit hex parsing, and add support for
2707 yet another X11 format (rgb:r/g/b) for compatibility.
2708 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2709 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2710
f983eb8a
SM
27112009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2712
2713 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2714
3f56d3c6
MA
27152009-08-20 Michael Albinus <michael.albinus@gmx.de>
2716
2717 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2718 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2719 (xd_initialize, xd_pending_messages): Check, whether
2720 $DBUS_SESSION_BUS_ADDRESS is set.
2721
fb641d68
YM
27222009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2723
2724 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2725
2726 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2727
cf59a374
GM
27282009-08-20 Glenn Morris <rgm@gnu.org>
2729
2730 * emacs.c (system-type): Doc fix.
2731
1373f3be
SM
27322009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2733
2734 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2735 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2736
058ed861
MA
27372009-08-18 Michael Albinus <michael.albinus@gmx.de>
2738
1373f3be
SM
2739 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2740 New functions.
058ed861
MA
2741 (xd_initialize): Revert change from 2009-08-16.
2742
563a866e 27432009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2744
2745 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2746 font-group vector, return nil.
5fc05db0 2747
e42bdf01
CY
27482009-08-17 Chong Yidong <cyd@stupidchicken.com>
2749
2750 * process.c (status_notify): Don't perform redisplay.
2751 (Fdelete_process, list_processes_1, process_send_signal):
2752 Expliticly perform redisplay.
2753 (wait_reading_process_output): Always check process status, but
2754 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2755
4230ab74
KR
27562009-08-17 Ken Raeburn <raeburn@raeburn.org>
2757
1373f3be 2758 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2759 (XFLOAT_INIT): New macro for storing a float value.
2760 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2761 * fns.c (sxhash): Copy out the value of a float in order to
2762 examine its bytes.
2763 * dbusbind.c (xd_append_arg): Likewise.
2764
4230ab74
KR
2765 * emacs.c (main): Don't call syms_of_data twice.
2766
a0645cdd
MA
27672009-08-16 Michael Albinus <michael.albinus@gmx.de>
2768
2769 * dbusbind.c (xd_initialize): Add connection file descriptor to
2770 input_wait_mask, in order to let select() detect, whether a new
2771 message has been arrived.
ca4f31ea 2772 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2773
485db0ba
MA
27742009-08-15 Michael Albinus <michael.albinus@gmx.de>
2775
1373f3be
SM
2776 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2777 New functions.
485db0ba
MA
2778
2779 * lisp.h (xd_pending_messages): Declare.
2780
2781 * keyboard.c (readable_events): Call xd_pending_messages.
2782
b5b98ff4
CY
27832009-08-15 Chong Yidong <cyd@stupidchicken.com>
2784
1373f3be 2785 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2786
f8354c6e
CY
2787 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2788
b5b98ff4
CY
2789 * buffer.c (set_buffer_internal_1)
2790 (swap_out_buffer_local_variables): Check for unbound local
2791 variables (Bug#4138).
2792
8b9fc636
EZ
27932009-08-14 Eli Zaretskii <eliz@gnu.org>
2794
2795 * process.c (create_pty): Fix last change.
2796
ce959360
CY
27972009-08-13 Chong Yidong <cyd@stupidchicken.com>
2798
2799 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2800 (xbm_load_image): Caller changed.
64b807c9 2801 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2802
c7baf7e9
NR
28032009-08-13 Nick Roberts <nickrob@snap.net.nz>
2804
2805 * process.c (create_pty): New function.
2806 (Fstart_process): Use it to allow Emacs to just associate a pty
2807 with the buffer. See associated change in gdb-mi.el.
2808 (list_processes_1): Deal with no program name.
2809 (start_process_unwind): Use pid == -2 to mean no process.
2810
1ac9108a
SM
28112009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2812
2813 * cmds.c (nonundocount): New global variable.
2814 (keys_of_cmds): Initialize it.
2815 (Fself_insert_command): Use it to combine upto 20 sequential chars
2816 into a single undo entry, just like the Qself_insert_command code in
2817 keyboard.c does.
2818 Call frame_make_pointer_invisible, also like the Qself_insert_command
2819 code in keyboard.c does.
2820 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2821 than its own local replacement for it.
2822
e267324c
KR
28232009-08-10 Ken Raeburn <raeburn@raeburn.org>
2824
1ac9108a 2825 * fns.c (concat): Don't re-set string length to its current value.
77437343 2826
1ac9108a
SM
2827 * coding.h (decode_coding_string, encode_coding_string):
2828 Use SBYTES macro.
f0bed503 2829
1ac9108a 2830 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2831 (doprnt): Merge with doprnt1, discarding lispstrings code.
2832 * lisp.h (doprnt_lisp): Don't declare.
2833
416e006d
JL
28342009-08-07 Juri Linkov <juri@jurta.org>
2835
2836 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2837
6f7d5780
DN
28382009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2839
2840 * print.c (syms_of_print): Undo previous change.
2841
f19a0f5b
TZ
28422009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2843
2844 * lread.c (read1, syms_of_lread): Read hashtables back from the
2845 readable format.
2846
2847 * print.c (print_preprocess, print_object): Print hashtables fully
2848 and readably.
2849 (syms_of_print): Provide 'hashtable-print-readable.
2850
b9173dc2
AR
28512009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2852
2853 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2854 no family set.
2855 (nsfont_open): Handle case when entity has no family.
2856
1586503c
AR
28572009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2858
2859 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2860 element, not a list, for match case.
2861
087048cd
KH
28622009-07-28 Kenichi Handa <handa@m17n.org>
2863
2864 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2865 rigidly.
2866
2867 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2868 font_parse_xlfd. Check font properties more rigidly.
2869
780c2506
DN
28702009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2871
31fd7c5c
JB
2872 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2873 bsd-common.h.
780c2506 2874
a8c0cc18
KH
28752009-07-27 Kenichi Handa <handa@m17n.org>
2876
2877 * xfaces.c (face_with_height): Call font_clear_prop.
2878
4fbe2306
CY
28792009-07-26 Chong Yidong <cyd@stupidchicken.com>
2880
111d9af3
CY
2881 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2882
2883 * xterm.c (x_term_init): Use Qx.
2884
4fbe2306
CY
2885 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2886
1ac9108a 2887 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2888 (ns_get_color): Revert 2009-07-16 change.
2889
beb0b7f9
EZ
28902009-07-25 Eli Zaretskii <eliz@gnu.org>
2891
2892 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2893 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2894
2baf5e76
KR
28952009-07-25 Ken Raeburn <raeburn@raeburn.org>
2896
1ac9108a
SM
2897 * coding.h (decode_coding_string, encode_coding_string):
2898 Use SCHARS macro.
8890e5f5 2899
2baf5e76 2900 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2901 (load_depth): Delete.
2baf5e76
KR
2902 (Qload_in_progress): New variable.
2903 (load_unwind): Don't reference load_depth or load_in_progress.
2904 (Fload): Likewise; specbind Qload_in_progress instead.
2905 (init_lread): Don't initialize load_depth.
2906 (syms_of_lread): Initialize and protect Qload_in_progress.
2907
1395c6f5
AR
29082009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2909
2910 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2911
4e2f36cf
AR
29122009-07-23 Yavor Doganov <yavor@gnu.org>
2913
2914 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2915
5dd9a6f7
AR
29162009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2917
2918 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2919 Bugs 3792, 3720, 2402.
2920 (ns_lookup_indexed_color): Check for bad index.
2921 (ns_index_color): Init unused slot to 0.
2922 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2923 Bug 3714, possibly 3082.
5dd9a6f7 2924
c902b920
JR
29252009-07-22 Jason Rumney <jasonr@gnu.org>
2926
1ac9108a
SM
2927 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2928 Position IME window at cursor (Bug#2570).
c902b920
JR
2929 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2930 (globals_of_w32fns): Dynamically load functions required above.
2931
2932 * w32term.c (w32_draw_window_cursor): Send message to reposition
2933 any IME window.
2934
090101cf
CY
29352009-07-21 Chong Yidong <cyd@stupidchicken.com>
2936
2937 * fileio.c: Revert 2009-07-16 changes.
2938 (Vauto_save_include_big_deletions): New variable.
2939 (Fdo_auto_save): Disable auto-save only if
2940 auto-save-include-big-deletions is nil.
2941
e6583e3d
CY
29422009-07-21 Chong Yidong <cyd@stupidchicken.com>
2943
2944 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2945 the overflowed pixels into account (Bug#3879).
2946
ece435a5
KR
29472009-07-21 Ken Raeburn <raeburn@raeburn.org>
2948
2949 * lread.c (load_depth): New variable.
2950 (Fload, load_unwind, init_lread): Set it to the load recursion
2951 depth; set load_in_progress as a simple boolean based on the
2952 current load_depth. (Bug#3892)
2953
40b2d973
AR
29542009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2955
2956 * nsfont.m (ns_has_attribute): Remove.
2957 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2958
10be7e0d
JL
29592009-07-18 Juri Linkov <juri@jurta.org>
2960
2961 * process.c (Fset_process_query_on_exit_flag): Mention killing
2962 a buffer in docstring.
2963
fa055055
KH
29642009-07-17 Kenichi Handa <handa@m17n.org>
2965
2966 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2967
042f7b69
YM
29682009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2969
2970 * nsfns.m (Fns_set_alpha): Remove function.
2971 (syms_of_nsfns): Don't defsubr it.
2972
2973 * nsterm.m (ns_get_color): Remove incompatible color formats.
2974 (ns_color_to_lisp): Generate #rrggbb color format string.
2975
4be941e3
RS
29762009-07-16 Richard Stallman <rms@gnu.org>
2977
2978 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2979 (Fset_buffer_auto_saved): Handle save_length = -2.
2980
4e6b227d
CY
29812009-07-16 Chong Yidong <cyd@stupidchicken.com>
2982
2983 * xterm.c (Qx_gtk_map_stock): New var.
2984
2985 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2986 of calling intern each time.
2987
a1856973
YM
29882009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2989
2990 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2991 does tiling.
2992
2993 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2994
497e54d8
KH
29952009-07-14 Kenichi Handa <handa@m17n.org>
2996
72d36834
KH
2997 * font.c (font_vconcat_entity_vectors): New function.
2998 (struct font_sort_data): New member font_driver_preference.
2999 (font_compare): Check font_driver_preference.
3000 (font_sort_entities): The format of the first argument changed.
3001 (font_delete_unmatched): Likewise.
3002 (font_list_entities): The return type changed.
3003 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3004 (font_find_for_lface): Adjuste for the above changes.
3005 Don't suppress the checking of C even if the repertory supports it.
3006 (Flist_fonts): Adjust for the above changes.
72d36834 3007
1ac9108a
SM
3008 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3009 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3010 Reject a font who has adstyle property that is different from a
3011 langname derived from registry property.
1ac9108a 3012 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3013
b6046155
EZ
30142009-07-13 Eli Zaretskii <eliz@gnu.org>
3015
3016 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3017 local copy of dirfilename.
3018
fb6b6049
KH
30192009-07-13 Kenichi Handa <handa@m17n.org>
3020
e2402a5e
KH
3021 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3022 against max_char.
3023
fb6b6049
KH
3024 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3025 calling XSYMBOL (sym).
3026
65156807
EZ
30272009-07-11 Eli Zaretskii <eliz@gnu.org>
3028
1ac9108a
SM
3029 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3030 New function.
3031 (directory_files_internal) [WINDOWSNT]:
3032 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3033 the filesystem of the directory is fast or slow.
3034
3035 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3036 file name.
3037 (is_slow_fs): New function.
3038 (stat): Use it to determine whether to issue more system calls to
3039 get accurate file attributes, when w32-get-true-file-attributes is
3040 `local'.
3041
e0ab5fcf
JD
30422009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3043
3044 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3045 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3046 parameter font-parameter as default to the font dialog.
3047
784ceded
KH
30482009-07-10 Kenichi Handa <handa@m17n.org>
3049
3050 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3051
fb8edc0b
EZ
30522009-07-09 Eli Zaretskii <eliz@gnu.org>
3053
1ac9108a 3054 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3055
fb8edc0b
EZ
3056 * w32.c (stat): Treat UNC file names as residing on remote
3057 drives. (Bug#3542)
3058
635c75b1
KH
30592009-07-09 Kenichi Handa <handa@m17n.org>
3060
3061 * fontset.c (fontset_find_font): Fix previous change.
3062
c1d5ce94
MA
30632009-07-08 Michael Albinus <michael.albinus@gmx.de>
3064
3065 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3066 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3067 error flag.
3068
edb61b39
KH
30692009-07-08 Kenichi Handa <handa@m17n.org>
3070
374bf7e4
KH
3071 * fontset.c (fontset_find_font): Fix the logic of handling
3072 charset_matched.
3073 (font_for_char): Delete unused var.
3074 (generate_ascii_font_name): Delete it.
3075
edb61b39
KH
3076 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3077
3078 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3079 (encode_coding_sjis): Fix the code range check.
3080
0f3f018c
CY
30812009-07-07 Chong Yidong <cyd@stupidchicken.com>
3082
3083 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3084 (Fexpand_file_name): Copy string data properly (Bug#3772).
3085
fcaf6f3a
JD
30862009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3087
3088 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3089 first MapNotify.
3090
6809ca75
KH
30912009-07-07 Kenichi Handa <handa@m17n.org>
3092
3093 * character.h (unibyte_has_multibyte_table): Delete extern.
3094 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3095
3096 * charset.c (Fset_charset_priority): Update charset_unibyte.
3097 (syms_of_charset): Initialize charset_unibyte.
3098
3099 * character.c (unibyte_has_multibyte_table): Delete it.
3100 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3101 charset_unibyte.
3102 (multibyte_char_to_unibyte_safe): Likewise.
3103 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3104
1ac9108a 3105 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3106 (x_produce_glyphs): Likewise.
3107
3108 * .gdbinit (xcharset): Fix the treating $arg0.
3109
ad9e2d54
EZ
31102009-07-04 Eli Zaretskii <eliz@gnu.org>
3111
3112 Emulation of `getloadavg' on MS-Windows.
3113 * w32.c: Include float.h
3114 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3115 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3116 (get_native_system_info, get_system_times): New functions.
3117 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3118 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3119 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3120 g_b_init_get_system_times, and num_of_processors.
3121
0a3472c7
JR
31222009-07-03 Jason Rumney <jasonr@gnu.org>
3123
3124 * w32term.c (w32_initialize): Use standard types.
3125
80904120
EZ
31262009-07-03 Eli Zaretskii <eliz@gnu.org>
3127
3128 * dired.c (Ffile_attributes): Decode user and group names by the
3129 locale's encoding. (Bug#3443)
3130
6978862d
DN
31312009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3132
f8d23104
DN
3133 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3134 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3135
3136 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3137
3138 * term.c (init_tty): Remove spurious #ifdef.
3139
6978862d
DN
3140 * m/mips.h: Mention this file is also used for netbsd.
3141 * m/pmax.h: Remove file.
3142
e044e4fc
JD
31432009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3144
3145 * xterm.h (struct x_display_info): Add invisible_cursor.
3146 (struct x_output): Add current_cursor.
3147
3148 * xterm.c (XTtoggle_invisible_pointer): New function.
3149 (x_define_frame_cursor): Don't define cursor if invisible or the
3150 same as before. Set current_cursor.
3151 (x_create_terminal): Set toggle_invisible_pointer_hook.
3152
3153 * xfns.c (make_invisible_cursor): New function.
3154 (x_set_mouse_color): Call make_invisible_cursor.
3155 Set current_cursor.
3156 (x_window): Set current_cursor.
3157
3158 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3159
3160 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3161 inserting a character.
3162 (read_avail_input): Call frame_make_pointer_visible.
3163
3164 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3165 (frame_make_pointer_invisible, frame_make_pointer_visible):
3166 New functions.
e044e4fc
JD
3167 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3168
3169 * frame.h: Declare frame_make_pointer_invisible and
3170 frame_make_pointer_visible.
3171 (struct frame): Add pointer_invisible.
3172
574c8efa
JD
31732009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3174
7b507248
JD
3175 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3176 frame isn't visible.
3177 (xg_frame_resized): If width/height is -1, get size of window
3178 from X server.
3179
3180 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3181 for MapNotify.
3182
835bdaa7 3183 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3184 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3185 (flush_and_sync): Reintroduce.
574c8efa 3186
3f1c6666 31872009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3188
31fd7c5c 3189 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3190
3191 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3192 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3193
3194 * frame.h: Declare Qsticky.
3195
cad9ef74
JD
3196 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3197
3198 * nsfns.m (ns_frame_parm_handlers): Ditto.
3199
3200 * frame.c: Declare Qsticky.
3201 (frame_parms): Add sticky.
3202
3203 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3204
3205 * xterm.h: Declare x_set_sticky.
3206
3207 * xterm.c (x_set_sticky): New function.
3208
69b16610
JD
3209 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3210 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3211 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3212
3213 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3214
3215 * frame.c: Qmaximized is new.
3216 (x_set_frame_parameters): Do not handle fullscreen specially.
3217 Only set width and height if explicitly set.
3218 (x_set_fullscreen): Handle Qmaximized.
3219 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3220 (syms_of_frame): Initialize Qmaximized.
3221
1ac9108a
SM
3222 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3223 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3224
3225 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3226 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3227 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3228 set gravity to NorthWestGravity when USE_GTK.
3229 (set_wm_state): New function.
31fd7c5c 3230 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3231 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3232 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3233 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3234 to x_real_positions and x_fullscreen_adjust.
3235
3236 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3237 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3238 flush_and_sync.
3239 (xg_height_changed): New function.
3240 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3241 and gtk_window_set_policy. Set frame gravity after parsing the
3242 geometry string.
3f1c6666
JD
3243 (xg_update_frame_menubar, free_frame_menubar)
3244 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3245 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3246 Remove calls to xg_frame_set_char_size.
3247
fd503d99
KH
32482009-07-01 Kenichi Handa <handa@m17n.org>
3249
3250 * keyboard.c (decode_keyboard_code): New function.
3251 (tty_read_avail_input): Decode the input bytes if necessary.
3252
1ac9108a
SM
3253 * coding.c (setup_coding_system):
3254 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3255 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3256 use Qno_conversion.
3257
24ed93fb
YM
32582009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3259
3260 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3261
99061dfc
CY
32622009-06-30 Chong Yidong <cyd@stupidchicken.com>
3263
1ac9108a 3264 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3265
ff90fbde
JR
32662009-06-30 Jason Rumney <jasonr@gnu.org>
3267
3268 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3269 is already loaded.
3270 Set user model ID if supported (bug#1849).
3271
5f445726
JM
32722009-06-29 Jim Meyering <meyering@redhat.com>
3273
3274 Remove useless if-before-xfree test.
3275 * nsfont.m (nsfont_close): Remove useless test.
3276 * term.c (delete_tty): Likewise.
3277 * w32.c (system_process_attributes): Likewise.
3278 * w32font.c (w32font_close): Likewise.
3279 * xfaces.c (x_free_gc): Likewise.
3280 * xselect.c (buffer): Likewise.
3281
b9607587
AS
32822009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3283
3284 * process.c (send_process): Keep decoded string in a local
3285 variable and protect it from GC. (Bug#3521)
3286
89ba96f4
EZ
32872009-06-28 Eli Zaretskii <eliz@gnu.org>
3288
3289 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3290 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3291
098a1589
CY
32922009-06-28 Chong Yidong <cyd@stupidchicken.com>
3293
485422be
CY
3294 * xdisp.c (start_display, handle_face_prop)
3295 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3296 (redisplay_window, try_window_id, produce_image_glyph):
3297 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3298
098a1589
CY
3299 * xterm.c (x_update_window_begin, x_new_focus_frame)
3300 (x_scroll_bar_handle_click, handle_one_xevent)
3301 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3302 (x_make_frame_visible, x_make_frame_invisible)
3303 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3304 code chunks that are now obsolete.
3305
78c38319
MA
33062009-06-28 Michael Albinus <michael.albinus@gmx.de>
3307
3308 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3309 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3310 for hours, when optimzation is enabled.
3311 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3312 (xd_read_message): Make them static.
3313
4189ed40
CY
33142009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3315
3316 * term.c (turn_on_face): Allow simultaneously bold and dim
3317 terminal faces (Bug#3530).
3318
cd9b5e16
CY
33192009-06-27 Chong Yidong <cyd@stupidchicken.com>
3320
4e23bedb
CY
3321 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3322
cd9b5e16
CY
3323 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3324 truncation glyphs (Bug#3686).
3325
07cc3c35
GM
33262009-06-27 Glenn Morris <rgm@gnu.org>
3327
3328 * m/pmax.h: Restore file, with only netbsd portions.
3329
31fd7c5c 33302009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3331
cd9b5e16 3332 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3333
42d4a64f
KH
33342009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3335
3336 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3337 the arg FORCE_SYMBOL.
3338
930fe55b 33392009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3340
3341 * fontset.c (fontset_find_font): When a usable rfont_def is found
3342 in a fallback font-group, make it the first element of the group.
3343
57ebc3fd
CY
33442009-06-24 Chong Yidong <cyd@stupidchicken.com>
3345
3346 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3347
f084f942
KH
33482009-06-24 Kenichi Handa <handa@m17n.org>
3349
3350 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3351 set for C.
3352 (fontset_font): Record the availability of a font for C both in
3353 the realized fontsets of the current one and the default one.
3354
2f686c87
DN
33552009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3356
3357 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3358 conditional, it is always defined on AIX.
3359
666e158e
MB
33602009-06-23 Miles Bader <miles@gnu.org>
3361
3362 * window.c (Vrecenter_redisplay): New variable.
3363 (syms_of_window): Initialize it.
3364 (Qtty): New extern declaration.
3365 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3366
c6da7cd2
JM
33672009-06-23 Jim Meyering <meyering@redhat.com>
3368
1ac9108a
SM
3369 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3370 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3371 pointer dereferences are guaranteed to be valid.
c6da7cd2 3372
678dca3d
KH
33732009-06-23 Kenichi Handa <handa@m17n.org>
3374
74d75424
KH
3375 * emacs.c (main): Call init_font ().
3376
3377 * font.h (Vfont_log): Extern it.
3378 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3379
3380 * font.c (font_sort_entities, font_list_entities)
3381 (font_matching_entity, font_open_entity)
3382 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3383 (Vfont_log): Delete static.
3384 (font_log_env_checked): Delete this variable.
3385 (font_add_log): Don't check font_log_env_checked.
3386 (font_deferred_log): Check Vfont_log.
3387 (init_font): New function.
3388
678dca3d
KH
3389 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3390
3391 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3392
3393 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3394
3395 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3396
3397 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3398 (face_for_char): Don't call font_deferred_log here.
3399 (font_for_char): Likewise.
3400
8a668709
CY
34012009-06-22 Chong Yidong <cyd@stupidchicken.com>
3402
9a01ee33
CY
3403 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3404 rather than its background_width for drawing the overline and
3405 underline (Bug#489).
3406
3407 * xterm.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).
ec7c9926
CY
3410 (xg_default_icon_file): New variable.
3411 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3412 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3413
8a668709
CY
3414 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3415 (load_overlay_strings): Remove externs.
3416 (fast_find_position): Function deleted.
3417 (mouse_face_from_buffer_pos): New function, based on
3418 fast_find_position. Correctly handle before-strings,
3419 display-strings, and after-strings (Bug#1220).
3420 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3421
4d4c02d8
CY
34222009-06-21 Chong Yidong <cyd@stupidchicken.com>
3423
1ac9108a 3424 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3425 (move_it_in_display_line_to, move_it_in_display_line_to)
3426 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3427
70243478
CY
34282009-06-21 Chong Yidong <cyd@stupidchicken.com>
3429
3430 * Branch for 23.1.
3431
13087e59
JR
34322009-06-21 Jason Rumney <jasonr@gnu.org>
3433
3434 * w32term.c (keyboard_codepage): New static variable.
3435 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3436 (w32_read_socket) [WM_CHAR]: Use it to decode character
3437 input (bug#3237).
3438 (w32_initialize): Initialize it.
3439 (codepage_for_locale): New function.
3440
4735b74e
KR
34412009-06-20 Ken Raeburn <raeburn@raeburn.org>
3442
3443 * process.c (status_message): Pass Faset index argument as a lisp
3444 object, so as to work with USE_LISP_UNION_TYPE.
3445
0e727afa
YM
34462009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3447
3448 * coding.c (Ffind_coding_systems_region_internal):
3449 Cache checked characters.
3450
cf299835
KH
34512009-06-18 Kenichi Handa <handa@m17n.org>
3452
1ac9108a 3453 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3454
90f20d94
AS
34552009-06-18 Andreas Schwab <aschwab@redhat.com>
3456
3457 * xdisp.c (redisplay_internal): Check that the frame is still
3458 live after redisplay of its windows.
3459 (redisplay_windows): Check that the window is still live.
3460
7f1faf1c
KH
34612009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3462
3463 * coding.c (detect_coding_utf_16): Fix previous change.
3464
cc13543e
KH
34652009-06-16 Kenichi Handa <handa@m17n.org>
3466
3467 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3468 UTF-16 by checking the dispersion of Eth and Oth bytes.
3469
977b85f4
AS
34702009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3471
3472 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3473
66bd43d1
KH
34742009-06-15 Kenichi Handa <handa@m17n.org>
3475
3476 * process.c (status_message): Fix previous change. Be sure to
3477 decode a localized string.
3478
cb5ca9c5
YM
34792009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3480
3481 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3482 add comment explaining why.
3483
ec7709ba 34842009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3485
ec7709ba 3486 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3487
4b7f335c
AR
34882009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3489
3490 * nsfont.m (ns_attribute_value): Remove.
3491 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3492 (ns_has_attribute): Shrink the normal range.
3493 (ns_findfonts): Don't worry about requested spec in determining
3494 need for synthItal.
e41820ee 3495 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3496
73b26103
SZ
34972009-06-14 Seiji Zenitani <zenitani@mac.com>
3498
3499 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3500
5753e4da
KH
35012009-06-11 Kenichi Handa <handa@m17n.org>
3502
3503 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3504 overhang for the static composition case.
3505
3561b671
KH
35062009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3507
5753e4da
KH
3508 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3509 overhang for the automatic composition case.
3510
3561b671
KH
3511 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3512 composition case.
3513
852bbd41
CY
35142009-06-10 Chong Yidong <cyd@stupidchicken.com>
3515
3516 * xdisp.c (get_next_display_element): When handling wrap-prefix
3517 and line-prefix, treat \n as a control character (bug#3502).
3518
9903d1e6
KH
35192009-06-10 Kenichi Handa <handa@m17n.org>
3520
3521 * font.c (font_parse_family_registry): Fix for one-char foundry.
3522 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3523
0bcbaaaa
CY
35242009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3525
3526 * process.c (status_message): Fix handling of multibyte signal
3527 string (Bug#3499).
3528
40aa3f13
JM
35292009-06-09 Jim Meyering <meyering@redhat.com>
3530
1f80c7e2
CY
3531 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3532 color name is missing.
40aa3f13 3533
72d51285
KH
35342009-06-09 Kenichi Handa <handa@m17n.org>
3535
3536 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3537 FROM-CODE and TO-CODE are codepoints of CHARSET.
3538
c1d04d84
AR
35392009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3540
3541 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3542
35432009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3544
3545 Changes to support :script/:lang/:otf in NS font driver.
3546 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3547 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3548 indicate not part of font driver interface, and change callers.
3549 (ns_get_family): Remove pointless null check.
3550 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3551 ns_spec_to_descriptor, ns_descriptor_to_entity.
3552 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3553 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3554 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3555 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3556 (ns_get_req_script, ns_accumulate_script_ranges)
3557 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3558 New functions.
3559 (nsfont_list, nsfont_match): Use ns_findfonts.
3560 (nsfont_open): Use font descriptor instead of traits.
3561 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3562 (dump_glyphstring): Rename to ns_dump_glyphstring.
3563
c7eb9816
AR
3564 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3565
c1d04d84
AR
3566 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3567
3568 * fontset.c (fontset_from_font): Remove NS-specific code.
3569
ec7709ba 35702009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3571
3572 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3573 nonactive windows.
3574
31fd7c5c 35752009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3576
1ac9108a 3577 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3578
68852c13 35792009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3580
3581 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3582
6756cd1d
CY
35832009-06-07 Chong Yidong <cyd@stupidchicken.com>
3584
3585 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3586 account for the overflowing of newlines into the last glyph on the
3587 display line (Bug#3482).
3588
28bf482a
DR
35892009-06-05 David Reitter <david.reitter@gmail.com>
3590
ec7709ba
JB
3591 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3592 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3593 Fns_selection_exists_p, Fns_selection_owner_p.
3594
fdb55376
JR
35952009-06-03 Jason Rumney <jasonr@gnu.org>
3596
3597 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3598 available. (Bug#3379)
3599
05129fbe
KH
36002009-05-29 Kenichi Handa <handa@m17n.org>
3601
1ac9108a
SM
3602 * coding.c (get_translation_table):
3603 Check Venable_character_translation.
05129fbe 3604
ec7709ba 36052009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3606
ec7709ba
JB
3607 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3608 (x_make_frame_visible): Move frame to front rather than calling
15891144 3609 ns_raise_frame().
ec7709ba 3610 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3611 isn't key window.
ec7709ba 3612 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3613 drawRect may be called by NSView even if the frame is hidden.
3614
ec7709ba
JB
3615 * nsfns.m (Fx_create_frame): Follow other ports in
3616 determining visibility; default to t. Ensure async_visible is set.
15891144 3617
21f73755
EZ
36182009-05-23 Eli Zaretskii <eliz@gnu.org>
3619
3620 * dired.c (Ffile_attributes): Doc fix.
3621
34001e41
CY
36222009-05-22 Chong Yidong <cyd@stupidchicken.com>
3623
3624 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3625
46306a17
SM
36262009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3627
3628 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3629 and xfont_scratch_props.
3630 (syms_of_xfont): Do it here instead.
3631 (xfont_find_ccl_program): Delete, unused.
3632 (xfont_open): Delete unused var `i'.
3633
ef6e0694
KH
36342009-05-21 Kenichi Handa <handa@m17n.org>
3635
3636 * fontset.c (Qlatin): Don't make it static.
3637
46306a17
SM
3638 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3639 New functions.
ef6e0694
KH
3640 (xfont_scripts_cache, xfont_scratch_props): New variables.
3641 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3642 (xfont_list_pattern): Argument changed. Callers changed.
3643 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3644 (xfont_list): Don't reject a font spec with :script property.
3645 (xfont_has_char): Fix setting of encoding.
3646 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3647 xfont_scratch_props.
3648
36492009-05-19 Kenichi Handa <handa@m17n.org>
3650
46306a17 3651 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3652 Callers changed.
3653
36542009-05-18 Kenichi Handa <handa@m17n.org>
3655
3656 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3657
ac71ced7
SM
36582009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3659
3660 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3661 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3662
1c6d1051
YM
36632009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3664
3665 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3666 (x_delete_terminal): Dissociate resource database from display and
3667 then call XrmDestroyDatabase before closing display.
3668
9b9b779c
AR
36692009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3670
3671 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3672 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3673 whether selected frame is viable before raising it (based on patch
3674 by David Reitter), and improve commentary.
3675 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3676
cccd42d5
KH
36772009-05-15 Kenichi Handa <handa@m17n.org>
3678
3679 * font.c (Ffont_spec): Check arguments.
3680
337fbd17
CY
36812009-05-14 Chong Yidong <cyd@stupidchicken.com>
3682
3683 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3684 weight when testing attributes (Bug#3282).
3685
47a6002f
JD
36862009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3687
3688 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3689 what we expect to get in the next ConfigureNotify event.
3690
9cb363db
YM
3691 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3692 before Xft one (Bug#1696).
3693
b9126609
CY
36942009-05-07 David Reitter <david.reitter@gmail.com>
3695
3696 * nsfns.m (Fx_display_planes): Compute bitplanes using
3697 NSBitsPerPixelFromDepth (Bug#3207).
3698
27a69fd9
CY
36992009-05-10 Chong Yidong <cyd@stupidchicken.com>
3700
3701 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3702
00f37552
TTN
37032009-05-10 Ulrich Mueller <ulm@gentoo.org>
3704
3705 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3706
2d82a920
DR
37072009-05-07 David Reitter <david.reitter@gmail.com>
3708
ec7709ba
JB
3709 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3710 Respect mouse face background.
2d82a920 3711
46b0d52d
DR
37122009-05-07 David Reitter <david.reitter@gmail.com>
3713
ec7709ba
JB
3714 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3715 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3716 in ns_update_begin and ns_update_end.
3717
ce1b23bb
SM
37182009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3719
5996e1b7
SM
3720 * nsfns.m (ns_get_screen): Rewrite.
3721 Don't presume selected-frame is of type `ns'.
3722
ba98e3a0
SM
3723 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3724 all drivers.
3725
ce1b23bb
SM
3726 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3727
bcda200f
YM
37282009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3729
3730 * keyboard.h (add_user_signal): Fix typo in extern.
3731
3732 * lisp.h (add_user_signal): Remove extern.
3733
3734 * unexelf.c (unexec): Consider a section to precede the .bss section
3735 if its addresses overlap that of .bss.
3736 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3737 instead of dumping process.
3738
864660a2
SM
37392009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3740
3741 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3742
50da4e56
SM
37432009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3744
3745 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3746
51520a1a
DN
37472009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3748
3749 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3750 any statements.
3751
409ea3a1
AS
37522009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3753
59c4c60f
AS
3754 * process.c (read_process_output): Make sure the current buffer is
3755 always restored.
3756
409ea3a1
AS
3757 * coding.c (record_conversion_result): Don't modify
3758 Vlast_code_conversion_error for successful result.
3759 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3760
56f00ed2
KH
37612009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3762
3763 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3764 (load_charset_map): Remove unnecessary code.
56f00ed2 3765
4491c9d2
DR
37662009-04-30 David Reitter <david.reitter@gmail.com>
3767
35f5b128 3768 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3769 through f24.
3770
6970f632
CY
37712009-04-30 Chong Yidong <cyd@stupidchicken.com>
3772
3773 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3774
3775 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3776 face_at_buffer_position.
3777 (face_before_or_after_it_pos, get_next_display_element)
3778 (note_mouse_highlight): Update face_at_buffer_position call.
3779
3780 * term.c (term_mouse_highlight):
3781 * msdos.c (IT_note_mouse_highlight):
3782 * fontset.c (Finternal_char_font):
35f5b128 3783 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3784
3785 * dispextern.h (face_at_buffer_position): Update prototype.
3786
0c616f63
KH
37872009-04-30 Kenichi Handa <handa@m17n.org>
3788
35f5b128 3789 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3790
ad3aaf33
AS
37912009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3792
3793 * callproc.c (Fcall_process): Fix GC protection. Make sure
3794 current buffer is always restored.
3795
c3c963a0
YM
37962009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3797
3798 * atimer.c (init_atimer): Also clear stopped_atimers.
3799
3800 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3801
7e3386cb
YM
3802 * process.c (create_process): Clean up merger residues of
3803 2008-07-17 change.
3804
91f68422
CY
38052009-04-29 Ulrich Mueller <ulm@gentoo.org>
3806
3807 * lread.c (Vread_circle): New variable.
3808 (read1): Disable recursive read if Vread_circle is nil.
3809
24b34550
KH
38102009-04-29 Kenichi Handa <handa@m17n.org>
3811
3812 * fontset.h (set_default_ascii_font): Delete extern.
3813
3814 * fontset.c (set_default_ascii_font): Delete this unused function.
3815
3816 * frame.c (x_set_font): When ARG is a font-object, check if the
3817 font-object matches with the ASCII font-spec of the frame's
9c358bda 3818 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3819
77bf07e1
AS
38202009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3821
3822 * fns.c (Flocale_info): Protect vector from GC during decoding.
3823
3824 * process.c (Fstart_process): Protect argv strings from GC during
3825 encoding.
3826
2c55aacf
AS
38272009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3828
3829 * sysdep.c: Include <ctype.h>.
3830
b892d3c9
DR
38312009-04-27 David Reitter <david.reitter@gmail.com>
3832
35f5b128 3833 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3834 Remove commented-out code.
3835
9d0644c4
JB
38362009-04-26 Johan Bockgård <bojohan@gnu.org>
3837
3838 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3839
b7053016
JR
38402009-04-25 Jason Rumney <jasonr@gnu.org>
3841
3842 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3843
4e8231f3
YM
38442009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3845
3846 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3847 Swap bytes in short integer if fringe bitmap width > 8.
3848
493dcf2c
KH
38492009-04-23 Kenichi Handa <handa@m17n.org>
3850
3851 * xfaces.c (Fx_list_fonts): If a font size is specified in
3852 PATTERN, set it in returned scalable fonts.
3853
401e9e57
CY
38542009-04-22 Chong Yidong <cyd@stupidchicken.com>
3855
708e05dc
CY
3856 * keyboard.c (Fset_input_meta_mode): Doc fix.
3857
3858 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3859
1ac9108a 3860 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3861
3862 * coding.c (Fterminal_coding_system): Doc fix.
3863
3864 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3865 (Fx_display_pixel_height, Fx_display_planes)
3866 (Fx_display_color_cells, Fx_server_max_request_size)
3867 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3868 (Fx_display_mm_height, Fx_display_mm_width)
3869 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3870 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3871 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3872 (check_x_display_info): Handle terminal objects instead of
3873 terminal ids.
3874
401e9e57
CY
3875 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3876 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3877 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3878 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3879
df80c7f0
KH
38802009-04-21 Kenichi Handa <handa@m17n.org>
3881
5a8f12af 3882 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3883 (font_score): Check AVGWIDTH too.
908567ef 3884
df80c7f0
KH
3885 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3886 worst case.
1ac9108a
SM
3887 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3888 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3889
705af33f
JR
38902009-04-19 Jason Rumney <jasonr@gnu.org>
3891
3892 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3893 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3894
3895 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3896 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3897 get_phys_cursor_geometry.
3898
b71ac3dd 3899 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3900 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3901 using get_phys_cursor_geometry.
3902
3903 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3904 correctly calculated.
3905
dc2933eb
JD
39062009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3907
1ac9108a
SM
3908 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3909 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3910 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3911 is deprecated.
3912
973e7849
AS
39132009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3914
3915 * font.c (font_put_frame_data): Use xfree instead of free.
3916
314d66f4
JB
39172009-04-17 Juanma Barranquero <lekktu@gmail.com>
3918
3919 * w32font.c (Qja, Qko): Remove declarations.
3920 (syms_of_w32font): Don't DEFSYM them.
3921
cf702558
CY
39222009-04-17 Chong Yidong <cyd@stupidchicken.com>
3923
3924 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3925
3926 * font.h (Qja, Qko): Extern them.
3927
3928 * ftfont.c (Qja, Qko): Remove declarations.
3929
3930 * xfont.c (Qja, Qko): Remove declarations.
3931
b50504f5
KH
39322009-04-17 Kenichi Handa <handa@m17n.org>
3933
bde25748
KH
3934 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3935 string from a vector to handle Latin-1 characters correctly.
3936
b50504f5
KH
3937 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3938 entity even if the cache hits.
3939
f4646fff
AS
39402009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3941
3942 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3943 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3944
e7deaab0
AS
3945 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3946 * lisp.h: Adjust prototypes.
3947
0a0e7d49
CY
39482009-04-16 Chong Yidong <cyd@stupidchicken.com>
3949
3950 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3951 change (Bug#3003).
3952
3c908a57
KH
39532009-04-16 Kenichi Handa <handa@m17n.org>
3954
1ac9108a 3955 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3956
3957 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3958 adstyle.
3959
3960 * ftfont.c (Qja, Qko): Don't make them static.
3961 (enum ftfont_cache_for): New enum.
3962 (fc_charset_table): Undo the previous change.
3963 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3964 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3965 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3966 non-scarable font, try to get AVERAGE_WIDTH.
3967 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3968 Change ft_face_cache from a list of a hash-table. Don't check
3969 `ja' and `ko' adstyle here.
3970 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3971 FTFONT_CACHE_FOR_CHARET.
3972 (ftfont_get_charset): Undo the previous change.
1ac9108a 3973 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3974 (ftfont_close): Likewise.
3975 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3976
3977 * font.c (font_sort_entites): Change the meaning of the arg
3978 BEST-ONLY. Don't optimize for VEC of lenght 1.
3979 (font_select_entity): Just return the value of font_sort_entites.
3980
3981 * xfaces.c (merge_face_vectors): Reflect font properties in
3982 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3983 font_clear_prop if a face attribute doesn't change.
3984
3c908a57
KH
3985 * charset.h (charset_ksc5601): Extern it.
3986
3987 * charset.c (charset_ksc5601): New variable.
3988 (Fdefine_charset_internal): Set charset_ksc5601.
3989 (init_charset_once): Initialize charset_ksc5601 to -1.
3990
d65859c3
DN
39912009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3992
3993 * fileio.c (history_delete_duplicates): Remove unused declaration.
3994
3995 * callint.c (history_delete_duplicates): New declaration.
3996 (Fcall_interactively): Remove command history duplicates when
3997 history_delete_duplicates is true.
3998
3ba010e5
EZ
39992009-04-14 Eli Zaretskii <eliz@gnu.org>
4000
4001 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4002
06f19b91
KH
40032009-04-14 Kenichi Handa <handa@m17n.org>
4004
4005 * font.c (Ffont_info): Fix docstring. Fix the second element of
4006 the returned value (bug#2949).
4007
2cce8bfc
CY
40082009-04-14 Chong Yidong <cyd@stupidchicken.com>
4009
4010 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4011
d156542d
KH
40122009-04-14 Kenichi Handa <handa@m17n.org>
4013
4014 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4015 encoding charset is ascii_compatible.
4016
4017 * charset.c (Fdefine_charset_internal): Make charset
4018 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4019 code_offset is 0, and covers all ASCII characters.
4020
86fa089e
SM
40212009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4022
4023 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4024 (ns_string_to_pasteboard_internal):
4025 * nsmenu.m (process_dialog):
4026 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4027 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4028 * lisp.h (Fx_load_color_file): Declare.
4029
a8a3728b
KH
40302009-04-13 Kenichi Handa <handa@m17n.org>
4031
1ac9108a 4032 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4033 (font_select_entity): Suppress the code to optimize for the same
4034 kind of fonts.
4035 (font_load_for_lface): Get a font that supports at least ASCII
4036 characters.
4037
4038 * ftfont.c (Qja, Qko): New variables.
4039 (fc_charset_table): Delete uniquifier data for iso8859-1.
4040 (ftfont_get_latin1_charset): New function.
4041 (get_adstyle_property): New function.
4042 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4043 bitmap fonts.
4044 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4045 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4046 `ko' or `ja'.
4047 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4048 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4049 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4050 property.
4051 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4052 (syms_of_ftfont): DEFSYM Qja and Qko.
4053
483670b5
KH
40542009-04-09 Kenichi Handa <handa@m17n.org>
4055
12b55765
KH
4056 * charset.c (map_charset_chars): For a charset of `superset'
4057 method, fix calculation of code range.
4058
483670b5
KH
4059 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4060 from the list of extra properties.
4061 (font_clear_prop): Be sure to delete `:name' font property.
4062
57d3b93b
KH
40632009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4064
b4b2c2ca
YM
4065 * dispnew.c (redraw_overlapping_rows): Fix detection of
4066 overlapping for topmost and bottommost rows.
4067
1ac9108a 4068 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4069
472c3609
JR
40702009-04-06 Jason Rumney <jasonr@gnu.org>
4071
4072 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4073
ab193662
KH
40742009-04-06 Kenichi Handa <handa@m17n.org>
4075
4076 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4077
4078 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4079
0c26f026
KH
40802009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4081
4082 * ftfont.c (ftfont_open): Fix checking of the return value of
4083 FT_Load_Char. Fix setting font->underline_thickness.
4084
e173bbce
CY
40852009-04-04 Chong Yidong <cyd@stupidchicken.com>
4086
4087 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4088 (Fterminal_parameters, Fterminal_parameter)
4089 (Fset_terminal_parameter): In doc string, refer to terminal
4090 objects rather than terminal ids.
4091
693a2698
EZ
40922009-04-04 Eli Zaretskii <eliz@gnu.org>
4093
4094 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4095 ret_lim_data. (Bug#2867)
4096
d5221487
CY
40972009-04-03 Chong Yidong <cyd@stupidchicken.com>
4098
4099 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4100 so they don't get wider than the window, matching 2006-01-23
4101 change to the partner function in xdisp.c (Bug#2800).
4102
223509a3
KH
41032009-04-03 Kenichi Handa <handa@m17n.org>
4104
4105 * print.c (print_object): Make each lowest sub_char_table start a
4106 new line (Bug#2866).
4107
74fcd0b1
KH
41082009-04-02 Kenichi Handa <handa@m17n.org>
4109
4110 * fontset.c (fontset_font): Record no-font when a fontset
4111 explicitly tells not to try another font-specs.
4112
c542407d
SM
41132009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4114
4115 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4116
e3869731
KH
41172009-03-30 Kenichi Handa <handa@m17n.org>
4118
d8d2f142
KH
4119 * fontset.c (fontset_from_font): Specify only registry in a
4120 font-spec for all characters supported by that registry.
4121
e3869731
KH
4122 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4123 even if HAVE_M17N_FLT is not defined.
4124
5da5f805
CY
41252009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4126
4127 * ftfont.c: Conditionalize prototyping and use of
4128 ftfont_variation_glyphs.
4129
ab226c50
SM
41302009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4131
9628fed7
SM
4132 * frame.c (delete_frame): Work around compiler bug.
4133
4134 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4135 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4136 Some more EMACS_INT.
4137 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4138
4139 * xdisp.c (dump_glyph): Fix typo.
4140
ae19ba7c
SM
4141 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4142 (adjust_markers_gap_motion, adjust_markers_for_delete)
4143 (adjust_markers_for_insert, adjust_point)
4144 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4145 (make_gap, copy_text, count_size_as_multibyte, insert)
4146 (insert_and_inherit, insert_before_markers)
4147 (insert_before_markers_and_inherit, insert_1)
4148 (count_combining_before, count_combining_after, insert_1_both)
4149 (insert_from_string, insert_from_string_before_markers)
4150 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4151 (insert_from_buffer_1, adjust_after_replace)
4152 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4153 (replace_range_2, del_range, del_range_1, del_range_byte)
4154 (del_range_both, del_range_2, modify_region)
4155 (prepare_to_modify_buffer, signal_before_change)
4156 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4157 for buffer positions and sizes.
4158 * lisp.h: Adjust prototypes accordingly.
4159
4160 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4161 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4162 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4163
ab226c50
SM
4164 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4165
46dfb8fb
JD
41662009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4167
4168 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4169 lines and columns so we keep the same pixel height and width.
4170
4171 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4172 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4173 (x_handle_net_wm_state): New function to update frame parameter
4174 fullscreen.
4175 (x_term_init): Initialize atoms for _NET_WM_STATE.
4176
4177 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4178
d347e494
SM
41792009-03-27 Kevin Ryde <user42@zip.com.au>
4180
4181 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4182 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4183 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4184 (Fgpm_mouse_stop): Pass that new parameter.
4185 * termhooks.h (close_gpm): Adjust prototype.
4186
84db11d6
SM
41872009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4188
c95a5008
SM
4189 * lisp.h (Fx_focus_frame): Declare.
4190
84db11d6
SM
4191 * callint.c (Fcall_interactively): For '^' just delegate the work to
4192 handle-shift-selection.
4193 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4194
0a1958d6
CY
41952009-03-24 Chong Yidong <cyd@stupidchicken.com>
4196
0bfdff23
CY
4197 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4198
0a1958d6
CY
4199 * data.c (Qinteractive_form): New variable.
4200 (Finteractive_form): Use it.
4201
4202 * eval.c (Fcommandp): Use Qinteractive_form.
4203
58aec0d6
JR
42042009-03-24 Jason Rumney <jasonr@gnu.org>
4205
4206 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4207 Calculate total size precisely. Decode environment variables
4208 before substituting. (Bug#38)
4209
553dd618
KH
42102009-03-24 Kenichi Handa <handa@m17n.org>
4211
4212 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4213 encoding (Bug#2722).
553dd618 4214
c39ea606
JD
42152009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4216
4217 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4218 that gdpy is set.
4219
bc9b2b5e
AM
42202009-03-22 Alan Mackenzie <acm@muc.de>
4221
4222 * callint.c (Finteractive): Clarify the doc string - even
4223 promptless elements need \n separators.
4224
9f995a76
JR
42252009-03-22 Jason Rumney <jasonr@gnu.org>
4226
4227 * w32term.c (syms_of_w32term): Doc fix for
4228 x-use-underline-position-properties.
4229
22749e9a
EZ
42302009-03-21 Eli Zaretskii <eliz@gnu.org>
4231
4232 * w32.c (getpwuid): Change argument type to unsigned.
4233 (struct w32_id): Change type of `rid' member to unsigned.
4234 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4235 argument ID to unsigned. All callers changed.
4236 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4237
e00553bf
EZ
42382009-03-20 Eli Zaretskii <eliz@gnu.org>
4239
4240 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4241 negative, produce a float value.
4242
4243 * dired.c (make_uid, make_gid): New functions.
4244 (Ffile_attributes): Use them to avoid negative UID and GID.
4245
f761d6b6
JB
42462009-03-20 Juanma Barranquero <lekktu@gmail.com>
4247
4248 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4249 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4250 Fix typos in docstrings.
4251
d507f8d7
KH
42522009-03-19 Kenichi Handa <handa@m17n.org>
4253
4254 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4255 changed, use font_load_for_lface to get a new font object.
4256 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4257
4258 * frame.c (x_set_font): Handle the case that ARG is a cons.
4259
c68845e0
GM
42602009-03-19 Glenn Morris <rgm@gnu.org>
4261
4262 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4263
bfa49dd1
CY
42642009-03-19 Chong Yidong <cyd@stupidchicken.com>
4265
4266 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4267
8458d4c1
KH
42682009-03-19 Kenichi Handa <handa@m17n.org>
4269
4270 * charset.c (load_charset_map_from_file): When a mapfile can't be
4271 loaded, signal an error.
4272
78e7d1fe
EZ
42732009-03-18 Eli Zaretskii <eliz@gnu.org>
4274
4275 * dired.c (Ffile_attributes): Make sure UID and GID are always
4276 positive, even if the value is too large for a positive EMACS_INT.
4277 Doc fix.
4278
4279 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4280
5da9fdfa
YM
42812009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4282
4283 * xmenu.c (xdialog_show): Move Fredisplay call ...
4284 (Fx_popup_dialog): ... here.
4285
7519c40d
SM
42862009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4287
4288 * dired.c (file_name_completion): Disable the first optimization just
4289 installed, since it is not implemented correctly.
4290
2cd298e2
SM
42912009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4292
4293 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4294 only if the entry can affect bestmatch.
2cd298e2
SM
4295 Stop the search early, as Ftry_completion already does.
4296
48d37adf
CY
42972009-03-17 Chong Yidong <cyd@stupidchicken.com>
4298
e10c9c93 4299 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4300
9286b16a
CY
43012009-03-15 Chong Yidong <cyd@stupidchicken.com>
4302
4303 * keyboard.c (parse_menu_item): Don't display remappings as menu
4304 equivalent bindings (Bug#788).
4305
f7b146dc
JR
43062009-03-15 Jason Rumney <jasonr@gnu.org>
4307
4308 * w32term.h (WM_EMACS_PAINT): New message.
4309 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4310 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4311 before passing to lisp thread. (Bug#950)
4312
f761d6b6 43132009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4314
d93f9575
CY
4315 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4316 variable as it was never reset.
4317 (ns_term_init): Remove initialization of Lisp-settable defaults
4318 and ns_expand_space.
4319 (-setPanelFromDefaultValues): Remove ns_expand_space.
4320 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4321 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4322 i.e. no additional spacing, similar to Carbon port.
4323
d93f9575
CY
4324 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4325 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4326
305018ec
JD
43272009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4328
4329 * sound.c (alsa_configure): Remove call to deprecated
4330 snd_pcm_sw_params_set_xfer_align.
4331
f761d6b6 43322009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4333
4334 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4335 after clicking in a detached tool bar.
4336 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4337
46e722a9
SM
43382009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4339
348db3dd
SM
4340 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4341 int/Lisp_Object mixup).
46e722a9 4342
a3d16f39
KH
43432009-03-13 Kenichi Handa <handa@m17n.org>
4344
4345 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4346 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4347 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4348 (set_fontset_font): Change ARG to a vector. Handle range_list in
4349 ARG correctly.
4350 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4351 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4352 the above change.
4353 (fontset_from_font): Fix previous change.
fe24f56a 4354 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4355 entry. If FONTSET is the default fontset, don't set the extra
4356 slot of the returning char-table.
4357
b066e6b6
JB
43582009-03-12 Juanma Barranquero <lekktu@gmail.com>
4359
4360 * nsfns.m (Fx_close_connection): Doc fix.
4361 (Fns_do_applescript): Reflow docstring.
4362 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4363 (Fx_display_pixel_width, Fx_display_pixel_height)
4364 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4365 Fix typos in docstrings.
4366 (Fns_set_alpha): Fix typos in error messages.
4367
d472514e 43682009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4369
d472514e 4370 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4371 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4372 were used for such events.
4373
d472514e
JB
4374 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4375 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4376
d472514e 4377 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4378 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4379
fb930676
KH
43802009-03-11 Kenichi Handa <handa@m17n.org>
4381
ff85581a
KH
4382 * font.h (font_open_by_spec): Extern it.
4383
c50b7e98
KH
4384 * font.c (font_open_by_spec): New function.
4385 (font_open_by_name): Use font_open_by_spec.
4386
fb930676
KH
4387 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4388 fontset of the frame.
4389
4390 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4391 modify the default font of frames that use this fontset.
4392 (num_auto_fontsets): New variable.
4393 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4394 name. Be sure to set FONTSET_ASCII to the correct font name.
4395 (update_auto_fontset_alist): New function.
4396
df4e8455
JB
43972009-03-11 Juanma Barranquero <lekktu@gmail.com>
4398
4399 * makefile.w32-in: Update dependencies.
4400
0a375797
AR
44012009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4402
4403 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4404
61313fa3
SM
44052009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4406
4407 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4408
b55103fb
CY
44092009-03-10 Chong Yidong <cyd@stupidchicken.com>
4410
4411 * lread.c (Feval_buffer): Doc fix.
4412
dde2559c
KH
44132009-03-09 Kenichi Handa <handa@m17n.org>
4414
4415 * charset.c (Qfile_name_handler_alist): Extern it.
4416 (load_charset_map_from_file): Temporarily bind
4417 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4418
df4e8455 44192009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4420
47f588bb
GM
4421 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4422 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4423
4ddf94bd
AR
44242009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4425
4c9bdfc2
AR
4426 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4427 (x_set_window_size): Change back to calculated method of setting
4428 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4429 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4430 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4431
fe41ae9e
AR
4432 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4433
4c9bdfc2
AR
4434 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4435 accelerator in parens under GNUstep.
4436
825d0875
KH
44372009-03-06 Kenichi Handa <handa@m17n.org>
4438
4439 These changes are to detect incorrect composition sequence without
f3b3be74 4440 looking ahead the source. (Bug#2370)
825d0875
KH
4441
4442 * coding.h: Include "composite.h".
4443 (enum compisition_state): New enum.
4444 (struct compisition_status): New struct.
4445 (struct iso_2022_spec): New member cmp_status.
4446 (struct emacs_mule_spec): New struct.
4447 (struct coding_system): New members ctext_extended_segment_len and
4448 embedded_utf_8. Change the union member
4449 spec.emacs_mule_full_support to spec.emacs_mule.
4450
4451 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4452 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4453 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4454 (ADD_COMPOSITION_DATA): New arg nbytes.
4455 (emacs_mule_char): New arg cmp_status.
4456 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4457 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4458 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4459 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4460 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4461 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4462 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4463 (EMACS_MULE_COMPOSITION_END): New macro.
4464 (emacs_mule_finish_composition): New function.
4465 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4466 (decode_coding_emacs_mule): Avoid long looking ahead while
4467 handling composition.
4468 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4469 (ENCODE_COMPOSITION_RULE): New macro.
4470 (finish_composition): New function.
4471 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4472 (DECODE_COMPOSITION_START): New implementation.
4473 (DECODE_COMPOSITION_END): Likewise.
4474 (STORE_COMPOSITION_RULE): New macro.
4475 (decode_coding_iso_2022): Avoid long looking ahead while handling
4476 composition, CTEXT extended segment, and embedded UTF-8.
4477 (setup_coding_system): For a coding of type iso-2022, reset
4478 CODING_ISO_EXTSEGMENT_LEN (coding) and
4479 CODING_ISO_EMBEDDED_UTF_8 (coding).
4480 (get_translation): Delete arguments last_block, from_nchars,
4481 to_nchars. Callers changed.
4482 (produce_chars): Don't modify charbuf. Adjusted for the change of
4483 get_translation.
98a326f7 4484 (produce_composition): Adjust for the new annotation sequence.
825d0875 4485 (handle_composition_annotation): Likewise.
98a326f7 4486 (consume_chars): Adjust for the change of get_translation.
825d0875 4487
ccbc4452
AR
44882009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4489
4ddf94bd 4490 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4491
988a7ddb
KH
44922009-03-05 Kenichi Handa <handa@m17n.org>
4493
4494 * font.c (font_select_entity): New function.
4495 (font_find_for_lface): Use font_select_entity to select a font.
4496
4497 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4498 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4499 font with C restriction.
4500
98a326f7 45012009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4502
be1bce46 4503 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4504
10ea2b82
JR
45052009-03-04 Jason Rumney <jasonr@gnu.org>
4506
2c93b248 4507 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4508 characters that have already been read. (Bug#2569)
2c93b248 4509
10ea2b82
JR
4510 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4511 Log an error message if check_image_size failed.
4512 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4513 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4514
71a0c011
EZ
45152009-03-02 Eli Zaretskii <eliz@gnu.org>
4516
4517 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4518 when decoding process output.
4519
2f63bba8
RS
45202009-03-01 Richard M Stallman <rms@gnu.org>
4521
4522 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4523
4524 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4525
0a9564cb
EZ
45262009-02-28 Eli Zaretskii <eliz@gnu.org>
4527
4528 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4529 (decode_coding_emacs_mule, decode_coding_iso_2022)
4530 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4531 (decode_coding_raw_text, decode_coding_charset)
4532 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4533 Honor inhibit-eol-conversion. (Bug #2186)
4534
449148b3
JR
45352009-02-28 Jason Rumney <jasonr@gnu.org>
4536
4537 * coding.c (detect_coding_charset): If not checking latin extra,
4538 fail on characters between 0x80 and 0xA0. (Bug#2354)
4539
a4aee864
EZ
45402009-02-28 Eli Zaretskii <eliz@gnu.org>
4541
4542 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4543 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4544
d88bee5a
GM
45452009-02-27 Glenn Morris <rgm@gnu.org>
4546
4547 * callint.c (Finteractive): Doc fix.
4548
a808f22d
KH
45492009-02-27 Kenichi Handa <handa@m17n.org>
4550
4551 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4552
caf8d60c
CY
45532009-02-27 Chong Yidong <cyd@stupidchicken.com>
4554
4555 * font.c (font_style_to_value): Set value for unknown symbols to
4556 100 instead of 255.
b61137ea
CY
4557 (weight_table, slant_table, width_table): Treat "unspecified" as
4558 the default value.
caf8d60c 4559
1a0de25c
JB
45602009-02-26 Juanma Barranquero <lekktu@gmail.com>
4561
4562 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4563
8fc45744
JB
45642009-02-25 Juanma Barranquero <lekktu@gmail.com>
4565
107bd7d1
JB
4566 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4567 error as soon as a recursive load is detected.
8fc45744 4568
f097e223
AR
45692009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4570
4571 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4572 before caching.
4573
8810a12f
KH
45742009-02-24 Kenichi Handa <handa@m17n.org>
4575
4576 * fontset.c (fontset_find_font): Fix the condition for checking
4577 unavailable font.
4578
2c7d1565
GM
45792009-02-24 Glenn Morris <rgm@gnu.org>
4580
4581 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4582 whitespace that confuses documentation.
4583
a20878b6
MB
45842009-02-23 Miles Bader <miles@gnu.org>
4585
4586 * process.c (Flist_system_processes, Fprocess_attributes)
4587 (syms_of_process): Rename `system-process-attributes' to
4588 `process-attributes'.
4589
b3b58c01
AS
45902009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4591
1b3b981b
AS
4592 * coding.h (struct coding_system): Make safe_charsets a pointer to
4593 unsigned char.
4594 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4595 being 255.
4596 (SAFE_CHARSET_P): Likewise.
4597 (setup_iso_safe_charsets): Properly setup safe_charsets.
4598 (Fdefine_coding_system_internal): Likewise.
4599 (setup_coding_system): Likewise. Remove unneeded casts.
4600 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4601 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4602 unneeded casts.
4603
b3b58c01
AS
4604 * insdel.c (del_range_2): Don't modify gap contents when called
4605 from decode_coding_object. (Bug#1809)
4606
0b6f228c
CY
46072009-02-21 Chong Yidong <cyd@stupidchicken.com>
4608
4609 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4610 Qfont_object.
4611 (Ftype_of): Recognize font objects.
4612
4613 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4614
4615 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4616 moved to data.c.
4617
52f8870b
AR
46182009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4619
4620 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4621 async_iconified. Based on a patch by Christian Lynbech
4622 <christian.lynbech@tieto.com>.
4623 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4624
7087d5e9
GM
46252009-02-20 Glenn Morris <rgm@gnu.org>
4626
4627 * syntax.c (Fskip_chars_forward): Fix doc typo.
4628
41d2ceef
CY
46292009-02-20 Chong Yidong <cyd@stupidchicken.com>
4630
4631 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4632
1a3b7ca6
CY
46332009-02-19 Chong Yidong <cyd@stupidchicken.com>
4634
4635 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4636
73cce38d
KH
46372009-02-19 Kenichi Handa <handa@m17n.org>
4638
4639 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4640 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4641
a51092ee
DN
46422009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4643
4644 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4645
c423ecca
KH
46462009-02-18 Kenichi Handa <handa@m17n.org>
4647
4648 * font.c (font_check_otf_features): Fix handling of `nil' element.
4649 (Ffont_spec): Describe :lang and :otf in the docstring.
4650
4c1958f4
AS
46512009-02-16 Andreas Schwab <schwab@suse.de>
4652
4653 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4654 string.
4655
5704f39a
KH
46562009-02-16 Kenichi Handa <handa@m17n.org>
4657
4658 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4659 (Bug#1723)
5704f39a 4660
8f0085aa
CY
46612009-02-14 Chong Yidong <cyd@stupidchicken.com>
4662
a057d86a 4663 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4664
4665 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4666 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4667
aff01dd9
EZ
46682009-02-14 Eli Zaretskii <eliz@gnu.org>
4669
4670 * msdos.c (MAX_SCREEN_BUF): New macro.
4671 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4672 Encode the entire run of glyphs sharing the same face, instead of
4673 doing that one glyph at a time (fixes a bug with displaying
4674 double-size characters).
4675
ba301db3
AR
46762009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4677
4678 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4679
4680 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4681 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4682 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4683
4684 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4685 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4686
51d861de
SM
46872009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4688
ac146f82 4689 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4690 invisible areas.
4691
7fed8996
JR
46922009-02-12 Jason Rumney <jasonr@gnu.org>
4693
631ea4fb
JR
4694 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4695 (add_font_entity_to_list): Call check_face_name even when family
4696 is unspecified.
4697
cb4a3e42
JR
4698 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4699 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4700 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4701
7fed8996 4702 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4703 raster fonts. (Bug#2219)
7fed8996 4704
895416e3
KH
47052009-02-12 Kenichi Handa <handa@m17n.org>
4706
4707 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4708 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4709 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4710 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4711 (find_automatic_composition): While looking forward and backward,
4712 check static composition. Fix where to stop looking forward.
4713 (composition_adjust_point): Fix checking of static composition.
4714 (Fcomposition_get_gstring): Pay attention to
1dacf998 4715 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4716
4717 * lisp.h (fast_looking_at): Extern it.
4718
4719 * search.c (fast_looking_at): New function.
4720
51d861de 4721 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4722 <struct glyph>.u.cmp.to.
4723 (append_composite_glyph): Likewise.
4724
51d861de 4725 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4726 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4727 composition.
51d861de 4728 (append_composite_glyph): Adjust for the change of
895416e3
KH
4729 <strcut glyph>.u.cmp.to.
4730
8510724d
JB
47312009-02-11 Juanma Barranquero <lekktu@gmail.com>
4732
4733 * casetab.c (init_casetab_once):
4734 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4735 * font.c (font_update_lface):
4736 * fontset.c (Fnew_fontset):
4737 * ftfont.c (ftfont_drive_otf):
4738 * xfont.c (xfont_open):
4739 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4740
294fa707
SM
47412009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4742
4743 * fileio.c (Fwrite_region): !NILP -> CONSP.
4744
b5bfebec
AS
47452009-02-10 Andreas Schwab <schwab@suse.de>
4746
4747 * process.c (send_process): Properly relocate pointer into data
adab88bd 4748 when using encoded data. (Bug#2272)
b5bfebec 4749
cb84a2be
KH
47502009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4751
4752 * coding.c (detect_coding_charset): Fix previous change.
4753
89e09428
JR
47542009-02-08 Jason Rumney <jasonr@gnu.org>
4755
4756 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4757 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4758
4470a277
AS
47592009-02-07 Andreas Schwab <schwab@suse.de>
4760
4761 * unexelf.c (unexec): Fix error message.
4762
3175b12a
AR
47632009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4764
4765 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4766 when modal window is active. (Bug #2152)
3175b12a
AR
4767 (applicationShouldTerminate:): Remove now-unneeded while loop
4768 around NSRunAlertPanel.
4769
4770 * nsmenu.m (popupSession): New file-global variable.
4771 (pop_down_menu): End the popupSession before closing dialog.
4772 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4773 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4774 don't query NSApp for events (just sleep instead).
4775
8434d0b8
EZ
47762009-02-07 Eli Zaretskii <eliz@gnu.org>
4777
51d861de
SM
4778 * coding.c (syms_of_coding) <translation-table-for-input>:
4779 Modify doc string to discourage use for character code unification.
8434d0b8 4780
aa82edfd
CY
47812009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4782
4783 * atimer.c (run_timers): Update pending_atimers.
4784
2d283c7c
CY
47852009-02-06 Chong Yidong <cyd@stupidchicken.com>
4786
eb306cab
CY
4787 * image.c (svg_load_image): Fix last change.
4788
2d283c7c
CY
4789 * xfns.c (Fx_create_frame): Signal an error if no font is
4790 found (Bug#2147).
4791
4d8e170e
JB
47922009-02-05 Juanma Barranquero <lekktu@gmail.com>
4793
4794 * character.c (syms_of_character) <script-representative-chars>:
4795 Fix typo in docstring.
4796
c96169a0
AR
47972009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4798
4799 * nsmenu.m (pop_down_menu): New function.
4800 (ns_popup_dialog): Call it on unwind.
4801 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4802 call timer_check() (Bug#2154).
4803 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4804 handling_signal is set.
4805 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4806
31fd7c5c 4807 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4808
4809 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4810
4811 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4812
51d861de
SM
4813 * keyboard.c (poll_for_input_1, handle_async_input):
4814 Set handling_signal under HAVE_NS.
c96169a0 4815
aacd8ba1
GM
48162009-02-04 Glenn Morris <rgm@gnu.org>
4817
4818 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4819
4cb75c4b
KH
48202009-02-04 Kenichi Handa <handa@m17n.org>
4821
4822 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4823
4824 * charset.c (Fchar_charset): New optional arg restriction.
4825
4826 * coding.h (coding_system_charset_list): Extern it.
4827
4828 * coding.c (coding_system_charset_list): New function.
4829
4830 * composite.c: Include coding.h and termhooks.h.
4831 (composition_gstring_p): Fix for the terminal case.
4832 (composition_gstring_width): Likewise.
4833 (fill_gstring_body): Likewise.
4834 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4835 the frame.
4836 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4837 is within a composition.
867d4bb3 4838 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4839
4840 * term.c (encode_terminal_code): Fix handling of composition.
4841 (produce_composite_glyph): For static composition, get pixel_width
4842 from struct composition.
4843
826ba17e
AS
48442009-02-02 Andreas Schwab <schwab@suse.de>
4845
4846 * unexelf.c (unexec): Handle unaligned bss offset.
4847
8ad093db
AR
48482009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4849
4850 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4851 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4852
8ad093db
AR
4853 * keyboard.c (handle_interrupt): Don't call
4854 quit_throw_to_read_char() under NS.
d0a76a6e 4855
8ad093db
AR
4856 * blockinput.h: Remove NS-specific code.
4857
4d18a7a2
DN
48582009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4859
db878925
DN
4860 * dispnew.c (window_change_signal): Don't try to get the size of a
4861 suspended tty frame.
4862 * term.c (Fresume_tty): Resize if the size has changed while the
4863 tty was suspended.
4864
4d18a7a2
DN
4865 * alloc.c (mark_stack): Properly conditionalize previous change.
4866
8984df7c
JB
48672009-01-30 Juanma Barranquero <lekktu@gmail.com>
4868
4869 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4870 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4871 Remove; this code is not used on Windows.
4872
75f4f1ac
EZ
48732009-01-30 Eli Zaretskii <eliz@gnu.org>
4874
4875 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4876 EOLs that also has stray ^M characters.
4877
07a1e794
JB
48782009-01-30 Juanma Barranquero <lekktu@gmail.com>
4879
4880 * atimer.c (run_timers, alarm_signal_handler):
4881 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4882 * w32inevt.c (w32_console_read_socket):
4883 * w32term.c (w32_read_socket):
4884 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4885
a8b11cc9
CY
48862009-01-30 Chong Yidong <cyd@stupidchicken.com>
4887
4888 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4889 Initialize it as a relative filename pattern.
4890 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4891 (Fcall_process_region): Simplify temp file creation using
4892 temporary-file-directory.
4893
c279587b
EZ
48942009-01-29 Eli Zaretskii <eliz@gnu.org>
4895
4896 * msdos.c: Rename pending_signals to msdos_pending_signals.
4897 (sig_suspender, sigprocmask): Adjust.
4898
a8fe3242
CY
48992009-01-29 Chong Yidong <cyd@stupidchicken.com>
4900
4901 * keyboard.c (pending_signals): New var.
4902 (poll_for_input, input_available_signal, init_keyboard): Set it.
4903 (process_pending_signals): New function.
4904
4905 * lisp.h (QUIT): Check pending_signals instead of
4906 interrupt_input_pending. Use process_pending_signals.
4907
51d861de 4908 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4909
51d861de 4910 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4911
4912 * sysdep.c (emacs_write): Use process_pending_signals.
4913
4914 * xterm.c (XTread_socket): Update pending_signals.
4915
4916 * w32term.c (w32_read_socket): Update pending_signals.
4917
4918 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4919
6570a1c4
KH
49202009-01-29 Kenichi Handa <handa@m17n.org>
4921
4922 * xftfont.c (xftfont_has_char): New function.
4923 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4924
d72a4afa
AR
49252009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4926
4927 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4928 under GNUstep.
4929 (ns_query_color): New declaration.
4930
4931 * nsterm.m (ns_confirm_quit): New variable.
4932 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4933 (EmacsApp-applicationShouldTerminate:): Use it.
4934 (EmacsPrefsController): Let user set it.
4935 (ns_query_color): New function.
4936 (ns_defined_color): Use it.
4937 (ns_initialize): Drop.
4938 (ns_term_init): Add two lines from ns_initialize(), and set
4939 input_interrupt_mode to nil.
4940
4941 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4942 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4943
9fe78804
KH
49442009-01-28 Kenichi Handa <handa@m17n.org>
4945
4946 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4947 (fontset_get_font_group): Remember that no font-group is specified
4948 for C.
9fe78804 4949
fa57de36
CY
49502009-01-27 Chong Yidong <cyd@stupidchicken.com>
4951
930600e9
CY
4952 * fns.c (concat): Check for string overflow (bug#1787).
4953
fa57de36
CY
4954 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4955 Quadruple undo limits (bug#1501).
4956
7179ce7b
KH
49572009-01-27 Kenichi Handa <handa@m17n.org>
4958
4959 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4960 directly use GT_Get_Char_index.
4961
4962 * xftfont.c (struct xftfont_info): New member `index'.
4963
4964 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4965 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4966
5be8fcc0
CY
49672009-01-26 Kenichi Handa <handa@m17n.org>
4968
4969 * fontset.c (fontset_find_font): Fix handling of non-cons return
4970 value of fontset_get_font_group.
4971 (fontset_font): Revert last change.
4972
19ae3e61
JR
49732009-01-26 Jason Rumney <jasonr@gnu.org>
4974
4975 * w32font.c (w32font_list_internal): Return quickly if registry is
4976 unknown. Simplify final return.
4977 (add_font_entity_to_list): Break complex logic down into more
4978 manageable chunks. Move unknown registry check to
4979 w32font_list_internal.
4980
8612b71a
AR
49812009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4982
4983 Changes to remove Feval calls from GUI under NS.
4984
d8038940
JB
4985 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4986 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4987 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4988
4989 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4990 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4991 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4992 instead of NON_ASCII_KEYSTROKE_EVENT.
4993 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4994 (EmacsApp-applicationShouldTerminate:): Query user.
4995 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4996 instead of Feval.
4997
4998 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4999
5000 * keyboard.c (kbd_buffer_get_event): Check for it.
5001 (keys_of_keyboard): Define lispy keys for
5002 ns-put/unput-working-text.
5003
5004 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5005 versions.
5006 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5007
6288ae55
CY
50082009-01-25 Chong Yidong <cyd@stupidchicken.com>
5009
5010 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5011 setting current_buffer directly. (Bug#2044)
6288ae55 5012
289e7f8f
CY
50132009-01-24 Chong Yidong <cyd@stupidchicken.com>
5014
5ce87308 5015 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5016 any work. (Bug#1952, bug#1990).
5ce87308 5017
64cc3cf6 5018 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5019
b3243e6f
AR
50202009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5021
5022 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5023 (ns_no_defaults): New declaration.
5024 (main): Use it.
e0d2e69a 5025
d900b2af 5026 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5027
d900b2af 5028 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5029
d900b2af
AR
5030 * nsterm.m (ns_no_defaults): New variable.
5031 (ns_initialize): Don't read defaults when ns_no_defaults.
5032 (EmacsView-readSelectionFromPasteboard:)
5033 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5034 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5035 (ns_dumpglyphs_stretch): New function.
5036 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5037 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5038
e0d2e69a
AR
5039 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5040
3ac71f5d
CY
50412009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5042
5043 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5044 call for Sparc64.
5045
3fe53a83
AR
50462009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5047
5048 * nsfns.m:
5049 * nsgui.h:
5050 * nsmenu.m:
5051 * nsselect.m:
5052 * nsterm.h:
5053 * nsterm.m: Remove '23' comments that indicated code added during
5054 update from emacs-20 -> emacs-23.
5055
10f87c6f 50562009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5057
5058 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5059 ns_alternate_modifier. (Bug#1217)
a3b53a85 5060
c7cef62d
AR
5061 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5062 Display all shortcuts, including those w/o super modifier.
5063
575fb8bd
AR
5064 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5065
918b848b
CY
50662009-01-22 Chong Yidong <cyd@stupidchicken.com>
5067
5068 * fileio.c (Vwrite_region_post_annotation_function)
5069 (Vwrite_region_annotation_buffers): New vars.
5070 (build_annotations_unwind): Just reset
5071 Vwrite_region_annotation_buffers.
5072 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5073 Call write-region-post-annotation-function.
5074 (build_annotations): Add to Vwrite_region_annotation_buffers if
5075 buffer changes.
5076
a39e2539
AR
50772009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5078
5079 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5080 Tiger.
51d861de
SM
5081 * nsfns.m (ns_do_applescript):
5082 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5083
35ed44db
AR
50842009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5085
5086 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5087
cbe0b5bf
AR
50882009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5089
5090 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5091
6049d3a0
AR
5092 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5093
5094 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5095 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5096 handle Ctrl-tab. (Bug#1841)
5097 (ns_get_color): Use unsigned long long for scanned hex string value.
5098 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5099 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5100 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5101 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5102 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5103 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5104 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5105
d3810c21 5106 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5107 DPI. (Bug#1316)
d3810c21
AR
5108 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5109 values in onTiger section.
4c7077c3 5110
e301e634
CY
51112009-01-19 Chong Yidong <cyd@stupidchicken.com>
5112
7f82490b
CY
5113 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5114 Check return value of font_spec_from_name.
64cc3cf6 5115 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5116
5117 * font.c (font_spec_from_name): Return Qnil if font name could not
5118 be parsed.
5119 (font_parse_name): Treat a `?' character as part of an XLFD.
5120
e301e634
CY
5121 * fns.c (Fsubstring): Doc fix.
5122
1c0db158
KH
51232009-01-19 Kenichi Handa <handa@m17n.org>
5124
51d861de 5125 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5126 (ftfont_list): Likewise.
5127
acf20901
JB
51282009-01-18 Juanma Barranquero <lekktu@gmail.com>
5129
fff4e459
JB
5130 * dbusbind.c (Fdbus_register_signal):
5131 * process.c (conv_sockaddr_to_lisp):
5132 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5133
acf20901
JB
5134 * callproc.c (Fgetenv_internal): Doc fix.
5135
e7abcdfb
CY
51362009-01-16 Chong Yidong <cyd@stupidchicken.com>
5137
5138 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5139 it is not even used.
5140
b60861e6
GM
51412009-01-16 Glenn Morris <rgm@gnu.org>
5142
5143 * font.c (Ffont_variation_glyphs): Silence compiler.
5144
8db52afe
JB
51452009-01-15 Juanma Barranquero <lekktu@gmail.com>
5146
5147 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5148 Reported by David Robinow <drobinow@gmail.com>.
5149
4cddb209
KH
51502009-01-15 Kenichi Handa <handa@m17n.org>
5151
51d861de 5152 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5153
f247f67b
JR
51542009-01-14 Jason Rumney <jasonr@gnu.org>
5155
5156 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5157 never a fontset. (Bug#1562)
f247f67b 5158
f56a4450
KH
51592009-01-14 Kenichi Handa <handa@m17n.org>
5160
5161 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5162 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5163
4e99855e
CY
51642009-01-13 Chong Yidong <cyd@stupidchicken.com>
5165
5166 * font.c (font_clear_prop): If clearing the family, clear the font
5167 width index too.
5168
fff4e459 5169 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5170
24f01470
JB
51712009-01-12 Juanma Barranquero <lekktu@gmail.com>
5172
5173 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5174 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5175 functions, use sizeof.
5176
a41240a3
MR
51772009-01-12 Martin Rudalics <rudalics@gmx.at>
5178
5179 * keyboard.c (read_char): Fix case where last_nonmenu_event
5180 returned a bad value with submenus. (Bug#447)
5181
944636b8
CY
51822009-01-12 Chong Yidong <cyd@stupidchicken.com>
5183
5184 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5185 family, clear the font width index too.
5186
0dad7c6f
JR
51872009-01-11 Jason Rumney <jasonr@gnu.org>
5188
5189 * keyboard.c (cmd_error_internal): Exit when errors occur before
5190 frame creation and not in daemon mode. (Bug#1836)
5191
7c2363af
CY
51922009-01-10 Chong Yidong <cyd@stupidchicken.com>
5193
5194 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5195 of a display vector, backtrack.
5196 (try_window_reusing_current_matrix): Check glyph type before
5197 referencing charpos member.
5198
97b1b294
EZ
51992009-01-10 Eli Zaretskii <eliz@gnu.org>
5200
5201 Fix Bug #876:
5202
5203 * coding.c (inhibit_null_byte_detection): New variable.
5204 (detect_coding, detect_coding_system): Don't pay attention to null
5205 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5206 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5207 <inhibit-iso-escape-detection>: Doc fix.
5208
4624b6e3
JR
52092009-01-09 Jason Rumney <jasonr@gnu.org>
5210
5211 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5212 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5213 Only report Unicode Plane 2 fonts as unicode-sip.
5214
323b840c
CY
52152009-01-09 Chong Yidong <cyd@stupidchicken.com>
5216
51d861de
SM
5217 * xfaces.c (Fx_font_family_list): Delete function.
5218 Move compatibility version to faces.el.
323b840c 5219
51d861de 5220 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5221
eba7400d
MR
52222009-01-09 Martin Rudalics <rudalics@gmx.at>
5223
5224 * frame.c (x_set_frame_parameters): Remember requested value for
5225 fullscreen before it's reset by the parameter handler.
5226
4b09796d
GM
52272009-01-09 Glenn Morris <rgm@gnu.org>
5228
5229 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5230 (last_command_event): ... and update all users.
4b09796d
GM
5231 (last_input_char): For clarity, rename to...
5232 (last_input_event): ... and update all users.
5233 (last-command-char, last-input-char): Move to subr.el as aliases.
5234 * cmds.c, commands.h: Update for last_command_char rename.
5235
14ccea62
CY
52362009-01-08 Chong Yidong <cyd@stupidchicken.com>
5237
51d861de 5238 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5239
5f004711
JR
52402009-01-08 Jason Rumney <jasonr@gnu.org>
5241
5242 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5243 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5244 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5245 Don't declare.
fff4e459 5246 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5247 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5248
b71f6f73
KH
52492009-01-07 Kenichi Handa <handa@m17n.org>
5250
50b06221 5251 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5252 remember the coding system used for decoding in
50b06221
KH
5253 coding_system (Bug#1039).
5254
b71f6f73 5255 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5256 breaking the loop. (Bug#870)
b71f6f73
KH
5257 (decode_coding_utf_16, decode_coding_emacs_mule)
5258 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5259 (decode_coding_charset): Likewise.
5260
56f668f7
MR
52612009-01-05 Martin Rudalics <rudalics@gmx.at>
5262
5263 * frame.c (x_set_frame_parameters): Make sure height (width) get
5264 applied when fullwidth (fullheight) is set. (Bug#1522)
5265
5da9424d
JB
52662009-01-04 Juanma Barranquero <lekktu@gmail.com>
5267
5268 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5269 (utc_base): Declare as ULONGLONG, not long double.
5270 (convert_time_raw): Delete.
5271 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5272 (initialize_utc_base): New function.
5273 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5274 (convert_from_time_t): Use initialize_utc_base; compute result with
5275 64-bit arithmetic.
5276 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5277
c4605e09
EZ
52782009-01-03 Eli Zaretskii <eliz@gnu.org>
5279
9acef61c 5280 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5281 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5282 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5283 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5284 [!subprocesses]: Define.
5285 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5286 (Flist_system_processes, Fsystem_process_attributes)
5287 [!subprocesses]: Call list_system_processes and
5288 system_process_attributes instead of returning Qnil.
5289
9acef61c
JB
5290 * dosfns.c (system_process_attributes, list_system_processes):
5291 New functions.
c4605e09
EZ
5292
5293 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5294
5295 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5296 Don't use the default (no-op) implementation.
5297
8b7d0a16
JR
52982009-01-03 Jason Rumney <jasonr@gnu.org>
5299
a6d46bc1
JR
5300 * keyboard.c (parse_modifiers_uncached): Wheel events are
5301 clicks (bug#687).
5302
8b7d0a16
JR
5303 * w32term.c (x_query_colors, x_query_color): New functions.
5304
5305 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5306 (svg_load_image): Cast returned pointers from dynamically loaded
5307 functions. Eliminate W32 specific code.
5308
bfe11752
DN
53092009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5310
89e2438a
DN
5311 * nsfns.m (x_set_foreground_color, x_set_background_color)
5312 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5313 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5314 x_ prefix instead of ns_. Update references.
5315 (syms_of_nsfns): Add a FIXME comment.
5316
5317 * nsterm.m (x_set_cursor_type): New prototype.
5318 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5319
bfe11752
DN
5320 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5321 for Solaris instead of incorrectly providing Qutime and Qcutime.
5322
031da700
EZ
53232009-01-02 Eli Zaretskii <eliz@gnu.org>
5324
5325 * w32.c (process_times): Compute sum of utime and stime.
5326 (system_process_attributes): Add Qtime to the alist.
5327
5328 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5329 and add them to the alist.
5330
5331 * process.c (top level) <Qtime, Qctime>: New variables.
5332 (syms_of_process): staticpro them.
5333 (Fsystem_process_attributes): Add their documentation to the doc
5334 string.
5335
5336 * process.h: Declare Qtime and Qctime.
5337
df23bf08
JR
53382009-01-02 Jason Rumney <jasonr@gnu.org>
5339
9acef61c 5340 * image.c (Qgobject): New symbol.
df23bf08
JR
5341 (syms_of_image): Initialize it.
5342 (init_svg_functions): Load some functions from gobject library.
5343
5bbdf7aa
DN
53442009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5345
5346 * frame.c (make_terminal_frame): Remove redundant code and useless
5347 block.
5348
63136da6
AS
53492009-01-01 Andreas Schwab <schwab@suse.de>
5350
5351 * process.c (conv_sockaddr_to_lisp): Add workaround for
5352 getsockname bug on BSD.
5353
9ef69046
CY
53542009-01-01 Chong Yidong <cyd@stupidchicken.com>
5355
d6fafbe0
CY
5356 * xfns.c (x_create_tip_frame): Set border width of the X window.
5357
51d861de 5358 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5359
f9c34147
JR
53602009-01-01 Jason Rumney <jasonr@gnu.org>
5361
9acef61c 5362 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5363 Don't block input, as per earlier xterm.c changes.
5364
f5497e45
AR
53652008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5366
5367 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5368 (ns_appkit_version_int): New function.
5369 (x-server-version): Use ns_appkit_version_int and follow 21+
5370 convention of returning 3 integers.
5371
c19cab20
KH
53722008-12-30 Kenichi Handa <handa@m17n.org>
5373
5374 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5375 (CHAR_SURROGATE_PAIR_P): New macro.
5376
5377 * font.h (struct font_driver): New member get_variation_glyphs.
5378
9acef61c 5379 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5380 (Ffont_variation_glyphs): New function.
5381 (syms_of_font): Defsubr it.
5382
5383 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5384 ftfont_variation_glyphs.
5385 (setup_otf_gstring): New function.
5386 (ftfont_drive_otf): Use it.
5387 (ftfont_shape_by_flt): Handle variation selector.
5388 (ftfont_variation_glyphs): New function.
5389
28cd591f
MR
53902008-12-30 Martin Rudalics <rudalics@gmx.at>
5391
5392 * frame.c (Vemacs_iconified): Remove.
5393
7f714baf
JR
53942008-12-30 Jason Rumney <jasonr@gnu.org>
5395
5396 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5397 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5398
9d2d22ab
CY
53992008-12-30 Chong Yidong <cyd@stupidchicken.com>
5400
5401 * indent.c (Fvertical_motion): Don't advance iterator if we have
5402 reseated to the desired position.
5403
5404 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5405 checking for pos match.
5406
545312c2
KH
54072008-12-30 Kenichi Handa <handa@m17n.org>
5408
1ede3eb6
KH
5409 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5410 just get the low 8-bit of the code.
5411
545312c2
KH
5412 * font.c (font_intern_prop): Validate str as multibyte.
5413
bd7bbf29
DN
54142008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5415
31e0750e
DN
5416 * dispextern.h (struct face): Move lface and hash from the middle
5417 of bitfields.
5418
bd7bbf29
DN
5419 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5420
b5672e7c
DN
54212008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5422
5423 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5424 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5425 instead of intervals.h.
5426
d704470f
AS
54272008-12-26 Andreas Schwab <schwab@suse.de>
5428
5429 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5430 cons.
5431
54b33868
MR
54322008-12-26 Martin Rudalics <rudalics@gmx.at>
5433
5434 * textprop.c (Qminibuffer_prompt): New variable.
5435 (syms_of_textprop): Initialize it.
5436 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5437 in minibuffer-prompt face. (Bug#1662)
5438
40b615d6
JR
54392008-12-25 Jason Rumney <jasonr@gnu.org>
5440
5441 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5442
baae5c2d
JR
54432008-12-24 Jason Rumney <jasonr@gnu.org>
5444
5445 * ralloc.c (r_alloc_reset_variable): New function.
5446
5447 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5448 record of what points where. (Bug#716)
baae5c2d 5449
a9051c88
DN
54502008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5451
5452 * minibuf.c (read_minibuf): Follow the non-interactive case when
5453 running as a daemon, before detaching.
5454
8b146312
AS
54552008-12-22 Andreas Schwab <schwab@suse.de>
5456
5457 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5458 * gtkutil.c (free_widget_value): Use xfree instead of free.
5459
56f2de10
MR
54602008-12-22 Martin Rudalics <rudalics@gmx.at>
5461
5462 * frame.c (delete_frame): New function derived from
5463 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5464 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5465 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5466 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5467 * frame.h: Extern delete_frame.
5468 * window.c (window_loop):
5469 * terminal.c (delete_terminal):
5470 * xterm.c (x_connection_closed):
5471 * xfns.c (Fx_hide_tip):
9acef61c 5472 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5473
1fc200d6
JR
54742008-12-21 Jason Rumney <jasonr@gnu.org>
5475
5476 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5477 when character maps to .notdef character.
5478
5e252df2
SM
54792008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5480
5481 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5482
99b72cc4
JR
54832008-12-20 Jason Rumney <jasonr@gnu.org>
5484
5485 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5486 a graphical frame on Windows. (Bug#1325)
99b72cc4 5487
acc49a52
JD
54882008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5489
5490 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5491
6ea15123
CY
54922008-12-20 Chong Yidong <cyd@stupidchicken.com>
5493
5494 * minibuf.c (Fread_buffer): Doc fix.
5495
b2dab6c8
JR
54962008-12-20 Jason Rumney <jasonr@gnu.org>
5497
54ea0c87 5498 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5499 server name in UNC paths. (Bug#719)
54ea0c87 5500
b2dab6c8 5501 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5502 charbuf. (Bug#1035)
b2dab6c8 5503
6d1921be
DN
55042008-12-19 Daniel Engeler <engeler@gmail.com>
5505
5506 * sysdep.c (serial_configure): Fix typo.
5507
53934c98
DN
55082008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5509
5510 * sysdep.c: Include alloca.h.
f4f634e8
DN
5511 (system_process_attributes): Add implementation for Solaris.
5512
5513 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5514
06e111a6
DN
55152008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5516
5517 Reorganize implementation of Flist_system_processes and
5518 Fsystem_process_attributes. No functional changes.
5519 * process.c: Don't #include pwd.h, grp.h and limits.h.
5520 (Flist_system_processes): Just call list_system_processes.
5521 (Fsystem_process_attributes): Just call system_process_attributes.
5522 (procfs_list_system_processes, time_from_jiffies)
5523 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5524 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5525
5526 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5527 (list_system_processes): Rename from
5528 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5529 Provide a do nothing implementation.
5530 (system_process_attributes): Rename from
5531 procfs_list_system_processes.
5532 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5533 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5534
5535 * w32.c (list_system_processes): Rename from
5536 w32_list_system_processes.
5537 (system_process_attributes): Rename from
5538 w32_system_process_attributes.
5539
5540 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5541
5542 * process.h (w32_list_system_processes)
5543 (w32_system_process_attributes): Remove.
362654a6
JB
5544 (list_system_processes, system_process_attributes):
5545 New prototypes.
06e111a6 5546
6a705b23
KH
55472008-12-19 Kenichi Handa <handa@m17n.org>
5548
5549 * xfont.c (xfont_decode_coding_xlfd): New function.
5550 (xfont_encode_coding_xlfd): New function.
5551 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5552 (xfont_list): Decode and encode XLFD by iso-8859-1.
5553 (xfont_match): Likewise.
5554 (xfont_list_family): Likewise.
5555 (xfont_open): Likewise.
5556
d66c0241 5557 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5558 names are utf-8.
5559
d66c0241 5560 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5561 names are utf-8.
5562
5a130941
JD
55632008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5564
5565 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5566 changed.
bfd20325
JD
5567 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5568 clicked on a detached tool bar button.
5a130941 5569
fd95644b
DN
55702008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5571
5572 * emacs.c (main): Print and error and exit when no data is read
5573 from the pipe.
5574
e6eee6ae
JR
55752008-12-17 Jason Rumney <jasonr@gnu.org>
5576
5577 * w32font.c (w32font_has_char): Always return -1.
5578
a35dd56b
KH
55792008-12-16 Kenichi Handa <handa@m17n.org>
5580
5581 * font.c (font_open_entity): Fix previous change.
5582
0e3635c2
DN
55832008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5584
5585 * process.c: Include <limits.h>.
5586
d4835507 55872008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5588
5589 * font.c (font_update_drivers): Fix mistake in reconstructing the
5590 driver list.
5591
55922008-12-16 Chong Yidong <cyd@stupidchicken.com>
5593
5594 * font.c (font_clear_cache): Fix format of font cache data.
5595
e2cbc401
CY
55962008-12-15 Chong Yidong <cyd@stupidchicken.com>
5597
5598 * xftfont.c (xftfont_open): Free Xft font pattern if
5599 XftFontOpenPattern fails.
5600
5601 * xterm.c (x_free_frame_resources): Remove extraneous call to
5602 free_frame_faces.
5603
b131d535
CY
56042008-12-13 Chong Yidong <cyd@stupidchicken.com>
5605
5606 * xterm.c (x_delete_display): Move xim_close_dpy call to
5607 x_delete_terminal.
5608 (x_delete_terminal): Call xim_close_dpy.
5609
e6df5336
JR
56102008-12-13 Jason Rumney <jasonr@gnu.org>
5611
5612 * w32font.c (intern_font_name): New function.
5613 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5614 (w32font_open_internal, Fx_select_font): Decode font name.
5615 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5616
5617 * w32font.h (intern_font_name): Declare new function.
5618
5619 * w32uniscribe.c (add_opentype_font_name_to_list):
5620 Use intern_font_name.
5621
20d68145
CY
56222008-12-13 Chong Yidong <cyd@stupidchicken.com>
5623
9f2554de
CY
5624 * frame.c (Fdelete_frame): Call free_font_driver_list.
5625
3d9bec9a
CY
5626 * font.c (free_font_driver_list): Implement missing function.
5627
20d68145
CY
5628 * w32term.c (w32_term_init): Don't initialize the image cache
5629 here; it will be done in init_frame_faces.
5630
5631 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5632 (struct x_display_info): Remove unused member null_pixel. New
5633 member xim_callback_data.
5634
5635 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5636 (xim_initialize): Save pointer to callback function data.
5637 (xim_close_dpy): Free callback function data. Call XCloseIM,
5638 reverting 2008-11-04 change by David Smith.
5639 (x_term_init): Don't initialize the image cache here; it will be
5640 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5641 (x_delete_display): Free x_dnd_atoms member.
5642
96f9306b
KH
56432008-12-13 Kenichi Handa <handa@m17n.org>
5644
6dec9044
JB
5645 * font.c (font_rescale_ratio): Moved from xfaces.c.
5646 Argument type changed. Handle a font-spec too.
96f9306b 5647 (font_score): Check Vface_font_rescale_alist.
6dec9044 5648 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5649
5650 * xfaces.c (font_rescale_ratio): Moved to font.c.
5651
8d5b4964
CY
56522008-12-13 Chong Yidong <cyd@stupidchicken.com>
5653
5654 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5655
e6df5336
JR
56562008-12-12 Jason Rumney <jasonr@gnu.org>
5657
5658 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5659 Vwindow_system_version to the real w32 major version.
5660
97c6058a
DN
56612008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5662
5663 * term.c (init_tty): Move setting the terminal name before the
5664 potential user: maybe_fatal.
5665
ec4e88d7
CY
56662008-12-11 Chong Yidong <cyd@stupidchicken.com>
5667
d4835507
JB
5668 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5669 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5670
b4233ec9
JR
56712008-12-11 Jason Rumney <jasonr@gnu.org>
5672
8ec71e23 5673 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5674 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5675
b4233ec9 5676 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5677 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5678
011a0143
JB
56792008-12-11 Juanma Barranquero <lekktu@gmail.com>
5680
5681 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5682
3c309f34
JB
56832008-12-11 Juanma Barranquero <lekktu@gmail.com>
5684
5685 * process.c (Fsystem_process_attributes, syms_of_process):
5686 Fix typo in name of Ssystem_process_attributes.
5687 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5688
fedc6ab5
JB
56892008-12-11 Juanma Barranquero <lekktu@gmail.com>
5690
5691 * syntax.c (Fmodify_syntax_entry): Doc fix.
5692
ba3de0e8
JB
56932008-12-10 Juanma Barranquero <lekktu@gmail.com>
5694
5695 * font.c (Ffont_spec): Move usage to end of docstring.
5696
174f1c74
JR
56972008-12-10 Jason Rumney <jasonr@gnu.org>
5698
5699 * w32font.c (Qcham): New symbol.
5700 (font_supported_scripts): Add cham, and comments for other new
5701 scripts in bitfield from OpenType spec.
9d32f818
JR
5702 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5703 contain characters beyond the bmp.
174f1c74 5704
7b649478
KH
57052008-12-10 Kenichi Handa <handa@m17n.org>
5706
5707 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5708 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5709 Qunicode_sip.
5710
2133e2d1
JB
57112008-12-10 Juanma Barranquero <lekktu@gmail.com>
5712
5713 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5714 (Fcoding_system_put): Use QCdefault_char.
5715 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5716
9af886ee
CY
57172008-12-09 Chong Yidong <cyd@stupidchicken.com>
5718
74d819eb
CY
5719 * xftfont.c (syms_of_xftfont): Fix typo.
5720
4ccfa1c0 5721 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5722
7c19d3ae
DN
57232008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5724
5725 * emacs.c (main): Close daemon_pipe on exec.
5726
567826bb
CY
57272008-12-08 Chong Yidong <cyd@stupidchicken.com>
5728
5729 * termchar.h (struct tty): New members termcap_term_buffer and
5730 termcap_strings_buffer.
5731
5732 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5733 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5734 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5735 All callers changed.
5736 (init_tty): Store termcap data and string buffers in new struct
5737 tty members termcap_term_buffer and termcap_strings_buffer.
5738 (delete_tty): Free them.
4ccfa1c0 5739 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5740
aa96c42b
SZ
57412008-12-07 Seiji Zenitani <zenitani@mac.com>
5742
5743 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5744 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5745
b7e1d896
CY
57462008-12-06 Chong Yidong <cyd@stupidchicken.com>
5747
5748 * coding.c (make_conversion_work_buffer): Disable buffer
5749 modification hooks in the work buffer.
5750
b5ec91a5
EZ
57512008-12-05 Eli Zaretskii <eliz@gnu.org>
5752
5753 * process.c (procfs_system_process_attributes): If `nread' has a
5754 negative value, assign zero to it.
5755
a5d2a52b
CY
57562008-12-05 Chong Yidong <cyd@stupidchicken.com>
5757
68c5540b 5758 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5759
7bf1bb21
KH
57602008-12-05 Kenichi Handa <handa@m17n.org>
5761
5762 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5763 second character is a combining character.
5764
2fdc7d00
EZ
57652008-12-05 Eli Zaretskii <eliz@gnu.org>
5766
5767 * process.c (procfs_system_process_attributes): Don't use cmd,
5768 cmdsize, and q without initializing them first.
5769
bf6bfba8
JR
57702008-12-04 Jason Rumney <jasonr@gnu.org>
5771
5772 * w32font.c (w32font_draw): Initialize orig_clip before getting
5773 it, and delete it when finished.
5774
a3b1a468
DN
57752008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5776
5777 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5778 case when running as a daemon before detaching.
5779
8b8be8eb
JB
57802008-12-03 Juanma Barranquero <lekktu@gmail.com>
5781
805f2638 5782 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5783
b1bde622
KH
57842008-12-03 Kenichi Handa <handa@m17n.org>
5785
e500c47d
KH
5786 * font.c (font_at): Set `multibyte' at first.
5787
ca516334
KH
5788 * coding.c (decode_coding_charset): Check type of an element of
5789 vector VALIDS.
7bf1bb21 5790 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5791
4ccfa1c0 5792 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5793 (font_for_char): Likewise.
5794
1e5ecd37
CY
57952008-12-03 Chong Yidong <cyd@stupidchicken.com>
5796
d5b01609 5797 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5798 (font_update_lface): Handle fonts with corrupted size specs,
5799 i.e. non-int and non-float.
d5b01609 5800
11e3a6e4 5801 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5802 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5803 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5804
ab06788b
CY
5805 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5806
1e5ecd37 5807 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5808 underline_minimum_offset for underline position.
1e5ecd37 5809
63c125ab
DN
58102008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5811
5812 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5813
5814 * character.c (c_string_width): Specify the type for LEN.
5815
3a8406e1
KH
58162008-12-03 Kenichi Handa <handa@m17n.org>
5817
4ccfa1c0 5818 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5819 (decode_coding_utf_8): Likewise.
4ccfa1c0 5820 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5821 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5822
651df7d9
CY
58232008-12-02 Chong Yidong <cyd@stupidchicken.com>
5824
5825 * keyboard.c (make_lispy_position): Only use PT if the selected
5826 window is current.
5827
1f625c6c
AS
58282008-12-02 Andreas Schwab <schwab@suse.de>
5829
f7741ce9
AS
5830 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5831
1f625c6c
AS
5832 * doprnt.c (doprnt1): Fix size of charbuf.
5833
92bc2678
CY
58342008-12-02 Chong Yidong <cyd@stupidchicken.com>
5835
5836 * keyboard.c (timer_check): Revert last change.
5837
93b9e8cc
JB
58382008-12-02 Juanma Barranquero <lekktu@gmail.com>
5839
5840 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5841
fd7a37d5
JB
58422008-12-01 Juanma Barranquero <lekktu@gmail.com>
5843
5844 * makefile.w32-in: Update dependencies.
5845 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5846
c115043b
AS
58472008-12-01 Andreas Schwab <schwab@suse.de>
5848
5849 * font.c (register_font_driver): Use xmalloc.
5850 (font_put_frame_data): Likewise.
5851
f5668d2a
CY
58522008-12-01 Chong Yidong <cyd@stupidchicken.com>
5853
860d96be
CY
5854 * xfaces.c (realize_x_face): Make abort condition clearer.
5855
f5668d2a
CY
5856 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5857
379c17e7
CY
58582008-11-30 Chong Yidong <cyd@stupidchicken.com>
5859
5860 * keyboard.c (timer_check): After a timer runs, ensure that the
5861 selected window's buffer is current.
5862
35f36d65
JB
58632008-11-30 Juanma Barranquero <lekktu@gmail.com>
5864
f952c61c
JB
5865 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5866 It was accidentally restored by the Unicode merge.
5867
35f36d65
JB
5868 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5869
b23077df
JB
58702008-11-29 Juanma Barranquero <lekktu@gmail.com>
5871
5872 * w32proc.c: Include "coding.h".
5873 (Fw32_short_file_name): Encode filename passed to Windows API.
5874 (Fw32_long_file_name): Encode filename passed to Windows API and
5875 decode back the result. (Bug#1433)
5876
b8ebe9dd
KH
58772008-11-29 Kenichi Handa <handa@m17n.org>
5878
8cc53f96
KH
5879 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5880 not before accessing it.
5881
b8ebe9dd
KH
5882 * charset.c (Fdefine_charset_internal): After calculating
5883 min_char, max_char, and fastmap, copy the charset structure again.
5884 (encode_char): Fix the previous change.
5885
59bc82c0
SZ
58862008-11-28 Seiji Zenitani <zenitani@mac.com>
5887
5888 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5889
5890 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5891
5892 * nsterm.m (x_set_frame_alpha): New function.
5893
32247e3d
EZ
58942008-11-27 Eli Zaretskii <eliz@gnu.org>
5895
5896 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5897
b003e5ff
JB
58982008-11-27 Juanma Barranquero <lekktu@gmail.com>
5899
5900 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5901 pointer to check_face_name.
5902
708550f5
KH
59032008-11-27 Kenichi Handa <handa@m17n.org>
5904
5905 * category.h (SET_CATEGORY_SET): Call set_category_set.
5906 (set_category_set): Extern it.
5907
5908 * category.c (hash_get_category_set): New function.
5909 (Fmodify_category_entry): Adjusted for the change of
5910 char_table_ref_and_range. Call hash_get_category_set to get a
5911 category set to store in the table.
5912
5913 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5914 Funify_charset.
5915
2ae37cf0 5916 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5917 (DECODE_CHAR): Check if the decoder vector is ready.
5918 (ENCODE_CHAR): Check if the encoder char-table is ready.
5919 (maybe_unify_char): Extern it.
5920
5921 * charset.c (Vchar_unified_charset_table): Delete it.
5922 (inhibit_load_charset_map): New variable.
5923 (temp_charset_work): New variable.
5924 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5925 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5926 New macros.
5927 (load_charset_map): Meaning of control_flag changed. If
5928 inhibit_load_charset_map is nonzero, setup a table in
5929 temp_charset_work.
5930 (load_charset): New argument control_flag.
5931 (map_charset_for_dump): New function.
5932 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5933 map_charset_for_dump.
5934 (Fdefine_charset_internal): If the charset method is MAP, load
5935 mapping tables by calling load_charset.
5936 (Funify_charset): Don't load a mapping table but directly set
5937 Vchar_unify_table.
5938 (maybe_unify_char): New function.
5939 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5940 Handle the case of inhibit_load_charset_map being nonzero.
5941 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5942 Handle the case of inhibit_load_charset_map being nonzero.
5943 (Fclear_charset_maps): Just free temp_charset_work.
5944 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5945 variable.
5946
5947 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5948 change of char_table_ref_and_range.
5949 (char_table_ref_and_range): Change the meaning of argument FROM
5950 and TO. Now the caller must provide initial values for *FROM
5951 and *TO.
5952
5953 * fontset.c (fontset_add): Adjusted for the change of
5954 char_table_ref_and_range.
5955 (fontset_get_font_group): Likewise.
5956 (Ffontset_info): Likewise.
5957
5958 * keymap.c (describe_vector): Adjusted for the change of
5959 char_table_ref_and_range. For char-table, put boundary between
5960 non-ASCII and 8-bit characters.
5961
5962 * print.c (print_object): For bool-vector, delete unnecessary
5963 check of ASCII_BYTE_P.
5964
9196133b
JR
59652008-11-26 Jason Rumney <jasonr@gnu.org>
5966
5967 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5968 leading in font height. (Bug#879)
9196133b 5969
9f688acf
GM
59702008-11-26 Glenn Morris <rgm@gnu.org>
5971
5972 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5973 redefinition with ifdef. (Bug#1383)
5974
90d19aff
AR
59752008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5976
5977 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5978
4ccfa1c0 59792008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5980
5981 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5982 New EmacsView methods.
5983 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5984 Fixes bug #1048,1357,1414.
5985
59862008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5987
5988 Fix bug #1362.
5989 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5990 is not an indexed color.
5991 * nsterm.m (free_indexed_color): Add argument checking.
5992 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5993
e7d5ecb3
CY
59942008-11-24 Chong Yidong <cyd@stupidchicken.com>
5995
5996 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5997 Document confirm-after-completion value for
5998 minibuffer-completion-confirm.
5999
c285743c
JR
60002008-11-24 Jason Rumney <jasonr@gnu.org>
6001
6002 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6003 warning.
6004
b0857706
JR
60052008-11-23 Jason Rumney <jasonr@gnu.org>
6006
6007 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6008 restored before returning.
6009
6010 * w32font.c (check_face_name): New function.
6011 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6012 fonts. (Bug#642)
b0857706 6013
ee50ff07
MR
60142008-11-22 Martin Rudalics <rudalics@gmx.at>
6015
6016 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6017 confirm-nonexistent-file-or-buffer in doc-string.
6018
b8ff72fa
SM
60192008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6020
6021 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6022 Fix copy/paste typo. Add checks.
6023
cee53ed4
KH
60242008-11-21 Kenichi Handa <handa@m17n.org>
6025
6026 * coding.c (detect_coding_iso_2022): Reject invalid composition
6027 sequence.
6028 (DECODE_COMPOSITION_START): If the current source is the last
6029 block, and the current composition doesn't end, regard this
6030 sequence as invalid.
6031 (decode_coding_iso_2022): Handle invalid composition sequence.
6032
f6ef1e65
MR
60332008-11-20 Martin Rudalics <rudalics@gmx.at>
6034
6035 * window.c (coordinates_in_window): Don't return
6036 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6037 line when the window is not the rightmost one. (Bug#1372)
6038
e08b1705
MR
60392008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6040
6041 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6042
ad98e89f
EZ
60432008-11-15 Eli Zaretskii <eliz@gnu.org>
6044
6045 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6046 and bright_bg if noninteractive is non-zero.
6047
fb098a4b
CY
60482008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6049
6050 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6051 x_draw_glyph_string_background.
6052
6053 * w32term.c (x_draw_glyph_string): Likewise.
6054
ce952b6e
CY
60552008-11-15 Chong Yidong <cyd@stupidchicken.com>
6056
6057 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6058 the next glyph string once past the overhang width.
6059
6060 * nsterm.m (ns_draw_glyph_string): Likewise.
6061
6062 * w32term.c (x_draw_glyph_string): Likewise.
6063
26ea7079
CY
60642008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6065
6066 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6067 double file close.
6068
1c33c906
MR
60692008-11-14 Martin Rudalics <rudalics@gmx.at>
6070
6071 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6072 dedicated status of window before attempting to display another
6073 buffer in it.
6074
8fc29035
JB
60752008-11-14 Juanma Barranquero <lekktu@gmail.com>
6076
6077 * msdos.c (Fmsdos_long_file_names):
6078 (syms_of_msdos) <dos-unsupported-char-glyph>:
6079 * dosfns.c (Fint86): Fix typos in docstrings.
6080
55fb4286
EZ
60812008-11-14 Eli Zaretskii <eliz@gnu.org>
6082
6083 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6084
3fda0315
KY
60852008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6086
6087 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6088
7e849c17
CY
60892008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6090
6091 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6092
6093 * frame.h: Negative alpha means "don't touch".
6094
6095 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6096
6097 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6098
b9fd67bd
DN
60992008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6100
6101 * hftctl.c:
6102 * chpdef.h:
6103 * acldef.h: Remove files used only for systems no longer supported.
6104
6105 * Makefile.in: Fix .o alphabetical ordering.
6106 (hftctl.o): Remove dependency, file removed.
6107 (keymap.o, print.o): Depend on charset.h.
6108
d5998e03
KH
61092008-11-10 Kenichi Handa <handa@m17n.org>
6110
2ae37cf0 6111 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6112
be70e183
CY
61132008-11-08 Chong Yidong <cyd@stupidchicken.com>
6114
6115 * dired.c (file_name_completion): If completion_ignore_case is
6116 enabled, ignore case when checking completion-regexp-list.
6117
7cf94eac
EZ
61182008-11-08 Eli Zaretskii <eliz@gnu.org>
6119
6120 * vm-limit.c (get_lim_data): Fix last change.
6121
ee107a89
KH
61222008-11-08 Kenichi Handa <handa@m17n.org>
6123
6124 * character.c (Fget_byte): New function.
6125 (syms_of_character): Defsubr Fget_byte.
6126
5fd15622
CY
61272008-11-07 Chong Yidong <cyd@stupidchicken.com>
6128
6129 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6130 cursor position is valid after scrolling.
6131
13d62fad
JB
61322008-11-06 Juanma Barranquero <lekktu@gmail.com>
6133
6134 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6135
a1dd2936
GM
61362008-11-06 Glenn Morris <rgm@gnu.org>
6137
6138 * xterm.c (handle_one_xevent): Don't let popup menus cause
6139 mouse-autoselect-window related window switching. (Bug#1261)
6140
860cd236
CY
61412008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6142
6143 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6144
653a3150
AS
61452008-11-04 Andreas Schwab <schwab@suse.de>
6146
6147 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6148
870f5cac
CY
61492008-11-03 Chong Yidong <cyd@stupidchicken.com>
6150
6151 * xfns.c (Fx_wm_set_size_hint): New function.
6152
1e02f3cb
MR
61532008-11-03 Martin Rudalics <rudalics@gmx.at>
6154
6155 * textprop.c (Fprevious_single_char_property_change): Return 0
6156 when there's no change in a string. (Bug#1301)
6157
e630dfc6
MR
61582008-11-02 Martin Rudalics <rudalics@gmx.at>
6159
6160 * frame.c (do_switch_frame): New argument NORECORD passed to
6161 Fselect_window.
6162 (Fselect_frame): New argument NORECORD passed to
6163 do_switch_frame.
6164 (Fset_frame_selected_window): New argument NORECORD passed to
6165 Fselect_frame.
6166 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6167 in call of do_switch_frame.
6168 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6169 Handle NORECORD argument in call of Fselect_frame.
6170 * lisp.h (do_switch_frame, Fselect_frame)
6171 (Fset_frame_selected_window): Adjust declarations.
6172 * window.c (select_frame_norecord): New function.
6173 (run_window_configuration_change_hook): Use it and call
6174 Fselect_frame with NORECORD set.
6175 (Fselect_window): Pass NORECORD to Fselect_frame.
6176 (Fset_window_configuration): Handle NORECORD argument in call of
6177 do_switch_frame.
6178 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6179 Fset_frame_selected_window.
6180 * keyboard.c (command_loop_1): Handle NORECORD in call of
6181 Fselect_frame (currently ifdefd).
6182
9020b223
GM
61832008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6184
6185 * emacs.c (USAGE2): Untabify.
6186
793ffee8
SM
61872008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6188
6189 * composite.c (fill_gstring_header): Fix copy/paste typo.
6190
ab6d1131
MR
61912008-10-31 Martin Rudalics <rudalics@gmx.at>
6192
6193 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6194 (Fother_window): Rename argument and rewrite doc-string.
6195 (select_window_norecord): Fix return value. (Bug#1276)
6196
601a9cf1
JB
61972008-10-30 Juanma Barranquero <lekktu@gmail.com>
6198
6199 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6200 new frames overriding foreground for tooltips. Based on similar patch
6201 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6202
813b0652
CY
62032008-10-29 Chong Yidong <cyd@stupidchicken.com>
6204
6205 * emacs.c (Fdaemon_initialized): Initialize nfd.
6206
4414f58f
MR
62072008-10-29 Martin Rudalics <rudalics@gmx.at>
6208
6209 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6210 (Fwindow_text_height): Clarify doc-strings.
6211 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6212 doc-string of window-scroll-functions.
6213
ecdcaa09
RS
62142008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6215
6216 * category.c (syms_of_category): Fix typo in docstring.
6217
23fe745a
JB
62182008-10-28 Juanma Barranquero <lekktu@gmail.com>
6219
6220 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6221 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6222 Fix typos in docstrings.
6223
ff808935
DN
62242008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6225
6226 * emacs.c (daemon_pipe): Make non-static.
6227 (IS_DAEMON): Move definition ...
6228 * lisp.h (IS_DAEMON): ... here.
6229 (daemon_pipe): Declare.
6230 (is_daemon): Remove.
6231 * dispnew.c (init_display): Use IS_DAEMON.
6232
fc012771
SM
62332008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6234
6235 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6236 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6237
6238 * emacs.c (is_daemon): Remove.
6239 (main): Don't set is_daemon.
6240 (IS_DAEMON): New macro.
6241 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6242 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6243 parent exits.
6244 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6245
d8bdbe6f
CY
62462008-10-27 Chong Yidong <cyd@stupidchicken.com>
6247
d1a072bf
CY
6248 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6249 over-sized glyph, draw it with the default glyph width.
6250
e2e325aa
CY
6251 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6252 glyph, draw it with the default glyph width.
6253
6254 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6255 glyph, draw it with the default glyph width.
6256
d8bdbe6f
CY
6257 * xdisp.c (try_scrolling): When computing the distance from the
6258 scroll margin to PT, try moving some distance past the window
6259 bottom before giving up.
6260
7bfac547
MR
62612008-10-27 Martin Rudalics <rudalics@gmx.at>
6262
6263 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6264 (Fset_window_buffer): Explain in doc-string that a window can be
6265 "strongly" dedicated to its buffer.
6266
4ff029f6
DN
62672008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6268
6269 * emacs.c (daemon_name): New variable.
6270 (main): Deal with --daemon=SERVER_NAME.
6271 (Fdaemonp): Return a name if one was passed to --daemon.
6272
5790ef40
DN
62732008-10-26 Romain Francoise <romain@orebokech.com>
6274
f9bd0df9 6275 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6276 (main): Create a pipe before forking, make the parent exit only after
6277 the child has closed its end of the pipe. Move closing the
6278 descriptors ...
6279 (Fdaemon_initialized): ... here. New function.
6280
f5385255
SM
62812008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6282
4d632321
SM
6283 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6284 the previous unoptimized table.
6285
f5385255
SM
6286 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6287 the distinction between non-nil and non-t value of `dedicated'.
6288
6c56a0f3
CY
62892008-10-25 Chong Yidong <cyd@stupidchicken.com>
6290
6291 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6292 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6293
fec89261
MR
62942008-10-25 Martin Rudalics <rudalics@gmx.at>
6295
6296 * window.c (Fget_buffer_window, Fdelete_windows_on)
6297 (Freplace_buffer_in_windows): Make buffer argument optional and
6298 rename to buffer_or_name.
6299
34fcddd0
CY
63002008-10-24 Chong Yidong <cyd@stupidchicken.com>
6301
f5385255
SM
6302 * xdisp.c (handle_single_display_spec, handle_display_prop):
6303 Undo 2005-05-16 change.
34fcddd0
CY
6304 (handle_stop): Pop iterator if it's loaded with an empty string.
6305 (get_overlay_strings_1): Don't save iterator if it's loaded with
6306 an empty string (bug#1201).
6307
064766f2
KH
63082008-10-24 Kenichi Handa <handa@m17n.org>
6309
6310 * ftfont.c (ftfont_otf_features): Fix previous change.
6311 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6312 calling ftfont_otf_features.
6313
f9bd0df9 63142008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6315
6316 * font.c (font_match_p): Fix for the case that a vector of
6317 characters is in script-representative-chars.
6318
1dae9197
MA
63192008-10-24 Michael Albinus <michael.albinus@gmx.de>
6320
6321 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6322 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6323 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6324 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6325 macro. (Bug#1186)
1dae9197 6326
f9bd0df9 63272008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6328
6329 * s/sol2-10.h: New file.
6330
878a4584
JB
63312008-10-23 Juanma Barranquero <lekktu@gmail.com>
6332
6333 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6334 poor beast has survived 9+ years and the jump from xterm.c!).
6335
cd265ca6
MR
63362008-10-23 Martin Rudalics <rudalics@gmx.at>
6337
6338 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6339 Reword doc-string.
f5385255 6340 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6341
472a4dc9
JB
63422008-10-23 Juanma Barranquero <lekktu@gmail.com>
6343
6344 * character.c (syms_of_character) <script-representative-chars>:
6345 <unicode-category-table>: Doc fixes.
6346
159bd5a2
NF
63472008-10-23 Noah Friedman <friedman@splode.com>
6348
6349 * coding.c (make_conversion_work_buffer): Check that
6350 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6351 Fget_buffer_create.
6352
49f9c344
KH
63532008-10-23 Kenichi Handa <handa@m17n.org>
6354
6355 * font.c (font_add_log): Check the values of extra properties.
6356
12bb3111
MR
63572008-10-22 Martin Rudalics <rudalics@gmx.at>
6358
6359 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6360 Reword doc-string.
6361 (Fset_window_parameter): Use NILP.
6362 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6363 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6364
bbeb4e99
JB
63652008-10-22 Juanma Barranquero <lekktu@gmail.com>
6366
6367 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6368
63692008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6370
6371 * nsfns.m (ns_appkit_version): New function.
6372 (x-server-version): Use it.
6373 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6374 (x-server-vendor): Don't check_ns().
6375
6376 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6377
a9b555d3
JB
63782008-10-22 Juanma Barranquero <lekktu@gmail.com>
6379
6380 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6381 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6382
4626499f
KH
63832008-10-22 Kenichi Handa <handa@m17n.org>
6384
e3681952
KH
6385 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6386 scripts.
6387
4626499f
KH
6388 * category.c (word_boundary_p): Check scripts instead of charset.
6389 Handle nil value in word-separating-categories and
6390 word-combining-categories.
6391 (syms_of_category): Fix docstrings of word-separating-categories
6392 and word-combining-categories.
6393
1560f91a
EZ
63942008-10-21 Eli Zaretskii <eliz@gnu.org>
6395
6396 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6397 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6398
f4668441
MR
63992008-10-21 Martin Rudalics <rudalics@gmx.at>
6400
6401 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6402 Rename arg "buffer" to "buffer_or_name".
6403 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6404 it optional.
6405 (no_switch_window): Remove since the return value is not used.
a9b555d3 6406 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6407 Consider window as dedicated when Fwindow_dedicated_p returns a
6408 non-nil value.
6409 * lisp.h: Remove prototype for no_switch_window.
6410
fd75ddb2
JD
64112008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6412
6413 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6414 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6415
07295713
KH
64162008-10-21 Kenichi Handa <handa@m17n.org>
6417
6418 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6419 check Vlatin_extra_code_table.
6420
712adc82
EZ
64212008-10-20 Eli Zaretskii <eliz@gnu.org>
6422
6423 * fileio.c (Fset_file_modes): Doc fix.
6424
f549eb0b
MA
64252008-10-19 Michael Albinus <michael.albinus@gmx.de>
6426
6427 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6428 in arrays.
6429
aac0c6e3
MR
64302008-10-19 Martin Rudalics <rudalics@gmx.at>
6431
6432 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6433 Mention kill-buffer in doc-string.
6434 (Fset_window_buffer): Reinsert tem check removed in last commit.
6435 (Fenlarge_window, Fshrink_window): Have argument names and
6436 doc-string follow Elisp manual more closely.
6437
64382008-10-18 Eli Zaretskii <eliz@gnu.org>
6439
6440 * fileio.c (Fset_file_modes): Doc fix.
6441
64422008-10-18 Martin Rudalics <rudalics@gmx.at>
6443
6444 * window.c (Fwindow_width, Fset_window_start)
6445 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6446 (Fdelete_windows_on, Freplace_buffer_in_windows):
6447 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6448 (Fwindow_dedicated_p): Make window argument optional.
6449 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6450 (Fset_window_buffer): Respect any non-nil dedicated value for
6451 window. Rename "buffer" argument to "buffer_or_name".
6452
64532008-10-18 Ulrich Mueller <ulm@gentoo.org>
6454
6455 * m/sh3.h: New file, machine description for SuperH.
6456
64572008-10-17 Martin Rudalics <rudalics@gmx.at>
6458
6459 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6460
64612008-10-17 Kenichi Handa <handa@m17n.org>
6462
6463 * ftfont.c (ftfont_otf_features): Fix indexing
6464 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6465
64662008-10-16 Magnus Henoch <mange@freemail.hu>
6467
6468 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6469 (Fdbus_call_method_asynchronously): Ditto.
6470 This change makes C-h f display the argument list.
6471
64722008-10-16 Chong Yidong <cyd@stupidchicken.com>
6473
6474 * fileio.c (Fexpand_file_name): Doc fix.
6475
6476 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6477 of :foreground and :background equivalent to unspecified (20.x
6478 compatibility).
6479
64802008-10-15 Eli Zaretskii <eliz@gnu.org>
6481
6482 * buffer.c (syms_of_buffer): Doc fix.
6483
64842008-10-14 Kenichi Handa <handa@m17n.org>
6485
6486 * font.c (font_clear_prop): When clearing font width, clear the
6487 average width field too.
6488
64892008-10-12 Andreas Schwab <schwab@suse.de>
6490
6491 * ftfont.c (ftfont_shape_by_flt): Make static.
6492 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6493
6494 * font.c: Don't include <m17n-flt.h>.
6495
64962008-10-10 Eli Zaretskii <eliz@gnu.org>
6497
6498 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6499
65002008-10-09 Eli Zaretskii <eliz@gnu.org>
6501
6502 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6503 away code.
6504
65052008-10-09 Chong Yidong <cyd@stupidchicken.com>
6506
6507 * dispnew.c (update_text_area): Avoid looping due to large glyph
6508 overhangs (bug#1070).
6509
65102008-10-09 Kenichi Handa <handa@m17n.org>
6511
6512 * fontset.c (face_for_char): If face->fontset is negative, just
6513 return ascii_face.
6514
f5385255
SM
6515 * font.c (font_delete_unmatched): Fix previous change.
6516 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6517
65182008-10-09 Martin Rudalics <rudalics@gmx.at>
6519
6520 * frame.c (Fraise_frame): On text-only terminals select frame in
6521 order to make it visible. (Bug#1061)
6522
65232008-10-08 Chong Yidong <cyd@stupidchicken.com>
6524
6525 * fontset.c (fontset_find_font): Check frame validity.
6526
65272008-10-07 Chong Yidong <cyd@stupidchicken.com>
6528
a9b555d3 6529 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6530 (xg_display_close): Allow Emacs to close all displays (bug#985).
6531
65322008-10-06 Andreas Schwab <schwab@suse.de>
6533
f5385255 6534 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6535
65362008-10-06 Chong Yidong <cyd@stupidchicken.com>
6537
f5385255 6538 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6539
a9b555d3 6540 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6541
6542 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6543 during initialization.
6544
65452008-10-04 Eli Zaretskii <eliz@gnu.org>
6546
6547 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6548 whole thing on MSDOS frames as well as on a TTY.
6549
6550 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6551 well as for TTY.
6552 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6553 well as on a TTY.
6554
6555 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6556 as well as for TTY.
6557
6558 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6559
6560 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6561 MSDOS frames as well.
6562
65632008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6564
6565 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6566 correct arguments.
b71ac3dd 6567 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6568
65692008-10-03 Glenn Morris <rgm@gnu.org>
6570
6571 * emacs.c (USAGE1): Add --daemon.
6572
65732008-10-02 Eli Zaretskii <eliz@gnu.org>
6574
6575 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6576 100, so it's in percents as advertised.
6577
65782008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6579
6580 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6581 (ns_output.current_cursor, ns_output.desired_cursor)
6582 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6583 (FRAME_NEW_CURSOR_COLOR): Remove.
6584
6585 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6586 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6587 enumeration (HOLLOW_BOX_CURSOR, etc.).
6588
6589 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6590 (draw_window_cursor): Simplify code.
f5385255
SM
6591 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6592 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6593 updates manually.
a9b555d3
JB
6594 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6595 Use core Emacs cursor types.
aac0c6e3 6596
b8ff72fa 6597 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6598
65992008-10-02 Martin Rudalics <rudalics@gmx.at>
6600
6601 * process.c (Faccept_process_output): Fix doc-string.
6602
66032008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6604
6605 * gmalloc.c (__sbrk): Also define for uClibc.
6606
6607 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6608 for uClibc.
6609
66102008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6611
6612 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6613 styles.
6614 (nsfont_open): Reenable the cache.
6615
66162008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6617
6618 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6619 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6620
66212008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6622
6623 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6624 a suspended terminal.
6625
66262008-09-30 Michael Albinus <michael.albinus@gmx.de>
6627
6628 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6629
66302008-09-30 Eli Zaretskii <eliz@gnu.org>
6631
6632 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6633
66342008-09-30 Chong Yidong <cyd@stupidchicken.com>
6635
6636 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6637 in a continued line coincides with a line beginning.
6638
66392008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6640
6641 * nsfont.m (nsfont_trait_distance): Fix bug.
6642 (nsfont_list): Return a list rather than a vector (syncs with Handa
6643 changes of 2008-05-14).
6644 (nsfont_open): Improve logging.
6645
66462008-09-29 Andreas Schwab <schwab@suse.de>
6647
6648 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6649
66502008-09-28 Martin Rudalics <rudalics@gmx.at>
6651
6652 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6653 name as char-resolve-modifiers.
6654 Reported by: Markus Triska <markus.triska@gmx.at>
6655
66562008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6657
6658 * dispnew.c (init_display): Return earlier when running as a daemon.
6659
66602008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6661
6662 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6663
66642008-09-27 Eli Zaretskii <eliz@gnu.org>
6665
6666 * composite.c (Fcomposition_get_gstring)
6667 (Fcompose_region_internal, Fcompose_string_internal)
6668 (Ffind_composition_internal): Doc fix.
6669 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6670 (syms_of_composite) <auto-composition-function>: Doc fix.
6671 (syms_of_composite) <composition-function-table>: Doc fix.
6672
66732008-09-25 Chong Yidong <cyd@stupidchicken.com>
6674
6675 * search.c (wordify): New argument for lax word-ends.
6676 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6677
66782008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6679
6680 * lisp.h (is_daemon): Declare.
6681 * dispnew.c (init_display): Do not try to initialize the terminal
6682 when running as a daemon.
6683
66842008-09-22 Chong Yidong <cyd@stupidchicken.com>
6685
6686 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6687 x_display_pixel_height.
6688
66892008-09-22 Martin Rudalics <rudalics@gmx.at>
6690
6691 * undo.c (record_point): Don't call Fundo_boundary for first
6692 change. (Bug#731)
6693
66942008-09-22 Juanma Barranquero <lekktu@gmail.com>
6695
6696 * emacs.c (Fdaemonp): Doc fix.
6697
66982008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6699
6700 * emacs.c (main): Place #ifdef in the proper place.
6701
67022008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6703
6704 * emacs.c (standard_args): Add --daemon.
6705 (main): Disconnect from the terminal when --daemon is passed.
6706 (is_daemon): New variable.
6707 (Fdaemonp): New function.
6708 (syms_of_emacs): Defsubr it.
6709
67102008-09-20 Chong Yidong <cyd@stupidchicken.com>
6711
6712 * xdisp.c (get_next_display_element): Handle string display
6713 correctly when checking for the end of a box run.
6714
67152008-09-20 Glenn Morris <rgm@gnu.org>
6716
6717 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6718 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6719 (Frename_file): Avoid copying to trash if a rename involves
6720 a delete. (Bug#964).
6721
67222008-09-20 Eli Zaretskii <eliz@gnu.org>
6723
6724 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6725 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6726 frames as well as termcap frames.
6727 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6728 get_named_tty.
6729
67302008-09-19 Eli Zaretskii <eliz@gnu.org>
6731
6732 * process.c (procfs_system_process_attributes): Fix cmdline in
6733 case /proc/PID/cmdline is empty.
6734
6735 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6736 x_display_pixel_height.
6737
67382008-09-19 Juanma Barranquero <lekktu@gmail.com>
6739
6740 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6741
6742 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6743 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6744
67452008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6746
6747 * dispextern.h (struct it): Move line_wrap away from the middle of
6748 bitfields. Move voffset in struct iterator_stack_entry after the
6749 bitfields. Move tab_width near after another short.
6750
67512008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6752
6753 * frame.h (struct frame): Move alpha from the middle of bitfields.
6754
6755 * window.h (struct window): Move frozen_window_start_p after the
6756 rest of the bitfields to reduce padding.
6757
67582008-09-18 Chong Yidong <cyd@stupidchicken.com>
6759
6760 * xterm.h (x_display_info): Remove `height' and `width' members.
6761
6762 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6763
6764 * w32term.h (w32_display_info): Remove `height', `width',
6765 `height_in', and `width_in' members.
6766
b8ff72fa
SM
6767 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6768 New functions.
aac0c6e3
MR
6769 (x_calc_absolute_position): Use them.
6770 (x_term_init): Omit removed `height' and `width' members.
6771
b8ff72fa
SM
6772 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6773 New functions.
aac0c6e3
MR
6774 (w32_read_socket, x_calc_absolute_position): Use them.
6775 (w32_initialize_display_info, w32_term_init): Omit removed members
6776 of w32_display_info.
6777
b8ff72fa
SM
6778 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6779 New functions.
6780 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6781
b8ff72fa
SM
6782 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6783 New functions.
aac0c6e3
MR
6784 (x_calc_absolute_position): Use them.
6785 (x_term_init): Omit removed `height' and `width' members.
6786
6787 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6788 (compute_tip_xy):
6789 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6790 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6791 x_display_pixel_width.
6792
67932008-09-18 Kenichi Handa <handa@m17n.org>
6794
6795 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6796 (composition_compute_stop_pos): Fix handling of static composition.
6797 (Fcomposition_get_gstring): Check FROM and TO at first.
6798
67992008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6800
46e722a9 6801 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6802 mixup (YAILOM).
6803
68042008-09-17 Chong Yidong <cyd@stupidchicken.com>
6805
6806 * indent.c (Fvertical_motion): Use position reported by iterator
6807 instead of PT for determining screen motion (bug#943).
6808
68092008-09-17 Romain Francoise <romain@orebokech.com>
6810
6811 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6812
68132008-09-17 Kenichi Handa <handa@m17n.org>
6814
6815 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6816
6817 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6818 if necessary.
6819
68202008-09-16 Kenichi Handa <handa@m17n.org>
6821
6822 * coding.c (make_conversion_work_buffer): Avoid calling
6823 Fget_buffer_create if it is not necessary.
6824
68252008-09-15 Martin Rudalics <rudalics@gmx.at>
6826
6827 * window.c (Fselect_window): Don't update window_select_count and
6828 use_time when norecord is not nil.
6829
68302008-09-14 Kenichi Handa <handa@m17n.org>
6831
6832 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6833 specpdl_ptr.
6834
68352008-09-12 Kenichi Handa <handa@m17n.org>
6836
6837 * indent.c (scan_for_column): Don't handle automatic composition
6838 if the current buffer is not associated with a window.
6839
6840 * composite.c (composition_reseat_it): If the current buffer is
6841 not associated with a window, ignore the automatic composition.
6842 (find_automatic_composition): Likewise.
6843
68442008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6845
6846 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6847 (Fgpm_mouse_stop): Use it.
6848 * termhooks.h (close_gpm): Declare.
6849 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6850 connection if Gpm_GetEvent fails.
6851
6852 * window.c (set_window_buffer): Always preserve current-buffer.
6853
68542008-09-12 Glenn Morris <rgm@gnu.org>
6855
6856 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6857
68582008-09-11 Glenn Morris <rgm@gnu.org>
6859
6860 * charset.c (charset-map-path): Doc fix.
6861
68622008-09-10 Kenichi Handa <handa@m17n.org>
6863
6864 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6865
6866 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6867 compose a grapheme cluster with the preceding base glyph.
6868
6869 * composite.c (composition_compute_stop_pos): Fix previous change.
6870 Reset cmp_it->id to -1 at first.
6871
68722008-09-10 Glenn Morris <rgm@gnu.org>
6873
6874 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6875
68762008-09-09 Chong Yidong <cyd@stupidchicken.com>
6877
6878 * keyboard.c (read_key_sequence): Reapply translation maps when
6879 switching keyboards.
6880
68812008-09-09 Kenichi Handa <handa@m17n.org>
6882
6883 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6884 characters.
6885
6886 * composite.c (FORWARD_CHAR): Fix calculation
6887 of (POSITION).pos_byte.
6888 (composition_compute_stop_pos): Limit the search of composition to
6889 at most 500 characters ahead. If we reach the limit or find a
6890 newline, set cmp_it->ch to -2 and return 0.
6891 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6892
68932008-09-08 Kenichi Handa <handa@m17n.org>
6894
6895 * indent.c (Fvertical_motion): Be sure to set
6896 it_overshoot_expected if it.cmp_it.id is non-negative.
6897
68982008-09-07 Andreas Schwab <schwab@suse.de>
6899
6900 * callproc.c (Fcall_process): Don't hold references to string data
6901 across garbage collection. Move initialisation of new_argv down
6902 to avoid compiler bug.
6903
69042008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6905
6906 * process.c (Fsystem_process_attributes): Doc fix.
6907
69082008-09-07 Chong Yidong <cyd@stupidchicken.com>
6909
6910 * callproc.c (Fcall_process): Canonicalize current directory name.
6911
6912 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6913 iterator advances to the next line if the current line ends in a
6914 continued tab.
6915
69162008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6917
6918 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6919 member to point to cmp_from.
6920
6921 * xdisp.c: Doc fix for references to gidx data member.
6922
69232008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6924
6925 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6926
69272008-09-07 Kenichi Handa <handa@m17n.org>
6928
6929 * composite.c (FORWARD_CHAR): Check STOP after
6930 incrementing (POSITION).pos.
6931
69322008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6933
6934 * process.c (Fsystem_process_attributes): Doc fix.
6935
69362008-09-06 Chong Yidong <cyd@stupidchicken.com>
6937
6938 * keyboard.c (Ftop_level): Doc fix.
6939
69402008-09-06 Eli Zaretskii <eliz@gnu.org>
6941
6942 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6943 minibuffer, don't let lower part of menu invade the echo area.
6944
6945 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6946 "char *q" to access menu text and advance through it. Revert the
6947 change that displayed ">" instead of ASCII character 0x10.
6948
69492008-09-05 Eli Zaretskii <eliz@gnu.org>
6950
6951 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6952 toggle boxes and radio buttons on MS-DOS as well.
6953
69542008-09-05 Kenichi Handa <handa@m17n.org>
6955
6956 * composite.c (autocmp_chars): Check lookback count.
6957 (composition_compute_stop_pos): Set cmp_it->lookback.
6958 (composition_reseat_it): Check lookback count.
6959 (struct position_record): New struct.
6960 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6961 (find_automatic_composition): New function.
6962 (composition_adjust_point): Use find_automatic_composition.
6963
6964 * dispextern.h (struct composition_it): New member lookback.
6965
69662008-09-02 Chong Yidong <cyd@stupidchicken.com>
6967
6968 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6969 if moving by a single line.
6970
69712008-09-02 Andreas Schwab <schwab@suse.de>
6972
6973 * xterm.c (x_delete_display): Fix merge error.
6974
6975 * fileio.c (Fexpand_file_name): Remove unused variables.
6976
69772008-09-02 Eli Zaretskii <eliz@gnu.org>
6978
6979 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6980 storage on all platforms, not just on DOS_NT.
6981
69822008-09-02 Jason Rumney <jasonr@gnu.org>
6983
b8ff72fa
SM
6984 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6985 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6986
69872008-09-01 Chong Yidong <cyd@stupidchicken.com>
6988
6989 * xfaces.c (Finternal_set_alternative_font_family_alist)
6990 (Finternal_set_alternative_font_registry_alist): Properly copy
6991 entire alist structure.
6992
69932008-09-01 Kenichi Handa <handa@m17n.org>
6994
d66c0241 6995 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6996 representative chars of the script is a vector.
d66c0241
JB
6997 (ftfont_list): Handle the case where the representative chars of
6998 the script is a vector.
aac0c6e3
MR
6999
7000 * character.c (syms_of_character): Docstring of
7001 script-representative-chars fixed.
7002
70032008-08-31 Eli Zaretskii <eliz@gnu.org>
7004
7005 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7006 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7007 the menu. Allocate larger buffer for `text', to account for
7008 possible ^C characters.
7009
70102008-08-31 Martin Rudalics <rudalics@gmx.at>
7011
7012 * xdisp.c (prepare_menu_bars): Don't call
7013 Vwindow_size_change_functions with arg Qt.
7014
70152008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7016
7017 * font.h (font_range):
7018 * fileio.c (report_file_error):
46e722a9
SM
7019 * composite.c (composition_update_it): Yet another int/Lisp_Object
7020 mixup (YAILOM).
aac0c6e3
MR
7021
70222008-08-30 Glenn Morris <rgm@gnu.org>
7023
7024 * data.c (Fmake_variable_frame_local): Doc fix.
7025
7026 * frame.c (Fmodify_frame_parameters): Doc fix.
7027
70282008-08-30 Eli Zaretskii <eliz@gnu.org>
7029
7030 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7031 needed by GetTokenInformation.
7032 (w32_system_process_attributes): Check return values of all system
7033 APIs.
7034
7035 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7036 only when the state changes.
7037 (IT_update_begin, IT_update_end): Add termscript trace.
7038
7039 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7040 clipboard is unavailable. Set dst to NULL if it doesn't point to
7041 malloc'ed data.
7042 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7043 passing random values to xfree.
7044
7045 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7046 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7047
70482008-08-29 Jason Rumney <jasonr@gnu.org>
7049
7050 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7051
70522008-08-29 Eli Zaretskii <eliz@gnu.org>
7053
7054 * composite.c (fill_gstring_body): Avoid compiler warnings.
7055
7056 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7057 LGLYPH_SET_CODE to avoid compiler warnings.
7058
2ae37cf0 7059 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7060
7061 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7062
7063 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7064 LGLYPH_SET_CODE.
7065
70662008-08-29 Kenichi Handa <handa@m17n.org>
7067
7068 * fileio.c (report_file_error): Don't downcase the first character
7069 of errstring if it is still unibyte.
7070
70712008-08-29 Kenichi Handa <handa@m17n.org>
7072
7073 These changes are to re-implement the automatic composition so
7074 that it doesn't use text properties.
7075
7076 * Makefile.in (ftfont.o): Depend on composite.h.
7077 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7078
7079 * character.h (Vunicode_category_table): Extern it.
7080
7081 * character.c (Vunicode_category_table): New variable.
7082 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7083
7084 * chartab.c (optimize_sub_char_table): Perform more greedy
7085 optimization.
7086
b8ff72fa
SM
7087 * composite.h (enum composition_method):
7088 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7089 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7090 (Vcomposition_function_table): Extern it.
7091 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7092 (composition_gstring_put_cache, composition_gstring_from_id)
7093 (composition_gstring_p, composition_gstring_width)
7094 (composition_compute_stop_pos, composition_reseat_it)
7095 (composition_update_it, composition_adjust_point): Extern them.
7096 (Fcomposition_get_gstring): EXFUN it.
7097
d66c0241 7098 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7099 (Vcomposition_function_table)
7100 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7101 (gstring_hash_table, gstring_work, gstring_work_headers):
7102 New variables.
aac0c6e3
MR
7103 (gstring_lookup_cache, composition_gstring_put_cache)
7104 (composition_gstring_from_id, composition_gstring_p)
7105 (composition_gstring_width, fill_gstring_header)
7106 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7107 (composition_reseat_it, composition_update_it)
b8ff72fa 7108 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7109 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7110 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7111 Defsubr composition_get_gstring.
aac0c6e3
MR
7112
7113 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7114 cmp_id.
7115 (struct glyph_string): Delete the member gidx. New members
7116 cmp_id, cmp_from, and cmp_to.
7117 (enum it_method): Delete GET_FROM_COMPOSITION.
7118 (struct composition_it): New struct.
7119 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7120 Delete c, len, cmp_id, cmp_len in u.comp.
7121
7122 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7123 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7124 (enum lglyph_indices): Likewise.
b8ff72fa 7125 (font_range): Adjust extern.
aac0c6e3
MR
7126 (font_fill_lglyph_metrics): Extern it.
7127
7128 * font.c (QCf): New variable.
7129 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7130 (font_prepare_composition): Delete this function.
7131 (font_range): Type and arguments changed.
7132 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7133 (font_fill_lglyph_metrics): New function.
b8ff72fa 7134 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7135 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7136 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7137 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7138
7139 * fontset.h (font_for_char): Extern it.
7140
7141 * fontset.c (font_for_char): New function.
7142
7143 * ftfont.c: Include composite.h.
7144 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7145 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7146
7147 * indent.c: Include composite.h and dispextern.h.
7148 (check_composition): Delete this function.
7149 (scan_for_column): Handle composition by
7150 composition_compute_stop_pos, composition_reseat_it, and
7151 composition_update_it.
7152 (compute_motion): Likewise.
7153 (Fvertical_motion): Fix checking of composition.
7154
7155 * keyboard.c (adjust_point_for_property): Check composition by
7156 composition_adjust_point.
7157
b8ff72fa 7158 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7159 struct glyph_string.
7160
b8ff72fa
SM
7161 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7162 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7163 struct glyph.
7164 (produce_composite_glyph): Likewise.
7165
b8ff72fa
SM
7166 * w32term.c (x_draw_composite_glyph_string_foreground):
7167 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7168 (x_draw_glyph_string): Likewise.
7169
7170 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7171 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7172
7173 * xdisp.c: Include font.h.
7174 (it_props): Delete the entry for Qauto_composed.
7175 (init_iterator): Initialize it->cmp_it.id to -1.
7176 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7177 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7178 (handle_auto_composed_prop): Delete it.
7179 (handle_composition_prop): Handle only static composition.
7180 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7181 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7182 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7183 (pop_it): Likewise.
7184 (get_next_element): Delete next_element_from_composition.
7185 (CHAR_COMPOSED_P): New macro.
7186 (get_next_display_element): For automatic composition, get a face
7187 from the font in the glyph-string.
7188 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7189 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7190 (next_element_from_string): Check if the character at the current
7191 position is composed by CHAR_COMPOSED_P.
7192 (next_element_from_buffer): Likewise.
d66c0241
JB
7193 (next_element_from_composition): Adjust for the change of struct it.
7194 Update it->cmp_it.
b8ff72fa
SM
7195 (dump_glyph): Adjust for the change of struct glyph.
7196 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7197 it and struct glyph. Don't handle automatic composition here.
7198 (fill_gstring_glyph_string): New function.
7199 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7200 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7201 (BUILD_GSTRING_GLYPH_STRING): New macro.
7202 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7203 automatic composition.
b8ff72fa 7204 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7205 struct glyph.
b8ff72fa 7206 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7207
b8ff72fa 7208 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7209 the change of struct glyph_string.
7210 (x_draw_glyph_string): Likewise.
7211
72122008-08-29 Glenn Morris <rgm@gnu.org>
7213
7214 * buffer.c (word-wrap): Doc fix.
7215 * xdisp.c (truncate-partial-width-windows): Doc fix.
7216 Increase default to 50.
7217
72182008-08-29 Chong Yidong <cyd@stupidchicken.com>
7219
7220 * xdisp.c (update_tool_bar_unwind): New function.
7221 (update_tool_bar): Temporarily set selected frame before building
7222 tool-bar items.
7223
72242008-08-28 Michael Albinus <michael.albinus@gmx.de>
7225
7226 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7227 snprintf, respectively.
7228 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7229
72302008-08-28 Chong Yidong <cyd@stupidchicken.com>
7231
7232 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7233 LDFLAGS to GNUstep CC invocation.
7234
72352008-08-27 Chong Yidong <cyd@stupidchicken.com>
7236
7237 * indent.c (Fvertical_motion): Revert last change. Handle the
7238 general case where we are moving forward, and PT spans multiple
7239 screen lines.
7240
7241 * eval.c (find_handler_clause): Temporarily increase
7242 max-lisp-eval-depth while printing the backtrace buffer, to
7243 guarantee that help-mode code can run.
7244
72452008-08-27 Eli Zaretskii <eliz@gnu.org>
7246
7247 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7248 colors under -rv.
7249 (IT_set_frame_parameters): Don't swap foreground and background
7250 colors if `(reverse . t)' is present in the frame properties.
7251 (internal_terminal_init): Call init_frame_faces only for the
7252 initial frame.
7253
72542008-08-27 Andreas Schwab <schwab@suse.de>
7255
7256 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7257
72582008-08-27 Andreas Schwab <schwab@suse.de>
7259
7260 * search.c (search_buffer): Set char_base to zero only at the end.
7261
72622008-08-27 Kenichi Handa <handa@m17n.org>
7263
b8ff72fa 7264 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7265
72662008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7267
7268 * xterm.c (x_term_init): Temporarily hide the partially
7269 initialized terminal while calling vendor-specific-keysyms.
7270
72712008-08-26 Eli Zaretskii <eliz@gnu.org>
7272
7273 * msdos.c (internal_terminal_init): Most initializations done only
7274 once, especially initial_screen_colors[] and termscript open.
7275
72762008-08-26 Chong Yidong <cyd@stupidchicken.com>
7277
7278 * eval.c (Fcondition_case): Doc fix.
7279
7280 * widgetprv.h (EmacsFramePart): Change font member to the new font
7281 struct.
7282
7283 * widget.c: Include character.h and font.h for XSETFONT.
7284 (setup_frame_gcs): Compute X font id from font struct, just once.
7285
72862008-08-26 Eli Zaretskii <eliz@gnu.org>
7287
7288 * term.c (get_named_tty): Fix last change.
7289
72902008-08-26 Chong Yidong <cyd@stupidchicken.com>
7291
7292 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7293 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7294
72952008-08-25 Eli Zaretskii <eliz@gnu.org>
7296
7297 * frame.c (do_switch_frame): Mark previously displayed frame as
7298 obscured for FRAME_MSDOS_P frames as well.
7299
73002008-08-24 Eli Zaretskii <eliz@gnu.org>
7301
7302 * frame.c (make_terminal_frame): Initialize f->terminal,
7303 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7304 Set the top frame to newly created frame.
7305 (Fmake_terminal_frame): Reuse the_only_display_info.
7306
7307 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7308 estimating available memory.
7309
b97439ce 73102008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7311
7312 * nsterm.m (ns_draw_window_cursor): Don't call
7313 NSDisableScreenUpdates and NSEnableScreenUpdates on
7314 non-NS_IMPL_COCOA systems.
7315
73162008-08-23 Andreas Schwab <schwab@suse.de>
7317
7318 * process.c (procfs_system_process_attributes): Fix use of
7319 uninitialized variables.
7320
73212008-08-23 Eli Zaretskii <eliz@gnu.org>
7322
7323 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7324
7325 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7326 calling tty-set-up-initial-frame-faces.
7327
b8ff72fa
SM
7328 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7329 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7330
7331 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7332 addition to output_termcap.
7333
7334 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7335
7336 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7337 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7338 highlight.
7339
7340 * process.c [!subprocesses]: Define QCname.
7341 (syms_of_process): Intern and staticpro it.
7342
7343 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7344 Adjust for changes in encoding/decoding routines.
7345 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7346 encode_coding and decode_coding.
7347
b8ff72fa 7348 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7349
7350 * dosfns.c: Include frame.h before termhooks.h.
7351 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7352 variable termscript.
7353
7354 * s/msdos.h (USER_FULL_NAME): Define.
7355 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7356
7357 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7358 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7359 pw->pw_gecos.
7360
7361 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7362 SELECTED_FRAME as additional (1st) argument.
7363 (tty_read_avail_input): Handle output_msdos_raw in
7364 addition to output_termcap.
7365
7366 * msdos.c: Include frame.h before termhooks.h.
7367 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7368 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7369 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7370 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7371 (IT_set_terminal_modes, IT_reset_terminal_modes)
7372 (IT_set_frame_parameters): Use tty->termscript instead of a global
7373 variable termscript.
7374 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7375 global variable terminal_coding. Don't refer to
7376 Vnonascii_translation_table.
7377 (internal_terminal_init): Set Vwindow_system in current_kboard.
7378 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7379 Announce date and time of session start, if termscript is open.
7380 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7381 term.c:init_tty). Open termscript only of not already open.
7382 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7383 here instead of dos_ttraw. Don't initialize display if this is an
7384 initial tty. Don't set FRAME_FONT.
7385 (Vwindow_system_version): Bump to 23.
7386 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7387 is available, set up mouse_position_hook.
7388 (dos_ttraw, IT_set_terminal_modes): If called with initial
7389 terminal, do nothing.
7390 (IT_set_frame_parameters): Handle the Qtty_type frame
7391 parameter by calling internal_terminal_init.
7392 (dos_set_window_size, show_mouse_face)
7393 (clear_mouse_face, IT_note_mode_line_highlight)
7394 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7395 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7396 (initialize_msdos_display): New function.
7397 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7398 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7399 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7400 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7401 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7402 (request_sigio, unrequest_sigio): Don't define, now defined on
7403 sysdep.c.
7404 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7405
7406 * term.c [MSDOS]: Include msdos.h.
7407 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7408 conditional to DOS_NT. Allow only one call to this function in a
7409 session. Don't allocate a new struct tty_display_info; instead,
7410 reuse the_only_display_info. Call get_tty_size to get screen
7411 dimensions. Call init_baud_rate to set bad_rate.
7412 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7413 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7414 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7415 (get_tty_terminal, get_named_tty, Ftty_type)
7416 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7417 output_termcap.
b8ff72fa
SM
7418 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7419 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7420 only when subprocesses are supported.
aac0c6e3
MR
7421
7422 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7423 f->output_data.x.
7424 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7425 terminal devices.
7426
5582fbc7 7427 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7428 x_output.
7429 (FRAME_FONT): Use output_data.tty.
7430 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7431 (struct x_display_info): Rename from display_info. Update all users in
7432 msdos.c.
aac0c6e3 7433 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7434 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7435 (dos_ttraw): Update prototype.
7436
7437 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7438 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7439
74402008-08-23 Jason Rumney <jasonr@gnu.org>
7441
7442 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7443 (fn_TIFFSetDirectory): New library function used.
7444 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7445 (tiff_load): Use :index to select among multiple images. Set count
7446 property when multiple images exist.
7447 (gif_format): Use :index, not :image.
7448
74492008-08-23 Chong Yidong <cyd@stupidchicken.com>
7450
7451 * xdisp.c (try_scrolling): Check INT_MAX instead of
7452 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7453 to obtain INT_MAX.
7454
74552008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7456
7457 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7458
74592008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7460
7461 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7462 GNUstep library location.
7463
74642008-08-21 Chong Yidong <cyd@stupidchicken.com>
7465
7466 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7467 before using it.
7468
7469 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7470
74712008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7472
7473 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7474 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7475 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7476 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7477 (EmacsApp-cursor_blink_handler): Remove declaration.
7478 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7479 match 01 Feb 2008 changes in xterm.c.
7480 (ns_read_socket): Add cast to avoid warning.
7481 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7482 GNUstep.
7483
74842008-08-20 Chong Yidong <cyd@stupidchicken.com>
7485
7486 * xselect.c (x_get_foreign_selection): Return nil if desired
7487 selection could not be obtained, instead of signalling an error.
7488
74892008-08-20 David Reitter <david.reitter@gmail.com>
7490
7491 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7492 * nsterm.m: Remove ns-specific code for cursor blinking.
7493 (ns_draw_window_cursor): Clear cursor properly rather than
7494 redrawing the area. Respect width of bar cursors.
7495 These changes enable the use of generic blink-cursor-mode and
7496 generic cursor types in NS and support smooth cursor movements (do
7497 not blink off after command).
7498 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7499 Nextstep, too.
7500
75012008-08-19 Kenichi Handa <handa@m17n.org>
7502
7503 * font.c (Vfont_log_deferred): New variable.
7504 (font_add_log): Check Vfont_log_deferred.
7505 (font_deferred_log): New function.
7506
7507 * font.h (font_deferred_log): Extern it.
7508
7509 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7510 for sorting.
7511 (face_for_char): Use deferred log.
7512
75132008-08-18 Kenichi Handa <handa@m17n.org>
7514
7515 * fontset.c (face_for_char): Add font log.
7516
7517 * font.c (font_add_log): Add the font properties :script, :lang,
7518 and :otf in the log.
7519
75202008-08-17 Chong Yidong <cyd@stupidchicken.com>
7521
7522 * xdisp.c: Remove dead code.
7523 (handle_invisible_prop, next_overlay_string): Defer call to
7524 setup_for_ellipsis.
7525 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7526
75272008-08-15 Chong Yidong <cyd@stupidchicken.com>
7528
7529 * xfaces.c (lookup_derived_face): Properly handle possible zero
7530 return value of get_lface_attributes.
7531 (merge_faces): Don't tell lookup_derived_face to signal an error
7532 if face is not found.
7533
7534 * dired.c (Fdirectory_files): Doc fix.
7535
7536 * process.c (make_process): Initialize kill_without_query struct
7537 member.
7538
75392008-08-15 Eli Zaretskii <eliz@gnu.org>
7540
7541 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7542 Alternative calculation of totphys for Visual Studio 6.
7543
7544 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7545
7546 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7547 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7548 All users changed.
7549 (stat): Only root directory passed to GetDriveType. Allow RAM
7550 disk as well as local fixed disk when w32-get-true-file-attributes
7551 is set to `local'.
7552 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7553 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7554 (w32_cached_id, w32_add_to_cache): New functions.
7555 (get_name_and_id): Look account names in the cache before calling
7556 lookup_account_sid.
7557 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7558 New initialization flags.
7559 (globals_of_w32): Initialize them to zero.
7560 (w32_system_process_attributes): Use w32_cached_id and
7561 w32_add_to_cache.
7562
75632008-08-14 Lawrence Mitchell <wence@gmx.li>
7564
7565 * lread.c (Fread_char, Fread_char_exclusive): If no character
7566 event is read before timeout is reached, return nil, rather than
7567 converting to a number.
7568
75692008-08-14 Chong Yidong <cyd@stupidchicken.com>
7570
7571 * fns.c (use_dialog_box): Doc fix.
7572
7573 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7574 on OS X.
7575
75762008-08-13 Chong Yidong <cyd@stupidchicken.com>
7577
7578 * frame.c (Qns_parse_geometry): New var.
7579 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7580
75812008-08-11 Chong Yidong <cyd@stupidchicken.com>
7582
7583 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7584 space character in calculating tabs.
7585
75862008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7587
7588 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7589
75902008-08-10 Glenn Morris <rgm@gnu.org>
7591
7592 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7593 silence gcc "limited range of data type" warnings in some
7594 make_fixnum_or_float calls.
7595
75962008-08-09 Eli Zaretskii <eliz@gnu.org>
7597
7598 * w32.c (w32_system_process_attributes): If the process does not
7599 exist, return nil.
7600
7601 * w32.c: Include thelp32.h, psapi.h and coding.h.
7602 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7603 declarations.
7604 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7605 (Process32Next_Proc): New typedefs.
7606 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7607 (g_b_init_process32_next, g_b_init_open_thread_token)
7608 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7609 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7610 (g_b_init_get_process_working_set_size)
7611 (g_b_init_global_memory_status_ex): New static variables.
7612 (globals_of_w32): Initialize them.
7613 (create_toolhelp32_snapshot, process32_first, process32_next)
7614 (open_thread_token, impersonate_self, revert_to_self)
7615 (get_process_memory_info, get_process_working_set_size)
7616 (global_memory_status, global_memory_status_ex): New wrapper
7617 functions.
7618 (w32_list_system_processes, w32_system_process_attributes)
7619 (enable_privilege, restore_privilege, ltime, process_times):
7620 New functions.
7621 (convert_time_raw): New function.
7622 (convert_time): Remove conversion of FILETIME into time in 100
7623 nsec units, call convert_time_raw instead.
7624
7625 * process.h (w32_list_system_processes, w32_system_process_attributes):
7626 Add prototypes.
7627 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7628 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7629 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7630 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7631
7632 * process.c (Fsystem_process_attributes): Doc fix.
7633
76342008-08-08 Chong Yidong <cyd@stupidchicken.com>
7635
7636 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7637 a continued multi-char glyph; if so, advance to the actual glyph.
7638
76392008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7640
7641 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7642
7643 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7644 (.m.o): Use it.
7645 * config.in: Regenerate.
7646
76472008-08-07 Chong Yidong <cyd@stupidchicken.com>
7648
7649 * xdisp.c (redisplay_window): Revert last change.
7650 (try_window): Check bottom scroll margin too.
7651
76522008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7653
7654 * config.in: Regenerate.
7655
7656 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7657 -list-load-path-shadows'.
7658 (nsgui.h): Reduce number of things depending on it.
7659
76602008-08-06 Chong Yidong <cyd@stupidchicken.com>
7661
7662 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7663 instead of window-end which does the wrong thing at eob.
7664 (try_cursor_movement): Minor optimization.
7665 (redisplay_window): If scroll margin is defined, don't assume
7666 window doesn't need scrolling.
7667
76682008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7669
7670 * config.in: Regenerate.
7671
7672 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7673 (mostlyclean): Don't delete *.d under NS.
7674
7675 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7676
76772008-08-06 Kenichi Handa <handa@m17n.org>
7678
7679 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7680
76812008-08-06 Andreas Schwab <schwab@suse.de>
7682
7683 * config.in: Regenerate.
7684
76852008-08-05 Chong Yidong <cyd@stupidchicken.com>
7686
7687 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7688 forcing a window start.
7689
7690 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7691 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7692
76932008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7694
7695 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7696 argument.
7697
76982008-08-05 Juanma Barranquero <lekktu@gmail.com>
7699
7700 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7701 <scroll-down-aggressively, before-change-functions>:
7702 <after-change-functions>: Reflow docstrings.
7703
77042008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7705 Ken Raeburn <raeburn@gnu.org>
7706
7707 Dock menu customization, based on a patch by Ken Raeburn, plus some
7708 other fixes.
7709 * nsmenu.m (dockMenu): New variable.
7710 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7711
7712 * nsterm.h (dockMenu): Declare.
7713
7714 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7715 (ns_term_init): Initialize dockMenu.
7716 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7717 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7718 left.
7719
7720 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7721
77222008-08-04 Chong Yidong <cyd@stupidchicken.com>
7723
7724 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7725
7726 * config.in: Regenerate.
7727
77282008-08-04 Seiji Zenitani <zenitani@mac.com>
7729
7730 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7731
77322008-08-04 Chong Yidong <cyd@stupidchicken.com>
7733
7734 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7735
77362008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7737
7738 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7739
7740 * keyboard.h: Comment an #endif.
7741
7742 * lisp.h (have_menus_p): Adjust comment.
7743
7744 * menu.c (find_and_return_menu_selection): Fix comparison with
7745 client_data.
7746
7747 * nsmenu.m (popup_activated_flag): New variable.
7748 (popup_activated): New function.
7749 (menu-or-popup-active-p): New exported lisp definition.
7750 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7751 when popup done.
7752 (ns_popup_dialog): Set popup_activated_flag.
7753
7754 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7755 version for GNUstep (handled by conditional typedef in nsterm.m).
7756 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7757 in rgb.txt).
7758
7759 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7760
7761 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7762
7763 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7764
7765 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7766 shortcircuit if popup_activated like GTK and X toolkit.
7767
7768 * m/inter386.h: Change DARWIN to DARWIN_OS.
7769
7770 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7771 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7772 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7773 comment on NO_SOCK_SIGIO.
7774
77752008-08-03 Chong Yidong <cyd@stupidchicken.com>
7776
7777 * nsterm.m (windowDidResize): Remove stopModal call.
7778
77792008-08-03 Andreas Schwab <schwab@suse.de>
7780
7781 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7782 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7783
77842008-08-02 Chong Yidong <cyd@stupidchicken.com>
7785
7786 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7787 Don't use uninitialized pointer variable when using getrlimit.
7788
77892008-08-02 Jason Rumney <jasonr@gnu.org>
7790
7791 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7792
77932008-08-02 Eli Zaretskii <eliz@gnu.org>
7794
7795 * alloc.c (NSTATICS): Bump to 0x640.
7796
7797 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7798
7799 * lisp.h: Add prototype for directory_files_internal.
7800
7801 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7802 New functions.
7803 (syms_of_process): Defsubr them. Add initializations for various
7804 Q* symbols used in procfs_system_process_attributes.
7805 (procfs_list_system_processes, procfs_system_process_attributes)
7806 [HAVE_PROCFS]: New functions.
7807 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7808 (procfs_get_total_memory): New functions.
7809
78102008-08-01 Juanma Barranquero <lekktu@gmail.com>
7811
7812 * xfaces.c (Fx_load_color_file): Fix previous change;
7813 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7814
78152008-08-01 Michael Albinus <michael.albinus@gmx.de>
7816
7817 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7818
78192008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7820
7821 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7822
78232008-08-01 Chong Yidong <cyd@stupidchicken.com>
7824
7825 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7826
7827 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7828 define NSApplicationDelegateReplySuccess.
7829 (EmacsView -converstationIdentifier): Use long instead of
7830 NSInteger for GNUstep, since it doesn't have NSInteger.
7831
7832 * xmenu.c: Revert last change.
7833
7834 * keyboard.h: Fix last change.
7835
78362008-08-01 Juanma Barranquero <lekktu@gmail.com>
7837
7838 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7839 on Windows.
7840
78412008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7842
7843 Warning clearing and clean-up in NS port.
7844 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7845 Add prototypes.
7846 * nsgui.h (FACE_DEFAULT): Remove, unused.
7847 (XGCValues): Change colors to unsigned long.
7848 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7849 nsterm.m.
7850 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7851 (ns_list_fonts): Remove, unused.
7852 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7853 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7854 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7855 (nsfont_draw): Compare face colors to 0, not nil.
7856 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7857 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7858 (-addSubmenuWithTitle:): Use NSMenuItem class.
7859 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7860 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7861 (ns_clip_to_row): Make gc arg a BOOL.
7862 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7863 ns_clip_to_row() call.
7864 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7865 used). Cast FRAME_FONT assignments.
7866 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7867 (ns_string_to_lispmod): Change arg to const char.
7868 (ns_term_init): Use NSMenuItem class.
7869 (EmacsApp -openFile:): Move to different section of file.
7870 (EmacsApp -application:openFiles:): Don't return a value, call
7871 -replyToOpenOrPrint:.
7872 (EmacsView -keyDown:): Fix up cast.
7873 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7874 (EmacsView -menuDown:): Cast tag in call to
7875 find_and_call_menu_selection().
7876 (ns_list_fonts): Remove, unused.
7877 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7878 (ns_fontname_to_xlfd): Make static.
7879 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7880 Remove prototypes (now in keyboard.h).
7881 (next_menubar_widget_id): Remove, unused.
7882 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7883 Remove prototypes (now in keyboard.h).
7884 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7885
78862008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7887
7888 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7889 (floatfns.o): Depend on syssignal.h.
7890 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7891
7892 * systty.h: Fix previous change that removed BSD_TERMIOS.
7893 Add comments to #ifdefs.
7894
78952008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7896
7897 * w32fns.c (w32-load-color-file): Remove.
7898 (x-open-connection): Use renamed Fx_load_color_file.
7899 * xfaces.c (x-load-color-file): Add.
7900 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7901 Emacs.clr.
7902 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7903
79042008-07-31 Michael Albinus <michael.albinus@gmx.de>
7905
7906 * dbusbind.c (Fdbus_call_method_asynchronously)
7907 (Fdbus_method_error_internal): New defuns.
7908 (xd_read_message): Handle also reply messages.
7909 (Vdbus_registered_functions_table): Extend docstring.
7910
79112008-07-31 Juanma Barranquero <lekktu@gmail.com>
7912
7913 * keyboard.c (gobble_input): Fix previous change.
7914
79152008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7916
7917 * bitmaps/README:
7918 * xfns.c:
7919 * termcap.c:
7920 * term.c:
7921 * syswait.h:
7922 * systty.h:
7923 * systime.h:
7924 * syssignal.h:
7925 * sysdep.c:
7926 * process.h:
7927 * process.c:
7928 * print.c:
7929 * ndir.h:
7930 * lread.c:
7931 * keyboard.c:
7932 * getpagesize.h:
7933 * floatfns.c:
7934 * fileio.c:
7935 * emacs.c:
7936 * doc.c:
7937 * dispnew.c:
7938 * dired.c:
7939 * data.c:
7940 * callproc.c:
7941 * buffer.c:
7942 * README:
7943 * Makefile.in:
7944 * s/template.h:
7945 * s/msdos.h:
7946 * m/vax.h: Remove VMS support.
7947 * s/vms.h:
7948 * vlimit.h:
7949 * uaf.h:
7950 * temacs.opt:
7951 * param.h:
7952 * ioctl.h: Remove file.
7953
79542008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7955
7956 * s/ms-w32.h (MULTI_KBOARD): Remove.
7957 * xterm.c:
7958 * xselect.c:
7959 * xfns.c:
7960 * window.c:
7961 * w32term.c:
7962 * w32fns.c:
7963 * terminal.c:
7964 * termhooks.h:
7965 * term.c:
7966 * sysdep.c:
7967 * keyboard.h:
7968 * keyboard.c:
7969 * frame.h:
7970 * frame.c:
7971 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7972 * config.in: Regenerate.
7973
79742008-07-30 Jason Rumney <jasonr@gnu.org>
7975
7976 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7977
7978 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7979 (w32font_open_internal): Get unicode version of textmetrics.
7980 Don't enable or disable glyph indices here.
7981 (w32font_open): Disable use of glyph indices.
7982
7983 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7984
79852008-07-30 Chong Yidong <cyd@stupidchicken.com>
7986
7987 * minibuf.c (Vread_buffer_function): Doc fix.
7988
79892008-07-30 John Paul Wallington <jpw@pobox.com>
7990
7991 * minibuf.c (read_buffer_completion_ignore_case): New var.
7992 (Fread_buffer): Use it.
7993
79942008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7995
7996 * systty.h (sensemode): Remove empty #if. Remove reference to
7997 BSD_TERMIOS, unused.
7998
7999 * sysdep.c: Remove reference to DGUX.
8000 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8001
8002 * config.in: Regenerate.
8003
80042008-07-30 Jason Rumney <jasonr@gnu.org>
8005
8006 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8007
80082008-07-29 Jason Rumney <jasonr@gnu.org>
8009
8010 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8011 is populated.
8012 (uniscribe_encode_char): Always use uniscribe.
8013 Avoid using context if cache is populated.
8014
80152008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8016
8017 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8018 open menu.
8019
8020 * gtkutil.c (menu_nav_ended): Remove.
8021 (create_menus): Remove signal connect for menu_nav_ended.
8022
80232008-07-28 Chong Yidong <cyd@stupidchicken.com>
8024
8025 * xdisp.c (redisplay_window): Check return value of
8026 compute_window_start_on_continuation_line before forcing a window
8027 start.
8028
80292008-07-28 Jason Rumney <jasonr@gnu.org>
8030
8031 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8032
8033 * w32term.c (w32_enable_unicode_output, cleartype_active):
8034 Remove obsolete display options.
8035 (x_draw_glyph_string_background): Don't use old cleartype_active
8036 workaround.
8037 (w32_initialize): Remove cleartype_active initialization.
8038 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8039
80402008-07-28 Andreas Schwab <schwab@suse.de>
8041
8042 * lisp.h (init_weak_hash_tables, syms_of_font)
8043 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8044 (remove_hash_entry): Don't declare.
8045 * eval.c (maybe_call_debugger): Make static and move before use.
8046 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8047 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8048 * xterm.h (x_set_frame_alpha): Declare.
8049
80502008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8051
8052 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8053 (create_menus): Connect selection-done to menu_nav_ended.
8054
80552008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8056
8057 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8058 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8059 parameter with read of 'alpha' one.
8060 (Qns_frame_parameter): Remove.
5582fbc7 8061 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8062 (next-selection-coding-system, Vselection_coding_system)
8063 (Vnext_selection_coding_system): Drop.
8064
80652008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8066
8067 * nsfns.m (do-applescript, do_applescript): Rename to
8068 ns-do-applescript, ns_do_applescript, and move within file.
8069
80702008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8071
8072 Remove support for Mac Carbon.
8073 * mactoolbox.c:
8074 * macterm.h:
8075 * macterm.c:
8076 * macselect.c:
8077 * macmenu.c:
8078 * macgui.h:
8079 * macfns.c:
8080 * mac.c: Remove file.
8081 * s/darwin.h:
8082 * m/intel386.h:
8083 * xfaces.c:
8084 * xdisp.c:
8085 * window.c:
8086 * tparam.c:
8087 * termhooks.h:
8088 * termcap.c:
8089 * term.c:
8090 * syssignal.h:
8091 * sysselect.h:
8092 * sysdep.c:
8093 * process.c:
8094 * lread.c:
8095 * lisp.h:
8096 * keyboard.c:
8097 * image.c:
8098 * fringe.c:
8099 * frame.h:
8100 * frame.c:
8101 * fontset.c:
8102 * font.h:
8103 * font.c:
8104 * fns.c:
8105 * fileio.c:
8106 * emacs.c:
8107 * dispnew.c:
8108 * dispextern.h:
8109 * config.in:
8110 * atimer.c:
2ae37cf0 8111 * Makefile.in: Remove code for Carbon.
aac0c6e3 8112
f0131492 81132008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8114
8115 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8116
81172008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8118
8119 * macterm.h (kCGBitmapByteOrder32Host): New define for
8120 non-universal SDKs.
8121
8122 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8123 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8124
8125 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8126 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8127
81282008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8129
8130 * w32inevt.c: Include dispextern.h.
8131
81322008-07-26 Andreas Schwab <schwab@suse.de>
8133
8134 * print.c (print_object): Fix off-by-one in last change.
8135
81362008-07-25 Juanma Barranquero <lekktu@gmail.com>
8137
8138 * term.c (syms_of_term): Don't initialize default_orig_pair,
8139 default_set_foreground and default_set_background on Windows.
8140
81412008-07-25 Jason Rumney <jasonr@gnu.org>
8142
8143 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8144 ScriptItemize. Clean up return value checking. Remove unused
8145 variables.
8146 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8147 shaping engine.
8148
8149 * w32font.c (w32font_has_char): Handle the case where we can't
8150 determine the script for a character.
8151
81522008-07-25 Chong Yidong <cyd@stupidchicken.com>
8153
8154 * term.c (syms_of_term): Initialize default_orig_pair,
8155 default_set_foreground, and default_set_background.
8156
8157 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8158 clash (bug#86).
8159 (getloadavg): Callers changed.
8160
8161 * image.c (svg_load_image): Fix last change.
8162 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8163 image size is valid. Use g_object_unref instead of deprecated
8164 rsvg_handle_free to free rsvg handle.
8165 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8166
81672008-07-25 Jason Rumney <jasonr@gnu.org>
8168
8169 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8170 surrogates before looking up glyph index.
8171 (w32font_text_extents): Encode as surrogates if falling back to
8172 functions that need UTF-16 wide chars.
8173
8174 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8175 BMP as surrogates before looking up glyph index.
8176
81772008-07-25 Chong Yidong <cyd@stupidchicken.com>
8178
8179 * image.c (svg_load_image): Check for failure in return value of
8180 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8181
81822008-07-25 Jason Rumney <jasonr@gnu.org>
8183
8184 * w32font.c (Fx_select_font): Reverse sense of second arg.
8185
81862008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8187
8188 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8189 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8190
8191 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8192 (PURESIZE): Use it.
8193
81942008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8195
8196 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8197 * m/alpha.h (TEXT_END):
8198 * m/ibmrs6000.h (TEXT_END):
8199 * m/macppc.h (TEXT_END):
8200 * s/darwin.h (TEXT_END):
8201 * s/msdos.h (TEXT_END): Remove, unused.
8202 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8203 * s/cygwin.h: Remove comment.
8204
8205 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8206 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8207 * m/intel386.h (DOT_GLOBAL_START):
8208 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8209 (USG): Remove, file not used on USG platforms.
8210
8211 * Makefile.in (HAVE_X11): Remove empty #else.
8212
82132008-07-24 Andreas Schwab <schwab@suse.de>
8214
8215 * fileio.c (Finsert_file_contents): Properly adjust undo list
8216 after format conversion.
8217
82182008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8219
8220 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8221 (menu_nav_ended): Remove.
8222 (create_menus): Remove signal connect for menu_nav_ended.
8223 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8224 create_menus.
8225 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8226
82272008-07-23 Jason Rumney <jasonr@gnu.org>
8228
8229 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8230 with opened font.
8231 (w32font_open): Set font type to gdi.
8232
8233 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8234
82352008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8236
8237 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8238 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8239 defines it.
8240 * unexec.c (ADDR_CORRECT): Define unconditionally.
8241
8242 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8243
8244 * unexec.c: Remove code depending on !COFF and USG, the file is
8245 not used for such systems.
8246
8247 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8248 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8249 (LD_SWITCH_SYSTEM_1): Remove, update users.
8250
8251 * s/darwin.h (DATA_END):
8252 * m/intel386.h (DATA_END):
8253 * m/ibmrs6000.h (DATA_END):
8254 * m/alpha.h (DATA_END): Remove, unused.
8255
8256 * config.in: Regenerate.
8257 * s/ms-w32.h (subprocesses): Define unconditionally.
8258 * s/template.h (subprocesses): Update comment.
8259 * s/vms.h (subprocesses):
8260 * s/usg5-4.h (subprocesses):
8261 * s/hpux10-20.h (subprocesses):
8262 * s/gnu-linux.h (subprocesses):
8263 * s/cygwin.h (subprocesses):
8264 * s/bsd-common.h (subprocesses):
8265 * s/aix4-2.h (subprocesses):
8266 * s/darwin.h (subprocesses): Do not define, defined by default now.
8267
8268 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8269 Remove all references.
8270 (temacs): Add GNUstep specific ld flags.
8271
8272 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8273 similarly to what X does.
8274
82752008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8276
8277 * nsfns.m (x-list-fonts): Remove.
8278 (syms_of_nsfns): Drop the x-list-fonts declaration.
8279 * nsterm.m: Get rid of remaining "//" comments.
8280
82812008-07-22 Chong Yidong <cyd@stupidchicken.com>
8282
8283 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8284
8285 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8286 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8287 (Fns_own_selection_internal, Fx_disown_selection_internal)
8288 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8289
8290 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8291 ... */' style of docstrings. Doc fixes.
8292
82932008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8294
8295 * terminfo.c (UP, BC, PC): Undo previous change.
8296
8297 * nsfns.m: Rename ns prefixed functions/variables to the
8298 corresponding x versions. Update references.
8299
83002008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8301
8302 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8303
83042008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8305
8306 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8307 Remove forwarding functions.
8308 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8309 non-static.
8310 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8311 non-static.
8312 (ns_frame_parm_handlers): Use the new names.
8313 (syms_of_nsfns): Move to the end of file.
8314
8315 * nsterm.m (syms_of_nsterm): Move to the end of file.
8316
8317 * dispnew.c (init_display): Remove code for X10.
8318
83192008-07-22 Jason Rumney <jasonr@gnu.org>
8320
8321 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8322 bare drive.
8323
83242008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8325
8326 * nsterm.m (syms_of_nsterm): Remove debugging println.
8327
83282008-07-22 David Reitter <david.reitter@gmail.com>
8329
8330 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8331 Carbon implementation of the same functionality: execute arbitrary
8332 AppleScript code.
8333
83342008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8335
8336 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8337 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8338 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8339 (Fx_display_mm_height, Fx_display_mm_width)
8340 (Fx_display_backing_store, Fx_display_visual_class)
8341 (Fx_display_save_under, Fx_open_connection)
8342 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8343 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8344 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8345 (Fx_display_pixel_width, Fx_display_pixel_height)
8346 (Fx_display_usable_bounds, Fx_display_planes)
8347 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8348 ... */' style of docstrings.
8349
83502008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8351
8352 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8353 on this platform.
8354 (mips):
8355 * m/iris4d.h (mips): Do not define.
8356 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8357
8358 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8359
8360 * image.c:
8361 * nsfns.m:
8362 * nsselect.m:
8363 * nsterm.h:
8364 * nsterm.m: Rename ns prefixed functions/variables to the
8365 corresponding x versions. Update references.
8366
8367 * m/ibms390x.h (NO_REMAP): Do not undefine.
8368
8369 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8370
83712008-07-21 Chong Yidong <cyd@stupidchicken.com>
8372
8373 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8374 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8375 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8376 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8377 (Fns_display_mm_height, Fns_display_mm_width)
8378 (Fns_display_backing_store, Fns_display_visual_class)
8379 (Fns_display_save_under, Fns_open_connection)
8380 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8381 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8382 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8383 (Fns_display_pixel_width, Fns_display_pixel_height)
8384 (Fns_display_usable_bounds, Fx_display_planes)
8385 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8386
83872008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8388
8389 * print.c (print_object): Check print_depth before searching for
8390 circularities.
8391
83922008-07-21 Michael Albinus <michael.albinus@gmx.de>
8393
8394 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8395 only sprintf.
8396
83972008-07-21 Kenichi Handa <handa@m17n.org>
8398
8399 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8400
84012008-07-20 Andreas Schwab <schwab@suse.de>
8402
8403 * syntax.c (find_start_pos, find_start_value)
8404 (find_start_value_byte, find_start_begv, find_defun_start)
8405 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8406
84072008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8408
8409 * s/sol2-3.h: Insert contents of s/sol2.h.
8410 (LD_SWITCH_SYSTEM): Remove redundant definition.
8411 * s/sol2.h: Remove, unused.
8412
84132008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8414
8415 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8416
84172008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8418
8419 * Makefile.in (ns_appdir): Fix typo in find command.
8420
84212008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8422
8423 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8424
8425 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8426 added not supported anymore.
8427
8428 * s/usg5-4-2.h (LIBS_SYSTEM):
8429 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8430
8431 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8432 * s/lynxos.h (GETPGRP_NO_ARG):
8433 * s/hpux10-20.h (NO_SIOCTL_H):
8434 * s/gnu.h (GETPGRP_NO_ARG):
8435 * s/gnu-linux.h (NO_SIOCTL_H):
8436 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8437 * s/cygwin.h (GETPGRP_NO_ARG):
8438 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8439 (C_DEBUG_SWITCH): Remove duplicate definition.
8440
8441 * m/ibms390.h: Remove boilerplate comments.
8442
8443 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8444
8445 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8446 (wait_reading_process_output): Remove code for SunOS, platform not
8447 supported anymore. Use SOLARIS2 instead of sun.
8448
84492008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8450
8451 * font.c (font_open_by_name): Under NS, default lface height to zero.
8452 (font_open_for_lface): Under NS, set size based on frame fontsize.
8453 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8454 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8455
84562008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8457
8458 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8459 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8460 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8461 YES/NO.
8462 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8463 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8464 * Makefile.in (clean): Clear out build destination dir.
8465
84662008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8467
8468 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8469 xterm, xselect.
8470 * lisp.h: Remove declaration of hash_remove.
8471 * nsgui.h: Remove redefinitions of hash_remove.
8472 * fns.c (hash_remove): Rename to hash_remove_from_table.
8473
84742008-07-19 Seiji Zenitani <zenitani@mac.com>
8475
8476 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8477 strdup() the family UTF8String before modifying it.
8478
84792008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8480
8481 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8482 NS_FACE_BACKGROUND with 0 instead of nil.
8483 * nsfont.m (nsfont_draw): Same.
8484
84852008-07-19 Chong Yidong <cyd@stupidchicken.com>
8486
8487 * nsfns.m (ns_set_background_color): Fix crash.
8488
84892008-07-18 Chong Yidong <cyd@stupidchicken.com>
8490
8491 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8492
84932008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8494
8495 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8496
84972008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8498
8499 * gtkutil.c: Include <config.h> instead of "config.h".
8500
8501 * lisp.h (Foverlay_buffer): Add EXFUN.
8502
8503 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8504 child process to complete child_setup. Undo 2005-09-21 change.
8505
8506 * s/darwin.h: Mention setsid after vfork.
8507
85082008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8509
8510 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8511 Depend on macgui.h.
8512
8513 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8514 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8515
8516 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8517 and f19.
8518 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8519
8520 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8521 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8522 Remove enumerators.
8523
8524 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8525 Check if FACE_FROM_ID returns NULL.
8526
85272008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8528
8529 * w32inevt.c (change_frame_size): Remove extern declaration.
8530 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8531 change_frame_size.
8532
85332008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8534
8535 * getloadavg.c: Revert last change (2008-07-15).
8536
85372008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8538
8539 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8540 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8541 from configure.
8542
85432008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8544
8545 * s/sol2.h:
8546 * s/sol2-4.h: Reorganize conditionals.
8547
8548 * ecrt0.c: Remove code depending on m68000, not used anymore.
8549
8550 * fns.c (hash_remove): Make static.
8551 * lisp.h (hash_remove): Don't prototype.
8552
8553 * m/ibmrs6000.h:
8554 * m/ibms390x.h:
8555 * m/macppc.h: Remove boilerplate comments.
8556
8557 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8558 Solaris, which does not need them.
8559
8560 * m/vax.h: Remove comments about unsupported systems.
8561
8562 * s/darwin.h: Reorganize ifdefs.
8563
85642008-07-17 Andreas Schwab <schwab@suse.de>
8565
8566 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8567
85682008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8569
8570 Use SDATA. Follow coding convention of placing operators at
8571 beginning of next line rather than end of previous line, and placing
8572 spaces around infix operators.
8573
8574 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8575 in case it was defined already.
8576 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8577 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8578 ns_default.
8579 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8580 Lisp_Objects.
8581 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8582 (ns_defined_color, ns_color_to_lisp): Declare.
8583 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8584 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8585 it's accepted even with USE_LISP_UNION_TYPE.
8586 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8587 (update_frame_tool_bar): Remove apparently obsolete tests for
8588 non-integerness of f->tool_bar_lines.
8589 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8590 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8591 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8592 (nsfont_open): Don't confuse NULL for Qnil.
8593 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8594 * menu.h (find_and_call_menu_selection):
8595 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8596 (find_and_return_menu_selection): Always return something.
8597 * frame.h: Include dispextern.h for Display_Info.
8598 (display_x_get_resource): Declare.
8599
86002008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8601
8602 * syntax.c: Remove stdio.h include accidentally introduced in
8603 Emacs.app commit.
8604 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8605 NS_IMPL_COCOA.
8606 * keyboard.c (handle_async_input, input_available_signal): Remove
8607 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8608
86092008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8610
8611 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8612 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8613 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8614 Use SDATA.
8615
8616 * keymap.c: Remove all NS-specific code.
8617 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8618 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8619 where_is_preferred_modifier, return a different value depending on how
8620 preferred is the binding.
8621 (where_is_internal): Adjust accordingly.
8622 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8623 Adjust to new preferred_sequence_p.
8624 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8625 * keyboard.c (parse_solitary_modifier): Not static any more.
8626 * keyboard.h (parse_solitary_modifier): Declare.
8627
86282008-07-16 Andreas Schwab <schwab@suse.de>
8629
8630 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8631 of easymenu.
8632
86332008-07-16 Chong Yidong <cyd@stupidchicken.com>
8634
8635 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8636 that we don't move off the line.
8637
86382008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8639
8640 * keyboard.c (Qsuper): Remove.
8641 (parse_menu_item): Don't call where_is_internal specially for NS.
8642
86432008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8644
8645 * s/gnu-linux.h: Remove boilerplate comments.
8646
8647 * m/alpha.h (__ELF__): Consolidate conditions.
8648
8649 * m/m68k.h (linux): Use GNU_LINUX instead.
8650 Remove boilerplate comments.
8651
8652 * m/intel386.h: Undo refactoring from previous change.
8653 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8654 too, remove dead code.
8655 (linux): Use GNU_LINUX instead.
8656
86572008-07-16 Jason Rumney <jasonr@gnu.org>
8658
8659 * w32gui.h: Repeat 26 June changes lost by last change.
8660
86612008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8662
8663 * systty.h: Remove code for Aix on 386, unsupported platform.
8664
8665 * s/ms-w32.h: Remove boilerplate comments.
8666 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8667
8668 * s/gnu-linux.h (TERM): Remove support.
8669 (HAVE_SYSVIPC): Remove, unused.
8670 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8671 for this system.
8672
8673 * process.c: Remove support for IRIS, unused.
8674 Remove support for TERM, not relevant anymore.
8675
8676 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8677 used with the definition.
8678
8679 * s/aix4-2.h (static): Do not undef.
8680
8681 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8682 only used on Aix.
8683 (HAVE_SYSVIPC): Remove, unused.
8684
8685 * m/hp800.h (CANNOT_DUMP): Do not undef.
8686
8687 * m/alpha.h: Fix comment.
8688
8689 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8690 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8691 used by this configuration.
8692 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8693 * unexec.c: Remove code depending on HPUX and
8694 USG_SHARED_LIBRARIES, not used with this file. Remove code
8695 depending on IRIS, unused. Remove if 0-ed code.
8696
8697 * s/template.h: Remove comments about static.
8698
8699 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8700 Remove if 0-ed code.
8701 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8702 were the same as the default.
8703 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8704 Remove boilerplate comments.
8705 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8706 (HAVE_SYSVIPC): Remove, unused.
8707 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8708
8709 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8710 Remove boilerplate comments.
8711 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8712 Remove boilerplate comments.
8713 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8714 Remove boilerplate comments.
8715 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8716
8717 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8718 USG systems which do not use DATA_SEG_BITS.
8719 Refactor code. Remove boilerplate comments.
8720
8721 * m/ibms390.h:
8722 * m/m68k.h:
8723 * s/bsd-common.h:
8724 * s/cygwin.h:
8725 * s/darwin.h:
8726 * s/freebsd.h:
8727 * s/gnu.h:
8728 * s/msdos.h: Remove boilerplate comments.
8729
8730 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8731 do not use this file.
aac0c6e3
MR
8732 (IRIS_4D): Remove, unused.
8733
8734 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8735 do not use this file.
aac0c6e3
MR
8736 (SIGN_EXTEND_CHAR):
8737 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8738 * unexmips.c: Remove file, unused.
8739
8740 * editfns.c (Fuser_full_name): Replace the only use of
8741 USER_FULL_NAME with its value.
8742 * config.in: Regenerate.
8743
87442008-07-16 David Reitter <david.reitter@gmail.com>
8745
8746 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8747 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8748
87492008-07-16 Glenn Morris <rgm@gnu.org>
8750
8751 * emacs.c (system-type): Doc fix.
8752
87532008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8754
8755 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8756 If the cache doesn't work, let's fix it, rather than work around it.
8757
87582008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8759
8760 * Makefile.in: Correct additions for nsfont.o in last commit.
8761 * nsfont.m: New file (forgot last commit).
8762
87632008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8764
8765 * callproc.c (set_initial_environment): Initialize
8766 Vprocess_environment under CANNOT_DUMP (fixes crash when
8767 batch-compiling for bootstrap).
8768
87692008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8770 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8771
8772 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8773 fix crash due to different init order.
8774
87752008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8776
8777 Changes and additions for NeXTstep windowing system (Cocoa and
8778 GNUstep) support.
8779
8780 * Makefile.in:
8781 * config.in: Support defines and build commands for NS port.
8782 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8783 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8784 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8785 windowing.
8786 (struct face): Add synth_ital field.
8787 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8788 (init_display): Initialize Vinitial_window_system to "ns" when so
8789 compiled.
8790 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8791 (display_arg): Use under NS.
8792 (main): Under NS, allocate autorelease pool and handle command line
8793 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8794 (standard_args): Add NS-specific args.
8795 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8796 * font.c (DEFAULT_ENCODING): New variable.
8797 (font_find_for_lface): Use it.
8798 (syms_of_font): Load syms_of_nsfont under NS.
8799 * font.h: Declare nsfont_driver when compiled under NS.
8800 * fontset.c: When compiling under NS, include nsterm.h.
8801 (fontset_from_font): Autoconstruct fontset under NS.
8802 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8803 symbol, document and use it.
8804 (do_switch_frame): When for_deletion under Cocoa, add
8805 Fraise_frame(Qnil).
8806 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8807 (x_get_arg): Allow "yes" and "no" as boolean values.
8808 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8809 Qright under Cocoa.
8810 (focus-follows-mouse): Default to 0 under NS.
8811 * frame.h (enum output_method): Add output_ns.
8812 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8813 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8814 (FRAME_WINDOW_P): NS-specific definition.
8815 * fringe.c (max_used_fringe_bitmap): Make public.
8816 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8817 (getloadavg): Use NeXT code under descendant OS's.
8818 * image.c (includes and header section, x_create_bitmap_from_data)
8819 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8820 (image_background_transparent, x_clear_image_1)
8821 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8822 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8823 (x_to_xcolors, x_from_xcolors, x_disable_image)
8824 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8825 other GUIs, including XPM support using code originally written for
8826 Carbon GUI.
8827 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8828 using NS API.
8829 (image_ascent): Use font metrics macros instead of direct struct field
8830 access.
8831 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8832 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8833 Also, handle NS as GTK for menu bar purposes.
8834 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8835 toolkit where they differ.
8836 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8837 use cachelist, still needed under NS.
8838 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8839 (struct widget_value): Define it here for menu.c.
8840 * keymap.c (includes): Include modifier internals.
8841 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8842 NS.
8843 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8844 support for preferring sequences using certain modifiers, specified by
8845 the FIRSTONLY argument.
8846 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8847 under NS GNUstep implementation.
8848 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8849 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8850 * menu.c: Include nsterm.h under NS.
8851 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8852 (free_menubar_widget_tree_value, update_submenu_strings)
8853 (find_and_call_menu_selection): Treat NS as X and NT.
8854 (find_and_return_menu_selection): New function, used for popup menus.
8855 * nsgui.h:
8856 * nsterm.h:
8857 * nsfns.m:
8858 * nsimage.m:
8859 * nsmenu.m:
8860 * nsselect.m:
8861 * nsterm.m: New files.
8862 * process.c (wait_reading_process_output): Under NS, call ns_select()
8863 instead of plain select().
8864 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8865 beginning of buffer.
8866 * sysselect.h (init_process): Rename when compiling under Cocoa to
8867 avoid name conflict.
8868 * termhooks.h (display_info): Add ns_display_info to union.
8869 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8870 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8871 COCOA environment.
8872 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8873 unexec() signature. (Note, this will dump, but the resulting file
8874 crashes; unexosx is used instead; keeping around for reference and
8875 possible aid in getting dump working under GNUstep.)
8876 * w32gui.h (button_type, widget_value): Remove definitions (now in
8877 keyboard.h).
8878 * window.c: Include nsterm.h when compiling under NS.
8879 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8880 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8881 other GUI windowing systems.
8882 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8883 GTK.
8884 (x_consider_frame_title): Under NS, set icon type and frame
8885 modified-state indicator; use ns_set_name_as_filename() when using
8886 formatted title.
8887 (update_window_cursor): Make public when compiling under NS.
8888 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8889 (hourglass_atimer, Vhourglass_delay
8890 * xfaces.c (header section, init_frame_faces, clear_font_table)
8891 (defined_color, unload_color, x_face_list_fonts)
8892 (prepare_face_for_display): Add NS support parallel to other GUIs.
8893 Emulate GCs like other non-X GUIs.
8894 (split_font_name): Don't lowercase font name under NS.
8895 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8896 under NS.
8897 * s/darwin.h: Add support for compilation under NS.
8898
88992008-07-15 Jason Rumney <jasonr@gnu.org>
8900
8901 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8902 (w32_show_hourglass): Rename from show_hourglass.
8903 (w32_hide_hourglass): Rename from hide_hourglass.
8904 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8905 (Vhourglass_delay): Declare extern.
8906 (hourglass_started): Remove.
8907
8908 * xdisp.c (Vhourglass_delay): Remove static.
8909 (hourglass_started, start_hourglass, cancel_hourglass):
8910 Don't include these versions on WINDOWSNT.
8911
89122008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8913
8914 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8915 variables (formerly in xfns.c).
8916 (show_hourglass, hide_hourglass): New prototypes (same).
8917 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8918 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8919 in xfns.c).
8920 (syms_of_xdisp): Declare/initialize display-hourglass,
8921 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8922 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8923 formerly in xfns.c.
8924 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8925 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8926 (start_hourglass, cancel_hourglass): Remove.
8927 (show_hourglass, hide_hourglass): Remove prototypes and static
8928 modifiers.
8929 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8930 hourglass_atimer, hourglass_shown_p declaration/initialization.
8931 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8932 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8933 (start_hourglass, cancel_hourglass): Remove.
8934 (show_hourglass, hide_hourglass): Remove prototypes and static
8935 modifiers.
8936 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8937 hourglass_atimer, hourglass_shown_p declaration/initialization.
8938 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8939 (DEFAULT_HOURGLASS_DELAY): Remove.
8940 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8941 hourglass_shown_p declaration/initialization.
8942
89432008-07-14 Jason Rumney <jasonr@gnu.org>
8944
8945 * w32fns.c (w32_get_arg): Remove wrapper function.
8946 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8947 directly.
8948 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8949
89502008-07-14 Kenichi Handa <handa@m17n.org>
8951
8952 * xfont.c (xfont_open): Add workaround for X's bug.
8953
89542008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8955
8956 * fontset.c: Include <stdio.h> unconditionally.
8957
89582008-07-13 Michael Albinus <michael.albinus@gmx.de>
8959
8960 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8961 for filtering.
8962
89632008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8964
8965 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8966
8967 * m/macppc.h:
8968 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8969
8970 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8971 (SPECIAL_EMACS_INT):
8972 * m/ia64.h (SPECIAL_EMACS_INT):
8973 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8974 * s/gnu.h (NLIST_STRUCT):
8975 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8976 * s/gnu-linux.h (LINUX):
8977 * s/msdos.h (HAVE_FACES):
8978 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8979
8980 * systty.h:
8981 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8982 anymore.
8983
89842008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8985
8986 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8987 always defined as int.
8988
8989 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8990 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8991 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8992 * s/freebsd.h (HAVE_WAIT_HEADER):
8993 * s/bsd-common.h (HAVE_UNION_WAIT):
8994 * s/aix4-2.h (HAVE_WAIT_HEADER):
8995 * m/mips.h (HAVE_UNION_WAIT):
8996 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8997 (COFF, static): Do not define, they are undefined later in the file.
8998
8999 * process.c (update_status): Don't use a union.
9000 (status_convert):
9001 (sigchld_handler): Use int instead of WAITTYPE.
9002
90032008-07-12 Chong Yidong <cyd@stupidchicken.com>
9004
9005 * indent.c (Fvertical_motion): Restore hscroll before moving to
9006 goal column.
9007
90082008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9009
9010 * lisp.h: Remove left over code.
9011
90122008-07-11 Andreas Schwab <schwab@suse.de>
9013
9014 * lisp.h: Fix logic in last change.
9015
9016 * menu.h: New file.
9017 * menu.c: Include it.
9018 * xmenu.c: Likewise.
9019 * Makefile.in: Update dependencies.
9020
90212008-07-11 Kenichi Handa <handa@m17n.org>
9022
9023 * fontset.c (fontset_from_font): Cancel the previous change.
9024
90252008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9026
9027 * lisp.h:
9028 * w32heap.c:
9029 * emacs.c:
9030 * alloc.c: Replace all references of NO_UNION_TYPE with
9031 USE_LISP_UNION_TYPE.
9032
9033 * m/xtensa.h (NO_UNION_TYPE):
9034 * m/vax.h (NO_UNION_TYPE):
9035 * m/template.h (NO_UNION_TYPE):
9036 * m/sparc.h (NO_UNION_TYPE):
9037 * m/mips.h (NO_UNION_TYPE):
9038 * m/macppc.h (NO_UNION_TYPE):
9039 * m/m68k.h (NO_UNION_TYPE):
9040 * m/iris4d.h (NO_UNION_TYPE):
9041 * m/intel386.h (NO_UNION_TYPE):
9042 * m/ibms390x.h (NO_UNION_TYPE):
9043 * m/ibms390.h (NO_UNION_TYPE):
9044 * m/ibmrs6000.h (NO_UNION_TYPE):
9045 * m/ia64.h (NO_UNION_TYPE):
9046 * m/hp800.h (NO_UNION_TYPE):
9047 * m/arm.h (NO_UNION_TYPE):
9048 * m/amdx86-64.h (NO_UNION_TYPE):
9049 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9050 defining it the same.
9051
90522008-07-10 Chong Yidong <cyd@stupidchicken.com>
9053
9054 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9055
90562008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9057
9058 * fileio.c:
9059 * sysdep.c
9060 * systty.h:
9061 * m/ibmrs6000.h:
9062 * m/iris4d.h:
9063 * s/aix4-2.h:
9064 * s/freebsd.h:
9065 * s/gnu-linux.h:
9066 * s/hpux10-20.h:
9067 * s/hpux11.h:
9068 * s/netbsd.h:
9069 * s/sol2-3.h:
9070 * s/sol2-4.h:
9071 * s/sol2.h:
9072 * s/usg5-4.h:
9073 * s/vms.h: Remove references to unused variables.
9074
90752008-07-10 Andreas Schwab <schwab@suse.de>
9076
9077 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9078 pattern before matching the generic family.
9079
90802008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9081
9082 * unexec.c:
9083 * s/vms.h:
9084 * s/usg5-4-2.h:
9085 * s/sol2-5.h:
9086 * s/freebsd.h:
9087 * s/darwin.h: Remove dead code.
9088
9089 * m/template.h:
9090 * m/sparc.h:
9091 * m/mips.h:
9092 * m/m68k.h:
9093 * m/iris4d.h:
9094 * m/intel386.h:
9095 * m/ibms390x.h:
9096 * m/ibms390.h:
9097 * m/ia64.h:
9098 * m/hp800.h:
9099 * m/arm.h:
9100 * m/amdx86-64.h: Remove dead code and references to unused
9101 and compiler defined symbols.
9102
9103 * unexmips.c:
9104 * unexelf.c: Remove references to desupported systems.
9105
9106 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9107
9108 * m/powermac.h: Remove boilerplate comments.
9109 (NO_REMAP): Remove unused definition.
9110
9111 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9112 define them.
9113
91142008-07-10 Kenichi Handa <handa@m17n.org>
9115
9116 * xfont.c (xfont_open): Log the reason of failure.
9117
91182008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9119
9120 * fontset.c (fontset_get_font_group):
9121 * font.c (font_check_otf): Specify argument types.
9122
91232008-07-09 Kenichi Handa <handa@m17n.org>
9124
9125 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9126 non-ASCII char is found.
9127
9128 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9129 (reorder_font_vector): Change the arg preferred_family to font.
9130 Prefer the spec matching with font.
9131 (fontset_get_font_group): New function.
9132 (fontset_find_font): Change the format of an element of a realized
9133 fontset. Use fontset_get_font_group.
9134 (fontset_font): Try the current fontset, the default fontset, the
9135 fallbacks of the current fontset, and the fallbacks of the default
9136 fontset in this order.
9137 (face_for_char): Delete the shortcut to use the current font.
9138 (fontset_from_font): Don't set fonts for Latin in the fontset.
9139
9140 * font.h (font_make_object, font_match_p): Adjust prototypes.
9141
9142 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9143
9144 * font.c (font_make_object): New arg entity and pixelsize.
9145 (font_check_otf_features, font_check_otf): New functions.
9146 (font_match_p): Check :lang, :script, and :otf properties.
9147
9148 * xfont.c (xfont_open): Adjust it for the change of
9149 font_make_object.
9150 (xfont_text_extents): Fix initial setting of metrics.
9151
9152 * ftfont.c (struct ftfont_info): New member index, delete member
9153 fc_charset_idx. Make the member order compatible with struct
9154 xftfont_info.
9155 (fc_charset_table): Change charset names to registry names.
9156 (ftfont_pattern_entity): Delete the args registry and
9157 fc_charset_idx. Change the value of :font-entity property
9158 to (FONTNAME . INDEX). Always set :registry property to
9159 `iso10646-1'.
9160 (struct ftfont_cache_data): New struct.
9161 (ftfont_lookup_cache): New arg for_face.
9162 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9163 (ftfont_driver): Set the member otf_capability.
9164 (ftfont_get_charset): Adjust it for the change of
9165 fc_charset_table.
9166 (OTF_TAG_SYM): New macro.
9167 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9168 for the change of fc_charset_table.
9169 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9170 ftfont_pattern_entity. Add FC_INDEX to objset.
9171 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9172 and ftfont_pattern_entity.
9173 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9174 font_make_object, struct ftfont_info.
9175 (ftfont_has_char): Use ftfont_get_fc_charset.
9176 (ftfont_otf_features, ftfont_otf_capability): New functions.
9177 (ftfont_shape): Use ftfont_get_otf.
9178 (ftfont_text_extents): Fix initial setting of metrics.
9179
9180 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9181 member order compatible with struct ftfont_info.
9182 (xftfont_open): Add FC_CHARSET to the pattern. Set
9183 xftfont_info->ft_size. Don't unlock the face. Check BDF
9184 properties if appropriate.
9185 (xftfont_close): Unlock the face.
9186 (xftfont_anchor_point, xftfont_shape): Deleted.
9187 (syms_of_xftfont): Don't set members anchor_point and shape of
9188 xftfont_driver.
9189
9190 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9191 font_make_object.
9192
9193 * w32font.c (w32font_open): Adjust it for the change of
9194 font_make_object.
9195 (w32font_open_internal): Don't set properties of font_object here.
9196
91972008-07-08 Chong Yidong <cyd@stupidchicken.com>
9198
9199 * macfns.c (x_create_tip_frame):
9200 * w32fns.c (x_create_tip_frame):
9201 * xfns.c (x_create_tip_frame): Pass parameter argument to
9202 face-set-after-frame-default.
9203
9204 * xfaces.c (Finternal_merge_in_global_face): Save merged
9205 attributes for the default face back into the face vector.
9206
92072008-07-08 Andreas Schwab <schwab@suse.de>
9208
9209 * fontset.h: Declare fontset_from_font. Don't declare
9210 new_fontset_from_font and fontset_from_font_name.
9211 * xterm.c: Include "fontset.h".
9212 * Makefile.in (xterm.o): Update dependencies.
9213
92142008-07-08 Glenn Morris <rgm@gnu.org>
9215
9216 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9217 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9218
92192008-07-07 Chong Yidong <cyd@stupidchicken.com>
9220
9221 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9222 (x_set_frame_parameters): Don't bind it.
9223
92242008-07-07 Juanma Barranquero <lekktu@gmail.com>
9225
9226 * w32fns.c (map_w32_filename): Declare extern.
9227
92282008-07-07 Jason Rumney <jasonr@gnu.org>
9229
9230 * w32term.c (WS_EX_LAYERED): Define if not already.
9231
92322008-07-06 Chong Yidong <cyd@stupidchicken.com>
9233
9234 * xfaces.c (set_font_frame_param): Don't try to set the font
9235 parameter if it is still unspecified in the lface.
9236
92372008-07-05 Chong Yidong <cyd@stupidchicken.com>
9238
9239 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9240 face if it didn't already exist.
9241
9242 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9243
92442008-07-05 Andreas Schwab <schwab@suse.de>
9245
9246 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9247
92482008-07-05 Chong Yidong <cyd@stupidchicken.com>
9249
9250 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9251 word-wrapping.
9252 (IT_DISPLAYING_WHITESPACE): New macro.
9253 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9254 when word-wrapping. Simplify word-wrapping logic. Use correct
9255 pixel positions when saving copies of the iterator.
9256 (display_line): Use proper wrap point if the last character on a
9257 line was preceded by whitespace.
9258
92592008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9260
9261 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9262
92632008-07-04 Kenichi Handa <handa@m17n.org>
9264
9265 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9266
9267 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9268
92692008-07-02 Jason Rumney <jasonr@gnu.org>
9270
9271 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9272 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9273
9274 * xdisp.c (next_element_from_display_vector): Move assignment out
9275 of if statement.
9276
92772008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9278
9279 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9280
9281 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9282 (syms_of_fileio): Initialize and export them.
9283 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9284
9285 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9286 (Fsystem_move_file_to_trash): New function.
9287 (syms_of_w32fns): Export it to lisp.
9288
92892008-07-01 Jason Rumney <jasonr@gnu.org>
9290
9291 * w32font.c (w32font_text_extents): Don't count overhang as part
9292 of width.
9293
92942008-06-30 Miles Bader <miles@gnu.org>
9295
9296 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9297 Add `avoid_cursor_p' field.
9298
9299 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9300 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9301 (append_glyph, append_composite_glyph, produce_image_glyph)
9302 (append_stretch_glyph): Initialize avoid_cursor_p.
9303 (get_it_property): Rename from `get_line_height_property'.
9304 (x_produce_glyphs): Use get_it_property.
9305 (handle_line_prefix, push_display_prop): New functions.
9306 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9307 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9308 New variables.
9309 (syms_of_xdisp): Initialize them.
9310
93112008-06-30 Kenichi Handa <handa@m17n.org>
9312
9313 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9314 XftDefaultSubstitute (they are called in XftFontMatch).
9315 (xftfont_open): Fix args to ftfont_font_format.
9316
9317 * ftfont.c (fc_charset_table): New member lang.
9318 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9319 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9320 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9321 (ftfont_open): Fix args to ftfont_font_format.
9322 (ftfont_font_format): New arg filename.
9323
93242008-06-30 Chong Yidong <cyd@stupidchicken.com>
9325
9326 * xfaces.c (Finternal_merge_in_global_face): If default face was
9327 modified, realize it again. Update the font face attribute.
9328
93292008-06-29 Jason Rumney <jasonr@gnu.org>
9330
9331 * w32term.c (x_set_frame_alpha): Fix logic.
9332
93332008-06-29 Kenichi Handa <handa@m17n.org>
9334
9335 * fontset.c (Finternal_char_font): Return font-object instead of
9336 font-name.
9337
9338 * composite.c (get_composition_id): Fix the width calculation for TAB.
9339
93402008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9341
9342 * indent.c (Fvertical_motion): Properly handle float column arg.
9343
93442008-06-28 Jason Rumney <jasonr@gnu.org>
9345
9346 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9347 (pfnSetLayeredWindowAttributes): New function pointer.
9348 (w32_initialize): Initialize it when supported.
9349 (x_set_frame_alpha): New function.
9350
9351 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9352 (w32_frame_parm_handlers): Set alpha handler.
9353
9354 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9355
93562008-06-27 Jason Rumney <jasonr@gnu.org>
9357
9358 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9359 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9360 (w32_to_x_charset, x_to_w32_charset)
9361 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9362 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9363 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9364 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9365 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9366 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9367 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9368 (Qw32_charset_unicode): Remove.
9369 (syms_of_w32fns): Update for above changes.
9370
9371 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9372 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9373 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9374 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9375 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9376 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9377 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9378 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9379 (syms_of_w32font): Update for above changes.
9380
93812008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9382
9383 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9384 removed #if.
9385 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9386
93872008-06-26 Juanma Barranquero <lekktu@gmail.com>
9388 Eli Zaretskii <eliz@gnu.org>
9389
9390 * makefile.w32-in (LOCAL_FLAGS):
9391 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9392
9393 * sysdep.c (_spawnlp, _getpid):
9394 Declare with explicit _cdecl instead of _CRTAPI1.
9395
9396 * editfns.c (Fget_internal_run_time):
9397 Check for WINDOWSNT with #ifdef, not #if.
9398
93992008-06-26 Jason Rumney <jasonr@gnu.org>
9400
9401 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9402
9403 * w32term.c (x_draw_glyph_string_foreground)
9404 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9405 Use FONT_HANDLE macro.
9406 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9407
9408 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9409 (uniscribe_encode_char): Use FONT_HANDLE macro.
9410
9411 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9412 (w32font_text_extents): Use precast w32_font.
9413 (w32font_close): Free cached metrics.
9414 (w32font_open_internal): Allocate space for name on stack.
9415
94162008-06-26 Chong Yidong <cyd@stupidchicken.com>
9417
9418 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9419
94202008-06-26 Jason Rumney <jasonr@gnu.org>
9421
9422 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9423 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9424
94252008-06-26 Juanma Barranquero <lekktu@gmail.com>
9426
9427 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9428
94292008-06-26 Jason Rumney <jasonr@gnu.org>
9430
9431 * w32bdf.c, w32bdf.h: Remove obsolete files.
9432
9433 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9434
9435 * w32gui.h: Don't include w32bdf.h.
9436 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9437 Remove obsolete font support.
9438
9439 * w32font.h (struct w32font_info): Remove compat_w32_font.
9440 Add hfont member.
9441 (FONT_COMPAT): Remove obsolete macro.
9442
9443 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9444 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9445 (w32font_open_internal): Remove compat code. Set new hfont member.
9446 (Fx_select_font): Use new hfont member.
9447
9448 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9449 (uniscribe_encode_char): Use new hfont member.
9450
9451 * w32term.c (x_draw_glyph_string_foreground)
9452 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9453 (x_draw_glyph_string): Use metrics in w32font_info.
9454
94552008-06-26 Kenichi Handa <handa@m17n.org>
9456
9457 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9458
94592008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9460
9461 * unexnext.c:
9462 * m/ews4800.h:
9463 * m/hp9000s300.h:
9464 * m/ibm370aix.h:
9465 * m/mips-siemens.h:
9466 * m/ncr386.h:
9467 * m/next.h:
9468 * m/pmax.h:
9469 * m/powerpcle.h:
9470 * m/tandem-s2.h:
9471 * s/386bsd.h:
9472 * s/bsd386.h:
9473 * s/bsd4-1.h:
9474 * s/bsd4-2.h:
9475 * s/bsdos2-1.h:
9476 * s/bsdos2.h:
9477 * s/bsdos3.h:
9478 * s/bsdos4.h:
9479 * s/nextstep.h:
9480 * s/ultrix4-3.h:
9481 * s/usg5-0.h:
9482 * s/usg5-2-2.h:
9483 * s/usg5-2.h:
9484 * s/usg5-4-3.h:
9485 * s/ux4800.h:
9486 * s/uxpds.h:
9487 * s/uxpv.h: Remove support for obsolete systems.
9488 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9489 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9490 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9491 Remove, insert contents in s/aix4-2.h.
9492 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9493 * s/bsd4-3.h: Rename to ...
9494 * s/bsd-common.h: ... this.
9495 * data.c:
9496 * doc.c:
9497 * ecrt0.c:
9498 * emacs.c:
9499 * fileio.c:
9500 * floatfns.c:
9501 * keyboard.c:
9502 * mem-limits.h:
9503 * print.c:
9504 * process.c:
9505 * sysdep.c:
9506 * syssignal.h:
9507 * systty.h:
9508 * syswait.h:
9509 * term.c:
9510 * unexec.c:
9511 * unexelf.c:
9512 * unexhp9k800.c:
9513 * m/hp800.h:
9514 * m/ibmrs6000.h:
9515 * m/mips.h:
9516 * m/vax.h:
9517 * s/darwin.h:
9518 * s/freebsd.h:
9519 * s/gnu.h:
9520 * s/ms-w32.h:
9521 * s/msdos.h:
9522 * s/netbsd.h:
9523 * s/template.h: Remove references to obsolete variables.
9524
9525 * Makefile.in: Add dependencies for all unexec files.
9526 (admindir): Remove unused variable.
9527 (UNEXEC_SRC): Remove references.
9528
95292008-06-25 Chong Yidong <cyd@stupidchicken.com>
9530
9531 * xfns.c (x_default_font_parameter): If Xft is available, first
9532 try Monospace-12 for the default font.
9533
95342008-06-25 Jason Rumney <jasonr@gnu.org>
9535
9536 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9537
95382008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9539
9540 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9541
9542 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9543
95442008-06-25 Juanma Barranquero <lekktu@gmail.com>
9545
9546 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9547 <scroll-conservatively>: Fix typo in docstring.
9548
9549 * xselect.c (Fx_send_client_event): Doc fix.
9550
95512008-06-25 Kenichi Handa <handa@m17n.org>
9552
9553 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9554
9555 * font.c (font_parse_fcname): Remove unused variables.
9556 (font_sort_entites): Delete the arg SPEC. Caller changed.
9557 Fix for the case of ! best_only.
9558 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9559
9560 * lisp.h (Fstring_to_unibyte): EXFUN it.
9561
9562 * character.h (str_to_unibyte): Extern it.
9563
9564 * character.c (str_to_unibyte): New function.
9565
9566 * fns.c (Fstring_to_unibyte): New function.
9567 (syms_of_fns): Defsubr it.
9568
95692008-06-24 Kenichi Handa <handa@m17n.org>
9570
9571 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9572 DPI too.
9573 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9574
95752008-06-24 Andreas Schwab <schwab@suse.de>
9576
9577 * Makefile.in (${lispsource}loaddefs.el): Rename from
9578 ../lisp/loaddefs.el.
9579 (bootstrap-clean): Do what distclean does but don't remove
9580 Makefile.
9581 (distclean): Depend on bootstrap-clean and remove Makefile.
9582
95832008-06-24 Chong Yidong <cyd@stupidchicken.com>
9584
9585 * buffer.h (struct buffer): New member word_wrap.
9586
9587 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9588 word-wrap.
9589 (init_buffer_once): Initialize them.
9590
9591 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9592 line_wrap enum possessing three possible values.
9593
9594 * termopts.h: Replace truncate_partial_width_windows with
9595 Vtruncate_partial_width_windows.
9596
9597 * dispnew.c (direct_output_for_insert): Avoid direct output when
9598 inserting a space with word wrap on.
9599
9600 * indent.c (compute_motion): Obey integer values of
9601 truncate-partial-width-windows.
9602
9603 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9604 replacing truncate_partial_width_windows.
9605 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9606 truncate only if the window width is below that integer.
9607 (start_display, resize_mini_window, produce_stretch_glyph)
9608 (display_string, move_it_in_display_line_to): Use line_wrap.
9609 (back_to_previous_visible_line_start, reseat_1): Reset
9610 string_from_display_prop_p.
9611 (display_line): Extend default face to end of line when wrapping.
9612
96132008-06-24 Kim F. Storm <storm@cua.dk>
9614
9615 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9616 to wrap continued lines at word boundaries.
9617
96182008-06-24 Jason Rumney <jasonr@gnu.org>
9619
9620 * font.c (Ffont_face_attributes): Multiply pixel size before point
9621 conversion to avoid multiplying rounding error.
9622
96232008-06-23 Jason Rumney <jasonr@gnu.org>
9624
9625 * w32term.c (x_draw_glyph_string_background)
9626 (x_draw_glyph_string): Remove old bdf font code.
9627
9628 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9629
96302008-06-22 Kenichi Handa <handa@m17n.org>
9631
9632 * font.c (font_find_for_lface): Try the adstyle specified in
9633 the property of LFACE_FONT of LFACE (if any).
9634
96352008-06-21 Seiji Zenitani <zenitani@mac.com>
9636 Ryo Yoshitake <ryo@shiftmode.net>
9637
9638 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9639
96402008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9641
9642 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9643 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9644 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9645 (witness-emacs): Remove.
9646 (lisp, shortlisp): Move loaddefs.el earlier.
9647 (mostlyclean): Forget about witness-emacs.
9648
96492008-06-22 Glenn Morris <rgm@gnu.org>
9650
9651 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9652 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9653
96542008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9655
9656 * Makefile.in (PRECOMP): Remove.
9657 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9658 (witness-emacs): Run `compile-first'.
9659 (.el.elc): Use the new compile-onefile target.
9660
96612008-06-21 Kenichi Handa <handa@m17n.org>
9662
9663 * xftfont.c (xftfont_open): Handle QCembolden only when
9664 FC_EMBOLDEN is defined.
9665
96662008-06-21 Andreas Schwab <schwab@suse.de>
9667
9668 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9669 (.el.elc): Likewise.
9670
96712008-06-21 Miles Bader <miles@gnu.org>
9672
9673 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9674 build dir, not the lisp source dir.
9675
96762008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9677
9678 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9679 (bootstrapclean): Remove.
9680 (.el.elc): New rule.
9681 (PRECOMP): New var.
9682 (../lisp/subdirs.el): Remove.
9683 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9684 (witness-emacs): New target.
9685 (mostlyclean): Remove witness-emacs as well.
9686 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9687 Add witness-emacs dependency.
9688
96892008-06-20 Chong Yidong <cyd@stupidchicken.com>
9690
9691 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9692 defined by the font.
9693
96942008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9695
9696 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9697 (bootstrap-clean): New target that keeps TAGS around.
9698 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9699 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9700
97012008-06-20 Jason Rumney <jasonr@gnu.org>
9702
9703 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9704 Remove obsolete font code.
9705
9706 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9707 to determine language support.
9708
97092008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9710
9711 * sysdep.c (cfsetspeed): New fun extracted from the code.
9712 (cfmakeraw): Move before first use.
9713
97142008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9715
9716 * sysdep.c (cfmakeraw): Provide fallback implementation.
9717 (serial_configure): Provide fallback implementation of cfsetspeed.
9718
97192008-06-20 Kenichi Handa <handa@m17n.org>
9720
9721 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9722 the pattern.
9723
9724 * fontset.c (fontset_from_font): Copy font_spec before changing
9725 the elements.
9726
9727 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9728
97292008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9730
9731 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9732 for explicit `font' parameters.
9733
9734 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9735
97362008-06-19 Kenichi Handa <handa@m17n.org>
9737
9738 * frame.c: Include <ctype.h>.
9739 (x_set_font_backend): Allow spacing characters in the X resource
9740 for FontBackend.
9741
97422008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9743
9744 * w32fns.c, xfns.c (Qfont_param): New var.
9745 (syms_of_w32fns): Initialize it.
9746 (x_default_font_parameter): Record explicit `font' into
9747 `font-parameter'.
9748
97492008-06-18 Kenichi Handa <handa@m17n.org>
9750
9751 * font.c (font_parse_xlfd): Fix previous change.
9752 (font_parse_fcname): Don't use :fc-unknown-spec.
9753 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9754 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9755 (font_add_log): Prepend the driver name to the resulting fonts.
9756
9757 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9758 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9759 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9760
9761 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9762 (QCembolden): New variables.
9763 (syms_of_xftfont): DEFSYM them.
9764 (xftfont_open): Call XftFontMatch. Don't trust the result of
9765 XftTextExtents8 if the pixel_size is less than 5.
9766
97672008-06-18 Andreas Schwab <schwab@suse.de>
9768
9769 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9770 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9771
97722008-06-18 Jason Rumney <jasonr@gnu.org>
9773
9774 * w32font.c (w32font_list, w32font_match): Add logging.
9775
9776 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9777
97782008-06-17 Chong Yidong <cyd@stupidchicken.com>
9779
9780 * font.c (font_parse_fcname): Store divider characters for
9781 unknown-spec list. For known key symbols, intern using correct
9782 symbol name.
9783
97842008-06-17 Kenichi Handa <handa@m17n.org>
9785
9786 * xfaces.c (realize_default_face): If the frame is not on window
9787 system, set the fontset of face to nil.
9788
97892008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9790
9791 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9792
97932008-06-16 Juanma Barranquero <lekktu@gmail.com>
9794
9795 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9796 (build_font_name_from_vector): Delete externs.
9797
9798 * xfaces.c (struct font_name): Don't declare.
9799
98002008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9801
9802 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9803
98042008-06-16 Chong Yidong <cyd@stupidchicken.com>
9805
9806 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9807
98082008-06-16 Juanma Barranquero <lekktu@gmail.com>
9809
9810 * font.c (Ffont_spec): Fix usage in docstring.
9811 (Ffont_face_attributes): Doc fix.
9812
98132008-06-16 Andreas Schwab <schwab@suse.de>
9814
9815 * font.c (Ffont_face_attributes): Fix definition.
9816
98172008-06-16 Jason Rumney <jasonr@gnu.org>
9818
9819 * font.h (font_style_symbolic_from_value): Remove.
9820
9821 * font.c (font_style_symbolic_from_value): Remove.
9822 (font_style_symbolic): Revert to pre 2008-06-13 version.
9823
9824 * w32font.c (w32_to_fc_weight): New function.
9825 (w32font_full_name, logfont_to_fcname): Use it.
9826
98272008-06-16 Kenichi Handa <handa@m17n.org>
9828
9829 * font.c (font_check_object): Delete it.
9830 (font_clear_cache): Check if a font-object is alive.
9831 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9832 font-object to nil.
9833 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9834 (font_at): Don't call font_check_object.
9835 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9836
98372008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9838
9839 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9840
98412008-06-16 Chong Yidong <cyd@stupidchicken.com>
9842
9843 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9844
98452008-06-15 Chong Yidong <cyd@stupidchicken.com>
9846
9847 * font.c (font_parse_fcname): Only one decimal point.
9848 (font_unparse_fcname): Handle data in family and foundry indices
9849 as symbols, not strings.
9850 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9851
9852 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9853
9854 * font.h (font_unparse_gtkname): Add prototype.
9855
98562008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9857
9858 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9859
98602008-06-15 Andreas Schwab <schwab@suse.de>
9861
9862 * font.c (font_update_drivers): Fix crash when no drivers match.
9863
98642008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9865
9866 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9867 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9868
98692008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9870
9871 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9872
98732008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9874
9875 * process.c (Fserial_process_configure, Fprocess_send_eof):
9876 Use EQ to compare Lisp_Objects.
9877
98782008-06-13 Jason Rumney <jasonr@gnu.org>
9879
9880 * w32fns.c (Fw32_select_font): Remove old font API function.
9881
9882 * w32font.c (logfont_to_fcname): New function.
9883 (Fx_select_font): New font dialog function compatible with
9884 GTK/fontconfig version.
9885
9886 * font.c (font_style_symbolic_from_value): New function.
9887 (font_style_symbolic): Use it.
9888
9889 * font.h (font_style_symbolic_from_value): Declare new function.
9890
98912008-06-13 Juanma Barranquero <lekktu@gmail.com>
9892
9893 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9894 <font-width-table>: Fix typos in docstrings.
9895
98962008-06-13 Daniel Engeler <engeler@gmail.com>
9897
9898 These changes add serial port access.
9899 * process.c: Add HAVE_SERIAL.
9900 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9901 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9902 (list_processes_1, select_wrapper, Fstop_process)
9903 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9904 (status_notify): Modify to handle serial processes.
9905 [HAVE_SERIAL] (Fserial_process_configure)
9906 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9907 New functions.
9908 * process.h (struct Lisp_Process): Add `type'.
9909 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9910 New functions.
9911 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9912 serial ports.
b71ac3dd 9913 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9914 * w32.h: Add FILE_SERIAL.
9915 (struct _child_process): Add ovl_read, ovl_write.
9916
99172008-06-13 Kenichi Handa <handa@m17n.org>
9918
9919 * dispextern.h (enum lface_attribute_index): New member
9920 LFACE_FOUNDRY_INDEX.
9921
9922 * font.c (font_score): Delete arg alternate_families. Check only
9923 weight, slant, width, and size. Ignore the difference of alias
9924 style symbols.
9925 (font_sort_entites): Adjust for the above change. Reflect the
9926 order of font-driver to scores.
9927 (font_list_entities): Don't check alternate_familes here.
9928 (font_clear_prop): Handle foundry.
9929 (font_update_lface): Don't parse "foundry-family" form here.
9930 Handle FONT_FOUNDRY_INDEX.
9931 (font_find_for_lface): Likewise. Handle alternate families here.
9932 If registry is nil, try iso8859-1 and ascii-0.
9933 (font_open_for_lface): Pay attention to size in ENTITY.
9934 (font_open_by_name): Simplify by calling font_load_for_lface.
9935 (free_font_driver_list): Delete it.
9936 (font_update_drivers): Preserve the order of backends.
9937 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9938 of font_score and font_sort_entites.
9939 (font_update_sort_order): Likewise.
9940
9941 * xfaces.c (LFACE_FOUNDRY): New macro.
9942 (check_lface_attrs): Check foundry.
9943 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9944 (merge_face_vectors): Check foundry.
9945 (merge_face_ref): Likewise.
9946 (Finternal_set_lisp_face_attribute): Likewise.
9947 (x_update_menu_appearance): Likewise.
9948 (Finternal_get_lisp_face_attribute): Likewise.
9949 (lface_hash): Likewise.
9950 (lface_same_font_attributes_p): Likewise.
9951 (x_supports_face_attributes_p): Likewise.
9952 (tty_supports_face_attributes_p): Likewise.
9953 (Finternal_set_alternative_font_family_alist): Intern strings.
9954 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9955 (realize_default_face): Set LFACE_FOUNDRY (lface).
9956
9957 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9958 font-driver at first.
9959
9960 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9961
99622008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9963
9964 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9965
99662008-06-12 Jim Meyering <meyering@redhat.com>
9967
9968 Make unexec_free handle NULL the same way free does.
9969 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9970
99712008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9972
9973 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9974 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9975 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9976 (WEAK_ALIAS): Simplify.
9977 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9978 when searching a unibyte buffer.
9979
99802008-06-12 Chong Yidong <cyd@stupidchicken.com>
9981
9982 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9983
99842008-06-12 Juanma Barranquero <lekktu@gmail.com>
9985
9986 * w32font.c: Include ctype.h.
9987
99882008-06-11 Jason Rumney <jasonr@gnu.org>
9989
9990 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9991 misreported as space.
9992 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9993 as aliases for registry iso10646-1.
9994
99952008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9996
9997 * buffer.c (clone_per_buffer_values): Skip `name'.
9998
99992008-06-11 Chong Yidong <cyd@stupidchicken.com>
10000
10001 * font.c (font_parse_fcname): Fix last change; accept decimal
10002 points in font size.
10003
100042008-06-10 Jason Rumney <jasonr@gnu.org>
10005
10006 * w32uniscribe.c (add_opentype_font_name_to_list):
10007 Skip non unicode fonts.
10008
100092008-06-10 Chong Yidong <cyd@stupidchicken.com>
10010
10011 * xfns.c (Fx_font_dialog): New function.
10012
10013 * gtkutil.c (xg_dialog_response_cb): Rename from
10014 xg_file_response_callback.
10015 (pop_down_dialog): Rename from pop_down_file_dialog.
10016 (xg_get_file_name): Callers changed.
10017 (xg_get_font_name): New function.
10018
10019 * gtkutil.h (xg_get_font_name): Insert prototype.
10020
100212008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10022
10023 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10024 x_underline_minimum_display_offset.
10025 (syms_of_xdisp): Declare it here rather than in xterm.c.
10026 * dispextern.h (underline_minimum_offset): Declare it.
10027 * w32term.c (x_draw_glyph_string): Use it.
10028 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10029 (syms_of_xterm): Don't declare it any more.
10030 (x_draw_glyph_string): Adjust to the new name.
10031
8719abec 100322008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10033
10034 * xterm.c (x_underline_minimum_display_offset): New var.
10035 (x_draw_glyph_string): Use it.
10036 (syms_of_xterm): Declare it.
10037
100382008-06-10 Chong Yidong <cyd@stupidchicken.com>
10039
10040 * font.c (font_parse_fcname): Accept GTK-style font names too.
10041
100422008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10043
10044 * dired.c (file_name_completion): Don't return t if the match is exact
10045 but with different capitalization.
10046 * minibuf.c (Ftry_completion): Simplify.
10047
10048 * window.c (Vwindow_point_insertion_type): New var.
10049 (set_window_buffer): Use it.
10050 (syms_of_window): Init and export it to Lisp.
10051
100522008-06-10 Kenichi Handa <handa@m17n.org>
10053
10054 * font.h (font_intern_prop): Prototype adjusted.
10055
10056 * font.c (font_intern_prop): New arg force_symbol.
10057 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10058 Adjust for the change of font_intern_prop.
10059
10060 * ftfont.c (ftfont_pattern_entity):
10061 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10062 (w32_registry):
10063 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10064 the change of font_intern_prop.
10065
100662008-06-09 Juanma Barranquero <lekktu@gmail.com>
10067
10068 * w32menu.c (digest_single_submenu): Declare extern.
10069
100702008-06-09 Jason Rumney <jasonr@gnu.org>
10071
10072 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10073
10074 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10075 (parse_single_submenu): Remove.
10076 (digest_single_submenu): Remove.
10077 (syms_of_w32menu): Don't initialise variables that have moved
10078 to menu.c.
10079 (set_frame_menubar): Sync with version in xmenu.c.
10080 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10081
10082 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10083 Make static again.
10084
100852008-06-09 Jason Rumney <jasonr@gnu.org>
10086
10087 Changes to w32 files related to the move of common menu code
10088 to menu.c on 2008-06-08 by Chong Yidong.
10089
10090 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10091 defs to w32gui.h.
10092 (single_keymap_panes, push_menu_item, push_menu_pane):
10093 Make globally visible.
10094
10095 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10096 (local_free, malloc_widget_value, free_widget_value)
10097 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10098 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10099 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10100 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10101 (menu_items, menu_items_allocated, menu_items_used)
10102 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10103 (init_menu_items, finish_menu_items, discard_menu_items)
10104 (grow_menu_items, push_submenu_start, push_submenu_end)
10105 (push_left_right_boundary, push_menu_pane, push_menu_item)
10106 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10107 (free_menubar_widget_tree_value, parse_single_submenu)
10108 (update_submenu_strings): Remove functions.
10109 (xmalloc_widget_value): Remove and declare extern.
10110
10111 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10112 (OBJ1): Build it.
10113
10114 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10115 (local_heap, local_alloc, local_free, malloc_widget_value)
10116 (free_widget_value): Define here.
10117
101182008-06-09 Kenichi Handa <handa@m17n.org>
10119
10120 * font.h (Qascii_0): Extern it.
10121
10122 * font.c (Qascii_0): New variable.
10123 (syms_of_font): DEFSYM it.
10124 (font_open_by_name): If the registry "iso8859-1" fails, try also
10125 "ascii-0".
10126
10127 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10128
101292008-06-08 Kenichi Handa <handa@m17n.org>
10130
10131 * .gdbinit (xfont): New command.
10132
101332008-06-08 Andreas Schwab <schwab@suse.de>
10134
10135 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10136 * Makefile.in (menu.o): Update dependencies.
10137
10138 * Makefile.in (obj): Always add menu.o.
10139 * emacs.c (main): Always call syms_of_menu.
10140 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10141
101422008-06-08 Chong Yidong <cyd@stupidchicken.com>
10143
10144 * Makefile.in: Compile menu.c.
10145
10146 * lisp.h: Declare syms_of_menu.
10147
10148 * emacs.c (main): Call syms_of_menu.
10149
10150 * keyboard.h: Relocate platform-independent menu definitions from
10151 xmenu.c.
10152
10153 * menu.c: New file. Relocate platform-independent menu
10154 definitions from xmenu.c. Suggested by Adrian Robert.
10155
10156 * xmenu.c: Remove platform-independent menu definitions.
10157 (menu_items menu_items_inuse, menu_items_allocated)
10158 (menu_items_used, menu_items_n_panes)
10159 (menu_items_submenu_depth): Move to keyboard.h.
10160 (init_menu_items, finish_menu_items, unuse_menu_items)
10161 (discard_menu_items, restore_menu_items, save_menu_items)
10162 (grow_menu_items, push_submenu_start, push_submenu_end)
10163 (push_left_right_boundary, push_menu_pane, push_menu_item)
10164 (keymap_panes, single_keymap_panes, single_menu_item)
10165 (list_of_panes, list_of_items, find_and_call_menu_selection)
10166 (xmalloc_widget_value, free_menubar_widget_value_tree)
10167 (parse_single_submenu, digest_single_submenu)
10168 (update_submenu_strings): Move to menu.c.
10169
101702008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10171
10172 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10173
101742008-06-06 Miles Bader <miles@gnu.org>
10175
10176 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10177 face, not frame default.
10178
101792008-06-05 Martin Rudalics <rudalics@gmx.at>
10180
10181 * window.c (pop_up_windows, pop_up_frames)
10182 (display_buffer_reuse_frames, Vpop_up_frame_function)
10183 (Vdisplay_buffer_function, Veven_window_heights)
10184 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10185 (Vspecial_display_function, Vsame_window_buffer_names)
10186 (Vsame_window_regexps, split_height_threshold)
10187 (Vsplit_window_preferred_function): Move those vars to window.el.
10188 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10189 (Fdisplay_buffer): Move those functions to window.el.
10190 (syms_of_window): Remove corresponding declarations.
10191 (display_buffer): New function.
10192 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10193 * dispnew.c (Flast_nonminibuf_frame): New function.
10194 * buffer.c (Fpop_to_buffer): Move to window.el.
10195
101962008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10197
10198 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10199
102002008-06-05 Kenichi Handa <handa@m17n.org>
10201
10202 * coding.c (detect_coding): Fix previous change.
10203 (detect_coding_system): Likewise.
10204
102052008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10206
10207 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10208
10209 * keymap.c (Vminibuffer_local_filename_must_match_map):
10210 Rename from Vminibuffer_local_must_match_filename_map.
10211 (syms_of_keymap):
10212 * minibuf.c (Fcompleting_read): Adjust accordingly.
10213 * commands.h: Rename declaration as well.
10214
102152008-06-05 Kenichi Handa <handa@m17n.org>
10216
10217 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10218 family name.
10219 (Ffont_put): Likewise.
10220
10221 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10222 current font-spec.
10223
10224 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10225 is unspecified.
10226
10227 * xfaces.c (realize_x_face): If the font-related face attributes
10228 are the same as those of default face, realize a new fontset from
10229 default->fontset.
10230 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10231
102322008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10233
10234 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10235 (move_it_in_display_line): New wrapper.
10236
10237 * window.c (window_scroll_pixel_based_preserve_x)
10238 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10239 (window_scroll_pixel_based, window_scroll_line_based):
10240 Use them to preserve column positions.
10241 (syms_of_window): Initialize them.
10242
10243 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10244 (HPOS . VPOS) pair.
10245
10246 * dispextern.h (move_it_in_display_line): Declare.
10247
102482008-06-05 Juanma Barranquero <lekktu@gmail.com>
10249
10250 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10251 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10252 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10253
102542008-06-04 Juanma Barranquero <lekktu@gmail.com>
10255
10256 * window.c (Fset_window_parameter): Doc fix.
10257 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10258
102592008-06-04 Joakim Verona <joakim@verona.se>
10260
10261 * window.h (struct window): Add new member window_parameters.
10262
10263 * window.c (Fwindow_parameters, Fwindow_parameter)
10264 (Fset_window_parameter): New defuns.
10265 (syms_of_window): Defsubr the new defuns.
10266 (make_window): Initialize window_parameters to nil.
10267
102682008-06-04 John Paul Wallington <jpw@pobox.com>
10269
10270 * eval.c (Fdefmacro): Doc fix.
10271
102722008-06-04 Kenichi Handa <handa@m17n.org>
10273
10274 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10275 Be sure to call setup_coding_system when we find a proper coding system.
10276 (detect_coding_system): Fix handling of coding->head_ascii.
10277
102782008-06-03 Andreas Schwab <schwab@suse.de>
10279
10280 * font.c (font_prop_validate_spacing): Fix last change.
10281
102822008-06-03 Kenichi Handa <handa@m17n.org>
10283
10284 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10285 (font_parse_fcname): Fix handling of unknown key.
10286
10287 * xfont.c (xfont_list): Try an alias.
10288
10289 * charset.c (char_charset): Return NULL if the arg charset_list is
10290 specified and C doesn't belong to any of them.
10291
102922008-06-02 Chip Coldwell <coldwell@redhat.com>
10293
10294 * font.c (font_pixel_size): Don't take cdr of an integer.
10295
102962008-06-02 Jim Meyering <meyering@redhat.com>
10297
10298 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10299 * alloc.c (xfree): Return right away for a NULL arg.
10300 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10301 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10302 * mac.c (create_apple_event_from_event_ref): Likewise.
10303 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10304 Likewise.
10305 * doprnt.c (doprnt1): Likewise.
10306 * frame.c (frame): Likewise.
10307 * keyboard.c (wipe_kboard): Likewise.
10308 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10309 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10310 * term.c (tty_default_color_capabilities, maybe_fatal)
10311 (delete_tty): Likewise.
10312 * w16select.c (string): Likewise.
10313 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10314 * w32bdf.c (w32_free_bdf_font): Likewise.
10315 * w32fns.c (w32_unload_font): Likewise.
10316 * w32font.c (w32font_close): Likewise.
10317 * window.c (size_window): Likewise.
10318 * xselect.c (receive_incremental_selection): Likewise.
10319 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10320 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10321 * w32.c (stat): Likewise.
10322
10323 Remove useless if-before-free tests.
10324 * editfns.c (Fset_time_zone_rule): Likewise.
10325 * lread.c (nosuffix): Likewise.
10326 * ralloc.c (get_bloc): Likewise.
10327 * regex.c (reg_free): Likewise.
10328 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10329 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10330 * xsmfns.c (smc_save_yourself_CB): Likewise.
10331
103322008-06-02 Kenichi Handa <handa@m17n.org>
10333
10334 * font.c (font_find_for_lface): Handle float font size.
10335 (font_open_for_lface): Likewise.
10336
10337 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10338 comparing the properties.
10339
103402008-06-01 Jason Rumney <jasonr@gnu.org>
10341
10342 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10343 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10344 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10345 Don't add empty script list.
10346 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10347
103482008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10349
10350 * Makefile.in (dot, dotdot): Remove, update users.
10351 ".." has been used elsewhere in the file for a long time.
10352 (LIBXT_STATIC): Remove conditional based on unused variable.
10353
103542008-06-01 Miles Bader <miles@gnu.org>
10355
10356 * xfaces.c (Vface_remapping_alist): New variable.
10357 (syms_of_xfaces): Initialize it.
10358 (enum named_merge_point_kind): New type.
10359 (struct named_merge_point): Add `named_merge_point_kind' field.
10360 (push_named_merge_point): Make cycle detection respect different
10361 named-merge-point kinds.
10362 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10363 Remove face-name alias resolution.
10364 (lface_from_face_name): New definition using
10365 `lface_from_face_name_no_resolve'.
10366 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10367 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10368 (get_lface_attributes): New definition that layers face-remapping on
10369 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10370 (lookup_basic_face): New function.
10371 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10372 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10373 `get_lface_attributes'.
10374 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10375 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10376 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10377
10378 * xdisp.c (init_iterator): Pass base_face_id through
10379 `lookup_basic_face' when we actually use it as a face-id.
10380 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10381 DEFAULT_FACE_ID.
10382
10383 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10384 lookup the initial face-id.
10385
10386 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10387
103882008-06-01 Juanma Barranquero <lekktu@gmail.com>
10389
10390 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10391 (Fremove_text_properties): Fix typos in docstrings.
10392
103932008-05-31 Kenichi Handa <handa@m17n.org>
10394
10395 * font.c (font_list_entities): Fix the car part of data to be
10396 stored in the cache.
10397
10398 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10399
104002008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10401
10402 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10403 Add a `test' argument so another predicate than `equal' can be used.
10404 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10405 (map_char_table): Remove unused vars `c' and `i'.
10406 * lisp.h (Foptimize_char_table): Adjust declaration.
10407 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10408
104092008-05-30 Kenichi Handa <handa@m17n.org>
10410
10411 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10412 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10413 defined.
10414
104152008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10416
10417 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10418 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10419 frame-local settings for the same variable.
10420
104212008-05-30 Kenichi Handa <handa@m17n.org>
10422
10423 * fontset.c (Ffont_info): Move to font.c.
10424 (syms_of_fontset): Delete defsubr of Sfont_info.
10425
10426 * font.c (font_style_to_value, font_score): Delete casting of the
10427 args to xstcasecmp.
10428 (register_font_driver): Increment num_font_drivers only when
10429 registering the driver globally.
10430 (Ffont_info): Move from fontset.c. Handle a font object too.
10431 (syms_of_font): Defsubr Sfont_info.
10432
104332008-05-29 Kenichi Handa <handa@m17n.org>
10434
10435 * coding.h (enum define_coding_utf8_arg_index): New enum.
10436 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10437 coding_attr_utf_bom.
10438 (enum utf_bom_type): Rename from utf_16_bom_type.
10439 (struct utf_16_spec): Adjust for the above change.
10440 (struct coding_system): Add utf_8_bom in `spec' union.
10441
10442 * coding.c (CODING_UTF_8_BOM): New macro.
10443 (enum coding_category): Delete coding_category_utf_8, add
10444 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10445 coding_category_utf_8_sig.
10446 (CATEGORY_MASK_UTF_8): Delete it.
10447 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10448 (CATEGORY_MASK_UTF_8_SIG): New macros.
10449 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10450 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10451 CATEGORY_MASK_UTF_8_SIG.
10452 (CATEGORY_MASK_UTF_8): New macro.
10453 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10454 (detect_coding_utf_8): Check BOM.
10455 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10456 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10457 (encode_coding_utf_16): Likewise.
10458 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10459 (detect_coding, detect_coding_system): Handle utf-8-auto.
10460 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10461 (syms_of_coding): Fix setting up of Vcoding_category_table.
10462
104632008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10464
10465 * process.c (Faccept_process_output): If `millisec' is non-nil,
10466 `seconds' default to 0.
10467 (wait_reading_process_output): Also return non-nil if we read output
10468 from a non-running process.
10469
104702008-05-29 Jason Rumney <jasonr@gnu.org>
10471
10472 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10473 `raster' specified.
10474 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10475 in the uniscribe backend, but disallow any font that has no
10476 unicode subrange support.
10477
104782008-05-29 Juanma Barranquero <lekktu@gmail.com>
10479
10480 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10481 Fix typos in docstrings.
10482
104832008-05-29 Kenichi Handa <handa@m17n.org>
10484
10485 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10486 (Fx_family_fonts): Set frame correctly.
10487
104882008-05-28 Jason Rumney <jasonr@gnu.org>
10489
10490 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10491
104922008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10493
10494 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10495 calling build_annotations.
10496
104972008-05-28 Juanma Barranquero <lekktu@gmail.com>
10498
10499 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10500 (Fencode_coding_string):
10501 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10502 <latin-extra-code-table>: Fix typos in docstrings.
10503 (syms_of_coding) <coding-system-alist>: Doc fix.
10504 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10505
105062008-05-28 Kenichi Handa <handa@m17n.org>
10507
10508 * fontset.c (Ffont_info): Don't call font_close_object.
10509
10510 * font.c (font_parse_family_registry): Use Ffont_put to validate
10511 foundry and family.
10512 (font_delete_unmatched): Don't check spacing.
10513 (font_list_entities): Add spacing to the spec to list fonts.
10514
10515 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10516 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10517
10518 * coding.c (encode_coding_raw_text): Fix previous change.
10519 (encode_coding_object): When the dst_object is a buffer and is
10520 different from src_object, move gap to PT.
10521
105222008-05-27 Chong Yidong <cyd@stupidchicken.com>
10523
10524 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10525
105262008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10527
10528 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10529 all branches. Compute it differently.
10530
10531 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10532
105332008-05-27 Juanma Barranquero <lekktu@gmail.com>
10534
10535 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10536 into "else if () ... else ...".
10537
105382008-05-27 Jason Rumney <jasonr@gnu.org>
10539
10540 * w32font.c (w32font_open_internal): Determine if glyph indices
10541 are likely to work here.
10542
105432008-05-27 Chong Yidong <cyd@stupidchicken.com>
10544
10545 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10546 draw overlap glyphs with appropriate highlighting.
10547
105482008-05-27 Kenichi Handa <handa@m17n.org>
10549
10550 * xfont.c (xfont_open): Fix calculation of font->average_width.
10551
105522008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10553
10554 * casefiddle.c (casify_object): Try to guess better whether the
10555 argument is a byte or a char.
10556
105572008-05-26 Andreas Schwab <schwab@suse.de>
10558
10559 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10560 Always send multiples of format size.
10561
10562 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10563
105642008-05-26 Jason Rumney <jasonr@gnu.org>
10565
10566 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10567 (compute_metrics): Don't set failure if we just cleared the cache.
10568 (w32_weight_table): Remove unused variable.
10569 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10570 backwards compatibility.
10571
105722008-05-25 Kenichi Handa <handa@m17n.org>
10573
10574 * w32term.c (x_draw_glyph_string):
10575 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10576
10577 * xfaces.c: Delete unused function prototypes.
10578 (xstrlwr, font_frame): Delete them.
10579 (clear_face_cache): Delete unused variable.
10580
10581 * xftfont.c (xftfont_open): Delete unused variable.
10582 If underline_thickness is not 1, adjust underline_position.
10583
10584 * ftxfont.c (ftxfont_open): Delete unused variable.
10585
10586 * fontset.c (face_for_char): Optimize for the case of no charset
10587 property.
10588
10589 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10590 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10591 (otf_open, font_otf_capability, generate_otf_features)
10592 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10593 Comment out by surrounding "#if 0" and "#endif" for the moment.
10594 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10595 (syms_of_font): Codes for accessing above commented out.
10596
105972008-05-24 Eli Zaretskii <eliz@gnu.org>
10598
10599 * w32proc.c: Include dispextern.h.
10600
10601 * w32.c: Include dispextern.h.
10602
106032008-05-23 Juanma Barranquero <lekktu@gmail.com>
10604
10605 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10606 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10607 Fix typos in docstrings.
10608
106092008-05-23 Jason Rumney <jasonr@gnu.org>
10610
10611 * xsmfns.c: Remove includes that are already included by config.h.
10612
106132008-05-23 Kenichi Handa <handa@m17n.org>
10614
10615 * charset.c (Qemacs, charset_emacs): New variables.
10616 (char_charset): Fix for non-Unicode characters.
10617 (syms_of_charset): Define charset_emacs.
10618
10619 * w32term.c (x_draw_glyph_string): Be sure to update
10620 s->underline_thickness and s->underline_position. Be sure to draw
10621 underline within the current line area.
10622
10623 * xterm.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 * fontset.c: Delete unused variables and add casting for char *
10628 throughout the file.
10629 (fontset_font): Try the fallback fonts of the current fontset
10630 before consulting the default fontset.
10631
10632 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10633
10634 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10635
106362008-05-22 Jason Rumney <jasonr@gnu.org>
10637
10638 * font.c: Don't include strings.h.
10639
10640 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10641
10642 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10643 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10644 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10645 to call xstrcasecmp.
10646
10647 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10648
10649 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10650
10651 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10652
10653 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10654
106552008-05-22 Kenichi Handa <handa@m17n.org>
10656
10657 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10658
10659 * font.c (font_prop_validate_style): Adjust for the format
10660 change of font_style_table.
10661
10662 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10663 two args.
10664
10665 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10666 two args.
10667
106682008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10669
10670 * minibuf.c (keys_of_minibuf): Delete.
10671 * lisp.h (keys_of_minibuf): Delete.
10672 * emacs.c (main): Don't call keys_of_minibuf.
10673
106742008-05-22 Kenichi Handa <handa@m17n.org>
10675
10676 * ftfont.c (ftfont_resolve_generic_family): Rename from
10677 ftfont_list_generic_family. Return a single family for each
10678 generic family.
10679 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10680 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10681 Call font_add_log.
10682 (ftfont_match): Call font_add_log.
10683
10684 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10685 (FONT_DEBUG): Define it.
10686 (font_add_log): Extern it.
10687 (font_assert): Rename from xassert.
10688
10689 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10690 (xfont_list_family): Call font_add_log.
10691 (xfont_match): Likewise.
10692 (memq_no_quit): Delete.
10693
10694 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10695 call of Ffont_xlfd_name.
10696
10697 * xfaces.c (struct table_entry, slant_table, weight_table)
10698 (swidth_table): Move to font.c.
10699
10700 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10701 xassert are changed to font_assert. Delete many unused variables.
10702 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10703 New variables.
10704 (struct table_entry): Move from xfaces.c and modified.
10705 (weight_table, slant_table, width_table): Move from xfaces.c and
10706 contents adjusted for the change of struct table_entry.
10707 (font_style_to_value, font_style_symbolic): Adjust for the
10708 format change of font_style_table.
10709 (font_parse_family_registry): Don't overwrite existing foundry and
10710 family of font_spec.
10711 (font_score): Fix calculation of diff for sizes.
10712 (font_sort_entites): Call font_add_log.
10713 (font_delete_unmatched): Return a newly created list.
10714 (font_list_entities): Fix previous change. Call font_add_log.
10715 (font_matching_entity, font_open_entity, font_close_entity):
10716 Call font_add_log.
10717 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10718 (Finternal_set_font_style_table): Delete.
10719 (BUILD_STYLE_TABLE): New macro.
10720 (build_style_table): New function.
10721 (Vfont_log, font_log_env_checked): New variables.
10722 (font_add_log): New function.
10723 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10724 Declare Lisp variables "font-weight-table", "font-slant-table",
10725 "font-width-table", and "font-log". Initialize font_style_table.
10726
107272008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10728
10729 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10730
107312008-05-21 Seiji Zenitani <zenitani@mac.com>
10732 Ryo Yoshitake <ryo@shiftmode.net>
10733
10734 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10735 (Vframe_alpha_lower_limit): New variable.
10736 (x_set_alpha): New function.
10737
10738 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10739
10740 * xfns.c (x-create-frame, Qalpha):
10741 Initialize the frame parameter `alpha'.
10742 * xterm.c (OPAQUE, OPACITY): New.
10743 (x_set_frame_alpha): New function.
10744 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10745
10746 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10747 * w32fns.c (w32_frame_parm_handlers): Likewise.
10748
107492008-05-20 Jason Rumney <jasonr@gnu.org>
10750
10751 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10752 truetype fonts to opentype list.
10753
107542008-05-20 Juanma Barranquero <lekktu@gmail.com>
10755
10756 * fontset.c (Ffontset_info): Doc fix.
10757 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10758 <ignore-relative-composition>: Fix typos in docstrings.
10759
10760 * font.c (syms-of-font) <font-encoding-alist>:
10761 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10762 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10763 (Ffont_otf_alternates): Doc fixes.
10764
107652008-05-20 Kenichi Handa <handa@m17n.org>
10766
10767 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10768 font.h through out the file.
10769 (FONT_DRIVERS): Rename from FONTOBJ.
10770 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10771 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10772
10773 * emacs.c (main): Call syms_of_font unconditionally.
10774
10775 * font.h (find_font_encoding): Extern it.
10776
10777 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10778 fontset.c.
194d44e7 10779 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10780 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10781 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10782 only when HAVE_WINDOW_SYSTEM is defined.
10783 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10784 when HAVE_WINDOW_SYSTEM is defined.
10785
10786 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10787 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10788
10789 * xfaces.c: Include font.h unconditionally.
10790 (merge_face_ref, merge_face_vectors)
10791 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10792
107932008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10794
10795 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10796 indirect_variable.
10797 * eval.c (lisp_indirect_variable): New fun.
10798 (Fuser_variable_p): Use it.
10799
108002008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10801
10802 * lisp.h (indirect_variable):
10803 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10804 Use Lisp_Symbol pointers rather than Lisp_Object.
10805 Adjust callers.
10806 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10807 To this end, change calling-convention.
10808
10809 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10810 if some non-hidden buffers are selected by string&pred.
10811
108122008-05-19 Chong Yidong <cyd@stupidchicken.com>
10813
10814 * process.c (wait_reading_process_output): Always check status
10815 when in batch mode.
10816
108172008-05-19 Kenichi Handa <handa@m17n.org>
10818
10819 * font.c (font_list_entities): Fix handling of cache.
10820 (font_matching_entity): Likewise.
10821
10822 * ftfont.c (cs_iso8859_1): Delete.
10823 (ft_face_cache): New variable.
10824 (struct ftfont_info): New member fc_charset_idx.
10825 (ftfont_build_basic_charsets): Delete.
10826 (fc_charset_table): New variable.
10827 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10828 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10829 Callers changed.
10830 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10831 (ftfont_spec_pattern): New argument fc_charset_idx.
10832 Check registry more rigidly. Change callers.
10833 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10834 change of :font-entity property of the font.
10835
10836 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10837 property of the font.
10838
108392008-05-18 Juanma Barranquero <lekktu@gmail.com>
10840
10841 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10842 (Funencodable_char_position, Fcheck_coding_systems_region)
10843 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10844 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10845 (Ffind_operation_coding_system, Fset_coding_system_priority)
10846 (Fcoding_system_eol_type): Doc fixes.
10847
108482008-05-17 Glenn Morris <rgm@gnu.org>
10849
10850 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10851
108522008-05-16 Eli Zaretskii <eliz@gnu.org>
10853
10854 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10855 and st_gid.
10856
10857 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10858 HAVE_WINDOW_SYSTEM is not defined.
10859
10860 * xfaces.c (merge_face_ref, merge_face_vectors)
10861 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10862 HAVE_WINDOW_SYSTEM is defined.
10863 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10864
108652008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10866
10867 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10868
108692008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10870
10871 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10872
108732008-05-15 Kenichi Handa <handa@m17n.org>
10874
10875 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10876 preference.
10877
108782008-05-15 Glenn Morris <rgm@gnu.org>
10879
10880 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10881
108822008-05-15 Chong Yidong <cyd@stupidchicken.com>
10883
10884 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10885 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10886
10887 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10888
108892008-05-15 Kenichi Handa <handa@m17n.org>
10890
10891 * ftfont.c (ftfont_list): Downcase family name to check generic
10892 families.
10893
10894 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10895 font-spec for QCfont value.
10896
10897 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10898 buffer. Check the return value of it.
10899
109002008-05-14 Jason Rumney <jasonr@gnu.org>
10901
10902 * w32term.c (w32_get_glyph_overhangs): Remove.
10903 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10904
109052008-05-14 Kenichi Handa <handa@m17n.org>
10906
10907 * font.c (font_prop_validate): Make nil a valid value.
10908 (font_clear_cache): Check if the cached vector of entities is nil
10909 or not.
10910
109112008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10912
10913 * emacs.c (main_thread): Conditionalize on
10914 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10915 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10916
10917 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10918 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10919 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10920
109212008-05-14 Kenichi Handa <handa@m17n.org>
10922
10923 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10924 has no corresponding coding system.
10925
109262008-05-14 Jason Rumney <jasonr@gnu.org>
10927
10928 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10929
10930 * w32font.h (w32font_open_internal): Update declaration.
10931
10932 * w32font.c (w32font_open_internal): Change last argument from
10933 w32font_info struct to font object. Fill in font object from
10934 font_entity. Get Outline metrics if possible. Use them to
10935 calculate underline position and thickness. Use xlfd name as name
10936 property. Don't set codepage.
10937 (w32font_open): Pass font_object to w32font_open_internal. Don't
10938 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10939 (w32font_draw): Use s->font.
10940 (clear_cached_metrics): Don't clear non-existent blocks.
10941
10942 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10943 font was not found.
10944 (x_draw_glyph_string): Use underline position and thickness from font.
10945
10946 * w32uniscribe.c (uniscribe_open): Pass font_object to
10947 w32font_open_internal.
10948
109492008-05-14 Kenichi Handa <handa@m17n.org>
10950
10951 These changes are to delete all legacy font-handling codes, and
10952 make Emacs use only font-backends.
10953
10954 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10955 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10956
10957 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10958
10959 * charset.h (Vcharset_non_preferred_head)
10960 (Vcurrent_iso639_language): Extern them.
10961
10962 * charset.c (Vcharset_non_preferred_head): New variable.
10963 (Vcurrent_iso639_language): New variable.
10964 (syms_of_charset): Declare it as a Lisp variable.
10965 (char_charset): Don't check non preferred charsets. As a last
10966 resort, return charset_unicode.
10967 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10968
10969 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10970 conditionals. Don't check enable_font_backend. Delete all codes
10971 used only when USE_FONT_BACKEND is not defined.
10972
10973 * dispextern.h (struct glyph_string): Change type of `font' to
10974 `struct font *'.
10975 (struct glyph_string): New member underline_position and
10976 underline_thickness.
10977 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10978 (struct face): Change type of `font' to `struct font *'. Remove
10979 members `font_name', `font_info_id'.
10980 (per_char_metric, encode_char): Delete externs.
10981 (calc_pixel_width_or_height): Adjust the prototype.
10982
10983 * emacs.c (enable_font_backend): Delete extern.
10984 (main): Don't set enable_font_backend. Don't check the command
10985 line argument "-disable-font-backend".
10986
10987 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10988 (enum font_property_index): New members FONT_DPI_INDEX,
10989 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10990 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10991 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10992 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10993 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10994 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10995 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10996 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10997 (struct font_spec, struct font_entity): New structs.
10998 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10999 (struct font): Many members from old "struct font_info" moved to
11000 here. Members font and entity deleted.
11001 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11002 the new font-related objects.
11003 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11004 (CHECK_FONT_GET_OBJECT): Likewise.
11005 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11006 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11007 (struct font_driver): New members case_sensitive anc check. Type
11008 of the member list and open changed.
11009 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11010 (font_symbolic_width, font_find_object, font_get_spec)
11011 (font_set_lface_from_name): Delete extern.
11012 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11013
11014 * font.c: Include <strings.h>.
11015 (enable_font_backend): Delete it.
11016 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11017 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11018 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11019 (null_string): Delete it.
11020 (null_vector): Make it static.
11021 (font_family_alist): Delete it.
11022 (Qnormal): Extern it.
11023 (QCextra, QClanguage): Delete it.
11024 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11025 (font_make_spec, font_make_entity, font_make_object)
11026 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11027 the string. Callers changed.
11028 (font_pixel_size): Adjusted for the format change of font-related
11029 objects.
11030 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11031 (font_style_to_value, font_style_symbolic): New function.
11032 (build_font_family_alist): Delete it.
11033 (font_registry_charsets): Use Fassoc_string instead of
11034 assq_no_quit.
11035 (font_prop_validate_symbol): Don't return null_string.
11036 (font_prop_validate_style): Adjusted for the change of
11037 style-related values in a font vector.
11038 (font_property_table): Delete entries for QClanguage and
11039 QCantialias, add entries for QCavgwidth.
11040 (get_font_prop_index): Delete the 2nd argument FROM.
11041 (font_prop_validate): Arguments changed.
11042 (font_put_extra): Adjusted for the change of font-related objects.
11043 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11044 (font_parse_fcname, font_unparse_fcname)
11045 (font_prepare_composition): Likewise.
11046 (font_parse_family_registry): Renamed from font_merge_old_spec.
11047 (otf_open): Delete the 1st arg entity.
11048 (font_otf_capability): Adjusted for the above change.
11049 (font_score): New arg alternate_families. Adjusted for the change
11050 of font-related objects.
11051 (font_sort_entites): New arg best_only.
11052 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11053 Delete them.
11054 (font_match_p): Check alternate families.
11055 (font_find_object): Delete it.
11056 (font_check_object): New function.
11057 (font_clear_cache): Adjusted for the change of font-related objects.
11058 (font_delete_unmatched): New arg.
11059 (font_list_entities): Call font_driver->list with a spec that
11060 doesn't specify style-related properties.
11061 (font_matching_entity): Arguments changed. Caller changed.
11062 (font_open_entity): Adjusted for the change of font-related objects.
11063 (font_close_object, font_has_char, font_encode_char)
11064 (font_get_name, font_get_spec): Likewise.
11065 (font_spec_from_name, font_clear_prop, font_update_lface):
11066 New functions.
11067 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11068 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11069 (font_at): Adjusted for the change of font-related objects.
11070 (font_range): New function.
11071 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11072 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11073 (Fcopy_font_spec, Fmerge_font_spec): New function.
11074 (Ffont_family_list): Renamed from list-families.
11075 (Finternal_set_font_style_table): Arguments changed.
11076 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11077 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11078 change of font-related objects.
11079 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11080
11081 * fontset.h (struct font_info): Delete it. Most members go to
11082 struct font.
11083 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11084 (enum FONT_SPEC_INDEX): Delete it.
11085 (font_info, list_fonts_func, load_font_func, query_font_func)
11086 (set_frame_fontset_func, find_ccl_program_func)
11087 (get_font_repertory_func, new_fontset_from_font_name): Delete
11088 externs.
11089 (fontset_from_font_name): Extern it.
11090 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11091 (FONT_INFO_FROM_FACE): Deleted.
11092 (face_for_font): Adjust prototype.
11093
11094 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11095 conditionals. Don't check enable_font_backend. Delete all codes
11096 used only when USE_FONT_BACKEND is not defined.
11097 (get_font_info_func, list_font_func, load_font_func)
11098 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11099 (get_font_repertory_func): Delete them.
11100 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11101 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11102 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11103 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11104 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11105 (fontset_compare_rfontdef): New function.
11106 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11107 rfont-defs by qsort. Adjusted for the change of font-group vector.
11108 (load_font_get_repertory): Deleted.
11109 (fontset_find_font): Use new macros to ref/set elements of
11110 font-def and rfont-def.
11111 (fontset_font): Fix the timing of remembering that no font for C.
11112 (free_face_fontset): Do nothing if the face has no fontset.
11113 (face_suitable_for_char_p): Use new macros to ref/set elements of
11114 rfont-def.
11115 (face_for_char): Likewise. Call face_for_char with font_object.
11116 (fs_load_font): Delete. Delete #pragma surrounding it.
11117 (fs_query_fontset): Use strcasecmp instead of strcmp.
11118 (generate_ascii_font_name): Adjusted for the format change of
11119 font-spec.
11120 (Fset_fontset_font): Likewise. Use new macros to set elements of
11121 font-def.
11122 (Fnew_fontset): Use font_unparse_xlfd to generate
11123 FONTSET_ASCII (fontset).
11124 (new_fontset_from_font_name): Deleted.
11125 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11126 a fontset is already created for the font. FIx updating of
11127 Vfontset_alias_alist.
11128 (fontset_ascii_font): Deleted.
11129 (Ffont_info): Adjusted for the format change of font-spec.
11130 (Finternal_char_font): Likewise.
11131 (Ffontset_info): Likewise.
11132 (syms_of_fontset): Don't check load_font_func.
11133
11134 * fns.c (internal_equal): Handle PREV_FONT.
11135
11136 * frame.h: Delete USE_FONT_BACKEND conditional.
11137
11138 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11139 conditionals. Don't check enable_font_backend. Delete all codes
11140 used only when USE_FONT_BACKEND is not defined.
11141 (x_set_font): Call x_new_font, not x_new_fontset2.
11142 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11143 already set for the frame.
11144
11145 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11146 a font-entity by font_make_entity. Use font_intern_prop instead
11147 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11148 font property. If a font is scalable, set avgwidth property to 0.
11149 Set font-entity property by font_put_extra.
11150 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11151 (ffont_driver): Adjusted for the change of struct font_driver.
11152 (ftfont_spec_pattern): New function.
11153 (ftfont_list): Return a list, not vector.
11154 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11155 (ftfont_list_family): Don't downcase names.
11156 (ftfont_free_entity): Deleted.
11157 (ftfont_open): Return a font-object. Adjusted for the change of
11158 struct font. Get underline_thickness and underline_position from
11159 font property. Don't update dpyinfo->smallest_font_height and
11160 dpyinfo->smallest_char_width.
11161 (ftfont_close): Don't free `struct font'.
11162 (ftfont_has_char): Adjusted for the format change of font-entity.
11163 (ftfont_encode_char, ftfont_text_extents): Likewise.
11164
11165 * ftxfont.c (ftxfont_list): Return a list, not vector.
11166 (ftxfont_open): Return a font-object. Adjusted for the change of
11167 struct font. Get underline_thickness and underline_position from
11168 font property. Don't update dpyinfo->smallest_font_height and
11169 dpyinfo->smallest_char_width.
11170 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11171 (ftxfont_draw): Adjusted for the change of struct font.
11172
11173 * image.c (image_ascent): Don't include "charset.h". Include
11174 "character.h" and "font.h".
11175
11176 * lisp.h (enum pvec_type): New member PREV_FONT.
11177 (Fassoc_string): EXFUN it.
11178
11179 * print.c: Include font.h.
11180 (print_object): Handle font-related objects.
11181
11182 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11183 conditionals. Don't check enable_font_backend. Delete all codes
11184 used only when USE_FONT_BACKEND is not defined.
11185 (handle_auto_composed_prop): Do nothing if it->f is not on a
11186 window system. Check how many following characters can be
11187 displayed by the same font.
11188 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11189 'struct font *'.
11190 (get_char_face_and_encoding): Assign the whole encoding task to
11191 the `encode-char' method of a font driver.
11192 (fill_composite_glyph_string): Adjusted for the change of `struct
11193 face' and `struct glyph_string'.
11194 (fill_glyph_string): Likewise.
11195 (get_per_char_metric): Arguments changed.
11196 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11197 and `struct glyph_string'.
11198 (produce_stretch_glyph, calc_line_height_property)
11199 (x_produce_glyphs): Likewise.
11200
11201 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11202 conditionals. Don't check enable_font_backend. Delete all codes
11203 used only when USE_FONT_BACKEND is not defined. Use
11204 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11205 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11206 (Qp): Extern them.
11207 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11208 Deleted.
11209 (struct font_name): Deleted.
11210 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11211 (compare_fonts_by_sort_order): New function.
11212 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11213 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11214 Deleted.
11215 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11216 compare_fonts_by_sort_order.
11217 (Fx_font_family_list): Call Ffont_family_list.
11218 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11219 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11220 (face_symbolic_slant, face_symbolic_swidth)
11221 (split_font_name_into_vector, build_font_name_from_vector)
11222 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11223 (font_rescale_ratio, split_font_name, build_font_name)
11224 (free_font_names, sort_fonts, x_face_list_fonts)
11225 (face_font_available_p, sorted_font_list, cmp_font_names)
11226 (font_list_1, concat_font_list, font_list, remove_duplicates):
11227 Deleted.
11228 (Fx_list_fonts): Use Ffont_list.
11229 (LFACE_AVGWIDTH): Deleted.
11230 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11231 by FONTP.
11232 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11233 (set_lface_from_font_name): Delete it.
11234 (set_lface_from_font): Renamed from
11235 set_lface_from_font_and_fontset. Caller changed. Don't set
11236 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11237 for face.
11238 (merge_face_vectors): Copy font-spec if necessary.
11239 Clear properties of the font-spec if necessary.
11240 (merge_face_ref): Clear properties of the font-spec if necessary.
11241 (Finternal_set_lisp_face_attribute): Likewise.
11242 (set_font_frame_param): Use font_load_for_lface to load a
11243 font-object, and call Fmodify_frame_parameters with it.
11244 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11245 font name by Ffont_xlfd_name.
11246 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11247 QCslant, and QCwidth.
11248 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11249 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11250 Compare fonts by EQ.
11251 (lookup_non_ascii_face): Deleted.
11252 (face_for_font): The 2nd argument changed.
11253 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11254 Check atomic font properties by case insensitive.
11255 (realize_non_ascii_face): Set face->overstrike correctly.
11256 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11257 (dump_realized_face): Get font name from
11258 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11259
11260 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11261 conditionals. Don't check enable_font_backend. Delete all codes
11262 used only when USE_FONT_BACKEND is not defined.
11263 (xic_create_xfontset): Original code deleted and renamed from
11264 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11265 (x_make_gc): Don't set GCFont in GCs.
11266 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11267 opened by "fixed".
11268 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11269 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11270 get_font_repertory_func.
11271
11272 * xfont.c: Include <stdlib.h> and "ccl.h".
11273 (struct xfont_info): New structure.
11274 (xfont_query_font): Deleted.
11275 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11276 moved from xterm.c.
11277 (xfont_driver): Adjusted for the change of struct font_driver.
11278 (compare_font_names): New function.
11279 (xfont_list_pattern): Sort font names case insensitively. Make
11280 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11281 (xfont_list): Return a list, not vector.
11282 (xfont_match): If the font doesn't have QCname property, generate
11283 a name from the other font properties.
11284 (xfont_open): Return a font-object. Adjusted for the change of
11285 struct font. Get underline_thickness and underline_position from
11286 font property. Don't update dpyinfo->smallest_font_height and
11287 dpyinfo->smallest_char_width.
11288 (xfont_close): Don't free struct font.
11289 (xfont_prepare_face): Adjusted for the change of struct font.
11290 (xfont_done_face): Deleted.
11291 (xfont_has_char): Adjusted for the change of struct font.
11292 (xfont_encode_char, xfont_draw): Likewise.
11293 (xfont_check): New function.
11294
11295 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11296 callback function.
11297 (xftfont_match): Adjusted for the format change of font-entity.
11298 (xftfont_open): Adjusted for the format change of font-entity and
11299 font-object. Adjusted for the change of struct font. Return a
11300 font-object. Don't update dpyinfo->smallest_font_height and
11301 dpyinfo->smallest_char_width.
11302 (xftfont_close): Block input while calling XftFontClose.
11303 (xftfont_prepare_face): Don't block input while calling
11304 xftfont_get_colors. Adjusted for the change of struct font.
11305 (xftfont_shape): Return value of error case fixed.
11306
11307 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11308
11309 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11310 conditionals.
11311 (FONT_WIDTH): Return (f)->max_width.
11312 (struct x_display_info): Delete member `font'.
11313 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11314 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11315 (struct x_output): Change type of `font' to `struct font *'.
11316
11317 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11318 conditionals. Don't check enable_font_backend. Delete all codes
11319 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11320 (x_per_char_metric, x_encode_char): Deleted.
11321 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11322 (x_compute_glyph_string_overhangs): Adjusted for the change of
11323 `struct face'.
11324 (x_draw_glyph_string_foreground)
11325 (x_draw_composite_glyph_string_foreground): Likewise.
11326 (x_draw_glyph_string): Likewise. Use font->underline_position and
11327 font->underline_thickness.
11328 (x_new_font): Renamed from x_new_fontset2.
11329 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11330 (x_check_font): Call `check' method of a font driver.
11331 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11332 (x_query_font, x_get_font_repertory): Deleted.
11333 (x_find_ccl_program): Renamed and moved to xfont.c.
11334 (x_redisplay_interface): Adjusted for the change of `struct
11335 redisplay_interface'.
11336
11337 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11338 conditionals. Don't check enable_font_backend. Delete all codes
11339 used only when USE_FONT_BACKEND is not defined. Surround non-used
11340 code by "#ifdef OLD_FONT" and "endif".
11341 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11342
11343 * w32font.h (struct w32font_info): New member.
11344 (FONT_COMPAT): New macro.
11345 (w32font_open_internal): Prototype adjusted.
11346
11347 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11348 OLD_FONT" and "endif".
11349
11350 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11351 conditionals. Don't check enable_font_backend. Delete all codes
11352 used only when USE_FONT_BACKEND is not defined.
11353 (w32font_open): Return a font-object. Make a font-object by
11354 font_make_object. Adjusted for the change of struct w32font_info.
11355 (w32font_close): Don't free struct font. Adjusted for the change
11356 of struct w32font_info.
11357 (w32font_encode_char, w32font_text_extents, w32font_draw):
11358 Adjusted for the change of struct w32font_info.
11359 (w32font_draw): Likewise.
11360 (w32font_list_internal): Return a list, not vector.
11361 (w32font_open_internal): Change the 4th arg to font-object.
11362 Adjusted for the change of struct w32font_info and font-object format.
11363 (add_font_name_to_list): Don't downcase names.
11364 (w32_enumfont_pattern_entity): Make a font-entity by
11365 font_make_entity. Adjusted for the format change of font-entity.
11366 Use FONT_SET_STYLE to set a style-related font property. If a
11367 font is scalable, set avgwidth property to 0. Set font-entity
11368 property by font_put_extra.
11369 (font_matches_spec): Adjusted for the format change of font-entity.
11370 (w32_weight_table, w32_decode_weight): New variables.
11371 (w32_encode_weight): New function.
11372 (fill_in_logfont): Adjusted for the format change of font-spec.
11373 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11374 weight value.
11375 (w32font_driver): Adjusted for the change of struct font_driver.
11376
11377 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11378 conditionals. Don't check enable_font_backend. Surround non-used
11379 code by "#ifdef OLD_FONT" and "endif".
11380 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11381 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11382
11383 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11384 conditionals. Don't check enable_font_backend. Delete all codes
11385 used only when USE_FONT_BACKEND is not defined. Surround non-used
11386 code by "#ifdef OLD_FONT" and "endif".
11387
11388 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11389 (uniscribe_open): Return value changed to font-object.
11390 Adjusted for the format change of font-object.
11391 (uniscribe_otf_capability): Adjusted for the change of struct font.
11392 (add_opentype_font_name_to_list): Don't downcase names.
11393 (uniscribe_font_driver): Adjusted for the change of struct
11394 font_driver.
11395
113962008-05-13 Chong Yidong <cyd@stupidchicken.com>
11397
11398 * dispnew.c (update_frame_1): Check if tty output is still valid
11399 before flushing it.
11400
114012008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11402
11403 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11404 to Gtk+ menus.
11405
114062008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11407
11408 * dired.c (file_name_completion): Tweak the code so as to always do it
11409 in a single pass. Tighten the scope of some variables.
11410
11411 * dired.c (Qdefault_directory): New var.
11412 (file_name_completion): Use it instead of Fexpand_file_name.
11413 (syms_of_dired): Initialize it.
11414
114152008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11416
11417 * fileio.c (double_dollars): Remove dead code.
11418
114192008-05-10 Eli Zaretskii <eliz@gnu.org>
11420
11421 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11422 Mention w32-get-true-file-attributes in doc string.
11423
11424 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11425
114262008-05-09 Glenn Morris <rgm@gnu.org>
11427
11428 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11429 2008-04-23.
11430
114312008-05-09 Eli Zaretskii <eliz@gnu.org>
11432
11433 Support for reporting owner and group of each file on MS-Windows:
11434 * dired.c (stat_uname, stat_gname): New functions, with special
11435 implementation for w32.
11436 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11437
11438 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11439 (dflt_group_name): New static variable.
11440 (dflt_group): Rename from the_group.
11441 (init_user_info): Init dflt_group fields. Get user's group name
11442 from LookupAccountSid.
11443 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11444 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11445 New initialization states.
11446 (globals_of_w32): Initialize them to zero. Initialize the default
11447 group name to "None".
11448 (GetFileSecurity_Name): New global var, the name of the function
11449 to call for GetFileSecurity.
11450 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11451 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11452 (get_file_security, get_security_descriptor_owner)
11453 (get_security_descriptor_group, is_valid_sid)
11454 (get_file_security_desc, get_rid, get_name_and_id)
11455 (get_file_owner_and_group): New functions.
11456 (stat): Use get_file_security_desc and get_file_owner_and_group to
11457 report the owner and primary group of each file. Don't ignore the
11458 high 32 bits of file's size, now that st_size is 64-bit wide.
11459 Fix test when to get true file attributes.
11460 (init_user_info): Use get_rid instead of equivalent inline code.
11461 (fstat): Don't ignore the high 32 bits of file's size.
11462
114632008-05-09 Chong Yidong <cyd@stupidchicken.com>
11464
11465 * image.c (png_load): Use correct bit-depth for setting background
11466 color.
11467
114682008-05-08 Eli Zaretskii <eliz@gnu.org>
11469
11470 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11471 epa-hook.elc.
11472
114732008-05-08 Juanma Barranquero <lekktu@gmail.com>
11474
11475 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11476
114772008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11478
11479 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11480 because the original parameters are in pure storage now.
11481 (mac_window): Remove unused params. Update callers.
11482
114832008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11484
11485 * lread.c (substitute_object_recurse): Use lower-level primitives.
11486 Don't signal errors when traversing sub-char-tables.
11487 Don't loop over all the possible characters when traversing char-tables.
11488
11489 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11490 just like we do in print.c.
11491
114922008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11493
11494 * minibuf.c (Ftry_completion): Remove code left over from when we used
11495 scmp instead of Fcompare_strings.
11496
114972008-05-04 Juanma Barranquero <lekktu@gmail.com>
11498
11499 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11500
115012008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11502
11503 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11504 Create bitmap context in native byte order.
11505
11506 * macterm.c (XDrawLine)
11507 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11508 context in native byte order.
11509
115102008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11511
11512 * config.in: Regenerate.
11513
11514 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11515 New definitions for Image I/O support.
11516 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11517 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11518 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11519 (mac_data_provider_release_data, image_load_image_io)
11520 [USE_MAC_IMAGE_IO]: New functions.
11521 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11522 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11523 (init_image_func_pointer) [MAC_OSX]: Remove function.
11524 (image_load_quartz2d) [MAC_OSX]: Check availability of
11525 CGImageCreateWithPNGDataProvider at compile time.
11526 Use lowercase `false' for boolean constant.
11527 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11528 Use image_load_image_io.
11529 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11530 Don't check MyCGImageCreateWithPNGDataProvider.
11531 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11532 Don't call init_image_func_pointer.
11533
11534 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11535
11536 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11537 Make variable non-static.
11538 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11539 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11540
11541 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11542 (RED_FROM_ULONG): Mask off higher bits.
11543 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11544
11545 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11546 Include AvailabilityMacros.h.
11547 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11548 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11549
115502008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11551
11552 * chartab.c (Fset_char_table_range): If range is t, really set all
11553 chars to that value.
11554
115552008-05-03 Eli Zaretskii <eliz@gnu.org>
11556
11557 * dired.c (Ffile_attributes): Don't allow the device number become
11558 negative.
11559
115602008-05-02 Daiki Ueno <ueno@unixuser.org>
11561
11562 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11563
115642008-05-02 Juri Linkov <juri@jurta.org>
11565
11566 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11567 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11568 DEFAULT argument as a list of default values in docstrings.
11569
115702008-05-01 Chong Yidong <cyd@stupidchicken.com>
11571
11572 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11573
115742008-05-01 Martin Rudalics <rudalics@gmx.at>
11575
11576 * dispnew.c (change_frame_size_1): Preserve small windows when
11577 shrinking frames by calling set_window_height|width with third
11578 arg 2.
11579
11580 * window.h (struct window): Replace field too_small_ok by field
11581 resize_proportionally.
11582
11583 * window.c (make_window): Initialize resize_proportionally.
11584 (enlarge_window): Temporarily set resize_proportionally to make
11585 sure that shrink_windows does scale the window proportionally.
11586 (shrink_windows): When window has resize_proportionally set try
11587 to shrink it proportionally by stealing from other windows.
11588 (struct saved_window, Fset_window_configuration)
11589 (compare_window_configurations): Handle resize_proportionally.
11590 (WINDOW_TOTAL_SIZE): New macro.
11591 (window_min_size, shrink_windows, size_window): Use it.
11592 (check_min_window_sizes): Remove. Invalid values of
11593 window-min-height|width are handled by window_min_size_2 now.
11594 (size_window, Fsplit_window, enlarge_window)
11595 (adjust_window_trailing_edge, grow_mini_window): Don't call
11596 check_min_window_sizes.
11597 (window_min_size_2, window_min_size_1, window_min_size):
11598 New argument safe_p for retrieving "safe" minimum sizes.
11599 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11600 (adjust_window_trailing_edge, grow_mini_window):
11601 Adjust arguments of window_min_size... functions.
11602 (shrink_windows): Argument min_size removed. New argument
11603 safe_p allows shrinking windows to their safe minimum sizes.
11604 Calculate minimum size and decide whether a window shall be
11605 deleted for each window individually.
11606 (size_window): When nodelete_p equals 2, tell shrink_windows to
11607 delete windows only if their new minimum size is no more safe.
11608 (shrink_window_lowest_first): Call window_min_size_1 to make
11609 sure to preserve modeline of bottom-most window when resizing
11610 the minibuffer.
11611 (Fset_window_configuration, Fcurrent_window_configuration)
11612 (compare_window_configurations): Do not handle
11613 window-min-height|width any more.
11614 (syms_of_window): Clarify window-min-height|width doc-strings.
11615
116162008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11617
11618 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11619 some more. Copy some of the code from Ftry_completions.
11620 Remove special case code that dates back to initial revision when the
11621 slash was only added when necessary and that can't trigger nowadays.
11622
116232008-04-27 Kenichi Handa <handa@m17n.org>
11624
11625 * font.c (font_prop_validate): Signal `error' instead of `font'.
11626
116272008-04-29 Jason Rumney <jasonr@gnu.org>
11628
11629 * w32fns.c (Fw32_battery_status): New defun.
11630 (syms_of_w32fns): Defsubr it.
11631
116322008-04-28 Andreas Schwab <schwab@suse.de>
11633
11634 * dired.c (file_name_completion): Fix another mixing of encoded
11635 and decoded names.
11636
116372008-04-28 Juanma Barranquero <lekktu@gmail.com>
11638
11639 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11640
116412008-04-27 Juanma Barranquero <lekktu@gmail.com>
11642
11643 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11644
116452008-04-27 Andreas Schwab <schwab@suse.de>
11646
11647 * dired.c (file_name_completion): Fix inappropriate mixing of
11648 encoded and decoded names.
11649
11650 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11651
11652 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11653
116542008-04-26 Eli Zaretskii <eliz@gnu.org>
11655
11656 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11657 2008-03-31, it's not needed anymore with `struct stat' definition
11658 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11659 for the same reasons.
11660
116612008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11662
11663 * m/sparc.h: Additional redefinitions for GNU/Linux.
11664
116652008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11666
11667 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11668 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11669 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11670 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11671 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11672 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11673 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11674 Likewise.
11675
11676 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11677 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11678 (mac_ax_number_of_characters): Add externs.
11679 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11680 [USE_MAC_TSM]: Likewise.
11681 (mac_handle_text_input_event) [MAC_OSX]:
11682 Handle kEventTextInputOffsetToPos for no active input area case.
11683 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11684 (mac_handle_document_access_event)
11685 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11686 (install_application_handler) [MAC_OSX]: Register handlers for
11687 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11688 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11689 Register mac_handle_document_access_event.
11690
11691 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11692 Make functions non-static.
11693
116942008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11695
11696 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11697 (read_file_name_completion_ignore_case, insert_default_directory)
11698 (Qdefault_directory): Move to minibuffer.el.
11699 (Fread_file_name): Call the new `read-file-name' instead.
11700
117012008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11702
11703 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11704 Make function non-static.
11705 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11706 Remove function.
11707 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11708 Move to mactoolbox.c.
11709 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11710
11711 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11712 (mac_rect_make): New macro.
11713
11714 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11715 instead of float.
11716 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11717 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11718 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11719 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11720 CGRectMake.
11721 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11722 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11723 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11724 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11725 instead of WindowRef in argument type.
11726 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11727 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11728 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11729 instead of DISPLAY. All uses changed.
11730 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11731 (x_calc_absolute_position): Simplify so as not to use
11732 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11733
11734 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11735 instead of WindowRef in argument type.
11736 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11737 [TARGET_API_MAC_CARBON]: Remove externs.
11738 (create_apple_event, mac_event_parameters_to_lisp)
11739 [TARGET_API_MAC_CARBON]: Add externs.
11740
11741 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11742 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11743 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11744 is clicked.
11745 (x_activate_menubar): Remove extern for saved_menu_event_location.
11746 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11747 Move from mac.c.
11748
117492008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11750
11751 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11752 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11753
117542008-04-23 Jason Rumney <jasonr@gnu.org>
11755
11756 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11757 attributes only for local files.
11758
11759 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11760 default to Qlocal.
11761
117622008-04-22 Juri Linkov <juri@jurta.org>
11763
11764 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11765 read-buffer-to-switch instead of using the letter "B".
11766
117672008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11768
11769 * fileio.c (Qdefault_directory): New variable.
11770 (Fread_file_name): Use it to pass `dir' to the completion functions.
11771
117722008-04-20 Chong Yidong <cyd@stupidchicken.com>
11773
11774 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11775
117762008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11777
11778 * keyboard.c (Vpre_help_message): Remove.
11779 (show_help_echo): Remove default C code.
11780
11781 * dired.c (directory_files_internal, file_name_completion):
11782 Only call ENCODE_FILE if the string is indeed decoded.
11783
117842008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11785
11786 * Makefile.in (TOOLKIT_DEFINES): Remove.
11787 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11788
117892008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11790
11791 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11792 (mactoolbox.o): New target.
11793
11794 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11795 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11796
11797 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11798 Use mac_set_frame_window_background instead of XSetWindowBackground.
11799 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11800 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11801 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11802 instead of SetWindowTitleWithCFString.
11803 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11804 Move function to mactoolbox.c.
11805 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11806 Use mac_set_window_modified instead of SetWindowModified.
11807 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11808 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11809 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11810 FrontNonFloatingWindow. Use mac_activate_window instead of
11811 ActivateWindow. Use mac_active_non_floating_window instead of
11812 ActiveNonFloatingWindow.
11813 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11814 Use mac_show_hourglass and mac_hide_hourglass.
11815 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11816 instead of GetGlobalMouse.
11817 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11818 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11819 Use mac_bring_window_to_front instead of BringToFront.
11820 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11821 mactoolbox.c.
11822 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11823 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11824 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11825 mactoolbox.c.
11826
11827 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11828 (XtPointer): Move typedef from macmenu.c.
11829 (enum button_type): Move enum from macmenu.c.
11830 (widget_value): Move typedef from macmenu.c.
11831 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11832 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11833 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11834 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11835 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11836 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11837 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11838 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11839 (Selection): Move typedef from macselect.c.
11840 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11841 macterm.c.
11842 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11843 (mac_is_window_collapsed, mac_bring_window_to_front)
11844 (mac_send_window_behind, mac_hide_window, mac_show_window)
11845 (mac_collapse_window, mac_front_non_floating_window)
11846 (mac_active_non_floating_window, mac_activate_window)
11847 (mac_move_window_structure, mac_move_window, mac_size_window)
11848 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11849
11850 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11851 (enum mac_menu_kind): Move enum to mactoolbox.c.
11852 (min_menu_id): Move variable to mactoolbox.c.
11853 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11854 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11855 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11856 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11857 [TARGET_API_MAC_CARBON]: Likewise.
11858 (XtPointer): Move typedef to macgui.h.
11859 (enum button_type): Move enum to macgui.h.
11860 (widget_value): Move typedef to macgui.h.
11861 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11862 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11863 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11864 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11865 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11866 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11867 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11868 (popup_activated_flag): Make variable non-static.
11869 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11870 (add_menu_item, fill_menu, dispose_menus):
11871 Move functions to mactoolbox.c.
11872 (restore_show_help_function, menu_target_item_handler)
11873 (install_menu_target_item_handler, mac_handle_dialog_event)
11874 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11875 [TARGET_API_MAC_CARBON]: Likewise.
11876 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11877 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11878 (find_and_call_menu_selection, name_is_separator): Make function
11879 non-static.
11880 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11881 to mactoolbox.c.
11882 (set_frame_menubar): Don't call install_menu_quit_handler.
11883 (menu_item_selection): New variable.
11884 (mac_menu_show): Use create_and_show_popup_menu.
11885 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11886 selection but set variable menu_item_selection. All uses changed.
11887 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11888 Call install_menu_quit_handler. Move to mactoolbox.c.
11889
11890 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11891 (Selection): Move typedef to macgui.h.
11892 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11893 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11894 Make variables non-static.
11895 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11896 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11897 Make functions non-static.
11898 (Vmac_service_selection) [MAC_OSX]: Likewise.
11899 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11900 (mac_valid_selection_target_p, mac_clear_selection)
11901 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11902 (mac_put_selection_value, mac_selection_has_target_p)
11903 (mac_get_selection_value, mac_get_selection_target_list)
11904 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11905 Move functions to mactoolbox.c.
11906 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11907 Likewise.
11908 (copy_scrap_flavor_data, mac_handle_service_event)
11909 (install_service_handler) [MAC_OSX]: Likewise.
11910 (syms_of_macselect) <Vmac_dnd_known_types>:
11911 Use mac_dnd_default_known_types.
11912
11913 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11914 Move to mactoolbox.c.
11915 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11916 (Fx_selection_owner_p): Add EXFUN.
11917 (install_window_handler, remove_window_handler, XSetWindowBackground):
11918 Remove externs.
11919 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11920 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11921 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11922 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11923 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11924 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11925 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11926 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11927 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11928 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11929 (mac_valid_selection_target_p, mac_clear_selection)
11930 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11931 (mac_put_selection_value, mac_selection_has_target_p)
11932 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11933 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11934 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11935 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11936 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11937 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11938 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11939 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11940 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11941
11942 * mactoolbox.c: New file.
11943
119442008-04-18 Jason Rumney <jasonr@gnu.org>
11945
11946 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11947
119482008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11949
11950 * character.c (Fmultibyte_char_to_unibyte):
11951 Return latin1 chars unchanged.
11952
11953 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11954 relocated if it points to `name'.
11955
119562008-04-17 Kenichi Handa <handa@m17n.org>
11957
11958 * data.c (Faset): Allow setting a multibyte character in an
11959 ASCII-only unibyte string.
11960
11961 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11962
119632008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11964
11965 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11966 done in config.h.
11967
119682008-04-16 Juanma Barranquero <lekktu@gmail.com>
11969
11970 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11971 (Fchar_direction): Add usage in the docstring.
11972
119732008-04-15 Chong Yidong <cyd@stupidchicken.com>
11974
11975 * keyboard.c (read_key_sequence): Remove always-true checks.
11976
119772008-04-14 Jason Rumney <jasonr@gnu.org>
11978
11979 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11980 compatibility struct, for better underline positioning.
11981
119822008-04-13 David Hansen <david.hansen@gmx.net>
11983
11984 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11985 string.
11986
119872008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11988
11989 * m/hp800.h (XUINT, XSET): Remove.
11990
119912008-04-12 Juanma Barranquero <lekktu@gmail.com>
11992
11993 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11994 previous change.
11995
119962008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11997
11998 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11999 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12000
120012008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12002
12003 * keymap.h (map_keymap_canonical): Declare.
12004 * xmenu.c (single_keymap_panes): Use it.
12005
120062008-04-11 Glenn Morris <rgm@gnu.org>
12007
12008 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12009 set the target's value to that of the alias.
12010
120112008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12012
12013 * term.c (set_tty_color_mode): Left over typo.
12014
120152008-04-10 Michael Albinus <michael.albinus@gmx.de>
12016
12017 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12018 only after check for file name handler functions. Signal, when
12019 native functionality is not supported.
12020 (syms_of_fileio): Declare it unconditionally.
12021
120222008-04-10 Jason Rumney <jasonr@gnu.org>
12023
12024 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12025 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12026
12027 * w32.c (logon_network_drive): Also logon to remote drives that
12028 are mapped to drive letters.
12029
120302008-04-10 Glenn Morris <rgm@gnu.org>
12031
12032 * xdisp.c (truncate-partial-width-windows): Doc fix.
12033
120342008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12035
12036 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12037 Move functions to minibuffer.el.
12038 (syms_of_fileio): Don't declare them.
12039
120402008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12041
12042 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12043 (syms_of_minibuf): Remove its initialization.
12044
12045 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12046
120472008-04-09 Juanma Barranquero <lekktu@gmail.com>
12048
12049 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12050
120512008-04-09 Jason Rumney <jasonr@gnu.org>
12052
12053 * makefile.w32-in (distclean): Delete makefile too.
12054 (maintainer-clean): New target.
12055
12056 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12057
12058 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12059 for new font backend and composite cases.
12060
120612008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12062
12063 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12064 Most of the code moved to run_timers.
12065 (do_pending_atimers): Call run_timers.
12066 (run_timers): New function.
12067
12068 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12069 run atimers.
12070
12071 * process.c (wait_reading_process_output): The same as above.
12072
120732008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12074
12075 * minibuf.c (last_exact_completion): Remove variable.
12076 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12077 (complete_and_exit_1, complete_and_exit_2)
12078 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12079 (Fdisplay_completion_list, display_completion_list_1)
12080 (Fminibuffer_completion_help, Fself_insert_and_exit)
12081 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12082 minibuffer.el.
12083 (syms_of_minibuf): Remove corresponding initializations.
12084
12085 * keyboard.c (Qdeactivate_mark): New var.
12086 (command_loop_1): Use it to call `deactivate-mark'.
12087 (syms_of_keyboard): Initialize it.
12088
12089 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12090 to another frame.
12091 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12092 Don't call set_tty_color_mode.
12093 (store_frame_param): Reset previous_frame rather than call
12094 set_tty_color_mode.
12095 * term.c (set_tty_color_mode): Rewrite.
12096 * dispextern.h (set_tty_color_mode): New type.
12097 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12098
120992008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12100
12101 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12102 for generic chars, which do not exist any more in emacs-unicode.
12103
121042008-04-08 Michael Albinus <michael.albinus@gmx.de>
12105
12106 * coding.c (detect_coding_emacs_mule)
12107 (Ffind_operation_coding_system): Fix typo.
12108
121092008-04-08 Jason Rumney <jasonr@gnu.org>
12110
12111 * w32uniscribe.c (SNAME): Extract only symbol name.
12112
12113 * w32font.h (struct w32_metric_cache): New struct.
12114 (w32font_info): Use it.
12115 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12116 (CACHE_BLOCKSIZE): New constants.
12117
12118 * w32font.c (Qja, Qko, Qzh): New symbols.
12119 (syms_of_w32font): Initialise them.
12120 (font_matches_spec): Use them to filter by language.
12121 (recompute_cached_metrics): Remove function.
12122 (compute_metrics, clear_cached_metrics): New functions.
12123 (w32font_encode_char): Use them to manage metric cache.
12124 (w32font_text_extents): Cache metrics for all glyphs on demand.
12125 Delay converting glyph indices to WORD until needed.
12126 (w32font_open_internal): Initialize metric cache to empty.
12127 (registry_to_w32_charset): Charset should always be a symbol.
12128 (fill_in_logfont, list_all_matching_fonts): Family should
12129 always be a symbol.
12130
121312008-04-06 Jason Rumney <jasonr@gnu.org>
12132
12133 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12134 Give up if glyph indices not supported. Use uniscribe obtained
12135 ABC widths for individual metrics. Map glyph clusters back to
12136 characters using fClusterStart flag. Return number of glyphs
12137 produced, not chars processed.
12138 (uniscribe_shape): Map char at FROM to current glyph.
12139
121402008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12141
12142 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12143 Use SetMenuItemHierarchicalMenu.
12144
121452008-04-05 Jason Rumney <jasonr@gnu.org>
12146
12147 * image.c (pbm_load): Allow color values up to 65535.
12148 Throw an error if max_color_idx is outside the supported range.
12149 Report an error when image size is invalid.
12150 Read two bytes at a time when raw images have max_color_idx above 255.
12151
121522008-04-05 Eli Zaretskii <eliz@gnu.org>
12153
12154 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12155 cFileName a file name that includes `?' characters, use the 8+3
12156 alias in cAlternateFileName instead.
12157
121582008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12159
12160 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12161 append "CCL: Quitted" when the CCL program is quitted.
12162 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12163
12164 * ccl.h (struct ccl_program): New member quit_silently.
12165
121662008-04-05 Chong Yidong <cyd@stupidchicken.com>
12167
12168 * search.c (compile_pattern_1): Treat non-nil and non-string of
12169 search-spaces-regexp as nil.
12170
12171 * minibuf.c (Fassoc_string): Tweak docstring.
12172
121732008-04-05 Eli Zaretskii <eliz@gnu.org>
12174
12175 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12176 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12177 2008-03-14 to force inode be positive.
12178
12179 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12180 _S_* ones, since we now use our own sys/stat.h.
12181 (stat, fstat): Don't mangle the inode number.
12182 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12183
121842008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12185
12186 * frame.h (struct frame): Give one more bit to `visible' since we use
12187 values larger than 1 to indicate obscured frames on ttys.
12188
12189 * keymap.c (Qkeymap_canonicalize): New var.
12190 (Fmap_keymap_internal): New fun.
12191 (describe_map): Use keymap-canonicalize.
12192
12193 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12194 (Fundo_boundary): Set them.
12195 (syms_of_undo): Initialize them.
12196 (record_point): Use them instead of last_point_position*.
12197 (last_undo_buffer): Change type.
12198
121992008-04-04 Jason Rumney <jasonr@gnu.org>
12200
12201 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12202 (recompute_cached_metrics): Don't set ascent and descent per char.
12203
12204 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12205 (uniscribe_check_otf): Add GC protection before consing.
12206 Rearrange loop for counting features.
12207
122082008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12209
12210 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12211 buffer with byte-size of source buffer.
12212
122132008-04-03 Chong Yidong <cyd@stupidchicken.com>
12214
12215 * callint.c (Fcall_interactively): Handle temporary region even
12216 when shift-select-mode is off.
12217
122182008-04-03 Jason Rumney <jasonr@gnu.org>
12219
12220 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12221
122222008-04-03 Kenichi Handa <handa@m17n.org>
12223
12224 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12225 (CATEGORY_MASK_UTF_16): Likewise.
12226 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12227 binary file.
12228 (detect_coding): Add null-byte detection for a binary file.
12229 (detect_coding_system): Likewise.
12230
122312008-04-03 Jason Rumney <jasonr@gnu.org>
12232
12233 * w32uniscribe.c: New file.
12234
12235 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12236
12237 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12238
12239 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12240 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12241 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12242 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12243 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12244 (Qphonetic): New symbols.
12245 (syms_of_w32font): Initialize them.
12246 (font_supported_scripts): Use them.
12247 (w32font_list_family): List all charsets.
12248 (w32font_text_extents, recompute_cached_metrics): Fix metric
12249 calculations.
12250 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12251 Give opentype fonts their own format.
12252 (font_matches_spec): New arguments backend and logfont.
12253 Handle :otf spec for uniscribe backend.
12254 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12255 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12256
12257 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12258 font backend.
12259 (globals_of_w32fns): Initialize uniscribe font backend.
12260
12261 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12262 dependencies.
12263 (w32uniscribe.$(O)): New file to build.
12264 (FONT_OBJ): Include w32uniscribe.$(O).
12265 (LIBS): Add uniscribe libraries.
12266
12267 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12268
122692008-04-02 Chong Yidong <cyd@stupidchicken.com>
12270
12271 * callint.c (Vshift_select_mode): New var.
12272 (Finteractive): Document new ^ spec.
12273 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12274 is present.
12275
12276 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12277 (command_loop_1): Avoid running the direct display versions of
12278 forward-char and backward-char if shift-selection may occur.
12279 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12280 shift-translation takes place.
12281
12282 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12283 avoid clobbering by define-minor-mode.
12284
12285 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12286 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12287
12288 * syntax.c (Fforward_word): Add ^ interactive spec.
12289
12290 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12291 (Fscroll_right): Add ^ interactive spec.
12292
122932008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12294
12295 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12296
12297 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12298
12299 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12300
123012008-03-31 Juri Linkov <juri@jurta.org>
12302
12303 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12304
123052008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12306
12307 * gtkutil.c (xg_set_geometry): Fix indentation.
12308 (xg_resize_outer_widget): Remove.
12309 (x_wm_size_hint_off): Fix indentation.
12310 (xg_frame_set_char_size): Call flush_and_sync after
12311 gtk_window_resize.
12312 (x_wm_set_size_hint): Pass NULL as geometry window to
12313 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12314 Add menu bar and tool bar height to base height.
12315 (xg_update_frame_menubar, free_frame_menubar)
12316 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12317 (update_frame_tool_bar, free_frame_tool_bar):
12318 Change xg_resize_outer_widget to xg_frame_set_char_size.
12319
123202008-03-30 Michael Albinus <michael.albinus@gmx.de>
12321
12322 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12323 (Fdbus_call_method): New parameter TIMEOUT.
12324 (dbus-send-signal): Optimize UNGCPRO call.
12325
123262008-03-29 Juri Linkov <juri@jurta.org>
12327
12328 * window.c (Fdisplay_buffer): Move call to
12329 Vsplit_window_preferred_function out of conditions that check
12330 if window is eligible for vertical splitting.
12331 When Vsplit_window_preferred_function is non-nil, call it and use
12332 its non-nil return value as window. Otherwise, continue doing
12333 vertical splitting using Fsplit_window with arg horflag=nil.
12334 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12335 default value from `split-window' to nil.
12336
123372008-03-29 Juri Linkov <juri@jurta.org>
12338
12339 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12340 for interactive code letters 'b' and 'B'.
12341
123422008-03-29 Eli Zaretskii <eliz@gnu.org>
12343
12344 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12345 multibyte string.
12346
123472008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12348
12349 * keyboard.c (pending_funcalls): New var.
12350 (timer_check): Run it.
12351 (syms_of_keyboard): Initialize it.
12352 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12353 (Vdelete_terminal_functions): New vars.
12354 (syms_of_terminal): Initialize them.
12355 (Fdelete_terminal): Run delete-terminal-functions.
12356 * xdisp.c (safe_eval): Rewrite.
12357 (safe_call2): New fun.
12358 * frame.c (Qdelete_frame_functions): New var.
12359 (syms_of_frame): Initialize it.
12360 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12361 * lisp.h (safe_call2, pending_funcalls): Declare.
12362
123632008-03-28 Andreas Schwab <schwab@suse.de>
12364
12365 * indent.c (Fmove_to_column): Move declaration before statements.
12366
123672008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12368
12369 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12370 (struct frame): Use bit fields for boolean vars.
12371
12372 * process.c (server_accept_connection): Simplify naming.
12373 (emacs_get_tty_pgrp): Use SDATA.
12374
12375 * coding.c (decode_coding_object): Fix last change.
12376
123772008-03-27 Jason Rumney <jasonr@gnu.org>
12378
12379 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12380
123812008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12382
12383 * charset.c (Fdefine_charset_internal): Change the way of
12384 registering charsets in Vcharset_order_list.
12385 (syms_of_charset): Make the charset `eight-bit' supplementary.
12386
123872008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12388
12389 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12390 operations, to avoid having the difference between pointers
12391 overflow.
12392
123932008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12394
12395 * indent.c (check_display_width): New fun.
12396 (scan_for_column): Use it.
12397
12398 * data.c (syms_of_data): Mark most-positive-fixnum and
12399 most-negative-fixnum as constants.
12400
12401 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12402
12403 * indent.c (scan_for_column): Extract from current_column_1.
12404 Merge with the same code from Fmove_to_column.
12405 (current_column_1, Fmove_to_column): Use it.
12406
124072008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12408
12409 * keymap.c (map_keymap_internal): New fun.
12410 (map_keymap): Use it.
12411 (Fmap_keymap_internal): New fun.
12412 (Fmap_keymap): Remove left-out test from before make_save_value.
12413
12414 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12415
12416 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12417 Use XCAR/XCDR.
12418
12419 * process.h (struct Lisp_Process): Remove filter_multibyte.
12420 * process.c (QCfilter_multibyte): Remove.
12421 (setup_process_coding_systems): Don't use filter_multibyte.
12422 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12423 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12424 (Fset_process_filter_multibyte): Change the coding-system to
12425 approximate the previous behavior.
12426 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12427 coding-system.
12428
12429 * coding.c (decode_coding_object): When not decoding into a buffer,
12430 obey the coding system's preference of (uni|multi)byte.
12431
124322008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12433
12434 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12435 every char is changed and has a different byte-length.
12436 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12437 Fix int -> EMACS_INT.
12438
124392008-03-23 David Hansen <david.hansen@gmx.net>
12440
12441 * dbusbind.c (xd_read_message): Remove extra copying of message
12442 strings. Check for NULL `interface' or `member'.
12443
124442008-03-22 Eli Zaretskii <eliz@gnu.org>
12445
12446 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12447 cFileName a file name that includes `?' characters, use the 8+3
12448 alias in cAlternateFileName instead.
12449
124502008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12451
12452 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12453
124542008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12455
12456 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12457 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12458 work on current_buffer only instead (that was already the case
12459 for some of the code anyway).
12460 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12461 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12462 (SET_PT, SET_PT_BOTH): Adjust.
12463 * intervals.h (set_point, temp_set_point, set_point_both)
12464 (temp_set_point_both): Remove redundant declarations.
12465
124662008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12467
12468 * fileio.c (Finsert_file_contents):
12469 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12470 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12471 when buffer != current_buffer anyway.
12472
124732008-03-20 Andreas Schwab <schwab@suse.de>
12474
12475 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12476 as default.
12477
124782008-03-19 Jason Rumney <jasonr@gnu.org>
12479
12480 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12481 (syms_of_w32fns): Initialize them.
12482 (HOURGLASS_ID): New constant.
12483 (x_window_to_frame): Don't check hourglass_window.
12484 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12485 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12486 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12487 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12488 Only change the cursor if hourglass is not active.
12489 (Fx_create_frame): Initialize frame's current_cursor.
12490 (hourglass_atimer): Remove.
12491 (hourglass_started): New function.
12492 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12493 (show_hourglass): Adapt to w32, changing argument to frame.
12494
12495 * w32term.h (struct w32_output): Remove hourglass_window.
12496 Add current_cursor.
12497
12498 * eval.c (call_debugger, Fsignal):
12499 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12500 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12501 (Fexecute_extended_command, cancel_hourglass_unwind):
12502 * minibuf.c (read_minibuf):
12503 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12504
125052008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12506
12507 * window.c (run_funs): New fun.
12508 (run_window_configuration_change_hook): Use it to run the buffer-local
12509 and the global part of the hook.
12510
12511 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12512 (unwind_format_mode_line): Restore selected window.
12513 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12514
125152008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12516
12517 * editfns.c (Fchar_equal): Check they are valid characters.
12518
12519 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12520
125212008-03-17 Andreas Schwab <schwab@suse.de>
12522
12523 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12524 against a charset.
12525
12526 * lisp.h (Fbuffer_list): Declare.
12527
125282008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12529
aac0c6e3
MR
12530 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12531 handlebox_widget is != 0.
12532
125332008-03-16 Juri Linkov <juri@jurta.org>
12534
12535 * callint.c (Fcall_interactively): For interactive code letters
12536 'b' and 'B' put the buffer list into the list of default "future"
12537 values of the minibuffer.
12538
125392008-03-16 Andreas Schwab <schwab@suse.de>
12540
12541 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12542 modifiers.
12543
12544 * regex.c (re_match_2_internal): Correct matching of a charset
12545 against latin-1 characters.
12546
125472008-03-16 Kenichi Handa <handa@m17n.org>
12548
12549 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12550 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12551 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12552 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12553 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12554 CHAR_STRING_ADVANCE.
12555 (produce_chars): Fix for the case that the source and the
12556 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12557 instead of CHAR_STRING_ADVANCE.
12558 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12559 STRING_CHAR_ADVANCE.
12560
125612008-03-15 Andreas Schwab <schwab@suse.de>
12562
12563 * regex.c (re_match_2_internal): Correct matching of eight bit
12564 characters in unibyte strings.
12565
125662008-03-15 Martin Rudalics <rudalics@gmx.at>
12567
12568 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12569 at end of range when it coincides with the end of the buffer.
12570
125712008-03-14 Eli Zaretskii <eliz@gnu.org>
12572
12573 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12574
12575 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12576
125772008-03-14 Jason Rumney <jasonr@gnu.org>
12578
12579 * editfns.c (initial_tz): New variable.
12580 (syms_of_editfns): Initialize it.
12581 (Fset_time_zone_rule): Set it when first called.
12582 Use it when TZSTRING is nil.
12583
12584 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12585 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12586 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12587 (globals_of_w32fns): Initialize them.
12588 (compute_tip_xy): Use them to position tooltips.
12589
125902008-03-14 Glenn Morris <rgm@gnu.org>
12591
12592 * emacs.c (main): Revert previous change.
12593 (standard_args): Revert -internal-script back to -scriptload,
12594 and remove the long-option form.
12595
125962008-03-13 Glenn Morris <rgm@gnu.org>
12597
12598 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12599 Remove option -enable-font-backend.
12600
126012008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12602
12603 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12604
126052008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12606
12607 * xterm.c (x_connection_closed): For GTK: If this is the last
12608 terminal just exit without closing the display.
12609
126102008-03-11 Jason Rumney <jasonr@gnu.org>
12611
12612 * w32font.c (w32font_full_name): Use floor to round.
12613
f0131492 126142008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12615
12616 * sound.c (alsa_configure): Declare vol at beginning of block.
12617
12618 * fontset.c (Ffontset_info): Remove extra semicolon.
12619
126202008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12621
12622 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12623 size of resulting string.
12624
126252008-03-10 Jason Rumney <jasonr@gnu.org>
12626
12627 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12628
126292008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12630
12631 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12632 Don't pretend as if characters with display property haven't been
12633 consumed for string-replacing-string case.
12634
126352008-03-08 Kim F. Storm <storm@cua.dk>
12636
12637 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12638 (get_next_display_element, next_element_from_string)
12639 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12640
126412008-03-08 Andreas Schwab <schwab@suse.de>
12642
12643 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12644
126452008-03-06 Jason Rumney <jasonr@gnu.org>
12646
12647 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12648 when charset not specified. Only translate ANSI to unicode when
12649 font_type is truetype.
12650 (w32font_coverage_ok): New function.
12651 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12652
126532008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12654
12655 * lread.c (Fread_char): Resolve modifiers.
12656 (Fread_char_exclusive): Likewise.
12657
12658 * character.c (char_resolve_modifier_mask): New function.
12659 (char_string): Use char_resolve_modifier_mask.
12660 (Fchar_resolve_modifiers): New function.
12661 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12662 function.
12663
126642008-03-04 Jason Rumney <jasonr@gnu.org>
12665
12666 * makefile.w32-in: Always include w32font.c in the build.
12667 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12668
126692008-03-04 Andreas Schwab <schwab@suse.de>
12670
12671 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12672 (versionclean): Likewise.
12673
126742008-03-04 Juanma Barranquero <lekktu@gmail.com>
12675
12676 * .cvsignore: Add oo.
12677
126782008-03-03 Andreas Schwab <schwab@suse.de>
12679
12680 * coding.c (decode_coding_object): Inhibit gap shrinking while
12681 decoding in place.
12682
126832008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12684
12685 * w32term.c: Remove unused include "gnu.h".
12686 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12687
12688 * gnu.h: Rename to ...
12689 * emacs-icon.h: ... this.
12690 * xterm.c: Use emacs-icon.h instead of gnu.h.
12691 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12692
126932008-03-03 Juanma Barranquero <lekktu@gmail.com>
12694
12695 * w32font.c: Include math.h.
12696
126972008-03-03 Jason Rumney <jasonr@gnu.org>
12698
12699 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12700 Compute options separately.
12701 (w32font_open_internal): Set glyph_idx before caching metrics.
12702
12703 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12704 Define if system headers don't.
12705 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12706 (w32font_encode_char): Don't declare here.
12707
12708 * w32font.c (Quniscribe, QCformat): New symbols.
12709 (syms_of_w32font): Define them.
12710 (w32font_has_char): Indicate uncertainty.
12711 (w32font_encode_char): Encode as glyph point. Make static.
12712 (recompute_cached_metrics): New function.
12713 (w32font_open_internal): Use it. Set font to use glyph points
12714 initially. Set format based on type of font.
12715 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12716 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12717 on it. Set format based on information available here.
12718 (add_font_entity_to_list): Identify backend based on opentype_only.
12719
127202008-03-02 Andreas Schwab <schwab@suse.de>
12721
12722 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12723
12724 * coding.c (decode_coding_big5, produce_chars):
12725 Fix typos in last change.
12726
127272008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12728
12729 * gnu.h: New icon.
12730
127312008-03-02 Kenichi Handa <handa@m17n.org>
12732
12733 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12734 `dos', don't decode '\r' if that is the last in the source.
12735 (decode_coding_utf_16, decode_coding_emacs_mule)
12736 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12737 (decode_coding_raw_text, decode_coding_charset): Likewise.
12738 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12739
127402008-03-01 Jason Rumney <jasonr@gnu.org>
12741
12742 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12743
127442008-03-01 Kim F. Storm <storm@cua.dk>
12745
12746 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12747
127482008-03-01 Jason Rumney <jasonr@gnu.org>
12749
12750 * w32font.c (w32font_full_name): New function.
12751 (w32font_open_internal): Use it.
12752
127532008-03-01 Kim F. Storm <storm@cua.dk>
12754
12755 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12756
127572008-03-01 Jason Rumney <jasonr@gnu.org>
12758
12759 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12760
127612008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12762
12763 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12764 xg_frame_resized when the event is for the edit widget.
12765
12766 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12767
12768 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12769 set_char_size.
12770 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12771 operations on widgets here. Just set frame size if needed.
12772 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12773 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12774 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12775 the whole frame.
12776 (xg_create_tool_bar): Move attachment of the tool bar to
12777 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12778 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12779
127802008-03-01 Jason Rumney <jasonr@gnu.org>
12781
12782 * w32fns.c (w32_msg_pump): Disable debug code.
12783
127842008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12785
12786 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12787
127882008-02-29 Chong Yidong <cyd@stupidchicken.com>
12789
12790 * xdisp.c (next_overlay_string): Don't set
12791 overlay_strings_at_end_processed_p if we're currently reading from
12792 a display string.
12793
127942008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12795
12796 * xdisp.c (get_overlay_strings_1): Fix typo.
12797
127982008-02-29 Chong Yidong <cyd@stupidchicken.com>
12799
12800 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12801
128022008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12803
12804 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12805
12806 * xdisp.c (display_mode_element): Cancel the previous change.
12807 (decode_mode_spec): Likewise.
12808 (handle_auto_composed_prop): Don't make composition if it->string
12809 is a string.
12810
128112008-02-27 Kim F. Storm <storm@cua.dk>
12812
12813 * lisp.h (GLYPH): Change type from int to struct with separate char
12814 and face_id members.
12815 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12816 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12817 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12818 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12819 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12820 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12821 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12822 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12823 handle new Lisp glyph code encoding, either an integer or a cons.
12824
12825 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12826 (GLYPH_ALIAS): Delete.
12827 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12828 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12829 (GLYPH_FROM_CHAR): Replace macro by ...
12830 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12831
12832 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12833 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12834 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12835 (GLYPH_INVALID_P): New macro.
12836 (spec_glyph_lookup_face): Update prototype.
12837
12838 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12839 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12840 new glyph code encoding.
12841 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12842 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12843
12844 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12845 Adapt to new glyph type and new glyph code encoding.
12846
12847 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12848
12849 * indent.c (current_column, current_column_1, Fmove_to_column)
12850 (compute_motion): Adapt to new glyph code encoding.
12851
12852 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12853
128542008-02-27 Chong Yidong <cyd@stupidchicken.com>
12855
12856 * process.c (wait_reading_process_output): Check for window
12857 changes caused by timers.
12858 Suggested by Johan Bockgård.
12859
128602008-02-27 Glenn Morris <rgm@gnu.org>
12861
12862 * emacs.c (USAGE1): Add `--disable-font-backend'.
12863
128642008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12865
12866 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12867 is made to the buffer.
12868
128692008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12870
12871 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12872 (face_at_string_position):
12873 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12874 (face_at_string_position):
12875 * xdisp.c (display_string, next_overlay_change):
12876 * buffer.h (overlays_at):
12877 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12878 Update callers.
12879
128802008-02-26 Chong Yidong <cyd@stupidchicken.com>
12881
12882 * editfns.c (Fformat): Doc fix.
12883
128842008-02-26 Juanma Barranquero <lekktu@gmail.com>
12885
12886 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12887 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12888 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12889
128902008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12891
12892 * buffer.c (Fbuffer_swap_text): New function.
12893 (syms_of_buffer): Defsubr it.
12894
128952008-02-25 Chong Yidong <cyd@stupidchicken.com>
12896
12897 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12898
128992008-02-25 Jason Rumney <jasonr@gnu.org>
12900
12901 * w32font.c (w32font_draw): Draw one character at a time when padding.
12902
129032008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12904
12905 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12906 Handle a nil arg. Use run_window_configuration_change_hook.
12907 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12908 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12909 Use run_window_configuration_change_hook.
12910
129112008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12912
12913 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12914 1-pixel width.
12915
129162008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12917
12918 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12919 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12920 if the glyph in the font is zero pixel with.
12921
12922 * dispextern.h (struct glyph_string): New member padding_p.
12923
12924 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12925
12926 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12927
12928 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12929
12930 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12931
12932 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12933
129342008-02-25 Jason Rumney <jasonr@gnu.org>
12935
12936 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12937
129382008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12939
12940 Allow fine-grained image-cache flushing.
12941 * dispextern.h (struct image): Add `dependencies' field.
12942 (clear_image_caches): Change arg to Lisp_Object.
12943 * image.c (make_image): Initialize `dependencies' field.
12944 (clear_image_cache): Change arg to allow fine-grained flushing.
12945 Perform the flush even if image-cache-eviction-delay is nil.
12946 (clear_image_caches): Change arg to Lisp_Object.
12947 (Fclear_image_cache): Expand meaning of the argument.
12948 (mark_image): Mark `dependencies' field.
12949 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12950 (lface_hash): Use XHASH rather than XFASTINT.
12951 (face_at_buffer_position): Fix int -> EMACS_INT position.
12952 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12953 (select_frame_for_redisplay): Remove code duplication.
12954 (redisplay_internal): Adapt arg to call to clear_image_caches.
12955
129562008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12957
12958 * s/vms4-0.h:
12959 * s/vms4-2.h:
12960 * s/vms4-4.h:
12961 * s/vms5-5.h: Remove, unused.
12962
12963 * s/irix5-2.h:
12964 * s/irix6-0.h:
12965 * s/riscos5.h:
12966 * s/mach-bsd4-3.h:
12967 * m/mips4.h: Remove files for obsolete systems.
12968
12969 * Makefile.in:
12970 * filelock.c:
12971 * unexmips.c:
12972 * m/hp9000s300.h:
12973 * m/iris4d.h:
12974 * s/aix3-1.h:
12975 * s/hpux.h:
12976 * s/msdos.h:
12977 * s/usg5-0.h:
12978 * s/usg5-2-2.h:
12979 * s/usg5-2.h:
12980 * s/usg5-3.h: Remove references to obsolete variables.
12981
12982 * s/irix5-0.h: Remove, move all the contents ...
12983 * s/irix6-5.h: ... here. Simplify.
12984 * config.in: Regenerate.
12985
129862008-02-24 Jason Rumney <jasonr@gnu.org>
12987
12988 * w32term.c (x_draw_glyph_string_background): Clear the background
12989 manually when cleartype is in use.
12990 (x_draw_glyph_string_foreground): Draw text transparently when
12991 cleartype is in use.
12992
12993 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12994 a font into it unless we have to.
12995
129962008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12997
12998 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12999 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13000
aac0c6e3
MR
130012008-02-18 Jason Rumney <jasonr@gnu.org>
13002
13003 * w32fns.c (Fw32_shell_execute): Encode parameters.
13004
130052008-02-09 Eli Zaretskii <eliz@gnu.org>
13006
13007 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13008
130092008-02-05 Juanma Barranquero <lekktu@gmail.com>
13010
13011 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13012
130132008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13014
13015 * xterm.c (x_set_offset): Don't change the gravity if
13016 CHANGE_GRAVITY is -1.
13017
130182008-02-23 Chong Yidong <cyd@stupidchicken.com>
13019
13020 * fileio.c (auto_save_error_occurred): New var.
13021 (auto_save_error): Set it.
13022 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13023 error occurred.
13024
130252008-02-23 Eli Zaretskii <eliz@gnu.org>
13026
13027 * w32.c (globals_of_w32): Add initializations for
13028 g_b_init_get_sid_sub_authority and
13029 g_b_init_get_sid_sub_authority_count.
13030
130312008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13032
13033 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13034 (font_parse_xlfd): Use them for sanity check.
13035 (Finternal_set_font_style_table): Make sure the table is bijective.
13036
13037 Consolidate the image_cache to the terminal struct.
13038 * termhooks.h (P_): Remove redundant def.
13039 (struct terminal): New field `image_cache'.
13040 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13041 of FRAME_X_IMAGE_CACHE.
13042 * xterm.h (struct x_display_info): Remove image_cache field.
13043 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13044 * w32term.h (struct w32_display_info): Remove image_cache field.
13045 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13046 * macterm.h (struct mac_display_info): Remove image_cache field.
13047 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13048 * xterm.c (x_term_init):
13049 * w32term.c (w32_term_init):
13050 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13051 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13052 Remove declarations.
13053 (clear_image_caches, mark_image_cache): New declarations.
13054 * xfaces.c (clear_face_cache):
13055 * xdisp.c (redisplay_internal): Use clear_image_caches.
13056 * image.c (clear_image_cache): Don't check that a frame is on
13057 a window-system before checking if it shares the same cache.
13058 (clear_image_caches): New function.
13059 (Fclear_image_cache): Use it.
13060 (mark_image): Move from allo.c.
13061 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13062 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13063 (mark_object): Don't call mark_image_cache for frames.
13064 (mark_terminals): Call mark_image_cache.
13065
13066 * lisp.h (Fdelete_terminal): Declare.
13067
13068 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13069 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13070 wrong_type_argument.
13071
130722008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13073
13074 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13075 malayalam.el, and tamil.el. Add sinhala.el.
13076
130772008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13078
13079 * xterm.c (x_connection_closed): Consolidate identical tests.
13080 (x_delete_terminal): Don't crash if called via x_connection_closed.
13081
130822008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13083
13084 * xdisp.c (decode_mode_spec): New arg string.
13085 (display_mode_element): Adjust for the above change.
13086
130872008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13088
13089 * callint.c (Fcall_interactively): Use AREF.
13090
130912008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13092
13093 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13094
130952008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13096
13097 * xfns.c (Fx_show_tip): Set string to " " if empty.
13098
130992008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13100
13101 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13102 with Qt.
13103
131042008-02-17 Kenichi Handa <handa@m17n.org>
13105
13106 * ftfont.c (ftfont_shape): Return Lispy number.
13107
13108 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13109 for GCs.
13110 (Finternal_set_font_selection_order): Call font_update_sort_order
13111 only when enable_font_backend is set.
13112 (realize_x_face): Set face->font_info to that of default face only
13113 when enable_font_backend is set.
13114
13115 * xdisp.c (handle_composition_prop): Set it->c to the fist
13116 character of the composed region.
13117 (fill_composite_glyph_string): Set base_face->font_info to
13118 s->font_info. Get a face for ascii from base_face->ascii_face.
13119 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13120 with a face already decided.
13121 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13122 non-negative.
13123 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13124 call font_prepare_composition unconditionally.
13125
13126 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13127
13128 * xterm.h (struct x_display_info): New member font.
13129
13130 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13131 (x_set_mouse_face_gc, x_new_font): Likewise.
13132 (x_term_init): Setup display_info->font.
13133 (x_delete_terminal): Free display_info->font.
13134
13135 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13136
13137 * ftxfont.c (ftxfont_default_fid): Delete it.
13138 (ftxfont_open): Set xfont->fid to 0.
13139 (ftxfont_end_for_frame): Clear data specific to the frame and the
13140 font-driver.
13141
13142 * xftfont.c (xftfont_default_fid): Delete it.
13143 (xftfont_open): Set xfont->fid to 0.
13144
13145 * fontset.c (FONTSET_OBJLIST): New macro.
13146 (fontset_find_font): Update font-object list of the fontset.
13147 (free_realized_fontset): New function.
13148 (free_face_fontset): Call free_realized_fontset.
13149 (Ffont_info): Call font_close_object only when enable_font_backend
13150 is set.
13151
13152 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13153 [HAVE_NTGUI]: Include w32term.h.
13154 [MAC_OS]: Include macterm.ch.
13155 (font_otf_ValueRecord): Use make_number.
13156 (font_finish_cache): Fix handling of reference count.
13157 (font_clear_cache): Update num_fonts.
13158 (font_open_entity): Update smallest_char_width and
13159 smallest_font_height of the frame.
13160 (font_close_object): Update num_fonts.
13161 (Fclear_font_cache): Fix finding the target cache data.
13162
131632008-02-16 Glenn Morris <rgm@gnu.org>
13164
13165 * fontset.c (Finternal_char_font): Fix compilation warning.
13166
131672008-02-16 Eli Zaretskii <eliz@gnu.org>
13168
13169 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13170 instead of char arrays. Enlarge the size of array passed to
13171 get_token_information.
13172
13173 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13174 warnings.
13175
131762008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13177
13178 * .gdbinit: Don't set `args', it breaks gdb --args.
13179
131802008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13181
13182 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13183 within a narrowed buffer.
13184
131852008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13186
13187 * coding.c (decode_coding_object, encode_coding_object):
13188 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13189
131902008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13191
13192 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13193 hardcoding 1.
13194 (detect_coding_system):
13195 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13196 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13197 * insdel.c (insert_from_gap):
13198 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13199 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13200 (string_to_multibyte):
13201 * character.c (chars_in_text, multibyte_chars_in_text):
13202 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13203
13204 * character.h (FETCH_STRING_CHAR_ADVANCE)
13205 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13206 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13207 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13208
13209 * casefiddle.c (casify_region): Only call after-change and composition
13210 functions on the part of the region that was changed.
13211
13212 * keyboard.c (read_avail_input):
13213 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13214
132152008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13216
13217 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13218 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13219
132202008-02-11 Juanma Barranquero <lekktu@gmail.com>
13221
13222 * w32menu.c (push_submenu_start, push_submenu_end)
13223 (push_left_right_boundary, push_menu_pane, push_menu_item):
13224 * keyboard.c (read_key_sequence): Don't pass args with side effects
13225 to AREF, it fails when compiling with -DENABLE_CHECKING.
13226
132272008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13228
13229 * Makefile.in (${lispsource}international/charprop.el):
13230 Delete this target.
13231
13232 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13233 emacs-unicode-2.
13234
132352008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13236
13237 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13238
132392008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13240
13241 * frame.c (Qnoelisp): New symbol.
13242 (syms_of_frame): Initialize it.
13243 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13244 harmless Elisp code, from a strong `force' from x_connection_closed.
13245 * frame.h (Qnoelisp): Declare.
13246 * xterm.c (x_connection_closed): Pass `noelisp'.
13247
13248 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13249 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13250 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13251 rather than `int' for the type of `type'.
13252
132532008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13254
13255 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13256
13257 * Makefile.in (GNUC): Remove support for gcc-1.x.
13258
132592008-02-10 Richard Stallman <rms@gnu.org>
13260
13261 * lisp.h (ASET): Use AREF, not ASLOT.
13262
132632008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13264
13265 * lisp.h (ASET): Check bounds.
13266
132672008-02-10 Glenn Morris <rgm@gnu.org>
13268
13269 * buffer.c (mode-name): Doc fix.
13270
132712008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13272
13273 * Makefile.in:
13274 * emacs.c:
13275 * gmalloc.c:
13276 * keyboard.c:
13277 * lisp.h:
13278 * m/ibm370aix.h:
13279 * process.c:
13280 * regex.c:
13281 * s/hpux.h:
13282 * sysdep.c:
13283 * sysselect.h:
13284 * systty.h:
13285 * unexec.c:
13286 * w32term.c:
13287 * xsmfns.c:
13288 * xterm.c: Remove code that deals with obsolete variables.
13289
13290 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13291
13292 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13293 nothing else needs it anymore.
13294
132952008-02-09 Eli Zaretskii <eliz@gnu.org>
13296
13297 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13298 instead of unibyte_char_to_multibyte.
13299
133002008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13301
13302 * s/gnu-linux.h: Remove commented out code.
13303
13304 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13305
13306 * Makefile.in: Update what RMS says about using autoconf.
13307 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13308 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13309 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13310 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13311
133122008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13313
13314 * keymap.c (Fkey_description): Move side effect outside of macro call.
13315
13316 * xfaces.c (Finternal_make_lisp_face):
13317 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13318
13319 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13320 (syms_of_fontset): Use ASET.
13321
13322 * fns.c (concat): Move side effect outside of macro call.
13323 (hash_clear): Use ASET.
13324
133252008-02-08 Richard Stallman <rms@gnu.org>
13326
13327 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13328 If FORCE, and frame has a surrogate minibuffer for another frame,
13329 delete the other frame first.
13330
133312008-02-07 Timo Savola <timo.savola@iki.fi>
13332
13333 * xterm.c (x_detect_focus_change): Handle embed client message.
13334 (handle_one_xevent): Ditto.
13335 (handle_one_xevent): If embedded and we get a button press/release,
13336 request focus.
13337 (xembed_set_info, xembed_send_message): New functions.
13338 (x_make_frame_visible): Call xembed_set_info if embedded.
13339 (x_make_frame_invisible): Call xembed_set_info if embedded.
13340 (x_term_init): Initialize Xatom_XEMBED.
13341 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13342 (x_iconify_frame): Ditto.
13343
13344 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13345 (enum xembed_info, enum xembed_message, enum xembed_focus)
13346 (enum xembed_modifier, enum xembed_accelerator): New.
13347 (xembed_set_info, xembed_send_message): Declare.
13348 (FRAME_X_EMBEDDED_P): New.
13349
13350 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13351 gtk_plug_new.
13352
13353 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13354 window ID of a frame.
13355 (x_window): Reparent frame if embedded.
13356 (Fx_create_frame): Don't set border width if embedded.
13357
13358 * emacs.c (USAGE3): Add --parent-id.
13359 (standard_args): Ditto.
13360
133612008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13362
13363 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13364
133652008-02-07 Jim Meyering <meyering@redhat.com>
13366
13367 Use "do...while (0)", not "if (1)...else" in macro definitions.
13368 The latter provokes a warning from gcc about the empty else, when
13369 followed by ";". Also, without that trailing semicolon, it would
13370 silently swallow up any following statement.
13371 * syntax.h (SETUP_SYNTAX_TABLE)
13372 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13373 * buffer.h (DECODE_POSITION): Likewise.
13374 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13375 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13376 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13377 (FETCH_CHAR_ADVANCE): Likewise.
13378 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13379
133802008-02-07 Jim Meyering <meyering@redhat.com>
13381
13382 * lread.c [lint]: Don't include <sys/inode.h>.
13383
133842008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13385
13386 * xselect.c (x_handle_dnd_message):
13387 * xmenu.c (digest_single_submenu, xmenu_show):
13388 * xdisp.c (with_echo_area_buffer_unwind_data)
13389 (format_mode_line_unwind_data, unwind_format_mode_line)
13390 (display_menu_bar):
13391 * eval.c (Ffetch_bytecode):
13392 * doc.c (store_function_docstring):
13393 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13394 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13395 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13396
133972008-02-07 Kenichi Handa <handa@m17n.org>
13398
13399 * ftxfont.c (ftxfont_open): Don't set
13400 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13401
13402 * ftfont.c (ftfont_open): Fix previous change.
13403
134042008-02-06 Jason Rumney <jasonr@gnu.org>
13405
13406 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13407 Use cached metrics for ASCII characters.
13408 (w32font_open_internal): Don't set font's owning_frame.
13409 Cache metrics for ASCII characters.
13410
13411 * w32font.h (struct w32font_info): Add ascii_metrics.
13412 Remove owning_frame.
13413
134142008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13415
13416 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13417 to negative value.
13418
13419 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13420
13421 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13422
13423 * charset.c (syms_of_charset): Set QCtest and Qeq.
13424
134252008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13426
13427 * process.c (Fstart_process):
13428 * callproc.c (Fcall_process): Handle the case where
13429 Funhandled_file_name_directory returns nil.
13430
13431 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13432 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13433 * font.c (check_gstring): Use them and AREF to access the vector before
13434 we know it's really a gstring.
13435 (Ffont_shape_text): Fix typo.
46e722a9 13436 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13437
13438 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13439 Declare.
13440
13441 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13442
134432008-02-05 Jason Rumney <jasonr@gnu.org>
13444
13445 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13446 Set smallest_font_height and smallest_char_width in display info.
13447
134482008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13449
13450 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13451
134522008-02-05 Miles Bader <miles@gnu.org>
13453
13454 * xfaces.c (get_lface_attributes, merge_named_face)
13455 (lookup_named_face, lookup_derived_face, realize_named_face):
13456 Revert 2008-02-01 change by cyd@stupidchicken.com.
13457
134582008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13459
13460 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13461 fallback fonts.
13462 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13463
134642008-02-04 Jason Rumney <jasonr@gnu.org>
13465
13466 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13467 set full_name.
13468 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13469
134702008-02-03 Jason Rumney <jasonr@gnu.org>
13471
13472 * makefile.w32-in (OBJ1): Include font.o here.
13473 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13474
134752008-02-02 Jason Rumney <jasonr@gnu.org>
13476
13477 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13478
134792008-02-01 Jason Rumney <jasonr@gnu.org>
13480
13481 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13482
13483 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13484
134852008-02-01 Andreas Schwab <schwab@suse.de>
13486
13487 * Makefile.in (shortlisp, lisp): Update for rename of
13488 ../lisp/language/myanmar.el.
13489
134902008-02-01 Chong Yidong <cyd@stupidchicken.com>
13491
13492 * xfaces.c (get_lface_attributes): Delete function.
13493 (merge_named_face, lookup_named_face, lookup_derived_face)
13494 (realize_named_face): Call lface_from_face_name directly, and use
13495 the fact that merge_face_vectors does not alter its FROM argument.
13496
134972008-02-01 Jason Rumney <jasonr@gnu.org>
13498
13499 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13500 input in the default locale. Handle non-Unicode multibyte input.
13501
135022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13503
13504 * fontset.c (reorder_font_vector): Exclude nil elements from the
13505 font group. Don't try multiple fonts.
13506 (fontset_font): Adjust for the above change.
13507 (Finternal_char_font): Return nil if the found font doesn't
13508 contain the character ch.
13509
13510 * Makefile.in (lisp, shortlisp): Add cham.el.
13511
135122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13513
13514 * font.h (FONTP): Make it return 1 also for a font-object.
13515
13516 * .gdbinit (xfontset): New function.
13517
13518 * font.c (font_find_for_lface): Check if the character C is
13519 supported or not only for the first font.
13520
13521 * fontset.c (reorder_font_vector): Fix typo.
13522 (fontset_find_font): Don't add a font-spec specifying a script.
13523 Use 0 (not Qt) for the indication of empty font-group. Change the
13524 format of RFONT-DEF. Return Qt if no font in the font-group
13525 support the character.
13526 (fontset_font): Adjust for the above change. If no font was
13527 found the character, remember that.
13528 (face_for_char): Adjust for the change of RFONT-DEF.
13529 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13530 no font for the target.
13531 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13532
135332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13534
13535 * font.c (font_load_for_face): Handle the case that the font in
13536 face->lface is a string.
13537
135382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13539
13540 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13541
135422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13543
13544 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13545 Fix previous change. If the frame is not on a window system,
13546 signal an error.
13547
135482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13549
13550 * coding.c (decode_coding_object, encode_coding_object): Adjust
13551 marker positions after conversion.
13552
13553 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13554
135552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13556
13557 * font.c (font_find_for_lface): Fix the handling of the return
13558 value of font_has_char.
13559 (Ffont_shape_text): Fix previous change.
13560
13561 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13562 (fontset_ref_and_range): Delete it.
13563 (fontset_find_font): Call char_table_ref_and_range instead of
13564 FONTSET_REF_AND_RANGE.
13565 (make_fontset): Don't setup font groups of Latin here.
13566 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13567 (new_fontset_from_font): Make the specified font the default for
13568 all Latin characters.
13569
135702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13571
13572 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13573 is on a window system before accessing the fontset of the frame.
13574
135752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13576
13577 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13578
13579 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13580 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13581
13582 * font.c (Ffont_shape_text): If the font driver doesn't have a
13583 shaper function, make zero-width glyphs to have at least one-pixel
13584 width. Fix setting of `to' field of glyphs.
13585
135862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13587
13588 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13589 glyphs.
13590
13591 * font.h (struct font_driver): Improve docstring of member `shape'.
13592
135932008-02-01 Kenichi Handa <handa@m17n.org>
13594
13595 * composite.c (syms_of_composite): Fix docstring of
13596 auto-composition-function.
13597
13598 * font.h (LGLYPH_SIZE): New macro.
13599
13600 * font.c (Ffont_fill_gstring): Stop filling when a character not
13601 supported by the font is found.
13602 (Ffont_shape_text): When a shape callback function returns nil,
13603 try at most two more times with larger gstring.
13604 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13605
13606 * xdisp.c (handle_auto_composed_prop): Change the argument to
13607 auto-composition-function.
13608
13609 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13610 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13611 Lispy glyph and store it in the lgstring.
13612
13613 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13614
13615 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13616
136172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13618
13619 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13620
13621 * fontset.c (Vfont_encoding_charset_alist): New variable.
13622 (syms_of_fontset): DEFVAR it.
13623 (reorder_font_vector, fontset_find_font): Optimize for the case of
13624 no need of reordering.
13625 (face_for_char): Map the charset property by
13626 Vfont_encoding_charset_alist.
13627
136282008-02-01 Jason Rumney <jasonr@gnu.org>
13629
13630 * w32font.c (logfonts_match): Don't check adstyle here.
13631 (font_matches_spec): Check here against physical font instead.
13632 (add_font_entity_to_list): Avoid some substitutions.
13633
13634 * font.c (font_parse_fcname): Default weight and slant to normal.
13635 (font_score): Prefer normal fonts if weight or slant unspecified.
13636 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13637 match freetype scores.
13638
136392008-02-01 Jason Rumney <jasonr@gnu.org>
13640
13641 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13642 font, as it may have been deleted.
13643 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13644 most common hyphenless variation.
13645 (logfonts_match): Check generic family.
13646 (font_matches_spec): Don't check generic family here.
13647 (fill_in_logfont): Set generic family based on adstyle.
13648
13649 * w32font.h (w32font_get_cache): Update declaration.
13650
136512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13652
13653 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13654
13655 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13656 If none of the new drivers are available, call font_update_drivers
13657 with the old drivers.
13658
13659 * w32font.c (w32font_get_cache): Adjust the argument type.
13660
13661 * xfont.c (xfont_get_cache): Adjust the argument type.
13662
13663 * font.h (struct font_driver): Change argument type of get_cache.
13664
13665 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13666
13667 * font.c (Ffont_get): Fix arguments to Fassoc.
13668 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13669 (font_clear_cache): New function.
13670 (font_list_entities, font_matching_entity): Use font_get_cache.
13671 (font_update_drivers): Call font_clear_cache when finishing a driver.
13672
13673 * fontset.c (fontset_find_font): Fix previous change.
13674
136752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13676
13677 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13678 dpyinfo->font_table.
13679 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13680 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13681
13682 * font.c (font_at): Handle the case that the arg C is negative.
13683 Handle the unibyte case.
13684 (Ffont_at): Call font_at with the arg C -1.
13685
13686 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13687 the position here, and call font_at with the arg C -1.
13688 Don't check the range of the existing composition at the point.
13689
136902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13691
13692 * fontset.c (fontset_add): New args charset_id and family.
13693 Change caller.
13694 (load_font_get_repertory, fontset_find_font): Assume that
13695 font_spec is always a font-spec object.
13696 (Fset_fontset_font): Always store a font-spec object in a fontset.
13697
13698 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13699 instead of get_property_and_range.
13700
137012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13702
13703 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13704 (xftfont_open): Don't keep locking face.
13705 (xftfont_close): Don't unlock face.
13706 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13707
13708 * fontset.c (fontset_find_font): Don't prefer a font of
13709 supplementary charset.
13710
137112008-02-01 Kenichi Handa <handa@m17n.org>
13712
13713 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13714 script, langsys_tag to langsys, new member script.
13715 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13716 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13717 listing to the script specified in that property. Fix arg to
13718 OTF_check_features.
13719
137202008-02-01 Jason Rumney <jasonr@gnu.org>
13721
13722 * w32font.h: New file.
13723
13724 * w32font.c: Include it.
13725 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13726 (w32font_open): Set owning_frame.
13727 (w32font_text_extents): Use owning_frame.
13728 (struct font_callback_data): Add opentype_only field.
13729 (add_font_entity_to_list): Use it to filter fonts.
13730 Don't check against full name.
13731 (w32font_list_internal): New function.
13732 (w32font_list): Use it.
13733 (w32font_match_internal): New function.
13734 (w32font_match): Use it.
13735 (w32font_open_internal): New function.
13736 (w32font_open): Use it.
13737 (w32font_get_cache, w32font_close, w32font_has_char)
13738 (w32font_encode_char, w32font_text_extents, w32font_draw):
13739 Make non-static.
13740
13741 * makefile.w32-in (w32font.o): Depend on w32font.h.
13742
137432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13744
13745 * charset.c (Fdefine_charset_internal): Record a supplementary
13746 charset at the tail of Vcharset_order_list.
13747
13748 * font.c (Ffont_shape_text): Fix the return value.
13749
13750 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13751
13752 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13753
137542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13755
13756 * ftfont.c (struct OpenTypeSpec): New struct.
13757 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13758 (ftfont_get_open_type_spec): New function.
13759 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13760
13761 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13762
137632008-02-01 Jason Rumney <jasonr@gnu.org>
13764
13765 * w32font.c (add_font_entity_to_list): Compare only the beginning
13766 of full name.
13767
137682008-02-01 Kenichi Handa <handa@m17n.org>
13769
13770 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13771 Never return HANDLED_RECOMPUTE_PROPS.
13772
137732008-02-01 Kenichi Handa <handa@m17n.org>
13774
13775 * font.c (font_gstring_produce): Delete it.
13776
13777 * composite.h (COMPOSITION_METHOD):
13778 Handle COMPOSITION_WITH_GLYPH_STRING.
13779
137802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13781
13782 * xfont.c (Qx): Delete.
13783 (syms_of_xfont): Don't initialize Qx.
13784
13785 * composite.h (enum composition_method):
13786 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13787
137882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13789
13790 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13791 (choose_face_font): Accept new form of font-spec.
13792
13793 * frame.h (font_driver_list): Declare it unconditionally.
13794 (struct frame): Define members font_driver_list and font_data_list
13795 unconditionally.
13796
13797 * fontset.c: Include "font.h" unconditionally.
13798 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13799 (Fset_fontset_font): Accept a font-spec object.
13800
13801 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13802 PIXEL_SIZE part a wild card.
13803
13804 * dispextern.h (struct glyph_string): Define members clip and
13805 num_clips unconditionally.
13806 (struct face): Define members font_info and extra unconditionally.
13807
13808 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13809 ftfont_info only when HAVE_LIBOTF is defined.
13810
138112008-02-01 Andreas Schwab <schwab@suse.de>
13812
13813 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13814 and end.
13815
138162008-02-01 Jason Rumney <jasonr@gnu.org>
13817
13818 * w32font.c (w32font_driver): Add new fields.
13819
138202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13821
13822 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13823 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13824 (LIBES): Add @M17N_FLT_CFLAGS@.
13825
13826 * composite.c (compose_text): Don't treat the new style
13827 composition specially.
13828
13829 * emacs.c (main): Call syms_of_font unconditionally.
13830
13831 * font.h (FONT_ENTITY_NOT_LOADABLE)
13832 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13833 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13834 (struct font_driver): New member shape.
13835 (font_registry_charsets): Extern it.
13836 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13837 (font_otf_capability, font_drive_otf): Delete their externs.
13838
13839 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13840 (font_charset_alist, font_registry_charsets): Move from xfont.c
13841 and rename.
13842 (font_prop_validate_otf): New function.
13843 (font_property_table): Register it for QCotf.
13844 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13845 (font_drive_otf): Delete.
13846 (font_prepare_composition): New arg F. Adjust for the change of
13847 lispy gstring.
13848 (font_find_for_lface): New arg C.
13849 (font_load_for_face): Adjust for the change of font_find_for_lface.
13850 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13851 lispy gstring.
13852 (Ffont_shape_text): New function.
13853 (Fopen_font): If the font size is not given, use 12-pixel.
13854 (Ffont_at): New arg STRING.
13855 (syms_of_font): Initalize font_charset_alist.
13856 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13857 conditionally.
13858
13859 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13860 fonts of the same font-spec. Change the format of RFONT-DEF.
13861 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13862 Adjust for the change of RFONT-DEF.
13863 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13864
13865 * ftfont.h: New file.
13866
13867 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13868 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13869 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13870 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13871 font_otf_capability and font_drive_otf, set ftfont_shape.
13872 (ftfont_list): Adjust for the change of :otf property value.
13873 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13874 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13875 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13876 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13877 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13878 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13879
13880 * w32term.c (x_draw_composite_glyph_string_foreground):
13881 Adjust for the change of lispy gstring.
13882
13883 * xdisp.c (handle_composition_prop): Adjust for the change of
13884 lispy gstring. Call a function for auto-composition with the
13885 third arg it->window.
13886 (fill_composite_glyph_string): Adjust for the change of lispy string.
13887 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13888
13889 * xfaces.c (set_font_frame_param): Adjust for the change of
13890 font_find_for_lface.
13891
13892 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13893 (xfont_registry_charsets): Likewise. Change caller.
13894 (syms_of_xfont): Don't handle x_font_charset_alist.
13895
13896 * xftfont.c: Include "ftfont.h".
13897 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13898 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13899 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13900 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13901 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13902 Set xftfont_driver.shape to xftfont_shape.
13903
13904 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13905 the change of lispy gstring.
13906
139072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13908
13909 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13910
139112008-02-01 Jason Rumney <jasonr@gnu.org>
13912
13913 * w32font.c (w32font_draw): Fill background manually.
13914
139152008-02-01 Jason Rumney <jasonr@gnu.org>
13916
13917 * font.c (Qfontp): Remove unused symbol.
13918 (QCantialias): New symbol.
13919 (syms_of_font): Define it.
13920 (font_property_table): Set a validator for QCantialias.
13921
13922 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13923 Define if not already.
13924 (QCfamily): Share with xfaces.c.
13925 (Qstandard, Qsubpixel, Qnatural): New symbols.
13926 (syms_of_w32font): Define them. Don't define QCfamily here.
13927 (w32_antialias_type, lispy_antialias_type): New functions.
13928 (w32_enumfont_pattern_entity): New arg requested_font.
13929 Set antialias parameter if non-default was requested.
13930 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13931
139322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13933
13934 * lread.c (read1): Undo the previous change.
13935
139362008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13937
13938 * frame.c (Fdelete_frame): Call font_update_drivers only when
13939 USE_FONT_BACKEND is defined.
13940
139412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13942
13943 * font.h (struct font_bitmap): New member bits_per_pixel.
13944 (struct font_driver): New members start_for_frame and end_for_frame.
13945 (struct font_data_list): New struct.
13946 (font_put_frame_data, font_get_frame_data): Extern them.
13947
13948 * frame.h (struct frame): New member font_data_list.
13949
13950 * font.c (font_update_drivers): Call driver->start_for_frame and
13951 driver->end_for_frame at proper timings.
13952 (font_put_frame_data, font_get_frame_data): New functions.
13953 (Ffont_spec): Add usage in the docstring.
13954
13955 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13956 (Fdelete_frame): Call font_update_drivers.
13957
13958 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13959 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13960 (xftfont_get_xft_draw): New function.
13961 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13962 (xftfont_end_for_frame): New function.
13963 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13964
13965 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13966 Change argument. Cache GCs in the per-frame data.
13967 (struct ftxfont_frame_data): New struct.
13968 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13969 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13970 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13971 (ftxfont_end_for_frame): New function.
13972 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13973
13974 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13975
139762008-02-01 Kenichi Handa <handa@m17n.org>
13977
13978 * xselect.c (Vselection_coding_system)
13979 (Vnext_selection_coding_system): Delete them.
13980 (syms_of_xselect): Don't declare selection-coding-system and
13981 next-selection-coding-system. They are declared in select.el.
13982
139832008-02-01 Jason Rumney <jasonr@gnu.org>
13984
13985 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13986
13987 * w32fns.c: Include imm.h.
13988 (get_composition_string_fn, get_ime_context_fn): New optional
13989 system functions.
13990 (globals_of_w32fns): Load them from imm32.dll.
13991 (ignore_ime_char): New flag.
13992 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13993 WM_IME_ENDCOMPOSITION messages.
13994
13995 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13996 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13997
139982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13999
14000 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14001 (READCHAR_REPORT_MULTIBYTE): New macro.
14002 (readchar): New 2nd arg MULTIBYTE.
14003 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14004 Make symbol's name multibyte according to the multibyteness of the
14005 source.
14006
140072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14008
14009 * xfaces.c (face_for_overlay_string): Call lookup_face with
14010 correct arguments (fix of synching with the trunk).
14011
140122008-02-01 Kenichi Handa <handa@m17n.org>
14013
14014 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14015 (font_prop_validate_non_neg, font_prop_validate_spacing):
14016 Delete argument prop_index.
14017 (font_property_table): Change arguments to validater. Change Callers.
14018 (font_lispy_object): Delete.
14019 (font_at): Use font_find_object instead fo font_lispy_object.
14020
140212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14022
14023 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14024 and file names.
14025
140262008-02-01 Jason Rumney <jasonr@gnu.org>
14027
14028 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14029 (font_matches_spec): Remove debug output.
14030 (add_font_entity_to_list): Avoid using substituted fonts.
14031
140322008-02-01 Jason Rumney <jasonr@gnu.org>
14033
14034 * doc.c (Fsnarf_documentation):
14035 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14036
140372008-02-01 Miles Bader <miles@gnu.org>
14038
14039 * dispextern.h (struct glyph_row): Only define "clip" field if
14040 HAVE_WINDOW_SYSTEM is defined.
14041
140422008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14043
14044 Fix up multi-tty merge.
14045
14046 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14047 and indentation.
14048
14049 * xfaces.c (free_realized_face, clear_face_gcs):
14050 Include font_done_for_face in the input_blocked section, just in case.
14051
14052 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14053 (get_char_face_and_encoding): Undo last change and remove the *other*
14054 duplicate definition (i.e. keep the one that's better scoped and that
14055 includes code for the font-backend).
14056
14057 * terminal.c (create_terminal): Default keyboard_coding to
14058 `no-conversion' and terminal_coding to `undecided'.
14059
14060 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14061
14062 * fontset.c (free_realized_fontsets): Check that the table entry does
14063 contain a fontset before trying to compare it to `base'.
14064
14065 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14066 syms_of_charset, and syms_of_coding earlier because init_window_once
14067 now needs Vcoding_system_hash_table to be setup.
14068
14069 * coding.h (default_buffer_file_coding): Remove.
14070
14071 * coding.c (default_buffer_file_coding): Remove.
14072 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14073 than ->symbol, and use the terminal-local coding system.
14074 (syms_of_coding): Don't setup the coding-systems that are not
14075 terminal-local.
14076 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14077
14078 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14079 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14080
14081 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14082 in chartab.c and were re-added here by mistake.
14083 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14084
14085 * doc.c (Fsnarf_documentation):
14086 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14087 src to etc.
14088
14089 * ChangeLog.10: Add mistakenly removed entry.
14090
140912008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14092
14093 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14094
140952008-02-01 Miles Bader <miles@gnu.org>
14096
14097 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14098 Add extra args to FACE_FOR_CHAR.
14099
141002008-02-01 Kenichi Handa <handa@m17n.org>
14101
14102 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14103 in sequence.
14104
14105 * chartab.c (map_sub_char_table, map_char_table): If the range
14106 contains just one character, call the function with that character
14107 even if the depth is not 3.
14108
141092008-02-01 Jason Rumney <jasonr@gnu.org>
14110
14111 * w32font.c (w32font_text_extents): Calculate metrics for the
14112 whole string.
14113
141142008-02-01 Jason Rumney <jasonr@gnu.org>
14115
14116 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14117
141182008-02-01 Jason Rumney <jasonr@gnu.org>
14119
14120 * w32term.c (x_set_glyph_string_clipping): Use
14121 get_glyph_string_clip_rects.
14122 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14123 Adjust for the change of struct glyph_string.
14124
14125 * w32font.c (w32font_draw): Do clipping here.
14126
141272008-02-01 Kenichi Handa <handa@m17n.org>
14128
14129 * xftfont.c (xftfont_draw): Adjust for the change of struct
14130 glyph_string.
14131
14132 * xterm.c (x_set_glyph_string_clipping): Use
14133 get_glyph_string_clip_rects.
14134 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14135 Adjust for the change of struct glyph_string.
14136
14137 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14138 the resulting clip(s}.
14139 (expose_overlaps): Add arg r. Change callers. Set it to
14140 row->clip temporarily.
14141 (expose_window): Redraw rows overlapping the exposed area.
14142
14143 * dispextern.h (struct glyph_row): New member clip.
14144 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14145 clip_height, new member clip, and num_clips.
14146
141472008-02-01 Kenichi Handa <handa@m17n.org>
14148
14149 * data.c (Fchar_or_string_p): Fix docstring.
14150
141512008-02-01 Kenichi Handa <handa@m17n.org>
14152
14153 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14154 create a temporary XftDraw object.
14155
141562008-02-01 Kenichi Handa <handa@m17n.org>
14157
14158 * font.c (Ffontp): Fix docstring.
14159
14160 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14161 strong evidence of ISO-2022.
14162
141632008-02-01 Kenichi Handa <handa@m17n.org>
14164
14165 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14166 SYNTAX_ENTRY_FOLLOW_PARENT.
14167
141682008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14169
14170 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14171 its type.
14172 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14173 Update to the new type of weak_hash_tables and next_weak.
14174
14175 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14176 a plain C pointer to Lisp_Hash_Table.
14177
14178 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14179 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14180 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14181 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14182 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14183 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14184 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14185 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14186 (GC_EQ): Remove since they've been identical to their non-GC_
14187 alter-egos ever since the markbit was eradicated.
14188
14189 * alloc.c:
14190 * buffer.c:
14191 * buffer.h:
14192 * data.c:
14193 * fileio.c:
14194 * filelock.c:
14195 * fns.c:
14196 * frame.h:
14197 * lisp.h:
14198 * macterm.c:
14199 * print.c:
14200 * process.c:
14201 * w32fns.c:
14202 * w32menu.c:
14203 * w32term.c:
14204 * xfns.c:
14205 * xmenu.c:
14206 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14207
142082008-02-01 Kenichi Handa <handa@m17n.org>
14209
14210 * chartab.c (map_sub_char_table): Make it work for the top-level
14211 char-table. Fix handling of parent char-table.
14212 (map_char_table): Adjust for the above change.
14213
142142008-02-01 Jason Rumney <jasonr@gnu.org>
14215
14216 * w32font.c (Qgdi): Rename from Qw32.
14217
142182008-02-01 Jason Rumney <jasonr@gnu.org>
14219
14220 * w32bdf.c (get_quoted_string): Make function static.
14221
142222008-02-01 Kenichi Handa <handa@m17n.org>
14223
14224 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14225 bigger ascent and descent than those of the font, use them as
14226 font's ascent and descent.
14227
142282008-02-01 Kenichi Handa <handa@m17n.org>
14229
14230 * Makefile.in (${lispsource}international/charprop.el): Move this
14231 target within "#ifdef HAVE_UNIDATA" and "#endif".
14232
142332008-02-01 Kenichi Handa <handa@m17n.org>
14234
14235 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14236 (shortlisp): Add ../lisp/language/tai-viet.el.
14237
142382008-02-01 Ulrich Mueller <ulm@gentoo.org>
14239
14240 * Makefile.in (${lispsource}international/charprop.el): Depend on
14241 temacs${EXEEXT}.
14242
142432008-02-01 Jason Rumney <jasonr@gnu.org>
14244
14245 * w32font.c (w32font_close): Delete the GDI font object.
14246
14247 * w32menu.c: Include character.h.
14248
14249 * w32proc.c: Likewise.
14250
14251 * w32select.c: Likewise.
14252
14253 * makefile.w32-in (w32proc.o): Depend on character.h.
14254
142552008-02-01 Jason Rumney <jasonr@gnu.org>
14256
14257 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14258
14259 * w32menu.c (syms_of_w32menu): Likewise.
14260
14261 * w32proc.c (syms_of_ntproc): Likewise.
14262
14263 * w32select.c (syms_of_w32select): Likewise.
14264
14265 * w32term.c (syms_of_w32term): Likewise.
14266
142672008-02-01 Jason Rumney <jasonr@gnu.org>
14268
14269 * w32font.c (w32font_draw): Delete brush after using it.
14270
142712008-02-01 Jason Rumney <jasonr@gnu.org>
14272
14273 * w32font.c (w32font_open): Don't set font_idx.
14274 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14275 to font settings.
14276 (w32font_draw): Fill background explicitly.
14277
142782008-02-01 Jason Rumney <jasonr@gnu.org>
14279
14280 * w32term.c (w32_initialize): Don't call w32font_initialize.
14281
14282 * w32font.c (w32font_info): Remove subranges.
14283 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14284 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14285 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14286 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14287 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14288 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14289 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14290 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14291 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14292 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14293 New symbols.
14294 (font_callback_data): New struct.
14295 (w32font_list, w32font_match): Use it.
14296 (w32font_open): Don't populate subranges.
14297 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14298 (w32font_encode_char): Always return unicode code-point as-is.
14299 (w32font_text_extents): Supply a transformation matrix to
14300 GetGlyphOutline. Never look up by glyph index. Avoid looping
14301 twice. Use unicode version of GetTexExtentPoint32 instead of
14302 glyph index version.
14303 (set_fonts_frame): Remove.
14304 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14305 set frame parameter. Use backward compatible fake foundries.
14306 Save generic family in extra slot under QCfamily. Make width slot
14307 constant. Save QCspacing value. Save list of scripts instead of
14308 binary subranges.
14309 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14310 (add_font_entity_to_list): Use font_callback_data struct. Filter
14311 unwanted fonts.
14312 (add_one_font_entity_to_list): Use font_callback_data struct.
14313 (w32_registry): Default to iso10646_1.
14314 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14315 string font registries. Don't fill in font name if it is a generic
14316 family name, fill family instead. Use spacing, family and script
14317 extra info to fill pitch, family and charset fields.
14318 (list_all_matching_fonts): Use font_callback_data struct.
14319 (unicode_range_for_char): Remove.
14320 (font_supported_scripts): New function.
14321 (w32font_initialize): Remove.
14322 (syms_of_w32font): Update which symbols are defined.
14323
143242008-02-01 Jason Rumney <jasonr@gnu.org>
14325
14326 * font.c (font_pixel_size): Reverse assq_no_quit args.
14327
14328 * w32term.h (FONT_WIDTH): Report max width, not average.
14329 (FONT_MAX_WIDTH): Remove.
14330 (FONT_AVG_WIDTH): New macro.
14331
14332 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14333 redefinition of FONT_WIDTH.
14334
14335 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14336 (w32_cache_char_metrics): Use FONT_WIDTH.
14337
14338 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14339
143402008-02-01 Jason Rumney <jasonr@gnu.org>
14341
14342 * w32font.c (w32font_open): Make lfHeight negative.
14343
14344 * w32fns.c (x_default_font_parameter): Use new style font name.
14345 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14346
143472008-02-01 Jason Rumney <jasonr@gnu.org>
14348
14349 * w32font.c (QCsubranges): New symbol.
14350 (w32font_open, w32font_has_char): Get subranges from subproperty
14351 of extra.
14352 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14353 (syms_of_w32font): Define :subranges symbol.
14354
14355 * font.c (font_put_extra): Expose externally.
14356
14357 * font.h (font_put_extra): Move declaration from font.c.
14358
14359 * font.c (Ffont_get): Use font driver to determine otf capability.
14360 (adjust_anchor): Check if driver defines anchor_point before using.
14361
14362 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14363 (w32font_draw): Use options.
14364 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14365 Fix detection of truetype fonts.
14366 (registry_to_w32_charset): Handle charsets other than iso8859-1
14367 expressed as lisp symbols.
14368 (w32_registry): Express charset as lisp symbol.
14369 (fill_in_logfont): Reverse pixel and point height logic.
14370 Don't set width here. Set quality to default.
14371
14372 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14373 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14374
14375 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14376 Remove redundant loop and allocation.
14377
14378 * makefile.w32-in (font.o, w32font.o): New objects.
14379 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14380 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14381
14382 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14383 STORE_XCHARB a valid l-value.
14384
14385 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14386 calculations for non-Truetype fonts.
14387 (x_draw_glyph_string): Sync with xterm.c.
14388 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14389 Remove redundant code.
14390 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14391
14392 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14393 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14394
14395 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14396 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14397
14398 * w32font.c: New file for w32 font backend.
14399
144002008-02-01 Kenichi Handa <handa@m17n.org>
14401
14402 * term.c: Don't include "buffer.h" twice.
14403
144042008-02-01 Kenichi Handa <handa@m17n.org>
14405
14406 * character.c (Funibyte_string): New function.
14407 (syms_of_character): Defsubr it.
14408
144092008-02-01 Jason Rumney <jasonr@gnu.org>
14410
14411 * w32term.c [USE_FONT_BACKEND]:
14412 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14413 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14414 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14415 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14416 (x_free_frame_resources): Sync with xterm.c.
14417
144182008-02-01 Andreas Schwab <schwab@suse.de>
14419
14420 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14421 char-table size.
14422
144232008-02-01 Kenichi Handa <handa@m17n.org>
14424
14425 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14426
144272008-02-01 Kenichi Handa <handa@m17n.org>
14428
14429 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14430 font_otf_gpos, add font_drive_otf.
14431
14432 * fontset.c (fontset_find_font): Pay attention to font size
14433 specified for a font.
14434 (reorder_font_vector): Check contents of font_def.
14435
14436 * font.c (struct otf_list): Delete it.
14437 (otf_list): Make it a lisp variable.
14438 (otf_open): Use lispy otf_list.
14439 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14440 (check_otf_features): New function.
14441 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14442 New functions.
14443 (font_drive_otf): New function merging font_otf_gsub and
14444 font_otf_gpos.
14445 (font_open_for_lface): New arg spec. Change argument order.
14446 (font_load_for_face): Adjust for the change of font_open_for_lface.
14447 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14448 Ffont_otf_gpos.
14449 (syms_of_font): Staticpro otf_list. Delete defsubr of
14450 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14451
14452 * xfaces.c (set_font_frame_param): Adjust for the change of
14453 font_open_for_lface.
14454
14455 * font.h (font_open_for_lface): Adjust prototype.
14456 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14457 member otf_drive.
14458 (font_otf_gsub, font_otf_gpos): Delete externs.
14459 (font_drive_otf): Extern it.
14460
144612008-02-01 Kenichi Handa <handa@m17n.org>
14462
14463 * font.c (font_at): If the window W is not on a window system,
14464 return Qnil.
14465
14466 * coding.c (produce_chars, encode_coding): Don't call
14467 insert_from_gap if no characters to produce.
14468
144692008-02-01 Kenichi Handa <handa@m17n.org>
14470
14471 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14472 Fclear_face_cache.
14473
14474 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14475
144762008-02-01 Miles Bader <miles@gnu.org>
14477
14478 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14479 Parse "--disable-font-backend" option.
14480 (standard_args): Add "--disable-font-backend" option.
14481
144822008-02-01 Kenichi Handa <handa@m17n.org>
14483
14484 * fontset.c (fontset_find_font): New function.
14485 (fontset_font): Use fontset_find_font.
14486 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14487 Register the specified font for all Latin characters.
14488 (new_fontset_from_font): Register the specified font for all Latin
14489 characters.
14490 (dump_fontset): For a realized fontset, include the base fontset
14491 name in the returned vector.
14492
144932008-02-01 Kenichi Handa <handa@m17n.org>
14494
14495 * character.h (CHAR_STRING): Cast C to unsigned on calling
14496 char_string.
14497
14498 * character.c (char_string): Type of arg C changed to unsigned.
14499 Signal an error if C is an invalid character code.
14500
14501 * editfns.c (general_insert_function, Fchar_to_string):
14502 Use CHARACTERP, not INTEGERP.
14503
145042008-02-01 Kenichi Handa <handa@m17n.org>
14505
14506 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14507 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14508
14509 * regex.c (analyse_first): Fix for multibyte characters in "case
14510 charset:" and "case categoryspec:".
14511
145122008-02-01 Andreas Schwab <schwab@suse.de>
14513
14514 * Makefile.in (LIBES): Move standard libraries to the end.
14515
145162008-02-01 Kenichi Handa <handa@m17n.org>
14517
14518 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14519 nonzero, don't shrink the buffer nextb.
14520
14521 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14522
14523 * coding.c (coding_alloc_by_making_gap): New arg offset.
14524 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14525 offset.
14526 (decode_coding_iso_2022): Update coding->safe_charsets.
14527 (decode_coding_gap): Temporarily set
14528 current_buffer->text->inhibit_shrinking to 1.
14529
145302008-02-01 Kenichi Handa <handa@m17n.org>
14531
14532 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14533 indexing into elements of s->cmp and s->char2b.
14534
145352008-02-01 Juanma Barranquero <lekktu@gmail.com>
14536
14537 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14538
145392008-02-01 Kenichi Handa <handa@m17n.org>
14540
14541 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14542 target_multibyte instead of multibyte.
14543 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14544 (bcmp_translate): Change the argument name from multibyte to
14545 target_multibyte.
14546
145472008-02-01 Kenichi Handa <handa@m17n.org>
14548
14549 These changes are to compile a regexp into a pattern that can be
14550 used both for multibyte and unibyte targets.
14551
14552 * Makefile.in (search.o): Depend on charset.h.
14553
14554 * character.c (multibyte_char_to_unibyte_safe): New function.
14555
14556 * search.c: Include "charset.h".
14557 (compile_pattern_1): Delete argument multibyte. Don't set
14558 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14559 (compile_pattern): Don't compare cp->buf.target_multibyte.
14560 Compare cp->buf.charset_unibyte.
14561 (compile_pattern): Set cp->buf.target_multibyte.
14562
14563 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14564
14565 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14566
14567 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14568 multibyte. Change callers.
14569 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14570 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14571 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14572 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14573 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14574 (regex_compile): Make the compiled pattern usable both for
14575 multibyte and unibyte targets.
14576 (analyse_first): Make the fastmap usable both for multibyte and
14577 unibyte targets.
14578 (TRANSLATE_VIA_MULTIBYTE): Delete.
14579 (re_match_2_internal): Pay attention to the case that the
14580 multibyteness of bufp and target may be different.
14581
145822008-02-01 Kenichi Handa <handa@m17n.org>
14583
14584 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14585 empty box occupy at least one column width.
14586
145872008-02-01 Miles Bader <miles@gnu.org>
14588
14589 * Makefile.in: Remove redundant HAVE_XFT clause.
14590
145912008-02-01 Kenichi Handa <handa@m17n.org>
14592
14593 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14594
145952008-02-01 Kenichi Handa <handa@m17n.org>
14596
14597 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14598 being nil.
14599
146002008-02-01 Kenichi Handa <handa@m17n.org>
14601
14602 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14603
146042008-02-01 Kenichi Handa <handa@m17n.org>
14605
14606 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14607
146082008-02-01 Kenichi Handa <handa@m17n.org>
14609
14610 * search.c (simple_search): Fix previous change.
14611
146122008-02-01 Kenichi Handa <handa@m17n.org>
14613
14614 * xftfont.c (ftfont_font_format): Extern declaration.
14615
14616 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14617
14618 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14619 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14620
14621 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14622 (ftfont_font_format): Fix previous change.
14623
14624 * font.h (Ffont_xlfd_name): EXFUN it.
14625
14626 * font.c (font_parse_xlfd): Fix the array size of `f'.
14627 (register_font_driver): Use EQ to compare driver->type.
14628
14629 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14630 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14631 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14632
146332008-02-01 Kenichi Handa <handa@m17n.org>
14634
14635 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14636 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14637
146382008-02-01 Kenichi Handa <handa@m17n.org>
14639
14640 * xfont.c (xfont_open): Set font->format.
14641
14642 * xftfont.c (xftfont_open): Set font->format.
14643
14644 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14645 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14646 (ftfont_open): Set font->format.
14647 (ftfont_font_format): New function.
14648
14649 * font.h (struct font): New member format.
14650
14651 * font.c (Qopentype): New variable.
14652 (syms_of_font): Defsym it.
14653 (Fquery_font): Change the format of the last element of the return
14654 value.
14655
146562008-02-01 Kenichi Handa <handa@m17n.org>
14657
14658 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14659 last resort.
14660
146612008-02-01 Kenichi Handa <handa@m17n.org>
14662
14663 * coding.c (detect_coding_charset): Fix detection of multi-byte
14664 charset.
14665
146662008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14667
14668 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14669
146702008-02-01 Kenichi Handa <handa@m17n.org>
14671
14672 * xdisp.c (get_next_display_element): Set it->face_id for the
14673 first component of a composition.
14674 (x_produce_glyphs): Check if the font is changed or not for composition.
14675
146762008-02-01 Kenichi Handa <handa@m17n.org>
14677
14678 * fontset.c (Qlatin): New variable.
14679 (syms_of_fontset): Define it as a lisp symbol.
14680 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14681
146822008-02-01 Kenichi Handa <handa@m17n.org>
14683
14684 * font.c (font_unparse_fcname): Pay attention to the case that
14685 some of font property is a null string.
14686
146872008-02-01 Kenichi Handa <handa@m17n.org>
14688
14689 * term.c: Include "composite.h".
14690 (encode_terminal_code): Output all components of composition.
14691 Check the size of encode_terminal_src.
14692 (produce_glyphs): For composition, call produce_composite_glyph.
14693 (append_composite_glyph, produce_composite_glyph): New functions.
14694
14695 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14696 is not found, get font_info from the current ascii face.
14697
146982008-02-01 Kenichi Handa <handa@m17n.org>
14699
14700 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14701 buffer-file-name to Qnil before calling insert_from_buffer.
14702
14703 * font.c (font_unparse_fcname): Pay attention to the case that
14704 foundry is a null string.
14705
147062008-02-01 Kenichi Handa <handa@m17n.org>
14707
14708 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14709
14710 * font.c (Qunicode_sip): New variable.
14711 (syms_of_font): Declare it as a Lisp symbol.
14712
14713 * font.h (Qunicode_sip): Extern it.
14714
147152008-02-01 Kenichi Handa <handa@m17n.org>
14716
14717 * composite.c (get_composition_id): Pay attention to TAB component.
14718
14719 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14720 TAB. Adjust for the change of s->char2b which always points to
14721 the first element of allocated memory.
14722
14723 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14724
14725 * xdisp.c (handle_composition_prop): Set it->c to the first
14726 non-TAB component.
14727 (fill_composite_glyph_string): Change argument.
14728 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14729 (x_produce_glyphs): Fix handling of left/right padding.
14730
147312008-02-01 Kenichi Handa <handa@m17n.org>
14732
14733 * coding.c (detect_coding_system): Fix for handling off
14734 inhibit_iso_escape_detection. Fix for the case that no coding
14735 system is defined for a specific coding category.
14736
147372008-02-01 Kenichi Handa <handa@m17n.org>
14738
14739 * font.c (font_matching_entity): Delete unused local var.
14740
14741 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14742 opening a font.
14743
14744 * fileio.c (Finsert_file_contents): On recovering a file, assume
14745 Unix-like eol.
14746 (choose_write_coding_system): On auto-saving a file, force
14747 Unix-like eol.
14748
14749 * coding.c (setup_coding_system): Fix setting of
14750 coding->common_flags based on eol_type.
14751 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14752 inherit from it.
14753
147542008-02-01 Kenichi Handa <handa@m17n.org>
14755
14756 * alloc.c (NSTATICS): Increas to 0x600.
14757
147582008-02-01 Kenichi Handa <handa@m17n.org>
14759
14760 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14761 (ftfont_list): Don't check :name property.
14762 (ftfont_match): New function.
14763 (ftfont_pattern_entity): If the pattern doesn't contain
14764 FC_SPACING, don't assume FC_MONO.
14765
14766 * font.h (struct font_driver): New member `match'.
14767 (font_update_drivers): Adjust prototype.
14768
14769 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14770 property of FONT.
14771 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14772 them unconditionally.
14773 (font_matching_entity): New function.
14774 (font_open_by_name): Try font_matching_entity if exact match is
14775 not found.
14776 (font_update_drivers): Delete the arg FONT. Return a list of
14777 actually used backends. Don't free faces, font caches here.
14778 Don't store data in frame parameters. Don't call x_set_font.
14779 (Ffont_spec): Store :name property as is.
14780 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14781 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14782 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14783 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14784 Call font->driver->otf_gsub instead of font_otf_gsub.
14785
14786 * frame.c (x_set_font_backend): Do more works that were done in
14787 font_update_drivers before.
14788
14789 * xfont.c (xfont_match): New function.
14790 (xfont_driver): Set xfont_driver.match to xfont_match.
14791 (xfont_draw): Set font in GC if necessary.
14792
14793 * ftxfont.c (ftxfont_match): New function.
14794 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14795
14796 * xftfont.c (xftfont_match): New function.
14797 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14798
147992008-02-01 Kenichi Handa <handa@m17n.org>
14800
14801 * font.h (struct font): New member scalable.
14802 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14803 (font_otf_gsub): Adjust prototype.
14804
14805 * font.c (font_otf_capability): Fix handling of the default langsys.
14806 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14807 Check the contents of SPEC.
14808 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14809 (check_gstring): New function.
14810 (REPLACEMENT_CHARACTER): New macro.
14811 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14812 glyph codes of GSTRING.
14813 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14814 (font_prepare_composition): Set cmp->glyph_len.
14815 (font_open_entity): Set font->scalable.
14816 (Ffont_get): Handle :otf property.
14817 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14818 functions.
14819 (Fquery_font): Use font->font.full_name.
14820 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14821 Sfont_otf_alternates.
14822
14823 * ftfont.c (ftfont_open): Set font->font.full_name and
14824 font->font.name properly. Fix calculation of font->font.height
14825 and font->min_width.
14826
14827 * ftxfont.c (ftxfont_create_gcs): New function.
14828 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14829 (ftxfont_draw_backgrond): Fix filling region.
14830 (ftxfont_default_fid): New function.
14831 (ftxfont_open): Set xfont->fid to the return value of
14832 ftxfont_default_fid.
14833 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14834 (ftxfont_done_face): Free only GCs that are created by
14835 ftxfont_create_gcs.
14836 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14837
14838 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14839 Clip to src->width, etc (not src->clip_XXX).
14840
14841 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14842 FontBackend frame parameter.
14843
148442008-02-01 Kenichi Handa <handa@m17n.org>
14845
14846 * font.h (struct font_driver_list): New member `on'.
14847 (Fclear_font_cache): EXFUN it.
14848 (font_update_drivers): Extern it.
14849
14850 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14851 (font_list_entities): Check driver_list->on.
14852 (register_font_driver): Initalize `on' member to 0.
14853 (font_update_drivers): New function.
14854 (Fclear_font_cache): Check driver_list->on.
14855
14856 * frame.h (Qfont_backend): Extern it.
14857 (x_set_font_backend): Extern it.
14858
14859 * frame.c (Qfont_backend): New variable.
14860 (frame_parms): New element for font-backend.
14861 (x_set_font_backend): New function.
14862
14863 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14864 FontBackend frame parameter.
14865 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14866 x_set_font_backend.
14867
14868 * xfont.c (xfont_list): Don't try listing by :name property if the
14869 name is not for XLFD.
14870
148712008-02-01 Kenichi Handa <handa@m17n.org>
14872
14873 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14874 (LGLYPH_SET_TO): New macros.
14875 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14876 element of G is vector or not.
14877 (font_at): Extern it.
14878
14879 * font.c: Include window.h.
14880 (font_lispy_object): New function.
14881 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14882 end of valid glyph.
14883 (font_close_object): Fix getting (struct font *).
14884 (font_at): New function.
14885 (Ffont_get): If FONT is a font-object, get entity from it.
14886 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14887 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14888 range check.
14889 (Ffont_at): New function.
14890 (syms_of_font): Defsubr Sfont_at.
14891
14892 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14893 before the entry for Qcomposition.
14894 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14895 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14896 the font in gstring.
14897 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14898 LGLYPH_FORM (g) to detect the end of valid glyph.
14899 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14900 we are composing with gstring.
14901
14902 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14903 Check if adjustment is vector or not.
14904
14905 * Makefile.in (font.o): Make it depends on window.h.
14906
149072008-02-01 Kenichi Handa <handa@m17n.org>
14908
14909 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14910 adjustment is vector or not.
14911
149122008-02-01 Miles Bader <miles@gnu.org>
14913
14914 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14915
149162008-02-01 Kenichi Handa <handa@m17n.org>
14917
14918 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14919 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14920 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14921
14922 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14923 (DEVICE_DELTA): Fix typo.
14924 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14925 LGLYPH format.
14926
14927 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14928 the change of LGLYPH format.
14929
149302008-02-01 Kenichi Handa <handa@m17n.org>
14931
14932 * ftfont.c (ftfont_list): Fix typo.
14933 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14934
149352008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14936
14937 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14938
14939 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14940 xftface_info is non-NULL.
14941
149422008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14943
14944 * ftfont.c (ftfont_list): Move misplaced #endif.
14945
149462008-02-01 Kenichi Handa <handa@m17n.org>
14947
14948 * ftfont.c (ftfont_list): Pay attention to the case that
14949 FC_CAPABILITY is not defined.
14950
149512008-02-01 Kenichi Handa <handa@m17n.org>
14952
14953 * xftfont.c (xftfont_open): Set charset related members to -1.
14954
14955 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14956 QCname.
14957 (ftfont_open): Set charset related members to -1.
14958
14959 * fontset.c (Votf_script_alist): New variable.
14960 (syms_of_fontset): Initialize it.
14961 (fontset_font): Delete unused variable.
14962
14963 * fontset.h (Votf_script_alist): Extern it.
14964
14965 * font.c (font_find_for_lface): Optimize code.
14966
14967 * font.h (font_close_object, font_merge_old_spec): Extern them.
14968
149692008-02-01 Kenichi Handa <handa@m17n.org>
14970
14971 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14972 (syms_of_font): Initialize them.
14973 (font_pixel_size): Allow float value in dpi.
14974 (font_prop_validate_type): Delete.
14975 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14976 Change caller.
14977 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14978 (font_prop_validate_extra): Delete.
14979 (font_prop_validate_spacing): New function.
14980 (font_property_table): Add elements for all known properties.
14981 (get_font_prop_index): Rename from check_font_prop_name. New
14982 argument FROM. Change caller.
14983 (font_prop_validate): Validate all known properties.
14984 (font_put_extra): Delete argument force. Change caller.
14985 (font_expand_wildcards): Make it static. Fix the way of shrinking
14986 the possible range.
14987 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14988 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14989 Change caller.
14990 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14991 (font_parse_fcname): Delete argument merge. Fix parsing of point
14992 size. Don't validate properties values here. Change caller.
14993 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14994 (font_open_by_name): Delete unused variable.
14995 (Ffont_spec): Likewise. Validate property values.
14996 (Ffont_match_p): New function.
14997
14998 * font.h (QCscalable): Extern it.
14999 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15000
15001 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15002
15003 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15004 (xfont_list_pattern): New function.
15005 (xfont_list): Use xfont_list_pattern.
15006
150072008-02-01 Kenichi Handa <handa@m17n.org>
15008
15009 * font.h (Flist_fonts): EXFUN it.
15010
150112008-02-01 Jason Rumney <jasonr@gnu.org>
15012
15013 * w32term.c (w32_initialize): Add back smoothing_type and
15014 smoothing_enabled definitions.
15015
150162008-02-01 Kenichi Handa <handa@m17n.org>
15017
15018 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15019 s->face->font on determining underline position.
15020
150212008-02-01 Kenichi Handa <handa@m17n.org>
15022
15023 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15024 (font_has_char): Accept font-object too.
15025 (font_find_for_lface): Try at first with a size specified in face.
15026
150272008-02-01 Kenichi Handa <handa@m17n.org>
15028
15029 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15030 font_open_by_name.
15031
150322008-02-01 Kenichi Handa <handa@m17n.org>
15033
15034 * font.h (QCspacing, QCdpi): Extern them.
15035 (enum font_spacing): New enum.
15036 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15037
15038 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15039 (QCspacing, QCdpi): New variables.
15040 (syms_of_font): Initialize them.
15041 (font_pixel_size): New function.
15042 (font_put_extra): New function.
15043 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15044 in FONT_EXTRA.
15045 (font_parse_fcname): Handle enumerated values (e.g. bold).
15046 Fix handling font size. Add QCname property that contains only
15047 unknown properties.
15048 (font_score): Change argument. Change caller. Pay attention to
15049 FONT_PIXEL_SIZE_QUANTUM.
15050 (font_sort_entites, font_list_entities, font_find_for_lface)
15051 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15052 (Ffont_spec): Add QCname property that contains only unknown properties.
15053
15054 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15055 include weight in listing pattern, instead check weight of each
15056 listed font. Don't include scalable in pattern. Pay attention to
15057 FONT_PIXEL_SIZE_QUANTUM.
15058
150592008-02-01 Kenichi Handa <handa@m17n.org>
15060
15061 * font.c (font_parse_fcname): Fix parsing of point-size.
15062 (font_unparse_fcname): Produce symbolic names for style properties.
15063 (font_list_entities): Handle float size correctly.
15064 (font_open_by_name): Prefer `normal' property values if the name
15065 doesn't specify them.
15066
15067 * fontset.c (Finternal_char_font): Use font_get_name, not
15068 Ffont_xlfd_name.
15069
15070 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15071 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15072 pattern. Don't force scalable.
15073
15074 * xftfont.c (xftfont_open): For generating a name, start from
15075 96-byte buffer.
15076
150772008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15078
15079 * frame.h (x_new_fontset2): Fix prototype.
15080
150812008-02-01 Kenichi Handa <handa@m17n.org>
15082
15083 * font.h (struct font_driver): Delete member parse_name.
15084 (font_match_p, font_get_spec, font_parse_fcname)
15085 (font_unparse_fcname): Extern them.
15086 (font_get_name): Adjust prototype.
15087
15088 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15089 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15090 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15091 unnecessary checks for weight, slant, and swidth.
15092 (font_parse_fcname): New function.
15093 (font_unparse_fcname): New function.
15094 (font_parse_name): New function.
15095 (font_match_p): New function.
15096 (font_get_name): Change return value to Lisp string.
15097 (font_get_spec): New function.
15098 (Qunspecified, Qignore_defface): Don't extern them.
15099 (font_find_for_lface): Assume that LFACE is fully specified.
15100 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15101 object, use it for FACE.
15102 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15103 driver->parse_name.
15104 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15105
15106 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15107 prototype.
15108
15109 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15110 argument F. Don't call Fnew_fontset. Instead, directly call
15111 make_fontset.
15112
15113 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15114
15115 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15116 of x_new_fontset2.
15117
15118 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15119 (Qsans__serif): New variables.
15120 (ftfont_generic_family_list): New variable.
15121 (syms_of_ftfont): Initialize the above variables.
15122 (ftfont_pattern_entity): Delete argument NAME.
15123 (ftfont_list_generic_family): New function.
15124 (ftfont_parse_name): Delete this function.
15125 (ftfont_list): Try generic family only when FcFontList found no font.
15126 (ftfont_list_family): Fix args to FcObjectSetBuild.
15127
15128 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15129 object in attrs[LFACE_FONT_INDEX].
15130 (set_lface_from_font_name): Cancel all changes for font-backend.
15131 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15132 function.
15133 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15134 font object in QCfont attribute.
15135 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15136 (realize_default_face) [USE_FONT_BACKEND]: Call
15137 set_lface_from_font_and_fontset.
15138
15139 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15140 "fixed", and signal error here if no suitable font was found.
15141
15142 * xfont.c (xfont_parse_name): Delete this function.
15143
15144 * xftfont.c (xftfont_open): Change coding style of error
15145 handling. Generate fontconfig's fontname pattern.
15146
15147 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15148 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15149
15150 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15151 Both args FONTSET and FONT_OBJECT must be existing ones.
15152
151532008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15154
15155 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15156
151572008-02-01 Kenichi Handa <handa@m17n.org>
15158
15159 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15160
15161 * font.h (struct font): Fix typo.
15162
15163 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15164 XLFD_XXX_INDEX.
15165 (enum xlfd_field_mask): New enum.
15166 (intern_font_field): Changed argument. Change caller. If digits
15167 are followed by non-digits, return a symbol.
15168 (font_expand_wildcards): New function.
15169 (font_parse_xlfd): Fix wildcard handling.
15170 (Ffont_spec): If :name is specified, reflect the info in the other
15171 properties.
15172
15173 * ftfont.c (ftfont_pattern_entity): Fix typo.
15174 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15175 locale.
15176
151772008-02-01 Kenichi Handa <handa@m17n.org>
15178
15179 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15180
15181 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15182 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15183 registry doesn't specify encoding part.
15184 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15185 (font_open_by_name): At first try parsing the name.
15186 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15187 as Lisp symbols.
15188
15189 * fontset.c (reorder_font_vector): Pay attention to the case that
15190 the 3rd element of font_def is nil.
15191 (fontset_font): For the default fontset, append one more fontset
15192 elements for a script-based font specification. Don't add script
15193 attribute on finding a font.
15194 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15195 font name.
15196 (fontset_ascii_font): If a font can't be opened, return nil.
15197
15198 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15199 (ftfont_pattern_entity): New function.
15200 (ftfont_get_cache): Assume that freetype_font_cache is already
15201 initialized.
15202 (ftfont_list): Handle the case that a file is specified in font
15203 name. Use ftfont_pattern_entity to generate entities.
15204 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15205 (syms_of_ftfont): Initialize freetype_font_cache.
15206
15207 * xftfont.c (xftfont_open): Make the font name fontconfig's
15208 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15209 (xftfont_close): Free font->font.name if not NULL.
15210
15211 * xfont.c (xfont_list): If script is specified for a font, return
15212 null_vector.
15213 (xfont_list_family): Declare argument type.
15214
15215 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15216 name, set LFACE_FONT (lface) to nil.
15217
15218 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15219 return Qnil.
15220
152212008-02-01 Kenichi Handa <handa@m17n.org>
15222
15223 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15224 (standard_args): Add "-enable-font-backend".
15225
152262008-02-01 Kenichi Handa <handa@m17n.org>
15227
15228 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15229 (struct xftdraw_list, xftdraw_list): Delete them.
15230 (register_xftdraw, check_xftdraw): Delete them.
15231 (xftfont_prepare_face): Don't call register_xftdraw.
15232 (xftfont_done_face): Don't call check_xftdraw.
15233 (xftfont_draw): Get background color only when with_background is
15234 nonzero.
15235
15236 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15237
152382008-02-01 Kenichi Handa <handa@m17n.org>
15239
15240 These changes are for the new font handling codes.
15241
15242 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15243 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15244 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15245 (FONTSRC, FONTOBJ): New variables.
15246 (obj): Add $(FONTOBJ).
15247 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15248 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15249 @LIBOTF_LIBS@.
15250 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15251 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15252
15253 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15254
15255 * character.h (Vscript_representative_chars): Extern it.
15256
15257 * character.c (Vscript_representative_chars): New variable.
15258 (syms_of_character): Declare it as a Lisp variable.
15259
15260 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15261 enable_font_backend is nonzero, accept the composition method
15262 COMPOSITION_WITH_GLYPH_STRING.
15263
15264 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15265 enumeration COMPOSITION_WITH_GLYPH_STRING.
15266
15267 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15268 members clip_x, clip_y, clip_width, and clip_height.
15269 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15270
15271 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15272 --enable-font-backend. Call syms_of_font.
15273
15274 * fns.c (assoc_no_quit): New function.
15275
15276 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15277 (face_for_font, new_fontset_from_font)
15278 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15279
15280 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15281 (fontset_font, fontset_ascii, face_for_char)
15282 (make_fontset_for_ascii_face, Ffont_info)
15283 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15284 is nonzero, use font-backend mechanism.
15285 (find_font_encoding): Make it non-static.
15286 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15287 New functions.
15288
15289 * frame.h (struct frame): New members resx and resy.
15290 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15291 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15292
15293 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15294 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15295
15296 * lisp.h (assoc_no_quit): Extern it.
15297
15298 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15299 Through out the file, use FONT_INFO_FROM_FACE instead of
15300 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15301 rif->per_char_metric.
15302 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15303 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15304 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15305 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15306 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15307 nonzero, use font-backend mechanism.
15308 (get_per_char_metric): New function.
15309
15310 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15311 (set_lface_from_font_name)
15312 (set_font_frame_param, free_realized_face)
15313 (prepare_face_for_display, clear_face_gcs)
15314 (Finternal_set_font_selection_order, realize_x_face)
15315 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15316 font-backend mechanism.
15317 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15318 (load_face_font) [USE_FONT_BACKEND]: Abort.
15319 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15320 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15321
15322 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15323 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15324 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15325 nonzero, register all available font drivers. Call
15326 x_default_font_parameter for deciding a font.
15327 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15328
15329 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15330 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15331 (x_set_glyph_string_clipping_exactly)
15332 (x_compute_glyph_string_overhangs)
15333 (x_draw_glyph_string_foreground)
15334 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15335 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15336 enable_font_backend is nonzero, use font-backend mechanism.
15337 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15338
153392008-02-01 Kenichi Handa <handa@m17n.org>
15340
15341 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15342 system_eol_type.
15343 (syms_of_coding): Initialize system_eol_type.
15344
15345 * process.c (Fset_process_coding_system): Inherit system's eol
15346 format if necessary.
15347
153482008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15349
15350 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15351
153522008-02-01 Kenichi Handa <handa@m17n.org>
15353
15354 * coding.c (decode_eol): Pay attention to buffer relocation in
15355 del_range_2.
15356 (decode_coding): Call decode_eol before restoring undo_list.
15357
153582008-02-01 Kenichi Handa <handa@m17n.org>
15359
15360 * charset.c (Fdefine_charset_internal): Fix setting of
15361 emacs_mule_bytes.
15362
153632008-02-01 Kenichi Handa <handa@m17n.org>
15364
15365 * keyboard.c (read_char): Check if C is a character or not before
15366 looking up Vkeyboard_translate_table.
15367
153682008-02-01 Kenichi Handa <handa@m17n.org>
15369
15370 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15371 condition to terminate the loop.
15372
153732008-02-01 Kenichi Handa <handa@m17n.org>
15374
15375 * coding.c (produce_composition): Compare charbuf[i] instead of
15376 args[i] against 0.
15377 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15378
153792008-02-01 Kenichi Handa <handa@m17n.org>
15380
15381 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15382 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15383 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15384 detect_coding.
15385 (emacs_mule_char): Handle old style (Emacs 20) component character
15386 of a composition.
15387 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15388 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15389 composition rule.
15390 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15391
153922008-02-01 Kenichi Handa <handa@m17n.org>
15393
15394 * coding.c (encode_coding_ccl): Allocate destination dynamically
15395 when necessary.
15396
153972008-02-01 Kenichi Handa <handa@m17n.org>
15398
15399 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15400 the loop. When quitted, show a proper error message.
15401
154022008-02-01 Kenichi Handa <handa@m17n.org>
15403
15404 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15405 src->clip_head and src->clip_tail temporarily instead of src->hl.
15406
15407 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15408 character sequence.
15409 (Fccl_execute_on_string): Use ASET, not XSET.
15410
154112008-02-01 Kenichi Handa <handa@m17n.org>
15412
15413 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15414
154152008-02-01 Kenichi Handa <handa@m17n.org>
15416
15417 * coding.c (decode_coding): Fix the condition of terminating the
15418 decoding loop.
15419
154202008-02-01 Kenichi Handa <handa@m17n.org>
15421
15422 * data.c (Faset): On setting a character bigger than 255 in a
15423 unibyte string, signal an error instead of make the string multibyte.
15424
154252008-02-01 Kenichi Handa <handa@m17n.org>
15426
15427 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15428 made by a mapping table.
15429
154302008-02-01 Kenichi Handa <handa@m17n.org>
15431
15432 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15433 not.
15434 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15435 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15436
15437 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15438 s->face is NULL or not.
15439
154402008-02-01 Kenichi Handa <handa@m17n.org>
15441
15442 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15443 (x_draw_glyph_string): Fix drawing of right_overhang and
15444 left_overhang around/on cursor.
15445
15446 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15447
154482008-02-01 Kenichi Handa <handa@m17n.org>
15449
15450 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15451
154522008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * coding.c (Fdefine_coding_system_internal)
15455 (Fdefine_coding_system_alias): Avoid a duplicated element in
15456 Vcoding_system_alist.
15457
154582008-02-01 Kenichi Handa <handa@m17n.org>
15459
15460 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15461
15462 * coding.c (Qcoding_system_define_form): New variable.
15463 (syms_of_coding): Intern and staticpro it.
15464 (Fcoding_system_p): Check Qcoding_system_define_form.
15465 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15466
15467 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15468 Fcoding_system_p.
15469 (CHECK_CODING_SYSTEM): If ID is not available, call
15470 Fcheck_coding_system.
15471 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15472 Try also Fcheck_coding_system.
15473
154742008-02-01 Kenichi Handa <handa@m17n.org>
15475
15476 * coding.c (code_conversion_restore): GCPRO arg.
15477
154782008-02-01 Kenichi Handa <handa@m17n.org>
15479
15480 * character.c (lisp_string_width): Check multibyteness of STRING.
15481
154822008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15483
15484 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15485 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15486 (decode_mac_font_name): Use decode_coding_c_string instead of
15487 decode_coding.
15488 (x_load_font): Initialize fontp->fontset to -1. Set
15489 fontp->encoding_type.
15490
154912008-02-01 Kenichi Handa <handa@m17n.org>
15492
15493 * search.c (search_buffer): Give up BM search on case-fold-search
15494 if one of a target character has a case-equivalence of different
15495 byte length even if that target charcter is an ASCII.
15496 (simple_search): Fix calculation of byte length of matched text.
15497 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15498
154992008-02-01 Kenichi Handa <handa@m17n.org>
15500
15501 * coding.c (decode_coding): Fix handling of invalid bytes.
15502
155032008-02-01 Kenichi Handa <handa@m17n.org>
15504
15505 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15506 Unicode characters.
15507
155082008-02-01 Kenichi Handa <handa@m17n.org>
15509
15510 * coding.c (encode_coding_object): If a pre-write-conversion
15511 function makes a new buffer, kill it.
15512
155132008-02-01 Kenichi Handa <handa@m17n.org>
15514
15515 * coding.c (QCascii_compatible_p): New variable.
15516 (syms_of_coding): Initialize it.
15517 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15518 calling string_char.
15519 (record_conversion_result): Add `default:' case.
15520 (coding_charset_list): Delete unused variable `coding_type'.
15521 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15522 property in the plist of the coding system.
15523 (Fcoding_system_put): Check QCascii_compatible_p.
15524
155252008-02-01 Miles Bader <miles@gnu.org>
15526
15527 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15528 removed calculation of frame `f', as it's now used.
15529
155302008-02-01 Kenichi Handa <handa@m17n.org>
15531
15532 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15533 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15534 (UNIDATA): New variable.
15535 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15536 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15537 $(RUN_TEMACS) unconditionally.
15538
155392008-02-01 Kenichi Handa <handa@m17n.org>
15540
15541 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15542 (admindir): New variable.
15543 ($(lispsource)international/charprop.el): New target.
15544
155452008-02-01 Miles Bader <miles@gnu.org>
15546
15547 * character.c (chars-in-region): Remove obsolete function.
15548 (syms_of_character): Remove its initialization.
15549
155502008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15551
15552 * w32select.c (validate_coding_system)
15553 (setup_windows_coding_system): New functions.
15554 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15555 setup_windows_coding_system.
15556 (setup_config, Fw32_get_clipboard_data): Use
15557 validate_coding_system.
15558 (Fx_selection_exists): Move call to setup_config to a place
15559 where signals are allowed.
15560
15561 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15562 (Fcheck_coding_system): Add declarations.
15563
155642008-02-01 Kenichi Handa <handa@m17n.org>
15565
15566 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15567
155682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15569
15570 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15571 string as the second argument for x_new_fontset.
15572
155732008-02-01 Kenichi Handa <handa@m17n.org>
15574
15575 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15576 (encode_coding_object): Use safe_call instead of call2.
15577
155782008-02-01 Kenichi Handa <handa@m17n.org>
15579
15580 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15581
15582 * Makefile.in (lisp): Include charprop.el.
15583
155842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15585
15586 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15587 Not sure if it's unnecessary.
15588
155892008-02-01 Steven Tamm <steventamm@mac.com>
15590
15591 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15592 some possibly unnecessary fontset checking code that crashed
15593 when creating a new frame.
15594
155952008-02-01 Kenichi Handa <handa@m17n.org>
15596
15597 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15598 lookup_face.
15599
15600 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15601
15602 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15603
156042008-02-01 Kenichi Handa <handa@m17n.org>
15605
15606 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15607 (coding_charset_list): New function.
15608
15609 * coding.h (coding_charset_list): Extern it.
15610
156112008-02-01 Kenichi Handa <handa@m17n.org>
15612
15613 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15614 concatenation of family and registry.
15615
156162008-02-01 Kenichi Handa <handa@m17n.org>
15617
15618 * character.h (BYTE8_STRING): Fix typo.
15619
15620 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15621 string to multibyte (sync to HEAD).
15622
15623 * casefiddle.c (casify_region): Handle changes in byte-length
15624 using replace_range_2 (sync to HEAD).
15625
156262008-02-01 Andreas Schwab <schwab@suse.de>
15627
15628 * chartab.c (map_char_table): GCPRO table and arg.
15629
156302008-02-01 Kenichi Handa <handa@m17n.org>
15631
15632 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15633 already at limit.
15634
156352008-02-01 Kenichi Handa <handa@m17n.org>
15636
15637 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15638 instead of fast_c_string_match_ignore_case.
15639 (find_font_encoding): Change argument to Lisp_Object. Use
15640 fast_string_match_ignore_case instead of
15641 fast_c_string_match_ignore_case. Change caller.
15642
156432008-02-01 Kenichi Handa <handa@m17n.org>
15644
15645 * xdisp.c (get_next_display_element): In unibyte case, decide to
15646 display in octal form by checking a character by
15647 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15648
15649 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15650
15651 * character.c (unibyte_has_multibyte_table): New variable.
15652
15653 * character.h (unibyte_has_multibyte_table): Extern it.
15654 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15655
156562008-02-01 Kenichi Handa <handa@m17n.org>
15657
15658 * coding.c (encode_coding_iso_2022): Fix handling of charset
15659 annotation.
15660
156612008-02-01 Kenichi Handa <handa@m17n.org>
15662
15663 * coding.c (setup_coding_system): If coding_system is nil, use
15664 Qundecided.
15665 (Fterminal_coding_system): Return nil if terminal coding system is
15666 `undecided'.
15667 (syms_of_coding): Define coding-system `undecided' here. Setup
15668 terminal_coding as `undecided'.
15669
156702008-02-01 Kenichi Handa <handa@m17n.org>
15671
15672 * xdisp.c (message_dolog, set_message_1): Call
15673 unibyte_char_to_multibyte with arg type int.
15674
15675 * lread.c (read1): Fix reading of a char-table.
15676
15677 * print.c (print_object): Include sub char-table in circularities
15678 detection.
15679
156802008-02-01 Kenichi Handa <handa@m17n.org>
15681
15682 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15683 Append the found sequences in car of ARGS instead of prepending.
15684
156852008-02-01 Kenichi Handa <handa@m17n.org>
15686
15687 * fileio.c (report_file_error): Make a unibyte string from
15688 strerror (errorno).
15689 (Fsubstitute_in_file_name): Fix the arg to
15690 unibyte_char_to_multibyte. It is evaluated twice.
15691
156922008-02-01 Kenichi Handa <handa@m17n.org>
15693
15694 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15695
156962008-02-01 Kenichi Handa <handa@m17n.org>
15697
15698 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15699 BOM is not found.
15700 (detect_coding, detect_coding_system): Optimization for ISO-2022
15701 when no 8-bit data is found.
15702
157032008-02-01 Jason Rumney <jasonr@gnu.org>
15704
15705 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15706
157072008-02-01 Kenichi Handa <handa@m17n.org>
15708
15709 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15710 CHARS.
15711
157122008-02-01 Steven Tamm <steventamm@mac.com>
15713
15714 * macterm.c (mac_encode_char): Add charset argument and update
15715 to use encoding_type.
15716 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15717 switch to pure fontset.
15718 (decode_mac_font_name): Temporarily remove decoding.
15719 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15720 (x_load_font): Temporarily remove encoding.
15721
157222008-02-01 Kenichi Handa <handa@m17n.org>
15723
15724 * xfaces.c (Fface_font): If frame is not on a window system,
15725 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15726 refer to face->font.
15727 (split_font_name_into_vector, build_font_name_from_vector)
15728 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15729 when HAVE_WINDOW_SYSTEM is defined.
15730
157312008-02-01 Kenichi Handa <handa@m17n.org>
15732
15733 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15734 (x_produce_glyphs): Fix setting of members of cmp in case
15735 cmp->glyph_len is zero.
15736
15737 * fontset.c (Fset_fontset_font): Fix docstring.
15738 (Ffontset_info): Make it backward compatible. New arg ALL.
15739
157402008-02-01 Kim F. Storm <storm@cua.dk>
15741
15742 * process.c (read_process_output): Grow decoding_buf when needed;
15743 this could cause a crash in allocate_string and compact_small_strings.
15744
157452008-02-01 Kenichi Handa <handa@m17n.org>
15746
15747 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15748
157492008-02-01 Kenichi Handa <handa@m17n.org>
15750
15751 * coding.c (setup_coding_system): Set coding->common_flags
15752 correctly for raw-text.
15753 (consume_chars): On encoding unibyte text by raw-text, don't check
15754 multibyte form.
15755 (encode_coding): On encoding by raw-text, never use translation tables.
15756
15757 * fileio.c (e_write): Short cut for the case of no encoding.
15758
157592008-02-01 Kenichi Handa <handa@m17n.org>
15760
15761 * coding.c (detect_coding, detect_coding_system): Delete unused
15762 variables.
15763
157642008-02-01 Kenichi Handa <handa@m17n.org>
15765
15766 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15767 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15768
157692008-02-01 Kenichi Handa <handa@m17n.org>
15770
15771 * coding.c (Ffind_coding_systems_region_internal): Include
15772 raw-text and no-conversion in the result.
15773
157742008-02-01 Kenichi Handa <handa@m17n.org>
15775
15776 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15777 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15778 FONT_DEF.
15779 (font_def_arg, add_arg, from_arg, to_arg): New args.
15780 (set_fontset_font): Change argument.
15781 (Fset_fontset_font): Fix for the case that TARGET is a script
15782 name and charset name.
15783 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15784
157852008-02-01 Kenichi Handa <handa@m17n.org>
15786
15787 * fontset.c (fontset_font): Rename from fontset_face. Change return
15788 value.
15789 (face_suitable_for_char_p, face_for_char): Adjust for the change
15790 of fontset_font.
15791 (make_fontset_for_ascii_face): Fix setting of the fontset element
15792 for ASCII.
15793 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15794 to get a font name.
15795 (Ffontset_info): Adjust for the change of fontset_font.
15796
15797 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15798
15799 * character.h (LEADING_CODE_LATIN_1_MIN)
15800 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15801
158022008-02-01 Kenichi Handa <handa@m17n.org>
15803
15804 * editfns.c (check_translation): New function.
15805 (Ftranslate_region_internal): Handle M:N mapping.
15806
158072008-02-01 Kenichi Handa <handa@m17n.org>
15808
15809 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15810
158112008-02-01 Kenichi Handa <handa@m17n.org>
15812
15813 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15814 goto invalid_code.
15815 (decode_coding_iso_2022): Fix handling of invalid designation.
15816
15817 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15818 after calling code_conversion_save.
15819
158202008-02-01 Kenichi Handa <handa@m17n.org>
15821
15822 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15823
15824 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15825
15826 * fontset.c: Include "intervals.h".
15827 (fontset_face): Fix comparing of Lisp_Objects.
15828 (free_face_fontset, new_fontset_from_font_name): Fix
15829 Lisp_Object/int mixup.
15830
15831 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15832
15833 * coding.c: Add many prototypes for static functions.
15834 (get_translation_table): Allow max_lookup to be NULL.
15835 (decode_coding, Ffind_coding_systems_region_internal)
15836 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15837 get_translation_table with max_lookup NULL.
15838
158392008-02-01 Kenichi Handa <handa@m17n.org>
15840
15841 * coding.c (get_translation_table): Declare it as Lisp_Object.
15842 (LOOKUP_TRANSLATION_TABLE): New macro.
15843 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15844 instead of CHAR_TABLE_REF.
15845
158462008-02-01 Kenichi Handa <handa@m17n.org>
15847
15848 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15849 annotation data format.
15850 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15851 Change arguments FROM and TO to single argument NCHARS. Change caller.
15852 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15853 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15854 (decode_coding_ccl, decode_coding_charset): Pay attention to
15855 coding->charbuf_used.
15856 (get_translation): New function.
15857 (produce_chars): New arguments translation_table and last_block.
15858 Translate characters here. Return number of carryover chars.
15859 Change caller.
15860 (produce_composition): New argument pos. Change caller.
15861 Adjust for the change of annotation data format.
15862 (produce_charset, produce_annotation): Likewise.
15863 (decode_coding, encode_coding): Don't call translate_chars.
15864 (consume_chars): New arg translation_table. Change caller.
15865 (translate_chars): Delete.
15866 (syms_of_coding): Make translation-table's number of extra slots 2.
15867
158682008-02-01 Kenichi Handa <handa@m17n.org>
15869
15870 * search.c (simple_search): Fix setting this_pos_byte in backward
15871 search.
15872
15873 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15874 byte sequence.
15875 (detect_coding_ccl): Fix setting of the variable valids.
15876
158772008-02-01 Kenichi Handa <handa@m17n.org>
15878
15879 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15880
15881 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15882
15883 * editfns.c (Ftranslate_region_internal): Rename from
15884 Ftranslate_region. Accept a char-table in TABLE.
15885 (syms_of_editfns): Defsubr Stranslate_region_internal.
15886
15887 * xfaces.c (set_lface_from_font_name): If a font is specified for
15888 a frame, generate a fontset from the font.
15889 (build_scalable_font_name): If the scalable font is requested for
15890 a specific size, don't change that size.
15891 (try_font_list): Try a scalable font also in the case that a
15892 pattern string is specified.
15893
158942008-02-01 Kenichi Handa <handa@m17n.org>
15895
15896 * xfaces.c (Fface_font): New optional arg CHARACTER.
15897
158982008-02-01 Kenichi Handa <handa@m17n.org>
15899
15900 * charset.h (CHARSET_OFFSET): New macro.
15901
159022008-02-01 Kenichi Handa <handa@m17n.org>
15903
15904 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15905
15906 * fontset.c (fontset_face): Handle the case that repertory is a
15907 char-table.
15908 (find_font_encoding): Return nil for unknown encoding.
15909 (Fset_fontset_font): Ignore a font of unknown encoding.
15910
159112008-02-01 Kenichi Handa <handa@m17n.org>
15912
15913 * keymap.c (describe_vector): Handle default value of a char table.
15914
15915 * fontset.c (fontset_face): Handle fallback fonts correctly.
15916 (Ffontset_info): Return infomation about fallback fonts.
15917
159182008-02-01 Kenichi Handa <handa@m17n.org>
15919
15920 * fontset.c (FONTSET_DEFAULT): New macro.
15921 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15922 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15923 the case that it is nil.
15924 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15925 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15926
15927 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15928 subset or superset.
15929
159302008-02-01 Kenichi Handa <handa@m17n.org>
15931
15932 * emacs.c (main): Call init_charset after syms_of_XXX.
15933
15934 * charset.c (Vcharset_map_directory): Delete.
15935 (Vcharset_map_path): New variable.
15936 (load_charset_map_from_file): Use Vcharset_map_path instead.
15937 (init_charset): Initialize Vcharset_map_path.
15938 (syms_of_charset): Delete declaration of "charset-map-directory",
15939 add declaration of "charset-map-path".
15940
159412008-02-01 Kenichi Handa <handa@m17n.org>
15942
15943 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15944 ASCII only string.
15945
15946 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15947
15948 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15949 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15950
159512008-02-01 Kenichi Handa <handa@m17n.org>
15952
15953 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15954
15955 * coding.c (QCmnemonic, QCdefalut_char)
15956 (QCdecode_translation_table, QCencode_translation_table)
15957 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15958 (get_translation_table): Return a list of translation tables if
15959 necessary.
15960 (decode_coding): Call get_translation_table with ENCODEP 0.
15961 (char_encodable_p): If translation_table is non-nil, always call
15962 translate_char.
15963 (Fdefine_coding_system_internal): Accept list of translation
15964 tables as :encode-translation-table and :decode-translation-table.
15965 (Fcoding_system_put): New function.
15966 (syms_of_coding): Declare new symbols. Defsubr
15967 Scoding_system_put.
15968 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15969 typically JISX0212.
15970
15971 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15972 when the charset is superset type.
15973
15974 * character.c (translate_char): Accept list of translation tables.
15975
159762008-02-01 Kenichi Handa <handa@m17n.org>
15977
15978 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15979 (CODING_ATTR_TRANS_TBL): New macro.
15980
15981 * coding.c (get_translation_table): New function.
15982 (translate_chars): Fix the bug of skipping annotation data.
15983 (decode_coding, encode_coding): Utilize get_translation_table.
15984 (char_encodable_p, Funencodable_char_position): Translate char if
15985 necessary.
15986 (Ffind_coding_systems_region_internal)
15987 (Fcheck_coding_systems_region): Setup translation table for encode
15988 in a coding system attribute vector in advance.
15989 (Fdefine_coding_system_internal): Allow a symbol as translation
15990 table. For shift-jis type coding system, allow 4th charset.
15991
159922008-02-01 Kenichi Handa <handa@m17n.org>
15993
15994 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15995
15996 * xdisp.c (get_next_display_element): Pass -1 as POS to
15997 FACE_FOR_CHAR if displaying a C-string.
15998
159992008-02-01 Kenichi Handa <handa@m17n.org>
16000
16001 * composite.c (get_composition_id): Handle xoff and yoff in a
16002 composition rule.
16003
16004 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16005 (struct composition): New member lbearing and rbearing.
16006
16007 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16008 (x_get_glyph_overhangs): Handle a composition glyph.
16009 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16010
16011 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16012 composition glyph.
16013
160142008-02-01 Kenichi Handa <handa@m17n.org>
16015
16016 * print.c: Include charset.h.
16017 (Vprint_charset_text_property): New variable.
16018 (Qdefault): Extern it.
16019 (PRINT_STRING_NON_CHARSET_FOUND)
16020 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16021 (print_check_string_result): New variable.
16022 (print_check_string_charset_prop): New function.
16023 (print_prune_charset_plist): New variable.
16024 (print_prune_string_charset): New function.
16025 (print_object): Call print_prune_string_charset if
16026 Vprint_charset_text_property is not t.
16027 (print_interval): Print nothing if interval->plist is nil.
16028 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16029 variable. Init and staticpro print_prune_charset_plist.
16030
160312008-02-01 Kenichi Handa <handa@m17n.org>
16032
16033 * fontset.c (new_fontset_from_font_name): Use the specified font
16034 for all characters in the new fontset.
16035
16036 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16037 OBJECT args.
16038
16039 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16040 OBJECT args for composition too.
16041
16042 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16043 OBJECT args.
16044
160452008-02-01 Kenichi Handa <handa@m17n.org>
16046
16047 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16048
16049 * fontset.c (reorder_font_vector): Adjust for the change of
16050 FONT_DEF format.
16051 (fontset_face): New arg id. Change caller.
16052 (face_for_char): New args pos and object.
16053 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16054 (fs_query_fontset): Check NAME by Fassoc too.
16055 (Fset_fontset_font): Allow non-XLFD font name.
16056 (Ffontset_info): Adjust for the change of FONT_DEF format.
16057
16058 * fontset.h (face_for_char): Adjust prototype.
16059
16060 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16061 (append_space, extend_face_to_end_of_line)
16062 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16063 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16064
16065 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16066 POS and OBJECT args.
16067
16068 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16069 POS and OBJECT args.
16070
160712008-02-01 Jason Rumney <jasonr@gnu.org>
16072
16073 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16074 of GlobalAlloc'ed memory.
16075
160762008-02-01 Kenichi Handa <handa@m17n.org>
16077
16078 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16079
16080 * charset.h (charset_table_used): Delete extern.
16081
16082 * charset.c (charset_table_used): Make it static.
16083 (map_charset_chars): Fix args to c_function with.
16084
16085 * chartab.c (map_sub_char_table_for_charset): Fix args to
16086 c_function with.
16087
16088 * coding.h (enum coding_result_code): Delete
16089 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16090
16091 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16092 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16093 (Vlast_code_conversion_error): New variables.
16094 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16095 (ONE_MORE_BYTE): Record error if any instead of signaling an
16096 error. If non-ASCII multibyte char is found, return the negative
16097 value of the code. All callers changed to check it.
16098 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16099 (record_conversion_result): New function. Change all codes setting
16100 coding->result to call this function.
16101 (detect_coding_utf_8, decode_coding_utf_8)
16102 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16103 Don't use the local variable incomplete.
16104 (emacs_mule_char): Change the second arg to `const'.
16105 (decode_coding): Fix of flushing out unprocessed data.
16106 (make_conversion_work_buffer): Fix making of a work buffer.
16107 (decode_coding_object): Return coding->dst_object.
16108
16109 * fontset.c (set_fontset_font): Fix args.
16110
16111 * lisp.h (CHARACTERBITS): Define as 22.
16112
16113 * process.c (send_process): Be sure to set coding->src_multibyte.
16114
16115 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16116
161172008-02-01 Kenichi Handa <handa@m17n.org>
16118
16119 * xdisp.c (handle_auto_composed_prop): Give limit to
16120 Fnext_single_char_property_change.
16121
161222008-02-01 Kenichi Handa <handa@m17n.org>
16123
16124 * composite.c (syms_of_composite): Don't make the composition hash
16125 table weak.
16126
16127 * fontset.c (Fset_fontset_font): Fix docstring.
16128
16129 * lisp.h (detect_coding_system): Adjust prototype.
16130
16131 * fileio.c (kill_workbuf_unwind): Delete this function.
16132 (Finsert_file_contents): Adjust the call of detect_coding_system.
16133 Get conversion_buffer by code_conversion_save. Use the macro
16134 CODING_MAY_REQUIRE_DECODING. After decoding, update
16135 coding_system.
16136
16137 * coding.h (make_conversion_work_buffer): Delete extern.
16138 (code_conversion_save): Extern it.
16139
16140 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16141 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16142 (decode_coding_utf_8): Don't do eol converion.
16143 (detect_coding_utf_16): Check coding->src_chars, not
16144 coding->src_bytes. Add heuristics for those that have no signature.
16145 (decode_coding_emacs_mule, decode_coding_iso_2022)
16146 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16147 Don't do eol converion.
16148 (adjust_coding_eol_type): Return a new coding system.
16149 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16150 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16151 each change.
16152 (decode_coding): Pay attention to undo_list. Do eol conversion for
16153 all types of coding-systems (if necessary).
16154 (Vcode_conversion_work_buf_list): Delete it.
16155 (Vcode_conversion_reused_workbuf): Rename from
16156 Vcode_conversion_reused_work_buf.
16157 (Vcode_conversion_workbuf_name): New variable.
16158 (reused_workbuf_in_use): New variable.
16159 (make_conversion_work_buffer): Delete the arg DEPTH.
16160 (code_conversion_restore): Change argument to cons.
16161 (code_conversion_save): Delete the argument BUFFER. Change callers.
16162 (detect_coding_system): New argument src_chars. Change callers.
16163 Fix for utf-16 detection.
16164 (init_coding_once): Don't use ISO_carriage_return.
16165 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16166 reused_workbuf_in_use.
16167
161682008-02-01 Kenichi Handa <handa@m17n.org>
16169
16170 * keymap.c (store_in_keymap): Pay attention to the case that idx
16171 is a cons specifying a character range.
16172
161732008-02-01 Kenichi Handa <handa@m17n.org>
16174
16175 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16176 HANDLED_RECOMPUTE_PROPS.
16177
16178 * coding.c (Fdefine_coding_system_internal): Fix checking of
16179 ascii compatibility.
16180
161812008-02-01 Kenichi Handa <handa@m17n.org>
16182
16183 * charset.c (find_charsets_in_text): Delete unused locale variable.
16184 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16185
16186 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16187 Resync charset_list to Vemacs_mule_charset_list.
16188
16189 * keymap.c (store_in_keymap): Pay attention to the case that idx
16190 is a cons specifying a character range.
16191
161922008-02-01 Kenichi Handa <handa@m17n.org>
16193
16194 * composite.c (update_compositions): Bind inhibit-read-only, etc
16195 to t before calling remove-list-of-text-properties.
16196
16197 * print.c (print_object): Always print ASCII chars as is.
16198
161992008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16202
16203 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16204 is a char table.
16205
162062008-02-01 Kenichi Handa <handa@m17n.org>
16207
16208 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16209
162102008-02-01 Kenichi Handa <handa@m17n.org>
16211
16212 * xfaces.c (set_lface_from_font_name): Fix for the case that
16213 FONTNAME is not fontset name.
16214
162152008-02-01 Kenichi Handa <handa@m17n.org>
16216
16217 * fns.c (base64_encode_1): Fix previous change.
16218
162192008-02-01 Kenichi Handa <handa@m17n.org>
16220
16221 * fontset.c (set_fontset_font): New function.
16222 (Fset_fontset_font): If a font is specified for a charset, use
16223 map_charset_chars to store the font spec in a fontset.
16224
162252008-02-01 Kenichi Handa <handa@m17n.org>
16226
16227 * fontset.c (fontset_face): Create a fallback fontset on demand.
16228 (make_fontset): Don't create a fallback fontset here.
16229 (free_face_fontset): Free a fallback fontset (if any) too.
16230 (n_auto_fontsets): Delete this variable.
16231 (auto_fontset_alist): New variable.
16232 (new_fontset_from_font_name): Check auto_fontset_alist.
16233 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16234 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16235 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16236 Defsubr Sfontset_list_all.
16237
162382008-02-01 Kenichi Handa <handa@m17n.org>
16239
16240 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16241
162422008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16245
162462008-02-01 Kenichi Handa <handa@m17n.org>
16247
16248 * editfns.c (Fgoto_char): Fix docstring.
16249
162502008-02-01 Kenichi Handa <handa@m17n.org>
16251
16252 * insdel.c (insert_from_gap): Adjust intervals correctly.
16253
162542008-02-01 Jason Rumney <jasonr@gnu.org>
16255
16256 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16257 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16258 (w32_initialize): Try to load it.
16259 (x_get_font_repertory): Use it if available.
16260 (w32_encode_char): Add shortcut for unicode output.
16261
16262 * w32fns.c (w32_load_system_font): Default charset to -1.
16263 (x_to_w32_charset): Match all fonts for unicode.
16264 (w32_to_x_charset): New parameter matching. Don't return partial
16265 or wildcard charsets.
16266 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16267 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16268 (w32_to_x_font): Match charset to real charset.
16269 (enum_font_cb2): Always list unicode versions.
16270
16271 * makefile.w32-in (temacs): Increase EMHEAP.
16272
162732008-02-01 Jason Rumney <jasonr@gnu.org>
16274
16275 * w32term.c (w32_encode_char): New charset parameter.
16276 font_info.encoding becomes encoding_type.
16277 (x_get_font_repertory): New function. Warning: stub only!
16278 (x_new_font): Return quickly if font already set.
16279 (x_new_fontset): fontsetname parameter is Lisp_Object.
16280 Use new fs_query_fontset. Try new_fontset_from_font_name.
16281 Use fontset_name for return value.
16282
16283 * w32term.h: Declare x_get_font_repertory.
16284
16285 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16286 place of find_charset_in_text. Use encode_coding_object in place
16287 of encode_coding.
16288 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16289 decode_coding.
16290
16291 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16292 of x_new_fontset.
16293 (w32_load_system_font): Initialize charset as unicode.
16294 font_info.encoding becomes encoding_type.
16295 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16296 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16297 (syms_of_w32fns): Set get_font_repertory_func.
16298
16299 * w32console.c: Include character.h. Use terminal_encode_buffer
16300 from term.c.
16301 (write_glyphs): Use new version of encode_terminal_code. Use
16302 encode_coding_object in place of encode_coding.
16303
16304 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16305 encoding becomes encoding_type.
16306
16307 * term.c (terminal_encode_buffer): Make externally visible.
16308
16309 * makefile.w32-in: Add character.h dependancies.
16310 (character.o, chartab.o): New targets.
16311
163122008-02-01 Kenichi Handa <handa@m17n.org>
16313
16314 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16315 CODING_ID_EOL_TYPE.
16316
163172008-02-01 Andreas Schwab <schwab@suse.de>
16318
16319 * coding.c (produce_chars): Revert last change.
16320
163212008-02-01 Kenichi Handa <handa@m17n.org>
16322
16323 * charset.h (charset_unicode): Extern it.
16324
16325 * charset.c (string_xstring_p): Check by (C >= 0x100).
16326 (find_charsets_in_text): Change format of the arc CHARSETS. New
16327 arg MULTIBYTE.
16328 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16329 change of find_charsets_in_text.
16330 (Fsplit_char): Fix doc. Never return unknown.
16331
16332 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16333
16334 * coding.c (Fdefine_coding_system_alias): Update
16335 Vcoding_system_list.
16336
16337 * fontset.c (load_font_get_repertory): Pay attention to the case
16338 that ENCODING of a font is specified by a char-table.
16339
16340 * xterm.c (x_get_font_repertory): Handle the case that the
16341 encoding of font is other than Unicode.
16342
163432008-02-01 Kenichi Handa <handa@m17n.org>
16344
16345 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16346 if a character is encodable by the terminal coding system. If
16347 not, produces proper number of `?'s. Update
16348 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16349 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16350
163512008-02-01 Kenichi Handa <handa@m17n.org>
16352
16353 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16354 variables.
16355 (encode_terminal_code): Change argument. Encode multiple
16356 characters at once. Store the result of encoding in
16357 terminal_encode_buffer.
16358 (write_glyphs, insert_glyphs): Adjust for the change of
16359 encode_terminal_code.
16360 (term_init): Initialize terminal_encode_buffer and
16361 terminal_encode_buf_size.
16362
16363 * coding.c (consume_chars): If coding->src_object is nil, don't
16364 check annotation.
16365
163662008-02-01 Kenichi Handa <handa@m17n.org>
16367
16368 * character.c (char_string): Use ASCII_CHAR_P instead of
16369 SINGLE_BYTE_CHAR_P.
16370
163712008-02-01 Kenichi Handa <handa@m17n.org>
16372
16373 * xdisp.c (handle_auto_composed_prop): Check if the last
16374 characters of auto-composed region is newly composed with the
16375 following characters.
16376 (handle_composition_prop): Fix checking of point being inside
16377 composition.
16378
163792008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * fns.c (concat): Don't change multibyteness of the result by
16382 concatenating an 8-bit character.
16383
16384 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16385 multibyteness of the result when newelt is an 8-bit character.
16386
163872008-02-01 Dave Love <fx@gnu.org>
16388
16389 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16390 EMACS_INT.
16391
16392 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16393
16394 * xfaces.c (face_numeric_value): Declare dim size_t.
16395 (Finternal_lisp_face_equal_p): Remove unused f.
16396
16397 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16398 (MATRIX_ROW): Remove unused vars.
16399 (draw_glyphs, x_insert_glyphs, fast_find_position)
16400 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16401 byte/char counts.
16402
16403 * regex.c (regex_compile): Remove unused var.
16404
16405 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16406
16407 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16408 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16409
16410 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16411
16412 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16413
16414 * fileio.c (Fwrite_region): Remove unused var.
16415
16416 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16417 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16418
16419 * composite.c (Fremove_list_of_text_properties): Declare.
16420
16421 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16422 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16423 (coding_inherit_eol_type): Remove unused attrs.
16424 (detect_coding): Cast arg of detect_eol.
16425
16426 * charset.c (syms_of_charset): Remove unused var p.
16427 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16428 byte/char counts.
16429
16430 * casetab.c (set_case_table): Remove unused var.
16431
16432 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16433 unused vars.
16434
164352008-02-01 Dave Love <fx@gnu.org>
16436
16437 * xterm.c (x_bitmap_mask): Declare.
16438
164392008-02-01 Dave Love <fx@gnu.org>
16440
16441 * xterm.c (x_term_init): Fix type error.
16442
16443 * lisp.h: Add Funibyte_char_to_multibyte.
16444
16445 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16446 (Fset_coding_system_priority): Doc fix.
16447
16448 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16449
16450 * indent.c (check_composition): Make start and end EMACS_INT.
16451
16452 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16453
16454 * xdisp.c (handle_composition_prop, check_point_in_composition):
16455 Make buffer positions EMACS_INT.
16456
16457 * composite.c (find_composition, run_composition_function)
16458 (update_compositions, Ffind_composition_internal): Make buffer
16459 positions EMACS_INT.
16460
16461 * composite.h (find_composition, update_compositions): Make
16462 position args EMACS_INT.
16463
16464 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16465
16466 * intervals.c (get_property_and_range):
16467 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16468
16469 * unexalpha.c: Don't include varargs.h.
16470
164712008-02-01 Dave Love <fx@gnu.org>
16472
16473 * coding.h (ENCODE_UTF_8): New.
16474
16475 * Makefile.in (gtkutil.o): Depend on coding.h.
16476
16477 * coding.c (Fset_coding_system_priority): Doc fix.
16478
164792008-02-01 Kenichi Handa <handa@m17n.org>
16480
16481 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16482 the case of auto saving.
16483
164842008-02-01 Andreas Schwab <schwab@suse.de>
16485
16486 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16487 `range' from GC.
16488
164892008-02-01 Kenichi Handa <handa@m17n.org>
16490
16491 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16492
164932008-02-01 Kenichi Handa <handa@m17n.org>
16494
16495 * fileio.c (choose_write_coding_system): Return a decided coding system.
16496 (Fwrite_region): Set Vlast_coding_system_used to the return value
16497 of choose_write_coding_system.
16498
164992008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * charset.c (Fset_charset_priority): Pay attention to duplicated
16502 arguments.
16503
16504 * coding.c (QCcategory): New variable.
16505 (syms_of_coding): Defsym it. Set all elements of
16506 Vcoding_category_table and their symbol values.
16507 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16508 coding-category-XXX, and coding-category-list.
16509 (Fdefine_coding_system_internal): Add category in the plist.
16510
165112008-02-01 Kenichi Handa <handa@m17n.org>
16512
16513 * callproc.c (Fcall_process): Handle carryover correctly.
16514
16515 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16516 (raw_text_coding_system): Check NILP (coding_system).
16517 (coding_inherit_eol_type): Check NILP (coding_system) and
16518 NILP (parent).
16519 (consume_chars): Fix for the case of raw-text.
16520
16521 * process.c (read_process_output): Handle carryover correctly.
16522
165232008-02-01 Dave Love <fx@gnu.org>
16524
16525 * regex.c (re_search_2): Fix last change.
16526
165272008-02-01 Kenichi Handa <handa@m17n.org>
16528
16529 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16530 target_multibyte. Even in a unibyte case, return a converted
16531 multibyte char.
16532 (GET_CHAR_AFTER): New macro.
16533 (PATFETCH): Translate via multibyte char.
16534 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16535 (SETUP_MULTIBYTE_RANGE): New macro.
16536 (regex_compile): Setup compiled code so that its multibyteness
16537 matches that of a target. Fix the handling of "[X-YZ]" using
16538 SETUP_MULTIBYTE_RANGE.
16539 (analyse_first) <charset>: For filling fastmap for all multibyte
16540 characters, don't check by BASE_LEADING_CODE_P.
16541 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16542 the same as RE_MULTIBYTE_P (bufp) now.
16543 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16544 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16545 (TRANSLATE_VIA_MULTIBYTE): New macro.
16546 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16547 It is the same as RE_MULTIBYTE_P (bufp) now.
16548 <exactn>: Translate via multibyte.
16549 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16550 translate it.
16551 <charset, charset_not>: Fetch a character by
16552 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16553 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16554 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16555 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16556 by GET_CHAR_AFTER.
16557 (bcmp_translate): Likewise.
16558
16559 * search.c (compile_pattern): Check the member target_multibyte,
16560 not the member multibyte of buf.
16561
16562 * lread.c (read1): While reading a string, set force_singlebyte
16563 and force_multibyte correctly.
16564
16565 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16566 up of unibyte_to_multibyte_table.
16567
165682008-02-01 Kenichi Handa <handa@m17n.org>
16569
16570 * coding.c (setup_coding_system): If coding has
16571 post-read-conversion or pre-write-conversion, set
16572 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16573 respectively.
16574 (decode_coding_gap): Run post-read-conversion if any.
16575
16576 * fileio.c (Finsert_file_contents): Even if we read into a
16577 unibyte buffer, check if we must decode the result or not.
16578
165792008-02-01 Kenichi Handa <handa@m17n.org>
16580
16581 * coding.c (make_conversion_work_buffer): Change the work buffer
16582 name to the same one as that of Emacs 21.
16583
165842008-02-01 Kenichi Handa <handa@m17n.org>
16585
16586 * coding.h (make_conversion_work_buffer): Adjust prototype.
16587 (code_conversion_restore): Don't extern it.
16588
16589 * coding.c (detected_mask): Delete unused variable.
16590 (decode_coding_iso_2022): Pay attention to the byte sequence of
16591 CTEXT extended segment, and retain those bytes as is.
16592 (decode_coding_ccl): Delete unused variable `valids'.
16593 (setup_coding_system): Delete unused variable `category'.
16594 (consume_chars): Delete unused variable `category'. Make it work
16595 for non-multibyte case.
16596 (make_conversion_work_buffer): Change argument.
16597 (saved_coding): Delete unused variable.
16598 (code_conversion_restore): Don't check saved_coding->destination.
16599 (code_conversion_save): New function.
16600 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16601 instead of record_unwind_protect.
16602 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16603 (detect_coding_system): Delete unused variable `mask'.
16604 (Fdefine_coding_system_internal): Delete unused variable id.
16605
16606 * fileio.c (kill_workbuf_unwind): New function.
16607 (Finsert_file_contents): On replacing, call
16608 make_conversion_work_buffer with correct args, and call
16609 record_unwind_protect with the first arg kill_workbuf_unwind.
16610
16611 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16612
166132008-02-01 Kenichi Handa <handa@m17n.org>
16614
16615 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16616 (fontset_add): Fix for the case that TO is less than TO1.
16617 (Ffontset_info): Don't use fallback fontset on checking the
16618 default fontset.
16619 (dump_fontset): New function for debugging.
16620
16621 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16622 coding_type is Qcharset.
16623
166242008-02-01 Kenichi Handa <handa@m17n.org>
16625
16626 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16627 (map_char_table): Don't inherit the value from the parent on
16628 initializing VAL. Adjust for the above change.
16629
166302008-02-01 Kenichi Handa <handa@m17n.org>
16631
16632 * coding.c (Qsignature, Qendian): Delete these variables.
16633 (syms_of_coding): Don't initialize them.
16634 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16635 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16636 detect_info->found.
16637 (decode_coding_utf_16): Don't detect BOM here.
16638 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16639 is NOT utf_16_without_bom.
16640 (setup_coding_system): For a coding system of type utf-16, check
16641 if the attribute :endian is Qbig or not (not nil or not), and set
16642 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16643 (detect_coding): If coding type is utf-16 and BOM detection is
16644 required, detect it.
16645 (Fdefine_coding_system_internal): For a coding system of type
16646 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16647
166482008-02-01 Kenichi Handa <handa@m17n.org>
16649
16650 * coding.c (coding_set_source): Fix for the case that the current
16651 buffer is different from coding->src_object.
16652 (decode_coding_object): Don't use the conversion work buffer if
16653 DST_OBJECT is a buffer.
16654
166552008-02-01 Dave Love <fx@gnu.org>
16656
16657 * lread.c (read_emacs_mule_char) [len==2]: Index
16658 emacs_mule_charset correctly.
16659
166602008-02-01 Dave Love <fx@gnu.org>
16661
16662 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16663 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16664 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16665 treated specially.)
16666 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16667 (detected_mask): Remove Big5 bits.
16668
166692008-02-01 Kenichi Handa <handa@m17n.org>
16670
16671 The following changes are to make the font rescaling facility
16672 compatible with Emacs 21.
16673
16674 * xfaces.c (Vface_font_rescale_alist): Rename from
16675 Vface_resizing_fonts.
16676 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16677 (font_rescale_ratio): Rename from font_resizing_ratio.
16678 (split_font_name): Set font->rescale_ratio.
16679 (better_font_p): Pay attention to font->rescale_ratio.
16680 (build_scalable_font_name): Likewise. Change RESX, and RESY
16681 fields.
16682 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16683
166842008-02-01 Kenichi Handa <handa@m17n.org>
16685
16686 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16687 (Qutf_16_le): Remove these variables.
16688 (syms_of_coding): Don't DEFSYM them.
16689 (decode_coding_utf_16): Fix handling of BOM.
16690 (encode_coding_utf_16): Fix handling of BOM.
16691
166922008-02-01 Kenichi Handa <handa@m17n.org>
16693
16694 * fileio.c (Finsert_file_contents): On replacing, before decoding
16695 the file into the work buffer, set point of the work buffer to the end.
16696
166972008-02-01 Dave Love <fx@gnu.org>
16698
16699 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16700
167012008-02-01 Dave Love <fx@gnu.org>
16702
16703 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16704 and fix C types.
16705
167062008-02-01 Kenichi Handa <handa@m17n.org>
16707
16708 * xdisp.c (SKIP_GLYPHS): New macro.
16709 (set_cursor_from_row): Pay attention to string display properties.
16710
16711 * category.c (copy_category_entry): Fix for the case that RANGE
16712 is an integer.
16713
16714 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16715
16716 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16717
167182008-02-01 Kenichi Handa <handa@m17n.org>
16719
16720 * charset.c (Fcharset_id_internal): New function.
16721 (syms_of_charset): Defsubr it.
16722
16723 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16724 with the last arg charset_list acquired from coding.
16725 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16726 the attribute coding_attr_ccl_valids.
16727
16728 * coding.h (enum define_coding_ccl_arg_index): Set the first
16729 member coding_arg_ccl_decoder to coding_arg_max.
16730
16731 * ccl.h (ccl_driver): Adjust prototype.
16732
16733 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16734 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16735 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16736 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16737 last arg Qnil.
16738
167392008-02-01 Kenichi Handa <handa@m17n.org>
16740
16741 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16742 call encode_char.
16743
16744 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16745
167462008-02-01 Dave Love <fx@gnu.org>
16747
16748 * composite.c (syms_of_composite): Make composition_hash_table weak.
16749
167502008-02-01 Kenichi Handa <handa@m17n.org>
16751
16752 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16753 (font_name_registry): Don't extern them.
16754 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16755
16756 * fontset.h (Qfontset): Don't extern it.
16757 (new_fontset_from_font_name): Extern it.
16758
16759 * fontset.c: Give 8 extra slots to fontset objects.
16760 (Qfontset_info): New variable.
16761 (syms_of_fontset): Defsym it.
16762 (FONTSET_FALLBACK): New macro.
16763 (fontset_face): Try also the default fontset.
16764 (make_fontset): Realize a fallback fontset from the default fontset.
16765 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16766 using split_font_name_into_vector and build_font_name_from_vector.
16767 (Fset_fontset_font): Access the elements of font_spec by enum
16768 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16769 name by using split_font_name_into_vector.
16770 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16771 generate a proper font name from the fontset name. Update
16772 Vfontset_alias_alist.
16773 (n_auto_fontsets): New variable.
16774 (new_fontset_from_font_name): New function.
16775 (Ffont_info): Store the information about fonts generated from the
16776 default fontset in the first extra slot of the returned char-table.
16777
16778 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16779 (font_name_registry): Delete function.
16780 (split_font_name_into_vector): New function.
16781 (build_font_name_from_vector): New function.
16782 (font_list): The argument REGISTRY is now a list of registry names.
16783 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16784 specifies an explicit font name, return the name as is. Make a
16785 list of registy names.
16786
16787 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16788 of x_new_fontset.
16789 (Fx_create_frame): Don't call x_new_fontset here. Just use
16790 x_list_fonts to check the existence of fonts.
16791
16792 * xterm.h (x_new_fontset): Adjust prototype.
16793
16794 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16795 string. Use new_fontset_from_font_name to create a fontset from a
16796 font name.
16797
167982008-02-01 Kenichi Handa <handa@m17n.org>
16799
16800 * syntax.c (Vfind_word_boundary_function_table): New name for
16801 Vnext_word_boundary_function_table.
16802 (find-word-boundary-function-table): New name for
16803 next-word-boundary-function-table.
16804
168052008-02-01 Dave Love <fx@gnu.org>
16806
16807 * Makefile.in: Fix some dependencies.
16808
16809 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16810 set it to nil before returning.
16811
16812 * composite.c (update_compositions): Fix type error.
16813
16814 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16815
168162008-02-01 Kenichi Handa <handa@m17n.org>
16817
16818 * xterm.c (x_new_font): Optimize for the case that the font is
16819 already set for the frame.
16820
168212008-02-01 Kenichi Handa <handa@m17n.org>
16822
16823 * chartab.c (char_table_ascii): Check if the char table contents
16824 is sub-char-table or not.
16825 (char_table_set, char_table_set_range): Fix argument to
16826 char_table_ascii.
16827
16828 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16829 (detect_coding_utf_8, detect_coding_utf_16)
16830 (detect_coding_emacs_mule, detect_coding_iso_2022)
16831 (detect_coding_sjis, detect_coding_big5)
16832 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16833 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16834 sequence is valid in this coding system. Change callers.
16835 (MAX_ANNOTATION_LENGTH): New macro.
16836 (ADD_ANNOTATION_DATA): New macro.
16837 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16838 ADD_ANNOTATION_DATA. Change the format of annotation data.
16839 (ADD_CHARSET_DATA): New macro.
16840 (emacs_mule_char): New argument ID. Change callers.
16841 (decode_coding_emacs_mule, decode_coding_iso_2022)
16842 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16843 Produce charset annotation data in coding->charbuf.
16844 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16845 to charset annotation data in coding->charbuf.
16846 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16847 coding->common_flags if the coding system is iso-2022 based and
16848 uses designation.
16849 (produce_composition): Adjust for the new annotation data format.
16850 (produce_charset): New function.
16851 (produce_annotation): Handle charset annotation.
16852 (handle_composition_annotation, handle_charset_annotation): New
16853 functions.
16854 (consume_chars): Handle charset annotation. Utilize the above two
16855 functions.
16856 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16857 buffer, get the deleted text as a string and set
16858 coding->src_object to that string.
16859 (detect_coding, detect_coding_system): Use the new struct
16860 coding_detection_info.
16861
16862 * coding.h (struct coding_detection_info): New structure.
16863 (struct coding_system): Adjust prototype of the member `detector'.
16864 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16865
168662008-02-01 Kenichi Handa <handa@m17n.org>
16867
16868 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16869
168702008-02-01 Dave Love <fx@gnu.org>
16871
16872 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16873 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16874 to new local and nullify apropos_accumulate before returning.
16875 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16876
168772008-02-01 Kenichi Handa <handa@m17n.org>
16878
16879 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16880 correctly.
e3eea1fc 16881
aac0c6e3
MR
168822008-02-01 Dave Love <fx@gnu.org>
16883
16884 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16885
168862008-02-01 Kenichi Handa <handa@m17n.org>
16887
16888 The following changes are to make character composition happen
16889 automatically on displaying.
16890
16891 * Makefile.in (lisp, shortlisp): Add composite.elc.
16892
16893 * composite.h (Qauto_composed, Vauto_composition_function)
16894 (Qauto_composition_function): Extern them.
16895
16896 * composite.c (Vcomposition_function_table)
16897 (Qcomposition_function_table): Delete variables.
16898 (Qauto_composed, Vauto_composition_function)
16899 (Qauto_composition_function): New variables.
16900 (run_composition_function): Don't call
16901 compose-chars-after-function.
16902 (update_compositions): Clear `auto-composed' text property.
16903 (compose_chars_in_text): Delete this function.
16904 (syms_of_composite): Staticpro Qauto_composed and
16905 Qauto_composition_function. Declare Vauto_composition_function as
16906 a Lisp variable.
16907
16908 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16909
16910 * xdisp.c (it_props): Add an entry for Qauto_composed.
16911 (handle_auto_composed_prop): New function.
16912
16913 * xselect.c (selection_data_to_lisp_data): Don't call
16914 compose_chars_in_text.
16915
169162008-02-01 Dave Love <fx@gnu.org>
16917
16918 * keyboard.c (read_char): Modify checking around use of
16919 Vkeyboard_translate_table.
16920
16921 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16922 and fix C types.
16923
169242008-02-01 Kenichi Handa <handa@m17n.org>
16925
16926 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16927 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16928 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16929 the case that the last byte is '\r' correctly.
16930 (decode_coding): Flush out the unprocessed data correctly.
16931 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16932
169332008-02-01 Dave Love <fx@gnu.org>
16934
16935 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16936 Add XK_ISO... case.
16937 (xaw_scroll_callback): Revert last change.
16938
169392008-02-01 Kenichi Handa <handa@m17n.org>
16940
16941 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16942
169432008-02-01 Kenichi Handa <handa@m17n.org>
16944
16945 * xfaces.c (Vface_resizing_fonts): New variable.
16946 (struct font_name): New member `resizing_ratio'.
16947 (font_resizing_ratio): New function.
16948 (split_font_name): Set font->resizing_ratio.
16949 (better_font_p): Pay attention to font->resizing_ratio.
16950 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16951 RESX, and RESY fields.
16952 (try_alternative_families): Try scalable fonts if
16953 Vscalable_fonts_allowed is not Qt.
16954 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16955
169562008-02-01 Dave Love <fx@gnu.org>
16957
16958 * xterm.c (xaw_scroll_callback): Cast correctly.
16959
169602008-02-01 Dave Love <fx@gnu.org>
16961
16962 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16963 (lispy_kana_keys): Comment out.
16964 (make_lispy_event) [XK_kana_A]: Comment out.
16965
16966 * xterm.c (xaw_scroll_callback): Cast call_data.
16967 (XTread_socket): Deal with ASCII keysyms.
16968 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16969
169702008-02-01 Dave Love <fx@gnu.org>
16971
16972 * xterm.c (Vx_keysym_table): New.
16973 (syms_of_xterm): Initialize it.
16974 (XTread_socket): Use it.
16975 From head: Eliminate incorrect optimization that tried to avoid
16976 decoding the output of X*LookupString.
16977 (x_get_font_repertory): Delete charset declaration.
16978
169792008-02-01 Kenichi Handa <handa@m17n.org>
16980
16981 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16982 return 0.
16983 (Fdefine_coding_system_internal): Setup
16984 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16985
169862008-02-01 Dave Love <fx@gnu.org>
16987
16988 * coding.c (Fcheck_coding_system): Doc fix.
16989
16990 * editfns.c (Finsert_byte): Return a proper value.
16991
169922008-02-01 Kenichi Handa <handa@m17n.org>
16993
16994 * coding.c (decode_coding): Fix args to translate_chars. Pay
16995 attention to Vstandard_translation_table_for_decode.
16996 (encode_coding): Fix args to translate_chars. Pay attention to
16997 Vstandard_translation_table_for_encode.
16998
16999 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17000 SINGLE_BYTE_CHAR_P.
17001
17002 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17003 not by SINGLE_BYTE_CHAR_P.
17004
17005 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17006 SINGLE_BYTE_CHAR_P.
17007
17008 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17009 SINGLE_BYTE_CHAR_P.
17010
17011 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17012 by SINGLE_BYTE_CHAR_P.
17013
17014 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17015 SINGLE_BYTE_CHAR_P.
17016
170172008-02-01 Dave Love <fx@gnu.org>
17018
17019 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17020
170212008-02-01 Dave Love <fx@gnu.org>
17022
17023 * fns.c (Flanginfo): Fix typo.
17024
17025 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17026
170272008-02-01 Kenichi Handa <handa@m17n.org>
17028
17029 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17030 (detect_coding_emacs_mule, detect_coding_iso_2022)
17031 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17032 incomplete byte sequence. Don't update *mask when correctly detected.
17033 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17034 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17035 (detect_coding, detect_coding_system): Adjust for the changes above.
17036
170372008-02-01 Kenichi Handa <handa@m17n.org>
17038
17039 * character.c (char_string): Rename from
17040 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17041 (string_char): Rename from string_char.
17042
17043 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17044 if C is greater than MAX_3_BYTE_CHAR.
17045 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17046 string_char instead of string_char_with_unification.
17047
170482008-02-01 Dave Love <fx@gnu.org>
17049
17050 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17051
170522008-02-01 Kenichi Handa <handa@m17n.org>
17053
17054 * keymap.c (push_key_description): Pay attention to force_multibyte.
17055
17056 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17057
170582008-02-01 Dave Love <fx@gnu.org>
17059
17060 * charset.c (define_charset_internal): Rename `supprementary'.
17061
17062 * Makefile.in (lisp, shortlisp): Remove latin-N.
17063
170642008-02-01 Dave Love <fx@gnu.org>
17065
17066 * xfns.c (x_window, x_window): Use use_xim.
17067
17068 * xterm.c (use_xim): Initialize.
17069 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17070 (x_term_init): Maybe set use_xim.
17071
17072 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17073
170742008-02-01 Kenichi Handa <handa@m17n.org>
17075
17076 * search.c (search_buffer): Fix case-fold-search of multibyte
17077 characters.
17078 (boyer_moore): Rename the last argument to char_high_bits.
17079
170802008-02-01 Kenichi Handa <handa@m17n.org>
17081
17082 * xdisp.c (display_string): Fix for the case of zero width glyph.
17083
17084 * xfns.c (x_set_font): Change the error message of the case that
17085 x_new_fontset returns Qt.
17086
17087 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17088 (Finternal_set_lisp_face_attribute): Use signal_error for the
17089 error of invalid fontset.
17090
17091 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17092 fontset, return Qt.
17093
170942008-02-01 Dave Love <fx@gnu.org>
17095
17096 * unexelf.c (unexec): Make .got handling not SGI-specific.
17097
17098 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17099
17100 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17101
17102 * keyboard.c (read_key_sequence): Fix type error.
17103
17104 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17105 type error.
17106
17107 * fontset.c (fontset_add): Return Lisp_Object.
17108
171092008-02-01 Dave Love <fx@gnu.org>
17110
17111 * charset.h (charset_ordered_list_tick): Declare extern.
17112
171132008-02-01 Kenichi Handa <handa@m17n.org>
17114
17115 The following changes (and some of 2008-02-01 changes of mine) are
17116 for handling syntax, category, and case conversion for unibyte
17117 characters by converting them to multibyte on the fly. With these
17118 changes, we don't have to setup syntax and case tables for unibyte
17119 characters in each language environment.
17120
17121 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17122 multibyte if necessary.
17123
17124 * bytecode.c (Fbyte_code): Likewise.
17125
17126 * character.h (LEADING_CODE_LATIN_1_MIN)
17127 (LEADING_CODE_LATIN_1_MAX): New macros.
17128 (unibyte_to_multibyte_table): Extern it.
17129 (unibyte_char_to_multibyte): New macro.
17130 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17131 (CHAR_LEADING_CODE): New macro.
17132 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17133
17134 * character.c (unibyte_to_multibyte_table): New variable.
17135 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17136 (multibyte_char_to_unibyte): If C is an eight-bit character,
17137 convert it to the corresponding byte value.
17138
17139 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17140 not 1, signals an error. Update the elements of
17141 unibyte_to_multibyte_table.
17142 (init_charset_once): Initialize unibyte_to_multibyte_table.
17143 (syms_of_charset): Define the charset `iso-8859-1'.
17144
17145 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17146 as is without converting it to unibyte. In a unibyte buffer,
17147 convert C to multibyte before checking the syntax.
17148
17149 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17150
17151 * minibuf.c (Fminibuffer_complete_word): Use the macro
17152 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17153
17154 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17155
17156 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17157 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17158 that is zero, convert an eight-bit char to multibyte.
17159 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17160 non-emacs case.
17161 (PATFETCH): Convert an eight-bit char to multibyte.
17162 (HANDLE_UNIBYTE_RANGE): New macro.
17163 (regex_compile): Setup the compiled pattern for multibyte chars
17164 even if the given regex string is unibyte. Use PATFETCH_RAW
17165 instead of PATFETCH in many places. To handle `charset'
17166 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17167 only for ASCII chars.
17168 (analyse_first) <exactn>: Simplify because the compiled pattern
17169 is multibyte.
17170 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17171 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17172 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17173 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17174 multibyte always 1.
17175 (re_search_2): In emacs, set the locale variable multibyte to 1,
17176 otherwise to 0. New local variable target_multibyte. Check it
17177 to decide the multibyteness of STR1 and STR2. If
17178 target_multibyte is zero, convert unibyte chars to multibyte
17179 before translating and checking fastmap.
17180 (TARGET_CHAR_AND_LENGTH): New macro.
17181 (re_match_2_internal): In emacs, set the locale variable multibyte
17182 to 1, otherwise to 0. New local variable target_multibyte. Check
17183 it to decide the multibyteness of STR1 and STR2. Use
17184 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17185 <charset, charset_not>: If multibyte is nonzero, check fastmap
17186 only for ASCII chars. Call bcmp_translate with
17187 target_multibyte, not with multibyte.
17188 <begline>: Declare the local variable C as `unsigned'.
17189 (bcmp_translate): Change the last arg name to target_multibyte.
17190
17191 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17192 the regexp pattern and the matching target. Set cp->buf.multibyte
17193 to the multibyteness of the regexp pattern. Set
17194 cp->but.target_multibyte to the multibyteness of the matching target.
17195 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17196 FETCH_STRING_CHAR_ADVANCE.
17197 (Freplace_match): Convert unibyte chars to multibyte.
17198
17199 * syntax.c (char_quoted, back_comment, scan_words)
17200 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17201 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17202 unibyte chars to multibyte.
17203 (skip_chars): Delete the arg syntaxp, and move the code for
17204 handling syntaxes to skip_syntaxes. Change callers.
17205 Fix the case that the multibyteness of STRING and the current
17206 buffer doesn't match.
17207 (skip_syntaxes): New function.
17208 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17209 SINGLE_BYTE_CHAR_P.
17210
172112008-02-01 Kenichi Handa <handa@m17n.org>
17212
17213 * xfaces.c (QCfontset): New variable.
17214 (LFACE_FONTSET): New macro.
17215 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17216 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17217 (Finternal_set_lisp_face_attribute)
17218 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17219 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17220 check also LFACE_FONTSET_INDEX.
17221 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17222 attrs[LFACE_FONT_INDEX].
17223 (syms_of_xfaces): Intern and staticpro QCfontset.
17224
17225 * dispextern.h (enum lface_attribute_index): New member
17226 LFACE_FONTSET_INDEX.
17227
17228 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17229
172302008-02-01 Kenichi Handa <handa@m17n.org>
17231
17232 * coding.c (coding_set_destination): Fix coding->destination for
17233 the case converting a region.
17234 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17235 (encode_coding_object): Fix coding->dst_pos and
17236 coding->dst_pos_byte for the case converting a region.
17237
17238 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17239
17240 * character.h (BYTE8_STRING): New macro.
17241
17242 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17243
172442008-02-01 Kenichi Handa <handa@m17n.org>
17245
17246 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17247 characters by octal form.
17248
17249 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17250
17251 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17252 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17253 _fetch_multibyte_char_len.
17254 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17255
17256 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17257
17258 * casefiddle.c (casify_object): Simplify. Handle the case that
17259 the case conversion change the byte length.
17260 (casify_region): Likewise.
17261
17262 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17263
17264 * character.c (_fetch_multibyte_char_len): Delete this variable.
17265 (syms_of_character): Setup Vprintable_chars.
17266
17267 * editfns.c (Fchar_equal): Fix for the unibyte case.
17268 (Finsert_byte): New function.
17269 (syms_of_editfns): Defsubr it.
17270
17271 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17272 of direct code 0x3ffff.
17273
17274 * search.c (Freplace_match): Fix for the unibyte case.
17275
172762008-02-01 Kenichi Handa <handa@m17n.org>
17277
17278 * lread.c (safe_to_load_p): Fix the logic.
17279
17280 * syntax.c (scan_words): Don't treat characters belonging to
17281 different scripts as constituting a word.
17282
17283 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17284
17285 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17286
17287 * emacs.c (main): In the case of --unibyte, instead of aborting on
17288 finding non-empty buffer, make it unibyte.
17289
172902008-02-01 Kenichi Handa <handa@m17n.org>
17291
17292 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17293 to create a fontset.
17294
172952008-02-01 Dave Love <fx@gnu.org>
17296
17297 * character.c (Funibyte_char_to_multibyte): Doc fix.
17298
17299 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17300
173012008-02-01 Kenichi Handa <handa@m17n.org>
17302
17303 * fontset.c (fontset_add): Make the type `int'.
17304 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17305
17306 * character.c (unibyte_char_to_multibyte)
17307 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17308 charset_unibyte, not charset_primary.
17309
17310 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17311
17312 * charset.c (charset_unibyte): Rename from charset_primary.
17313 (Funibyte_charset): Rename from Fprimary_charset.
17314 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17315 (syms_of_charset): Adjust for the above changes.
17316
17317 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17318 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17319 it->multibyte_p is zero.
17320
17321 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17322 Delete extern.
17323
173242008-02-01 Kenichi Handa <handa@m17n.org>
17325
17326 * coding.c (Fdefine_coding_system_internal): Fix category setting
17327 for a coding system of type iso-2022.
17328
173292008-02-01 Kenichi Handa <handa@m17n.org>
17330
17331 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17332
173332008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * syntax.c (Vnext_word_boundary_function_table): New variable.
17336 (next-word-boundary-function-table): Declare it as a Lisp variable
17337 in syms_of_syntax.
17338 (scan_words): Call functions in Vnext_word_boundary_function_table
17339 if any.
17340
17341 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17342
17343 * fontset.c (fs_load_font): If fontp->charset is not negative,
17344 return fontp without setting its members.
17345
173462008-02-01 Dave Love <fx@gnu.org>
17347
17348 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17349
17350 * m/sparc.h (HAVE_ALLOCA): Delete.
17351
17352 * s/irix6-5.h: Don't include strings.h.
17353 (bcopy, bzero, bcmp): Don't undef.
17354
17355 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17356
17357 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17358 (TIOCSIGSEND): Don't test IRIX6.
17359 (bcopy, bzero, bcmp): Define conditionally.
17360
173612008-02-01 Kenichi Handa <handa@m17n.org>
17362
17363 * buffer.c (Qas, Qmake, Qto): New variables.
17364 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17365 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17366
17367 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17368 we are inserting a process output into a multibyte buffer.
17369
17370 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17371 multibyte_char_to_unibyte.
17372
17373 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17374 by the primary charset, make it eight-bit char.
17375 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17376
17377 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17378 (charset_8_bit__control, charset_8_bit_graphic)
17379 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17380 (define_charset_internal): New function.
17381 (syms_of_charset): Call define_charset_internal for pre-defined
17382 charsets.
17383
17384 * charset.h (charset_8_bit): Extern it.
17385
17386 * coding.c (make_conversion_work_buffer): Adjust for the change
17387 of Fset_buffer_multibyte.
17388 (encode_coding_raw_text): Increment p0 in the loop.
17389
17390 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17391
17392 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17393 for the change of Fset_buffer_multibyte.
17394
17395 * fns.c (Fstring_to_multibyte): New function.
17396 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17397
173982008-02-01 Dave Love <fx@gnu.org>
17399
17400 * xfns.c (x_put_x_image): Declare args.
17401
17402 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17403 (try_font_list): Declare an arg.
17404
17405 * xdisp.c (message2_nolog, set_message): Declare an arg.
17406
17407 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17408
17409 * syntax.c (scan_sexps_forward): Declare an arg.
17410
17411 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17412 Declare an arg.
17413
17414 * lisp.h (Fnew_fontset): Declare.
17415
17416 * keymap.c (push_key_description): Call CHARACTERP correctly.
17417
17418 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17419 (face_for_char): Delete unused vars.
17420 (Fset_fontset_font): Doc fix. Delete unused vars.
17421
17422 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17423
17424 * composite.c (update_compositions): Declare arg.
17425
17426 * cm.c (calccost, cmgoto): Declare args.
17427
17428 * charset.c: Remove `emacs' conditional. Doc fixes.
17429 (map_char_table_for_charset): Declare.
17430
17431 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17432
17433 * ccl.c: Remove `emacs' conditional.
17434
174352008-02-01 Kenichi Handa <handa@m17n.org>
17436
17437 The following changes are to allow specifying multiple font
17438 patterns for a character range (specified by script or charset).
17439
17440 * Makefile.in (abbrev.o): Depend on syntax.h.
17441 (xfaces.o): Depend on charset.h.
17442
17443 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17444 SINGLE_BYTE_CHAR_P.
17445
17446 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17447
17448 * character.h (Vchar_script_table): Extern it.
17449
17450 * character.c (Vscript_alist): Delete.
17451 (Vchar_script_table, Qchar_script_table): New variable.
17452 (syms_of_character): Declare Vchar_script_table as a lisp variable
17453 and initialize it.
17454
17455 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17456 have property char-table-extra-slots, make no extra slot.
17457
17458 * dispextern.h (struct face): Delete member `charset'.
17459 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17460 SINGLE_BYTE_CHAR_P.
17461 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17462 Add prototypes.
17463 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17464 (generate_ascii_font_name): Rename from generate_ascii_font.
17465
17466 * fontset.h (get_font_repertory_func): New prototype.
17467 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17468 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17469
17470 * fontset.c (Qprepend, Qappend): New variables.
17471 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17472 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17473 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17474 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17475 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17476 (load_font_get_repertory): New functions.
17477 (fontset_set): Delete.
17478 (fontset_face): New arg FACE. Return face ID, not face.
17479 Complete re-write to handle new fontset structure. Change caller.
17480 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17481 (face_for_char): Don't call lookup_face.
17482 (make_fontset_for_ascii_face): New arg FACE.
17483 (fs_load_font): New arg CHARSET_ID. Don't check
17484 Vfont_encoding_alist here.
17485 (find_font_encoding): New function.
17486 (list_fontsets): Use STRINGP, not ! NILP.
17487 (accumulate_script_ranges): New function.
17488 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17489 re-written to handle new fontset structure.
17490 (Ffontset_font): Return a copy of element.
17491 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17492 docstring of font-encoding-alist.
17493
17494 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17495 (Fset_fotset_font): Fix arguments to 5.
17496
17497 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17498
17499 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17500 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17501 (highlight_trailing_whitespace): Adjust for the change of
17502 lookup_named_face.
17503
17504 * xfaces.c: Include charset.h.
17505 (load_face_font): Delete argument C. Change caller.
17506 (generate_ascii_font_name): Rename from generate_ascii_font.
17507 (font_name_registry): New function.
17508 (cache_face): Store ascii faces before non-ascii faces in buckets.
17509 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17510 Lookup only ascii faces.
17511 (lookup_non_ascii_face): New function.
17512 (lookup_named_face): Delete argument C. Change caller.
17513 (lookup_derived_face): Delete argument C. Change caller.
17514 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17515 a string, just call font_list with it.
17516 (choose_face_font): Delete arguments FACE and C. New arg
17517 FONT_SPEC. Change caller.
17518 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17519 Change caller.
17520 (realize_non_ascii_face): New function.
17521 (realize_x_face): Call load_face_font here.
17522 (realize_tty_face): Delete argument C. Change caller.
17523 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17524 get a face ID.
17525 (dump_realized_face): Don't print charset of FACE.
17526
17527 * xfns.c (x_set_font): Always call x_new_fontset and
17528 store_frame_parameter.
17529 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17530 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17531
17532 * xterm.h (x_get_font_repertory): Extern it.
17533
17534 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17535 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17536 it->multibyte_p is zero.
17537 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17538 (x_new_fontset): If FONTSETNAME doesn't match any existing
17539 fontsets, create a new one.
17540 (x_get_font_repertory): New function.
17541
175422008-02-01 Kenichi Handa <handa@m17n.org>
17543
17544 * coding.c (Ffind_coding_systems_region_internal): Detect an
17545 ASCII only string correctly.
17546
17547 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17548 version is 0.
17549
175502008-02-01 Kenichi Handa <handa@m17n.org>
17551
17552 * lread.c: Include "coding.h".
17553 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17554 (load_each_byte, unread_char): New variables.
17555 (readchar_backlog): Delete.
17556 (readchar): Return a character unless load_each_byte is nonzero.
17557 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17558 cons. If unread_char is not -1, simply return it.
17559 (unreadchar): Handle the case that readcharfun is
17560 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17561 (read_multibyte): Delete.
17562 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17563 (read_emacs_mule_char): New functions.
17564 (Fload): Even if the file doesn't have the extension ".elc", if
17565 safe_to_load_p returns a positive version number, assume that the
17566 file contains bytecompiled code. If the version is less than 22,
17567 load the file while decoding multibyte sequences by emacs-mule.
17568 (readevalloop): Don't use readchar_backlog.
17569 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17570 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17571 (read_escape): Delete the arg BYTEREP.
17572 (read1): Set load_each_byte to 1 temporarily while handling
17573 #@NUMBER. Don't call read_multibyte.
17574 (read_vector): Call Fread with a cons. If readcharfun is
17575 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17576 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17577 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17578 and Qload_force_doc_strings.
17579
175802008-02-01 Kenichi Handa <handa@m17n.org>
17581
17582 * xdisp.c (face_before_or_after_it_pos): Call
17583 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17584
175852008-02-01 Kenichi Handa <handa@m17n.org>
17586
17587 * character.h (TRAILING_CODE_P): New macro.
17588 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17589 (string_char_with_unification): Fix prototype.
17590 (Vscript_alist): Extern it.
17591
17592 * character.c (Vscript_alist): New variable.
17593 (string_char_with_unification, str_as_unibyte)
17594 (string_escape_byte8): Add `const' to local variables.
17595 (syms_of_character): Declare script-alist as a Lisp variable.
17596
17597 * charset.h (Vcharset_ordered_list): Extern it.
17598 (charset_ordered_list_tick): Extern it.
17599 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17600 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17601 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17602 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17603 (Funify_charset): Adjust for the change of Funify_charset.
17604
17605 * charset.c (charset_ordered_list_tick): New variable.
17606 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17607 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17608 deunify intead of unify a charset.
17609 (string_xstring_p): Add `const' to local variables.
17610 (find_charsets_in_text): Add `const' to arguments and local variables.
17611 (encode_char): Adjust for the change of Funify_charset. Fix
17612 detecting of invalid code.
17613 (Fset_charset_priority): Increment charset_ordered_list_tick.
17614 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17615 and TO_CODE.
17616
17617 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17618 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17619 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17620 (decode_coding_ccl, consume_chars)
17621 (Ffind_coding_systems_region_internal)
17622 (Fcheck_coding_systems_region): Add `const' to local variables.
17623
17624 * print.c (print_object): Use octal form for printing the
17625 contents of a bool vector.
17626
176272008-02-01 Dave Love <fx@gnu.org>
17628
17629 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17630 <version == 20>: Refuse to load.
17631
176322008-02-01 Dave Love <fx@gnu.org>
17633
17634 * fns.c: Move coding.h.
17635 (Qcodeset, Qdays, Qmonths): New.
17636 (concat): Use CHARACTERP instead of INTEGERP.
17637 (Flocale_codeset): Delete.
17638 (Flanginfo): New function.
17639 (syms_of_fns): Change accordingly.
17640
17641 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17642
176432008-02-01 Dave Love <fx@gnu.org>
17644
17645 * casetab.c (init_casetab_once, init_casetab_once): Fix
17646 CHAR_TABLE_SET call.
17647
17648 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17649
17650 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17651
17652 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17653 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17654 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17655
17656 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17657
17658 * coding.c (ENCODE_DESIGNATION, decode_eol)
17659 (make_conversion_work_buffer, code_conversion_restore)
17660 (Fdefine_coding_system_internal): Convert Lisp types.
17661 (code_conversion_restore): Use EQ, not ==.
17662 (Fencode_coding_string): Fix code_convert_string call.
17663
17664 * coding.h (code_convert_region): Fix prototype.
17665
17666 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17667
17668 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17669 (Ffontset_info): Convert Lisp types.
17670
17671 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17672
17673 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17674
17675 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17676
17677 * chartab.c: Include "...h", not <...h> in some cases.
17678
17679 * callproc.c (Fcall_process): Remove unused variables.
17680
176812008-02-01 Dave Love <fx@gnu.org>
17682
17683 * coding.c (Fset_coding_system_priority): Allow null arg list.
17684
176852008-02-01 Dave Love <fx@gnu.org>
17686
17687 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17688 (Fself_insert_and_exit): Use CHARACTERP.
17689
17690 * callproc.c (Fcall_process): Remove unused vars.
17691
17692 * xterm.c (XTread_socket): Add extra dead keysyms.
17693
17694 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17695
17696 * dispextern.h: Remove prototypes for redraw_frame,
17697 redraw_garbaged_frames.
17698
17699 * cmds.c (Fself_insert_command): Use CHARACTERP.
17700
17701 * chartab.c (make_sub_char_table): Remove unused var.
17702 (Fset_char_table_default, Fmap_char_table): Doc fix.
17703
17704 * keymap.c (access_keymap): Remove generic char code.
17705 (push_key_description): Use CHARACTERP.
17706
177072008-02-01 Dave Love <fx@gnu.org>
17708
17709 * charset.c: Doc fixes.
17710 (Funify_charset): Extra checking.
17711
177122008-02-01 Dave Love <fx@gnu.org>
17713
17714 * lread.c: Remove some unused variables.
17715 (safe_to_load_p): If safe, return the magic number version byte.
17716 (Fload): Maybe use load-with-code-conversion.
17717
177182008-02-01 Kenichi Handa <handa@m17n.org>
17719
17720 * category.c (Fmodify_category_entry): Don't modify the contents
17721 of category_set for characters out of the range. Avoid
17722 unnecessary modification.
17723
17724 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17725 Vchar_unify_table. The default value of the table is now nil.
17726
17727 * character.c (syms_of_character): Setup Vchar_width_table for
17728 eight-bit-control and raw-byte chars.
17729
17730 * charset.h (enum define_charset_arg_index): Delete
17731 charset_arg_parents and add charset_arg_subset and
17732 charset_arg_superset.
17733 (enum charset_attr_index): Delete charset_parents and add
17734 charset_subset and charset_superset.
17735 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17736 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17737 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17738 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17739 (CHARSET_SUPERSET): New macros.
17740 (charset_work): Extern it.
17741 (ENCODE_CHAR): Use charset_work.
17742 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17743 (map_charset_chars): Extern it.
17744
17745 * charset.c (load_charset_map): Set the default value of encoder
17746 and deunifier char-tables to nil.
17747 (map_charset_chars): Change argument. Change callers. Use
17748 map_char_table_for_charset instead of map_char_table.
17749 (Fmap_charset_chars): New optional args from_code and to_code.
17750 (Fdefine_charset_internal): Adjust for the change of
17751 `define-charset' (:parents -> :subset or :superset).
17752 (charset_work): New variable.
17753 (encode_char, syms_of_charset): Adjust for the change of
17754 Fdefine_charset_internal.
17755 (Ffind_charset_string): Setup the vector `charsets' correctly.
17756
17757 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17758 the previous change.
17759 (char_table_ref_and_range): Adjust for the above change.
17760 (map_sub_char_table_for_charset): New function.
17761 (map_char_table_for_charset): New function.
17762
17763 * keymap.c (describe_vector): Handle a char-table directly here.
17764 (describe_char_table): Delete.
17765
17766 * lisp.h (map_charset_chars): Delete.
17767
177682008-02-01 Dave Love <fx@gnu.org>
17769
17770 * fns.c (count_combining): Comment out (unused).
17771 (Flocale_codeset): New.
17772 (syms_of_fns): Defsubr it.
17773
17774 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17775 (size_t): Remove.
17776
177772008-02-01 Dave Love <fx@gnu.org>
17778
17779 * Makefile.in (chartab.o): Depend on charset.h.
17780
177812008-02-01 Kenichi Handa <handa@m17n.org>
17782
17783 * character.c (syms_of_character): Set the default value of
17784 Vprintable_chars to Qnil.
17785
177862008-02-01 Dave Love <fx@gnu.org>
17787
17788 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17789
177902008-02-01 Kenichi Handa <handa@m17n.org>
17791
17792 * charset.c (load_charset_map): Handle the case that from < to
17793 correctly.
17794
17795 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17796 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17797 Pay attention to raw-8-bit chars.
17798
177992008-02-01 Kenichi Handa <handa@m17n.org>
17800
17801 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17802 It is not bytecompiled now.
17803
17804 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17805 (charset_jisx0208): New variables.
17806 (Fdefine_charset_internal): Setup them if appropriate.
17807 (init_charset_once): Initialize them to -1.
17808
17809 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17810 (charset_jisx0208): Extern them.
17811
17812 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17813 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17814 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17815 (setup_iso_safe_charsets): Fix arguments to Fassq.
17816 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17817 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17818 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17819 (encode_coding_iso_2022): Change the 1st arg to
17820 ENCODE_ISO_CHARACTER to a variable.
17821
178222008-02-01 Kenichi Handa <handa@m17n.org>
17823
17824 * charset.h (enum define_charset_arg_index): New enums
17825 charset_arg_min_code and charset_arg_max_code.
17826 (struct charset): New member char_index_offset.
17827
17828 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17829 Take charset->char_index_offset into account.
17830 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17831 args[charset_arg_max_code]. Setup charset.char_index_offset.
17832 (syms_of_charset): Fix args to Fdefine_charset_internal.
17833
178342008-02-01 Dave Love <fx@gnu.org>
17835
17836 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17837
178382008-02-01 Dave Love <fx@gnu.org>
17839
17840 * coding.c: Doc fixes.
17841 (Fcoding_system_aliases): Fix return value.
17842 (Qmac): Remove (duplicated) definition.
17843
178442008-02-01 Dave Love <fx@gnu.org>
17845
362654a6
JB
17846 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17847 New functions.
aac0c6e3
MR
17848
17849 * character.c (Fstring): Doc fix.
17850
17851 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17852
362654a6 17853 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17854 (font-encoding-alist): Doc fix.
17855
178562008-02-01 Dave Love <fx@gnu.org>
17857
17858 * term.c (costs_set): Declare static, non-initialized for pcc.
17859 (encode_terminal_code): Remove unused var.
17860
17861 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17862 for K&R.
17863
17864 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17865
17866 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17867 (suffixes): Move out of make_subsidiaries for K&R.
17868
17869 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17870
17871 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17872
178732008-02-01 Dave Love <fx@gnu.org>
17874
17875 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17876
17877 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17878
178792008-02-01 Yong Lu <lyongu@asia-infonet.com>
17880
17881 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17882
17883 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17884
178852008-02-01 Kenichi Handa <handa@m17n.org>
17886
17887 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17888 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17889
178902008-02-01 Kenichi Handa <handa@m17n.org>
17891
17892 * coding.c (decode_coding_charset): Adjust for the change of
17893 Fdefine_coding_system_internal.
17894 (Fdefine_coding_system_internal): For a coding system of
17895 `charset' type, store a list of charset IDs in
17896 `charset_attr_charset_valids' element of coding attributes.
17897
178982008-02-01 Kenichi Handa <handa@m17n.org>
17899
17900 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17901 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17902 caller. Handle 2-byte and 3-byte charsets correctly.
17903 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17904 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17905 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17906 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17907 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17908 sequence.
17909 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17910 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17911 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17912 and alt&rule composition.
17913 (decode_coding_iso_2022): Handle composition correctly.
17914 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17915
17916 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17917 re-defining a charset. If the charset has :emacs-mule-id, setup
17918 emacs_mule_bytes.
17919 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17920
179212008-02-01 Kenichi Handa <handa@m17n.org>
17922
17923 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17924 (encode_coding_big5, encode_coding_charset): If coding requires safe
17925 encoding, produce a character specified by
17926 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17927
179282008-02-01 Dave Love <fx@gnu.org>
17929
17930 * xterm.c (XSetIMValues): Declare.
17931
17932 * process.c: Conditionally include sys/wait.h, pty.h.
17933
17934 * print.c (print_object): Fix print format for 64-bit systems.
17935
17936 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17937
17938 * buffer.c (emacs_strerror): Declare.
17939
17940 * fontset.c (Fclear_face_cache): Declare.
17941 (accumulate_font_info): Comment-out (unused).
17942 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17943 variables.
17944
17945 * character.h (string_escape_byte8): Declare.
17946
17947 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17948 unused vars.
17949 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17950 (Fmap_charset_chars): Doc fix.
17951
17952 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17953 (Fset_coding_system_priority, Fset_coding_system_priority)
17954 (Fdefine_coding_system_internal): Doc fix.
17955
179562008-02-01 Dave Love <fx@gnu.org>
17957
17958 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17959
179602008-02-01 Kenichi Handa <handa@m17n.org>
17961
17962 * character.c (string_escape_byte8): Make multibyte string with
17963 correct size.
17964
17965 * charset.c (Fmake_char): Delete unnecessary code.
17966
179672008-02-01 Kenichi Handa <handa@m17n.org>
17968
17969 * xfns.c (x_encode_text): Allocate coding.destination here, and
17970 call encode_coding_object with dst_object Qnil.
17971
17972 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17973 multibyte form correctly.
17974
17975 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17976 against Vfont_encoding_alist.
17977
17978 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17979 handling of charset list.
17980 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17981 (decode_coding_object): Move point to coding->dst_pos before
17982 calling post-read-conversion function.
17983 (encode_coding_object): Give correct arguments to
17984 pre-write-conversion. Ignore the return value of
17985 pre-write-conversion function. Pay attention to the case that
17986 pre-write-conversion changes the current buffer. If dst_object is
17987 Qt, even if coding->src_bytes is zero, allocate at least one byte
17988 to coding->destination.
17989
17990 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17991
17992 * charset.c (Fmake_char): Make it more backward compatible.
17993 (Fmap_charset_chars): Fix docstring.
17994
179952008-02-01 Dave Love <fx@gnu.org>
17996
17997 * coding.c: Doc fixes.
17998 (Fdefine_coding_system_alias): Use names, not symbols, in
17999 coding-system-alist.
18000
180012008-02-01 Kenichi Handa <handa@m17n.org>
18002
18003 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18004 of calling free_realized_face.
18005
180062008-02-01 Yong Lu <lyongu@asia-infonet.com>
18007
18008 * charset.c (read_hex): Don't treat SPC as a comment starter.
18009 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18010 (Fdecode_char): Fix typo.
18011
180122008-02-01 Kenichi Handa <handa@m17n.org>
18013
18014 * charset.h (struct charset): New member `code_space_mask'.
18015
18016 * coding.c (coding_set_source): Delete the local variable beg_byte.
18017 (encode_coding_charset, Fdefine_coding_system_internal):
18018 Delete the local variable charset.
18019 (Fdefine_coding_system_internal): Setup
18020 attrs[coding_attr_charset_valids] correctly.
18021
18022 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18023 member to check if CODE is valid or not.
18024 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18025 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18026 is within the range of charset->min_code and carset->max_code.
18027
180282008-02-01 Dave Love <fx@gnu.org>
18029
18030 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18031
18032 * dispextern.h (generate_ascii_font): Fix return type.
18033
18034 * xfaces.c (generate_ascii_font): Fix arg declaration.
18035
18036 * coding.c (coding_inherit_eol_type)
18037 (Fset_terminal_coding_system_internal)
18038 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18039
180402008-02-01 Kenichi Handa <handa@m17n.org>
18041
18042 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18043 multiple charsets correctly.
18044
180452008-02-01 Kenichi Handa <handa@m17n.org>
18046
18047 * search.c (boyer_moore): Fix handling of multibyte character
18048 translation.
18049
18050 * xdisp.c (display_mode_element): When the variable `elt' is
18051 changed, update `this' and `lisp_string'.
18052
180532008-02-01 Kenichi Handa <handa@m17n.org>
18054
18055 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18056
18057 * callproc.c (Fcall_process): Be sure to give the current buffer
18058 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18059
18060 * charset.c (struct charset_map_entries): New struct.
18061 (load_charset_map): Rename from parse_charset_map. New args
18062 entries and n_entries. Change caller.
18063 (load_charset_map_from_file): Rename from load_charset_map.
18064 Change caller. New arg control_flag. Call load_charset_map at
18065 the tail.
18066 (load_charset_map_from_vector): New function.
18067 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18068 (encode_char): If the charset is compact, change a character index
18069 to a code point.
18070
18071 * coding.c (coding_alloc_by_making_gap): Check the case that the
18072 source and destination are the same correctly.
18073 (decode_coding_raw_text): Set coding->consumed_char and
18074 coding->consumed to 0.
18075 (produce_chars): If coding->chars_at_source is nonzero, update
18076 coding->consumed_char and coding->consumed before calling
18077 alloc_destination.
18078 (Fdefine_coding_system_alias): Register ALIAS in
18079 Vcoding_system_alist.
18080 (syms_of_coding): Define `no-conversion' coding system at the tail.
18081
18082 * fileio.c (Finsert_file_contents): Set coding_system instead of
18083 val. If the current buffer is multibyte, always call
18084 decode_coding_gap.
18085
18086 * xfaces.c (try_font_list): Give higher priority to fontset's
18087 family than face's family.
18088
180892008-02-01 Kenichi Handa <handa@m17n.org>
18090
18091 * callproc.c (Fcall_process): Be sure to give the current buffer
18092 to decode_coding_c_string.
18093
18094 * xfaces.c (try_font_list): Give a family specified in a fontset
18095 higher priority than a family specified in a face.
18096
180972008-02-01 Kenichi Handa <handa@m17n.org>
18098
18099 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18100 Fix arguments to insert_from_buffer.
18101
18102 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18103
181042008-02-01 Kenichi Handa <handa@m17n.org>
18105
18106 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18107 (decode_coding_gap): Set coding->dst_multibyte correctly.
18108
181092008-02-01 Kenichi Handa <handa@m17n.org>
18110
18111 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18112 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18113 (encode_coding_utf_16): Substitute coding->default_char for
18114 non-Unicode characters.
18115 (decode_coding): Don't call record_insert here.
18116 (setup_coding_system): Initialize `surrogate' of
18117 coding->spec.utf_16 to 0.
18118 (EMIT_ONE_BYTE): Fix for multibyte case.
18119
18120 * insdel.c (insert_from_gap): Call record_insert.
18121
181222008-02-01 Kenichi Handa <handa@m17n.org>
18123
18124 * casefiddle.c (casify_region): Fix multibyte case.
18125
18126 * character.c (c_string_width): Add return type `int'.
18127 (char_string_with_unification): Delete arg ADVANCED.
18128
18129 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18130 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18131 (CHAR_STRING_ADVANCE): Make it do-while statement.
18132
18133 * chartab.c (sub_char_table_set_range): Optimize for the case
18134 DEPTH == 3. Add workaround code for a GCC optimization bug.
18135
18136 * charset.c (parse_charset_map): Remove an unused variable.
18137
18138 * coding.c: Delete unused variables.
18139
18140 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18141 earlier. If inserted is zero and the coding system doesn't
18142 require flushing, don't call decode_coding_gap.
18143
18144 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18145
181462008-02-01 Kenichi Handa <handa@m17n.org>
18147
18148 The following changes are for using Unicode as an internal
18149 character model, and use UTF-8 format for buffer/string
18150 representation.
18151
18152 * .gdbinit (xchartable): Adjust for the change of char table structure.
18153 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18154
18155 * Makefile.in (obj): Add character.o and chartab.o.
18156 (lisp, shortlisp): Remove utf-8.elc.
18157 (*.o): For many files, change dependency on charset.h to
18158 character.h, and add dependency on character.h.
18159 (character.o, chartab.o): New targets.
18160
18161 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18162 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18163 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18164 of "charset.h".
18165
18166 * dired.c, filelock.c: Include "character.h".
18167
18168 * alloc.c: Include "character.h" instead of "charset.h".
18169 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18170 (syms_of_alloc): Remove defsubr for Smake_char_table.
18171
18172 * buffer.c: Include "character.h" instead of "charset.h", don't
18173 include "coding.h".
18174 (Fset_buffer_multibyte): Adjust for UTF-8.
18175
18176 * buffer.h: EXFUN Fbuffer_live_p.
18177
18178 * callproc.c: Include "character.h" instead of "charset.h".
18179 (Fcall_process): Big change for the new code-conversion APIs.
18180
18181 * casetab.c: Include "character.h" instead of "charset.h".
18182 (set_canon, set_identity, shuffle): Adjust for the new
18183 map_char_table spec.
18184 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18185 accessing the char table structure.
18186
18187 * chartab.c: New file that implements char table.
18188
18189 * category.c: Include "character.h".
18190 (copy_category_entry): New function.
18191 (copy_category_table): Call map_char_table and copy_category_entry.
18192 (Fmake_category_table): Initialize all top-level slots.
18193 (char_category_set): New function.
18194 (modify_lower_category_set): Delete.
18195 (Fmodify_category_entry): Call char_table_ref_and_range.
18196
18197 * category.h (CATEGORY_SET): Just call char_category_set.
18198
18199 * ccl.c: Include "character.h".
18200 (Qccl, Qcclp): New variables.
18201 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18202 it's less than 256.
18203 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18204 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18205 and DST type.
18206 (ccl_driver): Change types of argument, adjust code accordingly.
18207 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18208 ccl_driver.
18209 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18210
18211 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18212 New members src_multibyte, dst_multibyte, consumed, and produced.
18213 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18214 (CODING_SPEC_CCL_PROGRAM): New macro.
18215 (ccl_driver): Update prototype.
18216 (Qccl, Qcclp, Fccl_program_p): Extern them.
18217 (CHECK_CCL_PROGRAM): New macro.
18218
18219 * character.c, character.h, chartab.c: New files.
18220
18221 * charset.c: Mostly re-written. Move character and multibyte sequence
18222 handling codes to character.c.
18223
18224 * charset.h: Mostly re-written. Move character and multibyte sequence
18225 handling codes to character.h.
18226
18227 * coding.c, coding.h: Mostly re-written.
18228
18229 * composite.c: Include "character.h" instead of "charset.h".
18230 (CHAR_WIDTH): Move to character.h.
18231 (HASH_KEY, HASH_VALUE): Delete.
18232
18233 * composite.h (enum composition_method): Change order of enumeration
18234 symbols.
18235
18236 * data.c: Include "character.h" instead of "charset.h".
18237 (Faref): Call CHAR_TABLE_REF for a char table.
18238 (Faset): Call CHAR_TABLE_SET for a char table.
18239
18240 * dispextern.h (free_realized_face, check_face_attribytes)
18241 (generate_ascii_font): Extern them.
18242 (free_realized_multibyte_face): Delete extern.
18243
18244 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18245 table structure.
18246
18247 * editfns.c: Include "character.h" instead of "charset.h".
18248 (Fchar_to_string): Always call CHAR_STRING.
18249
18250 * emacs.c (main): Call init_charset_once, init_charset,
18251 syms_of_chartab, and syms_of_character.
18252
18253 * fileio.c: Include "character.h" instead of "charset.h".
18254 (Finsert_file_contents): Big change for the new code-conversion API.
18255 (choose_write_coding_system, Fwrite_region): Likewise.
18256 (build_annotations_2): Delete.
18257 (e_write): Big change for the new code-conversion API.
18258
18259 * fns.c: Include "character.h" instead of "charset.h".
18260 (copy_sub_char_table): Move to chartab.c.
18261 (Fcopy_sequence): Call copy_char_table for a char table.
18262 (concat): Delete codes calling count_multibyte.
18263 (string_char_to_byte, string_byte_to_char): Adjust for the new
18264 multibyte form.
18265 (internal_equal): Adjust for the change of char table structure.
18266 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18267 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18268 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18269 (char_table_translate, optimize_sub_char_table)
18270 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18271 chartab.c.
18272 (char_table_ref_and_index): Delete.
18273 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18274 (Fmd5): Call preferred_coding_system instead of accessing
18275 Vcoding_category_list. Adjust for the new code-conversion API.
18276 (syms_of_fns): Move defsubr for char table related functions to
18277 chartab.c.
18278
18279 * fontset.c: Mostly re-written.
18280
18281 * fontset.h (struct font_info): Change type of the member encoding_type.
18282 (enum FONT_SPEC_INDEX): New enum.
18283 (fontset_font_pattern, fs_load_font): Update prototype.
18284 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18285
18286 * indent.c: Include "character.h" instead of "charset.h".
18287 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18288
18289 * insdel.c: Include "character.h" instead of "charset.h".
18290 (copy_text): Don't refer to Vnonascii_translation_table.
18291 (insert_from_gap): New function.
18292
18293 * keyboard.c: Include "character.h" instead of "charset.h".
18294 (command_loop_1): Never call direct_output_forward_char before
18295 a non-ASCII character.
18296 (read_char): If Vkeyboard_translate_table is a char table, always
18297 translate a character.
18298
18299 * keymap.c: Include "character.h".
18300 (store_in_keymap): Handle the case that IDX is a cons.
18301 (Fdefine_key): Handle the case that KEY is a cons and the car part
18302 is also a cons (range).
18303 (push_key_description): Adjust for the new character code.
18304 (describe_vector): Call describe_char_table for a char table.
18305 (describe_char_table): New function.
18306
18307 * keymap.h (describe_char_table): Extern it.
18308
18309 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18310 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18311 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18312 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18313 Delete.
18314 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18315 structure.
18316 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18317 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18318 (CHARTAB_SIZE_BITS_3): New macros.
18319 (chartab_size): Extern it.
18320 (struct Lisp_Char_Table): Re-design.
18321 (struct Lisp_Sub_Char_Table): New structure.
18322 (HASH_KEY, HASH_VALUE): Move from fns.c.
18323 (CHARACTERBITS): Define as 22.
18324 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18325 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18326 (GC_SUB_CHAR_TABLE_P): New macro.
18327 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18328 (code_convert_string_norecord): Deleted extern.
18329 (init_character_once, syms_of_character, init_charset)
18330 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18331
18332 * lread.c: Include "character.h".
18333 (read_multibyte): New arg NBYTES.
18334 (read_escape): Change the meaning of returned *BYTEREP.
18335 (to_multibyte): Delete.
18336 (read1): Adjust the handling of char table and string.
18337
18338 * print.c: Include "character.h" instead of "charset.h".
18339 (print_string): Convert 8-bit raw bytes to octal form by
18340 string_escape_byte8.
18341 (print_object): Adjust for the new multibyte form. Print 8-bit
18342 raw bytes always in octal form. Handle sub char table correctly.
18343
18344 * process.c: Include "character.h" instead of "charset.h".
18345 (read_process_output, send_process): Adjust for the new
18346 code-conversion API.
18347
18348 * puresize.h (BASE_PURESIZE): Increase.
18349
18350 * regex.c: Include "character.h" instead of "charset.h".
18351 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18352 (regex_compile): Accept a range whose starting and ending
18353 character have different leading bytes.
18354 (analyse_first): Adjust for the above change.
18355
18356 * search.c: Include "character.h" instead of "charset.h".
18357 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18358 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18359
18360 * syntax.c: Include "character.h" instead of "charset.h".
18361 (syntax_parent_lookup): Delete.
18362 (Fmodify_syntax_entry): Accept a cons as CHAR.
18363 (skip_chars): Adjust for the new multibyte form.
18364 (init_syntax_once): Call char_table_set_range instead of directly
18365 accessing the structure of a char table.
18366
18367 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18368 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18369 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18370 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18371
18372 * term.c: Include "buffer.h" and "character.h".
18373 (encode_terminal_code, write_glyphs): Adjust for the new
18374 code-conversion API.
18375 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18376
18377 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18378
18379 * xdisp.c: Include "character.h".
18380 (get_next_display_element): Adjust for the new multibyte form.
18381 (disp_char_vector): Adjust for the new char table structure.
18382 (decode_mode_spec_coding): Adjust for the new structure of
18383 coding system.
18384 (decode_mode_spec): Adjust for the new code-conversion API.
18385
18386 * xfaces.c: Include "character.h" instead of "charset.h".
18387 (load_face_font): Adjust for the change of choose_face_font and
18388 FS_LOAD_FONT.
18389 (generate_ascii_font): New function.
18390 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18391 (set_font_frame_param): Adjust for the change of choose_face_font.
18392 (free_realized_face): Make it public.
18393 (free_realized_faces_for_fontset): Rename from
18394 free_realized_multibyte_face. Free also faces realized for ASCII.
18395 (choose_face_font): Change arguments. Adjust for the change of
18396 fontset_font_pattern and FS_LOAD_FONT.
18397
18398 * xfns.c: Include "character.h".
18399 (x_encode_text): Adjust for the new code-conversion API.
18400
18401 * xselect.c: Don't include "charset.h".
18402 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18403
18404 * xterm.c: Include "character.h".
18405 (x_encode_char): New argument CHARSET. Change caller.
18406 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18407 Call ENCODE_CHAR instead of SPLIT_CHAR.
18408 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18409 CHAR_WIDTH instead of CHARSET_WIDTH.
18410 (XTread_socket): Adjust for the new code-conversion API.
18411 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18412 (x_load_font): Adjust for the change of struct font.
18413
184142008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18415
18416 * xfaces.c (face_at_buffer_position): Remove unused vars.
18417
184182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18419
18420 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18421 Fix overflow checking.
18422
184232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18424
18425 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18426 Cancel previous change.
18427
184282008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18429
18430 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18431 ccl->eight_bit_control. Fix check for buffer overflow.
18432 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18433 (ccl_driver): Initialize extra_bytes to 0.
18434
184352008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18436
18437 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18438 return it ORed with ctrl_modifier.
18439
184402008-01-29 Miles Bader <miles@gnu.org>
18441
18442 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18443
184442008-01-28 Jason Rumney <jasonr@gnu.org>
18445
18446 * w32.c (stat): Don't double check for networked drive.
18447
184482008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18449
18450 * window.c (run_window_configuration_change_hook): New function.
18451 Code extracted from set_window_buffer. Set the selected frame.
18452 (set_window_buffer): Use it.
18453 * window.h (run_window_configuration_change_hook): Declare.
18454 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18455
18456 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18457
184582008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18459
18460 * Makefile.in: Remove references to unused macros.
18461
184622008-01-26 Eli Zaretskii <eliz@gnu.org>
18463
18464 * w32.c (g_b_init_get_sid_sub_authority)
18465 (g_b_init_get_sid_sub_authority_count): New static variables.
18466 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18467 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18468 (init_user_info): Use them to retrieve uid and gid.
18469 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18470 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18471 st_uid and st_gid of the file.
18472
184732008-01-26 Jason Rumney <jasonr@gnu.org>
18474
18475 * w32.c (logon_network_drive): New function.
18476 (stat): Use it.
18477
184782008-01-26 Chong Yidong <cyd@stupidchicken.com>
18479
18480 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18481 invisible text covered with an ellipsis.
18482
184832008-01-25 Richard Stallman <rms@gnu.org>
18484
18485 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18486 jump back to beginning. Move some other initializations after that.
18487 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18488 New variables.
18489 (syms_of_xdisp): Init them.
18490
18491 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18492
18493 * buffer.c (reset_buffer_local_variables):
18494 Implement `permanent-local-hook'.
18495 (Qpermanent_local_hook): New variable.
18496 (syms_of_buffer): Init and staticpro it.
18497
184982008-01-25 Michael Albinus <michael.albinus@gmx.de>
18499
18500 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18501
185022008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18503
18504 * fns.c (Fclrhash): Return TABLE.
18505
185062008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18507
18508 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18509 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18510 is set even without positional changes.
18511 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18512
18513 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18514
185152008-01-23 Jason Rumney <jasonr@gnu.org>
18516
18517 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18518
18519 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18520 the unicode range available in MULE by locale-coding-system.
18521 Improve dbcs lead byte detection. Set event timestamp and modifiers
18522 earlier.
18523
185242008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18525
18526 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18527 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18528 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18529 when used on child processes.
18530
185312008-01-21 Michael Albinus <michael.albinus@gmx.de>
18532
18533 * dbusbind.c (Fdbus_method_return_internal): Rename from
18534 Fdbus_method_return.
18535 (Fdbus_unregister_object): Move to dbus.el.
18536 (Fdbus_call_method, Fdbus_method_return_internal)
18537 (Fdbus_send_signal): Improve debug messages.
18538
185392008-01-20 Martin Rudalics <rudalics@gmx.at>
18540
18541 * undo.c (undo_inhibit_record_point): New variable.
18542 (syms_of_undo): Initialize it.
18543 (record_point): Don't record point when undo_inhibit_record_point
18544 is set.
18545
185462008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18547
18548 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18549
18550 * xdisp.c (Qauto_hscroll_mode): New var.
18551 (syms_of_xdisp): Initialize it.
18552 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18553 window's buffer.
18554 (hscroll_windows): Don't check automatic_hscrolling_p here.
18555
18556 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18557 vscroll if we're setting window-buffer to the value it already has.
18558
185592008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18560
18561 * m/intel386.h: Remove references to XENIX.
18562
185632008-01-17 Andreas Schwab <schwab@suse.de>
18564
18565 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18566 instead of HAVE_X86_64_LIB64_DIR.
18567 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18568
185692008-01-17 Glenn Morris <rgm@gnu.org>
18570
18571 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18572 to HAVE_X86_64_LIB64_DIR.
18573
185742008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18575
18576 * s/irix3-3.h:
18577 * s/irix4-0.h:
18578 * s/386-ix.h:
18579 * s/domain.h:
18580 * s/hpux9-x11r4.h:
18581 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18582
18583 * sysdep.c: Remove code containing references to symbols defined
18584 by unsupported systems.
18585
185862008-01-16 Glenn Morris <rgm@gnu.org>
18587
18588 * coding.c (select-safe-coding-system-function): Doc fix.
18589
185902008-01-15 Glenn Morris <rgm@gnu.org>
18591
18592 * config.in: Revert 2008-01-13 change: this is a generated file.
18593
185942008-01-13 Tom Tromey <tromey@redhat.com>
18595
18596 * lisp.h: Fix typo.
18597
185982008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18599
18600 * m/sequent-ptx.h:
18601 * m/sequent.h:
18602 * s/ptx.h:
18603 * s/ptx4-2.h:
18604 * s/ptx4.h: Remove files for systems no longer supported.
18605
18606 * callproc.c (Fcall_process): Fix previous change.
18607
186082008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18609
18610 * unexsunos4.c: Remove file, system not supported anymore.
18611
18612 * m/mips.h:
18613 * m/intel386.h:
18614 * callproc.c:
18615 * config.in:
18616 * ecrt0.c:
18617 * emacs.c:
18618 * fileio.c:
18619 * frame.c:
18620 * getpagesize.h:
18621 * keyboard.c:
18622 * lread.c:
18623 * process.c:
18624 * puresize.h:
18625 * sysdep.c:
18626 * systty.h:
18627 * syswait.h:
18628 * unexec.c:
18629 * xdisp.c:
18630 * alloc.c: Remove code containing references to symbols defined by
18631 unsupported systems.
18632
186332008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18634
18635 * coding.c (detect_coding_mask): Fix previous change.
18636
186372008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18638
18639 * coding.c (detect_coding_iso2022): New arg
18640 latin_extra_code_state. Allow Latin extra codes only
18641 when *latin_extra_code_state is nonzero.
18642 (detect_coding_mask): If there is a NULL byte, detect the encoding
18643 as UTF-16 or binary. If Latin extra codes exist, detect the
18644 encoding as ISO-2022 only when there's no other proper encoding is
18645 found.
18646
186472008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18648
18649 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18650 #ifdef MAC_OS.
18651
186522008-01-08 Richard Stallman <rms@gnu.org>
18653
18654 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18655
186562008-01-06 Nick Roberts <nickrob@snap.net.nz>
18657
18658 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18659 menu bar in parentheses.
18660
186612008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18662
18663 * m/7300.h:
18664 * m/acorn.h:
18665 * m/alliant-2800.h:
18666 * m/alliant.h:
18667 * m/alliant1.h:
18668 * m/alliant4.h:
18669 * m/altos.h:
18670 * m/amdahl.h:
18671 * m/apollo.h:
18672 * m/att3b.h:
18673 * m/aviion-intel.h:
18674 * m/aviion.h:
18675 * m/celerity.h:
18676 * m/clipper.h:
18677 * m/cnvrgnt.h:
18678 * m/convex.h:
18679 * m/cydra5.h:
18680 * m/delta88k.h:
18681 * m/dpx2.h:
18682 * m/dual.h:
18683 * m/elxsi.h:
18684 * m/f301.h:
18685 * m/gould-np1.h:
18686 * m/gould.h:
18687 * m/i860.h:
18688 * m/ibmps2-aix.h:
18689 * m/ibmrt-aix.h:
18690 * m/ibmrt.h:
18691 * m/irist.h:
18692 * m/is386.h:
18693 * m/isi-ov.h:
18694 * m/mega68.h:
18695 * m/mg1.h:
18696 * m/news-r6.h:
18697 * m/news-risc.h:
18698 * m/news.h:
18699 * m/nh3000.h:
18700 * m/nh4000.h:
18701 * m/ns16000.h:
18702 * m/ns32000.h:
18703 * m/nu.h:
18704 * m/orion.h:
18705 * m/orion105.h:
18706 * m/paragon.h:
18707 * m/pfa50.h:
18708 * m/plexus.h:
18709 * m/pyramid.h:
18710 * m/pyrmips.h:
18711 * m/sh3el.h:
18712 * m/sps7.h:
18713 * m/sr2k.h:
18714 * m/stride.h:
18715 * m/sun1.h:
18716 * m/sun2.h:
18717 * m/sun3-68881.h:
18718 * m/sun3-fpa.h:
18719 * m/sun3-soft.h:
18720 * m/sun3.h:
18721 * m/sun386.h:
18722 * m/symmetry.h:
18723 * m/tad68k.h:
18724 * m/tahoe.h:
18725 * m/targon31.h:
18726 * m/tek4300.h:
18727 * m/tekxd88.h:
18728 * m/tower32.h:
18729 * m/tower32v3.h:
18730 * m/ustation.h:
18731 * m/wicat.h:
18732 * m/xps100.h:
18733 * s/cxux.h:
18734 * s/cxux7.h:
18735 * s/dgux.h:
18736 * s/dgux4.h:
18737 * s/dgux5-4-3.h:
18738 * s/dgux5-4r2.h:
18739 * s/esix.h:
18740 * s/esix5r4.h:
18741 * s/hiuxmpp.h:
18742 * s/hiuxwe2.h:
18743 * s/iris3-5.h:
18744 * s/iris3-6.h:
18745 * s/isc2-2.h:
18746 * s/isc3-0.h:
18747 * s/isc4-0.h:
18748 * s/isc4-1.h:
18749 * s/newsos5.h:
18750 * s/newsos6.h:
18751 * s/osf1.h:
18752 * s/osf5-0.h:
18753 * s/riscix1-1.h:
18754 * s/riscix12.h:
18755 * s/sco4.h:
18756 * s/sco5.h:
18757 * s/sunos4-0.h:
18758 * s/sunos4-1.h:
18759 * s/sunos413.h:
18760 * s/sunos4shr.h:
18761 * s/umax.h:
18762 * s/unipl5-2.h:
18763 * s/xenix.h:
18764 * cxux-crt0.s:
18765 * unexapollo.c:
18766 * unexconvex.c:
18767 * unexenix.c:
18768 * unexsni.c: Remove files for systems no longer supported.
18769
18770 * m/intel386.h: Remove references to unsupported systems.
18771
18772 * w32.c (get_emacs_configuration): Remove reference to i860.
18773
18774 * sysdep.c: Remove dead code.
18775
187762008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18777
18778 * s/rtu.h:
18779 * m/masscomp.h: Remove files. Platform is obsolete.
18780
187812008-01-04 Michael Albinus <michael.albinus@gmx.de>
18782
18783 * dbusbind.c (Fdbus_method_return): New function.
18784 (xd_read_message): Add the serial number to the event.
18785 (Fdbus_register_method): Activate the function.
18786
187872008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18788
18789 * keyboard.c (read_key_sequence): Fix typo.
18790
187912008-01-03 Michael Albinus <michael.albinus@gmx.de>
18792
18793 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18794 (xd_signature, xd_append_arg): Handle element type detection for
18795 empty arrays.
18796 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18797 SDATA () calls; this must be solved more general.
18798 (Fdbus_register_signal): Use SBYTES instead of strlen.
18799
188002008-01-03 Magnus Henoch <magnus@zemdatav>
18801
18802 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18803 unsigned int for byte values (necessary for big-endian platform).
18804 (Fdbus_call_method): Handle the case of no returned arguments.
18805
188062007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18807
18808 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18809
188102007-12-31 Magnus Henoch <mange@freemail.hu>
18811
18812 * dbusbind.c (xd_signature): Signature of variant is just "v".
18813
188142007-12-30 Michael Albinus <michael.albinus@gmx.de>
18815
18816 * dbusbind.c: Fix several errors and compiler warnings.
18817 Reported by Tom Tromey <tromey@redhat.com>.
18818 (XD_ERROR, XD_DEBUG_MESSAGE)
18819 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18820 (xd_append_arg): Part for basic D-Bus types rewritten.
18821 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18822 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18823 appropriate.
18824 (xd_read_message): Return Qnil. Don't signal an error; it is not
18825 useful during event reading.
18826 (Fdbus_register_signal): Signal an error if the check for
18827 FUNCTIONP fails.
18828 (Fdbus_register_method): New function. The implementation is not
18829 complete, the call of the function signals an error therefore.
18830 (Fdbus_unregister_object): New function, renamed from
18831 Fdbus_unregister_signal. The initial check signals an error, if
18832 the object is not well formed.
18833
188342007-12-30 Richard Stallman <rms@gnu.org>
18835
18836 * textprop.c (get_char_property_and_overlay):
18837 Signal error if POSITION is out of range in a buffer.
18838
188392007-12-29 Martin Rudalics <rudalics@gmx.at>
18840
18841 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18842 because the original parameters are in pure storage now.
18843
188442007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18845
18846 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18847
188482007-12-22 Eli Zaretskii <eliz@gnu.org>
18849
18850 * callint.c (syms_of_callint) <command-history>: Add reference to
18851 history-length in the doc string.
18852
188532007-12-17 Jason Rumney <jasonr@gnu.org>
18854
18855 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18856 before passing as wParam.
18857
188582007-12-22 Michael Albinus <michael.albinus@gmx.de>
18859
18860 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18861 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18862 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18863 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18864 as number.
18865 (Fdbus_call_method): Fix docstring.
18866
188672007-12-21 Michael Albinus <michael.albinus@gmx.de>
18868
18869 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18870 New macros.
18871 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18872 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18873 Simplify.
18874 (xd_signature): New function.
18875 (xd_append_arg): Compute also signatures. Major rewrite.
18876 (xd_retrieve_arg): Make debug messages friendly.
18877 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18878 Check for signatures of arguments.
18879
188802007-12-19 Michael Albinus <michael.albinus@gmx.de>
18881
18882 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18883 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18884 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18885 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18886 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18887 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18888 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18889 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18890 (xd_retrieve_value): Remove. Functionality included in ...
18891 (xd_append_arg): New function.
18892 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18893
188942007-12-16 Michael Albinus <michael.albinus@gmx.de>
18895
18896 * dbusbind.c (top): Include <stdio.h>.
18897 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18898 dbus_message_new_method_call and dbus_message_new_signal.
18899 (Fdbus_register_signal): Rename unique_name to uname.
18900 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18901 non-existing unique name. Fix typos in matching rule. Return an
18902 object which is useful in Fdbus_unregister_signal.
18903 (Fdbus_unregister_signal): Reimplementation, in order to remove
18904 only the corresponding entry.
18905 (Vdbus_registered_functions_table): Change the order of entries.
18906 Apply these changes in xd_read_message and Fdbus_register_signal.
18907
189082007-12-16 Andreas Schwab <schwab@suse.de>
18909
18910 * fileio.c (Finsert_file_contents): Fix overflow check to not
18911 depend on undefined integer overflow.
18912
189132007-12-14 Jason Rumney <jasonr@gnu.org>
18914
18915 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18916 for characters above 127.
18917
189182007-12-13 Jason Rumney <jasonr@gnu.org>
18919
18920 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18921 before dereferencing array.
18922 (lookup_vk_code): Remove zero comparison.
18923
189242007-12-14 Michael Albinus <michael.albinus@gmx.de>
18925
18926 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18927 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18928 Use `unsigned int' instead of `uint'.
18929 (xd_read_message, Fdbus_register_signal): Split expressions into
18930 multiple lines before operators "&&" and "||", according to the
18931 GNU Coding Standards.
18932
189332007-12-14 Eli Zaretskii <eliz@gnu.org>
18934
18935 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18936
189372007-12-12 Juri Linkov <juri@jurta.org>
18938
18939 * buffer.c (Frename_buffer): In interactive spec replace
18940 `read-buffer' with `read-string' that uses `buffer-name-history'
18941 as history, and the current buffer's name as default.
18942
189432007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18944
18945 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18946 manipulating the backtrace manually.
18947 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18948 (struct backtrace, backtrace_list): Remove.
18949 (command_loop_1): Remove dead var `no_direct'.
18950
18951 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18952 preserve non-built-in buffer-local variables.
18953 (Fkill_all_local_variables): Don't re-create&re-set permanent
18954 buffer-local variables.
18955
189562007-12-09 Juri Linkov <juri@jurta.org>
18957
18958 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18959 Lisp code that uses `read-buffer' with current buffer as default.
18960
189612007-12-08 Michael Albinus <michael.albinus@gmx.de>
18962
18963 * dbusbind.c (xd_read_message): Generate an event for every
18964 registered handler. There might be several handlers registered
18965 for the same signal.
18966 (Fdbus_register_signal): Don't overwrite a registration for the
18967 same signal. Add a new registration if handlers are different.
18968 (Vdbus_registered_functions_table): Rework doc string.
18969
189702007-12-07 Michael Albinus <michael.albinus@gmx.de>
18971
18972 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18973 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18974 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18975 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18976 Unify argument lists.
18977 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18978 arguments and hash table keys. Use unique name for service.
18979 (Fdbus_unregister_signal): Remove checks.
18980 (Vdbus_registered_functions_table): Fix doc string.
18981
189822007-12-05 Magnus Henoch <mange@freemail.hu>
18983
18984 * process.c (make_process): Initialize pty_flag to 0.
18985
189862007-12-05 Jason Rumney <jasonr@gnu.org>
18987
18988 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18989 specified XBMs.
18990
189912007-12-05 Richard Stallman <rms@gnu.org>
18992
18993 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18994
189952007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18996
18997 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18998 New variable.
18999 (mac_try_close_socket) [MAC_OSX]: New function.
19000 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19001 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19002
19003 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19004 Use mac_try_close_socket.
19005
190062007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19007
19008 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19009 reloc_base.
19010 (copy_dysymtab): Compute relocation base here.
19011 (rebase_reloc_address) [__ppc64__]: New function.
19012 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19013 changed.
19014
190152007-12-05 Jason Rumney <jasonr@gnu.org>
19016
19017 * w32proc.c (sys_spawnve): Quote args with wildcards.
19018
190192007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19020
19021 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19022 __objc_* sections.
19023 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19024
190252007-12-05 Michael Albinus <michael.albinus@gmx.de>
19026
19027 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19028 Move check for Vdbus_registered_functions_table to
19029 xd_read_queued_messages.
19030 (xd_read_queued_messages): Protect xd_read_message calls by
19031 internal_condition_case_1.
19032
190332007-12-04 Michael Albinus <michael.albinus@gmx.de>
19034
19035 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19036 Qdbus_system_bus and Qdbus_session_bus, respectively.
19037 (Vdbus_intern_symbols): Remove.
19038 (Vdbus_registered_functions_table): New hash table.
19039 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19040 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19041 Rewrite in order to manage registered functions by hash table
19042 Vdbus_registered_functions_table.
19043
190442007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19045
19046 * xterm.c: Update URL to Window Manager Specification in comment.
19047
190482007-12-02 Michael Albinus <michael.albinus@gmx.de>
19049
19050 * config.in (HAVE_DBUS): Add.
19051
19052 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19053 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19054 (obj): Add $(DBUS_OBJ).
19055 (LIBES): Add $(DBUS_LIBS).
19056 (dbusbind.o): New target.
19057
19058 * dbusbind.c: New file.
19059
19060 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19061
19062 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19063 (Qdbus_event): New Lisp symbol.
19064 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19065 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19066 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19067
19068 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19069
190702007-12-01 Richard Stallman <rms@gnu.org>
19071
19072 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19073
190742007-11-30 Jason Rumney <jasonr@gnu.org>
19075
19076 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19077 (w32con_reset_terminal_modes): Clear screen buffer.
19078 (w32_face_attributes): Don't use color indexes that are out of range.
19079 Only reverse the default colors.
19080
19081 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19082 WINDOWSNT.
19083
19084 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19085
190862007-11-29 Jason Rumney <jasonr@gnu.org>
19087
19088 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19089 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19090 if the terminal colors are initialized.
19091 (unspecified_fg, unspecified_bg): Remove unused declarations.
19092
190932007-11-29 Andreas Schwab <schwab@suse.de>
19094
19095 * keyboard.c (apply_modifiers): Fix typo.
19096
190972007-11-29 Richard Stallman <rms@gnu.org>
19098
19099 * keymap.c (Fcurrent_local_map): Doc fix.
19100
191012007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19102
19103 * s/gnu-kfreebsd.h: New file.
19104
191052007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19106
19107 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19108 Don't cast redundantly.
19109
19110 * keyboard.c (KEY_TO_CHAR): New macro.
19111 (parse_modifiers, apply_modifiers): Accept integer arguments.
19112 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19113 for chars and symbol keys.
19114 After doing such remapping, apply function-key-map again.
19115
191162007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19117
19118 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19119 compiled anymore.
19120
191212007-11-26 Andreas Schwab <schwab@suse.de>
19122
19123 * process.c (list_processes_1): Fix indentation level of the
19124 command column.
19125
191262007-11-23 Andreas Schwab <schwab@suse.de>
19127
19128 * editfns.c (Fformat): Handle %c specially since it requires the
19129 argument to be of type int.
19130
191312007-11-23 Markus Triska <markus.triska@gmx.at>
19132
19133 * emacs.c (main): Call init_editfns before init_process, since
19134 init_process sets Vprocess_connection_type depending on OS release.
19135
191362007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19137
19138 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19139 (find_symbol_value): Use do_symval_forwarding.
19140
19141 * data.c (set_internal): Set the value in the `cons-cell' (for
19142 Buffer_Local_values) not only for frame-local variables.
19143
191442007-11-22 Andreas Schwab <schwab@suse.de>
19145
19146 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19147 values to sprintf.
19148 * keymap.c (Fsingle_key_description): Likewise.
19149 * print.c (print_object): Likewise.
19150
191512007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19152
19153 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19154 file for image is nil.
19155
191562007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19157
19158 * term.c: Include stdarg.h.
19159 (fatal): Implement using varargs.
19160 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19161
191622007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19163
19164 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19165 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19166 Update call to buffer_slot_type_mismatch.
19167 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19168 (buffer_slot_type_mismatch): Update.
19169 * buffer.c (buffer_local_types): Remove.
19170 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19171 (defvar_per_buffer): Set the type in the buffer_objfwd.
19172
191732007-11-21 Jason Rumney <jasonr@gnu.org>
19174
19175 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19176 CreateFileMapping returns NULL on failure.
19177
191782007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19179
19180 * search.c (Fset_match_data): Remove the `evaporate' feature.
19181 (unwind_set_match_data): Don't use the `evaporate' feature.
19182
191832007-11-21 Jason Rumney <jasonr@gnu.org>
19184
19185 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19186
19187 * w32console.c (w32con_write_glyphs): Remove unused variables.
19188
191892007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19190
19191 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19192
19193 * s/darwin.h (MULTI_KBOARD): Remove.
19194
19195 * macfns.c (x_create_tip_frame, Fx_create_frame)
19196 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19197
191982007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19199
19200 * buffer.c (Fbuffer_local_value): Remove redundant test.
19201 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19202 than in `current-buffer' to match the comment.
19203 Do the swap using swap_in_global_binding.
19204
19205 * data.c (store_symval_forwarding, set_internal):
19206 * eval.c (specbind): Remove dead code.
19207
19208 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19209 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19210 Since we do not want to see internal Lisp_*fwd objects here.
19211
192122007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19213
19214 * sysdep.c (init_system_name): Use getaddrinfo if available.
19215
19216 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19217 (x_scroll_bar_note_movement): start, end, with, height in struct
19218 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19219
192202007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19221
19222 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19223
192242007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19225
19226 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19227 This undoes Richard's change of 14-Oct-2002.
19228
19229 * alloc.c (allocate_other_vector):
19230 * lisp.h (allocate_other_vector): Remove.
19231
19232 * window.c (struct save_window_data): Move non-lisp data to the end
19233 and make it `int' rather than Lisp_Object.
19234 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19235 Done wrap/unwrap integer values.
19236 (Fset_window_configuration, compare_window_configurations):
19237 Update use of fields to their new types.
19238
19239 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19240 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19241 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19242 (SET_SCROLL_BAR_X_WINDOW): Remove.
19243 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19244 Access the new x_window field directly.
19245 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19246 Don't wrap/unwrap integers into Lisp_Objects.
19247 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19248 (x_scroll_bar_report_motion):
19249 Don't wrap/unwrap integers into Lisp_Objects.
19250 (x_term_init): Use SDATA.
19251 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19252 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19253 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19254 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19255 * xfns.c (x_set_background_color):
19256 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19257 Access the new x_window field directly.
19258
19259 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19260 (allocate_pseudovector): Make non-static.
19261
19262 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19263 (allocate_pseudovector): Declare.
19264 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19265
192662007-11-15 Andreas Schwab <schwab@suse.de>
19267
19268 * editfns.c (Fformat): Correctly format EMACS_INT values.
19269 Also take precision into account when formatting an integer.
19270
19271 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19272
192732007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19274
19275 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19276 (syms_of_keyboard): Defsubr it.
19277
19278 * data.c (swap_in_global_binding): Fix longstanding bug where
19279 store_symval_forwarding was not called with the right second argument,
19280 thus causing objfwd-ing from being dropped.
19281
192822007-11-14 Juanma Barranquero <lekktu@gmail.com>
19283
19284 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19285 (Fx_display_pixel_height, Fx_display_planes)
19286 (Fx_display_color_cells, Fx_server_max_request_size)
19287 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19288 (Fx_display_visual_class, Fx_display_save_under):
19289 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19290 (Fx_display_pixel_height, Fx_display_planes)
19291 (Fx_display_color_cells, Fx_server_max_request_size)
19292 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19293 (Fx_display_mm_height, Fx_display_mm_width)
19294 (Fx_display_backing_store, Fx_display_visual_class)
19295 (Fw32_select_font, Fx_display_save_under):
19296 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19297 (Fx_display_pixel_height, Fx_display_planes)
19298 (Fx_display_color_cells, Fx_server_max_request_size)
19299 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19300 (Fx_display_save_under): Fix typos in docstrings.
19301
193022007-11-14 Juanma Barranquero <lekktu@gmail.com>
19303
19304 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19305 corresponding to deleted entries; they are an implementation detail.
19306 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19307 Remove variables.
19308 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19309 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19310 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19311 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19312 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19313 (Fw32_define_rgb_color, Fw32_load_color_file)
19314 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19315 Fix typos in docstrings.
19316 (Fx_server_version): Reflow docstring.
19317 (Fw32_shell_execute): Doc fixes.
19318
193192007-11-13 Juanma Barranquero <lekktu@gmail.com>
19320
19321 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19322 if w32_parse_hot_key returned nil.
19323
193242007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19325
19326 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19327
193282007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19329
aac0c6e3
MR
19330 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19331
19332 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19333
19334 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19335 Remove W32_SCROLL_BAR_CLICK_EVENT.
19336
19337 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19338 Add MULTIMEDIA_KEY_EVENT.
19339
19340 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19341 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19342 (make_lispy_event) [WINDOWSNT]: Use it to translate
19343 MULTIMEDIA_KEY_EVENT.
19344
19345 * w32term.h (WM_APPCOMMAND): Define if not already.
19346 (GET_APPCOMMAND_LPARAM): Likewise.
19347
19348 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19349 WM_APPCOMMAND.
19350
19351 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19352 (syms_of_w32fns): Export and initialize it.
19353 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19354
193552007-11-09 Chong Yidong <cyd@stupidchicken.com>
19356
19357 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19358 twice.
19359
19360 * xdisp.c (handle_face_prop): Fix last change.
19361
193622007-11-09 Richard Stallman <rms@gnu.org>
19363
19364 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19365 not just for after-strings and before-strings.
19366 Call face_for_overlay_string and pass the overlay to it.
19367 (handle_display_prop): Determine whether property came from an overlay.
19368 Pass OVERLAY arg to handle_single_display_spec.
19369 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19370 (load_overlay_strings): Fill in it->string_overlays.
19371 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19372
19373 * xfaces.c (face_for_overlay_string): Function renamed from
19374 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19375
19376 * dispextern.h (struct it): New elt string_overlays.
19377 New elt from_overlay, also in stack.
19378 Rearrange a few elements.
19379 (face_for_overlay_string): Decl renamed from
19380 face_at_buffer_position_no_overlays, and add argument.
19381
193822007-11-09 Richard Stallman <rms@gnu.org>
19383
19384 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19385 to get the base face for an overlay string.
19386
19387 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19388
19389 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19390
19391 * xdisp.c (handle_stop): Move some code out of loop.
19392
193932007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19394
19395 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19396 Fix conversion from Lisp object to ATSUFontID.
19397
193982007-11-09 Jason Rumney <jasonr@gnu.org>
19399
19400 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19401
194022007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19403
19404 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19405 Don't assume regions are aligned to page boundary.
19406 (print_load_command_name): Add LC_UUID if defined.
19407
194082007-11-09 Richard Stallman <rms@gnu.org>
19409
19410 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19411
194122007-11-07 Jason Rumney <jasonr@gnu.org>
19413
19414 * s/windows95.h: Remove.
19415
194162007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19417
19418 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19419 abort with a message on unhandled store_type values.
19420
194212007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19422
19423 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19424 Remove HAVE_X11R5 and HAVE_X11R4.
19425
194262007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19427
19428 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19429
194302007-11-01 Johan Bockgård <bojohan@gnu.org>
19431
19432 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19433 Don't set s->stippled_p here, since it has already been set by
19434 x_set_glyph_string_gc from x_draw_glyph_string.
19435
194362007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19437
19438 * sunfns.c: Remove file.
19439
19440 * m/sun386.h:
19441 * m/sun2.h:
19442 * m/sparc.h: Remove Sun windows code.
19443
194442007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19445
19446 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19447 (init_keyboard): Set current_kboard's window-system to nil.
19448 (tty_read_avail_input): Typo.
19449 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19450
194512007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19452
19453 * s/usg5-4.h:
19454 * s/usg5-3.h:
19455 * s/ptx.h:
19456 * m/is386.h:
19457 * m/ibmps2-aix.h:
19458 * Makefile.in: Remove all mentions of X10.
19459
19460 * dispnew.c (syms_of_display): Don't mention version 10.
19461
194622007-10-28 Juanma Barranquero <lekktu@gmail.com>
19463
19464 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19465 ($(BLD)/abbrev.$(O)): Remove.
19466
194672007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19468
19469 Rewrite abbrev.c in Elisp.
19470 * image.c (Qcount): Don't declare as extern.
19471 (syms_of_image): Initialize and staticpro `Qcount'.
19472 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19473 * emacs.c (main): Don't call syms_of_abbrev.
19474 * Makefile.in (obj): Remove abbrev.o.
19475 (abbrev.o): Remove.
19476 * abbrev.c: Remove.
19477
194782007-10-26 Martin Rudalics <rudalics@gmx.at>
19479
19480 * window.c (window_min_size_2): Don't count header-line.
19481
194822007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19483
19484 * frame.h (struct frame): Move all bit fields after the first bit
19485 field to take advantage of the available space. Group all the
19486 chars together to reduce wasted space due to padding.
19487
194882007-10-26 Juanma Barranquero <lekktu@gmail.com>
19489
19490 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19491
19492 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19493 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19494 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19495 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19496 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19497 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19498 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19499 (last_marked, mark_object_loop_halt): Make static.
19500
19501 * frame.c (syms_of_frame) <delete-frame-functions>:
19502 Fix typo in docstring.
19503
195042007-10-25 Juanma Barranquero <lekktu@gmail.com>
19505
19506 * w32.c (init_environment): Fix tiny memory leak.
19507 (w32_get_resource): Remove unused variable `ok'.
19508
195092007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19510
19511 Make `window-system' into a keyboard-local variable (rather than
19512 frame-local as done originally by multi-tty).
19513
19514 * keyboard.h (struct kboard): Add Vwindow_system.
19515 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19516 (mark_kboards): Mark Vwindow_system.
19517
19518 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19519 (init_display): Don't set the obsolete `window-system' frame-param.
19520
19521 * xterm.c (x_term_init):
19522 * w32term.c (w32_create_terminal):
19523 * term.c (init_tty): Set Vwindow_system.
19524 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19525 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19526
19527 * xfns.c (Fx_create_frame, x_create_tip_frame):
19528 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19529 * macfns.c (Fx_create_frame):
19530 Don't set the obsolete `window-system' frame-param.
19531
19532 * frame.h (Qwindow_system): Remove.
19533 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19534 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19535
195362007-10-24 Richard Stallman <rms@gnu.org>
19537
19538 * frame.c (x_figure_window_size): For fullscreen case,
19539 set USPosition | PPosition without clobbering rest of window_prompting.
19540
19541 * keyboard.c (Fcurrent_idle_time): Doc fix.
19542
19543 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19544
195452007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19546
19547 * process.c (unwind_request_sigio): Only define if __ultrix__.
19548
19549 * callproc.c (child_setup): Remove spurious *.
19550
19551 * lisp.h (Fget_text_property): Declare.
19552 (have_menus_p): Declare it here rather than in sys-dep header files.
19553 * macterm.h (have_menus_p):
19554 * msdos.h (have_menus_p):
19555 * xterm.h (have_menus_p): Remove.
19556
19557 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19558 (Fmake_variable_frame_local): Just check the variable's const-ness
19559 rather than checking nil or t.
19560
195612007-10-22 Jason Rumney <jasonr@gnu.org>
19562
19563 * w32fns.c: Include math.h.
19564 (w32_abort): Declaration moved to nt/config.nt.
19565
19566 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19567 (abort): Redefinition moved to nt/config.nt.
19568
19569 * m/windowsnt.h: Remove.
19570
195712007-10-22 Juanma Barranquero <lekktu@gmail.com>
19572
19573 * emacs.c (Fdump_emacs): Fix typo in message.
19574 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19575 <installation-directory>: Reflow docstring.
19576
195772007-10-22 Juri Linkov <juri@jurta.org>
19578
19579 * minibuf.c: Allow minibuffer default to be a list of default values.
19580 With empty input use the first element of this list as returned default.
19581 (string_to_object)
19582 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19583 (read_minibuf): If defalt is cons, set histstring to its car.
19584 (Fread_string): If default_value is cons, set val to its car.
19585 (Fread_buffer): If def is cons, use its car.
19586 (Fcompleting_read): If defalt is cons, set val to its car.
19587
195882007-10-21 Michael Albinus <michael.albinus@gmx.de>
19589
19590 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19591
195922007-10-20 Juanma Barranquero <lekktu@gmail.com>
19593
19594 * doc.c (Fdocumentation): Check for advice in all cases.
19595
195962007-10-19 Chong Yidong <cyd@stupidchicken.com>
19597
19598 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19599
196002007-10-19 Richard Stallman <rms@gnu.org>
19601
19602 * doc.c (Fdocumentation): Check for and handle an advised function.
19603
196042007-10-19 Juanma Barranquero <lekktu@gmail.com>
19605
19606 * process.c (Fset_process_filter): Doc fix.
19607
196082007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19609
19610 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19611 which caused key-translation-map to applied repeatedly (thus breaking
19612 double-mode).
19613
196142007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19615
19616 * xselect.c (x_own_selection, x_handle_selection_clear)
19617 (x_clear_frame_selections):
19618 * w32menu.c (list_of_panes, list_of_items):
19619 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19620 * textprop.c (validate_plist, interval_has_all_properties)
19621 (interval_has_some_properties, interval_has_some_properties_list)
19622 (add_properties, text_property_list):
19623 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19624 * minibuf.c (Fassoc_string):
19625 * macselect.c (x_own_selection, x_clear_frame_selections)
19626 (Fx_disown_selection_internal):
19627 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19628 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19629
196302007-10-17 Chong Yidong <cyd@stupidchicken.com>
19631
19632 * process.c: Link to libs for calling res_init() if available.
19633 (Fmake_network_process): Call res_init() before getaddrinfo or
19634 gethostbyname, if possible.
19635
196362007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19637
19638 * lread.c (read1): Set pvectype for char_tables.
19639
19640 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19641 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19642 Add type checks.
19643 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19644
19645 * alloc.c (free_misc): Use XMISCTYPE.
19646 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19647
196482007-10-17 Glenn Morris <rgm@gnu.org>
19649
19650 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19651 (syms_of_minibuf): Add Qcompletion_ignore_case.
19652 * dired.c (Qcompletion_ignore_case): Change to external.
19653 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19654 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19655 (Fread_file_name): Use it rather than intern'ing.
19656
19657 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19658 (Fread_coding_system): Ignore case of user input.
19659
196602007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19661
19662 * xdisp.c (handle_display_prop): Ignore display specs after
19663 replacing one when string text is being replaced.
19664 (handle_single_display_spec): Pretend as if characters with display
19665 property haven't been consumed only when buffer text is being replaced.
19666
196672007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19668
19669 * xfns.c (Fx_create_frame, Fx_display_list):
19670 * window.c (window_fixed_size_p, enlarge_window)
19671 (shrink_window_lowest_first):
19672 * macterm.c (init_font_name_table):
19673 * macfns.c (Fx_create_frame, Fx_display_list):
19674 * lread.c (close_load_descs):
19675 * keyboard.c (read_char_x_menu_prompt):
19676 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19677 * coding.c (code_convert_region_unwind): Test the type of an object
19678 rather than just !NILP before extracting data from it.
19679
19680 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19681
19682 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19683 (XMISCANY): New macro.
19684 (XMISCTYPE): Use it.
19685 (struct Lisp_Misc_Any): New type.
19686 (union Lisp_Misc): Use it.
19687 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19688 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19689 (find_symbol_value, set_internal, default_value, Fset_default)
19690 (Fmake_variable_buffer_local, Fmake_local_variable)
19691 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19692 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19693 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19694 * alloc.c (allocate_buffer): Set the size and tag.
19695 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19696 Use XMISCANY.
19697 (die): Follow the GNU convention for error messages.
19698 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19699 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19700 tag any more.
19701 (set_buffer_internal_1):
19702 * frame.c (store_frame_param):
19703 * eval.c (specbind):
19704 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19705
19706 * doc.c (Fsnarf_documentation): Simplify.
19707
197082007-10-14 Juanma Barranquero <lekktu@gmail.com>
19709
19710 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19711 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19712
197132007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19714
19715 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19716
197172007-10-14 Juanma Barranquero <lekktu@gmail.com>
19718
19719 * eval.c (do_autoload): Don't save autoloads.
19720
19721 * data.c (Ffset): Save autoload of the function being set.
19722
197232007-10-07 John Paul Wallington <jpw@pobox.com>
19724
19725 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19726 parameter before setting up faces.
19727
197282007-10-13 Eli Zaretskii <eliz@gnu.org>
19729
19730 * ccl.c (Fregister_code_conversion_map):
19731 * keyboard.c (append_tool_bar_item): Reformat last change.
19732
19733 * lisp.h (eabs): Rename from `abs'. All callers changed.
19734
197352007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19736
19737 * buffer.c (add_overlay_mod_hooklist):
19738 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19739 * fontset.c (make_fontset):
19740 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19741 (append_tool_bar_item):
19742 * macmenu.c (grow_menu_items):
19743 * w32menu.c (grow_menu_items):
19744 * xmenu.c (grow_menu_items): Use larger_vector.
19745
197462007-10-13 Eli Zaretskii <eliz@gnu.org>
19747
19748 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19749 selected frame'' on MSDOS).
19750
197512007-10-12 Martin Rudalics <rudalics@gmx.at>
19752
19753 * frame.c (Qexplicit_name): New variable.
19754 (x_report_frame_params): Report it in parameter alist.
19755 (syms_of_frame): Intern and staticpro it.
19756
197572007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19758
19759 * macfns.c (x_create_tip_frame): Set terminal for frame.
19760
197612007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19762
19763 * frame.c (Qenvironment): Remove.
19764 (syms_of_frame) <Qenvironment>: Don't initialize.
19765 (Fdelete_frame): Don't treat the `environment' param specially.
19766 * frame.h (Qenvironment): Don't declare.
19767 * callproc.c (set_initial_environment): Don't set unused frame param.
19768
19769 * frame.c (Fframe_with_environment): Remove.
19770 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19771
19772 * lisp.h (Fframe_with_environment): Don't declare.
19773
197742007-10-10 Juanma Barranquero <lekktu@gmail.com>
19775
19776 * indent.c (indent_tabs_mode, last_known_column)
19777 (last_known_column_modified): Make static.
19778 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19779
197802007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19781
19782 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19783
197842007-10-09 Jason Rumney <jasonr@gnu.org>
19785
19786 * w32term.c (x_set_window_size): Disable code that attempts to tell
19787 Lisp code about a size change before it actually happens.
19788
197892007-10-09 Richard Stallman <rms@gnu.org>
19790
19791 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19792 return HANDLED_RETURN.
19793
197942007-10-08 Martin Rudalics <rudalics@gmx.at>
19795
19796 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19797 when there's an unread command event.
19798
19799 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19800 window autoselection act appropriately when leaving selected frame.
19801 (syms_of_frame): Initialize focus_follows_mouse.
19802 * frame.h (focus_follows_mouse): Extern it.
19803 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19804 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19805 * msdos.c (dos_rawgetc): Likewise.
19806 * w32term.c (w32_read_socket): Likewise.
19807 * xterm.c (handle_one_xevent): Likewise.
19808 * xdisp.c (syms_of_xdisp): In doc-string of
19809 mouse-autoselect-window mention focus-follows-mouse.
19810
198112007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19812
19813 * macterm.c (mac_load_query_font): Fix missing return value.
19814 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19815 Add BLOCK_INPUT.
19816
198172007-10-08 Richard Stallman <rms@gnu.org>
19818
19819 * xdisp.c (get_window_cursor_type): Implement documented behavior
19820 for cursor-in-non-selected-windows = t.
19821
198222007-10-08 Jason Rumney <jasonr@gnu.org>
19823
19824 * w32.c (w32_get_resource): Always close registry keys.
19825
198262007-10-08 Jason Rumney <jasonr@gnu.org>
19827
19828 * makefile.w32-in (LIBS): Add COMCTL32.
19829
19830 * w32fns.c (globals_of_w32fns): Init common controls.
19831
198322007-10-08 Richard Stallman <rms@gnu.org>
19833
19834 * image.c (our_memory_buffer): Rename from omfib_buffer.
19835
198362007-10-08 Richard Stallman <rms@gnu.org>
19837
19838 * buffer.c (Foverlays_at): Doc fix.
19839
198402007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19841
19842 * fns.c (Fplist_put): Preserve uneven tail data.
19843
198442007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19845
19846 * termhooks.h (enum event_kind): Remove trailing comma.
19847
19848 * frame.h (enum): Remove trailing comma.
19849
198502007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19851
19852 * w32proc.c (delete_child): Don't terminate threads of zombies.
19853
198542007-10-08 Martin Rudalics <rudalics@gmx.at>
19855
19856 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19857
19858 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19859 last-repeatable-command.
19860 (init_kboard): Initialize Vlast_repeatable_command.
19861 (command_loop_1): Set it to real_this_command unless that was
19862 bound to an input event.
19863 (mark_kboards): Mark it.
19864
198652007-10-08 Richard Stallman <rms@gnu.org>
19866
19867 * eval.c (condition-case): Doc fix.
19868
198692007-10-08 Masatake YAMATO <jet@gyve.org>
19870
19871 * xfaces.c (tty_supports_face_attributes_p): Fix code
19872 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19873 was copied and not edited.
19874
198752007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19876
19877 Add new `input-decode-map' keymap and use it for terminal
19878 escape sequences.
19879 * keyboard.h (struct kboard): Add Vinput_decode_map.
19880 Remove Vlocal_key_translation_map.
19881 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19882 (init_kboard): Init input-decode-map.
19883 Replace local-key-translation-map back with key-translation-map.
19884 (syms_of_keyboard): Declare input-decode-map.
19885 Remove local-key-translation-map. Update docstrings.
19886 (mark_kboards): Mark Vinput_decode_map.
19887 Don't mark Vlocal_key_translation_map.
19888 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19889 Replace local-key-translation-map back with key-translation-map.
19890 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19891 Bind in input-decode-map rather than function-key-map.
19892
19893 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19894 This was made redundant by the previous introduction of XSETPVECTYPE.
19895
198962007-10-09 Richard Stallman <rms@gnu.org>
19897
19898 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19899
199002007-09-29 Richard Stallman <rms@gnu.org>
19901
19902 * eval.c (internal_condition_case_2, internal_condition_case_1)
19903 (internal_condition_case): Reenable abort if x_catching_errors ()
19904 to see if that really happens and why.
19905
199062007-10-06 Andreas Schwab <schwab@suse.de>
19907
19908 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19909
199102007-10-04 Juanma Barranquero <lekktu@gmail.com>
19911
19912 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19913
199142007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19915
19916 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19917
199182007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19919
19920 * window.h (struct window):
19921 * window.c (struct save_window_data, struct saved_window):
19922 * termhooks.h (struct terminal):
19923 * process.h (struct Lisp_Process):
19924 * frame.h (struct frame):
19925 * buffer.h (struct buffer):
19926 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19927 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19928 The size field of (pseudo)vectors is now unsigned.
19929 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19930
19931 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19932 Turn `count' into an integer.
19933
19934 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19935 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19936 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19937 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19938 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19939
19940 * alloc.c (allocate_pseudovector): New fun.
19941 (ALLOCATE_PSEUDOVECTOR): New macro.
19942 (allocate_window, allocate_terminal, allocate_frame)
19943 (allocate_process): Use it.
19944 (mark_vectorlike): New function.
19945 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19946 (mark_terminals): Use it.
19947 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19948 (Fmake_byte_code): Use XSETPVECTYPE.
19949
19950 * frame.c (Fframe_parameters): Minor simplification.
19951
19952 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19953
19954 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19955
19956 * buffer.c (Fget_buffer_create, init_buffer_once):
19957 * lread.c (defsubr):
19958 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19959
19960 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19961 defined differently in the m/*.h files.
19962 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19963 (XSETPVECTYPE): New macro.
19964 (XSETPSEUDOVECTOR): Use it.
19965
19966 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19967 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19968
19969 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19970 * lread.c (defvar_per_buffer):
19971 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19972
19973 * window.c (candidate_window_p): Only consider as visible frames that
19974 are on the same terminal.
19975
19976 * m/ibms390x.h (MARKBIT): Remove unused macro.
19977
199782007-10-01 Juanma Barranquero <lekktu@gmail.com>
19979
19980 * lread.c (Fload): Fix typo in docstring.
19981
199822007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19983
19984 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19985 of a non-zero value can't yield zero.
19986
199872007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19988
19989 * term.c (term_clear_mouse_face, term_mouse_highlight)
19990 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19991
19992 * print.c (safe_debug_print): Use XHASH.
19993
19994 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19995 Lisp elements such as tags.
19996 (XHASH): New macro.
19997 (EQ): Use it.
19998 (SREF, SSET, STRING_COPYIN): Use SDATA.
19999 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20000
20001 * alloc.c (mark_terminal): Remove left-over declaration.
20002 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20003 (allocate_vectorlike): Remove type argument. Adjust callers.
20004 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20005 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20006
20007 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20008 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20009 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20010 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20011 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20012 Use them.
20013
20014 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20015 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20016 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20017
200182007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20019
20020 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20021 loaded by default.
20022
200232007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20024
20025 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20026 on this tty.
20027 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20028
20029 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20030 Update all users.
20031 (handle_one_term_event): Use Gpm_DrawPointer.
20032 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20033 Signal errors instead of returning nil. Always return nil.
20034 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20035 Make it a noop if gpm-mouse was not activated.
20036 (syms_of_term): Update names.
20037
200382007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20039
20040 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20041 (init_sys_modes): Check that gpm_tty is the current tty.
20042
20043 * alloc.c (allocate_terminal): Set the vector size to only count the
20044 lisp fields. Initialize those to nil.
20045 (mark_object): Don't treat terminals specially.
20046 (mark_terminal): Remove.
20047 (mark_terminals): Use mark_object instead.
20048
20049 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20050 the GC to the beginning.
20051
20052 * indent.h:
20053 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20054
20055 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20056
200572007-09-25 Jason Rumney <jasonr@gnu.org>
20058
20059 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20060
20061 * w32console.c (create_w32cons_output): Remove.
20062
20063 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20064
20065 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20066 (reset_sys_modes): Use reset_terminal_modes_hook.
20067
200682007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20069
20070 * eval.c (do_autoload): Don't output any message.
20071
200722007-09-24 Juri Linkov <juri@jurta.org>
20073
20074 * emacs.c (standard_args): Change priority of "--no-splash"
20075 from 40 to 3. Add "--no-desktop" with the same priority.
20076
200772007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20078
20079 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20080 and optimize the case where they are all 1.
20081
200822007-09-23 Johannes Weiner <hannes@saeurebad.de>
20083
20084 * lisp.h (abs): Define if not defined.
20085 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20086 Don't define `abs', since it's defined in lisp.h.
20087
200882007-09-22 Eli Zaretskii <eliz@gnu.org>
20089
20090 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20091 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20092 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20093 (init_tty): Use DEV_TTY instead of "/dev/tty".
20094 [WINDOWSNT]: No need to protect from NAME arg being null.
20095
200962007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20097
20098 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20099 up the tty state.
20100
201012007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20102
20103 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20104 (gpm_tty): Change its type.
20105 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20106 (gpm_tty): Change its type and initialize it.
20107 (Fterm_open_connection): Check the frame is indeed a tty.
20108 Use the new gpm_tty.
20109 (Fterm_close_connection): Use the new gpm_tty.
20110 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20111 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20112
201132007-09-21 Juanma Barranquero <lekktu@gmail.com>
20114
20115 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20116 underline_color, to draw strike-through.
20117
201182007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20119
20120 * lisp.h (allocate_terminal): Declare.
20121
20122 * window.c (candidate_window_p): Consider frames that are being placed
20123 by the user as somewhere between visible and iconified.
20124 (window_loop): Prefer windows on the current frame.
20125 (Fselect_window): Move the use of select-frame to the beginning so we
20126 can just delegate all the work (it'll call us back anyway).
20127
20128 * frame.c (Qdisplay_environment_variable):
20129 * frame.h (Qdisplay_environment_variable): Delete.
20130
20131 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20132 of the first arg, since that value may be a union.
20133
20134 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20135 parameter rather than Qdisplay_environment_variable. If all else
20136 fails, look for DISPLAY in initial-environment.
20137
201382007-09-21 Glenn Morris <rgm@gnu.org>
20139
20140 * Makefile.in (emacstool): Remove target.
20141 (lisp, shortlisp): Remove termdev.elc.
20142
201432007-09-21 Markus Triska <markus.triska@gmx.at>
20144
20145 * xterm.c (x_delete_display): Compile session management conditionally.
20146
201472007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20148
20149 * callproc.c (getenv_internal_1): New function.
20150 (getenv_internal): Use it.
20151 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20152
20153 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20154 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20155 (Fset_terminal_parameter): Work with dead terminals as well.
20156 (Fmodify_terminal_parameters): Remove.
20157
20158 * terminal.c (get_terminal): Handle terminals.
20159 Make sure the terminal returned is live.
20160 (create_terminal): Use allocate_terminal.
20161 (mark_terminals): Move to alloc.c.
20162 (delete_terminal): Use terminal->name as liveness status.
20163 NULL out fields after freeing their contents.
20164 Don't deallocate the object.
20165 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20166 rather than an int.
20167 (Fterminal_live_p): Accept non-integer arguments.
20168 (Fterminal_list): Return terminal objects rather than an ints.
20169
20170 * alloc.c (enum mem_type): New member for `terminal' objects.
20171 (allocate_terminal): New function.
20172 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20173 Handle terminals.
20174 (mark_terminal): New fun.
20175 (mark_terminals): Move from terminal.c.
20176
20177 * term.c (get_tty_terminal): Don't treat output_initial specially.
20178 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20179 (delete_tty): Use terminal->name as liveness status.
20180
20181 * termhooks.h (struct terminal): Make it into a pseudovector.
20182 Remove `deleted' replaced by checking `name's nullness.
20183
20184 * print.c (print_object): Handle terminals.
20185
20186 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20187 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20188
20189 * frame.c (make_terminal_frame):
20190 * keyboard.c (tty_read_avail_input):
20191 * w32term.c (x_delete_terminal):
20192 * xfns.c (Fx_create_frame, x_create_tip_frame):
20193 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20194
201952007-09-20 Glenn Morris <rgm@gnu.org>
20196
20197 * process.c (Fmake_network_process): Doc fix.
20198
201992007-09-19 Jason Rumney <jasonr@gnu.org>
20200
20201 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20202
202032007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20204
20205 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20206 Fix a C warning regarding variable constness.
20207
20208 * xterm.c (handle_one_xevent): Fix a C warning.
20209
202102007-09-18 Jason Rumney <jasonr@gnu.org>
20211
20212 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20213
202142007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20215
20216 * gtkutil.c (gdpy_def): New variable.
20217 (xg_initialize): Initialize gdpy_def.
20218 (xg_display_close): If no other display exists, set gdpy_def to a
20219 new connection.
20220
202212007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20222
20223 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20224 when we have no file name for the icon.
20225 (xg_tool_bar_expose_callback): Remove.
20226 (xg_create_tool_bar): Don't connect expose signal to
20227 xg_tool_bar_expose_callback.
20228 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20229
202302007-09-16 Andreas Schwab <schwab@suse.de>
20231
20232 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20233 values instead of zapping them.
20234
202352007-09-14 Glenn Morris <rgm@gnu.org>
20236
20237 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20238 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20239 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20240 scope and rename to omfib_buffer for clarity.
20241 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20242
202432007-09-14 Kenichi Handa <handa@m17n.org>
20244
20245 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20246
202472007-09-13 Jason Rumney <jasonr@gnu.org>
20248
20249 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20250
20251 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20252
20253 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20254 (mac_term_init): Call here instead, passing rif.
20255
202562007-09-13 Glenn Morris <rgm@gnu.org>
20257
20258 * s/hpux.h: No longer define `static' as nothing.
20259
202602007-09-13 Johan Bockgård <bojohan@gnu.org>
20261
20262 * callint.c (Fcall_interactively): Remove unused var `fun'.
20263
202642007-09-12 Romain Francoise <romain@orebokech.com>
20265
20266 * window.c (prefer_window_split_horizontally, display_buffer):
20267 Revert 2007-09-08 change.
20268
202692007-09-12 Glenn Morris <rgm@gnu.org>
20270
20271 * alloca.c: Remove file.
20272 * Makefile.in (alloca): Do not undef.
20273 (allocaobj, alloca.o): Remove.
20274 (otherobj): Remove allocaobj.
20275 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20276 * regex.c (C_ALLOCA): Remove all references and code that was only
20277 used when this was defined.
20278 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20279 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20280 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20281
20282 * Makefile.in (SOURCES, unlock, relock): Delete.
20283
20284 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20285 (menu_grab_callback): All uses changed.
20286
20287 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20288 (x_reply_selection_request): All uses changed.
20289
202902007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20291
20292 * lread.c (load_warn_old_style_backquotes): Change message to look
20293 better when it appears in the middle of byte-compiler messages.
20294
202952007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20296
20297 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20298
20299 * xterm.c (x_create_terminal): Add comment.
20300
20301 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20302
203032007-09-10 Richard Stallman <rms@gnu.org>
20304
20305 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20306
203072007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20308
20309 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20310 (DEFUN): Document `intspec', use it instead of `prompt'.
20311
20312 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20313
20314 * data.c (Finteractive_form): If the interactive specification starts
20315 with a `(', use it as a Lisp form.
20316
20317 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20318 name and file modes.
20319
20320 * callint.c (Fcall_interactively): Comment fixes.
20321
203222007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20323
20324 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20325 and compiled functions.
20326
203272007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20328
20329 * window.c (prefer_window_split_horizontally): New variable.
20330 (display_buffer): Consider splitting window horizontally depending
20331 on prefer_window_split_horizontally.
20332
203332007-09-08 Eli Zaretskii <eliz@gnu.org>
20334
20335 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20336
203372007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20338
20339 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20340
20341 * frame.c (x_set_frame_parameters): Check number is positive before
20342 using XFASTINT.
20343
20344 * window.c (freeze_window_start): Don't presume selected_window holds
20345 a window object.
20346 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20347
203482007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20349
20350 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20351
203522007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20353
20354 * window.c (Vsplit_window_preferred_function): New var.
20355 (Fdisplay_buffer): Use it.
20356 (syms_of_window): Export, and initialize it.
20357
203582007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20359
20360 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20361
203622007-09-06 Glenn Morris <rgm@gnu.org>
20363
20364 * gtkutil.c (menu_grab_callback) <cnt>:
20365 * xselect.c (x_reply_selection_request) <cnt>: Move static
20366 variable to file scope.
20367
203682007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20369
20370 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20371 consistent values of selected_frame and selected_window.
20372
203732007-09-04 Jason Rumney <jasonr@gnu.org>
20374
20375 * w32console.c (initialize_w32_display): Zero unused hooks.
20376
203772007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20378
20379 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20380 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20381
203822007-09-04 Jason Rumney <jasonr@gnu.org>
20383
20384 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20385 in w32console.c. Set up input. Remove XXX comments that have been
20386 confirmed as correct.
20387
20388 * s/ms-w32.h (MULTI_KBOARD): Define.
20389
20390 * w32console.c (one_and_only_w32cons): Remove.
20391 (initialize_w32_display): Take terminal argument.
20392
20393 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20394 initialize_w32_display.
20395 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20396
20397 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20398
20399 * keyboard.c (discard_mouse_events): Discard it.
20400 (make_lispy_event): Translate it to a lisp event.
20401 (lispy_wheel_names): Add wheel-left and right events.
20402 (syms_of_keyboard): Enlarge wheel_syms.
20403
20404 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20405 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20406
20407 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20408
20409 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20410 from WM_MOUSEHWHEEL.
20411 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20412
20413 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20414 terminal.
20415
20416 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20417 keyboard for the terminal.
20418
204192007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20420
20421 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20422 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20423 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20424 and resume-tty-function to resume-tty-hook.
20425 (Fsuspend_tty, Fresume_tty): Use new names.
20426
204272007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20428
20429 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20430 if it starts with "n:".
20431
204322007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20433
20434 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20435
204362007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20437
20438 * frame.h:
20439 * frame.c (Qterm_environment_variable): Remove.
20440 (syms_of_frame): Don't init and staticpro it.
20441
20442 * callproc.c (getenv_internal): Remove special case for $TERM.
20443
20444 * callproc.c (Vinitial_environment): New variable.
20445 (set_initial_environment): Initialize it.
20446 (syms_of_callproc): Declare it.
20447 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20448 TERM under which a process runs is never related to the TERM in which
20449 Emacs is running.
20450
204512007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20452
20453 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20454 * s/darwin.h: ... do it here.
20455
204562007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20457
20458 * lisp.h (set_initial_environment): Rename from set_global_environment.
20459
20460 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20461 removed by mistake on the multi-tty branch.
20462
20463 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20464 (Fmodify_frame_parameters): Return a value.
20465
20466 * image.c (png_load): Comment-out var only used in commented-out code.
20467
20468 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20469 before passing it to mark_object.
20470
20471 * xfaces.c (internal_resolve_face_name): Return a value.
20472 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20473
20474 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20475 (x_icon): Comment-out var only used in commented-out code.
20476
204772007-08-29 Romain Francoise <romain@orebokech.com>
20478
20479 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20480 QUIT hasn't been provided.
20481
204822007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20483
20484 * callproc.c (child_setup, getenv_internal): Use the
20485 display-environment-variable and term-environment-variable frame params.
20486 (set_initial_environment): Initialise Vprocess_environment.
20487
20488 * config.in: Disable multi-keyboard support on a mac.
20489
20490 * frame.c (Qterm_environment_variable)
20491 (Qdisplay_environment_variable): New variables.
20492 (syms_of_frame): Intern and staticpro them.
20493 (Fmake_terminal_frame): Disable output method test.
20494
20495 * frame.h: Declare them here.
20496
20497 * macfns.c (x_set_mouse_color): Get rif from the frame.
20498 (x_set_tool_bar_lines): Don't use updating_frame.
20499 (mac_window): Add 2 new parameters for consistency with other systems.
20500 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20501 frame parameters following what is done in X11 and w32. Don't use
20502 FRAME_MAC_DISPLAY_INFO.
20503 (Fx_open_connection, start_hourglass): Remove window-system check.
20504 (x_create_tip_frame): Get the keyboard from the terminal.
20505
20506 * macmenu.c: Reorder includes.
20507 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20508
20509 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20510 terminal parameter.
20511 (x_clear_frame): Add a frame parameter.
20512 (note_mouse_movement): Get rif from the frame.
20513 (mac_term_init): Initialize the terminal.
20514 (mac_initialize): Make static and move terminal initialization ...
20515 (mac_create_terminal): ... to this new function.
20516
20517 * macterm.h (struct mac_display_info): Add terminal.
20518 (mac_initialize): Delete declaration.
20519
20520 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20521
20522 * sysdep.c: Comment out text after #endif.
20523
20524 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20525 is defined. Better initialize ttys in windows. Use terminal
20526 specific mouse_position_hook.
20527
20528 * termhooks.h (union display_info): Add mac_display_info.
20529
20530 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20531 Set the default minibuffer frame, window_system and the rest of the
20532 frame parameters following what is done in X11.
20533
20534 * w32term.c (w32_initialize): Make static.
20535
20536 * xselect.c (x_handle_selection_clear): Only access
20537 terminal->kboard when MULTI_KBOARD is defined.
20538
20539 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20540 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20541
205422007-08-29 Jason Rumney <jasonr@gnu.org>
20543
20544 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20545 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20546
20547 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20548 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20549
20550 * keyboard.c (restore_kboard_configuration): Only define when
20551 MULTI_KBOARD defined.
20552
20553 * makefile.w32-in: Update dependancies from Makefile.in.
20554 (OBJ1): Add terminal.$(O)
20555
20556 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20557 Don't define function body.
20558 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20559
20560 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20561
20562 * w32.c (request_sigio, unrequest_sigio): Remove.
20563
20564 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20565 (w32con_clear_frame, w32con_clear_end_of_line)
20566 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20567 (w32con_delete_glyphs, w32con_set_terminal_window)
20568 (scroll_line, w32_sys_ring_bell): Add frame arg.
20569 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20570 Add terminal arg.
20571 (PICK_FRAME): Remove.
20572 (w32con_write_glyphs): Use frame specific terminal coding.
20573 (one_and_only_w32cons): New global variable.
20574 (initialize_w32_display): Use it for storing hooks.
20575 (create_w32cons_output): New function.
20576
20577 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20578 arg a frame.
20579
20580 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20581 Set window_system.
20582 (x_set_tool_bar_lines): Don't use updating_frame.
20583 (Fx_create_frame): Set terminal and ref count.
20584 (Fx_open_connection): Remove window-system check.
20585
20586 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20587
20588 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20589 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20590 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20591 Add frame arg.
20592 (x_delete_terminal, w32_create_terminal): New functions.
20593 (w32_term_init): Create a terminal.
20594 (w32_initialize): Move terminal specific initialization to
20595 w32_create_terminal.
20596
20597 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20598 (w32_clear_rect, w32_clear_area): Use background from frame.
20599 (w32_display_info): Add terminal.
20600 (w32_sys_ring_bell, x_delete_display): Declare here.
20601
20602 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20603
20604 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20605
206062007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20607
20608 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20609 Fix get_named_tty calls for the controlling tty.
20610
206112007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20612
194d44e7 20613 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20614
206152007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20616
20617 * term.c (tty_insert_glyphs): Add missing first parameter.
20618
206192007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20620
20621 * buffer.c (Fbuffer_list, Fbury_buffer):
20622 Take frame->buried_buffer_list into account.
20623
20624 * cm.c (current_tty): New variable, for cmputc().
20625 (cmputc): Use it.
20626 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20627 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20628 (cmgoto): Add tty parameter. Pass it on to calccost().
20629 Use emacs_tputs() instead of tputs().
20630
20631 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20632 tputs().
20633 (current_tty): New variable, for cmputc().
20634 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20635
20636 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20637 (internal_condition_case, internal_condition_case_1)
20638 (internal_condition_case_2): Don't abort when x_catching_errors.
20639
20640 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20641 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20642 prevent crashes caused by bogus longjmps in read_char.
20643
20644 * keymap.h (Fset_keymap_parent): Add EXFUN.
20645
20646 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20647 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20648 Remove redundant definition.
20649
20650 * macfns.c (x_set_mouse_color, x_make_gc):
20651 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20652
20653 * w32term.c (x_free_frame_resources):
20654 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20655 (w32_initialize): Use the accessor macros for terminal characteristics.
20656
20657 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20658 Use the accessor macros for terminal characteristics.
20659 * msdos.c (internal_terminal_init): Use the accessor macros for
20660 terminal characteristics.
20661 (ScreenVisualBell, internal_terminal_init):
20662 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20663
20664 * termopts.h (no_redraw_on_reenter): Declare.
20665
20666 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20667 (mark_terminals, mark_ttys): Declare.
20668 (Fgarbage_collect): Call them.
20669 (mark_object): Mark buried_buffer_list.
20670
20671 * prefix-args.c: Include stdlib.h for exit.
20672
20673 * syssignal.h: Add comment.
20674
20675 * indent.c: Include stdio.h.
20676
20677 * window.h (Vinitial_window_system): Declare.
20678 (Vwindow_system): Delete declaration.
20679
20680 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20681
20682 * image.c (lookup_image): Don't initialize `c' until the xasserts
20683 have been run.
20684
20685 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20686 FRAME_FOREGROUND_PIXEL.
20687
20688 * print.c (print_preprocess): Don't lose print_depth levels while
20689 iterating.
20690
20691 * widget.c (update_from_various_frame_slots):
20692 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20693
20694 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20695 frames.
20696 (window_internal_height): Remove bogus make_number call.
20697 (init_window_once): Call make_terminal_frame with two zero parameters.
20698
20699 * fileio.c (Fread_file_name): Update comment.
20700
20701 * callint.c (Fcall_interactively):
20702 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20703 Make sure it is correctly unwound.
20704
20705 * xsmfns.c (x_session_close): New function.
20706
20707 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20708 Delete declarations.
20709
20710 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20711 (x_output): Remove background_pixel and foreground_pixel fields.
20712 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20713 (x_delete_device, x_session_close): Declare.
20714
20715 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20716 (read_filtered_event): Call `read_char' with a local
20717 `wrong_kboard_jmpbuf'.
20718
20719 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20720 Don't call single_kboard_state. Use FRAME_RIF.
20721
20722 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20723 systems.
20724
20725 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20726 (Fframe_with_environment, Fset_input_meta_mode)
20727 (Fset_quit_char): EXFUN.
20728 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20729 (init_sys_modes, reset_sys_modes): Update prototypes.
20730 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20731
20732 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20733 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20734 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20735 Delete declarations.
20736 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20737 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20738 New declarations.
20739
20740 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20741 already does that during init_display(). Call syms_of_keymap
20742 before syms_of_keyboard. Call `syms_of_terminal'.
20743 Call set_initial_environment, not set_process_environment.
20744 (shut_down_emacs): Call reset_all_sys_modes() instead of
20745 reset_sys_modes().
20746
20747 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20748 (internal_resolve_face_name, resolve_face_name_error): New functions.
20749 (resolve_face_name): Protect against loops and errors thrown by Fget.
20750 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20751 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20752
20753 * scroll.c: Replace CURTTY() with local variables throughout the
20754 file (where applicable).
20755 (calculate_scrolling, calculate_direct_scrolling)
20756 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20757 characteristics.
20758
20759 * keymap.c (Vfunction_key_map): Remove.
20760 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20761 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20762 (Vkey_translation_map): Remove.
20763 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20764 (Fdescribe_buffer_bindings)
20765 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20766 Update for terminal-local key-translation-map.
20767
20768 * Makefile.in (callproc.o): Update dependencies.
20769 (lisp, shortlisp): Add termdev.elc.
20770 (obj): Add terminal.o.
20771 (terminal.o): Add dependencies.
20772 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20773 (data.o, fns.o): Add termhooks.h dependency.
20774 (SOME_MACHINE_LISP): Add dnd.elc.
20775 (minibuf.o): Fix typo.
20776 Update dependencies.
20777
20778 * data.c (do_symval_forwarding, store_symval_forwarding)
20779 (find_symbol_value): Use the selected frame's keyboard, not
20780 current_kboard.
20781
20782 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20783 Vwindow_system.
20784
20785 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20786 Fmenu_bar_open.
20787 (syms_of_xmenu): Update defsubr.
20788 (mouse_position_for_popup, Fx_popup_menu)
20789 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20790 (set_frame_menubar, free_frame_menubar)
b97439ce 20791 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20792 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20793 an X frame.
20794
20795 * xselect.c (x_own_selection): Abort if not an X frame.
20796 (some_frame_on_display): Check if it is an X frame.
20797 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20798
20799 * coding.c: Include frame.h and termhooks.h.
20800 (terminal_coding, keyboard_coding): Delete.
20801 (Fset_terminal_coding_system_internal)
20802 (Fset_keyboard_coding_system_internal)
20803 (Fkeyboard_coding_system)
20804 (Fterminal_coding_system): Add a terminal parameter.
20805 Get terminal_coding from the terminal.
20806 (init_coding_once): Don't call setup_coding_system here.
20807
20808 * dispextern.h (set_scroll_region, turn_off_insert)
20809 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20810 (tty_clear_end_of_line, tty_setup_colors)
20811 (delete_tty, updating_frame)
20812 (produce_special_glyphs, produce_glyphs, write_glyphs)
20813 (insert_glyphs): Remove.
20814 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20815 (tty_turn_off_highlight, get_tty_size): Add declaration.
20816 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20817
20818 * frame.h (enum output_method): Add output_initial.
20819 (struct x_output): Delete.
20820 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20821 Access foreground_pixel and background_pixel directly from the frame.
20822 (tty_display): Delete.
20823 (struct frame): Add buried_buffer_list, foreground_pixel,
20824 background_pixel and terminal. Delete kboard.
20825 (union output_data): Add tty.
20826 (FRAME_KBOARD): Get the kboard from the terminal.
20827 (FRAME_INITIAL_P): New macro.
20828 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20829 (Qterm_environment_variable, Qdisplay_environment_variable)
20830 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20831 New declarations.
20832
20833 * termchar.h (tty_output, tty_display_info): New structures.
20834 (tty_list): Declare.
20835 (FRAME_TTY, CURTTY): New macros.
20836 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20837 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20838 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20839 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20840
20841 * callproc.c: Include frame.h and termhooks.h, for terminal
20842 parameters.
20843 (add_env): New function.
20844 (child_setup): Use it.
20845 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20846 (getenv_internal): Fix get_terminal_param call.
20847 (Fgetenv_internal, egetenv): Update doc.
20848 (syms_of_callproc): Initialize Vprocess_environment to nil.
20849 Register and initialize them. Remove obsolete defvars. Update doc
20850 strings.
20851 (child_setup): Handle Vlocal_environment_variables.
20852 (getenv_internal): Add terminal parameter.
20853 Handle Vlocal_environment_variables.
20854 (Fgetenv_internal): Add terminal parameter.
20855 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20856 environment in a frame (not terminal) parameter. Update doc strings.
20857 (set_initial_environment): Rename from set_global_environment.
20858 Store Emacs environment in initial frame parameter.
20859
20860 * xdisp.c (redisplay_internal): Update references to
20861 `previous_terminal_frame'.
20862 (display_mode_line, Fformat_mode_line): Replace calls to
20863 `push_frame_kboard' with `push_kboard'.
20864 (get_glyph_string_clip_rects): Add extra parentheses and
20865 braces to prevent compiler warnings.
20866 (calc_pixel_width_or_height): Add xassert to check that the
20867 frame is alive. Don't call `lookup_image' on a termcap frame.
20868 (message2_nolog, message3_nolog, redisplay_internal)
20869 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20870 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20871 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20872 (Fx_display_pixel_width, Fx_display_pixel_height)
20873 (Fx_display_planes, Fx_display_color_cells)
20874 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20875 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20876 (Fx_display_backing_store, Fx_display_visual_class)
20877 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20878 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20879
20880 * xfns.c (x_set_foreground_color x_set_background_color)
20881 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20882 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20883 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20884 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20885 terminal that is being deleted.
20886 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20887 frame parameter, and make sure it overrides any user-supplied setting.
20888 (Fx_close_connection, Fx_synchronize): Unify argument names with
20889 the rest of the DEFUNs.
20890
20891 * dispnew.c (Fsend_string_to_terminal): Update call to
20892 `get_tty_terminal'.
20893 (Fredraw_frame, Fsend_string_to_terminal)
20894 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20895 FRAME_TERMCAP_P and FRAME_TTY.
20896 (window_change_signal): Don't believe width/height values that are
20897 impossibly small.
20898 (Vinitial_window_system): Rename from Vwindow_system.
20899 (termscript, Wcm, rif): Delete.
20900
20901 * termhooks.h (struct terminal): New struct containing the
20902 previously global text display hooks and new members NAME,
20903 DELETED and PARAM_ALIST.
20904 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20905 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20906 (FRAME_RIF): New macros.
20907 (get_terminal_param, get_device): New declarations.
20908 (termscript): Delete declaration.
20909
20910 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20911 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20912 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20913 FRAME_FOREGROUND_PIXEL.
20914 (x_fully_uncatch_errors): Disable definition.
20915 (x_scroll_bar_expose): Fix reference to foreground pixel.
20916 (XTread_socket): Disable loop on all X displays.
20917 (x_delete_terminal): Don't set terminal->deleted and let
20918 delete_terminal delete the frames on the terminal.
20919 (x_delete_display): Doc update to reflect changes in
20920 delete_terminal.
20921 (x_display_info) <terminal>: Move member earlier in the struct.
20922 (deleting_tty): Remove old variable.
20923 (Fsuspend_tty): Call clear_tty_hooks.
20924 (Fresume_tty, init_tty): Call set_tty_hooks.
20925 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20926 errors on X frames.
20927 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20928 (handle_one_xevent): Initialize `f' to NULL.
20929 (x_delete_terminal, x_create_terminal): New functions.
20930 (XTset_terminal_modes, XTreset_terminal_modes)
20931 (XTread_socket, x_connection_closed, x_term_init)
20932 (x_term_init, x_delete_display): Add terminal parameter.
20933 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20934 X connections.
20935
20936 * frame.c: Include termchar.h.
20937 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20938 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20939 (Qdisplay_environment_variable): New vars.
20940 (Fframep): Deal with output_initial.
20941 (Fframe-live-p): Doc fix.
20942 (Fwindow-system): New function.
20943 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20944 (make_terminal_frame): Don't create frames on a terminal that is
20945 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20946 (store_frame_param): Check for found_for_frame before calling XFRAME.
20947 (Fmake_terminal_frame): Handle NULL tty names correctly.
20948 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20949 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20950 frames to refer to a deleted frame in their 'environment parameter.
20951 (Fframe_with_environment): New function.
20952 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20953 (get_future_frame_param): New function.
20954 (Fmake_terminal_frame): Use it.
20955 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20956
20957 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20958 * sysdep.c (reset_sys_modes): Update for renames.
20959
20960 * keyboard.c (tty_read_avail_input): New function.
20961 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20962 (syms_of_keyboard): Defsubr them.
20963 (Fset_input_meta_mode, Fset_quit_char): New functions.
20964 (Fset_input_mode): Split to above functions.
20965 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20966 parameter. Use it in call to `read_char'.
20967 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20968 Set wrong_kboard_jmpbuf correctly in recursive calls.
20969 Use current_kboard to access Vkeyboard_translate_table.
20970 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20971 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20972 Update longjmp invocations. Remember the original current_kboard,
20973 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20974 changes it. Comment out unnecessary calls to
20975 `record_single_kboard_state' and `any_kboard_state'.
20976 Update recursive calls.
20977 (wrong_kboard_jmpbuf): Remove global variable.
20978 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20979 Handle deleted interrupted_kboards correctly; that is a legal
20980 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20981 and read_char calls. Abort if interrupted_kboard died in read_char.
20982 (any_kboard_state, single_kboard_state)
20983 (push_frame_kboard): Remove function.
20984 (pop_kboard): Switch out of single_kboard mode if the kboard has
20985 been deleted. Remove unused variable. Help debugging by not
20986 changing current_kboard unnecessarily. Set current_kboard to the
20987 kboard of the selected frame when the stored kboard object has
20988 been deleted before pop_kboard.
20989 (temporarily_switch_to_single_kboard): Change first parameter to a
20990 frame pointer. Throw an error when caller wants to change kboards
20991 while in single_kboard mode. Don't push_kboard if we weren't in
20992 single kboard state. Don't pop_kboard if we popped into any
20993 kboard state.
20994 (restore_kboard_configuration): Abort if pop_kboard changed the
20995 kboard in single_kboard mode. Call pop_kboard only after setting
20996 up single_kboard mode.
20997 (Frecursive_edit): Switch to single_kboard mode only in nested
20998 command loops.
20999 (cmd_error, command_loop, command_loop_1, timer_check):
21000 Comment out unnecessary call to `any_kboard_state' and
21001 `record_single_kboard_state'.
21002 (delete_kboard): Exit single_kboard mode if we have just deleted
21003 that kboard. Use FRAME_KBOARD.
21004 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21005 `fatal_error_signal'.
21006 (record_single_kboard_state): Don't push_kboard if we weren't in
21007 single kboard state. Don't pop_kboard if we popped into any
21008 kboard state.
21009 (push_frame_kboard): Rename to push_kboard.
21010 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21011 (read_avail_input): Read input from all terminals.
21012 (mark_kboards): Also mark Vkeyboard_translate_table.
21013 (kbd_buffer_store_event_hold): Simplify condition.
21014 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21015 (Vkeyboard_translate_table): Move to struct kboard.
21016 (init_kboard): Initialize Vkeyboard_translate_table.
21017 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21018 Vkeyboard_translate_table. Update doc strings. Update docs of
21019 local-function-key-map and function-key-map.
21020
21021 * terminal.c: New file.
21022
21023 * term.c: Include errno.h.
21024 (Vring_bell_function, device_list, initial_device)
21025 (next_device_id, ring_bell, update_begin, update_end)
21026 (set_terminal_window, cursor_to, raw_cursor_to)
21027 (clear_to_end, clear_frame, clear_end_of_line)
21028 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21029 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21030 (syms_of_term): Move their initialization to terminal.c.
21031 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21032 (Ftty_display_color_cells)
21033 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21034 (clear_tty_hooks, set_tty_hooks)
21035 (init_tty, maybe_fatal): New functions.
21036 (Ftty_type): Return nil if terminal is not on a tty instead of
21037 throwing an error. Doc update.
21038 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21039 Doc update. Initialize new subrs and variables.
21040 (delete_tty): Use terminal->deleted.
21041 (tty_set_terminal_modes): Rename from set_terminal_modes.
21042 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21043 (set_scroll_region): Rename to `tty_set_scroll_region'.
21044 (turn_on_insert): Rename to `tty_turn_on_insert'.
21045 (turn_off_insert): Rename to `tty_turn_off_insert'.
21046 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21047 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21048 (toggle_highligh): Rename to `tty_toggle_highlight'.
21049 (background_highlight): Rename to `tty_background_highlight'.
21050 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21051 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21052 (tty_set_scroll_region, tty_background_highlight)
21053 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21054 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21055 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21056 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21057 Add static modifier.
21058 (tty_reset_terminal_modes, tty_set_terminal_window)
21059 (tty_set_scroll_region, tty_background_highlight)
21060 (tty_highlight_if_desired, tty_cursor_to)
21061 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21062 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21063 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21064 renames.
21065
210662007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21067
21068 * keyboard.c: Qrtl is new.
21069 (parse_tool_bar_item): Handle :rtl keyword.
21070 (syms_of_keyboard): Intern :rtl keyword.
21071
21072 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21073
21074 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21075 so no Lisp code is executed.
21076 (file_for_image, find_rtl_image): New functions.
21077 (xg_get_image_for_pixmap): Use file_for_image.
21078 (update_frame_tool_bar): If direction is RTL, use RTL image if
21079 defined. Use Gtk stock images if defined.
21080
210812007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21082
21083 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21084 for nonexistent or zero-width glyph in composition glyph.
21085
210862007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21087
21088 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21089
21090 * xdisp.c (Finvisible_p): New function.
21091 (syms_of_xdisp): defsubr it.
21092
210932007-08-24 Juanma Barranquero <lekktu@gmail.com>
21094
21095 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21096 Doc fixes.
21097
210982007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21099
21100 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21101
211022007-08-24 Martin Rudalics <rudalics@gmx.at>
21103
21104 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21105 whether decoding has modified buffer contents.
21106
211072007-08-24 Jason Rumney <jasonr@gnu.org>
21108
21109 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21110 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21111 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21112 (init_svg_functions) [HAVE_NTGUI]: New function.
21113 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21114 (svg_load_image): Use them.
21115 (svg_load_image) [HAVE_NTGUI]: Implement background.
21116
211172007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21118
21119 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21120 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21121 (LIBX): Remove @RSVG_LIBS@.
21122 (LIBES): Add $(RSVG_LIBS).
21123
21124 * image.c (svg_load_image): Blend with specified background if exists.
21125 Use IMAGE_BACKGROUND. Add Mac OS Support.
21126
21127 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21128 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21129 Remove macros.
21130 [MAC_OSX] (socket_callback): Do nothing.
21131 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21132 ReceiveNextEvent.
21133 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21134 socket_callback.
21135 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21136
211372007-08-22 Glenn Morris <rgm@gnu.org>
21138
21139 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21140
211412007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21142
21143 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21144
21145 * image.c: Add support for SVG images. Some additional comments
21146 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21147 (svg_image_p): New function to test for SVG image.
21148 (svg_load): New function to load SVG image.
21149 (svg_load_image): New function, helper for svg_load.
21150 (Qsvg): New Lisp_object.
21151 (svg_keyword_index): New enum.
21152 (svg_format): New static `image_keyword' struct.
21153 (svg_type): New static `image_type' struct.
21154 (librsvg/rsvg.h): Include it.
21155
211562007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21157
21158 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21159
211602007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21161
21162 * lread.c (Qold_style_backquotes): New var.
21163 (syms_of_lread): Init and staticpro it.
21164 (load_warn_old_style_backquotes): New fun.
21165 (Fload): Use them to warn about old style backquotes.
21166 (end_of_file_error, Fload): Remove unused vars.
21167
21168 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21169
21170 * lread.c (Vold_style_backquotes): New var.
21171 (syms_of_lread): Init and export it to Elisp.
21172 (read1): Set it when we find an old-style (back)quote.
21173
211742007-08-22 Jason Rumney <jasonr@gnu.org>
21175
21176 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21177
211782007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21179
21180 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21181
211822007-08-19 Richard Stallman <rms@gnu.org>
21183
21184 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21185
211862007-08-19 Andreas Schwab <schwab@suse.de>
21187
21188 * alloc.c (pure): Round PURESIZE up.
21189
211902007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21191
21192 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21193 active frame.
21194
211952007-08-16 Richard Stallman <rms@gnu.org>
21196
21197 * eval.c (Fcommandp): Add parens to clarify.
21198
21199 * minibuf.c (Fall_completions): Use enum for type of table.
21200
21201 * emacs.c (USAGE2): Improve text.
21202
212032007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21204
21205 * term.c (tty_default_color_capabilities): Declare static
21206 variables in file scope, to avoid HPUX compiler problem.
21207
212082007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21209
21210 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21211 to gtk_toolbar_insert.
21212
212132007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21214
21215 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21216
21217 * insdel.c (reset_var_on_error): New fun.
21218 (signal_before_change, signal_after_change):
21219 Use it to reset (after|before)-change-functions to nil in case of error.
21220 Bind inhibit-modification-hooks to t.
21221 Don't bind (after|before)-change-functions to nil while they run.
21222
212232007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21224
21225 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21226 filling pixmap with stippled background.
21227
212282007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21229
21230 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21231 Don't use invisible frame as parent window for repositioning.
21232
212332007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21234
21235 * print.c (new_backquote_output): Rename from old_backquote_output.
21236 (print): Inverse its logic (according to its name) so as to match the
21237 behavior of new_backquote_flag in lread.c.
21238
212392007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21240
21241 * gmalloc.c (posix_memalign): New function.
21242
21243 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21244 ActivateControl/DeactivateControl here.
21245 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21246 frame-notice-user-settings is non-nil.
21247 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21248 for kEventParamFMFontStyle.
21249 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21250 mac_pass_command_to_system and mac_pass_control_to_system here.
21251 (XTread_socket): Call ActivateControl/DeactivateControl here.
21252 (XTread_socket) [TARGET_API_MAC_CARBON]:
21253 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21254 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21255 for window repositioning.
21256
212572007-08-08 Glenn Morris <rgm@gnu.org>
21258
21259 * Replace `iff' in doc-strings and comments.
21260
212612007-08-07 Chong Yidong <cyd@stupidchicken.com>
21262
21263 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21264
212652007-08-07 Martin Rudalics <rudalics@gmx.at>
21266
21267 * fileio.c (Finsert_file_contents): Run format-decode and
21268 after_insert_file_functions on entire buffer when REPLACE is
21269 non-nil and inhibit modification_hooks and point_motion_hooks.
21270 For consistency, run after_insert_file_functions iff something
21271 got inserted. Move signal_after_change and update_compositions
21272 after code running after_insert_file_functions. Make sure that
21273 undo_list doesn't record intermediate steps of the decoding process.
21274
212752007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21276
21277 * emacs.c (main)
21278 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21279 Call malloc_enable_thread on interactive startup.
21280
21281 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21282 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21283 [USE_PTHREAD]: Conditionalize with it.
21284 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21285 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21286 New functions.
21287
212882007-08-06 Chong Yidong <cyd@stupidchicken.com>
21289
21290 * xdisp.c (redisplay_window): When restoring original buffer
21291 position, make sure it is still valid.
21292
21293 * image.c (png_load): Ignore png-supplied background color.
21294
212952007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21296
21297 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21298 Use kCFAbsoluteTimeIntervalSince1970.
21299
21300 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21301 New variable.
21302 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21303 event loop should be quit.
21304 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21305 Quit dialog event loop if quit_dialog_event_loop is set.
21306
21307 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21308 (Selection): New typedef. Use instead of ScrapRef.
21309 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21310 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21311 (mac_clear_selection): Rename from clear_scrap.
21312 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21313 scrap_has_target_type. All uses changed.
21314 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21315 (mac_selection_has_target_p): New functions.
21316 (mac_put_selection_value): Rename from put_scrap_string.
21317 (mac_get_selection_value): Rename from get_scrap_string.
21318 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21319 (put_scrap_private_timestamp, scrap_has_target_type)
21320 (get_scrap_private_timestamp): Remove functions.
21321 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21322 (x_own_selection, x_get_local_selection):
21323 Use mac_valid_selection_value_p.
21324 (x_own_selection): Don't use put_scrap_private_timestamp.
21325 Record OWNERSHIP-INFO into Vselection_alist instead.
21326 (x_get_local_selection): Don't check type if request is local.
21327 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21328 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21329
213302007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21331
21332 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21333 add comment explaining why.
21334
213352007-08-03 Richard Stallman <rms@gnu.org>
21336
21337 * fileio.c (Fvisited_file_modtime): Use make_time.
21338
213392007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21340
21341 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21342 build.
21343
213442007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21345
21346 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21347
213482007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21349
21350 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21351
213522007-07-30 Richard Stallman <rms@gnu.org>
21353
21354 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21355
213562007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21357
21358 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21359
213602007-07-28 Nick Roberts <nickrob@snap.net.nz>
21361
21362 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21363 remote default-directory.
21364
21365 * buffer.c (mode-line-format): Update doc string.
21366
213672007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21368
21369 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21370 scroll bar gap.
21371 (x_scroll_bar_create): Set bar->fringe_extended_p.
21372 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21373 on frame edge. Check fringe background extension. Don't clear
21374 extended fringe background area.
21375
21376 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21377 (w32_fill_area): Enclose multiple statements with do ... while (0).
21378
21379 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21380 Extend fringe background to scroll bar gap.
21381 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21382 Set bar->fringe_extended_p.
21383 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21384 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21385 background extension. Don't clear extended fringe background area.
21386
21387 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21388 New member fringe_extended_p.
21389
213902007-07-25 Glenn Morris <rgm@gnu.org>
21391
21392 * Relicense all FSF files to GPLv3 or later.
21393
21394 * COPYING: Switch to GPLv3.
21395
213962007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21397
21398 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21399
21400 * data.c (Finteractive_form): Check for the presence of an
21401 `interactive-form' symbol property more thoroughly.
21402
21403 * data.c (Finteractive_form): Use an `interactive-form' property if
21404 present, analogous to the function-documentation property.
21405
214062007-07-24 Jason Rumney <jasonr@gnu.org>
21407
21408 * w32fns.c (x_real_positions): Get real position from OS instead of
21409 calculating it.
21410
214112007-07-23 Jason Rumney <jasonr@gnu.org>
21412
21413 * filelock.c (current_lock_owner): Allow for @ sign in username.
21414
214152007-07-22 Nick Roberts <nickrob@snap.net.nz>
21416
21417 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21418 remote default-directory.
21419
21420 * buffer.c (mode-line-format): Describe above case in doc string.
21421
214222007-07-20 Eli Zaretskii <eliz@gnu.org>
21423
21424 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21425 Define if not defined.
21426
214272007-07-18 Jason Rumney <jasonr@gnu.org>
21428
21429 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21430
214312007-07-18 Richard Stallman <rms@gnu.org>
21432
21433 * data.c (Fsetq_default): Doc fix.
21434
21435 * eval.c (Fsetq): Doc fix.
21436
214372007-07-18 Juanma Barranquero <lekktu@gmail.com>
21438
21439 * coding.c (Ffind_operation_coding_system):
21440 * eval.c (For, Fand): Doc fixes.
21441 Reported by Johan Bockgård.
21442
214432007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21444
21445 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21446
21447 * xterm.h: Declare x_ewmh_activate_frame.
21448
21449 * xterm.c (x_ewmh_activate_frame): New function.
21450 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21451
214522007-07-17 Martin Rudalics <rudalics@gmx.at>
21453
21454 * window.c (Fdisplay_buffer): If largest or LRU window is the
21455 only window, split it even if it is not eligible for splitting.
21456 This restores the original behavior broken by the 2007-07-15
21457 change.
21458
214592007-07-17 Glenn Morris <rgm@gnu.org>
21460
21461 * abbrev.c (abbrev_check_chars): New function.
21462 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21463 Call abbrev_check_chars to check abbrev characters are word
21464 constituents. Doc fix.
21465
214662007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21467
21468 * process.c (Fstart_process, Fmake_network_process)
21469 (read_process_output): Fix up last changes.
21470
214712007-07-16 Eli Zaretskii <eliz@gnu.org>
21472
21473 * makefile.w32-in (clean): Don't delete *~.
21474
214752007-07-16 Andreas Schwab <schwab@suse.de>
21476
21477 * window.c (Fdisplay_buffer): Use NILP.
21478 (Fset_window_scroll_bars): Likewise.
21479
214802007-07-15 Martin Rudalics <rudalics@gmx.at>
21481
21482 * window.c (window_min_size_2): New function.
21483 (window_min_size_1, size_window, Fdisplay_buffer)
21484 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21485 windows without mode- or header-lines when window-min-height is
21486 too small.
21487 (size_window): Reset nodelete_p after testing it, following an
21488 earlier note by Kim F. Storm.
21489 (display_buffer): Do not set split_height_threshold to twice the
21490 value of window_min_height to avoid changing the value of a
21491 customizable variable. Rather explicitly check whether the
21492 height of the window that shall be splitted is at least as large
21493 as split_height_threshold.
21494 (Fwindow_full_width_p): New defun.
21495 (syms_of_window): Defsubr it.
21496
21497 * window.h: Add EXFUN for Fwindow_full_width_p.
21498
214992007-07-14 Jason Rumney <jasonr@gnu.org>
21500
21501 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21502
215032007-07-14 Richard Stallman <rms@gnu.org>
21504
21505 * eval.c (maybe_call_debugger): New function.
21506 (find_handler_clause): Use maybe_call_debugger.
21507 Call it when the handler says `debug'.
21508 Eliminate DEBUGGER_VALUE_PTR.
21509 (Fsignal): Eliminate debugger_value.
21510 (Qdebug): New variable.
21511 (syms_of_eval): Initialize it.
21512
215132007-07-14 Juanma Barranquero <lekktu@gmail.com>
21514
21515 * eval.c (Fprogn):
21516 * keyboard.c (Ftrack_mouse):
21517 * print.c (Fwith_output_to_temp_buffer):
21518 * window.c (Fsave_window_excursion): Doc fix.
21519
215202007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21521
21522 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21523
215242007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21525
21526 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21527 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21528 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21529 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21530 Remove unused encoding_carryover.
21531 * process.c: Adjust all functions accordingly.
21532
215332007-07-12 Richard Stallman <rms@gnu.org>
21534
21535 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21536
215372007-07-11 Jason Rumney <jasonr@gnu.org>
21538
21539 * makefile.w32-in (LIBS): Include OLE32.
21540
21541 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21542 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21543
215442007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21545
21546 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21547 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21548 from a Lisp_Object into a bare pointer.
21549 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21550 Adjust the code correspondingly.
21551
21552 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21553
21554 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21555 (term_show_mouse_face): Remove unused var `j'.
21556 (handle_one_term_event): Remove unused vars `i' and `j'.
21557 Don't cast return value of ttyname since it's not necessary.
21558
215592007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21560
21561 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21562 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21563
21564 * fns.c (map_char_table): Use an array of int for `indices' rather than
21565 an array of Lisp_Objects (which are only ever integers anyway).
21566 (Fmap_char_table): Update caller.
21567 * lisp.h: Update prototype.
21568 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21569 * fontset.c (Ffontset_info):
21570 * casetab.c (set_case_table): Update callers.
21571
21572 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21573
21574 * keymap.c (struct accessible_keymaps_data)
21575 (struct where_is_internal_data): New structures.
21576 (accessible_keymaps_1, where_is_internal_1): Use them to change
21577 interface to adhere to the one used by map_keymap.
21578 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21579 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21580
21581 * keymap.h (map_keymap_function_t): More informative prototype.
21582
215832007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21584
21585 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21586 (looking_at_1): Don't change search_regs and last_thing_searched
21587 if `inhibit-changing-match-data' is non-nil.
21588 (string_match_1, search_buffer, set_search_regs): Likewise.
21589 (syms_of_search): Add Lisp level definition for
21590 `inhibit-changing-match-data' and set it to nil.
21591 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21592 start and end of the match, instead of using values in search_regs.
21593
215942007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21595
21596 * minibuf.c (Fcompleting_read): New value `confirm-only'
21597 for `require-match'.
21598
215992007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21600
21601 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21602 part of the 2007-06-27 change to syms_of_fileio.
21603
216042007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21605
21606 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21607 Check WINDOWP before using XWINDOW. Consolidate return statements.
21608
216092007-06-27 Richard Stallman <rms@gnu.org>
21610
21611 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21612
216132007-06-27 Juanma Barranquero <lekktu@gmail.com>
21614
21615 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21616
216172007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21618
21619 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21620 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21621 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21622 (_free_internal, memalign): Use them.
21623 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21624 Initialize to PTHREAD_MUTEX_INITIALIZER.
21625 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21626 (morecore_nolock): Rename from morecore. All uses changed.
21627 Use only nolock versions of internal allocation functions.
21628 (_malloc_internal_nolock, _realloc_internal_nolock)
21629 (_free_internal_nolock): New functions created from
21630 _malloc_internal, _realloc_internal, and _free_internal.
21631 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21632 Copy hook value to automatic variable before its use.
21633 (memalign): Copy hook value to automatic variable before its use.
21634
216352007-06-26 Kenichi Handa <handa@m17n.org>
21636
21637 * coding.c (Ffind_operation_coding_system): Docstring improved.
21638 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21639
216402007-06-25 David Kastrup <dak@gnu.org>
21641
21642 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21643 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21644 cater for additional parameter.
21645
21646 * keymap.h: Adjust number of parameters to `current-active-maps'.
21647
21648 * doc.c (Fsubstitute_command_keys): Adjust call of
21649 `current-active-maps'.
21650
216512007-06-25 David Kastrup <dak@gnu.org>
21652
21653 * callint.c (Fcall_interactively): Make the parsing of interactive
21654 specs somewhat more readable.
21655
216562007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21657
21658 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21659 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21660 if extended background has already been filled.
21661
216622007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21663
21664 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21665 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21666
21667 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21668 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21669 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21670 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21671 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21672 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21673 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21674 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21675 Run timers during dialog popup.
21676 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21677
216782007-06-21 Jason Rumney <jasonr@gnu.org>
21679
21680 * image.c (convert_mono_to_color_image): Swap fore and background.
21681
216822007-06-20 Jason Rumney <jasonr@gnu.org>
21683
21684 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21685 (w32_free_bdf_font): Unmap memory not handle.
21686
216872007-06-20 Sam Steingold <sds@gnu.org>
21688
21689 * gmalloc.c (__morecore): Fix the declaration to comply with the
21690 definition.
21691
216922007-06-20 Juanma Barranquero <lekktu@gmail.com>
21693
21694 * w32term.c (w32_delete_display): Remove leftover declaration.
21695 (w32_define_cursor, w32_initialize): Make static.
21696
21697 * w32.c (_wsa_errlist): Fix typo in error message.
21698 (init_environment): Ignore any environment variable from the
21699 registry having a null value.
21700
217012007-06-20 Glenn Morris <rgm@gnu.org>
21702
21703 * Makefile.in (LIBGIF): Default to -lgif.
21704
217052007-06-17 Jason Rumney <jasonr@gnu.org>
21706
21707 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21708 unicode strings.
21709
217102007-06-16 Juanma Barranquero <lekktu@gmail.com>
21711
21712 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21713 Fix typo in docstring.
21714
217152007-06-16 Eli Zaretskii <eliz@gnu.org>
21716
21717 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21718 and their keybindings.
21719
217202007-06-15 Chong Yidong <cyd@stupidchicken.com>
21721
21722 * composite.c (update_compositions): Fix last fix.
21723
217242007-06-14 Jason Rumney <jasonr@gnu.org>
21725
21726 * w32.c (get_process_times_fn): New function pointer.
21727 (globals_of_w32): Intialize it if present in kernel32.dll.
21728 (w32_get_internal_run_time): New function.
21729
21730 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21731
217322007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21733
21734 * composite.c (update_compositions): Check the validness of
21735 compositions.
21736
217372007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21738
21739 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21740 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21741
21742 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21743 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21744
21745 * macgui.h (USE_MAC_TOOLBAR): New define.
21746
21747 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21748 Return immediately unless popup is activated.
21749
21750 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21751 background to scroll bar gap.
21752 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21753 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21754 scroll bars on frame edge. Check fringe background extension.
21755 Don't clear extended fringe background area.
21756 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21757 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21758 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21759 [USE_MAC_TOOLBAR]: New macros.
21760 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21761 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21762 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21763 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21764 [USE_MAC_TOOLBAR]: New functions.
21765 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21766 manually if previous repositioning has failed.
21767 (mac_handle_keyboard_event): Use precomputed event kind.
21768 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21769 as tool bar item click. Handle mouse movement over tool bar items.
21770
21771 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21772 toolbar_win_gravity.
21773 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21774 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21775 Add externs.
21776
21777 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21778 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21779
217802007-06-14 Chong Yidong <cyd@stupidchicken.com>
21781
21782 * image.c (search_image_cache): Remove unused variable.
21783
217842007-06-13 Chong Yidong <cyd@stupidchicken.com>
21785
21786 * xfns.c, xmenu.c: Link to xaw3d if available.
21787
217882007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21789
21790 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21791 frame_foreground and frame_background.
21792
21793 * image.c (lookup_image): Save frame foreground and background colors.
21794 (search_image_cache): Check if saved and current frame colors match.
21795
217962007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21797
21798 * regex.c (regex_compile): Remove the `regnum' counter.
21799 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21800
218012007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21802
21803 * term.c: Include intervals.h to declare Fget_text_property.
21804
218052007-06-10 Jason Rumney <jasonr@gnu.org>
21806
21807 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21808
218092007-06-08 Juanma Barranquero <lekktu@gmail.com>
21810
21811 * callint.c (Fcall_interactively):
21812 * editfns.c (Fdelete_and_extract_region):
21813 * fileio.c (Fread_file_name):
21814 * fns.c (Fmapconcat):
21815 * keyboard.c (cmd_error_internal):
21816 * keymap.c (Fkey_description):
21817 * lread.c (openp):
21818 * minibuf.c (read_minibuf):
21819 * search.c (wordify):
21820 * sunfns.c (sel_read):
21821 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21822 * xfns.c (x_default_scroll_bar_color_parameter):
21823 * xmenu.c (menu_help_callback):
21824 * xselect.c (Fx_get_atom_name):
21825 * xterm.c (x_term_init): Use empty_unibyte_string.
21826
218272007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21828
21829 * alloc.c (init_strings): Initialize canonical empty strings.
21830 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21831 canonical empty string when the requested size is 0.
21832
21833 * emacs.c (empty_unibyte_string): Rename from empty_string.
21834 (empty_multibyte_string): New canonical empty string.
21835 (syms_of_emacs): Don't initialize empty_string.
21836
21837 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21838 string, if appropriate.
21839 (empty_unibyte_string, empty_multibyte_string): New externs.
21840 (empty_string): Remove extern.
21841
21842 * lread.c (syms_of_lread): Use empty_unibyte_string.
21843
218442007-06-07 Jason Rumney <jasonr@gnu.org>
21845
21846 * s/ms-w32.h: Don't define HAVE_TZNAME.
21847
21848 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21849
218502007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21851
21852 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21853
21854 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21855 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21856
21857 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21858 Don't call next handler.
21859 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21860 Remove argument. Install handler to application.
21861 (set_frame_menubar): Don't change deep_p.
21862 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21863 FRAME_OUTER_TO_INNER_DIFF_Y.
21864 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21865 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21866 [HAVE_DIALOGS]: New macros.
21867 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21868 Use them.
21869 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21870
21871 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21872 init_service_handler. All callers changed. Return OSStatus value.
21873
21874 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21875 All callers changed so as not to call SetPortWindowPort.
21876 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21877 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21878 mac_draw_string_common.
21879 (mac_draw_image_string_qd): Likewise.
21880 (mac_draw_string_common): Use them. Add INLINE.
21881 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21882 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21883 GetGlobalMouse.
21884 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21885 and FRAME_OUTER_TO_INNER_DIFF_Y.
21886 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21887 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21888 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21889 repositioning window to mac_handle_window_event.
21890 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21891 saving window location to mac_handle_window_event
21892 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21893 (install_menu_target_item_handler): Remove argument in extern.
21894 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21895 Also accept command events.
21896 (do_keystroke): New function created from XTread_socket.
21897 (init_command_handler): Remove functions.
21898 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21899 and save window location by kEventWindowShowing and kEventWindowHiding
21900 handlers here. Don't call next handler for window state change and
21901 focus events.
21902 (mac_handle_application_event, mac_handle_keyboard_event)
21903 [TARGET_API_MAC_CARBON]: New functions.
21904 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21905 kEventWindowShowing and kEventWindowHiding events. Move installation
21906 of mouse, font, text input and menu target item handlers to
21907 install_application_handler.
21908 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21909 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21910 New function.
21911 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21912 Register it.
21913 (XTread_socket) [TARGET_API_MAC_CARBON]:
21914 Consolidate SendEventToEventTarget calls.
21915 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21916 Move application activation handler to mac_handle_application_event.
21917 Move keyboard handler to mac_handle_keyboard_event.
21918 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21919 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21920 init_command_handler. Call install_application_handler.
21921
21922 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21923 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21924
219252007-06-07 Glenn Morris <rgm@gnu.org>
21926
21927 * emacs.c (main): Use `emacs-copyright' in --version output.
21928
219292007-06-06 Chong Yidong <cyd@stupidchicken.com>
21930
21931 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21932
219332007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21934
21935 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21936
21937 * macgui.h: Replace WindowPtr with WindowRef.
21938
21939 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21940 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21941 Replace ControlHandle with ControlRef.
21942 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21943
21944 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21945 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21946 Replace ControlHandle with ControlRef.
21947 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21948 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21949
21950 * macterm.h (struct scroll_bar): Rename member control_handle_low
21951 and control_handle_high to control_ref_low and control_ref_high.
21952 All uses changed.
21953 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21954 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21955 respectively. All uses changed.
21956 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21957 (install_window_handler, remove_window_handler): Replace WindowPtr
21958 with WindowRef in externs.
21959
219602007-06-05 Juanma Barranquero <lekktu@gmail.com>
21961
21962 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21963
219642007-06-03 Nick Roberts <nickrob@snap.net.nz>
21965
21966 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21967
21968 * frame.c (Fmouse_position, Fmouse_pixel_position):
21969 Condition on HAVE_GPM too.
21970
21971 * term.c (term_mouse_highlight): Remove unused variables.
21972 (Fterm_open_connection): Set gpm_zerobased to 1.
21973 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21974 Use zero based co-ordinates.
21975 (handle_one_term_event): Report a drag as mouse movement too.
21976
21977 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21978
219792007-06-03 Chong Yidong <cyd@stupidchicken.com>
21980
21981 * image.c (search_image_cache): New function. Require background
21982 color match if background color is unspecified in the image spec.
21983 (uncache_image, lookup_image): Use it.
21984
219852007-06-01 Juanma Barranquero <lekktu@gmail.com>
21986
21987 * window.c (Fshrink_window): Reflow docstring.
21988
219892007-06-02 Chong Yidong <cyd@stupidchicken.com>
21990
21991 * Version 22.1 released.
21992
219932007-06-01 Richard Stallman <rms@gnu.org>
21994
21995 * xfns.c (x_encode_text): Add GCPRO.
21996
219972007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21998
21999 * xfns.c (x_set_name_internal): Save encoded name before
22000 x_encode_text in case string data is relocated.
22001
220022007-05-31 Richard Stallman <rms@gnu.org>
22003
22004 * buffer.c (syms_of_buffer): Doc fix.
22005
220062007-05-30 Nick Roberts <nickrob@snap.net.nz>
22007
22008 * sysdep.c (init_sys_modes): Add rather than replace with
22009 O_NONBLOCK.
22010
22011 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22012 term_mouse_moveto.
22013
22014 * termhooks.h (term_mouse_moveto): New extern.
22015
22016 * term.c (mouse_face_window): Rename...
22017 (Qmouse_face_window): ...to this.
22018 (term_show_mouse_face, term_clear_mouse_face)
22019 (term_mouse_highlight): Use Qmouse_face_window.
22020 (term_mouse_moveto): New function.
22021 (term_mouse_position): Make it work.
22022 (syms_of_term): Uncomment assignment to mouse_position_hook.
22023 Staticpro Qmouse_face_window.
22024
220252007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22026
22027 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22028 around current_column call.
22029
220302007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22031
22032 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22033 * xdisp.c (next_element_from_buffer):
22034 * window.c (delete_window):
22035 * term.c (term_mouse_highlight):
22036 * msdos.c (getdefdir):
22037 * macterm.c (mac_create_bitmap_from_bitmap_data)
22038 (init_font_name_table):
22039 * fns.c (Fsxhash):
22040 * data.c (Fmake_local_variable):
22041 * ccl.c (ccl_driver): Likewise.
22042
220432007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22044
22045 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22046 Call mac_wakeup_from_rne on window size change.
22047
220482007-05-25 Chong Yidong <cyd@stupidchicken.com>
22049
22050 * image.c (uncache_image): Fix typo.
22051
220522007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22053
22054 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22055
220562007-05-22 Richard Stallman <rms@gnu.org>
22057
22058 * xterm.c (x_connection_closed): Remove NO_RETURN.
22059
220602007-05-22 Martin Rudalics <rudalics@gmx.at>
22061
22062 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22063
220642007-05-21 Chong Yidong <cyd@stupidchicken.com>
22065
22066 * image.c (uncache_image): New function.
22067 (Fimage_refresh): New function.
22068
220692007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22070
22071 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22072
220732007-05-20 Nick Roberts <nickrob@snap.net.nz>
22074
22075 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22076 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22077
220782007-05-20 Nick Roberts <nickrob@snap.net.nz>
22079
22080 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22081 conditional on [HAVE_GPM_H].
22082
220832007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22084
22085 * syntax.c (skip_chars): Update syntax-table only after we checked that
22086 the new location is valid.
22087
220882007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22089
22090 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22091 mac_get_window_bounds.
22092
220932007-05-20 Nick Roberts <nickrob@snap.net.nz>
22094
22095 * Makefile.in (LIBGPM): Allow it to be set from configure.
22096 If set then link Emacs with it.
22097
22098 * config.in: Regenerate.
22099
22100 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22101 New externs.
22102
22103 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22104 Include gpm.h.
22105 (handle_one_term_event, term_gpm): New externs.
22106
22107 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22108 and allow it to be interrupted by SIGIO.
22109
22110 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22111 (wait_reading_process_output): Wait on gpm_fd too.
22112 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22113 (add_gpm_wait_descriptor_called_flag): New variable.
22114 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22115
22116 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22117 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22118 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22119 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22120 (make_lispy_event): Add case GPM_CLICK_EVENT.
22121 (read_avail_input): Handle mouse input.
22122
22123 * term.c (write_glyphs_with_face): New function.
22124 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22125 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22126 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22127 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22128 (last_mouse_x, last_mouse_y): New variables.
22129 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22130 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22131 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22132 (Fterm_close_connection): New functions.
22133 (term_init): Initialise mouse_face_window.
22134
221352007-05-19 Chong Yidong <cyd@stupidchicken.com>
22136
22137 * xdisp.c (redisplay_window): If first window line is a
22138 continuation line, recompute the new window start instead of
22139 recentering.
22140
221412007-05-18 Glenn Morris <rgm@gnu.org>
22142
22143 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22144 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22145
221462007-05-17 Glenn Morris <rgm@gnu.org>
22147
22148 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22149
221502007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22151
22152 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22153 dead key repeat and up events.
22154
221552007-05-14 Chong Yidong <cyd@stupidchicken.com>
22156
22157 * image.c (pbm_load): Check image size for monochrome pbm.
22158
221592007-05-13 Chong Yidong <cyd@stupidchicken.com>
22160
22161 * xterm.c (XTread_socket): Revert last change.
22162
221632007-05-12 Chong Yidong <cyd@stupidchicken.com>
22164
22165 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22166
22167 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22168
221692007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22170
22171 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22172 mixup (YAILOM).
22173
221742007-05-07 Andreas Schwab <schwab@suse.de>
22175
22176 * keymap.c (Flookup_key): Fix typo in last change.
22177
221782007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22179
22180 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22181 mapping for unibyte strings.
22182
221832007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22184
22185 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22186 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22187
221882007-04-29 Richard Stallman <rms@gnu.org>
22189
22190 * insdel.c (replace_range): For undo, record insertion first.
22191
221922007-04-29 Andreas Schwab <schwab@suse.de>
22193
22194 * lisp.h (VECSIZE): Use OFFSETOF.
22195
221962007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22197
22198 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22199 disabled lines.
22200
222012007-04-28 Richard Stallman <rms@gnu.org>
22202
22203 * lread.c (read_escape): In a string, \s is always space.
22204
222052007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22206
22207 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22208
22209 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22210 submenu for menu bar items.
22211
22212See ChangeLog.10 for earlier changes.
22213
22214;; Local Variables:
22215;; coding: utf-8
22216;; add-log-time-zone-rule: t
aac0c6e3
MR
22217;; End:
22218
e3eb1dae 22219 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22220
22221 This file is part of GNU Emacs.
22222
22223 GNU Emacs is free software: you can redistribute it and/or modify
22224 it under the terms of the GNU General Public License as published by
22225 the Free Software Foundation, either version 3 of the License, or
22226 (at your option) any later version.
22227
22228 GNU Emacs is distributed in the hope that it will be useful,
22229 but WITHOUT ANY WARRANTY; without even the implied warranty of
22230 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22231 GNU General Public License for more details.
22232
22233 You should have received a copy of the GNU General Public License
22234 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22235
22236;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40