Add missing ChangeLog entry for r1.146 of lispref/text.texi.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
1911a33b
KH
12010-10-02 Kenichi Handa <handa@m17n.org>
2
3 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4 eol-format, inherit from the system's default.
5 (complement_process_encoding_system): Make a new coding system
6 inherit the original eol-format.
7
fcaf8878
KH
82010-09-30 Kenichi Handa <handa@m17n.org>
9
10 * coding.c (complement_process_encoding_system): New function.
11
12 * coding.h (complement_process_encoding_system): Extern it.
13
14 * callproc.c (Fcall_process): Complement the coding system for
15 encoding arguments.
16 (Fcall_process_region): Complement the coding system for encoding
17 the input to the process.
18
19 * process.c (Fstart_process): Complement the coding system for
20 encoding arguments.
21 (send_process): Complement the coding system for encoding what
22 sent to the process.
23
18acb5ad
KH
242010-09-29 Kenichi Handa <handa@m17n.org>
25
26 * xfont.c (xfont_open): Fix setting of font->average_width from
27 :avgwidth property (Bug#7123).
28
dec83468
MA
292010-09-28 Michael Albinus <michael.albinus@gmx.de>
30
31 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
32 is more portable.
33
34 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
35 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
36 has not defined SIGIO.
37
e0720500
MA
382010-09-27 Michael Albinus <michael.albinus@gmx.de>
39
11a5af7c 40 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
41 (Bug#7113)
42
42d3022b
J
432010-09-26 Jan Djärv <jan.h.d@swipnet.se>
44
45 * xgselect.c (xg_select): Clear file descriptors not set from
46 rfds and wfds.
47
fbb3da77
SM
482010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
49
50 * syntax.c (back_comment): Detect the case where a 1-char comment
51 starter is also the 2nd char of a 2-char comment ender.
52
2b5b82db
J
532010-09-17 Jan Djärv <jan.h.d@swipnet.se>
54
55 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
56
5f61a25c
J
572010-09-12 Jan Djärv <jan.h.d@swipnet.se>
58
59 * xterm.c (get_current_vm_state): New function.
60 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
61 want_fullscreen so set_wm_state calls are few (Bug#7013).
62 (x_handle_net_wm_state): Move code to get_current_vm_state and
63 call that function.
64
65c92e31 652010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
66
67 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
68
a552b35a
KH
692010-09-08 Kenichi Handa <handa@m17n.org>
70
71 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
72 we may use designation or locking-shift.
73
396475b7
KH
742010-09-07 Kenichi Handa <handa@m17n.org>
75
76 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
77 sequence when the source is multibyte.
78
d419e1d9
KH
792010-08-31 Kenichi Handa <handa@m17n.org>
80
81 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
82 characters.
83
84 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
85 (produce_glyphs): Don't set it->char_to_display here.
86 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
87 (produce_special_glyphs): Set temp_it.char_to_display before
88 calling produce_glyphs.
89
90 * xdisp.c (get_next_display_element): Set it->char_to_display
91 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
92 characters.
93 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
94 calling PRODUCE_GLYPHS.
95 (append_space_for_newline): Save and store it->char_to_display.
96 Set it->char_to_display before calling PRODUCE_GLYPHS.
97 (extend_face_to_end_of_line): Set it->char_to_display before
98 calling PRODUCE_GLYPHS.
99 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
100 character to its byte value.
101 (get_char_glyph_code): New function.
102 (produce_stretch_glyph): Set it2.char_to_display too before
103 calling x_produce_glyphs.
104 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
105 non-ASCII characters. Don't set it->char_to_display here.
106 Don't handle unibyte-display-via-language-environment here. For a
d419e1d9
KH
107 charater of no glyph, use font->space_width instead of FONT_WIDTH.
108
769ae9e1
KH
1092010-08-29 Kenichi Handa <handa@m17n.org>
110
111 * term.c (encode_terminal_code): Encode byte chars to the
112 correspnding bytes.
113
b72e0717
AS
1142010-08-17 Andreas Schwab <schwab@linux-m68k.org>
115
116 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
117 instead of SAFE_ALLOCA.
118
3a7a9129
CY
1192010-08-17 Chong Yidong <cyd@stupidchicken.com>
120
121 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
122 (Bug#6214).
123
983b8302
J
1242010-08-14 Jan Djärv <jan.h.d@swipnet.se>
125
126 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
127
7d1b9df3
J
1282010-08-13 Jan Djärv <jan.h.d@swipnet.se>
129
130 * doc.c (Fsnarf_documentation): Initialize skip_file before
131 build-files test.
132
2294b255
PG
1332010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
134
65b3d997
A
135 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
136 New definitions.
2294b255
PG
137 (HAVE_TERMIO): Remove.
138
7a84eee5
KH
1392010-08-06 Kenichi Handa <handa@m17n.org>
140
141 * charset.c: Include <stdlib.h>
142 (struct charset_sort_data): New struct.
143 (charset_compare): New function.
144 (Fsort_charsets): New funciton.
145 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
146
147 * coding.c (decode_coding_iso_2022): Fix checking of dimension
148 number in CTEXT extended segment.
149
f5f6c0e0
JB
1502010-08-01 Juanma Barranquero <lekktu@gmail.com>
151
152 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
153 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
154
b756c005
JB
1552010-07-30 Juanma Barranquero <lekktu@gmail.com>
156
157 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
158 (Fhash_table_size): Fix typos in docstrings.
159 (Fmake_hash_table): Doc fix.
160
b4f588fa
JB
1612010-07-28 Juanma Barranquero <lekktu@gmail.com>
162
163 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
164 Doc fix (bug#5625).
165
9f8c08a7
KB
1662010-07-27 Ken Brown <kbrown@cornell.edu>
167
168 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
169 the MSDOS definition.
170
a2a0d36b
CS
1712010-07-25 Christoph Scholtes <cschol2112@gmail.com>
172
173 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
174
a77cfeaf
CS
1752010-07-22 Christoph Scholtes <cschol2112@gmail.com>
176
177 * window.c (Fwindow_height): Doc fix (bug#6518).
178
14fb5704
JB
1792010-07-21 Juanma Barranquero <lekktu@gmail.com>
180
181 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
182
499322ce
J
1832010-07-17 Jan Djärv <jan.h.d@swipnet.se>
184
185 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
186 is related to the menu bar (Bug#6499).
187
b78f9767
J
1882010-07-14 Jan Djärv <jan.h.d@swipnet.se>
189
190 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
191
192 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
193
194 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
195 i.e. don't put back ButtonRelease (Bug#6608).
196
197 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
198 instead of Window. Call xg_event_is_for_menubar when
199 USE_GTK (Bug#6499).
200
201 * gtkutil.h (xg_event_is_for_menubar): Declare.
202
203 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
204
1f60c16a
EZ
2052010-07-14 Eli Zaretskii <eliz@gnu.org>
206
207 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
208 when it's the same as the old foreground. (Bug#6609)
209
7c33a057
CY
2102010-07-10 Chong Yidong <cyd@stupidchicken.com>
211
212 * xfaces.c (realize_face): Garbage the frame if a face is removed
213 (Bug#6593).
214
9d70a3fc
AS
2152010-07-05 Andreas Schwab <schwab@linux-m68k.org>
216
217 * keyboard.c: Remove duplicate <setjmp.h>.
218 (read_key_sequence): Remove volatile qualifiers.
219
5a874e95
YM
2202010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
221
222 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
223 (struct glyph_row): New members left_fringe_offset and
224 right_fringe_offset.
225
226 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
227 specially.
228 * w32term.c (w32_draw_fringe_bitmap): Likewise.
229 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
230
231 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
232 Take account of bitmap offset.
233 (draw_window_fringes): Take account of window vscroll.
234 (update_window_fringes): Likewise. Extend top-aligned top indicator
235 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
236 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
237 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
238
0682186e
JB
2392010-07-04 Juanma Barranquero <lekktu@gmail.com>
240
241 * w32fns.c (Qtooltip): Declare.
242 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
243
ad3e6f44
J
2442010-07-03 Jan Djärv <jan.h.d@swipnet.se>
245
246 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
247 grab on just Press (Bug#6499).
248
54ee7410
CY
2492010-07-02 Chong Yidong <cyd@stupidchicken.com>
250
251 * frame.c (Qtooltip): New var.
252 (delete_frame): Use it. Fix faulty if statement. Don't update
253 mode line for tooltip frames. Suggested by Martin Rudalics.
254
255 * xfns.c (x_create_tip_frame):
256 * w32fns.c (x_create_tip_frame): Use it.
257
3d8416fc
NA
2582010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
259
260 * xftfont.c (xftfont_open): Check font width one by one also when
261 spacing is dual.
262
263 * ftfont.c (ftfont_open): Ditto.
264
b1feb9b4
AS
2652010-06-26 Andreas Schwab <schwab@linux-m68k.org>
266
267 * alloc.c (Fmake_byte_code): Don't access undefined argument
268 (Bug#6517).
269
c7dd9743
CY
2702010-06-25 Chong Yidong <cyd@stupidchicken.com>
271
272 * xdisp.c (next_element_from_image): Ensure that after-strings are
273 read the next time we hit handle_stop (Bug#1336).
274
5721b4ed
AS
2752010-06-23 Andreas Schwab <schwab@linux-m68k.org>
276
277 * lread.c (read1): Signal error if #s is not followed by paren.
278
277c5f18
CY
2792010-06-19 Chong Yidong <cyd@stupidchicken.com>
280
52ab9bb2
CY
281 * image.c (free_image): Mark frame as garbaged (Bug#6426).
282
277c5f18
CY
283 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
284
6fda6a0c
GM
2852010-06-15 Glenn Morris <rgm@gnu.org>
286
287 * editfns.c (Fbyte_to_string): Pacify compiler.
288
e454a4a3
SM
2892010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
290
291 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
292 Check `object's type before accessing its guts.
293
657d4c0b
AS
2942010-06-08 Andreas Schwab <schwab@linux-m68k.org>
295
296 * minibuf.c (Fall_completions): Add more checks.
297
9b27fd9f
JB
2982010-06-08 Juanma Barranquero <lekktu@gmail.com>
299
300 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
301
0eb7675e
AS
3022010-06-03 Andreas Schwab <schwab@linux-m68k.org>
303
304 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 305 address. (Bug#6346)
0eb7675e 306
78edd3b7
JB
3072010-06-03 Juanma Barranquero <lekktu@gmail.com>
308
309 * ccl.c (Fccl_program_p): Fix typo in docstring.
310
1ab8293c
SM
3112010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
312
313 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
314 of bug#6305).
315
5ca3929b
CY
3162010-05-27 Chong Yidong <cyd@stupidchicken.com>
317
318 * xdisp.c (redisplay_window): After redisplay, check if point is
319 still valid before setting it (Bug#6177).
320
f5b416d2 3212010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
322
323 * s/netbsd.h: If terminfo is found, use it in preference to
324 termcap. (Bug#6190) [Backport from trunk]
325
aeb77d46
CY
3262010-05-20 Kevin Ryde <user42@zip.com.au>
327
328 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
329 (Voverriding_terminal_local_map, Vsystem_key_alist)
330 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
331
c3bb441d
SM
3322010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
333
334 * editfns.c (Fbyte_to_string): New function.
335
754790b6
CY
3362010-05-18 Chong Yidong <cyd@stupidchicken.com>
337
338 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
339 prevent stack overflow if number of arguments is too large
340 (Bug#6214).
341
c8670ded
EZ
3422010-05-11 Eli Zaretskii <eliz@gnu.org>
343
344 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
345
346 * w32fns.c: Include w32.h.
347 (Fw32_shell_execute): Decode the error message before passing it
348 to `error'. (Bug#6126)
349
3ffd4615 3502010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
351
352 * ftfont.c: Fix incorrect parentheses of #if condition for
353 definining M17N_FLT_USE_NEW_FEATURE.
354
61a808e8
CY
3552010-05-07 Chong Yidong <cyd@stupidchicken.com>
356
357 * Version 23.2 released.
358
5dcde606
AS
3592010-04-30 Andreas Schwab <schwab@linux-m68k.org>
360
361 * composite.c (autocmp_chars): Save point as marker before calling
362 auto-composition-function (Bug#5984).
363
364 * lisp.h (restore_point_unwind): Add prototype.
365
366 * fileio.c (restore_point_unwind): Remove static attribute.
367
c4170e32
KH
3682010-04-23 Kenichi Handa <handa@m17n.org>
369
370 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
371 new feature of libotf and m17n-flt.
65b3d997
A
372 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
373 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
374 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
375 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
376 that OUT is NULL. Use OTF_drive_gsub_with_log and
377 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
378 OTF_drive_gpos.
379 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
380 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
381 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 382
e42cd1a7
JB
3832010-04-19 Juanma Barranquero <lekktu@gmail.com>
384
385 * dired.c (Ffile_attributes): Fix typo in docstring.
386
79353a53
AR
3872010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
388
389 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
390 NSInteger (Bug#5811).
391
658b9b93
YM
3922010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
393
394 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
395 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
396
16009a0e
YM
3972010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
398
399 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
400
f016f225
JD
4012010-04-07 Jan Djärv <jan.h.d@swipnet.se>
402
403 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
404 FRAME_LINE_TO_PIXEL_Y.
405
406 * xterm.c (x_set_window_size_1): Don't add border_width/height to
407 pixelwidth/height.
408
84257d93
CY
4092010-04-05 Chong Yidong <cyd@stupidchicken.com>
410
411 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
412 terminal frames (Bug#5837).
413
95b1abcf
CY
4142010-03-31 Chong Yidong <cyd@stupidchicken.com>
415
416 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
417 * nsterm.h: Fix prototype.
418
4a217bed
EZ
4192010-03-31 Eli Zaretskii <eliz@gnu.org>
420
421 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
422 in this function. (Bug#5703)
423
4f103e04
CY
4242010-03-31 Chong Yidong <cyd@stupidchicken.com>
425
426 * nsterm.h: Fix last change.
427
a6d676d9
CY
4282010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
429
430 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
431
67fee863
JD
4322010-03-30 Jan Djärv <jan.h.d@swipnet.se>
433
434 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
435 invisible (Bug#5766).
436
9ae6e189
CY
4372010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
438
439 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
440 HAVE_NS conditionals.
194d44e7 441 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
442
443 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
444 filename for the title.
445 (ns_set_doc_edited): Do nothing if the selected window is a
446 minibuffer window.
447
448 * nsterm.h: Add prototypes for ns_set_name_as_filename and
449 ns_set_doc_edited.
450
451 * nsterm.m: Remove unneeded prototype.
452
25c72475
GM
4532010-03-28 Glenn Morris <rgm@gnu.org>
454
455 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
456 in the DOC file. (Bug#5336)
457
f79a01db
CY
4582010-03-24 Chong Yidong <cyd@stupidchicken.com>
459
460 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
461
93318cbd
JD
4622010-03-20 Jan Djärv <jan.h.d@swipnet.se>
463
464 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
465
466 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
467
468 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
469
ad13a3ee
YM
4702010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
471
472 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
473 XLoadQueryFont.
474
fbdc1721
KH
4752010-03-16 Kenichi Handa <handa@m17n.org>
476
477 * coding.c (decode_coding_ccl): Fix previous change for the
478 multibyte case.
fb608df3
KH
479 (encode_coding_ccl): Don't setup ccl program here. Fix for the
480 case that the output buffer is fullfilled.
481 (encode_coding): Setup ccl program here.
fbdc1721 482
35cd7cd6
CY
4832010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
484
485 * editfns.c (Fformat): Account for string precision when computing
486 field width (Bug#5710).
487
618db430
SM
4882010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
489
c0335e02
SM
490 Make it possible to C-g in a tight bytecode loop again (bug#5680).
491 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
492 (QUIT): Use it to consolidate code and remove redundancy.
493 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
494
254c06a8
SM
495 * regex.c (regex_compile): Setup gl_state as well.
496
618db430
SM
497 * syntax.c (skip_chars): Setup gl_state (bug#3823).
498 (in_classes): Use CONSP before XCAR/XCDR.
499
233f0c9f
CY
5002010-03-03 Chong Yidong <cyd@stupidchicken.com>
501
502 * keymap.c (Fwhere_is_internal): Use Fequal to compare
503 definitions, so that keyboard macros are correctly handled
504 (Bug#5481).
505
75f80e63
EZ
5062010-03-02 Eli Zaretskii <eliz@gnu.org>
507
508 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
509 text that could be relocated inside the call to emacs_mule_char.
510 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
511 (CODING_DECODE_CHAR): Add a comment describing its purpose.
512
dcfb9bc4
KH
5132010-03-02 Kenichi Handa <handa@m17n.org>
514
fc9a17bc
KH
515 * character.c (parse_str_as_multibyte): Fix handling of the
516 multibyte form of raw-bytes.
517 (str_as_multibyte): Likewise.
518
dcfb9bc4
KH
519 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
520 form of raw-bytes.
521
412c01b6
CY
5222010-02-28 Chong Yidong <cyd@stupidchicken.com>
523
524 * charset.c (load_charset_map_from_file)
525 (load_charset_map_from_vector): Zero out allocated
526 charset_map_entries before using them.
527
df7e1ea0
AS
5282010-02-27 Andreas Schwab <schwab@linux-m68k.org>
529
530 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
531
fe69a722
CY
5322010-02-27 Chong Yidong <cyd@stupidchicken.com>
533
4ed28cf4
CY
534 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
535 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 536
7379cfce
KH
5372010-02-26 Kenichi Handa <handa@m17n.org>
538
f88cc4d6
KH
539 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
540
7379cfce
KH
541 * xdisp.c (reseat_to_string): Fix previous change.
542
cf2fdcfb
CY
5432010-02-26 David Reitter <david.reitter@gmail.com>
544
545 * nsfont.m (nsfont_draw): ns_antialias_text should be a
546 Lisp_Object (Bug#4736).
547
cc6c7c75
KH
5482010-02-25 Kenichi Handa <handa@m17n.org>
549
550 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
551
32e737d7
JD
5522010-02-24 Jan Djärv <jan.h.d@swipnet.se>
553
554 * xterm.c (XTflash): Move declarations before statements.
555
556 * gtkutil.c (xg_get_gdk_display): Remove (unused).
557 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
558 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
559 (xg_create_tool_bar): Remove unused variables.
560 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 561 (xg_create_frame_widgets): Remove variable grav.
32e737d7 562
676cae9f
CY
5632010-02-21 Chong Yidong <cyd@stupidchicken.com>
564
565 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
566
886cc2b8
SM
5672010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
568
569 * term.c (fatal): Add a final \n if needed (bug#5596).
570
ddb2d8e2
CY
5712010-02-18 Chong Yidong <cyd@stupidchicken.com>
572
573 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
574
2a4f8d3d
GM
5752010-02-18 Glenn Morris <rgm@gnu.org>
576
577 * callint.c (Finteractive): Doc fix.
578
ebaf11b6
KH
5792010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
580
886cc2b8
SM
581 * coding.c (record_conversion_result):
582 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
583 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
584 memory allocation error.
585
d0396581
KH
5862010-02-17 Kenichi Handa <handa@m17n.org>
587
886cc2b8
SM
588 * coding.c (decode_coding_ccl): Don't setup ccl program here.
589 Fix for the case that the output buffer is fullfilled.
d0396581
KH
590 (decode_coding): Setup ccl program here. Keep looping when the
591 decoder stopped because the output buffer is
592 fullfilled (bug#5534).
593
594 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
595
98599f74
JD
5962010-02-13 Jan Djärv <jan.h.d@swipnet.se>
597
471e4f04 598 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 599 bug #5571.
886cc2b8 600 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 601 overdrawn.
98599f74 602
182659ae
JD
6032010-02-10 Jan Djärv <jan.h.d@swipnet.se>
604
605 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
606 doing_interact here.
607 (ice_connection_closed): New function.
608 (x_session_check_input, smc_die_CB, ice_io_error_handler)
609 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
610 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
611 returns I/O error.
612 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
613 bug #5512.
614
9be32c4e 6152010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
616
617 * nsfont.m (nsfont_open): The system's value for the font descent
618 is negative, so round it down to avoid clipping.
619
a2f3eb19
CY
6202010-02-06 Chong Yidong <cyd@stupidchicken.com>
621
622 * charset.c (load_charset_map_from_file)
623 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 624 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 625
3088147c
CY
6262010-02-05 Chong Yidong <cyd@stupidchicken.com>
627
628 * charset.c (load_charset_map_from_file): Allocate large
629 charset_map_entries structure on the heap rather than the stack.
630 (Bug#5526).
631
b57d9029
KH
6322010-01-31 Kenichi Handa <handa@m17n.org>
633
634 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 635 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 636
c67d885b
CY
6372010-01-31 Chong Yidong <cyd@stupidchicken.com>
638
639 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
640 <deactivated@gmail.com> (Bug#3605).
641
8fab2362
CY
6422010-01-31 David De La Harpe Golden <david@harpegolden.net>
643
644 * fileio.c (Frename_file): Correctly rename symlinks to
645 directories (Bug#5496).
646
cb2a62f2
CY
6472010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
648
649 * nsterm.m (ns_ring_bell): Handle visible bell like X.
650
944c7a26
AS
6512010-01-30 Andreas Schwab <schwab@linux-m68k.org>
652
653 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
654
c024ac08
CY
6552010-01-29 Chong Yidong <cyd@stupidchicken.com>
656
657 * frame.c (DEFAULT_ROWS): Change default to 35.
658
659 * xfns.c (x_default_font_parameter): Change default XFT font to
660 monospace-10 (Bug#3643).
661
af93af83
EZ
6622010-01-29 Eli Zaretskii <eliz@gnu.org>
663
664 * w32inevt.c (key_event): Remove unnecessary comparison of
665 event->uChar.AsciiChar with 128.
666
ca0eb708
CY
6672010-01-28 Chong Yidong <cyd@stupidchicken.com>
668
b242dbfc
CY
669 * fileio.c (Frename_file): Fix last change (Bug#5487).
670
ca0eb708
CY
671 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
672
673 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
674
45d45af5
JD
6752010-01-28 Jan Djärv <jan.h.d@swipnet.se>
676
677 * xfns.c (Fx_create_frame): Remove window size matching code from
678 2010-01-15.
a73f9c9d 679 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 680
7e233730
JR
6812010-01-27 Jason Rumney <jasonr@gnu.org>
682
683 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 684 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 685
86e893e3
KH
6862010-01-27 Kenichi Handa <handa@m17n.org>
687
688 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 689 pattern string (Bug#4209).
86e893e3 690
8719abec
CY
6912010-01-27 David De La Harpe Golden <david@harpegolden.net>
692
693 * fileio.c (Frename_file): Call copy-directory and
694 delete-directory for directories, in order to handle cross-device
695 renaming (Bug#3353).
696
844794c8
JD
6972010-01-25 Jan Djärv <jan.h.d@swipnet.se>
698
aa3e13b5 699 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 700 sizes 24 and 10. Bug #3643.
844794c8 701
bd4b5750
SM
7022010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
703
8dc1adf6 704 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
705 * keymap.c (shadow_lookup): Add `remap' arg.
706 (describe_map, describe_vector): Update calls to shadow_lookup.
707 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
708 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
709 perform remapping during shadow_lookup check of remapped_sequences.
710
285d07e2
CY
7112010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
712
713 * image.c (png_load): Use png_sig_cmp instead of the obsolete
714 png_check_sig, which has been removed in libpng 1.4.
715
c6d09b8d
CY
7162010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
717
718 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
719 lacks this header file).
720
3d782998
YM
7212010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
722
723 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
724 as in Emacs 22.
725
2aff7c53
YM
7262010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
727
728 * lisp.h (make_pure_string): String pointer arg now points to const.
729
730 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
731 args now point to const.
732
74327f7a
EZ
7332010-01-22 Eli Zaretskii <eliz@gnu.org>
734
735 * lread.c (Fload): Don't treat files without .elc extension as
736 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
737 them. (bug#5303)
738
4d1e6632
KH
7392010-01-20 Kenichi Handa <handa@m17n.org>
740
741 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
742 treat the source as actual byte sequence.
743
1fdede8f
AM
7442010-01-19 Alan Mackenzie <acm@muc.de>
745
746 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 747 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
748 `signal_after_change_p' to `coherent_change_p', and make the
749 invocation of `modify_region' conditional on it.
750
67477f30
JD
7512010-01-19 Jan Djärv <jan.h.d@swipnet.se>
752
753 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
754 for debug purpose.
755 (syms_of_xsettings): Declare xft-settings.
756
244b023e
CY
7572010-01-18 Chong Yidong <cyd@stupidchicken.com>
758
759 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
760
617364fe
CY
7612010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
762
763 * xterm.c (event_handler_gdk): Block input (Bug#5037).
764
4fe22cdf
CY
7652010-01-16 Chong Yidong <cyd@stupidchicken.com>
766
767 * emacs.c (standard_args): Adjust arg priorities to reflect how
768 they are processed in startup.el.
769
e118d2be
AS
7702010-01-16 Andreas Schwab <schwab@linux-m68k.org>
771
772 * Makefile.in (lisp, shortlisp): Update.
773
523ae620
SM
7742010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
775
776 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
777 code, link the new kboard into all_kboard before running Lisp code,
778 and protect the new terminal with GCPRO (Bug#5365).
779 (x_term_init): Remove unused var `atom'.
780 (x_delete_display, x_delete_terminal): Remove unused var `i'.
781
f0d13888
JD
7822010-01-15 Jan Djärv <jan.h.d@swipnet.se>
783
784 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
785 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
786 to find out usable size of the desktop. Don't make frames larger than
ac146f82 787 this. Bug #3643.
f0d13888 788
cc320f07
KH
7892010-01-15 Kenichi Handa <handa@m17n.org>
790
791 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
792
7ffdf101
CY
7932010-01-15 Chong Yidong <cyd@stupidchicken.com>
794
795 * nsterm.m (Qnone): Define.
796
797 * nsfns.m (Qnone): Move definition to nsterm.m.
798
d12bd917
KH
7992010-01-14 Kenichi Handa <handa@m17n.org>
800
801 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
802 systems.
803
d9a7c140
KH
8042010-01-14 Kenichi Handa <handa@m17n.org>
805
806 Make auto-composition work on all buffers even if they are
807 fundamental mode.
808
809 * composite.c (Vauto_composition_mode): New variable.
810 (composition_compute_stop_pos): Check Vauto_composition_mode
811 instead of Vauto_composition_function.
812 (composition_adjust_point, Ffind_composition_internal): Likewise.
813 (syms_of_composite): Declare Lisp variable
814 "auto-composition-mode" here.
815
63286bb2
CY
8162010-01-13 Chong Yidong <cyd@stupidchicken.com>
817
818 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
819 during call to vendor-specific-keysyms (Bug#5365).
820
c2623ee7
YM
8212010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
822
823 * keyboard.c (input_available_signal) [SYNC_INPUT]:
824 Call SIGNAL_THREAD_CHECK (Bug#5333).
825
826 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
827 Call SIGNAL_THREAD_CHECK.
828
0b5397c2
SM
8292010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
830
831 Try to fix bug#5314. This is probably not the final word, tho.
832 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
833 recent-auto-save-p as a side-effect.
834 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
835 * buffer.c (Fkill_buffer, reset_buffer):
836 * editfns.c (Fsubst_char_in_region):
837 * fileio.c (Finsert_file_contents, Fdo_auto_save)
838 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
839
dc954cb2
KH
8402010-01-13 Kenichi Handa <handa@m17n.org>
841
842 Display buffer name, etc. in mode line by composing correctly.
843
844 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
845 STRING is not nil.
0b5397c2 846 (display_mode_element): Adjust for the change of
dc954cb2
KH
847 decode_mode_spec and display_line.
848 (decode_mode_spec): Change arg MULTIBYTE to STRING.
849 (display_string): Handle the case that STRING is non-null and
850 LISP_STRING is not nil.
851
0b5397c2
SM
852 * xterm.c (x_draw_composite_glyph_string_foreground):
853 Pay attention to s->face->overstrike.
dc954cb2
KH
854
855 * composite.c (composition_reseat_it): Don't check PT if STRING is
856 non nil.
857
4a00eaca
YM
8582010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
859
860 * keyboard.c (read_char): Don't apply previous change when current
861 buffer is unchanged by command execution.
862
60abb287
JD
8632010-01-12 Jan Djärv <jan.h.d@swipnet.se>
864
865 * keyboard.c (read_char): Return after executing from special map.
866
893db5bc
GM
8672010-01-12 Glenn Morris <rgm@gnu.org>
868
869 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
870 bug-gnu-emacs rather than emacs-pretest-bug.
871
4d03ece0
CY
8722010-01-11 Chong Yidong <cyd@stupidchicken.com>
873
874 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
875 initializing the Lisp variables that depend on them.
876
1df47e38
YM
8772010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
878
879 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
880 Clear areas that will not be updated after change of menu bar lines.
881 Clear the menu bar window's current matrix when the window gets empty.
882
2f1c6384
CY
8832010-01-09 Chong Yidong <cyd@stupidchicken.com>
884
e398c61c
CY
885 * intervals.h, textprop.c (extend_property_ranges): Return value
886 and args changed. Discard properties that begin at or after the
887 new end (Bug#5306).
888
889 * editfns.c (Fformat): Caller changed.
890
e5a29a10
CY
891 * nsterm.m (ns_set_default_prefs): Delete function.
892 (syms_of_nsterm): Initialize ns_command_modifier,
893 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
894 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
895
2f1c6384
CY
896 * xdisp.c (pos_visible_p): Check for invisible text at the correct
897 position (Bug#4040).
898
d427a9fa
EZ
8992010-01-09 Eli Zaretskii <eliz@gnu.org>
900
901 * editfns.c (Ffloat_time): Doc fix.
902
21b9df2f
JD
9032010-01-09 Jan Djärv <jan.h.d@swipnet.se>
904
905 * xfns.c (Fx_create_frame): Don't create frame larger than display
906 by default bug#3643.
907
4b00d3b1
YM
9082010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
909
910 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
911 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
912 windows above internal border.
913
914 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
915 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
916 windows above internal border.
917
918 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
919 tool bar windows specially.
920
921 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
922
923 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
924 specially.
925 (XTflash): Take account of menu bar height.
926
927 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
928 specially.
929
5075d853
JD
9302010-01-08 Jan Djärv <jan.h.d@swipnet.se>
931
ac146f82 932 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
933 also be true before we can return early (bug #5339).
934
474217c8
CY
9352010-01-06 David Reitter <david.reitter@gmail.com>
936
937 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
938 (Fns_display_usable_bounds): Rewrite, computing bounds properly
939 (Bug#3233).
940
c0e6d47d
JD
9412010-01-06 Jan Djärv <jan.h.d@swipnet.se>
942
d0cf45b7
JD
943 * font.c (font_open_entity): Enable chache and call cached_font_ok
944 for the driver if defined.
945 (QCuser_spec): New symbol.
946 (font_spec_from_name): Save name as user-spec.
947 (font_load_for_lface): Keep user-spec instead of name.
948 (font_open_by_name): Save name as user-spec.
949 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 950 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
951
952 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
953 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
954 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
955
956 * font.h (struct font_driver): Add cached_font_ok.
957
c0e6d47d
JD
958 * xterm.c (x_clear_frame): Queue draw for scroll bars.
959
7c583cd8
JD
9602010-01-05 Jan Djärv <jan.h.d@swipnet.se>
961
962 * xterm.c (x_new_font): Move code for setting rows/cols before
963 resizing ...
ac146f82 964 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
965
966 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
967 (xg_frame_resized, xg_frame_set_char_size):
968 Call xg_clear_under_internal_border.
7c583cd8 969 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 970
03f77f0a
CY
9712010-01-05 Chong Yidong <cyd@stupidchicken.com>
972
973 * keyboard.c (read_key_sequence): Catch keyboard switch after
974 making a new tty frame (Bug#5095).
975
2a1ef5be
KH
9762010-01-05 Kenichi Handa <handa@m17n.org>
977
978 * fontset.c (fontset_find_font): Fix getting the frame pointer.
979
e3eb1dae
SM
9802010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
981
982 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
983 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
984 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
985
777013f2
MA
9862010-01-03 Michael Albinus <michael.albinus@gmx.de>
987
988 * dbusbind.c (xd_add_watch): Improve debug message.
989 (xd_remove_watch): Improve debug message. If DATA is the session
990 bus, unset D-Bus session environment.
991 (Fdbus_init_bus): Pass the bus as argument to
992 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 993
8932b1c2
CY
9942010-01-01 Chong Yidong <cyd@stupidchicken.com>
995
87231e2c
CY
996 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
997
4801c5fa
CY
998 * lread.c (syms_of_lread): Make it clearer that these are the
999 names of loaded files (Bug#5068).
1000
8932b1c2
CY
1001 * eval.c (run_hook_with_args): Handle the case where the global
1002 value has the obsolete single-function form (Bug#5026).
1003
11e3c684
CY
10042009-12-27 Chong Yidong <cyd@stupidchicken.com>
1005
1006 * minibuf.c (Fall_completions): Minor optimization.
1007
5b28ce35
EZ
10082009-12-26 Eli Zaretskii <eliz@gnu.org>
1009
5ce6e4f4
JB
1010 * .gdbinit (pgx): Fix display of composite glyphs.
1011 Display cmp.from and cmp.to as well.
1012 (pitx): Fix last change.
5b28ce35 1013
bcffff46
KH
10142009-12-25 Kenichi Handa <handa@m17n.org>
1015
1016 * composite.h (composition_adjust_point): Update prototype.
1017
1018 * composite.c (composition_reseat_it): Don't make a composition
1019 spanning over point.
1020 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1021 composable characters.
1022 (composition_adjust_point): New arg NEW_PT. Callers changed.
1023
1024 * keyboard.c (command_loop_1): Force redisplay if the last point
1025 was within a composition.
1026 (adjust_point_for_property): Don't adjust point for automatic
1027 composition when called after buffer modification.
1028
3f670e9a
EZ
10292009-12-19 Eli Zaretskii <eliz@gnu.org>
1030
5ce6e4f4
JB
1031 * .gdbinit (pitx): Don't use enum names, use their values.
1032 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1033 (pgx): Don't use enum names, use their values.
1034 (pitmethod): New helper command.
1035 (pitx): Use it to display iteration method.
1036 (pgrowit): New command.
1037
ad903955
EZ
1038 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1039
3f670e9a
EZ
1040 Update dependencies in Makefile.in.
1041
1042 * Makefile.in (alloc.o): Depend on termhooks.h.
1043 (atimer.o): Depend on blockinput.h.
1044 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1045 and frame.h.
1046 (callint.o): Depend on systime.h, coding.h, and composite.h.
1047 (callproc.o): Depend on buffer.h.
1048 (casefiddle.o): Don't depend on charset.h.
1049 (casetab.o): Depend on character.h.
1050 (ccl.o): Depend on composite.h.
1051 (chartab.o): Depend on ccl.h.
1052 (cm.o): Depend on dispextern.h.
1053 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1054 (coding.o): Don't depend on $(INTERVALS_H).
1055 (composite.o): Don't depend on dispextern.h explicitly (it's in
1056 $(INTERVALS_H)). Depend on ccl.h.
1057 (data.o): Depend on systime.h, coding.h, composite.h,
1058 dispextern.h, font.h, and ccl.h.
1059 (dired.o): Depend on composite.h.
1060 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1061 composite.h (it's in $(INTERVALS_H)).
1062 (doc.o): Depend on systime.h, coding.h, and composite.h.
1063 (editfns.o): Don't depend explicitly on dispextern.h.
1064 (emacs.o): Depend on frame.h and coding.h.
1065 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1066 (fileio.o): Depend on frame.h and commands.h. Don't depend
1067 explicitly on dispextern.h.
1068 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1069 composite.h.
1070 (fns.o): Don't depend on termhooks.h.
1071 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1072 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1073 coding.h, $(INTERVALS_H), window.h, xterm.h.
1074 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1075 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1076 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1077 fontset.h, ccl.h, and ftfont.h.
1078 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1079 (gtkutil.o): Depend on dispextern.h and composite.h.
1080 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1081 termhooks.h, and ccl.h.
1082 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1083 (intervals.o): Depend on systime.h and coding.h.
1084 (keyboard.o): Depend on composite.h and coding.h.
1085 (keymap.o): Depend on coding.h and frame.h.
1086 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1087 (macros.o): Depend on systime.h, coding.h, and composite.h.
1088 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1089 and atimer.h.
1090 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1091 dispextern.h explicitly.
0b5397c2
SM
1092 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1093 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1094 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1095 (regex.o): Don't depend on charset.h.
1096 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1097 (search.o): Don't depend explicitly on composite.h.
1098 (sound.o): Depend on atimer.h and systime.h.
1099 (syntax.o): Don't depend explicitly on composite.h.
1100 (sysdep.o): Depend on coding.h and composite.h.
1101 (term.o): Depend on xterm.h and buffer.h.
1102 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1103 (textprop.o): Don't depend on dispextern.h explicitly.
1104 (undo.o): Depend on dispextern.h.
1105 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1106 dispextern.h and composite.h explicitly.
1107 (xdisp.o): Depend on ccl.h.
1108 (xfaces.o): Depend on coding.h and ccl.h.
1109 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1110 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1111 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1112 ftfont.h.
1113 (xgselect.o): New dependency.
1114 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1115 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1116 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1117 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1118 (xsmfns.o): Depend on frame.h and dispextern.h.
1119 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1120 sysselect.h.
1121
7a6f7fea
AS
11222009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1123
1124 * font.c (Fclear_font_cache): Pass correct cache argument to
1125 font_clear_cache.
1126
f4c21026
AS
11272009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1128
1129 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1130 twice.
1131
f7ab0997
CY
11322009-12-15 Chong Yidong <cyd@stupidchicken.com>
1133
1134 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1135 calling file-remote-p. Reported by Jim Meyering.
1136
fa8e045a
MA
11372009-12-15 Michael Albinus <michael.albinus@gmx.de>
1138
1139 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1140 avoid compiler warnings. (Bug #5217)
fa8e045a 1141
a63dba42
KH
11422009-12-14 Kenichi Handa <handa@m17n.org>
1143
1144 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1145 in 8-bit encoding.
1146
5ce6e4f4 11472009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1148
1149 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1150 tooltip windows.
1151
223e5fc6
JD
11522009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1153
36acb2a7
JD
1154 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1155 Xatom_net_window_type.
1156
1157 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1158 Xatom_net_window_type.
1159
b8f00677
JD
1160 * xterm.c (my_log_handler): New function.
1161 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1162 so we can filter out buggy messages. (Bug #5120).
b8f00677 1163
e5f0bc9a
JD
1164 * xterm.c (xg_scroll_callback): Parameter list changed,
1165 use parameter GtkScrollType to determine scroll/line/page.
1166 Only allow dragging if a button < 4 is grabbed (bug #5177).
1167 (xg_end_scroll_callback): New function.
1168 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1169 xg_create_scroll_bar.
1170
1171 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1172 (scroll_end_callback): Remove.
1173 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1174 button-release-event. Replace value-changed event with change-value,
1175 bug #5177,
1176 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1177 bug #5177.
1178
1179 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1180 (xg_create_scroll_bar): Add GCallback end_callback.
1181
223e5fc6
JD
1182 * xftfont.c (QClcdfilter): New variable.
1183 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1184 (syms_of_xftfont): Initialize QClcdfilter.
1185
3c055b77
JD
11862009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1187
1188 * xsettings.c (struct xsettings): Add member seen.
1189 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1190 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1191 (apply_xft_settings): Only update Xft settings with what member seen
1192 indicates as new.
1193
05fe33ff
EZ
11942009-12-12 Eli Zaretskii <eliz@gnu.org>
1195
1196 * dispextern.h (struct text_pos): Use EMACS_INT;
1197 (struct glyph): Use EMACS_INT for charpos.
1198 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1199 region_beg_charpos, region_end_charpos,
1200 redisplay_end_trigger_charpos, and also for
1201 iterator_stack_entry.end_charpos and
1202 iterator_stack_entry.stop_charpos.
1203
e8d7886a
JD
12042009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1205
5ce6e4f4 1206 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1207 (xg_create_scroll_bar): Call scroll_end_callback on button release
1208 event (bug #5177).
1209 (xg_event_is_for_scrollbar): != replaced with ==.
1210
d0db2ec8
KH
12112009-12-12 Kenichi Handa <handa@m17n.org>
1212
1213 * ftfont.c (struct ftfont_info): New member matrix.
1214 (ftfont_open): Setup xftfont_info->matrix.
1215 (MFLTFontFT): New member matrix.
1216 (FLOOR, CEIL, ROUND): New macros.
1217 (ftfont_get_metrics): Handle matrix transformation.
1218 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1219
1220 * xftfont.c (struct xftfont_info): New member matrix.
1221 (xftfont_open): Setup xftfont_info->matrix.
1222
12232009-12-10 Kenichi Handa <handa@m17n.org>
1224
1225 * xdisp.c (append_space_for_newline): Consider face-remapping.
1226
2cc7b62f
AS
12272009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1228
b87dd913
AS
1229 * xsettings.c: Include "keyboard.h".
1230
eba5eb94
AS
1231 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1232
2cc7b62f
AS
1233 Fix implicit function declarations.
1234 * cmds.c: Include "frame.h".
1235 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1236 * frame.h: Move declaration of delete_frame outside of
1237 HAVE_WINDOW_SYSTEM.
1238
a4ef73c8
CY
12392009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1240
1241 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1242
1243 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1244 GTK builds.
1245
944a300c
AS
12462009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1247
1248 * unexelf.c (unexec): Don't search for .data twice.
1249
022eef62
CY
12502009-12-05 Chong Yidong <cyd@stupidchicken.com>
1251
426ac949
CY
1252 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1253 if push failed.
1254 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1255 of push_display_prop (Bug#5000).
1256
022eef62
CY
1257 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1258 value of font_list_entities (Bug#5085).
1259
be95bee9
JB
12602009-12-04 Juanma Barranquero <lekktu@gmail.com>
1261
1262 Fix `string-to-number' to deal consistently with integers and floats.
1263 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1264 trailing characters, not just whitespace.
1265 (read1): Pass new arg 0 to keep old behavior.
1266 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1267 trailing chars, as it is already done for integers. Doc fixes.
1268 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1269
24c2d7ce
EZ
12702009-12-04 Eli Zaretskii <eliz@gnu.org>
1271
0b5397c2
SM
1272 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1273 Delete unused enumeration value.
24c2d7ce 1274
7e694795
EZ
12752009-12-03 Eli Zaretskii <eliz@gnu.org>
1276
1277 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1278
84b31826
SM
12792009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1280
1281 * process.c (Fmake_network_process): Fix up the tests for
1282 "connectionless socket", so they DTRT for seqpacket sockets as well.
1283
f00c449b
SM
12842009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1285
1286 * process.c (Qseqpacket): New symbol.
1287 (HAVE_SEQPACKET): New macro.
1288 (Fmake_network_process): Accept new :type `seqpacket'.
1289 (init_process): Add `seqpacket' feature when applicable.
1290 (syms_of_process): Initialize Qseqpacket.
1291
8096a0ff
YM
12922009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1293
1294 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1295 if entity is Qnil.
1296
3e0de07f
SM
12972009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1298
1299 * print.c (print_preprocess): Preprocess the key_and_value table of
1300 hashtables, even tho they're "hidden" (bug#5082).
1301
abeafb2a
JD
13022009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1303
1304 * frame.c (frame_make_pointer_invisible)
1305 (frame_make_pointer_visible): Declare f before statements.
1306
4bf47195
EZ
13072009-11-28 Eli Zaretskii <eliz@gnu.org>
1308
1309 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1310 omitted dependencies on lisp.h.
1311
c525b3f2
JD
13122009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1313
ece2d4ed
JD
1314 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1315 is NULL.
1316
1317 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1318
1319 * frame.c (frame_make_pointer_invisible)
3e0de07f 1320 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1321 frame.
1322
c525b3f2
JD
1323 * search.c (simple_search): Remove warning by making *p const.
1324
2f00e299
DN
13252009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1326
1327 * xdisp.c (power_letter): Remove duplicate const.
1328
084b049b
JD
13292009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1330
a1fadc6f
JD
1331 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1332
5ce6e4f4 1333 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1334 defaults (bug #5025).
1335
28259cac
SM
13362009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1337
1338 * insdel.c (adjust_markers_for_delete): Move it in the
1339 right direction! (bug#4803)
1340
e8e14166
YM
13412009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1342
1343 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1344
1345 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1346
86677b58
GM
13472009-11-24 Glenn Morris <rgm@gnu.org>
1348
1349 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1350
581e51e8
JD
13512009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1352
cfc86c7a
JD
1353 * Makefile.in: Must create deps for ecrt0.o in its rule.
1354
581e51e8
JD
1355 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1356 because that is what Gtk+ font dialog understands.
1357
1358 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1359 of Fcopy_sequence.
1360 (font_open_by_name): Put name given into QCname for font-object returned.
1361
1362 * frame.c (x_set_font): Save original font name as frame parameter
1363 font-parameter.
1364
1365 * xsettings.c (set_default_xft_settings): New function.
1366 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1367 is found.
1368
8b264ecb
AS
13692009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1370
1371 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1372 searching backwards through multibyte buffer.
1373
872870b2
JD
13742009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1375
1376 * xterm.c: #include xgselect.h.
1377 (x_initialize): Call xgselect_initialize.
1378
1379 * xsettings.c (something_changedCB): C++ comments => C comments.
1380 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1381 does that now.
1382
1383 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1384 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1385 (scroll_bar_button_cb): Remove.
5ce6e4f4 1386 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1387 event.
1388 (xg_create_scroll_bar): Don't bind button-press-event and
1389 button-release-event.
1390
1391 * process.c: Include xgselect.h if defined (USE_GTK) ||
1392 defined (HAVE_GCONF).
1393 (wait_reading_process_output): Call xg_select for the same condition.
1394
1395 * xgselect.c (xg_select): New function to better integrate with
1396 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1397
1398 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1399
1400 * Makefile.in (XOBJ): Add xgselect.o.
1401
62a6e103
AS
14022009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1403
0b5397c2
SM
1404 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1405 Remove ignored second argument. All callers changed.
62a6e103
AS
1406 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1407 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1408 * xdisp.c (string_char_and_length): Likewise.
1409
b0ca0f33
DN
14102009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1411
1412 * xterm.c (x_new_font):
1413 * print.c (print_object):
1414 * cmds.c (Fself_insert_command): Move declarations before statements.
1415
dd5a6279
CY
14162009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1417
1418 * s/cygwin.h: Remove unneeded linker flags.
1419
4a8e097d
JD
14202009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1421
0d1d0d26
JD
1422 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1423
1424 * xsettings.h: Declare xsettings_get_system_font.
1425
1426 * xsettings.c (xsettings_get_system_font): New function.
1427 (init_gconf): No use initiating gconf unless we have Xft also.
1428 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1429 HAVE_GCONF.
1430
4a8e097d
JD
1431 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1432 add a blank entry so it doesn't collapse into nothing.
1433
8ab1650e
SM
14342009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1435
1436 * lread.c (Funintern): Comment out last change.
1437
82c602f0
RS
14382009-11-19 Richard Stallman <rms@gnu.org>
1439
1440 * lread.c (Funintern): Error if symbol is t or nil.
1441
87e32266
SM
14422009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1443
1444 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1445 representation of Lisp integers.
1446 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1447
1b9ac145
AS
14482009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1449
1450 * lisp.h: Remove declaration of Ffont_get_system_font.
1451 * xfns.c: Move include of "xsettings.h".
1452 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1453
dfb3c4c6
JD
14542009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1455
87e32266
SM
1456 * xsettings.c (something_changedCB, Ffont_get_system_font):
1457 Check use_system_font.
dfb3c4c6
JD
1458 (syms_of_xsettings): DEFVAR font-use-system-font.
1459
9370c1d8
AS
14602009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1461
25fe851a
AS
1462 * xfns.c (x_default_font_parameter): Remove dead assignment.
1463
9370c1d8
AS
1464 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1465
637fa988
JD
14662009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1467
87e32266 1468 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1469 not have FC_LCD_*. #define them if not there.
a6eb20d8 1470
87e32266 1471 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1472
637fa988
JD
1473 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1474
1475 * xterm.c (handle_one_xevent): Call xft_settings_event for
1476 ClientMessage, PropertyNotify and DestroyNotify.
1477 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1478 Call xsettings_initialize.
1479
1480 * xftfont.c (xftfont_fix_match): New function.
1481 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1482 Call xftfont_fix_match after XftFontMatch.
1483
1484 * xfont.c (xfont_driver): Initialize all members.
1485
87e32266
SM
1486 * xfns.c (x_default_font_parameter):
1487 Try font from Ffont_get_system_font.
637fa988
JD
1488 Do not get font from x_default_parameter if we got one from
1489 Ffont_get_system_font.
87e32266 1490 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1491
1492 * w32font.c (w32font_driver): Initialize all members.
1493
1494 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1495
1496 * lisp.h: Declare syms_of_xsettings.
1497
87e32266
SM
1498 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1499 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1500
1501 * ftfont.c (ftfont_filter_properties): New function.
1502
1503 * frame.c (x_set_font): Remove unused variable lval.
1504
87e32266 1505 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1506
1507 * font.c (font_put_extra): Don't return if val is nil, it means
1508 boolean option is off.
1509 (font_parse_fcname): Collect all extra properties in extra_props
1510 and call filter_properties for all drivers with extra_props and
1511 font as parameter.
87e32266
SM
1512 (font_open_entity): Do not use cache, it does not pick up new
1513 fontconfig settings like hinting.
637fa988
JD
1514 (font_load_for_lface): If spec had a name in it, store it in entity.
1515
a73f9c9d 1516 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
1517
1518 * config.in: HAVE_GCONF is new.
1519
1520 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1521 xsettings.o is new.
1522
5a942932
KH
15232009-11-17 Kenichi Handa <handa@m17n.org>
1524
1525 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1526 back to the default font in case that no suitable font is found.
1527
b7c7a4d1
SM
15282009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1529
1530 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1531 Suggested by Chad Brown <yandros@mit.edu>.
1532 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1533
072f1e39
JD
15342009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1535
1536 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1537
5d1e70a2
AS
15382009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1539
87e32266 1540 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1541
a53cfbe5
JD
15422009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1543
473a99b7
JD
1544 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1545 has a parent.
1546
a53cfbe5 1547 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1548 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1549
1550 * config.in: Generated (AUTO_DEPEND).
1551
f04bb9b2
MA
15522009-11-13 Michael Albinus <michael.albinus@gmx.de>
1553
b7c7a4d1 1554 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1555 Vdbus_registered_functions_table, because it contains also
1556 properties. Fix docstring.
b7c7a4d1 1557 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1558
8f11f7ec
SM
15592009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1560
1561 * alloc.c (mark_object): Don't reprocess marked strings.
1562 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1563 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1564
8a605fe8
KH
15652009-11-13 Kenichi Handa <handa@m17n.org>
1566
8f11f7ec 1567 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1568 semantics of Vword_combining_categories.
1569 (Vword_combining_categories): Describe the slight change of the
1570 semantics.
1571
241c4680
EZ
15722009-11-13 Eli Zaretskii <eliz@gnu.org>
1573
1574 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1575
1576 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1577
5d58e44c
SM
15782009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1579
1580 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1581
5e13f9d3
JB
15822009-11-12 Juanma Barranquero <lekktu@gmail.com>
1583
1584 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1585
cf54c754
DR
15862009-11-11 David Reitter <david.reitter@gmail.com>
1587
1588 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1589 variables to fix 2009-11-09 change.
1590
a4ada374
DN
15912009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1592
91433552
DN
1593 * process.c (ifflag_def): Make flag_sym constant.
1594 (Fnetwork_interface_info): Use a constant pointer.
1595 (ifflag_table):
1596 * xfns.c (cursor_bits):
1597 * xdisp.c (power_letter):
1598 * termcap.c (speeds, esctab):
1599 * sysdep.c (baud_convert):
1600 * keyboard.c (lispy_accent_codes, modifier_names):
1601 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1602 (jpeg_format, tiff_format, gif_format, svg_format)
1603 (interlace_start, interlace_increment, gs_format):
1604 * gtkutil.c (separator_names):
1605 * fringe.c (swap_nibble):
1606 * fns.c (base64_value_to_char, base64_char_to_value):
1607 * fileio.c (make_temp_name_tbl):
1608 * coding.c (suffixes): Make constant.
1609
f4265f6c
DN
1610 * frame.c (make_initial_frame):
1611 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1612 build_string.
1613 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1614
04420943
DN
1615 * s/freebsd.h:
1616 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1617
0a5d24ae
DN
1618 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1619 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1620
a4ada374
DN
1621 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1622 * xterm.c (syms_of_xterm):
1623 * xfaces.c (syms_of_xfaces):
1624 * xdisp.c (syms_of_xdisp):
1625 * lread.c (syms_of_lread):
1626 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1627 build_string.
91433552 1628
a4ada374
DN
1629 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1630
af98fc7f
SM
16312009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1632
8ab1650e 1633 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1634
e90292a9
JD
16352009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1636
1637 * keyboard.h: Declare timer_check.
1638
1639 * keyboard.c (timer_check_2): New function that does what the old
1640 timer_check did.
1641 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1642 returned, i.e. don't return -1 with timers pending.
1643
1644 * process.c: Remove extern declaration of timer_check.
1645
1646 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1647 even if timer_check returned -1.
1648
af98fc7f
SM
1649 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1650 xg_dialog_data.
e90292a9
JD
1651 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1652 the event loop.
1653 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1654 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1655 Destroy the dialog after xg_dialog_run.
1656
045b83c0
SM
16572009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1658
1659 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1660
1fb99a3a
JD
16612009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1662
1663 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1664
04e452cb
JB
16652009-11-09 Juanma Barranquero <lekktu@gmail.com>
1666
1667 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1668
ef7417fd
SM
16692009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1670
1671 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1672 w32menu.c, and nsmenu.m.
1673 Simplify the obsolete case where position is nil.
1674 (cleanup_popup_menu): New function, moved from nsmenu.m.
1675 (struct skp): Remove slot `notreal'.
1676 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1677 adjust callers.
1678 (single_menu_item): Adjust call to parse_menu_item.
1679 (syms_of_menu): Defsubr x-popup-menu.
1680 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1681 (keymap_panes): Don't export any more.
1682 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1683 (xmenu_show): Declare.
1684 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1685 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1686 * keyboard.h (parse_menu_item): Update declaration.
1687 * xmenu.c (Fx_popup_menu): Remove.
1688 (syms_of_xmenu): Don't defsubr x-popup-menu.
1689 * w32menu.c (Fx_popup_menu): Remove.
1690 (syms_of_w32menu): Don't defsubr x-popup-menu.
1691 * nsmenu.m (cleanup_popup_menu): Remove.
1692 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1693 moved to menu.c's Fx_popup_menu.
1694 (Fx_popup_menu): Remove.
1695 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1696 menu_items (it's done in menu.c already).
1697
424d6179
SM
16982009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1699
1700 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1701 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1702
c0df13a6 17032009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1704
1705 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1706 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1707 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1708 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1709
2de9f71c
SM
17102009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1711
1712 Let integers use up 2 tags to give them one extra bit and thus double
1713 their range.
1714 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1715 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1716 New macros.
1717 (enum Lisp_Type): Use them. Give explicit values.
1718 (Lisp_Type_Limit): Remove.
1719 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1720 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1721 Pay attention to USE_2_TAGS_FOR_INTS.
1722 (INTEGERP): Use LISP_INT_TAG_P.
1723 * fns.c (internal_equal): Simplify the default case.
1724 (sxhash): Use case_Lisp_Int.
1725 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1726 any more.
1727 (Ftype_of): Use case_Lisp_Int.
1728 (store_symval_forwarding): Take into account the fact that Ints can
1729 now have more than one tag.
1730 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1731 buffer_slot_type_mismatch):
1732 * xfaces.c (face_attr_equal_p):
1733 * print.c (print_object):
1734 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1735 Use case_Lisp_Int.
1736
323637a2
EZ
17372009-11-06 Eli Zaretskii <eliz@gnu.org>
1738
7ac65b38
EZ
1739 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1740
323637a2
EZ
1741 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1742 warning.
1743
e511451f
JD
17442009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1745
1746 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1747
1748 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1749
1750 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1751 ButtonPressRelease and MotionNotify (bug#4870).
1752
5e2327cf
DN
17532009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1754
5adc433e
DN
1755 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1756
d67b4f80
DN
1757 * xterm.c (syms_of_xterm):
1758 * xselect.c (syms_of_xselect):
1759 * xmenu.c (syms_of_xmenu):
1760 * xfns.c (syms_of_xfns):
1761 * xfaces.c (syms_of_xfaces):
1762 * xdisp.c (syms_of_xdisp):
1763 * window.c (syms_of_window):
1764 * w32fns.c (syms_of_w32fns):
1765 * undo.c (syms_of_undo):
1766 * textprop.c (syms_of_textprop):
1767 * terminal.c (syms_of_terminal):
1768 * syntax.c (syms_of_syntax):
1769 * sound.c (syms_of_sound):
1770 * search.c (syms_of_search):
1771 * print.c (syms_of_print):
1772 * minibuf.c (syms_of_minibuf):
1773 * macros.c (syms_of_macros):
1774 * keymap.c (syms_of_keymap, initial_define_key)
1775 (initial_define_lispy_key):
1776 * keyboard.c (syms_of_keyboard):
1777 * insdel.c (syms_of_insdel):
1778 * image.c (syms_of_image):
1779 * fringe.c (syms_of_fringe):
1780 * frame.c (syms_of_frame):
1781 * fontset.c (syms_of_fontset):
1782 * fns.c (syms_of_fns):
1783 * fns.c (syms_of_fns):
1784 * fileio.c (syms_of_fileio):
1785 * fileio.c (syms_of_fileio):
1786 * eval.c (syms_of_eval):
1787 * doc.c (syms_of_doc):
1788 * dispnew.c (syms_of_display):
1789 * dired.c (syms_of_dired):
1790 * dbusbind.c (syms_of_dbusbind):
1791 * data.c (syms_of_data):
1792 * composite.c (syms_of_composite):
1793 * coding.c (syms_of_coding):
1794 * cmds.c (syms_of_cmds):
1795 * charset.c (define_charset_internal, syms_of_character):
1796 * ccl.c (syms_of_ccl):
1797 * category.c (syms_of_category, init_category_once):
1798 * casetab.c (syms_of_casetab):
1799 * casefiddle.c (syms_of_casefiddle):
1800 * callint.c (syms_of_callint):
1801 * bytecode.c (syms_of_bytecode):
1802 * buffer.c (keys_of_buffer, syms_of_buffer):
1803 * alloc.c (syms_of_alloc):
1804 * process.c (syms_of_process, init_process):
1805 * lread.c (syms_of_lread, init_obarray):
1806 * font.c (build_style_table):
1807 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1808 intern_c_string, calls to make_pure_string with
1809 make_pure_c_string. Use pure_cons instead of Fcons.
1810
5e2327cf
DN
1811 * process.c (socket_options): Make it const.
1812 (set_socket_option, init_process): Use a const pointer.
1813
1814 * lread.c (intern_c_string): New function.
1815 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1816 (defvar_int): Uset it. Make the name const char*.
1817
1818 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1819 (defvar_int): Update prototypes.
1820 (DEFUN, EXFUN): Support for prototypes is now required.
1821 (intern_c_string): New prototype.
1822 (struct Lisp_Subr): Make symbol_name constant.
1823
1824 * font.c (struct table_entry): Remove unused member. Make NAMES
1825 constant.
1826 (weight_table, slant_table, width_table): Make constant.
1827
1828 * emacs.c (struct standard_args): Make name and longname constant.
1829
1830 * character.h (DEFSYM): Use intern_c_string.
1831
a56eaaef
DN
18322009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1833
1834 * alloc.c (make_pure_c_string): New function.
1835
1836 * eval.c (Fautoload): Purecopy all arguments.
1837
f6a07420
KH
18382009-11-05 Kenichi Handa <handa@m17n.org>
1839
1840 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1841 the buffer in case of replace.
1842
5d28d4b1
DN
18432009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1844
1845 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1846
b349d111
SM
18472009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1848
d528b1ce
SM
1849 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1850 when applicable (bug#4851).
1851
b349d111
SM
1852 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1853 (P_): Support for prototypes is now required.
1854
c38eb027
CY
18552009-10-31 Chong Yidong <cyd@stupidchicken.com>
1856
1857 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1858 (Bug#4827).
1859
0405f8d9
EZ
18602009-10-30 Eli Zaretskii <eliz@gnu.org>
1861
d528b1ce 1862 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1863
ca0a881a
DN
18642009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1865
1866 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1867
d528b1ce
SM
1868 * lread.c (Fload): Purecopy the file name when building
1869 Vpreloaded_file_list.
ca0a881a 1870
47e0e0e4
JR
18712009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1872
1873 * w32fns.c (syms_of_w32fns): Change default value of
1874 w32-scroll-lock-modifier to nil. (Bug#2827)
1875
057bce6f
JB
18762009-10-26 Juanma Barranquero <lekktu@gmail.com>
1877
782a943e 1878 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1879
242bc74c
AS
18802009-10-26 Andreas Schwab <schwab@redhat.com>
1881
1882 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1883
522d013a
JB
18842009-10-26 Juanma Barranquero <lekktu@gmail.com>
1885
1886 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1887 For delta < 0, skip check that only makes sense when the mini-window
1888 is going to be enlarged. (Bug#4534)
1889
18060980
CY
18902009-10-25 Chong Yidong <cyd@stupidchicken.com>
1891
1892 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1893 string in menu maps (Bug#4471).
1894
fec8f0fe
CY
18952009-10-24 Chong Yidong <cyd@stupidchicken.com>
1896
1897 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1898 FRAME_NS_VIEW on terminal frames (Bug#4765).
1899
10d66ec0
AS
19002009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1901
1cae01f7
AS
1902 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1903 DBUS_TYPE_UINTnn separately to get proper sign extension.
1904
58a12889
AS
1905 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1906 can properly handle unsigned types.
d528b1ce 1907 (make_uid, make_gid): Remove.
58a12889 1908
987c9327
AS
1909 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1910 types again.
1911
522d013a 1912 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1913 (system_process_attributes): Likewise.
1914
905a9ed3
DN
19152009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1916
1917 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1918
1919 * eval.c (Fautoload): Purecopy the filename. Simplify.
1920
1921 * category.c (Fdefine_category): Purecopy docstring.
1922
a599b3e8
AS
19232009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1924
7b792fc9
AS
1925 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1926
a599b3e8
AS
1927 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1928
b35ac83e
CY
19292009-10-23 Chong Yidong <cyd@stupidchicken.com>
1930
1931 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1932 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1933 (Bug#4775).
1934
e8903e00
SM
19352009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1936
1937 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1938 (init_fileio_once):
1939 * lisp.h (init_fileio_once): Remove.
1940 * emacs.c (main): Don't call init_fileio_once.
1941
8f43cbf3
DN
19422009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1943
1944 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1945
26898943
AS
19462009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1947
1948 * doprnt.c (doprnt): Fix overflow check.
1949
5c646d5a
JD
19502009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1951
3132a7ea
JD
1952 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1953
5c646d5a
JD
1954 * xterm.h (x_wait_for_event): Declare it.
1955
1956 * xterm.c (pending_event_wait): New variable.
1957 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1958 see pending_event_wait.eventtype.
1959 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1960 (x_new_font): Call change_frame_size with new rows/columns before we
1961 try to resize the frame.
5c646d5a 1962 (x_wait_for_event): New function.
d528b1ce
SM
1963 (x_set_window_size_1): Don't change gravity unless change_gravity
1964 is set.
5c646d5a
JD
1965 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1966 don't change frame size, instead wait for the ConfigureNotify.
1967 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1968 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1969 (x_initialize): Initialize pending_event_wait.
1970
1971 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1972 size.
1973
1974 * widget.c (EmacsFrameSetValues): Add comment.
1975 (EmacsFrameSetCharSize): Just call x_set_window_size.
1976
1977 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1978 x_wait_for_event.
d528b1ce 1979 (flush_and_sync): Remove again.
5c646d5a
JD
1980 (xg_get_font_name): Suggest monospace if no previous font is known.
1981
e9c1637d
SM
19822009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1983
1984 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1985 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1986
5a72cccb
YM
19872009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1988
1989 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1990 processing pending events when event is filtered for input method.
ab04798f 1991 (Bug#3681)
5a72cccb 1992
2629aa37
JB
19932009-10-20 Juanma Barranquero <lekktu@gmail.com>
1994
1995 * fns.c: Add #endif accidentally removed in previous change.
1996
c3417a74
DN
19972009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1998
1999 * fns.c: Remove code for unsupported system: MAC_OS.
2000 * image.c: Likewise. Include setjmp.h.
2001
9685cef2
JD
20022009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2003
2004 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2005 pixel -1 (bug #4742).
2006
d7306fe6
DN
20072009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2008
019d2c4c
DN
2009 * process.c (create_pty): Remove conditionals for no longer
2010 supported systems: UNIPLUS and RTU.
2011
ee6bacd4
DN
2012 * xterm.c:
2013 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2014
d7306fe6
DN
2015 * alloc.c: Do not define struct catchtag.
2016 * eval.c: Move struct catchtag definition ...
2017 * lisp.h: ... here.
2018
2019 * image.c: Move png.h #include earlier to avoid warnings.
2020
2021 * xterm.c:
2022 * xsmfns.c:
2023 * xselect.c:
2024 * xrdb.c:
2025 * xmenu.c:
2026 * xftfont.c:
2027 * xfont.c:
2028 * xfns.c:
2029 * xfaces.c:
2030 * xdisp.c:
2031 * window.c:
2032 * widget.c:
2033 * w32xfns.c:
2034 * w32uniscribe.c:
2035 * w32term.c:
2036 * w32select.c:
2037 * w32reg.c:
2038 * w32proc.c:
2039 * w32menu.c:
2040 * w32inevt.c:
2041 * w32heap.c:
2042 * w32font.c:
2043 * w32fns.c:
2044 * w32console.c:
2045 * w32.c:
2046 * w16select.c:
2047 * vm-limit.c:
2048 * unexsol.c:
2049 * unexec.c:
2050 * unexcw.c:
2051 * unexaix.c:
2052 * undo.c:
2053 * tparam.c:
2054 * textprop.c:
2055 * terminfo.c:
2056 * terminal.c:
2057 * termcap.c:
2058 * term.c:
2059 * syntax.c:
2060 * sound.c:
2061 * sheap.c:
2062 * search.c:
2063 * scroll.c:
2064 * region-cache.c:
2065 * regex.c:
2066 * ralloc.c:
2067 * process.c:
2068 * print.c:
b024548b
DN
2069 * nsterm.m:
2070 * nsselect.m:
2071 * nsmenu.m:
2072 * nsimage.m:
2073 * nsfont.m:
2074 * nsfns.m:
d7306fe6
DN
2075 * msdos.c:
2076 * minibuf.c:
2077 * menu.c:
2078 * marker.c:
2079 * macros.c:
2080 * keymap.c:
2081 * keyboard.c:
2082 * intervals.c:
2083 * insdel.c:
2084 * indent.c:
2085 * gtkutil.c:
2086 * ftxfont.c:
2087 * ftfont.c:
2088 * fringe.c:
2089 * frame.c:
2090 * fontset.c:
2091 * font.c:
2092 * fns.c:
2093 * floatfns.c:
2094 * filelock.c:
2095 * fileio.c:
2096 * emacs.c:
2097 * editfns.c:
2098 * dosfns.c:
2099 * doprnt.c:
2100 * doc.c:
2101 * dispnew.c:
2102 * dired.c:
2103 * dbusbind.c:
2104 * data.c:
2105 * composite.c:
2106 * coding.c:
2107 * cmds.c:
2108 * cm.c:
2109 * chartab.c:
2110 * charset.c:
2111 * character.c:
2112 * ccl.c:
2113 * category.c:
2114 * casetab.c:
2115 * casefiddle.c:
2116 * callproc.c:
2117 * callint.c:
2118 * bytecode.c:
2119 * buffer.c:
2120 * atimer.c: Include setjmp.h. (Bug#4643)
2121
fd5f21e6
SM
21222009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2123
4c0354d7
SM
2124 Remove leftover table unibyte_to_multibyte_table.
2125 * character.c (unibyte_to_multibyte_table): Remove.
2126 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2127 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2128 * character.h (UNIBYTE_TO_CHAR): New macro.
2129 (MAKE_CHAR_MULTIBYTE): Use it.
2130 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2131 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2132 (message_dolog, set_message_1):
2133 * search.c (Freplace_match):
2134 * editfns.c (Fcompare_buffer_substrings):
2135 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2136 (concat):
2137 * insdel.c (copy_text, count_size_as_multibyte):
2138 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2139 * term.c (produce_glyphs):
2140 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2141 * regex.c (RE_CHAR_TO_MULTIBYTE):
2142 * cmds.c (internal_self_insert):
2143 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2144
fd5f21e6
SM
2145 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2146
4418646e
DN
21472009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2148
2149 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2150
35f5c1d2
JB
21512009-10-16 Juanma Barranquero <lekktu@gmail.com>
2152
2153 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2154
a0cd8f6b
AR
21552009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2156
2157 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2158 still needed under Tiger.
2159
2160 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2161
2162 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2163 __Apple__.
2164
2165 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2166
01a8d3fa
KH
21672009-10-15 Kenichi Handa <handa@m17n.org>
2168
2169 * print.c (print_object): Escape a symbol like "2E10" too.
2170
bf6c75c9 21712009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2172
2173 Cleanups and changes for 64-bit compile under Snow Leopard.
2174 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2175
2176 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2177
c5959062 2178 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2179 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2180 cast argument.
2181 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2182 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2183
2184 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2185
2186 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2187 where appropriate.
2188
2189 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2190 where appropriate.
6e4780c5
JB
2191 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2192 Use stringWithUTF8String.
bf6c75c9
AR
2193 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2194
6e4780c5
JB
2195 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2196 Add formal protocol mention to inheritance.
bf6c75c9
AR
2197 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2198
6e4780c5
JB
2199 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2200 Fix printf format.
bf6c75c9
AR
2201 (ns_query_color): Use CGFloat where appropriate.
2202 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2203 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2204 argument.
2205
3d87f118
AR
2206 * config.in (NS_HAVE_NSINTEGER): Drop.
2207
a95c8102
AR
2208 * dbusbind.c (dbus-method-return-internal)
2209 (dbus-method-error-internal): Use long format in printf, and cast
2210 argument.
2211
2212 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2213 in printf, and cast argument.
2214
6873acca 2215 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2216 cast argument.
2217
9ec6f100
GM
22182009-10-11 Glenn Morris <rgm@gnu.org>
2219
2220 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2221
5be883cd
JD
22222009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2223
2224 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2225 menu bar with a small width so it doesn't enlarge the frame.
2226
d7a39b51
JB
22272009-10-08 Juanma Barranquero <lekktu@gmail.com>
2228
2229 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2230
0c2b6f8e
GM
22312009-10-06 Glenn Morris <rgm@gnu.org>
2232
2233 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2234 SOME_MACHINE_LISP (this enters indirectly via DOC).
2235
e02131a2
EZ
22362009-10-05 Eli Zaretskii <eliz@gnu.org>
2237
2238 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2239
b4744254
EZ
22402009-10-04 Eli Zaretskii <eliz@gnu.org>
2241
2242 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2243 Doc fix.
2244
dbf64827
JB
22452009-10-03 Martin Rudalics <rudalics@gmx.at>
2246
2247 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2248
e9a0aef8
MA
22492009-10-02 Michael Albinus <michael.albinus@gmx.de>
2250
d528b1ce 2251 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2252 used anymore outside fileio.c.
2253
2254 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2255
64eb2b56
JB
22562009-10-01 Juanma Barranquero <lekktu@gmail.com>
2257
2258 * lisp.h (Qdelete_directory_internal):
2259 Declare, instead of Qdelete_directory.
2260
2261 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2262
9d28c33e
SM
22632009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2264
2265 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2266
9d8f3bd9
MA
22672009-10-01 Michael Albinus <michael.albinus@gmx.de>
2268
9d28c33e 2269 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2270 Fdelete_directory. It is not a command anymore. It has no file
2271 name handler.
2272
9694740b
SM
22732009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2274
2275 * xdisp.c (get_next_display_element): Use an enum in last change.
2276
748e162f
KH
22772009-09-28 Kenichi Handa <handa@m17n.org>
2278
9694740b 2279 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2280 unibyte_display_via_language_environment in handling
2281 Vnobreak_char_display.
2282
17efd58d
AR
22832009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2284
2285 * nsterm.h (ns_app_name): New extern variable.
2286
2287 * nsterm.m (ns_app_name): New variable.
2288 (ns_term_init): Set and use it.
2289 (ns_term_shutdown): Use it.
2290
2291 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2292 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2293
2294 * nsfns.m (ns_set_name_iconic, ns_set_name)
2295 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2296 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2297
9694740b
SM
2298 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2299 Remove double-casting in client_data comparison.
31c2d412 2300
3208cb35
YM
23012009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2302
2303 * keyboard.c (make_lispy_event): Remember last wheel direction.
2304 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2305
b7d552d6
GM
23062009-09-26 Glenn Morris <rgm@gnu.org>
2307
2308 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2309 internal.elc. Add term/pc-win.elc.
2310 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2311 term/x-win.elc.
2312 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2313 term/w32-win.elc.
2314 (NS_SUPPORT): New.
2315 (lisp): Add NS_SUPPORT.
2316 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2317
4ff670a8
DR
23182009-09-25 David Reitter <david.reitter@gmail.com>
2319
2320 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2321 on Mac OS X 10.6+ (bug#4513).
2322
feabfb6c
JB
23232009-09-24 Juanma Barranquero <lekktu@gmail.com>
2324
2325 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2326 some parts of Emacs code (like font selection) don't grok them.
2327 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2328
de59072a
AS
23292009-09-24 Andreas Schwab <schwab@redhat.com>
2330
2331 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2332
a489517b
JB
23332009-09-24 Juanma Barranquero <lekktu@gmail.com>
2334
2335 * dired.c (Fdirectory_files): Fix typo in docstring.
2336
0592970c
AR
23372009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2338
2339 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2340 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2341 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2342 under GNUstep.
2343 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2344
2345 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2346 glyph advancement.
2347
48e8a88b
AR
23482009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2349
2350 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2351 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2352
2353 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2354 deleted (bug #4492).
2355
e14f0a78
AR
2356 * nsfont.m (Vns_reg_to_script): New lisp variable.
2357 (syms_of_nsfont): Declare it.
2358 (ns_registry_to_script): New function.
2359 (ns_get_req_script): Call it.
2360 (ns_findfonts): Don't give up on non-unicode registry.
2361
2362 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2363
5b650faa
SM
23642009-09-20 Tom Tromey <tromey@redhat.com>
2365
2366 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2367 batch mode (bug#4228).
2368
a489517b 23692009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2370
2371 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2372 carefully. (Bug #4339)
0bae4e09 2373
fcfe06f3
CY
23742009-09-18 Chong Yidong <cyd@stupidchicken.com>
2375
d798ba87 2376 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2377
31642728
AR
23782009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2379
2380 * emacs.c (inhibit_x_resources): Update doc string for NS.
2381 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2382 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2383
2384 * nsterm.h (ns_no_defaults): Remove.
2385
2386 * nsterm.m (ns_no_defaults): Remove.
2387 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2388 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2389 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2390 don't update the NSWindow itself.
2391 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2392 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2393
2394 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2395 ns_use_qd_smoothing.
2396
2397 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2398 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2399 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2400 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2401
8686ac71
JB
24022009-09-17 Juanma Barranquero <lekktu@gmail.com>
2403
2404 * emacs.c (inhibit_x_resources): New variable.
2405 (main) [HAVE_NS]: Don't process --quick command line option.
2406 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2407
2408 * lisp.h (inhibit_x_resources): Declare it extern.
2409
2410 * w32reg.c (x_get_string_resource):
2411 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2412
e227ba05
EZ
24132009-09-17 Eli Zaretskii <eliz@gnu.org>
2414
362654a6
JB
2415 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2416 Add lisp/term/internal.elc.
e227ba05 2417
742d40e8
SM
24182009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2419
2420 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2421 (bug#4461).
2422
005bd5a2
DN
24232009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2424
2425 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2426
2427 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2428 (OBJECTS_MACHINE): Remove, unused.
2429
f9af9719
SM
24302009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2431
2432 * frame.c (x_get_resource_string): Remove unused.
2433
0307c7d2
JD
24342009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2435
2436 * xterm.c (x_new_font): Call change_frame_size before calling
2437 x_set_window_size, in case frame size won't change.
2438
2439 * frame.c (x_set_font): Remove dead code.
2440
428b13d6
SM
24412009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2442
2443 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2444
5766c380
SM
24452009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2446
2447 * lread.c (Fload): Don't output a message after loading an obsolete
2448 package any more (done in Lisp now).
2449
2fd0161b
CY
24502009-09-12 Chong Yidong <cyd@stupidchicken.com>
2451
2452 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2453
bc5e75b6
SM
24542009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2455
2456 * keymap.c (Fwhere_is_internal): Use nconc2.
2457
c31c985e
AM
24582009-09-11 Alan Mackenzie <acm@muc.de>
2459
2460 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2461 batch mode.
2462
78012bd2
AS
24632009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2464
2465 * xdisp.c (display_mode_element): Detect cycles.
2466
9d889332
SM
24672009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2468
2469 * keymap.c (where_is_internal): Don't erroneously return nil right after
2470 filling the cache.
2471 (where_is_internal_1): Fix up typo.
2472
7ab5d780
GM
24732009-09-11 Glenn Morris <rgm@gnu.org>
2474
2475 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2476 share a common doc-string.
2477
5238a749
SM
24782009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2479
66d77eda
SM
2480 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2481 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2482
5238a749
SM
2483 * keymap.c (QCadvertised_binding): New constant.
2484 (syms_of_keymap): Initialize it.
2485 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2486 if applicable.
2487
19f48442
SM
24882009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2489
50d4ba39
SM
2490 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2491 (parse_menu_item): Streamline since bindings are recomputed all the
2492 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2493 more and don't support lmenu's menu-alias any more either.
2494
a88a5372
SM
2495 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2496 (where_is_internal): Strip it down to only traverse the keymaps.
2497 Move the cache handling from Fwhere_is_internal to here.
2498 (Fwhere_is_internal): Move the handling of remapping and the choice of
2499 the best binding from where_is_internal to here.
2500 Unify the cached/noncached paths, so remapping is also handled
2501 correctly when the cache is used, and so the cache can be used to
2502 speed up remap-handling when applicable.
2503 Give preference to non-remapped bindings.
2504 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2505 non-remapped bindings.
2506 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2507 command remapping.
2508
19f48442
SM
2509 * xdisp.c (display_mode_element): Move list length limit from 50 to
2510 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2511
599498c3 25122009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2513
2514 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2515
f9b7b5ac
SM
25162009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2517
a53af587
JB
2518 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2519 (Bug#4334)
2520
f9b7b5ac
SM
2521 * keymap.c (where_is_internal): Filter out shadowed remappings.
2522 Assume that where_is_internal returns unshadowed bindings to simplify
2523 the code and get rid of the gotos. Use ASIZE.
2524
04f4b72d
JD
25252009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2526
4da146f2
JD
2527 * xterm.c (x_focus_changed): If we get a focusout and pointer
2528 is invisible, make it visible.
2529
04f4b72d
JD
2530 * xterm.h: Remove condition for declaration of
2531 x_*_window_to_frame.
2532
7cef7ce3
SM
25332009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2534
2535 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2536 initial terminal as well.
2537
a54fa5b7
JD
25382009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2539
2540 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2541 x_menubar_window_to_frame.
a54fa5b7
JD
2542
2543 * xterm.c: Remove declarations also in xterm.h
2544 (XTmouse_position): Do not return valid positions
2545 for clicks in the menubar and the toolbar for Gtk+.
2546
2547 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2548 if the widget for the event has the same top level as a frame,
2549 return the frame.
2550 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2551 internal windows, bug #4122.
2552 (x_non_menubar_window_to_frame): Remove.
2553
5a021dd0
GM
25542009-09-02 Glenn Morris <rgm@gnu.org>
2555
2556 * buffer.c (default-major-mode): Move most of the doc from here...
2557 (major-mode): ... to here.
2558
548fe2f3
NR
25592009-08-30 Nick Roberts <nickrob@snap.net.nz>
2560
2561 * process.c (wait_reading_process_output): Keep the descriptor
2562 when pty is used by a non-child process, e.g., in I/O buffer of
2563 GDB this allows inferior to be restarted.
2564
e0840eef
EZ
25652009-08-29 Eli Zaretskii <eliz@gnu.org>
2566
2567 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2568 both branches into one.
2569
82e98df4
SM
25702009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2571
2572 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2573 (main): Use enable-multibyte-characters rather than
2574 default-enable-multibyte-characters. Output a warning message when
2575 running a unibyte session.
2576
890617cb
YM
25772009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2578
2579 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2580 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2581 (copy_data_segment): Also copy __program_vars section.
2582 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2583 (dump_it) [LC_DYLD_INFO]: Use it.
2584
2585 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2586
e7adeadc
EZ
25872009-08-28 Eli Zaretskii <eliz@gnu.org>
2588
2589 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2590 $(SRC)/buildobj.h.
2591 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2592 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2593 $(SRC)/buildobj.h.
2594 (clean): Add buildobj.h.
2595
3ed8bbdc
TZ
25962009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2597
2598 * print.c (print_object): Set escapeflag to 1 when printing
2599 hashtable keys and values.
2600
155a6764
SM
26012009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2602
2603 * lread.c (read_integer): Use doubles (and potentially return a float
2604 number) as we do in string-to-number.
2605 (read1): Use strtol to read integers, signal errors on strtol's
2606 overflow and use floats if strtol's output is too large for
2607 Elisp integers.
2608
877610de
EZ
26092009-08-27 Eli Zaretskii <eliz@gnu.org>
2610
2611 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2612 (make-buildobj-SH): Fix last change.
2613 (SRC): Move to before where it's first used.
2614
ef73e7be
KH
26152009-08-27 Kenichi Handa <handa@m17n.org>
2616
550c8289
KH
2617 * process.c (send_process): Use encode_coding_object instead of
2618 encode_coding_string to perform eol-conversion even if the string
2619 is unibyte.
2620
60afa08d
KH
2621 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2622 character.
2623
ef73e7be 2624 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2625 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2626
7b3a82d7
DN
26272009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2628
5654bf63
DN
2629 * callproc.c (Fcall_process): Remove always true #if.
2630
7b3a82d7
DN
2631 * lisp.h: Replace #if 0 code for checking with text pointing to
2632 the --enable-checking configure flag.
2633
2634 * emacs.c (main): Mention the --enable-profiling configure flag
2635 instead of using CFLAGS.
2636
878bde49
KR
26372009-08-26 Ken Raeburn <raeburn@raeburn.org>
2638
2639 * Makefile.in (buildobj.h): New target.
2640 (doc.o): Depend on it.
2641 (temacs${EXEEXT}): Don't generate buildobj.lst.
2642 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2643 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2644 ($(BLD)/doc.$(O)): Depend on it.
2645 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2646 provided by Eli Zaretskii.)
2647 ($(TEMACS)): Don't generate buildobj.lst.
2648 * doc.c: Include buildobj.h.
2649 (buildobj): New static variable.
2650 (Fsnarf_documentation): Use it, instead of opening and reading
2651 buildobj.lst.
2652
1574224c
MA
26532009-08-25 Michael Albinus <michael.albinus@gmx.de>
2654
2655 * dbusbind.c (Fdbus_call_method)
2656 (Fdbus_call_method_asynchronously): Use English numeric format for
2657 timeout values in doc string.
2658
d9da2f45
KH
26592009-08-25 Kenichi Handa <handa@m17n.org>
2660
ef73e7be
KH
2661 * alloc.c (mark_char_table): New function.
2662 (mark_object): Use mark_char_table for a char-table.
2663
d9da2f45
KH
2664 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2665 (CHAR_TABLE_REF): Use it.
2666
c8edcc01
KR
26672009-08-23 Ken Raeburn <raeburn@raeburn.org>
2668
2669 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2670 before invoking the newly build emacs to check for load-path
2671 shadowing.
2672
7763401b
GM
26732009-08-22 Glenn Morris <rgm@gnu.org>
2674
2675 * Makefile.in (bootstrap_exe): New variable.
2676 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2677 Use ${bootstrap_exe}.
2678
729eadda
EZ
26792009-08-22 Eli Zaretskii <eliz@gnu.org>
2680
2681 * coding.h (encode_coding_string): Don't encode unibyte strings.
2682 (Bug#4047)
2683
eb4c6ace
MA
26842009-08-22 Michael Albinus <michael.albinus@gmx.de>
2685
2686 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2687
2688 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2689 intended as hotfix only.
2690 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2691
36e34d1b
AR
26922009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2693
2694 * nsterm.m (ns_get_color): Update documentation properly for last
2695 change, and clean up loose ends in the code left by it. Fix
2696 longstanding bug with 16-bit hex parsing, and add support for
2697 yet another X11 format (rgb:r/g/b) for compatibility.
2698 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2699 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2700
f983eb8a
SM
27012009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2702
2703 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2704
3f56d3c6
MA
27052009-08-20 Michael Albinus <michael.albinus@gmx.de>
2706
2707 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2708 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2709 (xd_initialize, xd_pending_messages): Check, whether
2710 $DBUS_SESSION_BUS_ADDRESS is set.
2711
fb641d68
YM
27122009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2713
2714 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2715
2716 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2717
cf59a374
GM
27182009-08-20 Glenn Morris <rgm@gnu.org>
2719
2720 * emacs.c (system-type): Doc fix.
2721
1373f3be
SM
27222009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2723
2724 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2725 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2726
058ed861
MA
27272009-08-18 Michael Albinus <michael.albinus@gmx.de>
2728
1373f3be
SM
2729 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2730 New functions.
058ed861
MA
2731 (xd_initialize): Revert change from 2009-08-16.
2732
563a866e 27332009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2734
2735 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2736 font-group vector, return nil.
5fc05db0 2737
e42bdf01
CY
27382009-08-17 Chong Yidong <cyd@stupidchicken.com>
2739
2740 * process.c (status_notify): Don't perform redisplay.
2741 (Fdelete_process, list_processes_1, process_send_signal):
2742 Expliticly perform redisplay.
2743 (wait_reading_process_output): Always check process status, but
2744 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2745
4230ab74
KR
27462009-08-17 Ken Raeburn <raeburn@raeburn.org>
2747
1373f3be 2748 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2749 (XFLOAT_INIT): New macro for storing a float value.
2750 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2751 * fns.c (sxhash): Copy out the value of a float in order to
2752 examine its bytes.
2753 * dbusbind.c (xd_append_arg): Likewise.
2754
4230ab74
KR
2755 * emacs.c (main): Don't call syms_of_data twice.
2756
a0645cdd
MA
27572009-08-16 Michael Albinus <michael.albinus@gmx.de>
2758
2759 * dbusbind.c (xd_initialize): Add connection file descriptor to
2760 input_wait_mask, in order to let select() detect, whether a new
2761 message has been arrived.
ca4f31ea 2762 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2763
485db0ba
MA
27642009-08-15 Michael Albinus <michael.albinus@gmx.de>
2765
1373f3be
SM
2766 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2767 New functions.
485db0ba
MA
2768
2769 * lisp.h (xd_pending_messages): Declare.
2770
2771 * keyboard.c (readable_events): Call xd_pending_messages.
2772
b5b98ff4
CY
27732009-08-15 Chong Yidong <cyd@stupidchicken.com>
2774
1373f3be 2775 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2776
f8354c6e
CY
2777 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2778
b5b98ff4
CY
2779 * buffer.c (set_buffer_internal_1)
2780 (swap_out_buffer_local_variables): Check for unbound local
2781 variables (Bug#4138).
2782
8b9fc636
EZ
27832009-08-14 Eli Zaretskii <eliz@gnu.org>
2784
2785 * process.c (create_pty): Fix last change.
2786
ce959360
CY
27872009-08-13 Chong Yidong <cyd@stupidchicken.com>
2788
2789 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2790 (xbm_load_image): Caller changed.
64b807c9 2791 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2792
c7baf7e9
NR
27932009-08-13 Nick Roberts <nickrob@snap.net.nz>
2794
2795 * process.c (create_pty): New function.
2796 (Fstart_process): Use it to allow Emacs to just associate a pty
2797 with the buffer. See associated change in gdb-mi.el.
2798 (list_processes_1): Deal with no program name.
2799 (start_process_unwind): Use pid == -2 to mean no process.
2800
1ac9108a
SM
28012009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2802
2803 * cmds.c (nonundocount): New global variable.
2804 (keys_of_cmds): Initialize it.
2805 (Fself_insert_command): Use it to combine upto 20 sequential chars
2806 into a single undo entry, just like the Qself_insert_command code in
2807 keyboard.c does.
2808 Call frame_make_pointer_invisible, also like the Qself_insert_command
2809 code in keyboard.c does.
2810 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2811 than its own local replacement for it.
2812
e267324c
KR
28132009-08-10 Ken Raeburn <raeburn@raeburn.org>
2814
1ac9108a 2815 * fns.c (concat): Don't re-set string length to its current value.
77437343 2816
1ac9108a
SM
2817 * coding.h (decode_coding_string, encode_coding_string):
2818 Use SBYTES macro.
f0bed503 2819
1ac9108a 2820 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2821 (doprnt): Merge with doprnt1, discarding lispstrings code.
2822 * lisp.h (doprnt_lisp): Don't declare.
2823
416e006d
JL
28242009-08-07 Juri Linkov <juri@jurta.org>
2825
2826 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2827
6f7d5780
DN
28282009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2829
2830 * print.c (syms_of_print): Undo previous change.
2831
f19a0f5b
TZ
28322009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2833
2834 * lread.c (read1, syms_of_lread): Read hashtables back from the
2835 readable format.
2836
2837 * print.c (print_preprocess, print_object): Print hashtables fully
2838 and readably.
2839 (syms_of_print): Provide 'hashtable-print-readable.
2840
b9173dc2
AR
28412009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2842
2843 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2844 no family set.
2845 (nsfont_open): Handle case when entity has no family.
2846
1586503c
AR
28472009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2848
2849 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2850 element, not a list, for match case.
2851
087048cd
KH
28522009-07-28 Kenichi Handa <handa@m17n.org>
2853
2854 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2855 rigidly.
2856
2857 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2858 font_parse_xlfd. Check font properties more rigidly.
2859
780c2506
DN
28602009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2861
31fd7c5c
JB
2862 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2863 bsd-common.h.
780c2506 2864
a8c0cc18
KH
28652009-07-27 Kenichi Handa <handa@m17n.org>
2866
2867 * xfaces.c (face_with_height): Call font_clear_prop.
2868
4fbe2306
CY
28692009-07-26 Chong Yidong <cyd@stupidchicken.com>
2870
111d9af3
CY
2871 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2872
2873 * xterm.c (x_term_init): Use Qx.
2874
4fbe2306
CY
2875 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2876
1ac9108a 2877 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2878 (ns_get_color): Revert 2009-07-16 change.
2879
beb0b7f9
EZ
28802009-07-25 Eli Zaretskii <eliz@gnu.org>
2881
2882 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2883 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2884
2baf5e76
KR
28852009-07-25 Ken Raeburn <raeburn@raeburn.org>
2886
1ac9108a
SM
2887 * coding.h (decode_coding_string, encode_coding_string):
2888 Use SCHARS macro.
8890e5f5 2889
2baf5e76 2890 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2891 (load_depth): Delete.
2baf5e76
KR
2892 (Qload_in_progress): New variable.
2893 (load_unwind): Don't reference load_depth or load_in_progress.
2894 (Fload): Likewise; specbind Qload_in_progress instead.
2895 (init_lread): Don't initialize load_depth.
2896 (syms_of_lread): Initialize and protect Qload_in_progress.
2897
1395c6f5
AR
28982009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2899
2900 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2901
4e2f36cf
AR
29022009-07-23 Yavor Doganov <yavor@gnu.org>
2903
2904 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2905
5dd9a6f7
AR
29062009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2907
2908 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2909 Bugs 3792, 3720, 2402.
2910 (ns_lookup_indexed_color): Check for bad index.
2911 (ns_index_color): Init unused slot to 0.
2912 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2913 Bug 3714, possibly 3082.
5dd9a6f7 2914
c902b920
JR
29152009-07-22 Jason Rumney <jasonr@gnu.org>
2916
1ac9108a
SM
2917 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2918 Position IME window at cursor (Bug#2570).
c902b920
JR
2919 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2920 (globals_of_w32fns): Dynamically load functions required above.
2921
2922 * w32term.c (w32_draw_window_cursor): Send message to reposition
2923 any IME window.
2924
090101cf
CY
29252009-07-21 Chong Yidong <cyd@stupidchicken.com>
2926
2927 * fileio.c: Revert 2009-07-16 changes.
2928 (Vauto_save_include_big_deletions): New variable.
2929 (Fdo_auto_save): Disable auto-save only if
2930 auto-save-include-big-deletions is nil.
2931
e6583e3d
CY
29322009-07-21 Chong Yidong <cyd@stupidchicken.com>
2933
2934 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2935 the overflowed pixels into account (Bug#3879).
2936
ece435a5
KR
29372009-07-21 Ken Raeburn <raeburn@raeburn.org>
2938
2939 * lread.c (load_depth): New variable.
2940 (Fload, load_unwind, init_lread): Set it to the load recursion
2941 depth; set load_in_progress as a simple boolean based on the
2942 current load_depth. (Bug#3892)
2943
40b2d973
AR
29442009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2945
2946 * nsfont.m (ns_has_attribute): Remove.
2947 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2948
10be7e0d
JL
29492009-07-18 Juri Linkov <juri@jurta.org>
2950
2951 * process.c (Fset_process_query_on_exit_flag): Mention killing
2952 a buffer in docstring.
2953
fa055055
KH
29542009-07-17 Kenichi Handa <handa@m17n.org>
2955
2956 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2957
042f7b69
YM
29582009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2959
2960 * nsfns.m (Fns_set_alpha): Remove function.
2961 (syms_of_nsfns): Don't defsubr it.
2962
2963 * nsterm.m (ns_get_color): Remove incompatible color formats.
2964 (ns_color_to_lisp): Generate #rrggbb color format string.
2965
4be941e3
RS
29662009-07-16 Richard Stallman <rms@gnu.org>
2967
2968 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2969 (Fset_buffer_auto_saved): Handle save_length = -2.
2970
4e6b227d
CY
29712009-07-16 Chong Yidong <cyd@stupidchicken.com>
2972
2973 * xterm.c (Qx_gtk_map_stock): New var.
2974
2975 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2976 of calling intern each time.
2977
a1856973
YM
29782009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2979
2980 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2981 does tiling.
2982
2983 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2984
497e54d8
KH
29852009-07-14 Kenichi Handa <handa@m17n.org>
2986
72d36834
KH
2987 * font.c (font_vconcat_entity_vectors): New function.
2988 (struct font_sort_data): New member font_driver_preference.
2989 (font_compare): Check font_driver_preference.
2990 (font_sort_entities): The format of the first argument changed.
2991 (font_delete_unmatched): Likewise.
2992 (font_list_entities): The return type changed.
2993 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2994 (font_find_for_lface): Adjuste for the above changes.
2995 Don't suppress the checking of C even if the repertory supports it.
2996 (Flist_fonts): Adjust for the above changes.
72d36834 2997
1ac9108a
SM
2998 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2999 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3000 Reject a font who has adstyle property that is different from a
3001 langname derived from registry property.
1ac9108a 3002 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3003
b6046155
EZ
30042009-07-13 Eli Zaretskii <eliz@gnu.org>
3005
3006 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3007 local copy of dirfilename.
3008
fb6b6049
KH
30092009-07-13 Kenichi Handa <handa@m17n.org>
3010
e2402a5e
KH
3011 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3012 against max_char.
3013
fb6b6049
KH
3014 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3015 calling XSYMBOL (sym).
3016
65156807
EZ
30172009-07-11 Eli Zaretskii <eliz@gnu.org>
3018
1ac9108a
SM
3019 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3020 New function.
3021 (directory_files_internal) [WINDOWSNT]:
3022 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3023 the filesystem of the directory is fast or slow.
3024
3025 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3026 file name.
3027 (is_slow_fs): New function.
3028 (stat): Use it to determine whether to issue more system calls to
3029 get accurate file attributes, when w32-get-true-file-attributes is
3030 `local'.
3031
e0ab5fcf
JD
30322009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3033
3034 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3035 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3036 parameter font-parameter as default to the font dialog.
3037
784ceded
KH
30382009-07-10 Kenichi Handa <handa@m17n.org>
3039
3040 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3041
fb8edc0b
EZ
30422009-07-09 Eli Zaretskii <eliz@gnu.org>
3043
1ac9108a 3044 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3045
fb8edc0b
EZ
3046 * w32.c (stat): Treat UNC file names as residing on remote
3047 drives. (Bug#3542)
3048
635c75b1
KH
30492009-07-09 Kenichi Handa <handa@m17n.org>
3050
3051 * fontset.c (fontset_find_font): Fix previous change.
3052
c1d5ce94
MA
30532009-07-08 Michael Albinus <michael.albinus@gmx.de>
3054
3055 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3056 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3057 error flag.
3058
edb61b39
KH
30592009-07-08 Kenichi Handa <handa@m17n.org>
3060
374bf7e4
KH
3061 * fontset.c (fontset_find_font): Fix the logic of handling
3062 charset_matched.
3063 (font_for_char): Delete unused var.
3064 (generate_ascii_font_name): Delete it.
3065
edb61b39
KH
3066 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3067
3068 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3069 (encode_coding_sjis): Fix the code range check.
3070
0f3f018c
CY
30712009-07-07 Chong Yidong <cyd@stupidchicken.com>
3072
3073 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3074 (Fexpand_file_name): Copy string data properly (Bug#3772).
3075
fcaf6f3a
JD
30762009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3077
3078 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3079 first MapNotify.
3080
6809ca75
KH
30812009-07-07 Kenichi Handa <handa@m17n.org>
3082
3083 * character.h (unibyte_has_multibyte_table): Delete extern.
3084 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3085
3086 * charset.c (Fset_charset_priority): Update charset_unibyte.
3087 (syms_of_charset): Initialize charset_unibyte.
3088
3089 * character.c (unibyte_has_multibyte_table): Delete it.
3090 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3091 charset_unibyte.
3092 (multibyte_char_to_unibyte_safe): Likewise.
3093 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3094
1ac9108a 3095 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3096 (x_produce_glyphs): Likewise.
3097
3098 * .gdbinit (xcharset): Fix the treating $arg0.
3099
ad9e2d54
EZ
31002009-07-04 Eli Zaretskii <eliz@gnu.org>
3101
3102 Emulation of `getloadavg' on MS-Windows.
3103 * w32.c: Include float.h
3104 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3105 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3106 (get_native_system_info, get_system_times): New functions.
3107 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3108 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3109 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3110 g_b_init_get_system_times, and num_of_processors.
3111
0a3472c7
JR
31122009-07-03 Jason Rumney <jasonr@gnu.org>
3113
3114 * w32term.c (w32_initialize): Use standard types.
3115
80904120
EZ
31162009-07-03 Eli Zaretskii <eliz@gnu.org>
3117
3118 * dired.c (Ffile_attributes): Decode user and group names by the
3119 locale's encoding. (Bug#3443)
3120
6978862d
DN
31212009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3122
f8d23104
DN
3123 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3124 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3125
3126 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3127
3128 * term.c (init_tty): Remove spurious #ifdef.
3129
6978862d
DN
3130 * m/mips.h: Mention this file is also used for netbsd.
3131 * m/pmax.h: Remove file.
3132
e044e4fc
JD
31332009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3134
3135 * xterm.h (struct x_display_info): Add invisible_cursor.
3136 (struct x_output): Add current_cursor.
3137
3138 * xterm.c (XTtoggle_invisible_pointer): New function.
3139 (x_define_frame_cursor): Don't define cursor if invisible or the
3140 same as before. Set current_cursor.
3141 (x_create_terminal): Set toggle_invisible_pointer_hook.
3142
3143 * xfns.c (make_invisible_cursor): New function.
3144 (x_set_mouse_color): Call make_invisible_cursor.
3145 Set current_cursor.
3146 (x_window): Set current_cursor.
3147
3148 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3149
3150 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3151 inserting a character.
3152 (read_avail_input): Call frame_make_pointer_visible.
3153
3154 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3155 (frame_make_pointer_invisible, frame_make_pointer_visible):
3156 New functions.
e044e4fc
JD
3157 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3158
3159 * frame.h: Declare frame_make_pointer_invisible and
3160 frame_make_pointer_visible.
3161 (struct frame): Add pointer_invisible.
3162
574c8efa
JD
31632009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3164
7b507248
JD
3165 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3166 frame isn't visible.
3167 (xg_frame_resized): If width/height is -1, get size of window
3168 from X server.
3169
3170 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3171 for MapNotify.
3172
835bdaa7 3173 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3174 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3175 (flush_and_sync): Reintroduce.
574c8efa 3176
3f1c6666 31772009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3178
31fd7c5c 3179 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3180
3181 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3182 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3183
3184 * frame.h: Declare Qsticky.
3185
cad9ef74
JD
3186 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3187
3188 * nsfns.m (ns_frame_parm_handlers): Ditto.
3189
3190 * frame.c: Declare Qsticky.
3191 (frame_parms): Add sticky.
3192
3193 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3194
3195 * xterm.h: Declare x_set_sticky.
3196
3197 * xterm.c (x_set_sticky): New function.
3198
69b16610
JD
3199 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3200 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3201 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3202
3203 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3204
3205 * frame.c: Qmaximized is new.
3206 (x_set_frame_parameters): Do not handle fullscreen specially.
3207 Only set width and height if explicitly set.
3208 (x_set_fullscreen): Handle Qmaximized.
3209 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3210 (syms_of_frame): Initialize Qmaximized.
3211
1ac9108a
SM
3212 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3213 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3214
3215 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3216 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3217 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3218 set gravity to NorthWestGravity when USE_GTK.
3219 (set_wm_state): New function.
31fd7c5c 3220 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3221 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3222 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3223 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3224 to x_real_positions and x_fullscreen_adjust.
3225
3226 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3227 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3228 flush_and_sync.
3229 (xg_height_changed): New function.
3230 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3231 and gtk_window_set_policy. Set frame gravity after parsing the
3232 geometry string.
3f1c6666
JD
3233 (xg_update_frame_menubar, free_frame_menubar)
3234 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3235 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3236 Remove calls to xg_frame_set_char_size.
3237
fd503d99
KH
32382009-07-01 Kenichi Handa <handa@m17n.org>
3239
3240 * keyboard.c (decode_keyboard_code): New function.
3241 (tty_read_avail_input): Decode the input bytes if necessary.
3242
1ac9108a
SM
3243 * coding.c (setup_coding_system):
3244 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3245 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3246 use Qno_conversion.
3247
24ed93fb
YM
32482009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3249
3250 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3251
99061dfc
CY
32522009-06-30 Chong Yidong <cyd@stupidchicken.com>
3253
1ac9108a 3254 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3255
ff90fbde
JR
32562009-06-30 Jason Rumney <jasonr@gnu.org>
3257
3258 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3259 is already loaded.
3260 Set user model ID if supported (bug#1849).
3261
5f445726
JM
32622009-06-29 Jim Meyering <meyering@redhat.com>
3263
3264 Remove useless if-before-xfree test.
3265 * nsfont.m (nsfont_close): Remove useless test.
3266 * term.c (delete_tty): Likewise.
3267 * w32.c (system_process_attributes): Likewise.
3268 * w32font.c (w32font_close): Likewise.
3269 * xfaces.c (x_free_gc): Likewise.
3270 * xselect.c (buffer): Likewise.
3271
b9607587
AS
32722009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3273
3274 * process.c (send_process): Keep decoded string in a local
3275 variable and protect it from GC. (Bug#3521)
3276
89ba96f4
EZ
32772009-06-28 Eli Zaretskii <eliz@gnu.org>
3278
3279 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3280 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3281
098a1589
CY
32822009-06-28 Chong Yidong <cyd@stupidchicken.com>
3283
485422be
CY
3284 * xdisp.c (start_display, handle_face_prop)
3285 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3286 (redisplay_window, try_window_id, produce_image_glyph):
3287 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3288
098a1589
CY
3289 * xterm.c (x_update_window_begin, x_new_focus_frame)
3290 (x_scroll_bar_handle_click, handle_one_xevent)
3291 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3292 (x_make_frame_visible, x_make_frame_invisible)
3293 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3294 code chunks that are now obsolete.
3295
78c38319
MA
32962009-06-28 Michael Albinus <michael.albinus@gmx.de>
3297
3298 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3299 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3300 for hours, when optimzation is enabled.
3301 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3302 (xd_read_message): Make them static.
3303
4189ed40
CY
33042009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3305
3306 * term.c (turn_on_face): Allow simultaneously bold and dim
3307 terminal faces (Bug#3530).
3308
cd9b5e16
CY
33092009-06-27 Chong Yidong <cyd@stupidchicken.com>
3310
4e23bedb
CY
3311 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3312
cd9b5e16
CY
3313 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3314 truncation glyphs (Bug#3686).
3315
07cc3c35
GM
33162009-06-27 Glenn Morris <rgm@gnu.org>
3317
3318 * m/pmax.h: Restore file, with only netbsd portions.
3319
31fd7c5c 33202009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3321
cd9b5e16 3322 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3323
42d4a64f
KH
33242009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3325
3326 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3327 the arg FORCE_SYMBOL.
3328
930fe55b 33292009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3330
3331 * fontset.c (fontset_find_font): When a usable rfont_def is found
3332 in a fallback font-group, make it the first element of the group.
3333
57ebc3fd
CY
33342009-06-24 Chong Yidong <cyd@stupidchicken.com>
3335
3336 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3337
f084f942
KH
33382009-06-24 Kenichi Handa <handa@m17n.org>
3339
3340 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3341 set for C.
3342 (fontset_font): Record the availability of a font for C both in
3343 the realized fontsets of the current one and the default one.
3344
2f686c87
DN
33452009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3346
3347 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3348 conditional, it is always defined on AIX.
3349
666e158e
MB
33502009-06-23 Miles Bader <miles@gnu.org>
3351
3352 * window.c (Vrecenter_redisplay): New variable.
3353 (syms_of_window): Initialize it.
3354 (Qtty): New extern declaration.
3355 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3356
c6da7cd2
JM
33572009-06-23 Jim Meyering <meyering@redhat.com>
3358
1ac9108a
SM
3359 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3360 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3361 pointer dereferences are guaranteed to be valid.
c6da7cd2 3362
678dca3d
KH
33632009-06-23 Kenichi Handa <handa@m17n.org>
3364
74d75424
KH
3365 * emacs.c (main): Call init_font ().
3366
3367 * font.h (Vfont_log): Extern it.
3368 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3369
3370 * font.c (font_sort_entities, font_list_entities)
3371 (font_matching_entity, font_open_entity)
3372 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3373 (Vfont_log): Delete static.
3374 (font_log_env_checked): Delete this variable.
3375 (font_add_log): Don't check font_log_env_checked.
3376 (font_deferred_log): Check Vfont_log.
3377 (init_font): New function.
3378
678dca3d
KH
3379 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3380
3381 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3382
3383 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3384
3385 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3386
3387 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3388 (face_for_char): Don't call font_deferred_log here.
3389 (font_for_char): Likewise.
3390
8a668709
CY
33912009-06-22 Chong Yidong <cyd@stupidchicken.com>
3392
9a01ee33
CY
3393 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3394 rather than its background_width for drawing the overline and
3395 underline (Bug#489).
3396
3397 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3398 rather than its background_width for drawing the overline and
3399 underline (Bug#489).
ec7c9926
CY
3400 (xg_default_icon_file): New variable.
3401 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3402 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3403
8a668709
CY
3404 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3405 (load_overlay_strings): Remove externs.
3406 (fast_find_position): Function deleted.
3407 (mouse_face_from_buffer_pos): New function, based on
3408 fast_find_position. Correctly handle before-strings,
3409 display-strings, and after-strings (Bug#1220).
3410 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3411
4d4c02d8
CY
34122009-06-21 Chong Yidong <cyd@stupidchicken.com>
3413
1ac9108a 3414 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3415 (move_it_in_display_line_to, move_it_in_display_line_to)
3416 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3417
70243478
CY
34182009-06-21 Chong Yidong <cyd@stupidchicken.com>
3419
3420 * Branch for 23.1.
3421
13087e59
JR
34222009-06-21 Jason Rumney <jasonr@gnu.org>
3423
3424 * w32term.c (keyboard_codepage): New static variable.
3425 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3426 (w32_read_socket) [WM_CHAR]: Use it to decode character
3427 input (bug#3237).
3428 (w32_initialize): Initialize it.
3429 (codepage_for_locale): New function.
3430
4735b74e
KR
34312009-06-20 Ken Raeburn <raeburn@raeburn.org>
3432
3433 * process.c (status_message): Pass Faset index argument as a lisp
3434 object, so as to work with USE_LISP_UNION_TYPE.
3435
0e727afa
YM
34362009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3437
3438 * coding.c (Ffind_coding_systems_region_internal):
3439 Cache checked characters.
3440
cf299835
KH
34412009-06-18 Kenichi Handa <handa@m17n.org>
3442
1ac9108a 3443 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3444
90f20d94
AS
34452009-06-18 Andreas Schwab <aschwab@redhat.com>
3446
3447 * xdisp.c (redisplay_internal): Check that the frame is still
3448 live after redisplay of its windows.
3449 (redisplay_windows): Check that the window is still live.
3450
7f1faf1c
KH
34512009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3452
3453 * coding.c (detect_coding_utf_16): Fix previous change.
3454
cc13543e
KH
34552009-06-16 Kenichi Handa <handa@m17n.org>
3456
3457 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3458 UTF-16 by checking the dispersion of Eth and Oth bytes.
3459
977b85f4
AS
34602009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3461
3462 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3463
66bd43d1
KH
34642009-06-15 Kenichi Handa <handa@m17n.org>
3465
3466 * process.c (status_message): Fix previous change. Be sure to
3467 decode a localized string.
3468
cb5ca9c5
YM
34692009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3470
3471 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3472 add comment explaining why.
3473
ec7709ba 34742009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3475
ec7709ba 3476 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3477
4b7f335c
AR
34782009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3479
3480 * nsfont.m (ns_attribute_value): Remove.
3481 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3482 (ns_has_attribute): Shrink the normal range.
3483 (ns_findfonts): Don't worry about requested spec in determining
3484 need for synthItal.
e41820ee 3485 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3486
73b26103
SZ
34872009-06-14 Seiji Zenitani <zenitani@mac.com>
3488
3489 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3490
5753e4da
KH
34912009-06-11 Kenichi Handa <handa@m17n.org>
3492
3493 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3494 overhang for the static composition case.
3495
3561b671
KH
34962009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3497
5753e4da
KH
3498 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3499 overhang for the automatic composition case.
3500
3561b671
KH
3501 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3502 composition case.
3503
852bbd41
CY
35042009-06-10 Chong Yidong <cyd@stupidchicken.com>
3505
3506 * xdisp.c (get_next_display_element): When handling wrap-prefix
3507 and line-prefix, treat \n as a control character (bug#3502).
3508
9903d1e6
KH
35092009-06-10 Kenichi Handa <handa@m17n.org>
3510
3511 * font.c (font_parse_family_registry): Fix for one-char foundry.
3512 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3513
0bcbaaaa
CY
35142009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3515
3516 * process.c (status_message): Fix handling of multibyte signal
3517 string (Bug#3499).
3518
40aa3f13
JM
35192009-06-09 Jim Meyering <meyering@redhat.com>
3520
1f80c7e2
CY
3521 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3522 color name is missing.
40aa3f13 3523
72d51285
KH
35242009-06-09 Kenichi Handa <handa@m17n.org>
3525
3526 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3527 FROM-CODE and TO-CODE are codepoints of CHARSET.
3528
c1d04d84
AR
35292009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3530
3531 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3532
35332009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3534
3535 Changes to support :script/:lang/:otf in NS font driver.
3536 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3537 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3538 indicate not part of font driver interface, and change callers.
3539 (ns_get_family): Remove pointless null check.
3540 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3541 ns_spec_to_descriptor, ns_descriptor_to_entity.
3542 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3543 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3544 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3545 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3546 (ns_get_req_script, ns_accumulate_script_ranges)
3547 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3548 New functions.
3549 (nsfont_list, nsfont_match): Use ns_findfonts.
3550 (nsfont_open): Use font descriptor instead of traits.
3551 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3552 (dump_glyphstring): Rename to ns_dump_glyphstring.
3553
c7eb9816
AR
3554 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3555
c1d04d84
AR
3556 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3557
3558 * fontset.c (fontset_from_font): Remove NS-specific code.
3559
ec7709ba 35602009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3561
3562 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3563 nonactive windows.
3564
31fd7c5c 35652009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3566
1ac9108a 3567 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3568
68852c13 35692009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3570
3571 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3572
6756cd1d
CY
35732009-06-07 Chong Yidong <cyd@stupidchicken.com>
3574
3575 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3576 account for the overflowing of newlines into the last glyph on the
3577 display line (Bug#3482).
3578
28bf482a
DR
35792009-06-05 David Reitter <david.reitter@gmail.com>
3580
ec7709ba
JB
3581 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3582 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3583 Fns_selection_exists_p, Fns_selection_owner_p.
3584
fdb55376
JR
35852009-06-03 Jason Rumney <jasonr@gnu.org>
3586
3587 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3588 available. (Bug#3379)
3589
05129fbe
KH
35902009-05-29 Kenichi Handa <handa@m17n.org>
3591
1ac9108a
SM
3592 * coding.c (get_translation_table):
3593 Check Venable_character_translation.
05129fbe 3594
ec7709ba 35952009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3596
ec7709ba
JB
3597 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3598 (x_make_frame_visible): Move frame to front rather than calling
15891144 3599 ns_raise_frame().
ec7709ba 3600 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3601 isn't key window.
ec7709ba 3602 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3603 drawRect may be called by NSView even if the frame is hidden.
3604
ec7709ba
JB
3605 * nsfns.m (Fx_create_frame): Follow other ports in
3606 determining visibility; default to t. Ensure async_visible is set.
15891144 3607
21f73755
EZ
36082009-05-23 Eli Zaretskii <eliz@gnu.org>
3609
3610 * dired.c (Ffile_attributes): Doc fix.
3611
34001e41
CY
36122009-05-22 Chong Yidong <cyd@stupidchicken.com>
3613
3614 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3615
46306a17
SM
36162009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3617
3618 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3619 and xfont_scratch_props.
3620 (syms_of_xfont): Do it here instead.
3621 (xfont_find_ccl_program): Delete, unused.
3622 (xfont_open): Delete unused var `i'.
3623
ef6e0694
KH
36242009-05-21 Kenichi Handa <handa@m17n.org>
3625
3626 * fontset.c (Qlatin): Don't make it static.
3627
46306a17
SM
3628 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3629 New functions.
ef6e0694
KH
3630 (xfont_scripts_cache, xfont_scratch_props): New variables.
3631 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3632 (xfont_list_pattern): Argument changed. Callers changed.
3633 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3634 (xfont_list): Don't reject a font spec with :script property.
3635 (xfont_has_char): Fix setting of encoding.
3636 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3637 xfont_scratch_props.
3638
36392009-05-19 Kenichi Handa <handa@m17n.org>
3640
46306a17 3641 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3642 Callers changed.
3643
36442009-05-18 Kenichi Handa <handa@m17n.org>
3645
3646 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3647
ac71ced7
SM
36482009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3649
3650 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3651 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3652
1c6d1051
YM
36532009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3654
3655 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3656 (x_delete_terminal): Dissociate resource database from display and
3657 then call XrmDestroyDatabase before closing display.
3658
9b9b779c
AR
36592009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3660
3661 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3662 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3663 whether selected frame is viable before raising it (based on patch
3664 by David Reitter), and improve commentary.
3665 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3666
cccd42d5
KH
36672009-05-15 Kenichi Handa <handa@m17n.org>
3668
3669 * font.c (Ffont_spec): Check arguments.
3670
337fbd17
CY
36712009-05-14 Chong Yidong <cyd@stupidchicken.com>
3672
3673 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3674 weight when testing attributes (Bug#3282).
3675
47a6002f
JD
36762009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3677
3678 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3679 what we expect to get in the next ConfigureNotify event.
3680
9cb363db
YM
3681 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3682 before Xft one (Bug#1696).
3683
b9126609
CY
36842009-05-07 David Reitter <david.reitter@gmail.com>
3685
3686 * nsfns.m (Fx_display_planes): Compute bitplanes using
3687 NSBitsPerPixelFromDepth (Bug#3207).
3688
27a69fd9
CY
36892009-05-10 Chong Yidong <cyd@stupidchicken.com>
3690
3691 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3692
00f37552
TTN
36932009-05-10 Ulrich Mueller <ulm@gentoo.org>
3694
3695 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3696
2d82a920
DR
36972009-05-07 David Reitter <david.reitter@gmail.com>
3698
ec7709ba
JB
3699 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3700 Respect mouse face background.
2d82a920 3701
46b0d52d
DR
37022009-05-07 David Reitter <david.reitter@gmail.com>
3703
ec7709ba
JB
3704 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3705 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3706 in ns_update_begin and ns_update_end.
3707
ce1b23bb
SM
37082009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3709
5996e1b7
SM
3710 * nsfns.m (ns_get_screen): Rewrite.
3711 Don't presume selected-frame is of type `ns'.
3712
ba98e3a0
SM
3713 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3714 all drivers.
3715
ce1b23bb
SM
3716 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3717
bcda200f
YM
37182009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3719
3720 * keyboard.h (add_user_signal): Fix typo in extern.
3721
3722 * lisp.h (add_user_signal): Remove extern.
3723
3724 * unexelf.c (unexec): Consider a section to precede the .bss section
3725 if its addresses overlap that of .bss.
3726 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3727 instead of dumping process.
3728
864660a2
SM
37292009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3730
3731 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3732
50da4e56
SM
37332009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3734
3735 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3736
51520a1a
DN
37372009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3738
3739 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3740 any statements.
3741
409ea3a1
AS
37422009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3743
59c4c60f
AS
3744 * process.c (read_process_output): Make sure the current buffer is
3745 always restored.
3746
409ea3a1
AS
3747 * coding.c (record_conversion_result): Don't modify
3748 Vlast_code_conversion_error for successful result.
3749 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3750
56f00ed2
KH
37512009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3752
3753 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3754 (load_charset_map): Remove unnecessary code.
56f00ed2 3755
4491c9d2
DR
37562009-04-30 David Reitter <david.reitter@gmail.com>
3757
35f5b128 3758 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3759 through f24.
3760
6970f632
CY
37612009-04-30 Chong Yidong <cyd@stupidchicken.com>
3762
3763 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3764
3765 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3766 face_at_buffer_position.
3767 (face_before_or_after_it_pos, get_next_display_element)
3768 (note_mouse_highlight): Update face_at_buffer_position call.
3769
3770 * term.c (term_mouse_highlight):
3771 * msdos.c (IT_note_mouse_highlight):
3772 * fontset.c (Finternal_char_font):
35f5b128 3773 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3774
3775 * dispextern.h (face_at_buffer_position): Update prototype.
3776
0c616f63
KH
37772009-04-30 Kenichi Handa <handa@m17n.org>
3778
35f5b128 3779 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3780
ad3aaf33
AS
37812009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3782
3783 * callproc.c (Fcall_process): Fix GC protection. Make sure
3784 current buffer is always restored.
3785
c3c963a0
YM
37862009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3787
3788 * atimer.c (init_atimer): Also clear stopped_atimers.
3789
3790 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3791
7e3386cb
YM
3792 * process.c (create_process): Clean up merger residues of
3793 2008-07-17 change.
3794
91f68422
CY
37952009-04-29 Ulrich Mueller <ulm@gentoo.org>
3796
3797 * lread.c (Vread_circle): New variable.
3798 (read1): Disable recursive read if Vread_circle is nil.
3799
24b34550
KH
38002009-04-29 Kenichi Handa <handa@m17n.org>
3801
3802 * fontset.h (set_default_ascii_font): Delete extern.
3803
3804 * fontset.c (set_default_ascii_font): Delete this unused function.
3805
3806 * frame.c (x_set_font): When ARG is a font-object, check if the
3807 font-object matches with the ASCII font-spec of the frame's
9c358bda 3808 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3809
77bf07e1
AS
38102009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3811
3812 * fns.c (Flocale_info): Protect vector from GC during decoding.
3813
3814 * process.c (Fstart_process): Protect argv strings from GC during
3815 encoding.
3816
2c55aacf
AS
38172009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3818
3819 * sysdep.c: Include <ctype.h>.
3820
b892d3c9
DR
38212009-04-27 David Reitter <david.reitter@gmail.com>
3822
35f5b128 3823 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3824 Remove commented-out code.
3825
9d0644c4
JB
38262009-04-26 Johan Bockgård <bojohan@gnu.org>
3827
3828 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3829
b7053016
JR
38302009-04-25 Jason Rumney <jasonr@gnu.org>
3831
3832 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3833
4e8231f3
YM
38342009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3835
3836 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3837 Swap bytes in short integer if fringe bitmap width > 8.
3838
493dcf2c
KH
38392009-04-23 Kenichi Handa <handa@m17n.org>
3840
3841 * xfaces.c (Fx_list_fonts): If a font size is specified in
3842 PATTERN, set it in returned scalable fonts.
3843
401e9e57
CY
38442009-04-22 Chong Yidong <cyd@stupidchicken.com>
3845
708e05dc
CY
3846 * keyboard.c (Fset_input_meta_mode): Doc fix.
3847
3848 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3849
1ac9108a 3850 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3851
3852 * coding.c (Fterminal_coding_system): Doc fix.
3853
3854 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3855 (Fx_display_pixel_height, Fx_display_planes)
3856 (Fx_display_color_cells, Fx_server_max_request_size)
3857 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3858 (Fx_display_mm_height, Fx_display_mm_width)
3859 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3860 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3861 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3862 (check_x_display_info): Handle terminal objects instead of
3863 terminal ids.
3864
401e9e57
CY
3865 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3866 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3867 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3868 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3869
df80c7f0
KH
38702009-04-21 Kenichi Handa <handa@m17n.org>
3871
5a8f12af 3872 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3873 (font_score): Check AVGWIDTH too.
908567ef 3874
df80c7f0
KH
3875 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3876 worst case.
1ac9108a
SM
3877 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3878 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3879
705af33f
JR
38802009-04-19 Jason Rumney <jasonr@gnu.org>
3881
3882 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3883 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3884
3885 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3886 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3887 get_phys_cursor_geometry.
3888
b71ac3dd 3889 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3890 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3891 using get_phys_cursor_geometry.
3892
3893 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3894 correctly calculated.
3895
dc2933eb
JD
38962009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3897
1ac9108a
SM
3898 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3899 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3900 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3901 is deprecated.
3902
973e7849
AS
39032009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3904
3905 * font.c (font_put_frame_data): Use xfree instead of free.
3906
314d66f4
JB
39072009-04-17 Juanma Barranquero <lekktu@gmail.com>
3908
3909 * w32font.c (Qja, Qko): Remove declarations.
3910 (syms_of_w32font): Don't DEFSYM them.
3911
cf702558
CY
39122009-04-17 Chong Yidong <cyd@stupidchicken.com>
3913
3914 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3915
3916 * font.h (Qja, Qko): Extern them.
3917
3918 * ftfont.c (Qja, Qko): Remove declarations.
3919
3920 * xfont.c (Qja, Qko): Remove declarations.
3921
b50504f5
KH
39222009-04-17 Kenichi Handa <handa@m17n.org>
3923
bde25748
KH
3924 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3925 string from a vector to handle Latin-1 characters correctly.
3926
b50504f5
KH
3927 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3928 entity even if the cache hits.
3929
f4646fff
AS
39302009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3931
3932 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3933 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3934
e7deaab0
AS
3935 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3936 * lisp.h: Adjust prototypes.
3937
0a0e7d49
CY
39382009-04-16 Chong Yidong <cyd@stupidchicken.com>
3939
3940 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3941 change (Bug#3003).
3942
3c908a57
KH
39432009-04-16 Kenichi Handa <handa@m17n.org>
3944
1ac9108a 3945 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3946
3947 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3948 adstyle.
3949
3950 * ftfont.c (Qja, Qko): Don't make them static.
3951 (enum ftfont_cache_for): New enum.
3952 (fc_charset_table): Undo the previous change.
3953 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3954 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3955 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3956 non-scarable font, try to get AVERAGE_WIDTH.
3957 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3958 Change ft_face_cache from a list of a hash-table. Don't check
3959 `ja' and `ko' adstyle here.
3960 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3961 FTFONT_CACHE_FOR_CHARET.
3962 (ftfont_get_charset): Undo the previous change.
1ac9108a 3963 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3964 (ftfont_close): Likewise.
3965 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3966
3967 * font.c (font_sort_entites): Change the meaning of the arg
3968 BEST-ONLY. Don't optimize for VEC of lenght 1.
3969 (font_select_entity): Just return the value of font_sort_entites.
3970
3971 * xfaces.c (merge_face_vectors): Reflect font properties in
3972 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3973 font_clear_prop if a face attribute doesn't change.
3974
3c908a57
KH
3975 * charset.h (charset_ksc5601): Extern it.
3976
3977 * charset.c (charset_ksc5601): New variable.
3978 (Fdefine_charset_internal): Set charset_ksc5601.
3979 (init_charset_once): Initialize charset_ksc5601 to -1.
3980
d65859c3
DN
39812009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3982
3983 * fileio.c (history_delete_duplicates): Remove unused declaration.
3984
3985 * callint.c (history_delete_duplicates): New declaration.
3986 (Fcall_interactively): Remove command history duplicates when
3987 history_delete_duplicates is true.
3988
3ba010e5
EZ
39892009-04-14 Eli Zaretskii <eliz@gnu.org>
3990
3991 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3992
06f19b91
KH
39932009-04-14 Kenichi Handa <handa@m17n.org>
3994
3995 * font.c (Ffont_info): Fix docstring. Fix the second element of
3996 the returned value (bug#2949).
3997
2cce8bfc
CY
39982009-04-14 Chong Yidong <cyd@stupidchicken.com>
3999
4000 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4001
d156542d
KH
40022009-04-14 Kenichi Handa <handa@m17n.org>
4003
4004 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4005 encoding charset is ascii_compatible.
4006
4007 * charset.c (Fdefine_charset_internal): Make charset
4008 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4009 code_offset is 0, and covers all ASCII characters.
4010
86fa089e
SM
40112009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4012
4013 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4014 (ns_string_to_pasteboard_internal):
4015 * nsmenu.m (process_dialog):
4016 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4017 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4018 * lisp.h (Fx_load_color_file): Declare.
4019
a8a3728b
KH
40202009-04-13 Kenichi Handa <handa@m17n.org>
4021
1ac9108a 4022 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4023 (font_select_entity): Suppress the code to optimize for the same
4024 kind of fonts.
4025 (font_load_for_lface): Get a font that supports at least ASCII
4026 characters.
4027
4028 * ftfont.c (Qja, Qko): New variables.
4029 (fc_charset_table): Delete uniquifier data for iso8859-1.
4030 (ftfont_get_latin1_charset): New function.
4031 (get_adstyle_property): New function.
4032 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4033 bitmap fonts.
4034 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4035 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4036 `ko' or `ja'.
4037 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4038 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4039 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4040 property.
4041 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4042 (syms_of_ftfont): DEFSYM Qja and Qko.
4043
483670b5
KH
40442009-04-09 Kenichi Handa <handa@m17n.org>
4045
12b55765
KH
4046 * charset.c (map_charset_chars): For a charset of `superset'
4047 method, fix calculation of code range.
4048
483670b5
KH
4049 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4050 from the list of extra properties.
4051 (font_clear_prop): Be sure to delete `:name' font property.
4052
57d3b93b
KH
40532009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4054
b4b2c2ca
YM
4055 * dispnew.c (redraw_overlapping_rows): Fix detection of
4056 overlapping for topmost and bottommost rows.
4057
1ac9108a 4058 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4059
472c3609
JR
40602009-04-06 Jason Rumney <jasonr@gnu.org>
4061
4062 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4063
ab193662
KH
40642009-04-06 Kenichi Handa <handa@m17n.org>
4065
4066 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4067
4068 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4069
0c26f026
KH
40702009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4071
4072 * ftfont.c (ftfont_open): Fix checking of the return value of
4073 FT_Load_Char. Fix setting font->underline_thickness.
4074
e173bbce
CY
40752009-04-04 Chong Yidong <cyd@stupidchicken.com>
4076
4077 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4078 (Fterminal_parameters, Fterminal_parameter)
4079 (Fset_terminal_parameter): In doc string, refer to terminal
4080 objects rather than terminal ids.
4081
693a2698
EZ
40822009-04-04 Eli Zaretskii <eliz@gnu.org>
4083
4084 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4085 ret_lim_data. (Bug#2867)
4086
d5221487
CY
40872009-04-03 Chong Yidong <cyd@stupidchicken.com>
4088
4089 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4090 so they don't get wider than the window, matching 2006-01-23
4091 change to the partner function in xdisp.c (Bug#2800).
4092
223509a3
KH
40932009-04-03 Kenichi Handa <handa@m17n.org>
4094
4095 * print.c (print_object): Make each lowest sub_char_table start a
4096 new line (Bug#2866).
4097
74fcd0b1
KH
40982009-04-02 Kenichi Handa <handa@m17n.org>
4099
4100 * fontset.c (fontset_font): Record no-font when a fontset
4101 explicitly tells not to try another font-specs.
4102
c542407d
SM
41032009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4104
4105 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4106
e3869731
KH
41072009-03-30 Kenichi Handa <handa@m17n.org>
4108
d8d2f142
KH
4109 * fontset.c (fontset_from_font): Specify only registry in a
4110 font-spec for all characters supported by that registry.
4111
e3869731
KH
4112 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4113 even if HAVE_M17N_FLT is not defined.
4114
5da5f805
CY
41152009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4116
4117 * ftfont.c: Conditionalize prototyping and use of
4118 ftfont_variation_glyphs.
4119
ab226c50
SM
41202009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4121
9628fed7
SM
4122 * frame.c (delete_frame): Work around compiler bug.
4123
4124 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4125 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4126 Some more EMACS_INT.
4127 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4128
4129 * xdisp.c (dump_glyph): Fix typo.
4130
ae19ba7c
SM
4131 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4132 (adjust_markers_gap_motion, adjust_markers_for_delete)
4133 (adjust_markers_for_insert, adjust_point)
4134 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4135 (make_gap, copy_text, count_size_as_multibyte, insert)
4136 (insert_and_inherit, insert_before_markers)
4137 (insert_before_markers_and_inherit, insert_1)
4138 (count_combining_before, count_combining_after, insert_1_both)
4139 (insert_from_string, insert_from_string_before_markers)
4140 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4141 (insert_from_buffer_1, adjust_after_replace)
4142 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4143 (replace_range_2, del_range, del_range_1, del_range_byte)
4144 (del_range_both, del_range_2, modify_region)
4145 (prepare_to_modify_buffer, signal_before_change)
4146 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4147 for buffer positions and sizes.
4148 * lisp.h: Adjust prototypes accordingly.
4149
4150 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4151 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4152 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4153
ab226c50
SM
4154 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4155
46dfb8fb
JD
41562009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4157
4158 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4159 lines and columns so we keep the same pixel height and width.
4160
4161 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4162 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4163 (x_handle_net_wm_state): New function to update frame parameter
4164 fullscreen.
4165 (x_term_init): Initialize atoms for _NET_WM_STATE.
4166
4167 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4168
d347e494
SM
41692009-03-27 Kevin Ryde <user42@zip.com.au>
4170
4171 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4172 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4173 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4174 (Fgpm_mouse_stop): Pass that new parameter.
4175 * termhooks.h (close_gpm): Adjust prototype.
4176
84db11d6
SM
41772009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4178
c95a5008
SM
4179 * lisp.h (Fx_focus_frame): Declare.
4180
84db11d6
SM
4181 * callint.c (Fcall_interactively): For '^' just delegate the work to
4182 handle-shift-selection.
4183 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4184
0a1958d6
CY
41852009-03-24 Chong Yidong <cyd@stupidchicken.com>
4186
0bfdff23
CY
4187 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4188
0a1958d6
CY
4189 * data.c (Qinteractive_form): New variable.
4190 (Finteractive_form): Use it.
4191
4192 * eval.c (Fcommandp): Use Qinteractive_form.
4193
58aec0d6
JR
41942009-03-24 Jason Rumney <jasonr@gnu.org>
4195
4196 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4197 Calculate total size precisely. Decode environment variables
4198 before substituting. (Bug#38)
4199
553dd618
KH
42002009-03-24 Kenichi Handa <handa@m17n.org>
4201
4202 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4203 encoding (Bug#2722).
553dd618 4204
c39ea606
JD
42052009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4206
4207 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4208 that gdpy is set.
4209
bc9b2b5e
AM
42102009-03-22 Alan Mackenzie <acm@muc.de>
4211
4212 * callint.c (Finteractive): Clarify the doc string - even
4213 promptless elements need \n separators.
4214
9f995a76
JR
42152009-03-22 Jason Rumney <jasonr@gnu.org>
4216
4217 * w32term.c (syms_of_w32term): Doc fix for
4218 x-use-underline-position-properties.
4219
22749e9a
EZ
42202009-03-21 Eli Zaretskii <eliz@gnu.org>
4221
4222 * w32.c (getpwuid): Change argument type to unsigned.
4223 (struct w32_id): Change type of `rid' member to unsigned.
4224 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4225 argument ID to unsigned. All callers changed.
4226 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4227
e00553bf
EZ
42282009-03-20 Eli Zaretskii <eliz@gnu.org>
4229
4230 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4231 negative, produce a float value.
4232
4233 * dired.c (make_uid, make_gid): New functions.
4234 (Ffile_attributes): Use them to avoid negative UID and GID.
4235
f761d6b6
JB
42362009-03-20 Juanma Barranquero <lekktu@gmail.com>
4237
4238 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4239 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4240 Fix typos in docstrings.
4241
d507f8d7
KH
42422009-03-19 Kenichi Handa <handa@m17n.org>
4243
4244 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4245 changed, use font_load_for_lface to get a new font object.
4246 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4247
4248 * frame.c (x_set_font): Handle the case that ARG is a cons.
4249
c68845e0
GM
42502009-03-19 Glenn Morris <rgm@gnu.org>
4251
4252 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4253
bfa49dd1
CY
42542009-03-19 Chong Yidong <cyd@stupidchicken.com>
4255
4256 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4257
8458d4c1
KH
42582009-03-19 Kenichi Handa <handa@m17n.org>
4259
4260 * charset.c (load_charset_map_from_file): When a mapfile can't be
4261 loaded, signal an error.
4262
78e7d1fe
EZ
42632009-03-18 Eli Zaretskii <eliz@gnu.org>
4264
4265 * dired.c (Ffile_attributes): Make sure UID and GID are always
4266 positive, even if the value is too large for a positive EMACS_INT.
4267 Doc fix.
4268
4269 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4270
5da9fdfa
YM
42712009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4272
4273 * xmenu.c (xdialog_show): Move Fredisplay call ...
4274 (Fx_popup_dialog): ... here.
4275
7519c40d
SM
42762009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4277
4278 * dired.c (file_name_completion): Disable the first optimization just
4279 installed, since it is not implemented correctly.
4280
2cd298e2
SM
42812009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4282
4283 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4284 only if the entry can affect bestmatch.
2cd298e2
SM
4285 Stop the search early, as Ftry_completion already does.
4286
48d37adf
CY
42872009-03-17 Chong Yidong <cyd@stupidchicken.com>
4288
e10c9c93 4289 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4290
9286b16a
CY
42912009-03-15 Chong Yidong <cyd@stupidchicken.com>
4292
4293 * keyboard.c (parse_menu_item): Don't display remappings as menu
4294 equivalent bindings (Bug#788).
4295
f7b146dc
JR
42962009-03-15 Jason Rumney <jasonr@gnu.org>
4297
4298 * w32term.h (WM_EMACS_PAINT): New message.
4299 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4300 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4301 before passing to lisp thread. (Bug#950)
4302
f761d6b6 43032009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4304
d93f9575
CY
4305 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4306 variable as it was never reset.
4307 (ns_term_init): Remove initialization of Lisp-settable defaults
4308 and ns_expand_space.
4309 (-setPanelFromDefaultValues): Remove ns_expand_space.
4310 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4311 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4312 i.e. no additional spacing, similar to Carbon port.
4313
d93f9575
CY
4314 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4315 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4316
305018ec
JD
43172009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4318
4319 * sound.c (alsa_configure): Remove call to deprecated
4320 snd_pcm_sw_params_set_xfer_align.
4321
f761d6b6 43222009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4323
4324 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4325 after clicking in a detached tool bar.
4326 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4327
46e722a9
SM
43282009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4329
348db3dd
SM
4330 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4331 int/Lisp_Object mixup).
46e722a9 4332
a3d16f39
KH
43332009-03-13 Kenichi Handa <handa@m17n.org>
4334
4335 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4336 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4337 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4338 (set_fontset_font): Change ARG to a vector. Handle range_list in
4339 ARG correctly.
4340 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4341 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4342 the above change.
4343 (fontset_from_font): Fix previous change.
fe24f56a 4344 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4345 entry. If FONTSET is the default fontset, don't set the extra
4346 slot of the returning char-table.
4347
b066e6b6
JB
43482009-03-12 Juanma Barranquero <lekktu@gmail.com>
4349
4350 * nsfns.m (Fx_close_connection): Doc fix.
4351 (Fns_do_applescript): Reflow docstring.
4352 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4353 (Fx_display_pixel_width, Fx_display_pixel_height)
4354 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4355 Fix typos in docstrings.
4356 (Fns_set_alpha): Fix typos in error messages.
4357
d472514e 43582009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4359
d472514e 4360 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4361 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4362 were used for such events.
4363
d472514e
JB
4364 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4365 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4366
d472514e 4367 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4368 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4369
fb930676
KH
43702009-03-11 Kenichi Handa <handa@m17n.org>
4371
ff85581a
KH
4372 * font.h (font_open_by_spec): Extern it.
4373
c50b7e98
KH
4374 * font.c (font_open_by_spec): New function.
4375 (font_open_by_name): Use font_open_by_spec.
4376
fb930676
KH
4377 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4378 fontset of the frame.
4379
4380 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4381 modify the default font of frames that use this fontset.
4382 (num_auto_fontsets): New variable.
4383 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4384 name. Be sure to set FONTSET_ASCII to the correct font name.
4385 (update_auto_fontset_alist): New function.
4386
df4e8455
JB
43872009-03-11 Juanma Barranquero <lekktu@gmail.com>
4388
4389 * makefile.w32-in: Update dependencies.
4390
0a375797
AR
43912009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4392
4393 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4394
61313fa3
SM
43952009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4396
4397 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4398
b55103fb
CY
43992009-03-10 Chong Yidong <cyd@stupidchicken.com>
4400
4401 * lread.c (Feval_buffer): Doc fix.
4402
dde2559c
KH
44032009-03-09 Kenichi Handa <handa@m17n.org>
4404
4405 * charset.c (Qfile_name_handler_alist): Extern it.
4406 (load_charset_map_from_file): Temporarily bind
4407 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4408
df4e8455 44092009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4410
47f588bb
GM
4411 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4412 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4413
4ddf94bd
AR
44142009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4415
4c9bdfc2
AR
4416 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4417 (x_set_window_size): Change back to calculated method of setting
4418 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4419 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4420 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4421
fe41ae9e
AR
4422 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4423
4c9bdfc2
AR
4424 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4425 accelerator in parens under GNUstep.
4426
825d0875
KH
44272009-03-06 Kenichi Handa <handa@m17n.org>
4428
4429 These changes are to detect incorrect composition sequence without
f3b3be74 4430 looking ahead the source. (Bug#2370)
825d0875
KH
4431
4432 * coding.h: Include "composite.h".
4433 (enum compisition_state): New enum.
4434 (struct compisition_status): New struct.
4435 (struct iso_2022_spec): New member cmp_status.
4436 (struct emacs_mule_spec): New struct.
4437 (struct coding_system): New members ctext_extended_segment_len and
4438 embedded_utf_8. Change the union member
4439 spec.emacs_mule_full_support to spec.emacs_mule.
4440
4441 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4442 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4443 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4444 (ADD_COMPOSITION_DATA): New arg nbytes.
4445 (emacs_mule_char): New arg cmp_status.
4446 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4447 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4448 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4449 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4450 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4451 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4452 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4453 (EMACS_MULE_COMPOSITION_END): New macro.
4454 (emacs_mule_finish_composition): New function.
4455 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4456 (decode_coding_emacs_mule): Avoid long looking ahead while
4457 handling composition.
4458 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4459 (ENCODE_COMPOSITION_RULE): New macro.
4460 (finish_composition): New function.
4461 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4462 (DECODE_COMPOSITION_START): New implementation.
4463 (DECODE_COMPOSITION_END): Likewise.
4464 (STORE_COMPOSITION_RULE): New macro.
4465 (decode_coding_iso_2022): Avoid long looking ahead while handling
4466 composition, CTEXT extended segment, and embedded UTF-8.
4467 (setup_coding_system): For a coding of type iso-2022, reset
4468 CODING_ISO_EXTSEGMENT_LEN (coding) and
4469 CODING_ISO_EMBEDDED_UTF_8 (coding).
4470 (get_translation): Delete arguments last_block, from_nchars,
4471 to_nchars. Callers changed.
4472 (produce_chars): Don't modify charbuf. Adjusted for the change of
4473 get_translation.
98a326f7 4474 (produce_composition): Adjust for the new annotation sequence.
825d0875 4475 (handle_composition_annotation): Likewise.
98a326f7 4476 (consume_chars): Adjust for the change of get_translation.
825d0875 4477
ccbc4452
AR
44782009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4479
4ddf94bd 4480 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4481
988a7ddb
KH
44822009-03-05 Kenichi Handa <handa@m17n.org>
4483
4484 * font.c (font_select_entity): New function.
4485 (font_find_for_lface): Use font_select_entity to select a font.
4486
4487 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4488 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4489 font with C restriction.
4490
98a326f7 44912009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4492
be1bce46 4493 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4494
10ea2b82
JR
44952009-03-04 Jason Rumney <jasonr@gnu.org>
4496
2c93b248 4497 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4498 characters that have already been read. (Bug#2569)
2c93b248 4499
10ea2b82
JR
4500 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4501 Log an error message if check_image_size failed.
4502 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4503 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4504
71a0c011
EZ
45052009-03-02 Eli Zaretskii <eliz@gnu.org>
4506
4507 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4508 when decoding process output.
4509
2f63bba8
RS
45102009-03-01 Richard M Stallman <rms@gnu.org>
4511
4512 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4513
4514 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4515
0a9564cb
EZ
45162009-02-28 Eli Zaretskii <eliz@gnu.org>
4517
4518 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4519 (decode_coding_emacs_mule, decode_coding_iso_2022)
4520 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4521 (decode_coding_raw_text, decode_coding_charset)
4522 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4523 Honor inhibit-eol-conversion. (Bug #2186)
4524
449148b3
JR
45252009-02-28 Jason Rumney <jasonr@gnu.org>
4526
4527 * coding.c (detect_coding_charset): If not checking latin extra,
4528 fail on characters between 0x80 and 0xA0. (Bug#2354)
4529
a4aee864
EZ
45302009-02-28 Eli Zaretskii <eliz@gnu.org>
4531
4532 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4533 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4534
d88bee5a
GM
45352009-02-27 Glenn Morris <rgm@gnu.org>
4536
4537 * callint.c (Finteractive): Doc fix.
4538
a808f22d
KH
45392009-02-27 Kenichi Handa <handa@m17n.org>
4540
4541 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4542
caf8d60c
CY
45432009-02-27 Chong Yidong <cyd@stupidchicken.com>
4544
4545 * font.c (font_style_to_value): Set value for unknown symbols to
4546 100 instead of 255.
b61137ea
CY
4547 (weight_table, slant_table, width_table): Treat "unspecified" as
4548 the default value.
caf8d60c 4549
1a0de25c
JB
45502009-02-26 Juanma Barranquero <lekktu@gmail.com>
4551
4552 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4553
8fc45744
JB
45542009-02-25 Juanma Barranquero <lekktu@gmail.com>
4555
107bd7d1
JB
4556 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4557 error as soon as a recursive load is detected.
8fc45744 4558
f097e223
AR
45592009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4560
4561 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4562 before caching.
4563
8810a12f
KH
45642009-02-24 Kenichi Handa <handa@m17n.org>
4565
4566 * fontset.c (fontset_find_font): Fix the condition for checking
4567 unavailable font.
4568
2c7d1565
GM
45692009-02-24 Glenn Morris <rgm@gnu.org>
4570
4571 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4572 whitespace that confuses documentation.
4573
a20878b6
MB
45742009-02-23 Miles Bader <miles@gnu.org>
4575
4576 * process.c (Flist_system_processes, Fprocess_attributes)
4577 (syms_of_process): Rename `system-process-attributes' to
4578 `process-attributes'.
4579
b3b58c01
AS
45802009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4581
1b3b981b
AS
4582 * coding.h (struct coding_system): Make safe_charsets a pointer to
4583 unsigned char.
4584 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4585 being 255.
4586 (SAFE_CHARSET_P): Likewise.
4587 (setup_iso_safe_charsets): Properly setup safe_charsets.
4588 (Fdefine_coding_system_internal): Likewise.
4589 (setup_coding_system): Likewise. Remove unneeded casts.
4590 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4591 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4592 unneeded casts.
4593
b3b58c01
AS
4594 * insdel.c (del_range_2): Don't modify gap contents when called
4595 from decode_coding_object. (Bug#1809)
4596
0b6f228c
CY
45972009-02-21 Chong Yidong <cyd@stupidchicken.com>
4598
4599 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4600 Qfont_object.
4601 (Ftype_of): Recognize font objects.
4602
4603 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4604
4605 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4606 moved to data.c.
4607
52f8870b
AR
46082009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4609
4610 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4611 async_iconified. Based on a patch by Christian Lynbech
4612 <christian.lynbech@tieto.com>.
4613 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4614
7087d5e9
GM
46152009-02-20 Glenn Morris <rgm@gnu.org>
4616
4617 * syntax.c (Fskip_chars_forward): Fix doc typo.
4618
41d2ceef
CY
46192009-02-20 Chong Yidong <cyd@stupidchicken.com>
4620
4621 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4622
1a3b7ca6
CY
46232009-02-19 Chong Yidong <cyd@stupidchicken.com>
4624
4625 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4626
73cce38d
KH
46272009-02-19 Kenichi Handa <handa@m17n.org>
4628
4629 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4630 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4631
a51092ee
DN
46322009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4633
4634 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4635
c423ecca
KH
46362009-02-18 Kenichi Handa <handa@m17n.org>
4637
4638 * font.c (font_check_otf_features): Fix handling of `nil' element.
4639 (Ffont_spec): Describe :lang and :otf in the docstring.
4640
4c1958f4
AS
46412009-02-16 Andreas Schwab <schwab@suse.de>
4642
4643 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4644 string.
4645
5704f39a
KH
46462009-02-16 Kenichi Handa <handa@m17n.org>
4647
4648 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4649 (Bug#1723)
5704f39a 4650
8f0085aa
CY
46512009-02-14 Chong Yidong <cyd@stupidchicken.com>
4652
a057d86a 4653 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4654
4655 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4656 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4657
aff01dd9
EZ
46582009-02-14 Eli Zaretskii <eliz@gnu.org>
4659
4660 * msdos.c (MAX_SCREEN_BUF): New macro.
4661 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4662 Encode the entire run of glyphs sharing the same face, instead of
4663 doing that one glyph at a time (fixes a bug with displaying
4664 double-size characters).
4665
ba301db3
AR
46662009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4667
4668 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4669
4670 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4671 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4672 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4673
4674 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4675 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4676
51d861de
SM
46772009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4678
ac146f82 4679 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4680 invisible areas.
4681
7fed8996
JR
46822009-02-12 Jason Rumney <jasonr@gnu.org>
4683
631ea4fb
JR
4684 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4685 (add_font_entity_to_list): Call check_face_name even when family
4686 is unspecified.
4687
cb4a3e42
JR
4688 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4689 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4690 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4691
7fed8996 4692 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4693 raster fonts. (Bug#2219)
7fed8996 4694
895416e3
KH
46952009-02-12 Kenichi Handa <handa@m17n.org>
4696
4697 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4698 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4699 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4700 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4701 (find_automatic_composition): While looking forward and backward,
4702 check static composition. Fix where to stop looking forward.
4703 (composition_adjust_point): Fix checking of static composition.
4704 (Fcomposition_get_gstring): Pay attention to
1dacf998 4705 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4706
4707 * lisp.h (fast_looking_at): Extern it.
4708
4709 * search.c (fast_looking_at): New function.
4710
51d861de 4711 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4712 <struct glyph>.u.cmp.to.
4713 (append_composite_glyph): Likewise.
4714
51d861de 4715 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4716 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4717 composition.
51d861de 4718 (append_composite_glyph): Adjust for the change of
895416e3
KH
4719 <strcut glyph>.u.cmp.to.
4720
8510724d
JB
47212009-02-11 Juanma Barranquero <lekktu@gmail.com>
4722
4723 * casetab.c (init_casetab_once):
4724 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4725 * font.c (font_update_lface):
4726 * fontset.c (Fnew_fontset):
4727 * ftfont.c (ftfont_drive_otf):
4728 * xfont.c (xfont_open):
4729 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4730
294fa707
SM
47312009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4732
4733 * fileio.c (Fwrite_region): !NILP -> CONSP.
4734
b5bfebec
AS
47352009-02-10 Andreas Schwab <schwab@suse.de>
4736
4737 * process.c (send_process): Properly relocate pointer into data
adab88bd 4738 when using encoded data. (Bug#2272)
b5bfebec 4739
cb84a2be
KH
47402009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4741
4742 * coding.c (detect_coding_charset): Fix previous change.
4743
89e09428
JR
47442009-02-08 Jason Rumney <jasonr@gnu.org>
4745
4746 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4747 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4748
4470a277
AS
47492009-02-07 Andreas Schwab <schwab@suse.de>
4750
4751 * unexelf.c (unexec): Fix error message.
4752
3175b12a
AR
47532009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4754
4755 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4756 when modal window is active. (Bug #2152)
3175b12a
AR
4757 (applicationShouldTerminate:): Remove now-unneeded while loop
4758 around NSRunAlertPanel.
4759
4760 * nsmenu.m (popupSession): New file-global variable.
4761 (pop_down_menu): End the popupSession before closing dialog.
4762 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4763 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4764 don't query NSApp for events (just sleep instead).
4765
8434d0b8
EZ
47662009-02-07 Eli Zaretskii <eliz@gnu.org>
4767
51d861de
SM
4768 * coding.c (syms_of_coding) <translation-table-for-input>:
4769 Modify doc string to discourage use for character code unification.
8434d0b8 4770
aa82edfd
CY
47712009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4772
4773 * atimer.c (run_timers): Update pending_atimers.
4774
2d283c7c
CY
47752009-02-06 Chong Yidong <cyd@stupidchicken.com>
4776
eb306cab
CY
4777 * image.c (svg_load_image): Fix last change.
4778
2d283c7c
CY
4779 * xfns.c (Fx_create_frame): Signal an error if no font is
4780 found (Bug#2147).
4781
4d8e170e
JB
47822009-02-05 Juanma Barranquero <lekktu@gmail.com>
4783
4784 * character.c (syms_of_character) <script-representative-chars>:
4785 Fix typo in docstring.
4786
c96169a0
AR
47872009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4788
4789 * nsmenu.m (pop_down_menu): New function.
4790 (ns_popup_dialog): Call it on unwind.
4791 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4792 call timer_check() (Bug#2154).
4793 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4794 handling_signal is set.
4795 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4796
31fd7c5c 4797 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4798
4799 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4800
4801 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4802
51d861de
SM
4803 * keyboard.c (poll_for_input_1, handle_async_input):
4804 Set handling_signal under HAVE_NS.
c96169a0 4805
aacd8ba1
GM
48062009-02-04 Glenn Morris <rgm@gnu.org>
4807
4808 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4809
4cb75c4b
KH
48102009-02-04 Kenichi Handa <handa@m17n.org>
4811
4812 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4813
4814 * charset.c (Fchar_charset): New optional arg restriction.
4815
4816 * coding.h (coding_system_charset_list): Extern it.
4817
4818 * coding.c (coding_system_charset_list): New function.
4819
4820 * composite.c: Include coding.h and termhooks.h.
4821 (composition_gstring_p): Fix for the terminal case.
4822 (composition_gstring_width): Likewise.
4823 (fill_gstring_body): Likewise.
4824 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4825 the frame.
4826 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4827 is within a composition.
867d4bb3 4828 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4829
4830 * term.c (encode_terminal_code): Fix handling of composition.
4831 (produce_composite_glyph): For static composition, get pixel_width
4832 from struct composition.
4833
826ba17e
AS
48342009-02-02 Andreas Schwab <schwab@suse.de>
4835
4836 * unexelf.c (unexec): Handle unaligned bss offset.
4837
8ad093db
AR
48382009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4839
4840 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4841 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4842
8ad093db
AR
4843 * keyboard.c (handle_interrupt): Don't call
4844 quit_throw_to_read_char() under NS.
d0a76a6e 4845
8ad093db
AR
4846 * blockinput.h: Remove NS-specific code.
4847
4d18a7a2
DN
48482009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4849
db878925
DN
4850 * dispnew.c (window_change_signal): Don't try to get the size of a
4851 suspended tty frame.
4852 * term.c (Fresume_tty): Resize if the size has changed while the
4853 tty was suspended.
4854
4d18a7a2
DN
4855 * alloc.c (mark_stack): Properly conditionalize previous change.
4856
8984df7c
JB
48572009-01-30 Juanma Barranquero <lekktu@gmail.com>
4858
4859 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4860 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4861 Remove; this code is not used on Windows.
4862
75f4f1ac
EZ
48632009-01-30 Eli Zaretskii <eliz@gnu.org>
4864
4865 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4866 EOLs that also has stray ^M characters.
4867
07a1e794
JB
48682009-01-30 Juanma Barranquero <lekktu@gmail.com>
4869
4870 * atimer.c (run_timers, alarm_signal_handler):
4871 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4872 * w32inevt.c (w32_console_read_socket):
4873 * w32term.c (w32_read_socket):
4874 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4875
a8b11cc9
CY
48762009-01-30 Chong Yidong <cyd@stupidchicken.com>
4877
4878 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4879 Initialize it as a relative filename pattern.
4880 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4881 (Fcall_process_region): Simplify temp file creation using
4882 temporary-file-directory.
4883
c279587b
EZ
48842009-01-29 Eli Zaretskii <eliz@gnu.org>
4885
4886 * msdos.c: Rename pending_signals to msdos_pending_signals.
4887 (sig_suspender, sigprocmask): Adjust.
4888
a8fe3242
CY
48892009-01-29 Chong Yidong <cyd@stupidchicken.com>
4890
4891 * keyboard.c (pending_signals): New var.
4892 (poll_for_input, input_available_signal, init_keyboard): Set it.
4893 (process_pending_signals): New function.
4894
4895 * lisp.h (QUIT): Check pending_signals instead of
4896 interrupt_input_pending. Use process_pending_signals.
4897
51d861de 4898 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4899
51d861de 4900 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4901
4902 * sysdep.c (emacs_write): Use process_pending_signals.
4903
4904 * xterm.c (XTread_socket): Update pending_signals.
4905
4906 * w32term.c (w32_read_socket): Update pending_signals.
4907
4908 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4909
6570a1c4
KH
49102009-01-29 Kenichi Handa <handa@m17n.org>
4911
4912 * xftfont.c (xftfont_has_char): New function.
4913 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4914
d72a4afa
AR
49152009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4916
4917 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4918 under GNUstep.
4919 (ns_query_color): New declaration.
4920
4921 * nsterm.m (ns_confirm_quit): New variable.
4922 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4923 (EmacsApp-applicationShouldTerminate:): Use it.
4924 (EmacsPrefsController): Let user set it.
4925 (ns_query_color): New function.
4926 (ns_defined_color): Use it.
4927 (ns_initialize): Drop.
4928 (ns_term_init): Add two lines from ns_initialize(), and set
4929 input_interrupt_mode to nil.
4930
4931 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4932 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4933
9fe78804
KH
49342009-01-28 Kenichi Handa <handa@m17n.org>
4935
4936 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4937 (fontset_get_font_group): Remember that no font-group is specified
4938 for C.
9fe78804 4939
fa57de36
CY
49402009-01-27 Chong Yidong <cyd@stupidchicken.com>
4941
930600e9
CY
4942 * fns.c (concat): Check for string overflow (bug#1787).
4943
fa57de36
CY
4944 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4945 Quadruple undo limits (bug#1501).
4946
7179ce7b
KH
49472009-01-27 Kenichi Handa <handa@m17n.org>
4948
4949 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4950 directly use GT_Get_Char_index.
4951
4952 * xftfont.c (struct xftfont_info): New member `index'.
4953
4954 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4955 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4956
5be8fcc0
CY
49572009-01-26 Kenichi Handa <handa@m17n.org>
4958
4959 * fontset.c (fontset_find_font): Fix handling of non-cons return
4960 value of fontset_get_font_group.
4961 (fontset_font): Revert last change.
4962
19ae3e61
JR
49632009-01-26 Jason Rumney <jasonr@gnu.org>
4964
4965 * w32font.c (w32font_list_internal): Return quickly if registry is
4966 unknown. Simplify final return.
4967 (add_font_entity_to_list): Break complex logic down into more
4968 manageable chunks. Move unknown registry check to
4969 w32font_list_internal.
4970
8612b71a
AR
49712009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4972
4973 Changes to remove Feval calls from GUI under NS.
4974
d8038940
JB
4975 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4976 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4977 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4978
4979 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4980 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4981 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4982 instead of NON_ASCII_KEYSTROKE_EVENT.
4983 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4984 (EmacsApp-applicationShouldTerminate:): Query user.
4985 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4986 instead of Feval.
4987
4988 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4989
4990 * keyboard.c (kbd_buffer_get_event): Check for it.
4991 (keys_of_keyboard): Define lispy keys for
4992 ns-put/unput-working-text.
4993
4994 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4995 versions.
4996 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4997
6288ae55
CY
49982009-01-25 Chong Yidong <cyd@stupidchicken.com>
4999
5000 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5001 setting current_buffer directly. (Bug#2044)
6288ae55 5002
289e7f8f
CY
50032009-01-24 Chong Yidong <cyd@stupidchicken.com>
5004
5ce87308 5005 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5006 any work. (Bug#1952, bug#1990).
5ce87308 5007
64cc3cf6 5008 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5009
b3243e6f
AR
50102009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5011
5012 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5013 (ns_no_defaults): New declaration.
5014 (main): Use it.
e0d2e69a 5015
d900b2af 5016 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5017
d900b2af 5018 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5019
d900b2af
AR
5020 * nsterm.m (ns_no_defaults): New variable.
5021 (ns_initialize): Don't read defaults when ns_no_defaults.
5022 (EmacsView-readSelectionFromPasteboard:)
5023 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5024 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5025 (ns_dumpglyphs_stretch): New function.
5026 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5027 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5028
e0d2e69a
AR
5029 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5030
3ac71f5d
CY
50312009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5032
5033 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5034 call for Sparc64.
5035
3fe53a83
AR
50362009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5037
5038 * nsfns.m:
5039 * nsgui.h:
5040 * nsmenu.m:
5041 * nsselect.m:
5042 * nsterm.h:
5043 * nsterm.m: Remove '23' comments that indicated code added during
5044 update from emacs-20 -> emacs-23.
5045
10f87c6f 50462009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5047
5048 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5049 ns_alternate_modifier. (Bug#1217)
a3b53a85 5050
c7cef62d
AR
5051 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5052 Display all shortcuts, including those w/o super modifier.
5053
575fb8bd
AR
5054 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5055
918b848b
CY
50562009-01-22 Chong Yidong <cyd@stupidchicken.com>
5057
5058 * fileio.c (Vwrite_region_post_annotation_function)
5059 (Vwrite_region_annotation_buffers): New vars.
5060 (build_annotations_unwind): Just reset
5061 Vwrite_region_annotation_buffers.
5062 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5063 Call write-region-post-annotation-function.
5064 (build_annotations): Add to Vwrite_region_annotation_buffers if
5065 buffer changes.
5066
a39e2539
AR
50672009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5068
5069 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5070 Tiger.
51d861de
SM
5071 * nsfns.m (ns_do_applescript):
5072 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5073
35ed44db
AR
50742009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5075
5076 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5077
cbe0b5bf
AR
50782009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5079
5080 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5081
6049d3a0
AR
5082 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5083
5084 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5085 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5086 handle Ctrl-tab. (Bug#1841)
5087 (ns_get_color): Use unsigned long long for scanned hex string value.
5088 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5089 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5090 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5091 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5092 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5093 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5094 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5095
d3810c21 5096 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5097 DPI. (Bug#1316)
d3810c21
AR
5098 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5099 values in onTiger section.
4c7077c3 5100
e301e634
CY
51012009-01-19 Chong Yidong <cyd@stupidchicken.com>
5102
7f82490b
CY
5103 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5104 Check return value of font_spec_from_name.
64cc3cf6 5105 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5106
5107 * font.c (font_spec_from_name): Return Qnil if font name could not
5108 be parsed.
5109 (font_parse_name): Treat a `?' character as part of an XLFD.
5110
e301e634
CY
5111 * fns.c (Fsubstring): Doc fix.
5112
1c0db158
KH
51132009-01-19 Kenichi Handa <handa@m17n.org>
5114
51d861de 5115 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5116 (ftfont_list): Likewise.
5117
acf20901
JB
51182009-01-18 Juanma Barranquero <lekktu@gmail.com>
5119
fff4e459
JB
5120 * dbusbind.c (Fdbus_register_signal):
5121 * process.c (conv_sockaddr_to_lisp):
5122 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5123
acf20901
JB
5124 * callproc.c (Fgetenv_internal): Doc fix.
5125
e7abcdfb
CY
51262009-01-16 Chong Yidong <cyd@stupidchicken.com>
5127
5128 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5129 it is not even used.
5130
b60861e6
GM
51312009-01-16 Glenn Morris <rgm@gnu.org>
5132
5133 * font.c (Ffont_variation_glyphs): Silence compiler.
5134
8db52afe
JB
51352009-01-15 Juanma Barranquero <lekktu@gmail.com>
5136
5137 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5138 Reported by David Robinow <drobinow@gmail.com>.
5139
4cddb209
KH
51402009-01-15 Kenichi Handa <handa@m17n.org>
5141
51d861de 5142 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5143
f247f67b
JR
51442009-01-14 Jason Rumney <jasonr@gnu.org>
5145
5146 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5147 never a fontset. (Bug#1562)
f247f67b 5148
f56a4450
KH
51492009-01-14 Kenichi Handa <handa@m17n.org>
5150
5151 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5152 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5153
4e99855e
CY
51542009-01-13 Chong Yidong <cyd@stupidchicken.com>
5155
5156 * font.c (font_clear_prop): If clearing the family, clear the font
5157 width index too.
5158
fff4e459 5159 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5160
24f01470
JB
51612009-01-12 Juanma Barranquero <lekktu@gmail.com>
5162
5163 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5164 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5165 functions, use sizeof.
5166
a41240a3
MR
51672009-01-12 Martin Rudalics <rudalics@gmx.at>
5168
5169 * keyboard.c (read_char): Fix case where last_nonmenu_event
5170 returned a bad value with submenus. (Bug#447)
5171
944636b8
CY
51722009-01-12 Chong Yidong <cyd@stupidchicken.com>
5173
5174 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5175 family, clear the font width index too.
5176
0dad7c6f
JR
51772009-01-11 Jason Rumney <jasonr@gnu.org>
5178
5179 * keyboard.c (cmd_error_internal): Exit when errors occur before
5180 frame creation and not in daemon mode. (Bug#1836)
5181
7c2363af
CY
51822009-01-10 Chong Yidong <cyd@stupidchicken.com>
5183
5184 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5185 of a display vector, backtrack.
5186 (try_window_reusing_current_matrix): Check glyph type before
5187 referencing charpos member.
5188
97b1b294
EZ
51892009-01-10 Eli Zaretskii <eliz@gnu.org>
5190
5191 Fix Bug #876:
5192
5193 * coding.c (inhibit_null_byte_detection): New variable.
5194 (detect_coding, detect_coding_system): Don't pay attention to null
5195 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5196 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5197 <inhibit-iso-escape-detection>: Doc fix.
5198
4624b6e3
JR
51992009-01-09 Jason Rumney <jasonr@gnu.org>
5200
5201 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5202 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5203 Only report Unicode Plane 2 fonts as unicode-sip.
5204
323b840c
CY
52052009-01-09 Chong Yidong <cyd@stupidchicken.com>
5206
51d861de
SM
5207 * xfaces.c (Fx_font_family_list): Delete function.
5208 Move compatibility version to faces.el.
323b840c 5209
51d861de 5210 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5211
eba7400d
MR
52122009-01-09 Martin Rudalics <rudalics@gmx.at>
5213
5214 * frame.c (x_set_frame_parameters): Remember requested value for
5215 fullscreen before it's reset by the parameter handler.
5216
4b09796d
GM
52172009-01-09 Glenn Morris <rgm@gnu.org>
5218
5219 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5220 (last_command_event): ... and update all users.
4b09796d
GM
5221 (last_input_char): For clarity, rename to...
5222 (last_input_event): ... and update all users.
5223 (last-command-char, last-input-char): Move to subr.el as aliases.
5224 * cmds.c, commands.h: Update for last_command_char rename.
5225
14ccea62
CY
52262009-01-08 Chong Yidong <cyd@stupidchicken.com>
5227
51d861de 5228 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5229
5f004711
JR
52302009-01-08 Jason Rumney <jasonr@gnu.org>
5231
5232 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5233 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5234 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5235 Don't declare.
fff4e459 5236 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5237 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5238
b71f6f73
KH
52392009-01-07 Kenichi Handa <handa@m17n.org>
5240
50b06221 5241 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5242 remember the coding system used for decoding in
50b06221
KH
5243 coding_system (Bug#1039).
5244
b71f6f73 5245 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5246 breaking the loop. (Bug#870)
b71f6f73
KH
5247 (decode_coding_utf_16, decode_coding_emacs_mule)
5248 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5249 (decode_coding_charset): Likewise.
5250
56f668f7
MR
52512009-01-05 Martin Rudalics <rudalics@gmx.at>
5252
5253 * frame.c (x_set_frame_parameters): Make sure height (width) get
5254 applied when fullwidth (fullheight) is set. (Bug#1522)
5255
5da9424d
JB
52562009-01-04 Juanma Barranquero <lekktu@gmail.com>
5257
5258 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5259 (utc_base): Declare as ULONGLONG, not long double.
5260 (convert_time_raw): Delete.
5261 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5262 (initialize_utc_base): New function.
5263 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5264 (convert_from_time_t): Use initialize_utc_base; compute result with
5265 64-bit arithmetic.
5266 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5267
c4605e09
EZ
52682009-01-03 Eli Zaretskii <eliz@gnu.org>
5269
9acef61c 5270 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5271 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5272 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5273 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5274 [!subprocesses]: Define.
5275 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5276 (Flist_system_processes, Fsystem_process_attributes)
5277 [!subprocesses]: Call list_system_processes and
5278 system_process_attributes instead of returning Qnil.
5279
9acef61c
JB
5280 * dosfns.c (system_process_attributes, list_system_processes):
5281 New functions.
c4605e09
EZ
5282
5283 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5284
5285 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5286 Don't use the default (no-op) implementation.
5287
8b7d0a16
JR
52882009-01-03 Jason Rumney <jasonr@gnu.org>
5289
a6d46bc1
JR
5290 * keyboard.c (parse_modifiers_uncached): Wheel events are
5291 clicks (bug#687).
5292
8b7d0a16
JR
5293 * w32term.c (x_query_colors, x_query_color): New functions.
5294
5295 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5296 (svg_load_image): Cast returned pointers from dynamically loaded
5297 functions. Eliminate W32 specific code.
5298
bfe11752
DN
52992009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5300
89e2438a
DN
5301 * nsfns.m (x_set_foreground_color, x_set_background_color)
5302 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5303 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5304 x_ prefix instead of ns_. Update references.
5305 (syms_of_nsfns): Add a FIXME comment.
5306
5307 * nsterm.m (x_set_cursor_type): New prototype.
5308 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5309
bfe11752
DN
5310 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5311 for Solaris instead of incorrectly providing Qutime and Qcutime.
5312
031da700
EZ
53132009-01-02 Eli Zaretskii <eliz@gnu.org>
5314
5315 * w32.c (process_times): Compute sum of utime and stime.
5316 (system_process_attributes): Add Qtime to the alist.
5317
5318 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5319 and add them to the alist.
5320
5321 * process.c (top level) <Qtime, Qctime>: New variables.
5322 (syms_of_process): staticpro them.
5323 (Fsystem_process_attributes): Add their documentation to the doc
5324 string.
5325
5326 * process.h: Declare Qtime and Qctime.
5327
df23bf08
JR
53282009-01-02 Jason Rumney <jasonr@gnu.org>
5329
9acef61c 5330 * image.c (Qgobject): New symbol.
df23bf08
JR
5331 (syms_of_image): Initialize it.
5332 (init_svg_functions): Load some functions from gobject library.
5333
5bbdf7aa
DN
53342009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5335
5336 * frame.c (make_terminal_frame): Remove redundant code and useless
5337 block.
5338
63136da6
AS
53392009-01-01 Andreas Schwab <schwab@suse.de>
5340
5341 * process.c (conv_sockaddr_to_lisp): Add workaround for
5342 getsockname bug on BSD.
5343
9ef69046
CY
53442009-01-01 Chong Yidong <cyd@stupidchicken.com>
5345
d6fafbe0
CY
5346 * xfns.c (x_create_tip_frame): Set border width of the X window.
5347
51d861de 5348 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5349
f9c34147
JR
53502009-01-01 Jason Rumney <jasonr@gnu.org>
5351
9acef61c 5352 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5353 Don't block input, as per earlier xterm.c changes.
5354
f5497e45
AR
53552008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5356
5357 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5358 (ns_appkit_version_int): New function.
5359 (x-server-version): Use ns_appkit_version_int and follow 21+
5360 convention of returning 3 integers.
5361
c19cab20
KH
53622008-12-30 Kenichi Handa <handa@m17n.org>
5363
5364 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5365 (CHAR_SURROGATE_PAIR_P): New macro.
5366
5367 * font.h (struct font_driver): New member get_variation_glyphs.
5368
9acef61c 5369 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5370 (Ffont_variation_glyphs): New function.
5371 (syms_of_font): Defsubr it.
5372
5373 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5374 ftfont_variation_glyphs.
5375 (setup_otf_gstring): New function.
5376 (ftfont_drive_otf): Use it.
5377 (ftfont_shape_by_flt): Handle variation selector.
5378 (ftfont_variation_glyphs): New function.
5379
28cd591f
MR
53802008-12-30 Martin Rudalics <rudalics@gmx.at>
5381
5382 * frame.c (Vemacs_iconified): Remove.
5383
7f714baf
JR
53842008-12-30 Jason Rumney <jasonr@gnu.org>
5385
5386 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5387 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5388
9d2d22ab
CY
53892008-12-30 Chong Yidong <cyd@stupidchicken.com>
5390
5391 * indent.c (Fvertical_motion): Don't advance iterator if we have
5392 reseated to the desired position.
5393
5394 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5395 checking for pos match.
5396
545312c2
KH
53972008-12-30 Kenichi Handa <handa@m17n.org>
5398
1ede3eb6
KH
5399 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5400 just get the low 8-bit of the code.
5401
545312c2
KH
5402 * font.c (font_intern_prop): Validate str as multibyte.
5403
bd7bbf29
DN
54042008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5405
31e0750e
DN
5406 * dispextern.h (struct face): Move lface and hash from the middle
5407 of bitfields.
5408
bd7bbf29
DN
5409 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5410
b5672e7c
DN
54112008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5412
5413 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5414 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5415 instead of intervals.h.
5416
d704470f
AS
54172008-12-26 Andreas Schwab <schwab@suse.de>
5418
5419 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5420 cons.
5421
54b33868
MR
54222008-12-26 Martin Rudalics <rudalics@gmx.at>
5423
5424 * textprop.c (Qminibuffer_prompt): New variable.
5425 (syms_of_textprop): Initialize it.
5426 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5427 in minibuffer-prompt face. (Bug#1662)
5428
40b615d6
JR
54292008-12-25 Jason Rumney <jasonr@gnu.org>
5430
5431 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5432
baae5c2d
JR
54332008-12-24 Jason Rumney <jasonr@gnu.org>
5434
5435 * ralloc.c (r_alloc_reset_variable): New function.
5436
5437 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5438 record of what points where. (Bug#716)
baae5c2d 5439
a9051c88
DN
54402008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5441
5442 * minibuf.c (read_minibuf): Follow the non-interactive case when
5443 running as a daemon, before detaching.
5444
8b146312
AS
54452008-12-22 Andreas Schwab <schwab@suse.de>
5446
5447 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5448 * gtkutil.c (free_widget_value): Use xfree instead of free.
5449
56f2de10
MR
54502008-12-22 Martin Rudalics <rudalics@gmx.at>
5451
5452 * frame.c (delete_frame): New function derived from
5453 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5454 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5455 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5456 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5457 * frame.h: Extern delete_frame.
5458 * window.c (window_loop):
5459 * terminal.c (delete_terminal):
5460 * xterm.c (x_connection_closed):
5461 * xfns.c (Fx_hide_tip):
9acef61c 5462 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5463
1fc200d6
JR
54642008-12-21 Jason Rumney <jasonr@gnu.org>
5465
5466 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5467 when character maps to .notdef character.
5468
5e252df2
SM
54692008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5470
5471 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5472
99b72cc4
JR
54732008-12-20 Jason Rumney <jasonr@gnu.org>
5474
5475 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5476 a graphical frame on Windows. (Bug#1325)
99b72cc4 5477
acc49a52
JD
54782008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5479
5480 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5481
6ea15123
CY
54822008-12-20 Chong Yidong <cyd@stupidchicken.com>
5483
5484 * minibuf.c (Fread_buffer): Doc fix.
5485
b2dab6c8
JR
54862008-12-20 Jason Rumney <jasonr@gnu.org>
5487
54ea0c87 5488 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5489 server name in UNC paths. (Bug#719)
54ea0c87 5490
b2dab6c8 5491 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5492 charbuf. (Bug#1035)
b2dab6c8 5493
6d1921be
DN
54942008-12-19 Daniel Engeler <engeler@gmail.com>
5495
5496 * sysdep.c (serial_configure): Fix typo.
5497
53934c98
DN
54982008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5499
5500 * sysdep.c: Include alloca.h.
f4f634e8
DN
5501 (system_process_attributes): Add implementation for Solaris.
5502
5503 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5504
06e111a6
DN
55052008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5506
5507 Reorganize implementation of Flist_system_processes and
5508 Fsystem_process_attributes. No functional changes.
5509 * process.c: Don't #include pwd.h, grp.h and limits.h.
5510 (Flist_system_processes): Just call list_system_processes.
5511 (Fsystem_process_attributes): Just call system_process_attributes.
5512 (procfs_list_system_processes, time_from_jiffies)
5513 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5514 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5515
5516 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5517 (list_system_processes): Rename from
5518 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5519 Provide a do nothing implementation.
5520 (system_process_attributes): Rename from
5521 procfs_list_system_processes.
5522 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5523 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5524
5525 * w32.c (list_system_processes): Rename from
5526 w32_list_system_processes.
5527 (system_process_attributes): Rename from
5528 w32_system_process_attributes.
5529
5530 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5531
5532 * process.h (w32_list_system_processes)
5533 (w32_system_process_attributes): Remove.
362654a6
JB
5534 (list_system_processes, system_process_attributes):
5535 New prototypes.
06e111a6 5536
6a705b23
KH
55372008-12-19 Kenichi Handa <handa@m17n.org>
5538
5539 * xfont.c (xfont_decode_coding_xlfd): New function.
5540 (xfont_encode_coding_xlfd): New function.
5541 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5542 (xfont_list): Decode and encode XLFD by iso-8859-1.
5543 (xfont_match): Likewise.
5544 (xfont_list_family): Likewise.
5545 (xfont_open): Likewise.
5546
d66c0241 5547 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5548 names are utf-8.
5549
d66c0241 5550 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5551 names are utf-8.
5552
5a130941
JD
55532008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5554
5555 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5556 changed.
bfd20325
JD
5557 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5558 clicked on a detached tool bar button.
5a130941 5559
fd95644b
DN
55602008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5561
5562 * emacs.c (main): Print and error and exit when no data is read
5563 from the pipe.
5564
e6eee6ae
JR
55652008-12-17 Jason Rumney <jasonr@gnu.org>
5566
5567 * w32font.c (w32font_has_char): Always return -1.
5568
a35dd56b
KH
55692008-12-16 Kenichi Handa <handa@m17n.org>
5570
5571 * font.c (font_open_entity): Fix previous change.
5572
0e3635c2
DN
55732008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5574
5575 * process.c: Include <limits.h>.
5576
d4835507 55772008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5578
5579 * font.c (font_update_drivers): Fix mistake in reconstructing the
5580 driver list.
5581
55822008-12-16 Chong Yidong <cyd@stupidchicken.com>
5583
5584 * font.c (font_clear_cache): Fix format of font cache data.
5585
e2cbc401
CY
55862008-12-15 Chong Yidong <cyd@stupidchicken.com>
5587
5588 * xftfont.c (xftfont_open): Free Xft font pattern if
5589 XftFontOpenPattern fails.
5590
5591 * xterm.c (x_free_frame_resources): Remove extraneous call to
5592 free_frame_faces.
5593
b131d535
CY
55942008-12-13 Chong Yidong <cyd@stupidchicken.com>
5595
5596 * xterm.c (x_delete_display): Move xim_close_dpy call to
5597 x_delete_terminal.
5598 (x_delete_terminal): Call xim_close_dpy.
5599
e6df5336
JR
56002008-12-13 Jason Rumney <jasonr@gnu.org>
5601
5602 * w32font.c (intern_font_name): New function.
5603 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5604 (w32font_open_internal, Fx_select_font): Decode font name.
5605 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5606
5607 * w32font.h (intern_font_name): Declare new function.
5608
5609 * w32uniscribe.c (add_opentype_font_name_to_list):
5610 Use intern_font_name.
5611
20d68145
CY
56122008-12-13 Chong Yidong <cyd@stupidchicken.com>
5613
9f2554de
CY
5614 * frame.c (Fdelete_frame): Call free_font_driver_list.
5615
3d9bec9a
CY
5616 * font.c (free_font_driver_list): Implement missing function.
5617
20d68145
CY
5618 * w32term.c (w32_term_init): Don't initialize the image cache
5619 here; it will be done in init_frame_faces.
5620
5621 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5622 (struct x_display_info): Remove unused member null_pixel. New
5623 member xim_callback_data.
5624
5625 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5626 (xim_initialize): Save pointer to callback function data.
5627 (xim_close_dpy): Free callback function data. Call XCloseIM,
5628 reverting 2008-11-04 change by David Smith.
5629 (x_term_init): Don't initialize the image cache here; it will be
5630 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5631 (x_delete_display): Free x_dnd_atoms member.
5632
96f9306b
KH
56332008-12-13 Kenichi Handa <handa@m17n.org>
5634
6dec9044
JB
5635 * font.c (font_rescale_ratio): Moved from xfaces.c.
5636 Argument type changed. Handle a font-spec too.
96f9306b 5637 (font_score): Check Vface_font_rescale_alist.
6dec9044 5638 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5639
5640 * xfaces.c (font_rescale_ratio): Moved to font.c.
5641
8d5b4964
CY
56422008-12-13 Chong Yidong <cyd@stupidchicken.com>
5643
5644 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5645
e6df5336
JR
56462008-12-12 Jason Rumney <jasonr@gnu.org>
5647
5648 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5649 Vwindow_system_version to the real w32 major version.
5650
97c6058a
DN
56512008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5652
5653 * term.c (init_tty): Move setting the terminal name before the
5654 potential user: maybe_fatal.
5655
ec4e88d7
CY
56562008-12-11 Chong Yidong <cyd@stupidchicken.com>
5657
d4835507
JB
5658 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5659 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5660
b4233ec9
JR
56612008-12-11 Jason Rumney <jasonr@gnu.org>
5662
8ec71e23 5663 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5664 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5665
b4233ec9 5666 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5667 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5668
011a0143
JB
56692008-12-11 Juanma Barranquero <lekktu@gmail.com>
5670
5671 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5672
3c309f34
JB
56732008-12-11 Juanma Barranquero <lekktu@gmail.com>
5674
5675 * process.c (Fsystem_process_attributes, syms_of_process):
5676 Fix typo in name of Ssystem_process_attributes.
5677 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5678
fedc6ab5
JB
56792008-12-11 Juanma Barranquero <lekktu@gmail.com>
5680
5681 * syntax.c (Fmodify_syntax_entry): Doc fix.
5682
ba3de0e8
JB
56832008-12-10 Juanma Barranquero <lekktu@gmail.com>
5684
5685 * font.c (Ffont_spec): Move usage to end of docstring.
5686
174f1c74
JR
56872008-12-10 Jason Rumney <jasonr@gnu.org>
5688
5689 * w32font.c (Qcham): New symbol.
5690 (font_supported_scripts): Add cham, and comments for other new
5691 scripts in bitfield from OpenType spec.
9d32f818
JR
5692 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5693 contain characters beyond the bmp.
174f1c74 5694
7b649478
KH
56952008-12-10 Kenichi Handa <handa@m17n.org>
5696
5697 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5698 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5699 Qunicode_sip.
5700
2133e2d1
JB
57012008-12-10 Juanma Barranquero <lekktu@gmail.com>
5702
5703 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5704 (Fcoding_system_put): Use QCdefault_char.
5705 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5706
9af886ee
CY
57072008-12-09 Chong Yidong <cyd@stupidchicken.com>
5708
74d819eb
CY
5709 * xftfont.c (syms_of_xftfont): Fix typo.
5710
4ccfa1c0 5711 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5712
7c19d3ae
DN
57132008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5714
5715 * emacs.c (main): Close daemon_pipe on exec.
5716
567826bb
CY
57172008-12-08 Chong Yidong <cyd@stupidchicken.com>
5718
5719 * termchar.h (struct tty): New members termcap_term_buffer and
5720 termcap_strings_buffer.
5721
5722 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5723 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5724 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5725 All callers changed.
5726 (init_tty): Store termcap data and string buffers in new struct
5727 tty members termcap_term_buffer and termcap_strings_buffer.
5728 (delete_tty): Free them.
4ccfa1c0 5729 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5730
aa96c42b
SZ
57312008-12-07 Seiji Zenitani <zenitani@mac.com>
5732
5733 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5734 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5735
b7e1d896
CY
57362008-12-06 Chong Yidong <cyd@stupidchicken.com>
5737
5738 * coding.c (make_conversion_work_buffer): Disable buffer
5739 modification hooks in the work buffer.
5740
b5ec91a5
EZ
57412008-12-05 Eli Zaretskii <eliz@gnu.org>
5742
5743 * process.c (procfs_system_process_attributes): If `nread' has a
5744 negative value, assign zero to it.
5745
a5d2a52b
CY
57462008-12-05 Chong Yidong <cyd@stupidchicken.com>
5747
68c5540b 5748 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5749
7bf1bb21
KH
57502008-12-05 Kenichi Handa <handa@m17n.org>
5751
5752 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5753 second character is a combining character.
5754
2fdc7d00
EZ
57552008-12-05 Eli Zaretskii <eliz@gnu.org>
5756
5757 * process.c (procfs_system_process_attributes): Don't use cmd,
5758 cmdsize, and q without initializing them first.
5759
bf6bfba8
JR
57602008-12-04 Jason Rumney <jasonr@gnu.org>
5761
5762 * w32font.c (w32font_draw): Initialize orig_clip before getting
5763 it, and delete it when finished.
5764
a3b1a468
DN
57652008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5766
5767 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5768 case when running as a daemon before detaching.
5769
8b8be8eb
JB
57702008-12-03 Juanma Barranquero <lekktu@gmail.com>
5771
805f2638 5772 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5773
b1bde622
KH
57742008-12-03 Kenichi Handa <handa@m17n.org>
5775
e500c47d
KH
5776 * font.c (font_at): Set `multibyte' at first.
5777
ca516334
KH
5778 * coding.c (decode_coding_charset): Check type of an element of
5779 vector VALIDS.
7bf1bb21 5780 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5781
4ccfa1c0 5782 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5783 (font_for_char): Likewise.
5784
1e5ecd37
CY
57852008-12-03 Chong Yidong <cyd@stupidchicken.com>
5786
d5b01609 5787 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5788 (font_update_lface): Handle fonts with corrupted size specs,
5789 i.e. non-int and non-float.
d5b01609 5790
11e3a6e4 5791 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5792 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5793 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5794
ab06788b
CY
5795 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5796
1e5ecd37 5797 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5798 underline_minimum_offset for underline position.
1e5ecd37 5799
63c125ab
DN
58002008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5801
5802 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5803
5804 * character.c (c_string_width): Specify the type for LEN.
5805
3a8406e1
KH
58062008-12-03 Kenichi Handa <handa@m17n.org>
5807
4ccfa1c0 5808 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5809 (decode_coding_utf_8): Likewise.
4ccfa1c0 5810 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5811 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5812
651df7d9
CY
58132008-12-02 Chong Yidong <cyd@stupidchicken.com>
5814
5815 * keyboard.c (make_lispy_position): Only use PT if the selected
5816 window is current.
5817
1f625c6c
AS
58182008-12-02 Andreas Schwab <schwab@suse.de>
5819
f7741ce9
AS
5820 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5821
1f625c6c
AS
5822 * doprnt.c (doprnt1): Fix size of charbuf.
5823
92bc2678
CY
58242008-12-02 Chong Yidong <cyd@stupidchicken.com>
5825
5826 * keyboard.c (timer_check): Revert last change.
5827
93b9e8cc
JB
58282008-12-02 Juanma Barranquero <lekktu@gmail.com>
5829
5830 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5831
fd7a37d5
JB
58322008-12-01 Juanma Barranquero <lekktu@gmail.com>
5833
5834 * makefile.w32-in: Update dependencies.
5835 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5836
c115043b
AS
58372008-12-01 Andreas Schwab <schwab@suse.de>
5838
5839 * font.c (register_font_driver): Use xmalloc.
5840 (font_put_frame_data): Likewise.
5841
f5668d2a
CY
58422008-12-01 Chong Yidong <cyd@stupidchicken.com>
5843
860d96be
CY
5844 * xfaces.c (realize_x_face): Make abort condition clearer.
5845
f5668d2a
CY
5846 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5847
379c17e7
CY
58482008-11-30 Chong Yidong <cyd@stupidchicken.com>
5849
5850 * keyboard.c (timer_check): After a timer runs, ensure that the
5851 selected window's buffer is current.
5852
35f36d65
JB
58532008-11-30 Juanma Barranquero <lekktu@gmail.com>
5854
f952c61c
JB
5855 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5856 It was accidentally restored by the Unicode merge.
5857
35f36d65
JB
5858 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5859
b23077df
JB
58602008-11-29 Juanma Barranquero <lekktu@gmail.com>
5861
5862 * w32proc.c: Include "coding.h".
5863 (Fw32_short_file_name): Encode filename passed to Windows API.
5864 (Fw32_long_file_name): Encode filename passed to Windows API and
5865 decode back the result. (Bug#1433)
5866
b8ebe9dd
KH
58672008-11-29 Kenichi Handa <handa@m17n.org>
5868
8cc53f96
KH
5869 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5870 not before accessing it.
5871
b8ebe9dd
KH
5872 * charset.c (Fdefine_charset_internal): After calculating
5873 min_char, max_char, and fastmap, copy the charset structure again.
5874 (encode_char): Fix the previous change.
5875
59bc82c0
SZ
58762008-11-28 Seiji Zenitani <zenitani@mac.com>
5877
5878 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5879
5880 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5881
5882 * nsterm.m (x_set_frame_alpha): New function.
5883
32247e3d
EZ
58842008-11-27 Eli Zaretskii <eliz@gnu.org>
5885
5886 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5887
b003e5ff
JB
58882008-11-27 Juanma Barranquero <lekktu@gmail.com>
5889
5890 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5891 pointer to check_face_name.
5892
708550f5
KH
58932008-11-27 Kenichi Handa <handa@m17n.org>
5894
5895 * category.h (SET_CATEGORY_SET): Call set_category_set.
5896 (set_category_set): Extern it.
5897
5898 * category.c (hash_get_category_set): New function.
5899 (Fmodify_category_entry): Adjusted for the change of
5900 char_table_ref_and_range. Call hash_get_category_set to get a
5901 category set to store in the table.
5902
5903 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5904 Funify_charset.
5905
2ae37cf0 5906 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5907 (DECODE_CHAR): Check if the decoder vector is ready.
5908 (ENCODE_CHAR): Check if the encoder char-table is ready.
5909 (maybe_unify_char): Extern it.
5910
5911 * charset.c (Vchar_unified_charset_table): Delete it.
5912 (inhibit_load_charset_map): New variable.
5913 (temp_charset_work): New variable.
5914 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5915 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5916 New macros.
5917 (load_charset_map): Meaning of control_flag changed. If
5918 inhibit_load_charset_map is nonzero, setup a table in
5919 temp_charset_work.
5920 (load_charset): New argument control_flag.
5921 (map_charset_for_dump): New function.
5922 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5923 map_charset_for_dump.
5924 (Fdefine_charset_internal): If the charset method is MAP, load
5925 mapping tables by calling load_charset.
5926 (Funify_charset): Don't load a mapping table but directly set
5927 Vchar_unify_table.
5928 (maybe_unify_char): New function.
5929 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5930 Handle the case of inhibit_load_charset_map being nonzero.
5931 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5932 Handle the case of inhibit_load_charset_map being nonzero.
5933 (Fclear_charset_maps): Just free temp_charset_work.
5934 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5935 variable.
5936
5937 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5938 change of char_table_ref_and_range.
5939 (char_table_ref_and_range): Change the meaning of argument FROM
5940 and TO. Now the caller must provide initial values for *FROM
5941 and *TO.
5942
5943 * fontset.c (fontset_add): Adjusted for the change of
5944 char_table_ref_and_range.
5945 (fontset_get_font_group): Likewise.
5946 (Ffontset_info): Likewise.
5947
5948 * keymap.c (describe_vector): Adjusted for the change of
5949 char_table_ref_and_range. For char-table, put boundary between
5950 non-ASCII and 8-bit characters.
5951
5952 * print.c (print_object): For bool-vector, delete unnecessary
5953 check of ASCII_BYTE_P.
5954
9196133b
JR
59552008-11-26 Jason Rumney <jasonr@gnu.org>
5956
5957 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5958 leading in font height. (Bug#879)
9196133b 5959
9f688acf
GM
59602008-11-26 Glenn Morris <rgm@gnu.org>
5961
5962 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5963 redefinition with ifdef. (Bug#1383)
5964
90d19aff
AR
59652008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5966
5967 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5968
4ccfa1c0 59692008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5970
5971 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5972 New EmacsView methods.
5973 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5974 Fixes bug #1048,1357,1414.
5975
59762008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5977
5978 Fix bug #1362.
5979 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5980 is not an indexed color.
5981 * nsterm.m (free_indexed_color): Add argument checking.
5982 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5983
e7d5ecb3
CY
59842008-11-24 Chong Yidong <cyd@stupidchicken.com>
5985
5986 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5987 Document confirm-after-completion value for
5988 minibuffer-completion-confirm.
5989
c285743c
JR
59902008-11-24 Jason Rumney <jasonr@gnu.org>
5991
5992 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5993 warning.
5994
b0857706
JR
59952008-11-23 Jason Rumney <jasonr@gnu.org>
5996
5997 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5998 restored before returning.
5999
6000 * w32font.c (check_face_name): New function.
6001 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6002 fonts. (Bug#642)
b0857706 6003
ee50ff07
MR
60042008-11-22 Martin Rudalics <rudalics@gmx.at>
6005
6006 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6007 confirm-nonexistent-file-or-buffer in doc-string.
6008
b8ff72fa
SM
60092008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6010
6011 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6012 Fix copy/paste typo. Add checks.
6013
cee53ed4
KH
60142008-11-21 Kenichi Handa <handa@m17n.org>
6015
6016 * coding.c (detect_coding_iso_2022): Reject invalid composition
6017 sequence.
6018 (DECODE_COMPOSITION_START): If the current source is the last
6019 block, and the current composition doesn't end, regard this
6020 sequence as invalid.
6021 (decode_coding_iso_2022): Handle invalid composition sequence.
6022
f6ef1e65
MR
60232008-11-20 Martin Rudalics <rudalics@gmx.at>
6024
6025 * window.c (coordinates_in_window): Don't return
6026 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6027 line when the window is not the rightmost one. (Bug#1372)
6028
e08b1705
MR
60292008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6030
6031 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6032
ad98e89f
EZ
60332008-11-15 Eli Zaretskii <eliz@gnu.org>
6034
6035 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6036 and bright_bg if noninteractive is non-zero.
6037
fb098a4b
CY
60382008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6039
6040 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6041 x_draw_glyph_string_background.
6042
6043 * w32term.c (x_draw_glyph_string): Likewise.
6044
ce952b6e
CY
60452008-11-15 Chong Yidong <cyd@stupidchicken.com>
6046
6047 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6048 the next glyph string once past the overhang width.
6049
6050 * nsterm.m (ns_draw_glyph_string): Likewise.
6051
6052 * w32term.c (x_draw_glyph_string): Likewise.
6053
26ea7079
CY
60542008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6055
6056 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6057 double file close.
6058
1c33c906
MR
60592008-11-14 Martin Rudalics <rudalics@gmx.at>
6060
6061 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6062 dedicated status of window before attempting to display another
6063 buffer in it.
6064
8fc29035
JB
60652008-11-14 Juanma Barranquero <lekktu@gmail.com>
6066
6067 * msdos.c (Fmsdos_long_file_names):
6068 (syms_of_msdos) <dos-unsupported-char-glyph>:
6069 * dosfns.c (Fint86): Fix typos in docstrings.
6070
55fb4286
EZ
60712008-11-14 Eli Zaretskii <eliz@gnu.org>
6072
6073 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6074
3fda0315
KY
60752008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6076
6077 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6078
7e849c17
CY
60792008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6080
6081 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6082
6083 * frame.h: Negative alpha means "don't touch".
6084
6085 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6086
6087 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6088
b9fd67bd
DN
60892008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6090
6091 * hftctl.c:
6092 * chpdef.h:
6093 * acldef.h: Remove files used only for systems no longer supported.
6094
6095 * Makefile.in: Fix .o alphabetical ordering.
6096 (hftctl.o): Remove dependency, file removed.
6097 (keymap.o, print.o): Depend on charset.h.
6098
d5998e03
KH
60992008-11-10 Kenichi Handa <handa@m17n.org>
6100
2ae37cf0 6101 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6102
be70e183
CY
61032008-11-08 Chong Yidong <cyd@stupidchicken.com>
6104
6105 * dired.c (file_name_completion): If completion_ignore_case is
6106 enabled, ignore case when checking completion-regexp-list.
6107
7cf94eac
EZ
61082008-11-08 Eli Zaretskii <eliz@gnu.org>
6109
6110 * vm-limit.c (get_lim_data): Fix last change.
6111
ee107a89
KH
61122008-11-08 Kenichi Handa <handa@m17n.org>
6113
6114 * character.c (Fget_byte): New function.
6115 (syms_of_character): Defsubr Fget_byte.
6116
5fd15622
CY
61172008-11-07 Chong Yidong <cyd@stupidchicken.com>
6118
6119 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6120 cursor position is valid after scrolling.
6121
13d62fad
JB
61222008-11-06 Juanma Barranquero <lekktu@gmail.com>
6123
6124 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6125
a1dd2936
GM
61262008-11-06 Glenn Morris <rgm@gnu.org>
6127
6128 * xterm.c (handle_one_xevent): Don't let popup menus cause
6129 mouse-autoselect-window related window switching. (Bug#1261)
6130
860cd236
CY
61312008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6132
6133 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6134
653a3150
AS
61352008-11-04 Andreas Schwab <schwab@suse.de>
6136
6137 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6138
870f5cac
CY
61392008-11-03 Chong Yidong <cyd@stupidchicken.com>
6140
6141 * xfns.c (Fx_wm_set_size_hint): New function.
6142
1e02f3cb
MR
61432008-11-03 Martin Rudalics <rudalics@gmx.at>
6144
6145 * textprop.c (Fprevious_single_char_property_change): Return 0
6146 when there's no change in a string. (Bug#1301)
6147
e630dfc6
MR
61482008-11-02 Martin Rudalics <rudalics@gmx.at>
6149
6150 * frame.c (do_switch_frame): New argument NORECORD passed to
6151 Fselect_window.
6152 (Fselect_frame): New argument NORECORD passed to
6153 do_switch_frame.
6154 (Fset_frame_selected_window): New argument NORECORD passed to
6155 Fselect_frame.
6156 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6157 in call of do_switch_frame.
6158 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6159 Handle NORECORD argument in call of Fselect_frame.
6160 * lisp.h (do_switch_frame, Fselect_frame)
6161 (Fset_frame_selected_window): Adjust declarations.
6162 * window.c (select_frame_norecord): New function.
6163 (run_window_configuration_change_hook): Use it and call
6164 Fselect_frame with NORECORD set.
6165 (Fselect_window): Pass NORECORD to Fselect_frame.
6166 (Fset_window_configuration): Handle NORECORD argument in call of
6167 do_switch_frame.
6168 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6169 Fset_frame_selected_window.
6170 * keyboard.c (command_loop_1): Handle NORECORD in call of
6171 Fselect_frame (currently ifdefd).
6172
9020b223
GM
61732008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6174
6175 * emacs.c (USAGE2): Untabify.
6176
793ffee8
SM
61772008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6178
6179 * composite.c (fill_gstring_header): Fix copy/paste typo.
6180
ab6d1131
MR
61812008-10-31 Martin Rudalics <rudalics@gmx.at>
6182
6183 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6184 (Fother_window): Rename argument and rewrite doc-string.
6185 (select_window_norecord): Fix return value. (Bug#1276)
6186
601a9cf1
JB
61872008-10-30 Juanma Barranquero <lekktu@gmail.com>
6188
6189 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6190 new frames overriding foreground for tooltips. Based on similar patch
6191 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6192
813b0652
CY
61932008-10-29 Chong Yidong <cyd@stupidchicken.com>
6194
6195 * emacs.c (Fdaemon_initialized): Initialize nfd.
6196
4414f58f
MR
61972008-10-29 Martin Rudalics <rudalics@gmx.at>
6198
6199 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6200 (Fwindow_text_height): Clarify doc-strings.
6201 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6202 doc-string of window-scroll-functions.
6203
ecdcaa09
RS
62042008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6205
6206 * category.c (syms_of_category): Fix typo in docstring.
6207
23fe745a
JB
62082008-10-28 Juanma Barranquero <lekktu@gmail.com>
6209
6210 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6211 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6212 Fix typos in docstrings.
6213
ff808935
DN
62142008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6215
6216 * emacs.c (daemon_pipe): Make non-static.
6217 (IS_DAEMON): Move definition ...
6218 * lisp.h (IS_DAEMON): ... here.
6219 (daemon_pipe): Declare.
6220 (is_daemon): Remove.
6221 * dispnew.c (init_display): Use IS_DAEMON.
6222
fc012771
SM
62232008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6224
6225 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6226 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6227
6228 * emacs.c (is_daemon): Remove.
6229 (main): Don't set is_daemon.
6230 (IS_DAEMON): New macro.
6231 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6232 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6233 parent exits.
6234 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6235
d8bdbe6f
CY
62362008-10-27 Chong Yidong <cyd@stupidchicken.com>
6237
d1a072bf
CY
6238 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6239 over-sized glyph, draw it with the default glyph width.
6240
e2e325aa
CY
6241 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6242 glyph, draw it with the default glyph width.
6243
6244 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6245 glyph, draw it with the default glyph width.
6246
d8bdbe6f
CY
6247 * xdisp.c (try_scrolling): When computing the distance from the
6248 scroll margin to PT, try moving some distance past the window
6249 bottom before giving up.
6250
7bfac547
MR
62512008-10-27 Martin Rudalics <rudalics@gmx.at>
6252
6253 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6254 (Fset_window_buffer): Explain in doc-string that a window can be
6255 "strongly" dedicated to its buffer.
6256
4ff029f6
DN
62572008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6258
6259 * emacs.c (daemon_name): New variable.
6260 (main): Deal with --daemon=SERVER_NAME.
6261 (Fdaemonp): Return a name if one was passed to --daemon.
6262
5790ef40
DN
62632008-10-26 Romain Francoise <romain@orebokech.com>
6264
f9bd0df9 6265 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6266 (main): Create a pipe before forking, make the parent exit only after
6267 the child has closed its end of the pipe. Move closing the
6268 descriptors ...
6269 (Fdaemon_initialized): ... here. New function.
6270
f5385255
SM
62712008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6272
4d632321
SM
6273 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6274 the previous unoptimized table.
6275
f5385255
SM
6276 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6277 the distinction between non-nil and non-t value of `dedicated'.
6278
6c56a0f3
CY
62792008-10-25 Chong Yidong <cyd@stupidchicken.com>
6280
6281 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6282 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6283
fec89261
MR
62842008-10-25 Martin Rudalics <rudalics@gmx.at>
6285
6286 * window.c (Fget_buffer_window, Fdelete_windows_on)
6287 (Freplace_buffer_in_windows): Make buffer argument optional and
6288 rename to buffer_or_name.
6289
34fcddd0
CY
62902008-10-24 Chong Yidong <cyd@stupidchicken.com>
6291
f5385255
SM
6292 * xdisp.c (handle_single_display_spec, handle_display_prop):
6293 Undo 2005-05-16 change.
34fcddd0
CY
6294 (handle_stop): Pop iterator if it's loaded with an empty string.
6295 (get_overlay_strings_1): Don't save iterator if it's loaded with
6296 an empty string (bug#1201).
6297
064766f2
KH
62982008-10-24 Kenichi Handa <handa@m17n.org>
6299
6300 * ftfont.c (ftfont_otf_features): Fix previous change.
6301 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6302 calling ftfont_otf_features.
6303
f9bd0df9 63042008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6305
6306 * font.c (font_match_p): Fix for the case that a vector of
6307 characters is in script-representative-chars.
6308
1dae9197
MA
63092008-10-24 Michael Albinus <michael.albinus@gmx.de>
6310
6311 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6312 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6313 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6314 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6315 macro. (Bug#1186)
1dae9197 6316
f9bd0df9 63172008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6318
6319 * s/sol2-10.h: New file.
6320
878a4584
JB
63212008-10-23 Juanma Barranquero <lekktu@gmail.com>
6322
6323 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6324 poor beast has survived 9+ years and the jump from xterm.c!).
6325
cd265ca6
MR
63262008-10-23 Martin Rudalics <rudalics@gmx.at>
6327
6328 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6329 Reword doc-string.
f5385255 6330 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6331
472a4dc9
JB
63322008-10-23 Juanma Barranquero <lekktu@gmail.com>
6333
6334 * character.c (syms_of_character) <script-representative-chars>:
6335 <unicode-category-table>: Doc fixes.
6336
159bd5a2
NF
63372008-10-23 Noah Friedman <friedman@splode.com>
6338
6339 * coding.c (make_conversion_work_buffer): Check that
6340 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6341 Fget_buffer_create.
6342
49f9c344
KH
63432008-10-23 Kenichi Handa <handa@m17n.org>
6344
6345 * font.c (font_add_log): Check the values of extra properties.
6346
12bb3111
MR
63472008-10-22 Martin Rudalics <rudalics@gmx.at>
6348
6349 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6350 Reword doc-string.
6351 (Fset_window_parameter): Use NILP.
6352 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6353 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6354
bbeb4e99
JB
63552008-10-22 Juanma Barranquero <lekktu@gmail.com>
6356
6357 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6358
63592008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6360
6361 * nsfns.m (ns_appkit_version): New function.
6362 (x-server-version): Use it.
6363 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6364 (x-server-vendor): Don't check_ns().
6365
6366 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6367
a9b555d3
JB
63682008-10-22 Juanma Barranquero <lekktu@gmail.com>
6369
6370 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6371 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6372
4626499f
KH
63732008-10-22 Kenichi Handa <handa@m17n.org>
6374
e3681952
KH
6375 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6376 scripts.
6377
4626499f
KH
6378 * category.c (word_boundary_p): Check scripts instead of charset.
6379 Handle nil value in word-separating-categories and
6380 word-combining-categories.
6381 (syms_of_category): Fix docstrings of word-separating-categories
6382 and word-combining-categories.
6383
1560f91a
EZ
63842008-10-21 Eli Zaretskii <eliz@gnu.org>
6385
6386 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6387 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6388
f4668441
MR
63892008-10-21 Martin Rudalics <rudalics@gmx.at>
6390
6391 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6392 Rename arg "buffer" to "buffer_or_name".
6393 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6394 it optional.
6395 (no_switch_window): Remove since the return value is not used.
a9b555d3 6396 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6397 Consider window as dedicated when Fwindow_dedicated_p returns a
6398 non-nil value.
6399 * lisp.h: Remove prototype for no_switch_window.
6400
fd75ddb2
JD
64012008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6402
6403 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6404 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6405
07295713
KH
64062008-10-21 Kenichi Handa <handa@m17n.org>
6407
6408 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6409 check Vlatin_extra_code_table.
6410
712adc82
EZ
64112008-10-20 Eli Zaretskii <eliz@gnu.org>
6412
6413 * fileio.c (Fset_file_modes): Doc fix.
6414
f549eb0b
MA
64152008-10-19 Michael Albinus <michael.albinus@gmx.de>
6416
6417 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6418 in arrays.
6419
aac0c6e3
MR
64202008-10-19 Martin Rudalics <rudalics@gmx.at>
6421
6422 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6423 Mention kill-buffer in doc-string.
6424 (Fset_window_buffer): Reinsert tem check removed in last commit.
6425 (Fenlarge_window, Fshrink_window): Have argument names and
6426 doc-string follow Elisp manual more closely.
6427
64282008-10-18 Eli Zaretskii <eliz@gnu.org>
6429
6430 * fileio.c (Fset_file_modes): Doc fix.
6431
64322008-10-18 Martin Rudalics <rudalics@gmx.at>
6433
6434 * window.c (Fwindow_width, Fset_window_start)
6435 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6436 (Fdelete_windows_on, Freplace_buffer_in_windows):
6437 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6438 (Fwindow_dedicated_p): Make window argument optional.
6439 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6440 (Fset_window_buffer): Respect any non-nil dedicated value for
6441 window. Rename "buffer" argument to "buffer_or_name".
6442
64432008-10-18 Ulrich Mueller <ulm@gentoo.org>
6444
6445 * m/sh3.h: New file, machine description for SuperH.
6446
64472008-10-17 Martin Rudalics <rudalics@gmx.at>
6448
6449 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6450
64512008-10-17 Kenichi Handa <handa@m17n.org>
6452
6453 * ftfont.c (ftfont_otf_features): Fix indexing
6454 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6455
64562008-10-16 Magnus Henoch <mange@freemail.hu>
6457
6458 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6459 (Fdbus_call_method_asynchronously): Ditto.
6460 This change makes C-h f display the argument list.
6461
64622008-10-16 Chong Yidong <cyd@stupidchicken.com>
6463
6464 * fileio.c (Fexpand_file_name): Doc fix.
6465
6466 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6467 of :foreground and :background equivalent to unspecified (20.x
6468 compatibility).
6469
64702008-10-15 Eli Zaretskii <eliz@gnu.org>
6471
6472 * buffer.c (syms_of_buffer): Doc fix.
6473
64742008-10-14 Kenichi Handa <handa@m17n.org>
6475
6476 * font.c (font_clear_prop): When clearing font width, clear the
6477 average width field too.
6478
64792008-10-12 Andreas Schwab <schwab@suse.de>
6480
6481 * ftfont.c (ftfont_shape_by_flt): Make static.
6482 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6483
6484 * font.c: Don't include <m17n-flt.h>.
6485
64862008-10-10 Eli Zaretskii <eliz@gnu.org>
6487
6488 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6489
64902008-10-09 Eli Zaretskii <eliz@gnu.org>
6491
6492 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6493 away code.
6494
64952008-10-09 Chong Yidong <cyd@stupidchicken.com>
6496
6497 * dispnew.c (update_text_area): Avoid looping due to large glyph
6498 overhangs (bug#1070).
6499
65002008-10-09 Kenichi Handa <handa@m17n.org>
6501
6502 * fontset.c (face_for_char): If face->fontset is negative, just
6503 return ascii_face.
6504
f5385255
SM
6505 * font.c (font_delete_unmatched): Fix previous change.
6506 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6507
65082008-10-09 Martin Rudalics <rudalics@gmx.at>
6509
6510 * frame.c (Fraise_frame): On text-only terminals select frame in
6511 order to make it visible. (Bug#1061)
6512
65132008-10-08 Chong Yidong <cyd@stupidchicken.com>
6514
6515 * fontset.c (fontset_find_font): Check frame validity.
6516
65172008-10-07 Chong Yidong <cyd@stupidchicken.com>
6518
a9b555d3 6519 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6520 (xg_display_close): Allow Emacs to close all displays (bug#985).
6521
65222008-10-06 Andreas Schwab <schwab@suse.de>
6523
f5385255 6524 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6525
65262008-10-06 Chong Yidong <cyd@stupidchicken.com>
6527
f5385255 6528 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6529
a9b555d3 6530 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6531
6532 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6533 during initialization.
6534
65352008-10-04 Eli Zaretskii <eliz@gnu.org>
6536
6537 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6538 whole thing on MSDOS frames as well as on a TTY.
6539
6540 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6541 well as for TTY.
6542 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6543 well as on a TTY.
6544
6545 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6546 as well as for TTY.
6547
6548 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6549
6550 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6551 MSDOS frames as well.
6552
65532008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6554
6555 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6556 correct arguments.
b71ac3dd 6557 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6558
65592008-10-03 Glenn Morris <rgm@gnu.org>
6560
6561 * emacs.c (USAGE1): Add --daemon.
6562
65632008-10-02 Eli Zaretskii <eliz@gnu.org>
6564
6565 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6566 100, so it's in percents as advertised.
6567
65682008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6569
6570 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6571 (ns_output.current_cursor, ns_output.desired_cursor)
6572 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6573 (FRAME_NEW_CURSOR_COLOR): Remove.
6574
6575 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6576 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6577 enumeration (HOLLOW_BOX_CURSOR, etc.).
6578
6579 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6580 (draw_window_cursor): Simplify code.
f5385255
SM
6581 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6582 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6583 updates manually.
a9b555d3
JB
6584 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6585 Use core Emacs cursor types.
aac0c6e3 6586
b8ff72fa 6587 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6588
65892008-10-02 Martin Rudalics <rudalics@gmx.at>
6590
6591 * process.c (Faccept_process_output): Fix doc-string.
6592
65932008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6594
6595 * gmalloc.c (__sbrk): Also define for uClibc.
6596
6597 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6598 for uClibc.
6599
66002008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6601
6602 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6603 styles.
6604 (nsfont_open): Reenable the cache.
6605
66062008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6607
6608 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6609 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6610
66112008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6612
6613 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6614 a suspended terminal.
6615
66162008-09-30 Michael Albinus <michael.albinus@gmx.de>
6617
6618 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6619
66202008-09-30 Eli Zaretskii <eliz@gnu.org>
6621
6622 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6623
66242008-09-30 Chong Yidong <cyd@stupidchicken.com>
6625
6626 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6627 in a continued line coincides with a line beginning.
6628
66292008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6630
6631 * nsfont.m (nsfont_trait_distance): Fix bug.
6632 (nsfont_list): Return a list rather than a vector (syncs with Handa
6633 changes of 2008-05-14).
6634 (nsfont_open): Improve logging.
6635
66362008-09-29 Andreas Schwab <schwab@suse.de>
6637
6638 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6639
66402008-09-28 Martin Rudalics <rudalics@gmx.at>
6641
6642 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6643 name as char-resolve-modifiers.
6644 Reported by: Markus Triska <markus.triska@gmx.at>
6645
66462008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6647
6648 * dispnew.c (init_display): Return earlier when running as a daemon.
6649
66502008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6651
6652 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6653
66542008-09-27 Eli Zaretskii <eliz@gnu.org>
6655
6656 * composite.c (Fcomposition_get_gstring)
6657 (Fcompose_region_internal, Fcompose_string_internal)
6658 (Ffind_composition_internal): Doc fix.
6659 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6660 (syms_of_composite) <auto-composition-function>: Doc fix.
6661 (syms_of_composite) <composition-function-table>: Doc fix.
6662
66632008-09-25 Chong Yidong <cyd@stupidchicken.com>
6664
6665 * search.c (wordify): New argument for lax word-ends.
6666 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6667
66682008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6669
6670 * lisp.h (is_daemon): Declare.
6671 * dispnew.c (init_display): Do not try to initialize the terminal
6672 when running as a daemon.
6673
66742008-09-22 Chong Yidong <cyd@stupidchicken.com>
6675
6676 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6677 x_display_pixel_height.
6678
66792008-09-22 Martin Rudalics <rudalics@gmx.at>
6680
6681 * undo.c (record_point): Don't call Fundo_boundary for first
6682 change. (Bug#731)
6683
66842008-09-22 Juanma Barranquero <lekktu@gmail.com>
6685
6686 * emacs.c (Fdaemonp): Doc fix.
6687
66882008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6689
6690 * emacs.c (main): Place #ifdef in the proper place.
6691
66922008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6693
6694 * emacs.c (standard_args): Add --daemon.
6695 (main): Disconnect from the terminal when --daemon is passed.
6696 (is_daemon): New variable.
6697 (Fdaemonp): New function.
6698 (syms_of_emacs): Defsubr it.
6699
67002008-09-20 Chong Yidong <cyd@stupidchicken.com>
6701
6702 * xdisp.c (get_next_display_element): Handle string display
6703 correctly when checking for the end of a box run.
6704
67052008-09-20 Glenn Morris <rgm@gnu.org>
6706
6707 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6708 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6709 (Frename_file): Avoid copying to trash if a rename involves
6710 a delete. (Bug#964).
6711
67122008-09-20 Eli Zaretskii <eliz@gnu.org>
6713
6714 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6715 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6716 frames as well as termcap frames.
6717 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6718 get_named_tty.
6719
67202008-09-19 Eli Zaretskii <eliz@gnu.org>
6721
6722 * process.c (procfs_system_process_attributes): Fix cmdline in
6723 case /proc/PID/cmdline is empty.
6724
6725 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6726 x_display_pixel_height.
6727
67282008-09-19 Juanma Barranquero <lekktu@gmail.com>
6729
6730 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6731
6732 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6733 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6734
67352008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6736
6737 * dispextern.h (struct it): Move line_wrap away from the middle of
6738 bitfields. Move voffset in struct iterator_stack_entry after the
6739 bitfields. Move tab_width near after another short.
6740
67412008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6742
6743 * frame.h (struct frame): Move alpha from the middle of bitfields.
6744
6745 * window.h (struct window): Move frozen_window_start_p after the
6746 rest of the bitfields to reduce padding.
6747
67482008-09-18 Chong Yidong <cyd@stupidchicken.com>
6749
6750 * xterm.h (x_display_info): Remove `height' and `width' members.
6751
6752 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6753
6754 * w32term.h (w32_display_info): Remove `height', `width',
6755 `height_in', and `width_in' members.
6756
b8ff72fa
SM
6757 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6758 New functions.
aac0c6e3
MR
6759 (x_calc_absolute_position): Use them.
6760 (x_term_init): Omit removed `height' and `width' members.
6761
b8ff72fa
SM
6762 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6763 New functions.
aac0c6e3
MR
6764 (w32_read_socket, x_calc_absolute_position): Use them.
6765 (w32_initialize_display_info, w32_term_init): Omit removed members
6766 of w32_display_info.
6767
b8ff72fa
SM
6768 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6769 New functions.
6770 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6771
b8ff72fa
SM
6772 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6773 New functions.
aac0c6e3
MR
6774 (x_calc_absolute_position): Use them.
6775 (x_term_init): Omit removed `height' and `width' members.
6776
6777 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6778 (compute_tip_xy):
6779 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6780 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6781 x_display_pixel_width.
6782
67832008-09-18 Kenichi Handa <handa@m17n.org>
6784
6785 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6786 (composition_compute_stop_pos): Fix handling of static composition.
6787 (Fcomposition_get_gstring): Check FROM and TO at first.
6788
67892008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6790
46e722a9 6791 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6792 mixup (YAILOM).
6793
67942008-09-17 Chong Yidong <cyd@stupidchicken.com>
6795
6796 * indent.c (Fvertical_motion): Use position reported by iterator
6797 instead of PT for determining screen motion (bug#943).
6798
67992008-09-17 Romain Francoise <romain@orebokech.com>
6800
6801 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6802
68032008-09-17 Kenichi Handa <handa@m17n.org>
6804
6805 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6806
6807 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6808 if necessary.
6809
68102008-09-16 Kenichi Handa <handa@m17n.org>
6811
6812 * coding.c (make_conversion_work_buffer): Avoid calling
6813 Fget_buffer_create if it is not necessary.
6814
68152008-09-15 Martin Rudalics <rudalics@gmx.at>
6816
6817 * window.c (Fselect_window): Don't update window_select_count and
6818 use_time when norecord is not nil.
6819
68202008-09-14 Kenichi Handa <handa@m17n.org>
6821
6822 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6823 specpdl_ptr.
6824
68252008-09-12 Kenichi Handa <handa@m17n.org>
6826
6827 * indent.c (scan_for_column): Don't handle automatic composition
6828 if the current buffer is not associated with a window.
6829
6830 * composite.c (composition_reseat_it): If the current buffer is
6831 not associated with a window, ignore the automatic composition.
6832 (find_automatic_composition): Likewise.
6833
68342008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6835
6836 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6837 (Fgpm_mouse_stop): Use it.
6838 * termhooks.h (close_gpm): Declare.
6839 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6840 connection if Gpm_GetEvent fails.
6841
6842 * window.c (set_window_buffer): Always preserve current-buffer.
6843
68442008-09-12 Glenn Morris <rgm@gnu.org>
6845
6846 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6847
68482008-09-11 Glenn Morris <rgm@gnu.org>
6849
6850 * charset.c (charset-map-path): Doc fix.
6851
68522008-09-10 Kenichi Handa <handa@m17n.org>
6853
6854 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6855
6856 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6857 compose a grapheme cluster with the preceding base glyph.
6858
6859 * composite.c (composition_compute_stop_pos): Fix previous change.
6860 Reset cmp_it->id to -1 at first.
6861
68622008-09-10 Glenn Morris <rgm@gnu.org>
6863
6864 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6865
68662008-09-09 Chong Yidong <cyd@stupidchicken.com>
6867
6868 * keyboard.c (read_key_sequence): Reapply translation maps when
6869 switching keyboards.
6870
68712008-09-09 Kenichi Handa <handa@m17n.org>
6872
6873 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6874 characters.
6875
6876 * composite.c (FORWARD_CHAR): Fix calculation
6877 of (POSITION).pos_byte.
6878 (composition_compute_stop_pos): Limit the search of composition to
6879 at most 500 characters ahead. If we reach the limit or find a
6880 newline, set cmp_it->ch to -2 and return 0.
6881 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6882
68832008-09-08 Kenichi Handa <handa@m17n.org>
6884
6885 * indent.c (Fvertical_motion): Be sure to set
6886 it_overshoot_expected if it.cmp_it.id is non-negative.
6887
68882008-09-07 Andreas Schwab <schwab@suse.de>
6889
6890 * callproc.c (Fcall_process): Don't hold references to string data
6891 across garbage collection. Move initialisation of new_argv down
6892 to avoid compiler bug.
6893
68942008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6895
6896 * process.c (Fsystem_process_attributes): Doc fix.
6897
68982008-09-07 Chong Yidong <cyd@stupidchicken.com>
6899
6900 * callproc.c (Fcall_process): Canonicalize current directory name.
6901
6902 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6903 iterator advances to the next line if the current line ends in a
6904 continued tab.
6905
69062008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6907
6908 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6909 member to point to cmp_from.
6910
6911 * xdisp.c: Doc fix for references to gidx data member.
6912
69132008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6914
6915 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6916
69172008-09-07 Kenichi Handa <handa@m17n.org>
6918
6919 * composite.c (FORWARD_CHAR): Check STOP after
6920 incrementing (POSITION).pos.
6921
69222008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6923
6924 * process.c (Fsystem_process_attributes): Doc fix.
6925
69262008-09-06 Chong Yidong <cyd@stupidchicken.com>
6927
6928 * keyboard.c (Ftop_level): Doc fix.
6929
69302008-09-06 Eli Zaretskii <eliz@gnu.org>
6931
6932 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6933 minibuffer, don't let lower part of menu invade the echo area.
6934
6935 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6936 "char *q" to access menu text and advance through it. Revert the
6937 change that displayed ">" instead of ASCII character 0x10.
6938
69392008-09-05 Eli Zaretskii <eliz@gnu.org>
6940
6941 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6942 toggle boxes and radio buttons on MS-DOS as well.
6943
69442008-09-05 Kenichi Handa <handa@m17n.org>
6945
6946 * composite.c (autocmp_chars): Check lookback count.
6947 (composition_compute_stop_pos): Set cmp_it->lookback.
6948 (composition_reseat_it): Check lookback count.
6949 (struct position_record): New struct.
6950 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6951 (find_automatic_composition): New function.
6952 (composition_adjust_point): Use find_automatic_composition.
6953
6954 * dispextern.h (struct composition_it): New member lookback.
6955
69562008-09-02 Chong Yidong <cyd@stupidchicken.com>
6957
6958 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6959 if moving by a single line.
6960
69612008-09-02 Andreas Schwab <schwab@suse.de>
6962
6963 * xterm.c (x_delete_display): Fix merge error.
6964
6965 * fileio.c (Fexpand_file_name): Remove unused variables.
6966
69672008-09-02 Eli Zaretskii <eliz@gnu.org>
6968
6969 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6970 storage on all platforms, not just on DOS_NT.
6971
69722008-09-02 Jason Rumney <jasonr@gnu.org>
6973
b8ff72fa
SM
6974 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6975 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6976
69772008-09-01 Chong Yidong <cyd@stupidchicken.com>
6978
6979 * xfaces.c (Finternal_set_alternative_font_family_alist)
6980 (Finternal_set_alternative_font_registry_alist): Properly copy
6981 entire alist structure.
6982
69832008-09-01 Kenichi Handa <handa@m17n.org>
6984
d66c0241 6985 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6986 representative chars of the script is a vector.
d66c0241
JB
6987 (ftfont_list): Handle the case where the representative chars of
6988 the script is a vector.
aac0c6e3
MR
6989
6990 * character.c (syms_of_character): Docstring of
6991 script-representative-chars fixed.
6992
69932008-08-31 Eli Zaretskii <eliz@gnu.org>
6994
6995 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6996 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6997 the menu. Allocate larger buffer for `text', to account for
6998 possible ^C characters.
6999
70002008-08-31 Martin Rudalics <rudalics@gmx.at>
7001
7002 * xdisp.c (prepare_menu_bars): Don't call
7003 Vwindow_size_change_functions with arg Qt.
7004
70052008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7006
7007 * font.h (font_range):
7008 * fileio.c (report_file_error):
46e722a9
SM
7009 * composite.c (composition_update_it): Yet another int/Lisp_Object
7010 mixup (YAILOM).
aac0c6e3
MR
7011
70122008-08-30 Glenn Morris <rgm@gnu.org>
7013
7014 * data.c (Fmake_variable_frame_local): Doc fix.
7015
7016 * frame.c (Fmodify_frame_parameters): Doc fix.
7017
70182008-08-30 Eli Zaretskii <eliz@gnu.org>
7019
7020 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7021 needed by GetTokenInformation.
7022 (w32_system_process_attributes): Check return values of all system
7023 APIs.
7024
7025 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7026 only when the state changes.
7027 (IT_update_begin, IT_update_end): Add termscript trace.
7028
7029 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7030 clipboard is unavailable. Set dst to NULL if it doesn't point to
7031 malloc'ed data.
7032 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7033 passing random values to xfree.
7034
7035 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7036 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7037
70382008-08-29 Jason Rumney <jasonr@gnu.org>
7039
7040 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7041
70422008-08-29 Eli Zaretskii <eliz@gnu.org>
7043
7044 * composite.c (fill_gstring_body): Avoid compiler warnings.
7045
7046 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7047 LGLYPH_SET_CODE to avoid compiler warnings.
7048
2ae37cf0 7049 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7050
7051 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7052
7053 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7054 LGLYPH_SET_CODE.
7055
70562008-08-29 Kenichi Handa <handa@m17n.org>
7057
7058 * fileio.c (report_file_error): Don't downcase the first character
7059 of errstring if it is still unibyte.
7060
70612008-08-29 Kenichi Handa <handa@m17n.org>
7062
7063 These changes are to re-implement the automatic composition so
7064 that it doesn't use text properties.
7065
7066 * Makefile.in (ftfont.o): Depend on composite.h.
7067 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7068
7069 * character.h (Vunicode_category_table): Extern it.
7070
7071 * character.c (Vunicode_category_table): New variable.
7072 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7073
7074 * chartab.c (optimize_sub_char_table): Perform more greedy
7075 optimization.
7076
b8ff72fa
SM
7077 * composite.h (enum composition_method):
7078 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7079 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7080 (Vcomposition_function_table): Extern it.
7081 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7082 (composition_gstring_put_cache, composition_gstring_from_id)
7083 (composition_gstring_p, composition_gstring_width)
7084 (composition_compute_stop_pos, composition_reseat_it)
7085 (composition_update_it, composition_adjust_point): Extern them.
7086 (Fcomposition_get_gstring): EXFUN it.
7087
d66c0241 7088 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7089 (Vcomposition_function_table)
7090 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7091 (gstring_hash_table, gstring_work, gstring_work_headers):
7092 New variables.
aac0c6e3
MR
7093 (gstring_lookup_cache, composition_gstring_put_cache)
7094 (composition_gstring_from_id, composition_gstring_p)
7095 (composition_gstring_width, fill_gstring_header)
7096 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7097 (composition_reseat_it, composition_update_it)
b8ff72fa 7098 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7099 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7100 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7101 Defsubr composition_get_gstring.
aac0c6e3
MR
7102
7103 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7104 cmp_id.
7105 (struct glyph_string): Delete the member gidx. New members
7106 cmp_id, cmp_from, and cmp_to.
7107 (enum it_method): Delete GET_FROM_COMPOSITION.
7108 (struct composition_it): New struct.
7109 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7110 Delete c, len, cmp_id, cmp_len in u.comp.
7111
7112 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7113 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7114 (enum lglyph_indices): Likewise.
b8ff72fa 7115 (font_range): Adjust extern.
aac0c6e3
MR
7116 (font_fill_lglyph_metrics): Extern it.
7117
7118 * font.c (QCf): New variable.
7119 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7120 (font_prepare_composition): Delete this function.
7121 (font_range): Type and arguments changed.
7122 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7123 (font_fill_lglyph_metrics): New function.
b8ff72fa 7124 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7125 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7126 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7127 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7128
7129 * fontset.h (font_for_char): Extern it.
7130
7131 * fontset.c (font_for_char): New function.
7132
7133 * ftfont.c: Include composite.h.
7134 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7135 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7136
7137 * indent.c: Include composite.h and dispextern.h.
7138 (check_composition): Delete this function.
7139 (scan_for_column): Handle composition by
7140 composition_compute_stop_pos, composition_reseat_it, and
7141 composition_update_it.
7142 (compute_motion): Likewise.
7143 (Fvertical_motion): Fix checking of composition.
7144
7145 * keyboard.c (adjust_point_for_property): Check composition by
7146 composition_adjust_point.
7147
b8ff72fa 7148 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7149 struct glyph_string.
7150
b8ff72fa
SM
7151 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7152 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7153 struct glyph.
7154 (produce_composite_glyph): Likewise.
7155
b8ff72fa
SM
7156 * w32term.c (x_draw_composite_glyph_string_foreground):
7157 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7158 (x_draw_glyph_string): Likewise.
7159
7160 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7161 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7162
7163 * xdisp.c: Include font.h.
7164 (it_props): Delete the entry for Qauto_composed.
7165 (init_iterator): Initialize it->cmp_it.id to -1.
7166 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7167 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7168 (handle_auto_composed_prop): Delete it.
7169 (handle_composition_prop): Handle only static composition.
7170 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7171 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7172 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7173 (pop_it): Likewise.
7174 (get_next_element): Delete next_element_from_composition.
7175 (CHAR_COMPOSED_P): New macro.
7176 (get_next_display_element): For automatic composition, get a face
7177 from the font in the glyph-string.
7178 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7179 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7180 (next_element_from_string): Check if the character at the current
7181 position is composed by CHAR_COMPOSED_P.
7182 (next_element_from_buffer): Likewise.
d66c0241
JB
7183 (next_element_from_composition): Adjust for the change of struct it.
7184 Update it->cmp_it.
b8ff72fa
SM
7185 (dump_glyph): Adjust for the change of struct glyph.
7186 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7187 it and struct glyph. Don't handle automatic composition here.
7188 (fill_gstring_glyph_string): New function.
7189 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7190 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7191 (BUILD_GSTRING_GLYPH_STRING): New macro.
7192 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7193 automatic composition.
b8ff72fa 7194 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7195 struct glyph.
b8ff72fa 7196 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7197
b8ff72fa 7198 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7199 the change of struct glyph_string.
7200 (x_draw_glyph_string): Likewise.
7201
72022008-08-29 Glenn Morris <rgm@gnu.org>
7203
7204 * buffer.c (word-wrap): Doc fix.
7205 * xdisp.c (truncate-partial-width-windows): Doc fix.
7206 Increase default to 50.
7207
72082008-08-29 Chong Yidong <cyd@stupidchicken.com>
7209
7210 * xdisp.c (update_tool_bar_unwind): New function.
7211 (update_tool_bar): Temporarily set selected frame before building
7212 tool-bar items.
7213
72142008-08-28 Michael Albinus <michael.albinus@gmx.de>
7215
7216 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7217 snprintf, respectively.
7218 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7219
72202008-08-28 Chong Yidong <cyd@stupidchicken.com>
7221
7222 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7223 LDFLAGS to GNUstep CC invocation.
7224
72252008-08-27 Chong Yidong <cyd@stupidchicken.com>
7226
7227 * indent.c (Fvertical_motion): Revert last change. Handle the
7228 general case where we are moving forward, and PT spans multiple
7229 screen lines.
7230
7231 * eval.c (find_handler_clause): Temporarily increase
7232 max-lisp-eval-depth while printing the backtrace buffer, to
7233 guarantee that help-mode code can run.
7234
72352008-08-27 Eli Zaretskii <eliz@gnu.org>
7236
7237 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7238 colors under -rv.
7239 (IT_set_frame_parameters): Don't swap foreground and background
7240 colors if `(reverse . t)' is present in the frame properties.
7241 (internal_terminal_init): Call init_frame_faces only for the
7242 initial frame.
7243
72442008-08-27 Andreas Schwab <schwab@suse.de>
7245
7246 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7247
72482008-08-27 Andreas Schwab <schwab@suse.de>
7249
7250 * search.c (search_buffer): Set char_base to zero only at the end.
7251
72522008-08-27 Kenichi Handa <handa@m17n.org>
7253
b8ff72fa 7254 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7255
72562008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7257
7258 * xterm.c (x_term_init): Temporarily hide the partially
7259 initialized terminal while calling vendor-specific-keysyms.
7260
72612008-08-26 Eli Zaretskii <eliz@gnu.org>
7262
7263 * msdos.c (internal_terminal_init): Most initializations done only
7264 once, especially initial_screen_colors[] and termscript open.
7265
72662008-08-26 Chong Yidong <cyd@stupidchicken.com>
7267
7268 * eval.c (Fcondition_case): Doc fix.
7269
7270 * widgetprv.h (EmacsFramePart): Change font member to the new font
7271 struct.
7272
7273 * widget.c: Include character.h and font.h for XSETFONT.
7274 (setup_frame_gcs): Compute X font id from font struct, just once.
7275
72762008-08-26 Eli Zaretskii <eliz@gnu.org>
7277
7278 * term.c (get_named_tty): Fix last change.
7279
72802008-08-26 Chong Yidong <cyd@stupidchicken.com>
7281
7282 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7283 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7284
72852008-08-25 Eli Zaretskii <eliz@gnu.org>
7286
7287 * frame.c (do_switch_frame): Mark previously displayed frame as
7288 obscured for FRAME_MSDOS_P frames as well.
7289
72902008-08-24 Eli Zaretskii <eliz@gnu.org>
7291
7292 * frame.c (make_terminal_frame): Initialize f->terminal,
7293 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7294 Set the top frame to newly created frame.
7295 (Fmake_terminal_frame): Reuse the_only_display_info.
7296
7297 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7298 estimating available memory.
7299
b97439ce 73002008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7301
7302 * nsterm.m (ns_draw_window_cursor): Don't call
7303 NSDisableScreenUpdates and NSEnableScreenUpdates on
7304 non-NS_IMPL_COCOA systems.
7305
73062008-08-23 Andreas Schwab <schwab@suse.de>
7307
7308 * process.c (procfs_system_process_attributes): Fix use of
7309 uninitialized variables.
7310
73112008-08-23 Eli Zaretskii <eliz@gnu.org>
7312
7313 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7314
7315 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7316 calling tty-set-up-initial-frame-faces.
7317
b8ff72fa
SM
7318 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7319 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7320
7321 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7322 addition to output_termcap.
7323
7324 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7325
7326 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7327 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7328 highlight.
7329
7330 * process.c [!subprocesses]: Define QCname.
7331 (syms_of_process): Intern and staticpro it.
7332
7333 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7334 Adjust for changes in encoding/decoding routines.
7335 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7336 encode_coding and decode_coding.
7337
b8ff72fa 7338 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7339
7340 * dosfns.c: Include frame.h before termhooks.h.
7341 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7342 variable termscript.
7343
7344 * s/msdos.h (USER_FULL_NAME): Define.
7345 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7346
7347 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7348 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7349 pw->pw_gecos.
7350
7351 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7352 SELECTED_FRAME as additional (1st) argument.
7353 (tty_read_avail_input): Handle output_msdos_raw in
7354 addition to output_termcap.
7355
7356 * msdos.c: Include frame.h before termhooks.h.
7357 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7358 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7359 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7360 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7361 (IT_set_terminal_modes, IT_reset_terminal_modes)
7362 (IT_set_frame_parameters): Use tty->termscript instead of a global
7363 variable termscript.
7364 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7365 global variable terminal_coding. Don't refer to
7366 Vnonascii_translation_table.
7367 (internal_terminal_init): Set Vwindow_system in current_kboard.
7368 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7369 Announce date and time of session start, if termscript is open.
7370 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7371 term.c:init_tty). Open termscript only of not already open.
7372 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7373 here instead of dos_ttraw. Don't initialize display if this is an
7374 initial tty. Don't set FRAME_FONT.
7375 (Vwindow_system_version): Bump to 23.
7376 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7377 is available, set up mouse_position_hook.
7378 (dos_ttraw, IT_set_terminal_modes): If called with initial
7379 terminal, do nothing.
7380 (IT_set_frame_parameters): Handle the Qtty_type frame
7381 parameter by calling internal_terminal_init.
7382 (dos_set_window_size, show_mouse_face)
7383 (clear_mouse_face, IT_note_mode_line_highlight)
7384 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7385 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7386 (initialize_msdos_display): New function.
7387 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7388 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7389 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7390 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7391 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7392 (request_sigio, unrequest_sigio): Don't define, now defined on
7393 sysdep.c.
7394 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7395
7396 * term.c [MSDOS]: Include msdos.h.
7397 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7398 conditional to DOS_NT. Allow only one call to this function in a
7399 session. Don't allocate a new struct tty_display_info; instead,
7400 reuse the_only_display_info. Call get_tty_size to get screen
7401 dimensions. Call init_baud_rate to set bad_rate.
7402 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7403 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7404 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7405 (get_tty_terminal, get_named_tty, Ftty_type)
7406 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7407 output_termcap.
b8ff72fa
SM
7408 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7409 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7410 only when subprocesses are supported.
aac0c6e3
MR
7411
7412 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7413 f->output_data.x.
7414 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7415 terminal devices.
7416
5582fbc7 7417 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7418 x_output.
7419 (FRAME_FONT): Use output_data.tty.
7420 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7421 (struct x_display_info): Rename from display_info. Update all users in
7422 msdos.c.
aac0c6e3 7423 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7424 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7425 (dos_ttraw): Update prototype.
7426
7427 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7428 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7429
74302008-08-23 Jason Rumney <jasonr@gnu.org>
7431
7432 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7433 (fn_TIFFSetDirectory): New library function used.
7434 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7435 (tiff_load): Use :index to select among multiple images. Set count
7436 property when multiple images exist.
7437 (gif_format): Use :index, not :image.
7438
74392008-08-23 Chong Yidong <cyd@stupidchicken.com>
7440
7441 * xdisp.c (try_scrolling): Check INT_MAX instead of
7442 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7443 to obtain INT_MAX.
7444
74452008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7446
7447 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7448
74492008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7450
7451 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7452 GNUstep library location.
7453
74542008-08-21 Chong Yidong <cyd@stupidchicken.com>
7455
7456 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7457 before using it.
7458
7459 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7460
74612008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7462
7463 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7464 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7465 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7466 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7467 (EmacsApp-cursor_blink_handler): Remove declaration.
7468 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7469 match 01 Feb 2008 changes in xterm.c.
7470 (ns_read_socket): Add cast to avoid warning.
7471 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7472 GNUstep.
7473
74742008-08-20 Chong Yidong <cyd@stupidchicken.com>
7475
7476 * xselect.c (x_get_foreign_selection): Return nil if desired
7477 selection could not be obtained, instead of signalling an error.
7478
74792008-08-20 David Reitter <david.reitter@gmail.com>
7480
7481 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7482 * nsterm.m: Remove ns-specific code for cursor blinking.
7483 (ns_draw_window_cursor): Clear cursor properly rather than
7484 redrawing the area. Respect width of bar cursors.
7485 These changes enable the use of generic blink-cursor-mode and
7486 generic cursor types in NS and support smooth cursor movements (do
7487 not blink off after command).
7488 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7489 Nextstep, too.
7490
74912008-08-19 Kenichi Handa <handa@m17n.org>
7492
7493 * font.c (Vfont_log_deferred): New variable.
7494 (font_add_log): Check Vfont_log_deferred.
7495 (font_deferred_log): New function.
7496
7497 * font.h (font_deferred_log): Extern it.
7498
7499 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7500 for sorting.
7501 (face_for_char): Use deferred log.
7502
75032008-08-18 Kenichi Handa <handa@m17n.org>
7504
7505 * fontset.c (face_for_char): Add font log.
7506
7507 * font.c (font_add_log): Add the font properties :script, :lang,
7508 and :otf in the log.
7509
75102008-08-17 Chong Yidong <cyd@stupidchicken.com>
7511
7512 * xdisp.c: Remove dead code.
7513 (handle_invisible_prop, next_overlay_string): Defer call to
7514 setup_for_ellipsis.
7515 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7516
75172008-08-15 Chong Yidong <cyd@stupidchicken.com>
7518
7519 * xfaces.c (lookup_derived_face): Properly handle possible zero
7520 return value of get_lface_attributes.
7521 (merge_faces): Don't tell lookup_derived_face to signal an error
7522 if face is not found.
7523
7524 * dired.c (Fdirectory_files): Doc fix.
7525
7526 * process.c (make_process): Initialize kill_without_query struct
7527 member.
7528
75292008-08-15 Eli Zaretskii <eliz@gnu.org>
7530
7531 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7532 Alternative calculation of totphys for Visual Studio 6.
7533
7534 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7535
7536 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7537 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7538 All users changed.
7539 (stat): Only root directory passed to GetDriveType. Allow RAM
7540 disk as well as local fixed disk when w32-get-true-file-attributes
7541 is set to `local'.
7542 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7543 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7544 (w32_cached_id, w32_add_to_cache): New functions.
7545 (get_name_and_id): Look account names in the cache before calling
7546 lookup_account_sid.
7547 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7548 New initialization flags.
7549 (globals_of_w32): Initialize them to zero.
7550 (w32_system_process_attributes): Use w32_cached_id and
7551 w32_add_to_cache.
7552
75532008-08-14 Lawrence Mitchell <wence@gmx.li>
7554
7555 * lread.c (Fread_char, Fread_char_exclusive): If no character
7556 event is read before timeout is reached, return nil, rather than
7557 converting to a number.
7558
75592008-08-14 Chong Yidong <cyd@stupidchicken.com>
7560
7561 * fns.c (use_dialog_box): Doc fix.
7562
7563 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7564 on OS X.
7565
75662008-08-13 Chong Yidong <cyd@stupidchicken.com>
7567
7568 * frame.c (Qns_parse_geometry): New var.
7569 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7570
75712008-08-11 Chong Yidong <cyd@stupidchicken.com>
7572
7573 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7574 space character in calculating tabs.
7575
75762008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7577
7578 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7579
75802008-08-10 Glenn Morris <rgm@gnu.org>
7581
7582 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7583 silence gcc "limited range of data type" warnings in some
7584 make_fixnum_or_float calls.
7585
75862008-08-09 Eli Zaretskii <eliz@gnu.org>
7587
7588 * w32.c (w32_system_process_attributes): If the process does not
7589 exist, return nil.
7590
7591 * w32.c: Include thelp32.h, psapi.h and coding.h.
7592 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7593 declarations.
7594 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7595 (Process32Next_Proc): New typedefs.
7596 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7597 (g_b_init_process32_next, g_b_init_open_thread_token)
7598 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7599 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7600 (g_b_init_get_process_working_set_size)
7601 (g_b_init_global_memory_status_ex): New static variables.
7602 (globals_of_w32): Initialize them.
7603 (create_toolhelp32_snapshot, process32_first, process32_next)
7604 (open_thread_token, impersonate_self, revert_to_self)
7605 (get_process_memory_info, get_process_working_set_size)
7606 (global_memory_status, global_memory_status_ex): New wrapper
7607 functions.
7608 (w32_list_system_processes, w32_system_process_attributes)
7609 (enable_privilege, restore_privilege, ltime, process_times):
7610 New functions.
7611 (convert_time_raw): New function.
7612 (convert_time): Remove conversion of FILETIME into time in 100
7613 nsec units, call convert_time_raw instead.
7614
7615 * process.h (w32_list_system_processes, w32_system_process_attributes):
7616 Add prototypes.
7617 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7618 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7619 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7620 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7621
7622 * process.c (Fsystem_process_attributes): Doc fix.
7623
76242008-08-08 Chong Yidong <cyd@stupidchicken.com>
7625
7626 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7627 a continued multi-char glyph; if so, advance to the actual glyph.
7628
76292008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7630
7631 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7632
7633 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7634 (.m.o): Use it.
7635 * config.in: Regenerate.
7636
76372008-08-07 Chong Yidong <cyd@stupidchicken.com>
7638
7639 * xdisp.c (redisplay_window): Revert last change.
7640 (try_window): Check bottom scroll margin too.
7641
76422008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7643
7644 * config.in: Regenerate.
7645
7646 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7647 -list-load-path-shadows'.
7648 (nsgui.h): Reduce number of things depending on it.
7649
76502008-08-06 Chong Yidong <cyd@stupidchicken.com>
7651
7652 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7653 instead of window-end which does the wrong thing at eob.
7654 (try_cursor_movement): Minor optimization.
7655 (redisplay_window): If scroll margin is defined, don't assume
7656 window doesn't need scrolling.
7657
76582008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7659
7660 * config.in: Regenerate.
7661
7662 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7663 (mostlyclean): Don't delete *.d under NS.
7664
7665 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7666
76672008-08-06 Kenichi Handa <handa@m17n.org>
7668
7669 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7670
76712008-08-06 Andreas Schwab <schwab@suse.de>
7672
7673 * config.in: Regenerate.
7674
76752008-08-05 Chong Yidong <cyd@stupidchicken.com>
7676
7677 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7678 forcing a window start.
7679
7680 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7681 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7682
76832008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7684
7685 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7686 argument.
7687
76882008-08-05 Juanma Barranquero <lekktu@gmail.com>
7689
7690 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7691 <scroll-down-aggressively, before-change-functions>:
7692 <after-change-functions>: Reflow docstrings.
7693
76942008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7695 Ken Raeburn <raeburn@gnu.org>
7696
7697 Dock menu customization, based on a patch by Ken Raeburn, plus some
7698 other fixes.
7699 * nsmenu.m (dockMenu): New variable.
7700 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7701
7702 * nsterm.h (dockMenu): Declare.
7703
7704 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7705 (ns_term_init): Initialize dockMenu.
7706 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7707 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7708 left.
7709
7710 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7711
77122008-08-04 Chong Yidong <cyd@stupidchicken.com>
7713
7714 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7715
7716 * config.in: Regenerate.
7717
77182008-08-04 Seiji Zenitani <zenitani@mac.com>
7719
7720 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7721
77222008-08-04 Chong Yidong <cyd@stupidchicken.com>
7723
7724 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7725
77262008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7727
7728 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7729
7730 * keyboard.h: Comment an #endif.
7731
7732 * lisp.h (have_menus_p): Adjust comment.
7733
7734 * menu.c (find_and_return_menu_selection): Fix comparison with
7735 client_data.
7736
7737 * nsmenu.m (popup_activated_flag): New variable.
7738 (popup_activated): New function.
7739 (menu-or-popup-active-p): New exported lisp definition.
7740 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7741 when popup done.
7742 (ns_popup_dialog): Set popup_activated_flag.
7743
7744 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7745 version for GNUstep (handled by conditional typedef in nsterm.m).
7746 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7747 in rgb.txt).
7748
7749 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7750
7751 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7752
7753 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7754
7755 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7756 shortcircuit if popup_activated like GTK and X toolkit.
7757
7758 * m/inter386.h: Change DARWIN to DARWIN_OS.
7759
7760 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7761 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7762 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7763 comment on NO_SOCK_SIGIO.
7764
77652008-08-03 Chong Yidong <cyd@stupidchicken.com>
7766
7767 * nsterm.m (windowDidResize): Remove stopModal call.
7768
77692008-08-03 Andreas Schwab <schwab@suse.de>
7770
7771 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7772 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7773
77742008-08-02 Chong Yidong <cyd@stupidchicken.com>
7775
7776 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7777 Don't use uninitialized pointer variable when using getrlimit.
7778
77792008-08-02 Jason Rumney <jasonr@gnu.org>
7780
7781 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7782
77832008-08-02 Eli Zaretskii <eliz@gnu.org>
7784
7785 * alloc.c (NSTATICS): Bump to 0x640.
7786
7787 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7788
7789 * lisp.h: Add prototype for directory_files_internal.
7790
7791 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7792 New functions.
7793 (syms_of_process): Defsubr them. Add initializations for various
7794 Q* symbols used in procfs_system_process_attributes.
7795 (procfs_list_system_processes, procfs_system_process_attributes)
7796 [HAVE_PROCFS]: New functions.
7797 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7798 (procfs_get_total_memory): New functions.
7799
78002008-08-01 Juanma Barranquero <lekktu@gmail.com>
7801
7802 * xfaces.c (Fx_load_color_file): Fix previous change;
7803 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7804
78052008-08-01 Michael Albinus <michael.albinus@gmx.de>
7806
7807 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7808
78092008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7810
7811 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7812
78132008-08-01 Chong Yidong <cyd@stupidchicken.com>
7814
7815 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7816
7817 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7818 define NSApplicationDelegateReplySuccess.
7819 (EmacsView -converstationIdentifier): Use long instead of
7820 NSInteger for GNUstep, since it doesn't have NSInteger.
7821
7822 * xmenu.c: Revert last change.
7823
7824 * keyboard.h: Fix last change.
7825
78262008-08-01 Juanma Barranquero <lekktu@gmail.com>
7827
7828 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7829 on Windows.
7830
78312008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7832
7833 Warning clearing and clean-up in NS port.
7834 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7835 Add prototypes.
7836 * nsgui.h (FACE_DEFAULT): Remove, unused.
7837 (XGCValues): Change colors to unsigned long.
7838 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7839 nsterm.m.
7840 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7841 (ns_list_fonts): Remove, unused.
7842 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7843 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7844 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7845 (nsfont_draw): Compare face colors to 0, not nil.
7846 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7847 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7848 (-addSubmenuWithTitle:): Use NSMenuItem class.
7849 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7850 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7851 (ns_clip_to_row): Make gc arg a BOOL.
7852 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7853 ns_clip_to_row() call.
7854 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7855 used). Cast FRAME_FONT assignments.
7856 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7857 (ns_string_to_lispmod): Change arg to const char.
7858 (ns_term_init): Use NSMenuItem class.
7859 (EmacsApp -openFile:): Move to different section of file.
7860 (EmacsApp -application:openFiles:): Don't return a value, call
7861 -replyToOpenOrPrint:.
7862 (EmacsView -keyDown:): Fix up cast.
7863 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7864 (EmacsView -menuDown:): Cast tag in call to
7865 find_and_call_menu_selection().
7866 (ns_list_fonts): Remove, unused.
7867 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7868 (ns_fontname_to_xlfd): Make static.
7869 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7870 Remove prototypes (now in keyboard.h).
7871 (next_menubar_widget_id): Remove, unused.
7872 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7873 Remove prototypes (now in keyboard.h).
7874 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7875
78762008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7877
7878 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7879 (floatfns.o): Depend on syssignal.h.
7880 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7881
7882 * systty.h: Fix previous change that removed BSD_TERMIOS.
7883 Add comments to #ifdefs.
7884
78852008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7886
7887 * w32fns.c (w32-load-color-file): Remove.
7888 (x-open-connection): Use renamed Fx_load_color_file.
7889 * xfaces.c (x-load-color-file): Add.
7890 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7891 Emacs.clr.
7892 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7893
78942008-07-31 Michael Albinus <michael.albinus@gmx.de>
7895
7896 * dbusbind.c (Fdbus_call_method_asynchronously)
7897 (Fdbus_method_error_internal): New defuns.
7898 (xd_read_message): Handle also reply messages.
7899 (Vdbus_registered_functions_table): Extend docstring.
7900
79012008-07-31 Juanma Barranquero <lekktu@gmail.com>
7902
7903 * keyboard.c (gobble_input): Fix previous change.
7904
79052008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7906
7907 * bitmaps/README:
7908 * xfns.c:
7909 * termcap.c:
7910 * term.c:
7911 * syswait.h:
7912 * systty.h:
7913 * systime.h:
7914 * syssignal.h:
7915 * sysdep.c:
7916 * process.h:
7917 * process.c:
7918 * print.c:
7919 * ndir.h:
7920 * lread.c:
7921 * keyboard.c:
7922 * getpagesize.h:
7923 * floatfns.c:
7924 * fileio.c:
7925 * emacs.c:
7926 * doc.c:
7927 * dispnew.c:
7928 * dired.c:
7929 * data.c:
7930 * callproc.c:
7931 * buffer.c:
7932 * README:
7933 * Makefile.in:
7934 * s/template.h:
7935 * s/msdos.h:
7936 * m/vax.h: Remove VMS support.
7937 * s/vms.h:
7938 * vlimit.h:
7939 * uaf.h:
7940 * temacs.opt:
7941 * param.h:
7942 * ioctl.h: Remove file.
7943
79442008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7945
7946 * s/ms-w32.h (MULTI_KBOARD): Remove.
7947 * xterm.c:
7948 * xselect.c:
7949 * xfns.c:
7950 * window.c:
7951 * w32term.c:
7952 * w32fns.c:
7953 * terminal.c:
7954 * termhooks.h:
7955 * term.c:
7956 * sysdep.c:
7957 * keyboard.h:
7958 * keyboard.c:
7959 * frame.h:
7960 * frame.c:
7961 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7962 * config.in: Regenerate.
7963
79642008-07-30 Jason Rumney <jasonr@gnu.org>
7965
7966 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7967
7968 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7969 (w32font_open_internal): Get unicode version of textmetrics.
7970 Don't enable or disable glyph indices here.
7971 (w32font_open): Disable use of glyph indices.
7972
7973 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7974
79752008-07-30 Chong Yidong <cyd@stupidchicken.com>
7976
7977 * minibuf.c (Vread_buffer_function): Doc fix.
7978
79792008-07-30 John Paul Wallington <jpw@pobox.com>
7980
7981 * minibuf.c (read_buffer_completion_ignore_case): New var.
7982 (Fread_buffer): Use it.
7983
79842008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7985
7986 * systty.h (sensemode): Remove empty #if. Remove reference to
7987 BSD_TERMIOS, unused.
7988
7989 * sysdep.c: Remove reference to DGUX.
7990 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7991
7992 * config.in: Regenerate.
7993
79942008-07-30 Jason Rumney <jasonr@gnu.org>
7995
7996 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7997
79982008-07-29 Jason Rumney <jasonr@gnu.org>
7999
8000 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8001 is populated.
8002 (uniscribe_encode_char): Always use uniscribe.
8003 Avoid using context if cache is populated.
8004
80052008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8006
8007 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8008 open menu.
8009
8010 * gtkutil.c (menu_nav_ended): Remove.
8011 (create_menus): Remove signal connect for menu_nav_ended.
8012
80132008-07-28 Chong Yidong <cyd@stupidchicken.com>
8014
8015 * xdisp.c (redisplay_window): Check return value of
8016 compute_window_start_on_continuation_line before forcing a window
8017 start.
8018
80192008-07-28 Jason Rumney <jasonr@gnu.org>
8020
8021 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8022
8023 * w32term.c (w32_enable_unicode_output, cleartype_active):
8024 Remove obsolete display options.
8025 (x_draw_glyph_string_background): Don't use old cleartype_active
8026 workaround.
8027 (w32_initialize): Remove cleartype_active initialization.
8028 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8029
80302008-07-28 Andreas Schwab <schwab@suse.de>
8031
8032 * lisp.h (init_weak_hash_tables, syms_of_font)
8033 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8034 (remove_hash_entry): Don't declare.
8035 * eval.c (maybe_call_debugger): Make static and move before use.
8036 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8037 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8038 * xterm.h (x_set_frame_alpha): Declare.
8039
80402008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8041
8042 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8043 (create_menus): Connect selection-done to menu_nav_ended.
8044
80452008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8046
8047 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8048 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8049 parameter with read of 'alpha' one.
8050 (Qns_frame_parameter): Remove.
5582fbc7 8051 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8052 (next-selection-coding-system, Vselection_coding_system)
8053 (Vnext_selection_coding_system): Drop.
8054
80552008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8056
8057 * nsfns.m (do-applescript, do_applescript): Rename to
8058 ns-do-applescript, ns_do_applescript, and move within file.
8059
80602008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8061
8062 Remove support for Mac Carbon.
8063 * mactoolbox.c:
8064 * macterm.h:
8065 * macterm.c:
8066 * macselect.c:
8067 * macmenu.c:
8068 * macgui.h:
8069 * macfns.c:
8070 * mac.c: Remove file.
8071 * s/darwin.h:
8072 * m/intel386.h:
8073 * xfaces.c:
8074 * xdisp.c:
8075 * window.c:
8076 * tparam.c:
8077 * termhooks.h:
8078 * termcap.c:
8079 * term.c:
8080 * syssignal.h:
8081 * sysselect.h:
8082 * sysdep.c:
8083 * process.c:
8084 * lread.c:
8085 * lisp.h:
8086 * keyboard.c:
8087 * image.c:
8088 * fringe.c:
8089 * frame.h:
8090 * frame.c:
8091 * fontset.c:
8092 * font.h:
8093 * font.c:
8094 * fns.c:
8095 * fileio.c:
8096 * emacs.c:
8097 * dispnew.c:
8098 * dispextern.h:
8099 * config.in:
8100 * atimer.c:
2ae37cf0 8101 * Makefile.in: Remove code for Carbon.
aac0c6e3 8102
f0131492 81032008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8104
8105 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8106
81072008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8108
8109 * macterm.h (kCGBitmapByteOrder32Host): New define for
8110 non-universal SDKs.
8111
8112 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8113 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8114
8115 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8116 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8117
81182008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8119
8120 * w32inevt.c: Include dispextern.h.
8121
81222008-07-26 Andreas Schwab <schwab@suse.de>
8123
8124 * print.c (print_object): Fix off-by-one in last change.
8125
81262008-07-25 Juanma Barranquero <lekktu@gmail.com>
8127
8128 * term.c (syms_of_term): Don't initialize default_orig_pair,
8129 default_set_foreground and default_set_background on Windows.
8130
81312008-07-25 Jason Rumney <jasonr@gnu.org>
8132
8133 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8134 ScriptItemize. Clean up return value checking. Remove unused
8135 variables.
8136 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8137 shaping engine.
8138
8139 * w32font.c (w32font_has_char): Handle the case where we can't
8140 determine the script for a character.
8141
81422008-07-25 Chong Yidong <cyd@stupidchicken.com>
8143
8144 * term.c (syms_of_term): Initialize default_orig_pair,
8145 default_set_foreground, and default_set_background.
8146
8147 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8148 clash (bug#86).
8149 (getloadavg): Callers changed.
8150
8151 * image.c (svg_load_image): Fix last change.
8152 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8153 image size is valid. Use g_object_unref instead of deprecated
8154 rsvg_handle_free to free rsvg handle.
8155 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8156
81572008-07-25 Jason Rumney <jasonr@gnu.org>
8158
8159 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8160 surrogates before looking up glyph index.
8161 (w32font_text_extents): Encode as surrogates if falling back to
8162 functions that need UTF-16 wide chars.
8163
8164 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8165 BMP as surrogates before looking up glyph index.
8166
81672008-07-25 Chong Yidong <cyd@stupidchicken.com>
8168
8169 * image.c (svg_load_image): Check for failure in return value of
8170 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8171
81722008-07-25 Jason Rumney <jasonr@gnu.org>
8173
8174 * w32font.c (Fx_select_font): Reverse sense of second arg.
8175
81762008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8177
8178 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8179 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8180
8181 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8182 (PURESIZE): Use it.
8183
81842008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8185
8186 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8187 * m/alpha.h (TEXT_END):
8188 * m/ibmrs6000.h (TEXT_END):
8189 * m/macppc.h (TEXT_END):
8190 * s/darwin.h (TEXT_END):
8191 * s/msdos.h (TEXT_END): Remove, unused.
8192 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8193 * s/cygwin.h: Remove comment.
8194
8195 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8196 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8197 * m/intel386.h (DOT_GLOBAL_START):
8198 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8199 (USG): Remove, file not used on USG platforms.
8200
8201 * Makefile.in (HAVE_X11): Remove empty #else.
8202
82032008-07-24 Andreas Schwab <schwab@suse.de>
8204
8205 * fileio.c (Finsert_file_contents): Properly adjust undo list
8206 after format conversion.
8207
82082008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8209
8210 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8211 (menu_nav_ended): Remove.
8212 (create_menus): Remove signal connect for menu_nav_ended.
8213 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8214 create_menus.
8215 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8216
82172008-07-23 Jason Rumney <jasonr@gnu.org>
8218
8219 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8220 with opened font.
8221 (w32font_open): Set font type to gdi.
8222
8223 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8224
82252008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8226
8227 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8228 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8229 defines it.
8230 * unexec.c (ADDR_CORRECT): Define unconditionally.
8231
8232 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8233
8234 * unexec.c: Remove code depending on !COFF and USG, the file is
8235 not used for such systems.
8236
8237 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8238 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8239 (LD_SWITCH_SYSTEM_1): Remove, update users.
8240
8241 * s/darwin.h (DATA_END):
8242 * m/intel386.h (DATA_END):
8243 * m/ibmrs6000.h (DATA_END):
8244 * m/alpha.h (DATA_END): Remove, unused.
8245
8246 * config.in: Regenerate.
8247 * s/ms-w32.h (subprocesses): Define unconditionally.
8248 * s/template.h (subprocesses): Update comment.
8249 * s/vms.h (subprocesses):
8250 * s/usg5-4.h (subprocesses):
8251 * s/hpux10-20.h (subprocesses):
8252 * s/gnu-linux.h (subprocesses):
8253 * s/cygwin.h (subprocesses):
8254 * s/bsd-common.h (subprocesses):
8255 * s/aix4-2.h (subprocesses):
8256 * s/darwin.h (subprocesses): Do not define, defined by default now.
8257
8258 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8259 Remove all references.
8260 (temacs): Add GNUstep specific ld flags.
8261
8262 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8263 similarly to what X does.
8264
82652008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8266
8267 * nsfns.m (x-list-fonts): Remove.
8268 (syms_of_nsfns): Drop the x-list-fonts declaration.
8269 * nsterm.m: Get rid of remaining "//" comments.
8270
82712008-07-22 Chong Yidong <cyd@stupidchicken.com>
8272
8273 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8274
8275 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8276 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8277 (Fns_own_selection_internal, Fx_disown_selection_internal)
8278 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8279
8280 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8281 ... */' style of docstrings. Doc fixes.
8282
82832008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8284
8285 * terminfo.c (UP, BC, PC): Undo previous change.
8286
8287 * nsfns.m: Rename ns prefixed functions/variables to the
8288 corresponding x versions. Update references.
8289
82902008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8291
8292 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8293
82942008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8295
8296 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8297 Remove forwarding functions.
8298 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8299 non-static.
8300 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8301 non-static.
8302 (ns_frame_parm_handlers): Use the new names.
8303 (syms_of_nsfns): Move to the end of file.
8304
8305 * nsterm.m (syms_of_nsterm): Move to the end of file.
8306
8307 * dispnew.c (init_display): Remove code for X10.
8308
83092008-07-22 Jason Rumney <jasonr@gnu.org>
8310
8311 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8312 bare drive.
8313
83142008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8315
8316 * nsterm.m (syms_of_nsterm): Remove debugging println.
8317
83182008-07-22 David Reitter <david.reitter@gmail.com>
8319
8320 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8321 Carbon implementation of the same functionality: execute arbitrary
8322 AppleScript code.
8323
83242008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8325
8326 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8327 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8328 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8329 (Fx_display_mm_height, Fx_display_mm_width)
8330 (Fx_display_backing_store, Fx_display_visual_class)
8331 (Fx_display_save_under, Fx_open_connection)
8332 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8333 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8334 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8335 (Fx_display_pixel_width, Fx_display_pixel_height)
8336 (Fx_display_usable_bounds, Fx_display_planes)
8337 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8338 ... */' style of docstrings.
8339
83402008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8341
8342 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8343 on this platform.
8344 (mips):
8345 * m/iris4d.h (mips): Do not define.
8346 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8347
8348 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8349
8350 * image.c:
8351 * nsfns.m:
8352 * nsselect.m:
8353 * nsterm.h:
8354 * nsterm.m: Rename ns prefixed functions/variables to the
8355 corresponding x versions. Update references.
8356
8357 * m/ibms390x.h (NO_REMAP): Do not undefine.
8358
8359 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8360
83612008-07-21 Chong Yidong <cyd@stupidchicken.com>
8362
8363 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8364 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8365 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8366 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8367 (Fns_display_mm_height, Fns_display_mm_width)
8368 (Fns_display_backing_store, Fns_display_visual_class)
8369 (Fns_display_save_under, Fns_open_connection)
8370 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8371 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8372 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8373 (Fns_display_pixel_width, Fns_display_pixel_height)
8374 (Fns_display_usable_bounds, Fx_display_planes)
8375 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8376
83772008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8378
8379 * print.c (print_object): Check print_depth before searching for
8380 circularities.
8381
83822008-07-21 Michael Albinus <michael.albinus@gmx.de>
8383
8384 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8385 only sprintf.
8386
83872008-07-21 Kenichi Handa <handa@m17n.org>
8388
8389 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8390
83912008-07-20 Andreas Schwab <schwab@suse.de>
8392
8393 * syntax.c (find_start_pos, find_start_value)
8394 (find_start_value_byte, find_start_begv, find_defun_start)
8395 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8396
83972008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8398
8399 * s/sol2-3.h: Insert contents of s/sol2.h.
8400 (LD_SWITCH_SYSTEM): Remove redundant definition.
8401 * s/sol2.h: Remove, unused.
8402
84032008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8404
8405 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8406
84072008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8408
8409 * Makefile.in (ns_appdir): Fix typo in find command.
8410
84112008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8412
8413 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8414
8415 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8416 added not supported anymore.
8417
8418 * s/usg5-4-2.h (LIBS_SYSTEM):
8419 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8420
8421 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8422 * s/lynxos.h (GETPGRP_NO_ARG):
8423 * s/hpux10-20.h (NO_SIOCTL_H):
8424 * s/gnu.h (GETPGRP_NO_ARG):
8425 * s/gnu-linux.h (NO_SIOCTL_H):
8426 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8427 * s/cygwin.h (GETPGRP_NO_ARG):
8428 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8429 (C_DEBUG_SWITCH): Remove duplicate definition.
8430
8431 * m/ibms390.h: Remove boilerplate comments.
8432
8433 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8434
8435 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8436 (wait_reading_process_output): Remove code for SunOS, platform not
8437 supported anymore. Use SOLARIS2 instead of sun.
8438
84392008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8440
8441 * font.c (font_open_by_name): Under NS, default lface height to zero.
8442 (font_open_for_lface): Under NS, set size based on frame fontsize.
8443 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8444 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8445
84462008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8447
8448 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8449 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8450 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8451 YES/NO.
8452 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8453 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8454 * Makefile.in (clean): Clear out build destination dir.
8455
84562008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8457
8458 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8459 xterm, xselect.
8460 * lisp.h: Remove declaration of hash_remove.
8461 * nsgui.h: Remove redefinitions of hash_remove.
8462 * fns.c (hash_remove): Rename to hash_remove_from_table.
8463
84642008-07-19 Seiji Zenitani <zenitani@mac.com>
8465
8466 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8467 strdup() the family UTF8String before modifying it.
8468
84692008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8470
8471 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8472 NS_FACE_BACKGROUND with 0 instead of nil.
8473 * nsfont.m (nsfont_draw): Same.
8474
84752008-07-19 Chong Yidong <cyd@stupidchicken.com>
8476
8477 * nsfns.m (ns_set_background_color): Fix crash.
8478
84792008-07-18 Chong Yidong <cyd@stupidchicken.com>
8480
8481 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8482
84832008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8484
8485 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8486
84872008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8488
8489 * gtkutil.c: Include <config.h> instead of "config.h".
8490
8491 * lisp.h (Foverlay_buffer): Add EXFUN.
8492
8493 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8494 child process to complete child_setup. Undo 2005-09-21 change.
8495
8496 * s/darwin.h: Mention setsid after vfork.
8497
84982008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8499
8500 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8501 Depend on macgui.h.
8502
8503 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8504 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8505
8506 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8507 and f19.
8508 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8509
8510 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8511 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8512 Remove enumerators.
8513
8514 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8515 Check if FACE_FROM_ID returns NULL.
8516
85172008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8518
8519 * w32inevt.c (change_frame_size): Remove extern declaration.
8520 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8521 change_frame_size.
8522
85232008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8524
8525 * getloadavg.c: Revert last change (2008-07-15).
8526
85272008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8528
8529 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8530 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8531 from configure.
8532
85332008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8534
8535 * s/sol2.h:
8536 * s/sol2-4.h: Reorganize conditionals.
8537
8538 * ecrt0.c: Remove code depending on m68000, not used anymore.
8539
8540 * fns.c (hash_remove): Make static.
8541 * lisp.h (hash_remove): Don't prototype.
8542
8543 * m/ibmrs6000.h:
8544 * m/ibms390x.h:
8545 * m/macppc.h: Remove boilerplate comments.
8546
8547 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8548 Solaris, which does not need them.
8549
8550 * m/vax.h: Remove comments about unsupported systems.
8551
8552 * s/darwin.h: Reorganize ifdefs.
8553
85542008-07-17 Andreas Schwab <schwab@suse.de>
8555
8556 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8557
85582008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8559
8560 Use SDATA. Follow coding convention of placing operators at
8561 beginning of next line rather than end of previous line, and placing
8562 spaces around infix operators.
8563
8564 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8565 in case it was defined already.
8566 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8567 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8568 ns_default.
8569 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8570 Lisp_Objects.
8571 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8572 (ns_defined_color, ns_color_to_lisp): Declare.
8573 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8574 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8575 it's accepted even with USE_LISP_UNION_TYPE.
8576 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8577 (update_frame_tool_bar): Remove apparently obsolete tests for
8578 non-integerness of f->tool_bar_lines.
8579 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8580 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8581 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8582 (nsfont_open): Don't confuse NULL for Qnil.
8583 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8584 * menu.h (find_and_call_menu_selection):
8585 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8586 (find_and_return_menu_selection): Always return something.
8587 * frame.h: Include dispextern.h for Display_Info.
8588 (display_x_get_resource): Declare.
8589
85902008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8591
8592 * syntax.c: Remove stdio.h include accidentally introduced in
8593 Emacs.app commit.
8594 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8595 NS_IMPL_COCOA.
8596 * keyboard.c (handle_async_input, input_available_signal): Remove
8597 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8598
85992008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8600
8601 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8602 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8603 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8604 Use SDATA.
8605
8606 * keymap.c: Remove all NS-specific code.
8607 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8608 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8609 where_is_preferred_modifier, return a different value depending on how
8610 preferred is the binding.
8611 (where_is_internal): Adjust accordingly.
8612 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8613 Adjust to new preferred_sequence_p.
8614 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8615 * keyboard.c (parse_solitary_modifier): Not static any more.
8616 * keyboard.h (parse_solitary_modifier): Declare.
8617
86182008-07-16 Andreas Schwab <schwab@suse.de>
8619
8620 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8621 of easymenu.
8622
86232008-07-16 Chong Yidong <cyd@stupidchicken.com>
8624
8625 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8626 that we don't move off the line.
8627
86282008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8629
8630 * keyboard.c (Qsuper): Remove.
8631 (parse_menu_item): Don't call where_is_internal specially for NS.
8632
86332008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8634
8635 * s/gnu-linux.h: Remove boilerplate comments.
8636
8637 * m/alpha.h (__ELF__): Consolidate conditions.
8638
8639 * m/m68k.h (linux): Use GNU_LINUX instead.
8640 Remove boilerplate comments.
8641
8642 * m/intel386.h: Undo refactoring from previous change.
8643 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8644 too, remove dead code.
8645 (linux): Use GNU_LINUX instead.
8646
86472008-07-16 Jason Rumney <jasonr@gnu.org>
8648
8649 * w32gui.h: Repeat 26 June changes lost by last change.
8650
86512008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8652
8653 * systty.h: Remove code for Aix on 386, unsupported platform.
8654
8655 * s/ms-w32.h: Remove boilerplate comments.
8656 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8657
8658 * s/gnu-linux.h (TERM): Remove support.
8659 (HAVE_SYSVIPC): Remove, unused.
8660 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8661 for this system.
8662
8663 * process.c: Remove support for IRIS, unused.
8664 Remove support for TERM, not relevant anymore.
8665
8666 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8667 used with the definition.
8668
8669 * s/aix4-2.h (static): Do not undef.
8670
8671 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8672 only used on Aix.
8673 (HAVE_SYSVIPC): Remove, unused.
8674
8675 * m/hp800.h (CANNOT_DUMP): Do not undef.
8676
8677 * m/alpha.h: Fix comment.
8678
8679 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8680 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8681 used by this configuration.
8682 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8683 * unexec.c: Remove code depending on HPUX and
8684 USG_SHARED_LIBRARIES, not used with this file. Remove code
8685 depending on IRIS, unused. Remove if 0-ed code.
8686
8687 * s/template.h: Remove comments about static.
8688
8689 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8690 Remove if 0-ed code.
8691 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8692 were the same as the default.
8693 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8694 Remove boilerplate comments.
8695 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8696 (HAVE_SYSVIPC): Remove, unused.
8697 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8698
8699 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8700 Remove boilerplate comments.
8701 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8702 Remove boilerplate comments.
8703 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8704 Remove boilerplate comments.
8705 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8706
8707 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8708 USG systems which do not use DATA_SEG_BITS.
8709 Refactor code. Remove boilerplate comments.
8710
8711 * m/ibms390.h:
8712 * m/m68k.h:
8713 * s/bsd-common.h:
8714 * s/cygwin.h:
8715 * s/darwin.h:
8716 * s/freebsd.h:
8717 * s/gnu.h:
8718 * s/msdos.h: Remove boilerplate comments.
8719
8720 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8721 do not use this file.
aac0c6e3
MR
8722 (IRIS_4D): Remove, unused.
8723
8724 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8725 do not use this file.
aac0c6e3
MR
8726 (SIGN_EXTEND_CHAR):
8727 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8728 * unexmips.c: Remove file, unused.
8729
8730 * editfns.c (Fuser_full_name): Replace the only use of
8731 USER_FULL_NAME with its value.
8732 * config.in: Regenerate.
8733
87342008-07-16 David Reitter <david.reitter@gmail.com>
8735
8736 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8737 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8738
87392008-07-16 Glenn Morris <rgm@gnu.org>
8740
8741 * emacs.c (system-type): Doc fix.
8742
87432008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8744
8745 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8746 If the cache doesn't work, let's fix it, rather than work around it.
8747
87482008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8749
8750 * Makefile.in: Correct additions for nsfont.o in last commit.
8751 * nsfont.m: New file (forgot last commit).
8752
87532008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8754
8755 * callproc.c (set_initial_environment): Initialize
8756 Vprocess_environment under CANNOT_DUMP (fixes crash when
8757 batch-compiling for bootstrap).
8758
87592008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8760 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8761
8762 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8763 fix crash due to different init order.
8764
87652008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8766
8767 Changes and additions for NeXTstep windowing system (Cocoa and
8768 GNUstep) support.
8769
8770 * Makefile.in:
8771 * config.in: Support defines and build commands for NS port.
8772 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8773 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8774 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8775 windowing.
8776 (struct face): Add synth_ital field.
8777 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8778 (init_display): Initialize Vinitial_window_system to "ns" when so
8779 compiled.
8780 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8781 (display_arg): Use under NS.
8782 (main): Under NS, allocate autorelease pool and handle command line
8783 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8784 (standard_args): Add NS-specific args.
8785 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8786 * font.c (DEFAULT_ENCODING): New variable.
8787 (font_find_for_lface): Use it.
8788 (syms_of_font): Load syms_of_nsfont under NS.
8789 * font.h: Declare nsfont_driver when compiled under NS.
8790 * fontset.c: When compiling under NS, include nsterm.h.
8791 (fontset_from_font): Autoconstruct fontset under NS.
8792 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8793 symbol, document and use it.
8794 (do_switch_frame): When for_deletion under Cocoa, add
8795 Fraise_frame(Qnil).
8796 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8797 (x_get_arg): Allow "yes" and "no" as boolean values.
8798 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8799 Qright under Cocoa.
8800 (focus-follows-mouse): Default to 0 under NS.
8801 * frame.h (enum output_method): Add output_ns.
8802 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8803 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8804 (FRAME_WINDOW_P): NS-specific definition.
8805 * fringe.c (max_used_fringe_bitmap): Make public.
8806 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8807 (getloadavg): Use NeXT code under descendant OS's.
8808 * image.c (includes and header section, x_create_bitmap_from_data)
8809 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8810 (image_background_transparent, x_clear_image_1)
8811 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8812 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8813 (x_to_xcolors, x_from_xcolors, x_disable_image)
8814 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8815 other GUIs, including XPM support using code originally written for
8816 Carbon GUI.
8817 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8818 using NS API.
8819 (image_ascent): Use font metrics macros instead of direct struct field
8820 access.
8821 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8822 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8823 Also, handle NS as GTK for menu bar purposes.
8824 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8825 toolkit where they differ.
8826 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8827 use cachelist, still needed under NS.
8828 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8829 (struct widget_value): Define it here for menu.c.
8830 * keymap.c (includes): Include modifier internals.
8831 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8832 NS.
8833 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8834 support for preferring sequences using certain modifiers, specified by
8835 the FIRSTONLY argument.
8836 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8837 under NS GNUstep implementation.
8838 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8839 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8840 * menu.c: Include nsterm.h under NS.
8841 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8842 (free_menubar_widget_tree_value, update_submenu_strings)
8843 (find_and_call_menu_selection): Treat NS as X and NT.
8844 (find_and_return_menu_selection): New function, used for popup menus.
8845 * nsgui.h:
8846 * nsterm.h:
8847 * nsfns.m:
8848 * nsimage.m:
8849 * nsmenu.m:
8850 * nsselect.m:
8851 * nsterm.m: New files.
8852 * process.c (wait_reading_process_output): Under NS, call ns_select()
8853 instead of plain select().
8854 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8855 beginning of buffer.
8856 * sysselect.h (init_process): Rename when compiling under Cocoa to
8857 avoid name conflict.
8858 * termhooks.h (display_info): Add ns_display_info to union.
8859 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8860 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8861 COCOA environment.
8862 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8863 unexec() signature. (Note, this will dump, but the resulting file
8864 crashes; unexosx is used instead; keeping around for reference and
8865 possible aid in getting dump working under GNUstep.)
8866 * w32gui.h (button_type, widget_value): Remove definitions (now in
8867 keyboard.h).
8868 * window.c: Include nsterm.h when compiling under NS.
8869 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8870 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8871 other GUI windowing systems.
8872 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8873 GTK.
8874 (x_consider_frame_title): Under NS, set icon type and frame
8875 modified-state indicator; use ns_set_name_as_filename() when using
8876 formatted title.
8877 (update_window_cursor): Make public when compiling under NS.
8878 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8879 (hourglass_atimer, Vhourglass_delay
8880 * xfaces.c (header section, init_frame_faces, clear_font_table)
8881 (defined_color, unload_color, x_face_list_fonts)
8882 (prepare_face_for_display): Add NS support parallel to other GUIs.
8883 Emulate GCs like other non-X GUIs.
8884 (split_font_name): Don't lowercase font name under NS.
8885 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8886 under NS.
8887 * s/darwin.h: Add support for compilation under NS.
8888
88892008-07-15 Jason Rumney <jasonr@gnu.org>
8890
8891 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8892 (w32_show_hourglass): Rename from show_hourglass.
8893 (w32_hide_hourglass): Rename from hide_hourglass.
8894 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8895 (Vhourglass_delay): Declare extern.
8896 (hourglass_started): Remove.
8897
8898 * xdisp.c (Vhourglass_delay): Remove static.
8899 (hourglass_started, start_hourglass, cancel_hourglass):
8900 Don't include these versions on WINDOWSNT.
8901
89022008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8903
8904 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8905 variables (formerly in xfns.c).
8906 (show_hourglass, hide_hourglass): New prototypes (same).
8907 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8908 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8909 in xfns.c).
8910 (syms_of_xdisp): Declare/initialize display-hourglass,
8911 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8912 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8913 formerly in xfns.c.
8914 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8915 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8916 (start_hourglass, cancel_hourglass): Remove.
8917 (show_hourglass, hide_hourglass): Remove prototypes and static
8918 modifiers.
8919 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8920 hourglass_atimer, hourglass_shown_p declaration/initialization.
8921 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8922 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8923 (start_hourglass, cancel_hourglass): Remove.
8924 (show_hourglass, hide_hourglass): Remove prototypes and static
8925 modifiers.
8926 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8927 hourglass_atimer, hourglass_shown_p declaration/initialization.
8928 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8929 (DEFAULT_HOURGLASS_DELAY): Remove.
8930 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8931 hourglass_shown_p declaration/initialization.
8932
89332008-07-14 Jason Rumney <jasonr@gnu.org>
8934
8935 * w32fns.c (w32_get_arg): Remove wrapper function.
8936 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8937 directly.
8938 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8939
89402008-07-14 Kenichi Handa <handa@m17n.org>
8941
8942 * xfont.c (xfont_open): Add workaround for X's bug.
8943
89442008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8945
8946 * fontset.c: Include <stdio.h> unconditionally.
8947
89482008-07-13 Michael Albinus <michael.albinus@gmx.de>
8949
8950 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8951 for filtering.
8952
89532008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8954
8955 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8956
8957 * m/macppc.h:
8958 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8959
8960 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8961 (SPECIAL_EMACS_INT):
8962 * m/ia64.h (SPECIAL_EMACS_INT):
8963 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8964 * s/gnu.h (NLIST_STRUCT):
8965 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8966 * s/gnu-linux.h (LINUX):
8967 * s/msdos.h (HAVE_FACES):
8968 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8969
8970 * systty.h:
8971 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8972 anymore.
8973
89742008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8975
8976 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8977 always defined as int.
8978
8979 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8980 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8981 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8982 * s/freebsd.h (HAVE_WAIT_HEADER):
8983 * s/bsd-common.h (HAVE_UNION_WAIT):
8984 * s/aix4-2.h (HAVE_WAIT_HEADER):
8985 * m/mips.h (HAVE_UNION_WAIT):
8986 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8987 (COFF, static): Do not define, they are undefined later in the file.
8988
8989 * process.c (update_status): Don't use a union.
8990 (status_convert):
8991 (sigchld_handler): Use int instead of WAITTYPE.
8992
89932008-07-12 Chong Yidong <cyd@stupidchicken.com>
8994
8995 * indent.c (Fvertical_motion): Restore hscroll before moving to
8996 goal column.
8997
89982008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8999
9000 * lisp.h: Remove left over code.
9001
90022008-07-11 Andreas Schwab <schwab@suse.de>
9003
9004 * lisp.h: Fix logic in last change.
9005
9006 * menu.h: New file.
9007 * menu.c: Include it.
9008 * xmenu.c: Likewise.
9009 * Makefile.in: Update dependencies.
9010
90112008-07-11 Kenichi Handa <handa@m17n.org>
9012
9013 * fontset.c (fontset_from_font): Cancel the previous change.
9014
90152008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9016
9017 * lisp.h:
9018 * w32heap.c:
9019 * emacs.c:
9020 * alloc.c: Replace all references of NO_UNION_TYPE with
9021 USE_LISP_UNION_TYPE.
9022
9023 * m/xtensa.h (NO_UNION_TYPE):
9024 * m/vax.h (NO_UNION_TYPE):
9025 * m/template.h (NO_UNION_TYPE):
9026 * m/sparc.h (NO_UNION_TYPE):
9027 * m/mips.h (NO_UNION_TYPE):
9028 * m/macppc.h (NO_UNION_TYPE):
9029 * m/m68k.h (NO_UNION_TYPE):
9030 * m/iris4d.h (NO_UNION_TYPE):
9031 * m/intel386.h (NO_UNION_TYPE):
9032 * m/ibms390x.h (NO_UNION_TYPE):
9033 * m/ibms390.h (NO_UNION_TYPE):
9034 * m/ibmrs6000.h (NO_UNION_TYPE):
9035 * m/ia64.h (NO_UNION_TYPE):
9036 * m/hp800.h (NO_UNION_TYPE):
9037 * m/arm.h (NO_UNION_TYPE):
9038 * m/amdx86-64.h (NO_UNION_TYPE):
9039 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9040 defining it the same.
9041
90422008-07-10 Chong Yidong <cyd@stupidchicken.com>
9043
9044 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9045
90462008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9047
9048 * fileio.c:
9049 * sysdep.c
9050 * systty.h:
9051 * m/ibmrs6000.h:
9052 * m/iris4d.h:
9053 * s/aix4-2.h:
9054 * s/freebsd.h:
9055 * s/gnu-linux.h:
9056 * s/hpux10-20.h:
9057 * s/hpux11.h:
9058 * s/netbsd.h:
9059 * s/sol2-3.h:
9060 * s/sol2-4.h:
9061 * s/sol2.h:
9062 * s/usg5-4.h:
9063 * s/vms.h: Remove references to unused variables.
9064
90652008-07-10 Andreas Schwab <schwab@suse.de>
9066
9067 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9068 pattern before matching the generic family.
9069
90702008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9071
9072 * unexec.c:
9073 * s/vms.h:
9074 * s/usg5-4-2.h:
9075 * s/sol2-5.h:
9076 * s/freebsd.h:
9077 * s/darwin.h: Remove dead code.
9078
9079 * m/template.h:
9080 * m/sparc.h:
9081 * m/mips.h:
9082 * m/m68k.h:
9083 * m/iris4d.h:
9084 * m/intel386.h:
9085 * m/ibms390x.h:
9086 * m/ibms390.h:
9087 * m/ia64.h:
9088 * m/hp800.h:
9089 * m/arm.h:
9090 * m/amdx86-64.h: Remove dead code and references to unused
9091 and compiler defined symbols.
9092
9093 * unexmips.c:
9094 * unexelf.c: Remove references to desupported systems.
9095
9096 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9097
9098 * m/powermac.h: Remove boilerplate comments.
9099 (NO_REMAP): Remove unused definition.
9100
9101 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9102 define them.
9103
91042008-07-10 Kenichi Handa <handa@m17n.org>
9105
9106 * xfont.c (xfont_open): Log the reason of failure.
9107
91082008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9109
9110 * fontset.c (fontset_get_font_group):
9111 * font.c (font_check_otf): Specify argument types.
9112
91132008-07-09 Kenichi Handa <handa@m17n.org>
9114
9115 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9116 non-ASCII char is found.
9117
9118 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9119 (reorder_font_vector): Change the arg preferred_family to font.
9120 Prefer the spec matching with font.
9121 (fontset_get_font_group): New function.
9122 (fontset_find_font): Change the format of an element of a realized
9123 fontset. Use fontset_get_font_group.
9124 (fontset_font): Try the current fontset, the default fontset, the
9125 fallbacks of the current fontset, and the fallbacks of the default
9126 fontset in this order.
9127 (face_for_char): Delete the shortcut to use the current font.
9128 (fontset_from_font): Don't set fonts for Latin in the fontset.
9129
9130 * font.h (font_make_object, font_match_p): Adjust prototypes.
9131
9132 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9133
9134 * font.c (font_make_object): New arg entity and pixelsize.
9135 (font_check_otf_features, font_check_otf): New functions.
9136 (font_match_p): Check :lang, :script, and :otf properties.
9137
9138 * xfont.c (xfont_open): Adjust it for the change of
9139 font_make_object.
9140 (xfont_text_extents): Fix initial setting of metrics.
9141
9142 * ftfont.c (struct ftfont_info): New member index, delete member
9143 fc_charset_idx. Make the member order compatible with struct
9144 xftfont_info.
9145 (fc_charset_table): Change charset names to registry names.
9146 (ftfont_pattern_entity): Delete the args registry and
9147 fc_charset_idx. Change the value of :font-entity property
9148 to (FONTNAME . INDEX). Always set :registry property to
9149 `iso10646-1'.
9150 (struct ftfont_cache_data): New struct.
9151 (ftfont_lookup_cache): New arg for_face.
9152 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9153 (ftfont_driver): Set the member otf_capability.
9154 (ftfont_get_charset): Adjust it for the change of
9155 fc_charset_table.
9156 (OTF_TAG_SYM): New macro.
9157 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9158 for the change of fc_charset_table.
9159 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9160 ftfont_pattern_entity. Add FC_INDEX to objset.
9161 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9162 and ftfont_pattern_entity.
9163 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9164 font_make_object, struct ftfont_info.
9165 (ftfont_has_char): Use ftfont_get_fc_charset.
9166 (ftfont_otf_features, ftfont_otf_capability): New functions.
9167 (ftfont_shape): Use ftfont_get_otf.
9168 (ftfont_text_extents): Fix initial setting of metrics.
9169
9170 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9171 member order compatible with struct ftfont_info.
9172 (xftfont_open): Add FC_CHARSET to the pattern. Set
9173 xftfont_info->ft_size. Don't unlock the face. Check BDF
9174 properties if appropriate.
9175 (xftfont_close): Unlock the face.
9176 (xftfont_anchor_point, xftfont_shape): Deleted.
9177 (syms_of_xftfont): Don't set members anchor_point and shape of
9178 xftfont_driver.
9179
9180 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9181 font_make_object.
9182
9183 * w32font.c (w32font_open): Adjust it for the change of
9184 font_make_object.
9185 (w32font_open_internal): Don't set properties of font_object here.
9186
91872008-07-08 Chong Yidong <cyd@stupidchicken.com>
9188
9189 * macfns.c (x_create_tip_frame):
9190 * w32fns.c (x_create_tip_frame):
9191 * xfns.c (x_create_tip_frame): Pass parameter argument to
9192 face-set-after-frame-default.
9193
9194 * xfaces.c (Finternal_merge_in_global_face): Save merged
9195 attributes for the default face back into the face vector.
9196
91972008-07-08 Andreas Schwab <schwab@suse.de>
9198
9199 * fontset.h: Declare fontset_from_font. Don't declare
9200 new_fontset_from_font and fontset_from_font_name.
9201 * xterm.c: Include "fontset.h".
9202 * Makefile.in (xterm.o): Update dependencies.
9203
92042008-07-08 Glenn Morris <rgm@gnu.org>
9205
9206 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9207 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9208
92092008-07-07 Chong Yidong <cyd@stupidchicken.com>
9210
9211 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9212 (x_set_frame_parameters): Don't bind it.
9213
92142008-07-07 Juanma Barranquero <lekktu@gmail.com>
9215
9216 * w32fns.c (map_w32_filename): Declare extern.
9217
92182008-07-07 Jason Rumney <jasonr@gnu.org>
9219
9220 * w32term.c (WS_EX_LAYERED): Define if not already.
9221
92222008-07-06 Chong Yidong <cyd@stupidchicken.com>
9223
9224 * xfaces.c (set_font_frame_param): Don't try to set the font
9225 parameter if it is still unspecified in the lface.
9226
92272008-07-05 Chong Yidong <cyd@stupidchicken.com>
9228
9229 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9230 face if it didn't already exist.
9231
9232 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9233
92342008-07-05 Andreas Schwab <schwab@suse.de>
9235
9236 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9237
92382008-07-05 Chong Yidong <cyd@stupidchicken.com>
9239
9240 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9241 word-wrapping.
9242 (IT_DISPLAYING_WHITESPACE): New macro.
9243 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9244 when word-wrapping. Simplify word-wrapping logic. Use correct
9245 pixel positions when saving copies of the iterator.
9246 (display_line): Use proper wrap point if the last character on a
9247 line was preceded by whitespace.
9248
92492008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9250
9251 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9252
92532008-07-04 Kenichi Handa <handa@m17n.org>
9254
9255 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9256
9257 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9258
92592008-07-02 Jason Rumney <jasonr@gnu.org>
9260
9261 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9262 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9263
9264 * xdisp.c (next_element_from_display_vector): Move assignment out
9265 of if statement.
9266
92672008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9268
9269 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9270
9271 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9272 (syms_of_fileio): Initialize and export them.
9273 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9274
9275 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9276 (Fsystem_move_file_to_trash): New function.
9277 (syms_of_w32fns): Export it to lisp.
9278
92792008-07-01 Jason Rumney <jasonr@gnu.org>
9280
9281 * w32font.c (w32font_text_extents): Don't count overhang as part
9282 of width.
9283
92842008-06-30 Miles Bader <miles@gnu.org>
9285
9286 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9287 Add `avoid_cursor_p' field.
9288
9289 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9290 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9291 (append_glyph, append_composite_glyph, produce_image_glyph)
9292 (append_stretch_glyph): Initialize avoid_cursor_p.
9293 (get_it_property): Rename from `get_line_height_property'.
9294 (x_produce_glyphs): Use get_it_property.
9295 (handle_line_prefix, push_display_prop): New functions.
9296 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9297 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9298 New variables.
9299 (syms_of_xdisp): Initialize them.
9300
93012008-06-30 Kenichi Handa <handa@m17n.org>
9302
9303 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9304 XftDefaultSubstitute (they are called in XftFontMatch).
9305 (xftfont_open): Fix args to ftfont_font_format.
9306
9307 * ftfont.c (fc_charset_table): New member lang.
9308 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9309 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9310 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9311 (ftfont_open): Fix args to ftfont_font_format.
9312 (ftfont_font_format): New arg filename.
9313
93142008-06-30 Chong Yidong <cyd@stupidchicken.com>
9315
9316 * xfaces.c (Finternal_merge_in_global_face): If default face was
9317 modified, realize it again. Update the font face attribute.
9318
93192008-06-29 Jason Rumney <jasonr@gnu.org>
9320
9321 * w32term.c (x_set_frame_alpha): Fix logic.
9322
93232008-06-29 Kenichi Handa <handa@m17n.org>
9324
9325 * fontset.c (Finternal_char_font): Return font-object instead of
9326 font-name.
9327
9328 * composite.c (get_composition_id): Fix the width calculation for TAB.
9329
93302008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9331
9332 * indent.c (Fvertical_motion): Properly handle float column arg.
9333
93342008-06-28 Jason Rumney <jasonr@gnu.org>
9335
9336 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9337 (pfnSetLayeredWindowAttributes): New function pointer.
9338 (w32_initialize): Initialize it when supported.
9339 (x_set_frame_alpha): New function.
9340
9341 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9342 (w32_frame_parm_handlers): Set alpha handler.
9343
9344 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9345
93462008-06-27 Jason Rumney <jasonr@gnu.org>
9347
9348 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9349 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9350 (w32_to_x_charset, x_to_w32_charset)
9351 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9352 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9353 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9354 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9355 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9356 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9357 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9358 (Qw32_charset_unicode): Remove.
9359 (syms_of_w32fns): Update for above changes.
9360
9361 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9362 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9363 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9364 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9365 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9366 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9367 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9368 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9369 (syms_of_w32font): Update for above changes.
9370
93712008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9372
9373 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9374 removed #if.
9375 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9376
93772008-06-26 Juanma Barranquero <lekktu@gmail.com>
9378 Eli Zaretskii <eliz@gnu.org>
9379
9380 * makefile.w32-in (LOCAL_FLAGS):
9381 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9382
9383 * sysdep.c (_spawnlp, _getpid):
9384 Declare with explicit _cdecl instead of _CRTAPI1.
9385
9386 * editfns.c (Fget_internal_run_time):
9387 Check for WINDOWSNT with #ifdef, not #if.
9388
93892008-06-26 Jason Rumney <jasonr@gnu.org>
9390
9391 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9392
9393 * w32term.c (x_draw_glyph_string_foreground)
9394 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9395 Use FONT_HANDLE macro.
9396 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9397
9398 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9399 (uniscribe_encode_char): Use FONT_HANDLE macro.
9400
9401 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9402 (w32font_text_extents): Use precast w32_font.
9403 (w32font_close): Free cached metrics.
9404 (w32font_open_internal): Allocate space for name on stack.
9405
94062008-06-26 Chong Yidong <cyd@stupidchicken.com>
9407
9408 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9409
94102008-06-26 Jason Rumney <jasonr@gnu.org>
9411
9412 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9413 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9414
94152008-06-26 Juanma Barranquero <lekktu@gmail.com>
9416
9417 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9418
94192008-06-26 Jason Rumney <jasonr@gnu.org>
9420
9421 * w32bdf.c, w32bdf.h: Remove obsolete files.
9422
9423 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9424
9425 * w32gui.h: Don't include w32bdf.h.
9426 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9427 Remove obsolete font support.
9428
9429 * w32font.h (struct w32font_info): Remove compat_w32_font.
9430 Add hfont member.
9431 (FONT_COMPAT): Remove obsolete macro.
9432
9433 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9434 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9435 (w32font_open_internal): Remove compat code. Set new hfont member.
9436 (Fx_select_font): Use new hfont member.
9437
9438 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9439 (uniscribe_encode_char): Use new hfont member.
9440
9441 * w32term.c (x_draw_glyph_string_foreground)
9442 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9443 (x_draw_glyph_string): Use metrics in w32font_info.
9444
94452008-06-26 Kenichi Handa <handa@m17n.org>
9446
9447 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9448
94492008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9450
9451 * unexnext.c:
9452 * m/ews4800.h:
9453 * m/hp9000s300.h:
9454 * m/ibm370aix.h:
9455 * m/mips-siemens.h:
9456 * m/ncr386.h:
9457 * m/next.h:
9458 * m/pmax.h:
9459 * m/powerpcle.h:
9460 * m/tandem-s2.h:
9461 * s/386bsd.h:
9462 * s/bsd386.h:
9463 * s/bsd4-1.h:
9464 * s/bsd4-2.h:
9465 * s/bsdos2-1.h:
9466 * s/bsdos2.h:
9467 * s/bsdos3.h:
9468 * s/bsdos4.h:
9469 * s/nextstep.h:
9470 * s/ultrix4-3.h:
9471 * s/usg5-0.h:
9472 * s/usg5-2-2.h:
9473 * s/usg5-2.h:
9474 * s/usg5-4-3.h:
9475 * s/ux4800.h:
9476 * s/uxpds.h:
9477 * s/uxpv.h: Remove support for obsolete systems.
9478 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9479 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9480 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9481 Remove, insert contents in s/aix4-2.h.
9482 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9483 * s/bsd4-3.h: Rename to ...
9484 * s/bsd-common.h: ... this.
9485 * data.c:
9486 * doc.c:
9487 * ecrt0.c:
9488 * emacs.c:
9489 * fileio.c:
9490 * floatfns.c:
9491 * keyboard.c:
9492 * mem-limits.h:
9493 * print.c:
9494 * process.c:
9495 * sysdep.c:
9496 * syssignal.h:
9497 * systty.h:
9498 * syswait.h:
9499 * term.c:
9500 * unexec.c:
9501 * unexelf.c:
9502 * unexhp9k800.c:
9503 * m/hp800.h:
9504 * m/ibmrs6000.h:
9505 * m/mips.h:
9506 * m/vax.h:
9507 * s/darwin.h:
9508 * s/freebsd.h:
9509 * s/gnu.h:
9510 * s/ms-w32.h:
9511 * s/msdos.h:
9512 * s/netbsd.h:
9513 * s/template.h: Remove references to obsolete variables.
9514
9515 * Makefile.in: Add dependencies for all unexec files.
9516 (admindir): Remove unused variable.
9517 (UNEXEC_SRC): Remove references.
9518
95192008-06-25 Chong Yidong <cyd@stupidchicken.com>
9520
9521 * xfns.c (x_default_font_parameter): If Xft is available, first
9522 try Monospace-12 for the default font.
9523
95242008-06-25 Jason Rumney <jasonr@gnu.org>
9525
9526 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9527
95282008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9529
9530 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9531
9532 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9533
95342008-06-25 Juanma Barranquero <lekktu@gmail.com>
9535
9536 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9537 <scroll-conservatively>: Fix typo in docstring.
9538
9539 * xselect.c (Fx_send_client_event): Doc fix.
9540
95412008-06-25 Kenichi Handa <handa@m17n.org>
9542
9543 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9544
9545 * font.c (font_parse_fcname): Remove unused variables.
9546 (font_sort_entites): Delete the arg SPEC. Caller changed.
9547 Fix for the case of ! best_only.
9548 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9549
9550 * lisp.h (Fstring_to_unibyte): EXFUN it.
9551
9552 * character.h (str_to_unibyte): Extern it.
9553
9554 * character.c (str_to_unibyte): New function.
9555
9556 * fns.c (Fstring_to_unibyte): New function.
9557 (syms_of_fns): Defsubr it.
9558
95592008-06-24 Kenichi Handa <handa@m17n.org>
9560
9561 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9562 DPI too.
9563 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9564
95652008-06-24 Andreas Schwab <schwab@suse.de>
9566
9567 * Makefile.in (${lispsource}loaddefs.el): Rename from
9568 ../lisp/loaddefs.el.
9569 (bootstrap-clean): Do what distclean does but don't remove
9570 Makefile.
9571 (distclean): Depend on bootstrap-clean and remove Makefile.
9572
95732008-06-24 Chong Yidong <cyd@stupidchicken.com>
9574
9575 * buffer.h (struct buffer): New member word_wrap.
9576
9577 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9578 word-wrap.
9579 (init_buffer_once): Initialize them.
9580
9581 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9582 line_wrap enum possessing three possible values.
9583
9584 * termopts.h: Replace truncate_partial_width_windows with
9585 Vtruncate_partial_width_windows.
9586
9587 * dispnew.c (direct_output_for_insert): Avoid direct output when
9588 inserting a space with word wrap on.
9589
9590 * indent.c (compute_motion): Obey integer values of
9591 truncate-partial-width-windows.
9592
9593 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9594 replacing truncate_partial_width_windows.
9595 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9596 truncate only if the window width is below that integer.
9597 (start_display, resize_mini_window, produce_stretch_glyph)
9598 (display_string, move_it_in_display_line_to): Use line_wrap.
9599 (back_to_previous_visible_line_start, reseat_1): Reset
9600 string_from_display_prop_p.
9601 (display_line): Extend default face to end of line when wrapping.
9602
96032008-06-24 Kim F. Storm <storm@cua.dk>
9604
9605 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9606 to wrap continued lines at word boundaries.
9607
96082008-06-24 Jason Rumney <jasonr@gnu.org>
9609
9610 * font.c (Ffont_face_attributes): Multiply pixel size before point
9611 conversion to avoid multiplying rounding error.
9612
96132008-06-23 Jason Rumney <jasonr@gnu.org>
9614
9615 * w32term.c (x_draw_glyph_string_background)
9616 (x_draw_glyph_string): Remove old bdf font code.
9617
9618 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9619
96202008-06-22 Kenichi Handa <handa@m17n.org>
9621
9622 * font.c (font_find_for_lface): Try the adstyle specified in
9623 the property of LFACE_FONT of LFACE (if any).
9624
96252008-06-21 Seiji Zenitani <zenitani@mac.com>
9626 Ryo Yoshitake <ryo@shiftmode.net>
9627
9628 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9629
96302008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9631
9632 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9633 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9634 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9635 (witness-emacs): Remove.
9636 (lisp, shortlisp): Move loaddefs.el earlier.
9637 (mostlyclean): Forget about witness-emacs.
9638
96392008-06-22 Glenn Morris <rgm@gnu.org>
9640
9641 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9642 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9643
96442008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9645
9646 * Makefile.in (PRECOMP): Remove.
9647 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9648 (witness-emacs): Run `compile-first'.
9649 (.el.elc): Use the new compile-onefile target.
9650
96512008-06-21 Kenichi Handa <handa@m17n.org>
9652
9653 * xftfont.c (xftfont_open): Handle QCembolden only when
9654 FC_EMBOLDEN is defined.
9655
96562008-06-21 Andreas Schwab <schwab@suse.de>
9657
9658 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9659 (.el.elc): Likewise.
9660
96612008-06-21 Miles Bader <miles@gnu.org>
9662
9663 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9664 build dir, not the lisp source dir.
9665
96662008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9667
9668 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9669 (bootstrapclean): Remove.
9670 (.el.elc): New rule.
9671 (PRECOMP): New var.
9672 (../lisp/subdirs.el): Remove.
9673 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9674 (witness-emacs): New target.
9675 (mostlyclean): Remove witness-emacs as well.
9676 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9677 Add witness-emacs dependency.
9678
96792008-06-20 Chong Yidong <cyd@stupidchicken.com>
9680
9681 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9682 defined by the font.
9683
96842008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9685
9686 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9687 (bootstrap-clean): New target that keeps TAGS around.
9688 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9689 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9690
96912008-06-20 Jason Rumney <jasonr@gnu.org>
9692
9693 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9694 Remove obsolete font code.
9695
9696 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9697 to determine language support.
9698
96992008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9700
9701 * sysdep.c (cfsetspeed): New fun extracted from the code.
9702 (cfmakeraw): Move before first use.
9703
97042008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9705
9706 * sysdep.c (cfmakeraw): Provide fallback implementation.
9707 (serial_configure): Provide fallback implementation of cfsetspeed.
9708
97092008-06-20 Kenichi Handa <handa@m17n.org>
9710
9711 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9712 the pattern.
9713
9714 * fontset.c (fontset_from_font): Copy font_spec before changing
9715 the elements.
9716
9717 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9718
97192008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9720
9721 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9722 for explicit `font' parameters.
9723
9724 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9725
97262008-06-19 Kenichi Handa <handa@m17n.org>
9727
9728 * frame.c: Include <ctype.h>.
9729 (x_set_font_backend): Allow spacing characters in the X resource
9730 for FontBackend.
9731
97322008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9733
9734 * w32fns.c, xfns.c (Qfont_param): New var.
9735 (syms_of_w32fns): Initialize it.
9736 (x_default_font_parameter): Record explicit `font' into
9737 `font-parameter'.
9738
97392008-06-18 Kenichi Handa <handa@m17n.org>
9740
9741 * font.c (font_parse_xlfd): Fix previous change.
9742 (font_parse_fcname): Don't use :fc-unknown-spec.
9743 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9744 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9745 (font_add_log): Prepend the driver name to the resulting fonts.
9746
9747 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9748 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9749 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9750
9751 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9752 (QCembolden): New variables.
9753 (syms_of_xftfont): DEFSYM them.
9754 (xftfont_open): Call XftFontMatch. Don't trust the result of
9755 XftTextExtents8 if the pixel_size is less than 5.
9756
97572008-06-18 Andreas Schwab <schwab@suse.de>
9758
9759 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9760 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9761
97622008-06-18 Jason Rumney <jasonr@gnu.org>
9763
9764 * w32font.c (w32font_list, w32font_match): Add logging.
9765
9766 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9767
97682008-06-17 Chong Yidong <cyd@stupidchicken.com>
9769
9770 * font.c (font_parse_fcname): Store divider characters for
9771 unknown-spec list. For known key symbols, intern using correct
9772 symbol name.
9773
97742008-06-17 Kenichi Handa <handa@m17n.org>
9775
9776 * xfaces.c (realize_default_face): If the frame is not on window
9777 system, set the fontset of face to nil.
9778
97792008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9780
9781 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9782
97832008-06-16 Juanma Barranquero <lekktu@gmail.com>
9784
9785 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9786 (build_font_name_from_vector): Delete externs.
9787
9788 * xfaces.c (struct font_name): Don't declare.
9789
97902008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9791
9792 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9793
97942008-06-16 Chong Yidong <cyd@stupidchicken.com>
9795
9796 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9797
97982008-06-16 Juanma Barranquero <lekktu@gmail.com>
9799
9800 * font.c (Ffont_spec): Fix usage in docstring.
9801 (Ffont_face_attributes): Doc fix.
9802
98032008-06-16 Andreas Schwab <schwab@suse.de>
9804
9805 * font.c (Ffont_face_attributes): Fix definition.
9806
98072008-06-16 Jason Rumney <jasonr@gnu.org>
9808
9809 * font.h (font_style_symbolic_from_value): Remove.
9810
9811 * font.c (font_style_symbolic_from_value): Remove.
9812 (font_style_symbolic): Revert to pre 2008-06-13 version.
9813
9814 * w32font.c (w32_to_fc_weight): New function.
9815 (w32font_full_name, logfont_to_fcname): Use it.
9816
98172008-06-16 Kenichi Handa <handa@m17n.org>
9818
9819 * font.c (font_check_object): Delete it.
9820 (font_clear_cache): Check if a font-object is alive.
9821 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9822 font-object to nil.
9823 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9824 (font_at): Don't call font_check_object.
9825 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9826
98272008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9828
9829 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9830
98312008-06-16 Chong Yidong <cyd@stupidchicken.com>
9832
9833 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9834
98352008-06-15 Chong Yidong <cyd@stupidchicken.com>
9836
9837 * font.c (font_parse_fcname): Only one decimal point.
9838 (font_unparse_fcname): Handle data in family and foundry indices
9839 as symbols, not strings.
9840 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9841
9842 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9843
9844 * font.h (font_unparse_gtkname): Add prototype.
9845
98462008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9847
9848 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9849
98502008-06-15 Andreas Schwab <schwab@suse.de>
9851
9852 * font.c (font_update_drivers): Fix crash when no drivers match.
9853
98542008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9855
9856 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9857 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9858
98592008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9860
9861 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9862
98632008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9864
9865 * process.c (Fserial_process_configure, Fprocess_send_eof):
9866 Use EQ to compare Lisp_Objects.
9867
98682008-06-13 Jason Rumney <jasonr@gnu.org>
9869
9870 * w32fns.c (Fw32_select_font): Remove old font API function.
9871
9872 * w32font.c (logfont_to_fcname): New function.
9873 (Fx_select_font): New font dialog function compatible with
9874 GTK/fontconfig version.
9875
9876 * font.c (font_style_symbolic_from_value): New function.
9877 (font_style_symbolic): Use it.
9878
9879 * font.h (font_style_symbolic_from_value): Declare new function.
9880
98812008-06-13 Juanma Barranquero <lekktu@gmail.com>
9882
9883 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9884 <font-width-table>: Fix typos in docstrings.
9885
98862008-06-13 Daniel Engeler <engeler@gmail.com>
9887
9888 These changes add serial port access.
9889 * process.c: Add HAVE_SERIAL.
9890 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9891 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9892 (list_processes_1, select_wrapper, Fstop_process)
9893 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9894 (status_notify): Modify to handle serial processes.
9895 [HAVE_SERIAL] (Fserial_process_configure)
9896 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9897 New functions.
9898 * process.h (struct Lisp_Process): Add `type'.
9899 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9900 New functions.
9901 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9902 serial ports.
b71ac3dd 9903 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9904 * w32.h: Add FILE_SERIAL.
9905 (struct _child_process): Add ovl_read, ovl_write.
9906
99072008-06-13 Kenichi Handa <handa@m17n.org>
9908
9909 * dispextern.h (enum lface_attribute_index): New member
9910 LFACE_FOUNDRY_INDEX.
9911
9912 * font.c (font_score): Delete arg alternate_families. Check only
9913 weight, slant, width, and size. Ignore the difference of alias
9914 style symbols.
9915 (font_sort_entites): Adjust for the above change. Reflect the
9916 order of font-driver to scores.
9917 (font_list_entities): Don't check alternate_familes here.
9918 (font_clear_prop): Handle foundry.
9919 (font_update_lface): Don't parse "foundry-family" form here.
9920 Handle FONT_FOUNDRY_INDEX.
9921 (font_find_for_lface): Likewise. Handle alternate families here.
9922 If registry is nil, try iso8859-1 and ascii-0.
9923 (font_open_for_lface): Pay attention to size in ENTITY.
9924 (font_open_by_name): Simplify by calling font_load_for_lface.
9925 (free_font_driver_list): Delete it.
9926 (font_update_drivers): Preserve the order of backends.
9927 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9928 of font_score and font_sort_entites.
9929 (font_update_sort_order): Likewise.
9930
9931 * xfaces.c (LFACE_FOUNDRY): New macro.
9932 (check_lface_attrs): Check foundry.
9933 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9934 (merge_face_vectors): Check foundry.
9935 (merge_face_ref): Likewise.
9936 (Finternal_set_lisp_face_attribute): Likewise.
9937 (x_update_menu_appearance): Likewise.
9938 (Finternal_get_lisp_face_attribute): Likewise.
9939 (lface_hash): Likewise.
9940 (lface_same_font_attributes_p): Likewise.
9941 (x_supports_face_attributes_p): Likewise.
9942 (tty_supports_face_attributes_p): Likewise.
9943 (Finternal_set_alternative_font_family_alist): Intern strings.
9944 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9945 (realize_default_face): Set LFACE_FOUNDRY (lface).
9946
9947 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9948 font-driver at first.
9949
9950 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9951
99522008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9953
9954 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9955
99562008-06-12 Jim Meyering <meyering@redhat.com>
9957
9958 Make unexec_free handle NULL the same way free does.
9959 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9960
99612008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9962
9963 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9964 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9965 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9966 (WEAK_ALIAS): Simplify.
9967 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9968 when searching a unibyte buffer.
9969
99702008-06-12 Chong Yidong <cyd@stupidchicken.com>
9971
9972 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9973
99742008-06-12 Juanma Barranquero <lekktu@gmail.com>
9975
9976 * w32font.c: Include ctype.h.
9977
99782008-06-11 Jason Rumney <jasonr@gnu.org>
9979
9980 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9981 misreported as space.
9982 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9983 as aliases for registry iso10646-1.
9984
99852008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9986
9987 * buffer.c (clone_per_buffer_values): Skip `name'.
9988
99892008-06-11 Chong Yidong <cyd@stupidchicken.com>
9990
9991 * font.c (font_parse_fcname): Fix last change; accept decimal
9992 points in font size.
9993
99942008-06-10 Jason Rumney <jasonr@gnu.org>
9995
9996 * w32uniscribe.c (add_opentype_font_name_to_list):
9997 Skip non unicode fonts.
9998
99992008-06-10 Chong Yidong <cyd@stupidchicken.com>
10000
10001 * xfns.c (Fx_font_dialog): New function.
10002
10003 * gtkutil.c (xg_dialog_response_cb): Rename from
10004 xg_file_response_callback.
10005 (pop_down_dialog): Rename from pop_down_file_dialog.
10006 (xg_get_file_name): Callers changed.
10007 (xg_get_font_name): New function.
10008
10009 * gtkutil.h (xg_get_font_name): Insert prototype.
10010
100112008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10012
10013 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10014 x_underline_minimum_display_offset.
10015 (syms_of_xdisp): Declare it here rather than in xterm.c.
10016 * dispextern.h (underline_minimum_offset): Declare it.
10017 * w32term.c (x_draw_glyph_string): Use it.
10018 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10019 (syms_of_xterm): Don't declare it any more.
10020 (x_draw_glyph_string): Adjust to the new name.
10021
8719abec 100222008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10023
10024 * xterm.c (x_underline_minimum_display_offset): New var.
10025 (x_draw_glyph_string): Use it.
10026 (syms_of_xterm): Declare it.
10027
100282008-06-10 Chong Yidong <cyd@stupidchicken.com>
10029
10030 * font.c (font_parse_fcname): Accept GTK-style font names too.
10031
100322008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10033
10034 * dired.c (file_name_completion): Don't return t if the match is exact
10035 but with different capitalization.
10036 * minibuf.c (Ftry_completion): Simplify.
10037
10038 * window.c (Vwindow_point_insertion_type): New var.
10039 (set_window_buffer): Use it.
10040 (syms_of_window): Init and export it to Lisp.
10041
100422008-06-10 Kenichi Handa <handa@m17n.org>
10043
10044 * font.h (font_intern_prop): Prototype adjusted.
10045
10046 * font.c (font_intern_prop): New arg force_symbol.
10047 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10048 Adjust for the change of font_intern_prop.
10049
10050 * ftfont.c (ftfont_pattern_entity):
10051 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10052 (w32_registry):
10053 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10054 the change of font_intern_prop.
10055
100562008-06-09 Juanma Barranquero <lekktu@gmail.com>
10057
10058 * w32menu.c (digest_single_submenu): Declare extern.
10059
100602008-06-09 Jason Rumney <jasonr@gnu.org>
10061
10062 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10063
10064 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10065 (parse_single_submenu): Remove.
10066 (digest_single_submenu): Remove.
10067 (syms_of_w32menu): Don't initialise variables that have moved
10068 to menu.c.
10069 (set_frame_menubar): Sync with version in xmenu.c.
10070 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10071
10072 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10073 Make static again.
10074
100752008-06-09 Jason Rumney <jasonr@gnu.org>
10076
10077 Changes to w32 files related to the move of common menu code
10078 to menu.c on 2008-06-08 by Chong Yidong.
10079
10080 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10081 defs to w32gui.h.
10082 (single_keymap_panes, push_menu_item, push_menu_pane):
10083 Make globally visible.
10084
10085 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10086 (local_free, malloc_widget_value, free_widget_value)
10087 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10088 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10089 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10090 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10091 (menu_items, menu_items_allocated, menu_items_used)
10092 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10093 (init_menu_items, finish_menu_items, discard_menu_items)
10094 (grow_menu_items, push_submenu_start, push_submenu_end)
10095 (push_left_right_boundary, push_menu_pane, push_menu_item)
10096 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10097 (free_menubar_widget_tree_value, parse_single_submenu)
10098 (update_submenu_strings): Remove functions.
10099 (xmalloc_widget_value): Remove and declare extern.
10100
10101 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10102 (OBJ1): Build it.
10103
10104 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10105 (local_heap, local_alloc, local_free, malloc_widget_value)
10106 (free_widget_value): Define here.
10107
101082008-06-09 Kenichi Handa <handa@m17n.org>
10109
10110 * font.h (Qascii_0): Extern it.
10111
10112 * font.c (Qascii_0): New variable.
10113 (syms_of_font): DEFSYM it.
10114 (font_open_by_name): If the registry "iso8859-1" fails, try also
10115 "ascii-0".
10116
10117 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10118
101192008-06-08 Kenichi Handa <handa@m17n.org>
10120
10121 * .gdbinit (xfont): New command.
10122
101232008-06-08 Andreas Schwab <schwab@suse.de>
10124
10125 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10126 * Makefile.in (menu.o): Update dependencies.
10127
10128 * Makefile.in (obj): Always add menu.o.
10129 * emacs.c (main): Always call syms_of_menu.
10130 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10131
101322008-06-08 Chong Yidong <cyd@stupidchicken.com>
10133
10134 * Makefile.in: Compile menu.c.
10135
10136 * lisp.h: Declare syms_of_menu.
10137
10138 * emacs.c (main): Call syms_of_menu.
10139
10140 * keyboard.h: Relocate platform-independent menu definitions from
10141 xmenu.c.
10142
10143 * menu.c: New file. Relocate platform-independent menu
10144 definitions from xmenu.c. Suggested by Adrian Robert.
10145
10146 * xmenu.c: Remove platform-independent menu definitions.
10147 (menu_items menu_items_inuse, menu_items_allocated)
10148 (menu_items_used, menu_items_n_panes)
10149 (menu_items_submenu_depth): Move to keyboard.h.
10150 (init_menu_items, finish_menu_items, unuse_menu_items)
10151 (discard_menu_items, restore_menu_items, save_menu_items)
10152 (grow_menu_items, push_submenu_start, push_submenu_end)
10153 (push_left_right_boundary, push_menu_pane, push_menu_item)
10154 (keymap_panes, single_keymap_panes, single_menu_item)
10155 (list_of_panes, list_of_items, find_and_call_menu_selection)
10156 (xmalloc_widget_value, free_menubar_widget_value_tree)
10157 (parse_single_submenu, digest_single_submenu)
10158 (update_submenu_strings): Move to menu.c.
10159
101602008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10161
10162 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10163
101642008-06-06 Miles Bader <miles@gnu.org>
10165
10166 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10167 face, not frame default.
10168
101692008-06-05 Martin Rudalics <rudalics@gmx.at>
10170
10171 * window.c (pop_up_windows, pop_up_frames)
10172 (display_buffer_reuse_frames, Vpop_up_frame_function)
10173 (Vdisplay_buffer_function, Veven_window_heights)
10174 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10175 (Vspecial_display_function, Vsame_window_buffer_names)
10176 (Vsame_window_regexps, split_height_threshold)
10177 (Vsplit_window_preferred_function): Move those vars to window.el.
10178 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10179 (Fdisplay_buffer): Move those functions to window.el.
10180 (syms_of_window): Remove corresponding declarations.
10181 (display_buffer): New function.
10182 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10183 * dispnew.c (Flast_nonminibuf_frame): New function.
10184 * buffer.c (Fpop_to_buffer): Move to window.el.
10185
101862008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10187
10188 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10189
101902008-06-05 Kenichi Handa <handa@m17n.org>
10191
10192 * coding.c (detect_coding): Fix previous change.
10193 (detect_coding_system): Likewise.
10194
101952008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10196
10197 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10198
10199 * keymap.c (Vminibuffer_local_filename_must_match_map):
10200 Rename from Vminibuffer_local_must_match_filename_map.
10201 (syms_of_keymap):
10202 * minibuf.c (Fcompleting_read): Adjust accordingly.
10203 * commands.h: Rename declaration as well.
10204
102052008-06-05 Kenichi Handa <handa@m17n.org>
10206
10207 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10208 family name.
10209 (Ffont_put): Likewise.
10210
10211 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10212 current font-spec.
10213
10214 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10215 is unspecified.
10216
10217 * xfaces.c (realize_x_face): If the font-related face attributes
10218 are the same as those of default face, realize a new fontset from
10219 default->fontset.
10220 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10221
102222008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10223
10224 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10225 (move_it_in_display_line): New wrapper.
10226
10227 * window.c (window_scroll_pixel_based_preserve_x)
10228 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10229 (window_scroll_pixel_based, window_scroll_line_based):
10230 Use them to preserve column positions.
10231 (syms_of_window): Initialize them.
10232
10233 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10234 (HPOS . VPOS) pair.
10235
10236 * dispextern.h (move_it_in_display_line): Declare.
10237
102382008-06-05 Juanma Barranquero <lekktu@gmail.com>
10239
10240 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10241 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10242 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10243
102442008-06-04 Juanma Barranquero <lekktu@gmail.com>
10245
10246 * window.c (Fset_window_parameter): Doc fix.
10247 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10248
102492008-06-04 Joakim Verona <joakim@verona.se>
10250
10251 * window.h (struct window): Add new member window_parameters.
10252
10253 * window.c (Fwindow_parameters, Fwindow_parameter)
10254 (Fset_window_parameter): New defuns.
10255 (syms_of_window): Defsubr the new defuns.
10256 (make_window): Initialize window_parameters to nil.
10257
102582008-06-04 John Paul Wallington <jpw@pobox.com>
10259
10260 * eval.c (Fdefmacro): Doc fix.
10261
102622008-06-04 Kenichi Handa <handa@m17n.org>
10263
10264 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10265 Be sure to call setup_coding_system when we find a proper coding system.
10266 (detect_coding_system): Fix handling of coding->head_ascii.
10267
102682008-06-03 Andreas Schwab <schwab@suse.de>
10269
10270 * font.c (font_prop_validate_spacing): Fix last change.
10271
102722008-06-03 Kenichi Handa <handa@m17n.org>
10273
10274 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10275 (font_parse_fcname): Fix handling of unknown key.
10276
10277 * xfont.c (xfont_list): Try an alias.
10278
10279 * charset.c (char_charset): Return NULL if the arg charset_list is
10280 specified and C doesn't belong to any of them.
10281
102822008-06-02 Chip Coldwell <coldwell@redhat.com>
10283
10284 * font.c (font_pixel_size): Don't take cdr of an integer.
10285
102862008-06-02 Jim Meyering <meyering@redhat.com>
10287
10288 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10289 * alloc.c (xfree): Return right away for a NULL arg.
10290 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10291 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10292 * mac.c (create_apple_event_from_event_ref): Likewise.
10293 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10294 Likewise.
10295 * doprnt.c (doprnt1): Likewise.
10296 * frame.c (frame): Likewise.
10297 * keyboard.c (wipe_kboard): Likewise.
10298 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10299 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10300 * term.c (tty_default_color_capabilities, maybe_fatal)
10301 (delete_tty): Likewise.
10302 * w16select.c (string): Likewise.
10303 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10304 * w32bdf.c (w32_free_bdf_font): Likewise.
10305 * w32fns.c (w32_unload_font): Likewise.
10306 * w32font.c (w32font_close): Likewise.
10307 * window.c (size_window): Likewise.
10308 * xselect.c (receive_incremental_selection): Likewise.
10309 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10310 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10311 * w32.c (stat): Likewise.
10312
10313 Remove useless if-before-free tests.
10314 * editfns.c (Fset_time_zone_rule): Likewise.
10315 * lread.c (nosuffix): Likewise.
10316 * ralloc.c (get_bloc): Likewise.
10317 * regex.c (reg_free): Likewise.
10318 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10319 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10320 * xsmfns.c (smc_save_yourself_CB): Likewise.
10321
103222008-06-02 Kenichi Handa <handa@m17n.org>
10323
10324 * font.c (font_find_for_lface): Handle float font size.
10325 (font_open_for_lface): Likewise.
10326
10327 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10328 comparing the properties.
10329
103302008-06-01 Jason Rumney <jasonr@gnu.org>
10331
10332 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10333 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10334 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10335 Don't add empty script list.
10336 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10337
103382008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10339
10340 * Makefile.in (dot, dotdot): Remove, update users.
10341 ".." has been used elsewhere in the file for a long time.
10342 (LIBXT_STATIC): Remove conditional based on unused variable.
10343
103442008-06-01 Miles Bader <miles@gnu.org>
10345
10346 * xfaces.c (Vface_remapping_alist): New variable.
10347 (syms_of_xfaces): Initialize it.
10348 (enum named_merge_point_kind): New type.
10349 (struct named_merge_point): Add `named_merge_point_kind' field.
10350 (push_named_merge_point): Make cycle detection respect different
10351 named-merge-point kinds.
10352 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10353 Remove face-name alias resolution.
10354 (lface_from_face_name): New definition using
10355 `lface_from_face_name_no_resolve'.
10356 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10357 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10358 (get_lface_attributes): New definition that layers face-remapping on
10359 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10360 (lookup_basic_face): New function.
10361 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10362 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10363 `get_lface_attributes'.
10364 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10365 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10366 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10367
10368 * xdisp.c (init_iterator): Pass base_face_id through
10369 `lookup_basic_face' when we actually use it as a face-id.
10370 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10371 DEFAULT_FACE_ID.
10372
10373 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10374 lookup the initial face-id.
10375
10376 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10377
103782008-06-01 Juanma Barranquero <lekktu@gmail.com>
10379
10380 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10381 (Fremove_text_properties): Fix typos in docstrings.
10382
103832008-05-31 Kenichi Handa <handa@m17n.org>
10384
10385 * font.c (font_list_entities): Fix the car part of data to be
10386 stored in the cache.
10387
10388 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10389
103902008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10391
10392 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10393 Add a `test' argument so another predicate than `equal' can be used.
10394 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10395 (map_char_table): Remove unused vars `c' and `i'.
10396 * lisp.h (Foptimize_char_table): Adjust declaration.
10397 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10398
103992008-05-30 Kenichi Handa <handa@m17n.org>
10400
10401 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10402 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10403 defined.
10404
104052008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10406
10407 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10408 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10409 frame-local settings for the same variable.
10410
104112008-05-30 Kenichi Handa <handa@m17n.org>
10412
10413 * fontset.c (Ffont_info): Move to font.c.
10414 (syms_of_fontset): Delete defsubr of Sfont_info.
10415
10416 * font.c (font_style_to_value, font_score): Delete casting of the
10417 args to xstcasecmp.
10418 (register_font_driver): Increment num_font_drivers only when
10419 registering the driver globally.
10420 (Ffont_info): Move from fontset.c. Handle a font object too.
10421 (syms_of_font): Defsubr Sfont_info.
10422
104232008-05-29 Kenichi Handa <handa@m17n.org>
10424
10425 * coding.h (enum define_coding_utf8_arg_index): New enum.
10426 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10427 coding_attr_utf_bom.
10428 (enum utf_bom_type): Rename from utf_16_bom_type.
10429 (struct utf_16_spec): Adjust for the above change.
10430 (struct coding_system): Add utf_8_bom in `spec' union.
10431
10432 * coding.c (CODING_UTF_8_BOM): New macro.
10433 (enum coding_category): Delete coding_category_utf_8, add
10434 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10435 coding_category_utf_8_sig.
10436 (CATEGORY_MASK_UTF_8): Delete it.
10437 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10438 (CATEGORY_MASK_UTF_8_SIG): New macros.
10439 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10440 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10441 CATEGORY_MASK_UTF_8_SIG.
10442 (CATEGORY_MASK_UTF_8): New macro.
10443 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10444 (detect_coding_utf_8): Check BOM.
10445 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10446 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10447 (encode_coding_utf_16): Likewise.
10448 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10449 (detect_coding, detect_coding_system): Handle utf-8-auto.
10450 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10451 (syms_of_coding): Fix setting up of Vcoding_category_table.
10452
104532008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10454
10455 * process.c (Faccept_process_output): If `millisec' is non-nil,
10456 `seconds' default to 0.
10457 (wait_reading_process_output): Also return non-nil if we read output
10458 from a non-running process.
10459
104602008-05-29 Jason Rumney <jasonr@gnu.org>
10461
10462 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10463 `raster' specified.
10464 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10465 in the uniscribe backend, but disallow any font that has no
10466 unicode subrange support.
10467
104682008-05-29 Juanma Barranquero <lekktu@gmail.com>
10469
10470 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10471 Fix typos in docstrings.
10472
104732008-05-29 Kenichi Handa <handa@m17n.org>
10474
10475 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10476 (Fx_family_fonts): Set frame correctly.
10477
104782008-05-28 Jason Rumney <jasonr@gnu.org>
10479
10480 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10481
104822008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10483
10484 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10485 calling build_annotations.
10486
104872008-05-28 Juanma Barranquero <lekktu@gmail.com>
10488
10489 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10490 (Fencode_coding_string):
10491 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10492 <latin-extra-code-table>: Fix typos in docstrings.
10493 (syms_of_coding) <coding-system-alist>: Doc fix.
10494 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10495
104962008-05-28 Kenichi Handa <handa@m17n.org>
10497
10498 * fontset.c (Ffont_info): Don't call font_close_object.
10499
10500 * font.c (font_parse_family_registry): Use Ffont_put to validate
10501 foundry and family.
10502 (font_delete_unmatched): Don't check spacing.
10503 (font_list_entities): Add spacing to the spec to list fonts.
10504
10505 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10506 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10507
10508 * coding.c (encode_coding_raw_text): Fix previous change.
10509 (encode_coding_object): When the dst_object is a buffer and is
10510 different from src_object, move gap to PT.
10511
105122008-05-27 Chong Yidong <cyd@stupidchicken.com>
10513
10514 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10515
105162008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10517
10518 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10519 all branches. Compute it differently.
10520
10521 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10522
105232008-05-27 Juanma Barranquero <lekktu@gmail.com>
10524
10525 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10526 into "else if () ... else ...".
10527
105282008-05-27 Jason Rumney <jasonr@gnu.org>
10529
10530 * w32font.c (w32font_open_internal): Determine if glyph indices
10531 are likely to work here.
10532
105332008-05-27 Chong Yidong <cyd@stupidchicken.com>
10534
10535 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10536 draw overlap glyphs with appropriate highlighting.
10537
105382008-05-27 Kenichi Handa <handa@m17n.org>
10539
10540 * xfont.c (xfont_open): Fix calculation of font->average_width.
10541
105422008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10543
10544 * casefiddle.c (casify_object): Try to guess better whether the
10545 argument is a byte or a char.
10546
105472008-05-26 Andreas Schwab <schwab@suse.de>
10548
10549 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10550 Always send multiples of format size.
10551
10552 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10553
105542008-05-26 Jason Rumney <jasonr@gnu.org>
10555
10556 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10557 (compute_metrics): Don't set failure if we just cleared the cache.
10558 (w32_weight_table): Remove unused variable.
10559 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10560 backwards compatibility.
10561
105622008-05-25 Kenichi Handa <handa@m17n.org>
10563
10564 * w32term.c (x_draw_glyph_string):
10565 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10566
10567 * xfaces.c: Delete unused function prototypes.
10568 (xstrlwr, font_frame): Delete them.
10569 (clear_face_cache): Delete unused variable.
10570
10571 * xftfont.c (xftfont_open): Delete unused variable.
10572 If underline_thickness is not 1, adjust underline_position.
10573
10574 * ftxfont.c (ftxfont_open): Delete unused variable.
10575
10576 * fontset.c (face_for_char): Optimize for the case of no charset
10577 property.
10578
10579 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10580 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10581 (otf_open, font_otf_capability, generate_otf_features)
10582 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10583 Comment out by surrounding "#if 0" and "#endif" for the moment.
10584 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10585 (syms_of_font): Codes for accessing above commented out.
10586
105872008-05-24 Eli Zaretskii <eliz@gnu.org>
10588
10589 * w32proc.c: Include dispextern.h.
10590
10591 * w32.c: Include dispextern.h.
10592
105932008-05-23 Juanma Barranquero <lekktu@gmail.com>
10594
10595 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10596 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10597 Fix typos in docstrings.
10598
105992008-05-23 Jason Rumney <jasonr@gnu.org>
10600
10601 * xsmfns.c: Remove includes that are already included by config.h.
10602
106032008-05-23 Kenichi Handa <handa@m17n.org>
10604
10605 * charset.c (Qemacs, charset_emacs): New variables.
10606 (char_charset): Fix for non-Unicode characters.
10607 (syms_of_charset): Define charset_emacs.
10608
10609 * w32term.c (x_draw_glyph_string): Be sure to update
10610 s->underline_thickness and s->underline_position. Be sure to draw
10611 underline within the current line area.
10612
10613 * xterm.c (x_draw_glyph_string): Be sure to update
10614 s->underline_thickness and s->underline_position. Be sure to draw
10615 underline within the current line area.
10616
10617 * fontset.c: Delete unused variables and add casting for char *
10618 throughout the file.
10619 (fontset_font): Try the fallback fonts of the current fontset
10620 before consulting the default fontset.
10621
10622 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10623
10624 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10625
106262008-05-22 Jason Rumney <jasonr@gnu.org>
10627
10628 * font.c: Don't include strings.h.
10629
10630 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10631
10632 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10633 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10634 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10635 to call xstrcasecmp.
10636
10637 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10638
10639 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10640
10641 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10642
10643 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10644
106452008-05-22 Kenichi Handa <handa@m17n.org>
10646
10647 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10648
10649 * font.c (font_prop_validate_style): Adjust for the format
10650 change of font_style_table.
10651
10652 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10653 two args.
10654
10655 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10656 two args.
10657
106582008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10659
10660 * minibuf.c (keys_of_minibuf): Delete.
10661 * lisp.h (keys_of_minibuf): Delete.
10662 * emacs.c (main): Don't call keys_of_minibuf.
10663
106642008-05-22 Kenichi Handa <handa@m17n.org>
10665
10666 * ftfont.c (ftfont_resolve_generic_family): Rename from
10667 ftfont_list_generic_family. Return a single family for each
10668 generic family.
10669 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10670 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10671 Call font_add_log.
10672 (ftfont_match): Call font_add_log.
10673
10674 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10675 (FONT_DEBUG): Define it.
10676 (font_add_log): Extern it.
10677 (font_assert): Rename from xassert.
10678
10679 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10680 (xfont_list_family): Call font_add_log.
10681 (xfont_match): Likewise.
10682 (memq_no_quit): Delete.
10683
10684 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10685 call of Ffont_xlfd_name.
10686
10687 * xfaces.c (struct table_entry, slant_table, weight_table)
10688 (swidth_table): Move to font.c.
10689
10690 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10691 xassert are changed to font_assert. Delete many unused variables.
10692 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10693 New variables.
10694 (struct table_entry): Move from xfaces.c and modified.
10695 (weight_table, slant_table, width_table): Move from xfaces.c and
10696 contents adjusted for the change of struct table_entry.
10697 (font_style_to_value, font_style_symbolic): Adjust for the
10698 format change of font_style_table.
10699 (font_parse_family_registry): Don't overwrite existing foundry and
10700 family of font_spec.
10701 (font_score): Fix calculation of diff for sizes.
10702 (font_sort_entites): Call font_add_log.
10703 (font_delete_unmatched): Return a newly created list.
10704 (font_list_entities): Fix previous change. Call font_add_log.
10705 (font_matching_entity, font_open_entity, font_close_entity):
10706 Call font_add_log.
10707 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10708 (Finternal_set_font_style_table): Delete.
10709 (BUILD_STYLE_TABLE): New macro.
10710 (build_style_table): New function.
10711 (Vfont_log, font_log_env_checked): New variables.
10712 (font_add_log): New function.
10713 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10714 Declare Lisp variables "font-weight-table", "font-slant-table",
10715 "font-width-table", and "font-log". Initialize font_style_table.
10716
107172008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10718
10719 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10720
107212008-05-21 Seiji Zenitani <zenitani@mac.com>
10722 Ryo Yoshitake <ryo@shiftmode.net>
10723
10724 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10725 (Vframe_alpha_lower_limit): New variable.
10726 (x_set_alpha): New function.
10727
10728 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10729
10730 * xfns.c (x-create-frame, Qalpha):
10731 Initialize the frame parameter `alpha'.
10732 * xterm.c (OPAQUE, OPACITY): New.
10733 (x_set_frame_alpha): New function.
10734 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10735
10736 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10737 * w32fns.c (w32_frame_parm_handlers): Likewise.
10738
107392008-05-20 Jason Rumney <jasonr@gnu.org>
10740
10741 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10742 truetype fonts to opentype list.
10743
107442008-05-20 Juanma Barranquero <lekktu@gmail.com>
10745
10746 * fontset.c (Ffontset_info): Doc fix.
10747 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10748 <ignore-relative-composition>: Fix typos in docstrings.
10749
10750 * font.c (syms-of-font) <font-encoding-alist>:
10751 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10752 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10753 (Ffont_otf_alternates): Doc fixes.
10754
107552008-05-20 Kenichi Handa <handa@m17n.org>
10756
10757 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10758 font.h through out the file.
10759 (FONT_DRIVERS): Rename from FONTOBJ.
10760 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10761 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10762
10763 * emacs.c (main): Call syms_of_font unconditionally.
10764
10765 * font.h (find_font_encoding): Extern it.
10766
10767 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10768 fontset.c.
194d44e7 10769 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10770 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10771 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10772 only when HAVE_WINDOW_SYSTEM is defined.
10773 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10774 when HAVE_WINDOW_SYSTEM is defined.
10775
10776 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10777 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10778
10779 * xfaces.c: Include font.h unconditionally.
10780 (merge_face_ref, merge_face_vectors)
10781 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10782
107832008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10784
10785 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10786 indirect_variable.
10787 * eval.c (lisp_indirect_variable): New fun.
10788 (Fuser_variable_p): Use it.
10789
107902008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10791
10792 * lisp.h (indirect_variable):
10793 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10794 Use Lisp_Symbol pointers rather than Lisp_Object.
10795 Adjust callers.
10796 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10797 To this end, change calling-convention.
10798
10799 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10800 if some non-hidden buffers are selected by string&pred.
10801
108022008-05-19 Chong Yidong <cyd@stupidchicken.com>
10803
10804 * process.c (wait_reading_process_output): Always check status
10805 when in batch mode.
10806
108072008-05-19 Kenichi Handa <handa@m17n.org>
10808
10809 * font.c (font_list_entities): Fix handling of cache.
10810 (font_matching_entity): Likewise.
10811
10812 * ftfont.c (cs_iso8859_1): Delete.
10813 (ft_face_cache): New variable.
10814 (struct ftfont_info): New member fc_charset_idx.
10815 (ftfont_build_basic_charsets): Delete.
10816 (fc_charset_table): New variable.
10817 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10818 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10819 Callers changed.
10820 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10821 (ftfont_spec_pattern): New argument fc_charset_idx.
10822 Check registry more rigidly. Change callers.
10823 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10824 change of :font-entity property of the font.
10825
10826 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10827 property of the font.
10828
108292008-05-18 Juanma Barranquero <lekktu@gmail.com>
10830
10831 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10832 (Funencodable_char_position, Fcheck_coding_systems_region)
10833 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10834 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10835 (Ffind_operation_coding_system, Fset_coding_system_priority)
10836 (Fcoding_system_eol_type): Doc fixes.
10837
108382008-05-17 Glenn Morris <rgm@gnu.org>
10839
10840 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10841
108422008-05-16 Eli Zaretskii <eliz@gnu.org>
10843
10844 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10845 and st_gid.
10846
10847 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10848 HAVE_WINDOW_SYSTEM is not defined.
10849
10850 * xfaces.c (merge_face_ref, merge_face_vectors)
10851 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10852 HAVE_WINDOW_SYSTEM is defined.
10853 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10854
108552008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10856
10857 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10858
108592008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10860
10861 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10862
108632008-05-15 Kenichi Handa <handa@m17n.org>
10864
10865 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10866 preference.
10867
108682008-05-15 Glenn Morris <rgm@gnu.org>
10869
10870 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10871
108722008-05-15 Chong Yidong <cyd@stupidchicken.com>
10873
10874 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10875 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10876
10877 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10878
108792008-05-15 Kenichi Handa <handa@m17n.org>
10880
10881 * ftfont.c (ftfont_list): Downcase family name to check generic
10882 families.
10883
10884 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10885 font-spec for QCfont value.
10886
10887 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10888 buffer. Check the return value of it.
10889
108902008-05-14 Jason Rumney <jasonr@gnu.org>
10891
10892 * w32term.c (w32_get_glyph_overhangs): Remove.
10893 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10894
108952008-05-14 Kenichi Handa <handa@m17n.org>
10896
10897 * font.c (font_prop_validate): Make nil a valid value.
10898 (font_clear_cache): Check if the cached vector of entities is nil
10899 or not.
10900
109012008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10902
10903 * emacs.c (main_thread): Conditionalize on
10904 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10905 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10906
10907 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10908 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10909 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10910
109112008-05-14 Kenichi Handa <handa@m17n.org>
10912
10913 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10914 has no corresponding coding system.
10915
109162008-05-14 Jason Rumney <jasonr@gnu.org>
10917
10918 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10919
10920 * w32font.h (w32font_open_internal): Update declaration.
10921
10922 * w32font.c (w32font_open_internal): Change last argument from
10923 w32font_info struct to font object. Fill in font object from
10924 font_entity. Get Outline metrics if possible. Use them to
10925 calculate underline position and thickness. Use xlfd name as name
10926 property. Don't set codepage.
10927 (w32font_open): Pass font_object to w32font_open_internal. Don't
10928 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10929 (w32font_draw): Use s->font.
10930 (clear_cached_metrics): Don't clear non-existent blocks.
10931
10932 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10933 font was not found.
10934 (x_draw_glyph_string): Use underline position and thickness from font.
10935
10936 * w32uniscribe.c (uniscribe_open): Pass font_object to
10937 w32font_open_internal.
10938
109392008-05-14 Kenichi Handa <handa@m17n.org>
10940
10941 These changes are to delete all legacy font-handling codes, and
10942 make Emacs use only font-backends.
10943
10944 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10945 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10946
10947 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10948
10949 * charset.h (Vcharset_non_preferred_head)
10950 (Vcurrent_iso639_language): Extern them.
10951
10952 * charset.c (Vcharset_non_preferred_head): New variable.
10953 (Vcurrent_iso639_language): New variable.
10954 (syms_of_charset): Declare it as a Lisp variable.
10955 (char_charset): Don't check non preferred charsets. As a last
10956 resort, return charset_unicode.
10957 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10958
10959 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10960 conditionals. Don't check enable_font_backend. Delete all codes
10961 used only when USE_FONT_BACKEND is not defined.
10962
10963 * dispextern.h (struct glyph_string): Change type of `font' to
10964 `struct font *'.
10965 (struct glyph_string): New member underline_position and
10966 underline_thickness.
10967 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10968 (struct face): Change type of `font' to `struct font *'. Remove
10969 members `font_name', `font_info_id'.
10970 (per_char_metric, encode_char): Delete externs.
10971 (calc_pixel_width_or_height): Adjust the prototype.
10972
10973 * emacs.c (enable_font_backend): Delete extern.
10974 (main): Don't set enable_font_backend. Don't check the command
10975 line argument "-disable-font-backend".
10976
10977 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10978 (enum font_property_index): New members FONT_DPI_INDEX,
10979 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10980 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10981 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10982 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10983 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10984 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10985 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10986 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10987 (struct font_spec, struct font_entity): New structs.
10988 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10989 (struct font): Many members from old "struct font_info" moved to
10990 here. Members font and entity deleted.
10991 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10992 the new font-related objects.
10993 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10994 (CHECK_FONT_GET_OBJECT): Likewise.
10995 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10996 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10997 (struct font_driver): New members case_sensitive anc check. Type
10998 of the member list and open changed.
10999 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11000 (font_symbolic_width, font_find_object, font_get_spec)
11001 (font_set_lface_from_name): Delete extern.
11002 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11003
11004 * font.c: Include <strings.h>.
11005 (enable_font_backend): Delete it.
11006 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11007 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11008 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11009 (null_string): Delete it.
11010 (null_vector): Make it static.
11011 (font_family_alist): Delete it.
11012 (Qnormal): Extern it.
11013 (QCextra, QClanguage): Delete it.
11014 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11015 (font_make_spec, font_make_entity, font_make_object)
11016 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11017 the string. Callers changed.
11018 (font_pixel_size): Adjusted for the format change of font-related
11019 objects.
11020 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11021 (font_style_to_value, font_style_symbolic): New function.
11022 (build_font_family_alist): Delete it.
11023 (font_registry_charsets): Use Fassoc_string instead of
11024 assq_no_quit.
11025 (font_prop_validate_symbol): Don't return null_string.
11026 (font_prop_validate_style): Adjusted for the change of
11027 style-related values in a font vector.
11028 (font_property_table): Delete entries for QClanguage and
11029 QCantialias, add entries for QCavgwidth.
11030 (get_font_prop_index): Delete the 2nd argument FROM.
11031 (font_prop_validate): Arguments changed.
11032 (font_put_extra): Adjusted for the change of font-related objects.
11033 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11034 (font_parse_fcname, font_unparse_fcname)
11035 (font_prepare_composition): Likewise.
11036 (font_parse_family_registry): Renamed from font_merge_old_spec.
11037 (otf_open): Delete the 1st arg entity.
11038 (font_otf_capability): Adjusted for the above change.
11039 (font_score): New arg alternate_families. Adjusted for the change
11040 of font-related objects.
11041 (font_sort_entites): New arg best_only.
11042 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11043 Delete them.
11044 (font_match_p): Check alternate families.
11045 (font_find_object): Delete it.
11046 (font_check_object): New function.
11047 (font_clear_cache): Adjusted for the change of font-related objects.
11048 (font_delete_unmatched): New arg.
11049 (font_list_entities): Call font_driver->list with a spec that
11050 doesn't specify style-related properties.
11051 (font_matching_entity): Arguments changed. Caller changed.
11052 (font_open_entity): Adjusted for the change of font-related objects.
11053 (font_close_object, font_has_char, font_encode_char)
11054 (font_get_name, font_get_spec): Likewise.
11055 (font_spec_from_name, font_clear_prop, font_update_lface):
11056 New functions.
11057 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11058 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11059 (font_at): Adjusted for the change of font-related objects.
11060 (font_range): New function.
11061 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11062 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11063 (Fcopy_font_spec, Fmerge_font_spec): New function.
11064 (Ffont_family_list): Renamed from list-families.
11065 (Finternal_set_font_style_table): Arguments changed.
11066 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11067 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11068 change of font-related objects.
11069 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11070
11071 * fontset.h (struct font_info): Delete it. Most members go to
11072 struct font.
11073 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11074 (enum FONT_SPEC_INDEX): Delete it.
11075 (font_info, list_fonts_func, load_font_func, query_font_func)
11076 (set_frame_fontset_func, find_ccl_program_func)
11077 (get_font_repertory_func, new_fontset_from_font_name): Delete
11078 externs.
11079 (fontset_from_font_name): Extern it.
11080 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11081 (FONT_INFO_FROM_FACE): Deleted.
11082 (face_for_font): Adjust prototype.
11083
11084 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11085 conditionals. Don't check enable_font_backend. Delete all codes
11086 used only when USE_FONT_BACKEND is not defined.
11087 (get_font_info_func, list_font_func, load_font_func)
11088 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11089 (get_font_repertory_func): Delete them.
11090 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11091 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11092 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11093 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11094 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11095 (fontset_compare_rfontdef): New function.
11096 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11097 rfont-defs by qsort. Adjusted for the change of font-group vector.
11098 (load_font_get_repertory): Deleted.
11099 (fontset_find_font): Use new macros to ref/set elements of
11100 font-def and rfont-def.
11101 (fontset_font): Fix the timing of remembering that no font for C.
11102 (free_face_fontset): Do nothing if the face has no fontset.
11103 (face_suitable_for_char_p): Use new macros to ref/set elements of
11104 rfont-def.
11105 (face_for_char): Likewise. Call face_for_char with font_object.
11106 (fs_load_font): Delete. Delete #pragma surrounding it.
11107 (fs_query_fontset): Use strcasecmp instead of strcmp.
11108 (generate_ascii_font_name): Adjusted for the format change of
11109 font-spec.
11110 (Fset_fontset_font): Likewise. Use new macros to set elements of
11111 font-def.
11112 (Fnew_fontset): Use font_unparse_xlfd to generate
11113 FONTSET_ASCII (fontset).
11114 (new_fontset_from_font_name): Deleted.
11115 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11116 a fontset is already created for the font. FIx updating of
11117 Vfontset_alias_alist.
11118 (fontset_ascii_font): Deleted.
11119 (Ffont_info): Adjusted for the format change of font-spec.
11120 (Finternal_char_font): Likewise.
11121 (Ffontset_info): Likewise.
11122 (syms_of_fontset): Don't check load_font_func.
11123
11124 * fns.c (internal_equal): Handle PREV_FONT.
11125
11126 * frame.h: Delete USE_FONT_BACKEND conditional.
11127
11128 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11129 conditionals. Don't check enable_font_backend. Delete all codes
11130 used only when USE_FONT_BACKEND is not defined.
11131 (x_set_font): Call x_new_font, not x_new_fontset2.
11132 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11133 already set for the frame.
11134
11135 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11136 a font-entity by font_make_entity. Use font_intern_prop instead
11137 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11138 font property. If a font is scalable, set avgwidth property to 0.
11139 Set font-entity property by font_put_extra.
11140 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11141 (ffont_driver): Adjusted for the change of struct font_driver.
11142 (ftfont_spec_pattern): New function.
11143 (ftfont_list): Return a list, not vector.
11144 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11145 (ftfont_list_family): Don't downcase names.
11146 (ftfont_free_entity): Deleted.
11147 (ftfont_open): Return a font-object. Adjusted for the change of
11148 struct font. Get underline_thickness and underline_position from
11149 font property. Don't update dpyinfo->smallest_font_height and
11150 dpyinfo->smallest_char_width.
11151 (ftfont_close): Don't free `struct font'.
11152 (ftfont_has_char): Adjusted for the format change of font-entity.
11153 (ftfont_encode_char, ftfont_text_extents): Likewise.
11154
11155 * ftxfont.c (ftxfont_list): Return a list, not vector.
11156 (ftxfont_open): Return a font-object. Adjusted for the change of
11157 struct font. Get underline_thickness and underline_position from
11158 font property. Don't update dpyinfo->smallest_font_height and
11159 dpyinfo->smallest_char_width.
11160 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11161 (ftxfont_draw): Adjusted for the change of struct font.
11162
11163 * image.c (image_ascent): Don't include "charset.h". Include
11164 "character.h" and "font.h".
11165
11166 * lisp.h (enum pvec_type): New member PREV_FONT.
11167 (Fassoc_string): EXFUN it.
11168
11169 * print.c: Include font.h.
11170 (print_object): Handle font-related objects.
11171
11172 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11173 conditionals. Don't check enable_font_backend. Delete all codes
11174 used only when USE_FONT_BACKEND is not defined.
11175 (handle_auto_composed_prop): Do nothing if it->f is not on a
11176 window system. Check how many following characters can be
11177 displayed by the same font.
11178 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11179 'struct font *'.
11180 (get_char_face_and_encoding): Assign the whole encoding task to
11181 the `encode-char' method of a font driver.
11182 (fill_composite_glyph_string): Adjusted for the change of `struct
11183 face' and `struct glyph_string'.
11184 (fill_glyph_string): Likewise.
11185 (get_per_char_metric): Arguments changed.
11186 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11187 and `struct glyph_string'.
11188 (produce_stretch_glyph, calc_line_height_property)
11189 (x_produce_glyphs): Likewise.
11190
11191 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11192 conditionals. Don't check enable_font_backend. Delete all codes
11193 used only when USE_FONT_BACKEND is not defined. Use
11194 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11195 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11196 (Qp): Extern them.
11197 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11198 Deleted.
11199 (struct font_name): Deleted.
11200 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11201 (compare_fonts_by_sort_order): New function.
11202 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11203 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11204 Deleted.
11205 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11206 compare_fonts_by_sort_order.
11207 (Fx_font_family_list): Call Ffont_family_list.
11208 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11209 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11210 (face_symbolic_slant, face_symbolic_swidth)
11211 (split_font_name_into_vector, build_font_name_from_vector)
11212 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11213 (font_rescale_ratio, split_font_name, build_font_name)
11214 (free_font_names, sort_fonts, x_face_list_fonts)
11215 (face_font_available_p, sorted_font_list, cmp_font_names)
11216 (font_list_1, concat_font_list, font_list, remove_duplicates):
11217 Deleted.
11218 (Fx_list_fonts): Use Ffont_list.
11219 (LFACE_AVGWIDTH): Deleted.
11220 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11221 by FONTP.
11222 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11223 (set_lface_from_font_name): Delete it.
11224 (set_lface_from_font): Renamed from
11225 set_lface_from_font_and_fontset. Caller changed. Don't set
11226 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11227 for face.
11228 (merge_face_vectors): Copy font-spec if necessary.
11229 Clear properties of the font-spec if necessary.
11230 (merge_face_ref): Clear properties of the font-spec if necessary.
11231 (Finternal_set_lisp_face_attribute): Likewise.
11232 (set_font_frame_param): Use font_load_for_lface to load a
11233 font-object, and call Fmodify_frame_parameters with it.
11234 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11235 font name by Ffont_xlfd_name.
11236 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11237 QCslant, and QCwidth.
11238 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11239 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11240 Compare fonts by EQ.
11241 (lookup_non_ascii_face): Deleted.
11242 (face_for_font): The 2nd argument changed.
11243 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11244 Check atomic font properties by case insensitive.
11245 (realize_non_ascii_face): Set face->overstrike correctly.
11246 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11247 (dump_realized_face): Get font name from
11248 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11249
11250 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11251 conditionals. Don't check enable_font_backend. Delete all codes
11252 used only when USE_FONT_BACKEND is not defined.
11253 (xic_create_xfontset): Original code deleted and renamed from
11254 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11255 (x_make_gc): Don't set GCFont in GCs.
11256 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11257 opened by "fixed".
11258 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11259 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11260 get_font_repertory_func.
11261
11262 * xfont.c: Include <stdlib.h> and "ccl.h".
11263 (struct xfont_info): New structure.
11264 (xfont_query_font): Deleted.
11265 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11266 moved from xterm.c.
11267 (xfont_driver): Adjusted for the change of struct font_driver.
11268 (compare_font_names): New function.
11269 (xfont_list_pattern): Sort font names case insensitively. Make
11270 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11271 (xfont_list): Return a list, not vector.
11272 (xfont_match): If the font doesn't have QCname property, generate
11273 a name from the other font properties.
11274 (xfont_open): Return a font-object. Adjusted for the change of
11275 struct font. Get underline_thickness and underline_position from
11276 font property. Don't update dpyinfo->smallest_font_height and
11277 dpyinfo->smallest_char_width.
11278 (xfont_close): Don't free struct font.
11279 (xfont_prepare_face): Adjusted for the change of struct font.
11280 (xfont_done_face): Deleted.
11281 (xfont_has_char): Adjusted for the change of struct font.
11282 (xfont_encode_char, xfont_draw): Likewise.
11283 (xfont_check): New function.
11284
11285 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11286 callback function.
11287 (xftfont_match): Adjusted for the format change of font-entity.
11288 (xftfont_open): Adjusted for the format change of font-entity and
11289 font-object. Adjusted for the change of struct font. Return a
11290 font-object. Don't update dpyinfo->smallest_font_height and
11291 dpyinfo->smallest_char_width.
11292 (xftfont_close): Block input while calling XftFontClose.
11293 (xftfont_prepare_face): Don't block input while calling
11294 xftfont_get_colors. Adjusted for the change of struct font.
11295 (xftfont_shape): Return value of error case fixed.
11296
11297 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11298
11299 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11300 conditionals.
11301 (FONT_WIDTH): Return (f)->max_width.
11302 (struct x_display_info): Delete member `font'.
11303 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11304 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11305 (struct x_output): Change type of `font' to `struct font *'.
11306
11307 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11308 conditionals. Don't check enable_font_backend. Delete all codes
11309 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11310 (x_per_char_metric, x_encode_char): Deleted.
11311 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11312 (x_compute_glyph_string_overhangs): Adjusted for the change of
11313 `struct face'.
11314 (x_draw_glyph_string_foreground)
11315 (x_draw_composite_glyph_string_foreground): Likewise.
11316 (x_draw_glyph_string): Likewise. Use font->underline_position and
11317 font->underline_thickness.
11318 (x_new_font): Renamed from x_new_fontset2.
11319 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11320 (x_check_font): Call `check' method of a font driver.
11321 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11322 (x_query_font, x_get_font_repertory): Deleted.
11323 (x_find_ccl_program): Renamed and moved to xfont.c.
11324 (x_redisplay_interface): Adjusted for the change of `struct
11325 redisplay_interface'.
11326
11327 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11328 conditionals. Don't check enable_font_backend. Delete all codes
11329 used only when USE_FONT_BACKEND is not defined. Surround non-used
11330 code by "#ifdef OLD_FONT" and "endif".
11331 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11332
11333 * w32font.h (struct w32font_info): New member.
11334 (FONT_COMPAT): New macro.
11335 (w32font_open_internal): Prototype adjusted.
11336
11337 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11338 OLD_FONT" and "endif".
11339
11340 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11341 conditionals. Don't check enable_font_backend. Delete all codes
11342 used only when USE_FONT_BACKEND is not defined.
11343 (w32font_open): Return a font-object. Make a font-object by
11344 font_make_object. Adjusted for the change of struct w32font_info.
11345 (w32font_close): Don't free struct font. Adjusted for the change
11346 of struct w32font_info.
11347 (w32font_encode_char, w32font_text_extents, w32font_draw):
11348 Adjusted for the change of struct w32font_info.
11349 (w32font_draw): Likewise.
11350 (w32font_list_internal): Return a list, not vector.
11351 (w32font_open_internal): Change the 4th arg to font-object.
11352 Adjusted for the change of struct w32font_info and font-object format.
11353 (add_font_name_to_list): Don't downcase names.
11354 (w32_enumfont_pattern_entity): Make a font-entity by
11355 font_make_entity. Adjusted for the format change of font-entity.
11356 Use FONT_SET_STYLE to set a style-related font property. If a
11357 font is scalable, set avgwidth property to 0. Set font-entity
11358 property by font_put_extra.
11359 (font_matches_spec): Adjusted for the format change of font-entity.
11360 (w32_weight_table, w32_decode_weight): New variables.
11361 (w32_encode_weight): New function.
11362 (fill_in_logfont): Adjusted for the format change of font-spec.
11363 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11364 weight value.
11365 (w32font_driver): Adjusted for the change of struct font_driver.
11366
11367 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11368 conditionals. Don't check enable_font_backend. Surround non-used
11369 code by "#ifdef OLD_FONT" and "endif".
11370 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11371 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11372
11373 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11374 conditionals. Don't check enable_font_backend. Delete all codes
11375 used only when USE_FONT_BACKEND is not defined. Surround non-used
11376 code by "#ifdef OLD_FONT" and "endif".
11377
11378 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11379 (uniscribe_open): Return value changed to font-object.
11380 Adjusted for the format change of font-object.
11381 (uniscribe_otf_capability): Adjusted for the change of struct font.
11382 (add_opentype_font_name_to_list): Don't downcase names.
11383 (uniscribe_font_driver): Adjusted for the change of struct
11384 font_driver.
11385
113862008-05-13 Chong Yidong <cyd@stupidchicken.com>
11387
11388 * dispnew.c (update_frame_1): Check if tty output is still valid
11389 before flushing it.
11390
113912008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11392
11393 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11394 to Gtk+ menus.
11395
113962008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11397
11398 * dired.c (file_name_completion): Tweak the code so as to always do it
11399 in a single pass. Tighten the scope of some variables.
11400
11401 * dired.c (Qdefault_directory): New var.
11402 (file_name_completion): Use it instead of Fexpand_file_name.
11403 (syms_of_dired): Initialize it.
11404
114052008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11406
11407 * fileio.c (double_dollars): Remove dead code.
11408
114092008-05-10 Eli Zaretskii <eliz@gnu.org>
11410
11411 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11412 Mention w32-get-true-file-attributes in doc string.
11413
11414 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11415
114162008-05-09 Glenn Morris <rgm@gnu.org>
11417
11418 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11419 2008-04-23.
11420
114212008-05-09 Eli Zaretskii <eliz@gnu.org>
11422
11423 Support for reporting owner and group of each file on MS-Windows:
11424 * dired.c (stat_uname, stat_gname): New functions, with special
11425 implementation for w32.
11426 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11427
11428 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11429 (dflt_group_name): New static variable.
11430 (dflt_group): Rename from the_group.
11431 (init_user_info): Init dflt_group fields. Get user's group name
11432 from LookupAccountSid.
11433 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11434 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11435 New initialization states.
11436 (globals_of_w32): Initialize them to zero. Initialize the default
11437 group name to "None".
11438 (GetFileSecurity_Name): New global var, the name of the function
11439 to call for GetFileSecurity.
11440 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11441 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11442 (get_file_security, get_security_descriptor_owner)
11443 (get_security_descriptor_group, is_valid_sid)
11444 (get_file_security_desc, get_rid, get_name_and_id)
11445 (get_file_owner_and_group): New functions.
11446 (stat): Use get_file_security_desc and get_file_owner_and_group to
11447 report the owner and primary group of each file. Don't ignore the
11448 high 32 bits of file's size, now that st_size is 64-bit wide.
11449 Fix test when to get true file attributes.
11450 (init_user_info): Use get_rid instead of equivalent inline code.
11451 (fstat): Don't ignore the high 32 bits of file's size.
11452
114532008-05-09 Chong Yidong <cyd@stupidchicken.com>
11454
11455 * image.c (png_load): Use correct bit-depth for setting background
11456 color.
11457
114582008-05-08 Eli Zaretskii <eliz@gnu.org>
11459
11460 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11461 epa-hook.elc.
11462
114632008-05-08 Juanma Barranquero <lekktu@gmail.com>
11464
11465 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11466
114672008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11468
11469 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11470 because the original parameters are in pure storage now.
11471 (mac_window): Remove unused params. Update callers.
11472
114732008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11474
11475 * lread.c (substitute_object_recurse): Use lower-level primitives.
11476 Don't signal errors when traversing sub-char-tables.
11477 Don't loop over all the possible characters when traversing char-tables.
11478
11479 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11480 just like we do in print.c.
11481
114822008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11483
11484 * minibuf.c (Ftry_completion): Remove code left over from when we used
11485 scmp instead of Fcompare_strings.
11486
114872008-05-04 Juanma Barranquero <lekktu@gmail.com>
11488
11489 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11490
114912008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11492
11493 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11494 Create bitmap context in native byte order.
11495
11496 * macterm.c (XDrawLine)
11497 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11498 context in native byte order.
11499
115002008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11501
11502 * config.in: Regenerate.
11503
11504 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11505 New definitions for Image I/O support.
11506 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11507 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11508 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11509 (mac_data_provider_release_data, image_load_image_io)
11510 [USE_MAC_IMAGE_IO]: New functions.
11511 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11512 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11513 (init_image_func_pointer) [MAC_OSX]: Remove function.
11514 (image_load_quartz2d) [MAC_OSX]: Check availability of
11515 CGImageCreateWithPNGDataProvider at compile time.
11516 Use lowercase `false' for boolean constant.
11517 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11518 Use image_load_image_io.
11519 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11520 Don't check MyCGImageCreateWithPNGDataProvider.
11521 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11522 Don't call init_image_func_pointer.
11523
11524 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11525
11526 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11527 Make variable non-static.
11528 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11529 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11530
11531 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11532 (RED_FROM_ULONG): Mask off higher bits.
11533 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11534
11535 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11536 Include AvailabilityMacros.h.
11537 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11538 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11539
115402008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11541
11542 * chartab.c (Fset_char_table_range): If range is t, really set all
11543 chars to that value.
11544
115452008-05-03 Eli Zaretskii <eliz@gnu.org>
11546
11547 * dired.c (Ffile_attributes): Don't allow the device number become
11548 negative.
11549
115502008-05-02 Daiki Ueno <ueno@unixuser.org>
11551
11552 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11553
115542008-05-02 Juri Linkov <juri@jurta.org>
11555
11556 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11557 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11558 DEFAULT argument as a list of default values in docstrings.
11559
115602008-05-01 Chong Yidong <cyd@stupidchicken.com>
11561
11562 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11563
115642008-05-01 Martin Rudalics <rudalics@gmx.at>
11565
11566 * dispnew.c (change_frame_size_1): Preserve small windows when
11567 shrinking frames by calling set_window_height|width with third
11568 arg 2.
11569
11570 * window.h (struct window): Replace field too_small_ok by field
11571 resize_proportionally.
11572
11573 * window.c (make_window): Initialize resize_proportionally.
11574 (enlarge_window): Temporarily set resize_proportionally to make
11575 sure that shrink_windows does scale the window proportionally.
11576 (shrink_windows): When window has resize_proportionally set try
11577 to shrink it proportionally by stealing from other windows.
11578 (struct saved_window, Fset_window_configuration)
11579 (compare_window_configurations): Handle resize_proportionally.
11580 (WINDOW_TOTAL_SIZE): New macro.
11581 (window_min_size, shrink_windows, size_window): Use it.
11582 (check_min_window_sizes): Remove. Invalid values of
11583 window-min-height|width are handled by window_min_size_2 now.
11584 (size_window, Fsplit_window, enlarge_window)
11585 (adjust_window_trailing_edge, grow_mini_window): Don't call
11586 check_min_window_sizes.
11587 (window_min_size_2, window_min_size_1, window_min_size):
11588 New argument safe_p for retrieving "safe" minimum sizes.
11589 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11590 (adjust_window_trailing_edge, grow_mini_window):
11591 Adjust arguments of window_min_size... functions.
11592 (shrink_windows): Argument min_size removed. New argument
11593 safe_p allows shrinking windows to their safe minimum sizes.
11594 Calculate minimum size and decide whether a window shall be
11595 deleted for each window individually.
11596 (size_window): When nodelete_p equals 2, tell shrink_windows to
11597 delete windows only if their new minimum size is no more safe.
11598 (shrink_window_lowest_first): Call window_min_size_1 to make
11599 sure to preserve modeline of bottom-most window when resizing
11600 the minibuffer.
11601 (Fset_window_configuration, Fcurrent_window_configuration)
11602 (compare_window_configurations): Do not handle
11603 window-min-height|width any more.
11604 (syms_of_window): Clarify window-min-height|width doc-strings.
11605
116062008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11607
11608 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11609 some more. Copy some of the code from Ftry_completions.
11610 Remove special case code that dates back to initial revision when the
11611 slash was only added when necessary and that can't trigger nowadays.
11612
116132008-04-27 Kenichi Handa <handa@m17n.org>
11614
11615 * font.c (font_prop_validate): Signal `error' instead of `font'.
11616
116172008-04-29 Jason Rumney <jasonr@gnu.org>
11618
11619 * w32fns.c (Fw32_battery_status): New defun.
11620 (syms_of_w32fns): Defsubr it.
11621
116222008-04-28 Andreas Schwab <schwab@suse.de>
11623
11624 * dired.c (file_name_completion): Fix another mixing of encoded
11625 and decoded names.
11626
116272008-04-28 Juanma Barranquero <lekktu@gmail.com>
11628
11629 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11630
116312008-04-27 Juanma Barranquero <lekktu@gmail.com>
11632
11633 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11634
116352008-04-27 Andreas Schwab <schwab@suse.de>
11636
11637 * dired.c (file_name_completion): Fix inappropriate mixing of
11638 encoded and decoded names.
11639
11640 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11641
11642 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11643
116442008-04-26 Eli Zaretskii <eliz@gnu.org>
11645
11646 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11647 2008-03-31, it's not needed anymore with `struct stat' definition
11648 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11649 for the same reasons.
11650
116512008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11652
11653 * m/sparc.h: Additional redefinitions for GNU/Linux.
11654
116552008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11656
11657 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11658 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11659 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11660 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11661 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11662 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11663 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11664 Likewise.
11665
11666 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11667 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11668 (mac_ax_number_of_characters): Add externs.
11669 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11670 [USE_MAC_TSM]: Likewise.
11671 (mac_handle_text_input_event) [MAC_OSX]:
11672 Handle kEventTextInputOffsetToPos for no active input area case.
11673 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11674 (mac_handle_document_access_event)
11675 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11676 (install_application_handler) [MAC_OSX]: Register handlers for
11677 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11678 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11679 Register mac_handle_document_access_event.
11680
11681 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11682 Make functions non-static.
11683
116842008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11685
11686 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11687 (read_file_name_completion_ignore_case, insert_default_directory)
11688 (Qdefault_directory): Move to minibuffer.el.
11689 (Fread_file_name): Call the new `read-file-name' instead.
11690
116912008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11692
11693 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11694 Make function non-static.
11695 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11696 Remove function.
11697 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11698 Move to mactoolbox.c.
11699 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11700
11701 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11702 (mac_rect_make): New macro.
11703
11704 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11705 instead of float.
11706 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11707 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11708 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11709 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11710 CGRectMake.
11711 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11712 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11713 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11714 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11715 instead of WindowRef in argument type.
11716 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11717 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11718 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11719 instead of DISPLAY. All uses changed.
11720 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11721 (x_calc_absolute_position): Simplify so as not to use
11722 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11723
11724 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11725 instead of WindowRef in argument type.
11726 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11727 [TARGET_API_MAC_CARBON]: Remove externs.
11728 (create_apple_event, mac_event_parameters_to_lisp)
11729 [TARGET_API_MAC_CARBON]: Add externs.
11730
11731 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11732 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11733 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11734 is clicked.
11735 (x_activate_menubar): Remove extern for saved_menu_event_location.
11736 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11737 Move from mac.c.
11738
117392008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11740
11741 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11742 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11743
117442008-04-23 Jason Rumney <jasonr@gnu.org>
11745
11746 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11747 attributes only for local files.
11748
11749 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11750 default to Qlocal.
11751
117522008-04-22 Juri Linkov <juri@jurta.org>
11753
11754 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11755 read-buffer-to-switch instead of using the letter "B".
11756
117572008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11758
11759 * fileio.c (Qdefault_directory): New variable.
11760 (Fread_file_name): Use it to pass `dir' to the completion functions.
11761
117622008-04-20 Chong Yidong <cyd@stupidchicken.com>
11763
11764 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11765
117662008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11767
11768 * keyboard.c (Vpre_help_message): Remove.
11769 (show_help_echo): Remove default C code.
11770
11771 * dired.c (directory_files_internal, file_name_completion):
11772 Only call ENCODE_FILE if the string is indeed decoded.
11773
117742008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11775
11776 * Makefile.in (TOOLKIT_DEFINES): Remove.
11777 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11778
117792008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11780
11781 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11782 (mactoolbox.o): New target.
11783
11784 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11785 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11786
11787 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11788 Use mac_set_frame_window_background instead of XSetWindowBackground.
11789 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11790 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11791 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11792 instead of SetWindowTitleWithCFString.
11793 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11794 Move function to mactoolbox.c.
11795 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11796 Use mac_set_window_modified instead of SetWindowModified.
11797 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11798 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11799 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11800 FrontNonFloatingWindow. Use mac_activate_window instead of
11801 ActivateWindow. Use mac_active_non_floating_window instead of
11802 ActiveNonFloatingWindow.
11803 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11804 Use mac_show_hourglass and mac_hide_hourglass.
11805 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11806 instead of GetGlobalMouse.
11807 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11808 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11809 Use mac_bring_window_to_front instead of BringToFront.
11810 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11811 mactoolbox.c.
11812 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11813 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11814 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11815 mactoolbox.c.
11816
11817 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11818 (XtPointer): Move typedef from macmenu.c.
11819 (enum button_type): Move enum from macmenu.c.
11820 (widget_value): Move typedef from macmenu.c.
11821 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11822 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11823 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11824 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11825 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11826 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11827 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11828 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11829 (Selection): Move typedef from macselect.c.
11830 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11831 macterm.c.
11832 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11833 (mac_is_window_collapsed, mac_bring_window_to_front)
11834 (mac_send_window_behind, mac_hide_window, mac_show_window)
11835 (mac_collapse_window, mac_front_non_floating_window)
11836 (mac_active_non_floating_window, mac_activate_window)
11837 (mac_move_window_structure, mac_move_window, mac_size_window)
11838 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11839
11840 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11841 (enum mac_menu_kind): Move enum to mactoolbox.c.
11842 (min_menu_id): Move variable to mactoolbox.c.
11843 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11844 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11845 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11846 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11847 [TARGET_API_MAC_CARBON]: Likewise.
11848 (XtPointer): Move typedef to macgui.h.
11849 (enum button_type): Move enum to macgui.h.
11850 (widget_value): Move typedef to macgui.h.
11851 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11852 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11853 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11854 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11855 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11856 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11857 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11858 (popup_activated_flag): Make variable non-static.
11859 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11860 (add_menu_item, fill_menu, dispose_menus):
11861 Move functions to mactoolbox.c.
11862 (restore_show_help_function, menu_target_item_handler)
11863 (install_menu_target_item_handler, mac_handle_dialog_event)
11864 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11865 [TARGET_API_MAC_CARBON]: Likewise.
11866 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11867 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11868 (find_and_call_menu_selection, name_is_separator): Make function
11869 non-static.
11870 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11871 to mactoolbox.c.
11872 (set_frame_menubar): Don't call install_menu_quit_handler.
11873 (menu_item_selection): New variable.
11874 (mac_menu_show): Use create_and_show_popup_menu.
11875 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11876 selection but set variable menu_item_selection. All uses changed.
11877 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11878 Call install_menu_quit_handler. Move to mactoolbox.c.
11879
11880 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11881 (Selection): Move typedef to macgui.h.
11882 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11883 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11884 Make variables non-static.
11885 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11886 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11887 Make functions non-static.
11888 (Vmac_service_selection) [MAC_OSX]: Likewise.
11889 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11890 (mac_valid_selection_target_p, mac_clear_selection)
11891 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11892 (mac_put_selection_value, mac_selection_has_target_p)
11893 (mac_get_selection_value, mac_get_selection_target_list)
11894 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11895 Move functions to mactoolbox.c.
11896 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11897 Likewise.
11898 (copy_scrap_flavor_data, mac_handle_service_event)
11899 (install_service_handler) [MAC_OSX]: Likewise.
11900 (syms_of_macselect) <Vmac_dnd_known_types>:
11901 Use mac_dnd_default_known_types.
11902
11903 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11904 Move to mactoolbox.c.
11905 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11906 (Fx_selection_owner_p): Add EXFUN.
11907 (install_window_handler, remove_window_handler, XSetWindowBackground):
11908 Remove externs.
11909 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11910 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11911 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11912 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11913 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11914 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11915 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11916 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11917 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11918 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11919 (mac_valid_selection_target_p, mac_clear_selection)
11920 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11921 (mac_put_selection_value, mac_selection_has_target_p)
11922 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11923 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11924 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11925 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11926 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11927 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11928 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11929 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11930 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11931
11932 * mactoolbox.c: New file.
11933
119342008-04-18 Jason Rumney <jasonr@gnu.org>
11935
11936 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11937
119382008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11939
11940 * character.c (Fmultibyte_char_to_unibyte):
11941 Return latin1 chars unchanged.
11942
11943 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11944 relocated if it points to `name'.
11945
119462008-04-17 Kenichi Handa <handa@m17n.org>
11947
11948 * data.c (Faset): Allow setting a multibyte character in an
11949 ASCII-only unibyte string.
11950
11951 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11952
119532008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11954
11955 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11956 done in config.h.
11957
119582008-04-16 Juanma Barranquero <lekktu@gmail.com>
11959
11960 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11961 (Fchar_direction): Add usage in the docstring.
11962
119632008-04-15 Chong Yidong <cyd@stupidchicken.com>
11964
11965 * keyboard.c (read_key_sequence): Remove always-true checks.
11966
119672008-04-14 Jason Rumney <jasonr@gnu.org>
11968
11969 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11970 compatibility struct, for better underline positioning.
11971
119722008-04-13 David Hansen <david.hansen@gmx.net>
11973
11974 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11975 string.
11976
119772008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11978
11979 * m/hp800.h (XUINT, XSET): Remove.
11980
119812008-04-12 Juanma Barranquero <lekktu@gmail.com>
11982
11983 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11984 previous change.
11985
119862008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11987
11988 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11989 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11990
119912008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11992
11993 * keymap.h (map_keymap_canonical): Declare.
11994 * xmenu.c (single_keymap_panes): Use it.
11995
119962008-04-11 Glenn Morris <rgm@gnu.org>
11997
11998 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11999 set the target's value to that of the alias.
12000
120012008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12002
12003 * term.c (set_tty_color_mode): Left over typo.
12004
120052008-04-10 Michael Albinus <michael.albinus@gmx.de>
12006
12007 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12008 only after check for file name handler functions. Signal, when
12009 native functionality is not supported.
12010 (syms_of_fileio): Declare it unconditionally.
12011
120122008-04-10 Jason Rumney <jasonr@gnu.org>
12013
12014 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12015 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12016
12017 * w32.c (logon_network_drive): Also logon to remote drives that
12018 are mapped to drive letters.
12019
120202008-04-10 Glenn Morris <rgm@gnu.org>
12021
12022 * xdisp.c (truncate-partial-width-windows): Doc fix.
12023
120242008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12025
12026 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12027 Move functions to minibuffer.el.
12028 (syms_of_fileio): Don't declare them.
12029
120302008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12031
12032 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12033 (syms_of_minibuf): Remove its initialization.
12034
12035 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12036
120372008-04-09 Juanma Barranquero <lekktu@gmail.com>
12038
12039 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12040
120412008-04-09 Jason Rumney <jasonr@gnu.org>
12042
12043 * makefile.w32-in (distclean): Delete makefile too.
12044 (maintainer-clean): New target.
12045
12046 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12047
12048 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12049 for new font backend and composite cases.
12050
120512008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12052
12053 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12054 Most of the code moved to run_timers.
12055 (do_pending_atimers): Call run_timers.
12056 (run_timers): New function.
12057
12058 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12059 run atimers.
12060
12061 * process.c (wait_reading_process_output): The same as above.
12062
120632008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12064
12065 * minibuf.c (last_exact_completion): Remove variable.
12066 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12067 (complete_and_exit_1, complete_and_exit_2)
12068 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12069 (Fdisplay_completion_list, display_completion_list_1)
12070 (Fminibuffer_completion_help, Fself_insert_and_exit)
12071 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12072 minibuffer.el.
12073 (syms_of_minibuf): Remove corresponding initializations.
12074
12075 * keyboard.c (Qdeactivate_mark): New var.
12076 (command_loop_1): Use it to call `deactivate-mark'.
12077 (syms_of_keyboard): Initialize it.
12078
12079 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12080 to another frame.
12081 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12082 Don't call set_tty_color_mode.
12083 (store_frame_param): Reset previous_frame rather than call
12084 set_tty_color_mode.
12085 * term.c (set_tty_color_mode): Rewrite.
12086 * dispextern.h (set_tty_color_mode): New type.
12087 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12088
120892008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12090
12091 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12092 for generic chars, which do not exist any more in emacs-unicode.
12093
120942008-04-08 Michael Albinus <michael.albinus@gmx.de>
12095
12096 * coding.c (detect_coding_emacs_mule)
12097 (Ffind_operation_coding_system): Fix typo.
12098
120992008-04-08 Jason Rumney <jasonr@gnu.org>
12100
12101 * w32uniscribe.c (SNAME): Extract only symbol name.
12102
12103 * w32font.h (struct w32_metric_cache): New struct.
12104 (w32font_info): Use it.
12105 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12106 (CACHE_BLOCKSIZE): New constants.
12107
12108 * w32font.c (Qja, Qko, Qzh): New symbols.
12109 (syms_of_w32font): Initialise them.
12110 (font_matches_spec): Use them to filter by language.
12111 (recompute_cached_metrics): Remove function.
12112 (compute_metrics, clear_cached_metrics): New functions.
12113 (w32font_encode_char): Use them to manage metric cache.
12114 (w32font_text_extents): Cache metrics for all glyphs on demand.
12115 Delay converting glyph indices to WORD until needed.
12116 (w32font_open_internal): Initialize metric cache to empty.
12117 (registry_to_w32_charset): Charset should always be a symbol.
12118 (fill_in_logfont, list_all_matching_fonts): Family should
12119 always be a symbol.
12120
121212008-04-06 Jason Rumney <jasonr@gnu.org>
12122
12123 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12124 Give up if glyph indices not supported. Use uniscribe obtained
12125 ABC widths for individual metrics. Map glyph clusters back to
12126 characters using fClusterStart flag. Return number of glyphs
12127 produced, not chars processed.
12128 (uniscribe_shape): Map char at FROM to current glyph.
12129
121302008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12131
12132 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12133 Use SetMenuItemHierarchicalMenu.
12134
121352008-04-05 Jason Rumney <jasonr@gnu.org>
12136
12137 * image.c (pbm_load): Allow color values up to 65535.
12138 Throw an error if max_color_idx is outside the supported range.
12139 Report an error when image size is invalid.
12140 Read two bytes at a time when raw images have max_color_idx above 255.
12141
121422008-04-05 Eli Zaretskii <eliz@gnu.org>
12143
12144 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12145 cFileName a file name that includes `?' characters, use the 8+3
12146 alias in cAlternateFileName instead.
12147
121482008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12149
12150 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12151 append "CCL: Quitted" when the CCL program is quitted.
12152 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12153
12154 * ccl.h (struct ccl_program): New member quit_silently.
12155
121562008-04-05 Chong Yidong <cyd@stupidchicken.com>
12157
12158 * search.c (compile_pattern_1): Treat non-nil and non-string of
12159 search-spaces-regexp as nil.
12160
12161 * minibuf.c (Fassoc_string): Tweak docstring.
12162
121632008-04-05 Eli Zaretskii <eliz@gnu.org>
12164
12165 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12166 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12167 2008-03-14 to force inode be positive.
12168
12169 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12170 _S_* ones, since we now use our own sys/stat.h.
12171 (stat, fstat): Don't mangle the inode number.
12172 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12173
121742008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12175
12176 * frame.h (struct frame): Give one more bit to `visible' since we use
12177 values larger than 1 to indicate obscured frames on ttys.
12178
12179 * keymap.c (Qkeymap_canonicalize): New var.
12180 (Fmap_keymap_internal): New fun.
12181 (describe_map): Use keymap-canonicalize.
12182
12183 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12184 (Fundo_boundary): Set them.
12185 (syms_of_undo): Initialize them.
12186 (record_point): Use them instead of last_point_position*.
12187 (last_undo_buffer): Change type.
12188
121892008-04-04 Jason Rumney <jasonr@gnu.org>
12190
12191 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12192 (recompute_cached_metrics): Don't set ascent and descent per char.
12193
12194 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12195 (uniscribe_check_otf): Add GC protection before consing.
12196 Rearrange loop for counting features.
12197
121982008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12199
12200 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12201 buffer with byte-size of source buffer.
12202
122032008-04-03 Chong Yidong <cyd@stupidchicken.com>
12204
12205 * callint.c (Fcall_interactively): Handle temporary region even
12206 when shift-select-mode is off.
12207
122082008-04-03 Jason Rumney <jasonr@gnu.org>
12209
12210 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12211
122122008-04-03 Kenichi Handa <handa@m17n.org>
12213
12214 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12215 (CATEGORY_MASK_UTF_16): Likewise.
12216 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12217 binary file.
12218 (detect_coding): Add null-byte detection for a binary file.
12219 (detect_coding_system): Likewise.
12220
122212008-04-03 Jason Rumney <jasonr@gnu.org>
12222
12223 * w32uniscribe.c: New file.
12224
12225 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12226
12227 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12228
12229 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12230 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12231 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12232 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12233 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12234 (Qphonetic): New symbols.
12235 (syms_of_w32font): Initialize them.
12236 (font_supported_scripts): Use them.
12237 (w32font_list_family): List all charsets.
12238 (w32font_text_extents, recompute_cached_metrics): Fix metric
12239 calculations.
12240 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12241 Give opentype fonts their own format.
12242 (font_matches_spec): New arguments backend and logfont.
12243 Handle :otf spec for uniscribe backend.
12244 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12245 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12246
12247 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12248 font backend.
12249 (globals_of_w32fns): Initialize uniscribe font backend.
12250
12251 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12252 dependencies.
12253 (w32uniscribe.$(O)): New file to build.
12254 (FONT_OBJ): Include w32uniscribe.$(O).
12255 (LIBS): Add uniscribe libraries.
12256
12257 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12258
122592008-04-02 Chong Yidong <cyd@stupidchicken.com>
12260
12261 * callint.c (Vshift_select_mode): New var.
12262 (Finteractive): Document new ^ spec.
12263 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12264 is present.
12265
12266 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12267 (command_loop_1): Avoid running the direct display versions of
12268 forward-char and backward-char if shift-selection may occur.
12269 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12270 shift-translation takes place.
12271
12272 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12273 avoid clobbering by define-minor-mode.
12274
12275 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12276 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12277
12278 * syntax.c (Fforward_word): Add ^ interactive spec.
12279
12280 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12281 (Fscroll_right): Add ^ interactive spec.
12282
122832008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12284
12285 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12286
12287 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12288
12289 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12290
122912008-03-31 Juri Linkov <juri@jurta.org>
12292
12293 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12294
122952008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12296
12297 * gtkutil.c (xg_set_geometry): Fix indentation.
12298 (xg_resize_outer_widget): Remove.
12299 (x_wm_size_hint_off): Fix indentation.
12300 (xg_frame_set_char_size): Call flush_and_sync after
12301 gtk_window_resize.
12302 (x_wm_set_size_hint): Pass NULL as geometry window to
12303 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12304 Add menu bar and tool bar height to base height.
12305 (xg_update_frame_menubar, free_frame_menubar)
12306 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12307 (update_frame_tool_bar, free_frame_tool_bar):
12308 Change xg_resize_outer_widget to xg_frame_set_char_size.
12309
123102008-03-30 Michael Albinus <michael.albinus@gmx.de>
12311
12312 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12313 (Fdbus_call_method): New parameter TIMEOUT.
12314 (dbus-send-signal): Optimize UNGCPRO call.
12315
123162008-03-29 Juri Linkov <juri@jurta.org>
12317
12318 * window.c (Fdisplay_buffer): Move call to
12319 Vsplit_window_preferred_function out of conditions that check
12320 if window is eligible for vertical splitting.
12321 When Vsplit_window_preferred_function is non-nil, call it and use
12322 its non-nil return value as window. Otherwise, continue doing
12323 vertical splitting using Fsplit_window with arg horflag=nil.
12324 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12325 default value from `split-window' to nil.
12326
123272008-03-29 Juri Linkov <juri@jurta.org>
12328
12329 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12330 for interactive code letters 'b' and 'B'.
12331
123322008-03-29 Eli Zaretskii <eliz@gnu.org>
12333
12334 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12335 multibyte string.
12336
123372008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12338
12339 * keyboard.c (pending_funcalls): New var.
12340 (timer_check): Run it.
12341 (syms_of_keyboard): Initialize it.
12342 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12343 (Vdelete_terminal_functions): New vars.
12344 (syms_of_terminal): Initialize them.
12345 (Fdelete_terminal): Run delete-terminal-functions.
12346 * xdisp.c (safe_eval): Rewrite.
12347 (safe_call2): New fun.
12348 * frame.c (Qdelete_frame_functions): New var.
12349 (syms_of_frame): Initialize it.
12350 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12351 * lisp.h (safe_call2, pending_funcalls): Declare.
12352
123532008-03-28 Andreas Schwab <schwab@suse.de>
12354
12355 * indent.c (Fmove_to_column): Move declaration before statements.
12356
123572008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12358
12359 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12360 (struct frame): Use bit fields for boolean vars.
12361
12362 * process.c (server_accept_connection): Simplify naming.
12363 (emacs_get_tty_pgrp): Use SDATA.
12364
12365 * coding.c (decode_coding_object): Fix last change.
12366
123672008-03-27 Jason Rumney <jasonr@gnu.org>
12368
12369 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12370
123712008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12372
12373 * charset.c (Fdefine_charset_internal): Change the way of
12374 registering charsets in Vcharset_order_list.
12375 (syms_of_charset): Make the charset `eight-bit' supplementary.
12376
123772008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12378
12379 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12380 operations, to avoid having the difference between pointers
12381 overflow.
12382
123832008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12384
12385 * indent.c (check_display_width): New fun.
12386 (scan_for_column): Use it.
12387
12388 * data.c (syms_of_data): Mark most-positive-fixnum and
12389 most-negative-fixnum as constants.
12390
12391 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12392
12393 * indent.c (scan_for_column): Extract from current_column_1.
12394 Merge with the same code from Fmove_to_column.
12395 (current_column_1, Fmove_to_column): Use it.
12396
123972008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12398
12399 * keymap.c (map_keymap_internal): New fun.
12400 (map_keymap): Use it.
12401 (Fmap_keymap_internal): New fun.
12402 (Fmap_keymap): Remove left-out test from before make_save_value.
12403
12404 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12405
12406 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12407 Use XCAR/XCDR.
12408
12409 * process.h (struct Lisp_Process): Remove filter_multibyte.
12410 * process.c (QCfilter_multibyte): Remove.
12411 (setup_process_coding_systems): Don't use filter_multibyte.
12412 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12413 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12414 (Fset_process_filter_multibyte): Change the coding-system to
12415 approximate the previous behavior.
12416 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12417 coding-system.
12418
12419 * coding.c (decode_coding_object): When not decoding into a buffer,
12420 obey the coding system's preference of (uni|multi)byte.
12421
124222008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12423
12424 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12425 every char is changed and has a different byte-length.
12426 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12427 Fix int -> EMACS_INT.
12428
124292008-03-23 David Hansen <david.hansen@gmx.net>
12430
12431 * dbusbind.c (xd_read_message): Remove extra copying of message
12432 strings. Check for NULL `interface' or `member'.
12433
124342008-03-22 Eli Zaretskii <eliz@gnu.org>
12435
12436 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12437 cFileName a file name that includes `?' characters, use the 8+3
12438 alias in cAlternateFileName instead.
12439
124402008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12441
12442 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12443
124442008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12445
12446 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12447 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12448 work on current_buffer only instead (that was already the case
12449 for some of the code anyway).
12450 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12451 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12452 (SET_PT, SET_PT_BOTH): Adjust.
12453 * intervals.h (set_point, temp_set_point, set_point_both)
12454 (temp_set_point_both): Remove redundant declarations.
12455
124562008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12457
12458 * fileio.c (Finsert_file_contents):
12459 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12460 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12461 when buffer != current_buffer anyway.
12462
124632008-03-20 Andreas Schwab <schwab@suse.de>
12464
12465 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12466 as default.
12467
124682008-03-19 Jason Rumney <jasonr@gnu.org>
12469
12470 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12471 (syms_of_w32fns): Initialize them.
12472 (HOURGLASS_ID): New constant.
12473 (x_window_to_frame): Don't check hourglass_window.
12474 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12475 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12476 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12477 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12478 Only change the cursor if hourglass is not active.
12479 (Fx_create_frame): Initialize frame's current_cursor.
12480 (hourglass_atimer): Remove.
12481 (hourglass_started): New function.
12482 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12483 (show_hourglass): Adapt to w32, changing argument to frame.
12484
12485 * w32term.h (struct w32_output): Remove hourglass_window.
12486 Add current_cursor.
12487
12488 * eval.c (call_debugger, Fsignal):
12489 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12490 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12491 (Fexecute_extended_command, cancel_hourglass_unwind):
12492 * minibuf.c (read_minibuf):
12493 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12494
124952008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12496
12497 * window.c (run_funs): New fun.
12498 (run_window_configuration_change_hook): Use it to run the buffer-local
12499 and the global part of the hook.
12500
12501 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12502 (unwind_format_mode_line): Restore selected window.
12503 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12504
125052008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12506
12507 * editfns.c (Fchar_equal): Check they are valid characters.
12508
12509 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12510
125112008-03-17 Andreas Schwab <schwab@suse.de>
12512
12513 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12514 against a charset.
12515
12516 * lisp.h (Fbuffer_list): Declare.
12517
125182008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12519
aac0c6e3
MR
12520 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12521 handlebox_widget is != 0.
12522
125232008-03-16 Juri Linkov <juri@jurta.org>
12524
12525 * callint.c (Fcall_interactively): For interactive code letters
12526 'b' and 'B' put the buffer list into the list of default "future"
12527 values of the minibuffer.
12528
125292008-03-16 Andreas Schwab <schwab@suse.de>
12530
12531 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12532 modifiers.
12533
12534 * regex.c (re_match_2_internal): Correct matching of a charset
12535 against latin-1 characters.
12536
125372008-03-16 Kenichi Handa <handa@m17n.org>
12538
12539 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12540 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12541 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12542 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12543 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12544 CHAR_STRING_ADVANCE.
12545 (produce_chars): Fix for the case that the source and the
12546 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12547 instead of CHAR_STRING_ADVANCE.
12548 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12549 STRING_CHAR_ADVANCE.
12550
125512008-03-15 Andreas Schwab <schwab@suse.de>
12552
12553 * regex.c (re_match_2_internal): Correct matching of eight bit
12554 characters in unibyte strings.
12555
125562008-03-15 Martin Rudalics <rudalics@gmx.at>
12557
12558 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12559 at end of range when it coincides with the end of the buffer.
12560
125612008-03-14 Eli Zaretskii <eliz@gnu.org>
12562
12563 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12564
12565 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12566
125672008-03-14 Jason Rumney <jasonr@gnu.org>
12568
12569 * editfns.c (initial_tz): New variable.
12570 (syms_of_editfns): Initialize it.
12571 (Fset_time_zone_rule): Set it when first called.
12572 Use it when TZSTRING is nil.
12573
12574 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12575 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12576 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12577 (globals_of_w32fns): Initialize them.
12578 (compute_tip_xy): Use them to position tooltips.
12579
125802008-03-14 Glenn Morris <rgm@gnu.org>
12581
12582 * emacs.c (main): Revert previous change.
12583 (standard_args): Revert -internal-script back to -scriptload,
12584 and remove the long-option form.
12585
125862008-03-13 Glenn Morris <rgm@gnu.org>
12587
12588 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12589 Remove option -enable-font-backend.
12590
125912008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12592
12593 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12594
125952008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12596
12597 * xterm.c (x_connection_closed): For GTK: If this is the last
12598 terminal just exit without closing the display.
12599
126002008-03-11 Jason Rumney <jasonr@gnu.org>
12601
12602 * w32font.c (w32font_full_name): Use floor to round.
12603
f0131492 126042008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12605
12606 * sound.c (alsa_configure): Declare vol at beginning of block.
12607
12608 * fontset.c (Ffontset_info): Remove extra semicolon.
12609
126102008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12611
12612 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12613 size of resulting string.
12614
126152008-03-10 Jason Rumney <jasonr@gnu.org>
12616
12617 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12618
126192008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12620
12621 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12622 Don't pretend as if characters with display property haven't been
12623 consumed for string-replacing-string case.
12624
126252008-03-08 Kim F. Storm <storm@cua.dk>
12626
12627 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12628 (get_next_display_element, next_element_from_string)
12629 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12630
126312008-03-08 Andreas Schwab <schwab@suse.de>
12632
12633 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12634
126352008-03-06 Jason Rumney <jasonr@gnu.org>
12636
12637 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12638 when charset not specified. Only translate ANSI to unicode when
12639 font_type is truetype.
12640 (w32font_coverage_ok): New function.
12641 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12642
126432008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12644
12645 * lread.c (Fread_char): Resolve modifiers.
12646 (Fread_char_exclusive): Likewise.
12647
12648 * character.c (char_resolve_modifier_mask): New function.
12649 (char_string): Use char_resolve_modifier_mask.
12650 (Fchar_resolve_modifiers): New function.
12651 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12652 function.
12653
126542008-03-04 Jason Rumney <jasonr@gnu.org>
12655
12656 * makefile.w32-in: Always include w32font.c in the build.
12657 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12658
126592008-03-04 Andreas Schwab <schwab@suse.de>
12660
12661 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12662 (versionclean): Likewise.
12663
126642008-03-04 Juanma Barranquero <lekktu@gmail.com>
12665
12666 * .cvsignore: Add oo.
12667
126682008-03-03 Andreas Schwab <schwab@suse.de>
12669
12670 * coding.c (decode_coding_object): Inhibit gap shrinking while
12671 decoding in place.
12672
126732008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12674
12675 * w32term.c: Remove unused include "gnu.h".
12676 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12677
12678 * gnu.h: Rename to ...
12679 * emacs-icon.h: ... this.
12680 * xterm.c: Use emacs-icon.h instead of gnu.h.
12681 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12682
126832008-03-03 Juanma Barranquero <lekktu@gmail.com>
12684
12685 * w32font.c: Include math.h.
12686
126872008-03-03 Jason Rumney <jasonr@gnu.org>
12688
12689 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12690 Compute options separately.
12691 (w32font_open_internal): Set glyph_idx before caching metrics.
12692
12693 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12694 Define if system headers don't.
12695 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12696 (w32font_encode_char): Don't declare here.
12697
12698 * w32font.c (Quniscribe, QCformat): New symbols.
12699 (syms_of_w32font): Define them.
12700 (w32font_has_char): Indicate uncertainty.
12701 (w32font_encode_char): Encode as glyph point. Make static.
12702 (recompute_cached_metrics): New function.
12703 (w32font_open_internal): Use it. Set font to use glyph points
12704 initially. Set format based on type of font.
12705 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12706 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12707 on it. Set format based on information available here.
12708 (add_font_entity_to_list): Identify backend based on opentype_only.
12709
127102008-03-02 Andreas Schwab <schwab@suse.de>
12711
12712 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12713
12714 * coding.c (decode_coding_big5, produce_chars):
12715 Fix typos in last change.
12716
127172008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12718
12719 * gnu.h: New icon.
12720
127212008-03-02 Kenichi Handa <handa@m17n.org>
12722
12723 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12724 `dos', don't decode '\r' if that is the last in the source.
12725 (decode_coding_utf_16, decode_coding_emacs_mule)
12726 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12727 (decode_coding_raw_text, decode_coding_charset): Likewise.
12728 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12729
127302008-03-01 Jason Rumney <jasonr@gnu.org>
12731
12732 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12733
127342008-03-01 Kim F. Storm <storm@cua.dk>
12735
12736 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12737
127382008-03-01 Jason Rumney <jasonr@gnu.org>
12739
12740 * w32font.c (w32font_full_name): New function.
12741 (w32font_open_internal): Use it.
12742
127432008-03-01 Kim F. Storm <storm@cua.dk>
12744
12745 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12746
127472008-03-01 Jason Rumney <jasonr@gnu.org>
12748
12749 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12750
127512008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12752
12753 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12754 xg_frame_resized when the event is for the edit widget.
12755
12756 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12757
12758 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12759 set_char_size.
12760 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12761 operations on widgets here. Just set frame size if needed.
12762 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12763 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12764 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12765 the whole frame.
12766 (xg_create_tool_bar): Move attachment of the tool bar to
12767 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12768 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12769
127702008-03-01 Jason Rumney <jasonr@gnu.org>
12771
12772 * w32fns.c (w32_msg_pump): Disable debug code.
12773
127742008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12775
12776 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12777
127782008-02-29 Chong Yidong <cyd@stupidchicken.com>
12779
12780 * xdisp.c (next_overlay_string): Don't set
12781 overlay_strings_at_end_processed_p if we're currently reading from
12782 a display string.
12783
127842008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12785
12786 * xdisp.c (get_overlay_strings_1): Fix typo.
12787
127882008-02-29 Chong Yidong <cyd@stupidchicken.com>
12789
12790 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12791
127922008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12793
12794 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12795
12796 * xdisp.c (display_mode_element): Cancel the previous change.
12797 (decode_mode_spec): Likewise.
12798 (handle_auto_composed_prop): Don't make composition if it->string
12799 is a string.
12800
128012008-02-27 Kim F. Storm <storm@cua.dk>
12802
12803 * lisp.h (GLYPH): Change type from int to struct with separate char
12804 and face_id members.
12805 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12806 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12807 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12808 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12809 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12810 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12811 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12812 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12813 handle new Lisp glyph code encoding, either an integer or a cons.
12814
12815 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12816 (GLYPH_ALIAS): Delete.
12817 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12818 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12819 (GLYPH_FROM_CHAR): Replace macro by ...
12820 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12821
12822 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12823 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12824 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12825 (GLYPH_INVALID_P): New macro.
12826 (spec_glyph_lookup_face): Update prototype.
12827
12828 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12829 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12830 new glyph code encoding.
12831 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12832 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12833
12834 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12835 Adapt to new glyph type and new glyph code encoding.
12836
12837 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12838
12839 * indent.c (current_column, current_column_1, Fmove_to_column)
12840 (compute_motion): Adapt to new glyph code encoding.
12841
12842 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12843
128442008-02-27 Chong Yidong <cyd@stupidchicken.com>
12845
12846 * process.c (wait_reading_process_output): Check for window
12847 changes caused by timers.
12848 Suggested by Johan Bockgård.
12849
128502008-02-27 Glenn Morris <rgm@gnu.org>
12851
12852 * emacs.c (USAGE1): Add `--disable-font-backend'.
12853
128542008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12855
12856 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12857 is made to the buffer.
12858
128592008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12860
12861 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12862 (face_at_string_position):
12863 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12864 (face_at_string_position):
12865 * xdisp.c (display_string, next_overlay_change):
12866 * buffer.h (overlays_at):
12867 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12868 Update callers.
12869
128702008-02-26 Chong Yidong <cyd@stupidchicken.com>
12871
12872 * editfns.c (Fformat): Doc fix.
12873
128742008-02-26 Juanma Barranquero <lekktu@gmail.com>
12875
12876 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12877 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12878 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12879
128802008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12881
12882 * buffer.c (Fbuffer_swap_text): New function.
12883 (syms_of_buffer): Defsubr it.
12884
128852008-02-25 Chong Yidong <cyd@stupidchicken.com>
12886
12887 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12888
128892008-02-25 Jason Rumney <jasonr@gnu.org>
12890
12891 * w32font.c (w32font_draw): Draw one character at a time when padding.
12892
128932008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12894
12895 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12896 Handle a nil arg. Use run_window_configuration_change_hook.
12897 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12898 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12899 Use run_window_configuration_change_hook.
12900
129012008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12902
12903 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12904 1-pixel width.
12905
129062008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12907
12908 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12909 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12910 if the glyph in the font is zero pixel with.
12911
12912 * dispextern.h (struct glyph_string): New member padding_p.
12913
12914 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12915
12916 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12917
12918 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12919
12920 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12921
12922 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12923
129242008-02-25 Jason Rumney <jasonr@gnu.org>
12925
12926 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12927
129282008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12929
12930 Allow fine-grained image-cache flushing.
12931 * dispextern.h (struct image): Add `dependencies' field.
12932 (clear_image_caches): Change arg to Lisp_Object.
12933 * image.c (make_image): Initialize `dependencies' field.
12934 (clear_image_cache): Change arg to allow fine-grained flushing.
12935 Perform the flush even if image-cache-eviction-delay is nil.
12936 (clear_image_caches): Change arg to Lisp_Object.
12937 (Fclear_image_cache): Expand meaning of the argument.
12938 (mark_image): Mark `dependencies' field.
12939 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12940 (lface_hash): Use XHASH rather than XFASTINT.
12941 (face_at_buffer_position): Fix int -> EMACS_INT position.
12942 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12943 (select_frame_for_redisplay): Remove code duplication.
12944 (redisplay_internal): Adapt arg to call to clear_image_caches.
12945
129462008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12947
12948 * s/vms4-0.h:
12949 * s/vms4-2.h:
12950 * s/vms4-4.h:
12951 * s/vms5-5.h: Remove, unused.
12952
12953 * s/irix5-2.h:
12954 * s/irix6-0.h:
12955 * s/riscos5.h:
12956 * s/mach-bsd4-3.h:
12957 * m/mips4.h: Remove files for obsolete systems.
12958
12959 * Makefile.in:
12960 * filelock.c:
12961 * unexmips.c:
12962 * m/hp9000s300.h:
12963 * m/iris4d.h:
12964 * s/aix3-1.h:
12965 * s/hpux.h:
12966 * s/msdos.h:
12967 * s/usg5-0.h:
12968 * s/usg5-2-2.h:
12969 * s/usg5-2.h:
12970 * s/usg5-3.h: Remove references to obsolete variables.
12971
12972 * s/irix5-0.h: Remove, move all the contents ...
12973 * s/irix6-5.h: ... here. Simplify.
12974 * config.in: Regenerate.
12975
129762008-02-24 Jason Rumney <jasonr@gnu.org>
12977
12978 * w32term.c (x_draw_glyph_string_background): Clear the background
12979 manually when cleartype is in use.
12980 (x_draw_glyph_string_foreground): Draw text transparently when
12981 cleartype is in use.
12982
12983 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12984 a font into it unless we have to.
12985
129862008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12987
12988 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12989 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12990
aac0c6e3
MR
129912008-02-18 Jason Rumney <jasonr@gnu.org>
12992
12993 * w32fns.c (Fw32_shell_execute): Encode parameters.
12994
129952008-02-09 Eli Zaretskii <eliz@gnu.org>
12996
12997 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12998
129992008-02-05 Juanma Barranquero <lekktu@gmail.com>
13000
13001 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13002
130032008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13004
13005 * xterm.c (x_set_offset): Don't change the gravity if
13006 CHANGE_GRAVITY is -1.
13007
130082008-02-23 Chong Yidong <cyd@stupidchicken.com>
13009
13010 * fileio.c (auto_save_error_occurred): New var.
13011 (auto_save_error): Set it.
13012 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13013 error occurred.
13014
130152008-02-23 Eli Zaretskii <eliz@gnu.org>
13016
13017 * w32.c (globals_of_w32): Add initializations for
13018 g_b_init_get_sid_sub_authority and
13019 g_b_init_get_sid_sub_authority_count.
13020
130212008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13022
13023 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13024 (font_parse_xlfd): Use them for sanity check.
13025 (Finternal_set_font_style_table): Make sure the table is bijective.
13026
13027 Consolidate the image_cache to the terminal struct.
13028 * termhooks.h (P_): Remove redundant def.
13029 (struct terminal): New field `image_cache'.
13030 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13031 of FRAME_X_IMAGE_CACHE.
13032 * xterm.h (struct x_display_info): Remove image_cache field.
13033 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13034 * w32term.h (struct w32_display_info): Remove image_cache field.
13035 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13036 * macterm.h (struct mac_display_info): Remove image_cache field.
13037 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13038 * xterm.c (x_term_init):
13039 * w32term.c (w32_term_init):
13040 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13041 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13042 Remove declarations.
13043 (clear_image_caches, mark_image_cache): New declarations.
13044 * xfaces.c (clear_face_cache):
13045 * xdisp.c (redisplay_internal): Use clear_image_caches.
13046 * image.c (clear_image_cache): Don't check that a frame is on
13047 a window-system before checking if it shares the same cache.
13048 (clear_image_caches): New function.
13049 (Fclear_image_cache): Use it.
13050 (mark_image): Move from allo.c.
13051 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13052 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13053 (mark_object): Don't call mark_image_cache for frames.
13054 (mark_terminals): Call mark_image_cache.
13055
13056 * lisp.h (Fdelete_terminal): Declare.
13057
13058 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13059 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13060 wrong_type_argument.
13061
130622008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13063
13064 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13065 malayalam.el, and tamil.el. Add sinhala.el.
13066
130672008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13068
13069 * xterm.c (x_connection_closed): Consolidate identical tests.
13070 (x_delete_terminal): Don't crash if called via x_connection_closed.
13071
130722008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13073
13074 * xdisp.c (decode_mode_spec): New arg string.
13075 (display_mode_element): Adjust for the above change.
13076
130772008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13078
13079 * callint.c (Fcall_interactively): Use AREF.
13080
130812008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13082
13083 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13084
130852008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13086
13087 * xfns.c (Fx_show_tip): Set string to " " if empty.
13088
130892008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13090
13091 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13092 with Qt.
13093
130942008-02-17 Kenichi Handa <handa@m17n.org>
13095
13096 * ftfont.c (ftfont_shape): Return Lispy number.
13097
13098 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13099 for GCs.
13100 (Finternal_set_font_selection_order): Call font_update_sort_order
13101 only when enable_font_backend is set.
13102 (realize_x_face): Set face->font_info to that of default face only
13103 when enable_font_backend is set.
13104
13105 * xdisp.c (handle_composition_prop): Set it->c to the fist
13106 character of the composed region.
13107 (fill_composite_glyph_string): Set base_face->font_info to
13108 s->font_info. Get a face for ascii from base_face->ascii_face.
13109 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13110 with a face already decided.
13111 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13112 non-negative.
13113 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13114 call font_prepare_composition unconditionally.
13115
13116 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13117
13118 * xterm.h (struct x_display_info): New member font.
13119
13120 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13121 (x_set_mouse_face_gc, x_new_font): Likewise.
13122 (x_term_init): Setup display_info->font.
13123 (x_delete_terminal): Free display_info->font.
13124
13125 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13126
13127 * ftxfont.c (ftxfont_default_fid): Delete it.
13128 (ftxfont_open): Set xfont->fid to 0.
13129 (ftxfont_end_for_frame): Clear data specific to the frame and the
13130 font-driver.
13131
13132 * xftfont.c (xftfont_default_fid): Delete it.
13133 (xftfont_open): Set xfont->fid to 0.
13134
13135 * fontset.c (FONTSET_OBJLIST): New macro.
13136 (fontset_find_font): Update font-object list of the fontset.
13137 (free_realized_fontset): New function.
13138 (free_face_fontset): Call free_realized_fontset.
13139 (Ffont_info): Call font_close_object only when enable_font_backend
13140 is set.
13141
13142 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13143 [HAVE_NTGUI]: Include w32term.h.
13144 [MAC_OS]: Include macterm.ch.
13145 (font_otf_ValueRecord): Use make_number.
13146 (font_finish_cache): Fix handling of reference count.
13147 (font_clear_cache): Update num_fonts.
13148 (font_open_entity): Update smallest_char_width and
13149 smallest_font_height of the frame.
13150 (font_close_object): Update num_fonts.
13151 (Fclear_font_cache): Fix finding the target cache data.
13152
131532008-02-16 Glenn Morris <rgm@gnu.org>
13154
13155 * fontset.c (Finternal_char_font): Fix compilation warning.
13156
131572008-02-16 Eli Zaretskii <eliz@gnu.org>
13158
13159 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13160 instead of char arrays. Enlarge the size of array passed to
13161 get_token_information.
13162
13163 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13164 warnings.
13165
131662008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13167
13168 * .gdbinit: Don't set `args', it breaks gdb --args.
13169
131702008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13171
13172 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13173 within a narrowed buffer.
13174
131752008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13176
13177 * coding.c (decode_coding_object, encode_coding_object):
13178 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13179
131802008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13181
13182 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13183 hardcoding 1.
13184 (detect_coding_system):
13185 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13186 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13187 * insdel.c (insert_from_gap):
13188 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13189 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13190 (string_to_multibyte):
13191 * character.c (chars_in_text, multibyte_chars_in_text):
13192 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13193
13194 * character.h (FETCH_STRING_CHAR_ADVANCE)
13195 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13196 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13197 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13198
13199 * casefiddle.c (casify_region): Only call after-change and composition
13200 functions on the part of the region that was changed.
13201
13202 * keyboard.c (read_avail_input):
13203 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13204
132052008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13206
13207 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13208 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13209
132102008-02-11 Juanma Barranquero <lekktu@gmail.com>
13211
13212 * w32menu.c (push_submenu_start, push_submenu_end)
13213 (push_left_right_boundary, push_menu_pane, push_menu_item):
13214 * keyboard.c (read_key_sequence): Don't pass args with side effects
13215 to AREF, it fails when compiling with -DENABLE_CHECKING.
13216
132172008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13218
13219 * Makefile.in (${lispsource}international/charprop.el):
13220 Delete this target.
13221
13222 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13223 emacs-unicode-2.
13224
132252008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13226
13227 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13228
132292008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13230
13231 * frame.c (Qnoelisp): New symbol.
13232 (syms_of_frame): Initialize it.
13233 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13234 harmless Elisp code, from a strong `force' from x_connection_closed.
13235 * frame.h (Qnoelisp): Declare.
13236 * xterm.c (x_connection_closed): Pass `noelisp'.
13237
13238 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13239 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13240 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13241 rather than `int' for the type of `type'.
13242
132432008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13244
13245 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13246
13247 * Makefile.in (GNUC): Remove support for gcc-1.x.
13248
132492008-02-10 Richard Stallman <rms@gnu.org>
13250
13251 * lisp.h (ASET): Use AREF, not ASLOT.
13252
132532008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13254
13255 * lisp.h (ASET): Check bounds.
13256
132572008-02-10 Glenn Morris <rgm@gnu.org>
13258
13259 * buffer.c (mode-name): Doc fix.
13260
132612008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13262
13263 * Makefile.in:
13264 * emacs.c:
13265 * gmalloc.c:
13266 * keyboard.c:
13267 * lisp.h:
13268 * m/ibm370aix.h:
13269 * process.c:
13270 * regex.c:
13271 * s/hpux.h:
13272 * sysdep.c:
13273 * sysselect.h:
13274 * systty.h:
13275 * unexec.c:
13276 * w32term.c:
13277 * xsmfns.c:
13278 * xterm.c: Remove code that deals with obsolete variables.
13279
13280 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13281
13282 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13283 nothing else needs it anymore.
13284
132852008-02-09 Eli Zaretskii <eliz@gnu.org>
13286
13287 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13288 instead of unibyte_char_to_multibyte.
13289
132902008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13291
13292 * s/gnu-linux.h: Remove commented out code.
13293
13294 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13295
13296 * Makefile.in: Update what RMS says about using autoconf.
13297 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13298 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13299 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13300 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13301
133022008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13303
13304 * keymap.c (Fkey_description): Move side effect outside of macro call.
13305
13306 * xfaces.c (Finternal_make_lisp_face):
13307 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13308
13309 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13310 (syms_of_fontset): Use ASET.
13311
13312 * fns.c (concat): Move side effect outside of macro call.
13313 (hash_clear): Use ASET.
13314
133152008-02-08 Richard Stallman <rms@gnu.org>
13316
13317 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13318 If FORCE, and frame has a surrogate minibuffer for another frame,
13319 delete the other frame first.
13320
133212008-02-07 Timo Savola <timo.savola@iki.fi>
13322
13323 * xterm.c (x_detect_focus_change): Handle embed client message.
13324 (handle_one_xevent): Ditto.
13325 (handle_one_xevent): If embedded and we get a button press/release,
13326 request focus.
13327 (xembed_set_info, xembed_send_message): New functions.
13328 (x_make_frame_visible): Call xembed_set_info if embedded.
13329 (x_make_frame_invisible): Call xembed_set_info if embedded.
13330 (x_term_init): Initialize Xatom_XEMBED.
13331 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13332 (x_iconify_frame): Ditto.
13333
13334 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13335 (enum xembed_info, enum xembed_message, enum xembed_focus)
13336 (enum xembed_modifier, enum xembed_accelerator): New.
13337 (xembed_set_info, xembed_send_message): Declare.
13338 (FRAME_X_EMBEDDED_P): New.
13339
13340 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13341 gtk_plug_new.
13342
13343 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13344 window ID of a frame.
13345 (x_window): Reparent frame if embedded.
13346 (Fx_create_frame): Don't set border width if embedded.
13347
13348 * emacs.c (USAGE3): Add --parent-id.
13349 (standard_args): Ditto.
13350
133512008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13352
13353 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13354
133552008-02-07 Jim Meyering <meyering@redhat.com>
13356
13357 Use "do...while (0)", not "if (1)...else" in macro definitions.
13358 The latter provokes a warning from gcc about the empty else, when
13359 followed by ";". Also, without that trailing semicolon, it would
13360 silently swallow up any following statement.
13361 * syntax.h (SETUP_SYNTAX_TABLE)
13362 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13363 * buffer.h (DECODE_POSITION): Likewise.
13364 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13365 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13366 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13367 (FETCH_CHAR_ADVANCE): Likewise.
13368 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13369
133702008-02-07 Jim Meyering <meyering@redhat.com>
13371
13372 * lread.c [lint]: Don't include <sys/inode.h>.
13373
133742008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13375
13376 * xselect.c (x_handle_dnd_message):
13377 * xmenu.c (digest_single_submenu, xmenu_show):
13378 * xdisp.c (with_echo_area_buffer_unwind_data)
13379 (format_mode_line_unwind_data, unwind_format_mode_line)
13380 (display_menu_bar):
13381 * eval.c (Ffetch_bytecode):
13382 * doc.c (store_function_docstring):
13383 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13384 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13385 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13386
133872008-02-07 Kenichi Handa <handa@m17n.org>
13388
13389 * ftxfont.c (ftxfont_open): Don't set
13390 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13391
13392 * ftfont.c (ftfont_open): Fix previous change.
13393
133942008-02-06 Jason Rumney <jasonr@gnu.org>
13395
13396 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13397 Use cached metrics for ASCII characters.
13398 (w32font_open_internal): Don't set font's owning_frame.
13399 Cache metrics for ASCII characters.
13400
13401 * w32font.h (struct w32font_info): Add ascii_metrics.
13402 Remove owning_frame.
13403
134042008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13405
13406 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13407 to negative value.
13408
13409 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13410
13411 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13412
13413 * charset.c (syms_of_charset): Set QCtest and Qeq.
13414
134152008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13416
13417 * process.c (Fstart_process):
13418 * callproc.c (Fcall_process): Handle the case where
13419 Funhandled_file_name_directory returns nil.
13420
13421 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13422 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13423 * font.c (check_gstring): Use them and AREF to access the vector before
13424 we know it's really a gstring.
13425 (Ffont_shape_text): Fix typo.
46e722a9 13426 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13427
13428 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13429 Declare.
13430
13431 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13432
134332008-02-05 Jason Rumney <jasonr@gnu.org>
13434
13435 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13436 Set smallest_font_height and smallest_char_width in display info.
13437
134382008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13439
13440 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13441
134422008-02-05 Miles Bader <miles@gnu.org>
13443
13444 * xfaces.c (get_lface_attributes, merge_named_face)
13445 (lookup_named_face, lookup_derived_face, realize_named_face):
13446 Revert 2008-02-01 change by cyd@stupidchicken.com.
13447
134482008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13449
13450 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13451 fallback fonts.
13452 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13453
134542008-02-04 Jason Rumney <jasonr@gnu.org>
13455
13456 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13457 set full_name.
13458 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13459
134602008-02-03 Jason Rumney <jasonr@gnu.org>
13461
13462 * makefile.w32-in (OBJ1): Include font.o here.
13463 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13464
134652008-02-02 Jason Rumney <jasonr@gnu.org>
13466
13467 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13468
134692008-02-01 Jason Rumney <jasonr@gnu.org>
13470
13471 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13472
13473 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13474
134752008-02-01 Andreas Schwab <schwab@suse.de>
13476
13477 * Makefile.in (shortlisp, lisp): Update for rename of
13478 ../lisp/language/myanmar.el.
13479
134802008-02-01 Chong Yidong <cyd@stupidchicken.com>
13481
13482 * xfaces.c (get_lface_attributes): Delete function.
13483 (merge_named_face, lookup_named_face, lookup_derived_face)
13484 (realize_named_face): Call lface_from_face_name directly, and use
13485 the fact that merge_face_vectors does not alter its FROM argument.
13486
134872008-02-01 Jason Rumney <jasonr@gnu.org>
13488
13489 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13490 input in the default locale. Handle non-Unicode multibyte input.
13491
134922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13493
13494 * fontset.c (reorder_font_vector): Exclude nil elements from the
13495 font group. Don't try multiple fonts.
13496 (fontset_font): Adjust for the above change.
13497 (Finternal_char_font): Return nil if the found font doesn't
13498 contain the character ch.
13499
13500 * Makefile.in (lisp, shortlisp): Add cham.el.
13501
135022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13503
13504 * font.h (FONTP): Make it return 1 also for a font-object.
13505
13506 * .gdbinit (xfontset): New function.
13507
13508 * font.c (font_find_for_lface): Check if the character C is
13509 supported or not only for the first font.
13510
13511 * fontset.c (reorder_font_vector): Fix typo.
13512 (fontset_find_font): Don't add a font-spec specifying a script.
13513 Use 0 (not Qt) for the indication of empty font-group. Change the
13514 format of RFONT-DEF. Return Qt if no font in the font-group
13515 support the character.
13516 (fontset_font): Adjust for the above change. If no font was
13517 found the character, remember that.
13518 (face_for_char): Adjust for the change of RFONT-DEF.
13519 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13520 no font for the target.
13521 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13522
135232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13524
13525 * font.c (font_load_for_face): Handle the case that the font in
13526 face->lface is a string.
13527
135282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13529
13530 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13531
135322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13533
13534 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13535 Fix previous change. If the frame is not on a window system,
13536 signal an error.
13537
135382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13539
13540 * coding.c (decode_coding_object, encode_coding_object): Adjust
13541 marker positions after conversion.
13542
13543 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13544
135452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13546
13547 * font.c (font_find_for_lface): Fix the handling of the return
13548 value of font_has_char.
13549 (Ffont_shape_text): Fix previous change.
13550
13551 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13552 (fontset_ref_and_range): Delete it.
13553 (fontset_find_font): Call char_table_ref_and_range instead of
13554 FONTSET_REF_AND_RANGE.
13555 (make_fontset): Don't setup font groups of Latin here.
13556 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13557 (new_fontset_from_font): Make the specified font the default for
13558 all Latin characters.
13559
135602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13561
13562 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13563 is on a window system before accessing the fontset of the frame.
13564
135652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13566
13567 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13568
13569 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13570 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13571
13572 * font.c (Ffont_shape_text): If the font driver doesn't have a
13573 shaper function, make zero-width glyphs to have at least one-pixel
13574 width. Fix setting of `to' field of glyphs.
13575
135762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13577
13578 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13579 glyphs.
13580
13581 * font.h (struct font_driver): Improve docstring of member `shape'.
13582
135832008-02-01 Kenichi Handa <handa@m17n.org>
13584
13585 * composite.c (syms_of_composite): Fix docstring of
13586 auto-composition-function.
13587
13588 * font.h (LGLYPH_SIZE): New macro.
13589
13590 * font.c (Ffont_fill_gstring): Stop filling when a character not
13591 supported by the font is found.
13592 (Ffont_shape_text): When a shape callback function returns nil,
13593 try at most two more times with larger gstring.
13594 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13595
13596 * xdisp.c (handle_auto_composed_prop): Change the argument to
13597 auto-composition-function.
13598
13599 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13600 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13601 Lispy glyph and store it in the lgstring.
13602
13603 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13604
13605 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13606
136072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13608
13609 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13610
13611 * fontset.c (Vfont_encoding_charset_alist): New variable.
13612 (syms_of_fontset): DEFVAR it.
13613 (reorder_font_vector, fontset_find_font): Optimize for the case of
13614 no need of reordering.
13615 (face_for_char): Map the charset property by
13616 Vfont_encoding_charset_alist.
13617
136182008-02-01 Jason Rumney <jasonr@gnu.org>
13619
13620 * w32font.c (logfonts_match): Don't check adstyle here.
13621 (font_matches_spec): Check here against physical font instead.
13622 (add_font_entity_to_list): Avoid some substitutions.
13623
13624 * font.c (font_parse_fcname): Default weight and slant to normal.
13625 (font_score): Prefer normal fonts if weight or slant unspecified.
13626 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13627 match freetype scores.
13628
136292008-02-01 Jason Rumney <jasonr@gnu.org>
13630
13631 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13632 font, as it may have been deleted.
13633 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13634 most common hyphenless variation.
13635 (logfonts_match): Check generic family.
13636 (font_matches_spec): Don't check generic family here.
13637 (fill_in_logfont): Set generic family based on adstyle.
13638
13639 * w32font.h (w32font_get_cache): Update declaration.
13640
136412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13642
13643 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13644
13645 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13646 If none of the new drivers are available, call font_update_drivers
13647 with the old drivers.
13648
13649 * w32font.c (w32font_get_cache): Adjust the argument type.
13650
13651 * xfont.c (xfont_get_cache): Adjust the argument type.
13652
13653 * font.h (struct font_driver): Change argument type of get_cache.
13654
13655 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13656
13657 * font.c (Ffont_get): Fix arguments to Fassoc.
13658 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13659 (font_clear_cache): New function.
13660 (font_list_entities, font_matching_entity): Use font_get_cache.
13661 (font_update_drivers): Call font_clear_cache when finishing a driver.
13662
13663 * fontset.c (fontset_find_font): Fix previous change.
13664
136652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13666
13667 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13668 dpyinfo->font_table.
13669 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13670 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13671
13672 * font.c (font_at): Handle the case that the arg C is negative.
13673 Handle the unibyte case.
13674 (Ffont_at): Call font_at with the arg C -1.
13675
13676 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13677 the position here, and call font_at with the arg C -1.
13678 Don't check the range of the existing composition at the point.
13679
136802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13681
13682 * fontset.c (fontset_add): New args charset_id and family.
13683 Change caller.
13684 (load_font_get_repertory, fontset_find_font): Assume that
13685 font_spec is always a font-spec object.
13686 (Fset_fontset_font): Always store a font-spec object in a fontset.
13687
13688 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13689 instead of get_property_and_range.
13690
136912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13692
13693 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13694 (xftfont_open): Don't keep locking face.
13695 (xftfont_close): Don't unlock face.
13696 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13697
13698 * fontset.c (fontset_find_font): Don't prefer a font of
13699 supplementary charset.
13700
137012008-02-01 Kenichi Handa <handa@m17n.org>
13702
13703 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13704 script, langsys_tag to langsys, new member script.
13705 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13706 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13707 listing to the script specified in that property. Fix arg to
13708 OTF_check_features.
13709
137102008-02-01 Jason Rumney <jasonr@gnu.org>
13711
13712 * w32font.h: New file.
13713
13714 * w32font.c: Include it.
13715 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13716 (w32font_open): Set owning_frame.
13717 (w32font_text_extents): Use owning_frame.
13718 (struct font_callback_data): Add opentype_only field.
13719 (add_font_entity_to_list): Use it to filter fonts.
13720 Don't check against full name.
13721 (w32font_list_internal): New function.
13722 (w32font_list): Use it.
13723 (w32font_match_internal): New function.
13724 (w32font_match): Use it.
13725 (w32font_open_internal): New function.
13726 (w32font_open): Use it.
13727 (w32font_get_cache, w32font_close, w32font_has_char)
13728 (w32font_encode_char, w32font_text_extents, w32font_draw):
13729 Make non-static.
13730
13731 * makefile.w32-in (w32font.o): Depend on w32font.h.
13732
137332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13734
13735 * charset.c (Fdefine_charset_internal): Record a supplementary
13736 charset at the tail of Vcharset_order_list.
13737
13738 * font.c (Ffont_shape_text): Fix the return value.
13739
13740 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13741
13742 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13743
137442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13745
13746 * ftfont.c (struct OpenTypeSpec): New struct.
13747 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13748 (ftfont_get_open_type_spec): New function.
13749 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13750
13751 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13752
137532008-02-01 Jason Rumney <jasonr@gnu.org>
13754
13755 * w32font.c (add_font_entity_to_list): Compare only the beginning
13756 of full name.
13757
137582008-02-01 Kenichi Handa <handa@m17n.org>
13759
13760 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13761 Never return HANDLED_RECOMPUTE_PROPS.
13762
137632008-02-01 Kenichi Handa <handa@m17n.org>
13764
13765 * font.c (font_gstring_produce): Delete it.
13766
13767 * composite.h (COMPOSITION_METHOD):
13768 Handle COMPOSITION_WITH_GLYPH_STRING.
13769
137702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13771
13772 * xfont.c (Qx): Delete.
13773 (syms_of_xfont): Don't initialize Qx.
13774
13775 * composite.h (enum composition_method):
13776 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13777
137782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13779
13780 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13781 (choose_face_font): Accept new form of font-spec.
13782
13783 * frame.h (font_driver_list): Declare it unconditionally.
13784 (struct frame): Define members font_driver_list and font_data_list
13785 unconditionally.
13786
13787 * fontset.c: Include "font.h" unconditionally.
13788 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13789 (Fset_fontset_font): Accept a font-spec object.
13790
13791 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13792 PIXEL_SIZE part a wild card.
13793
13794 * dispextern.h (struct glyph_string): Define members clip and
13795 num_clips unconditionally.
13796 (struct face): Define members font_info and extra unconditionally.
13797
13798 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13799 ftfont_info only when HAVE_LIBOTF is defined.
13800
138012008-02-01 Andreas Schwab <schwab@suse.de>
13802
13803 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13804 and end.
13805
138062008-02-01 Jason Rumney <jasonr@gnu.org>
13807
13808 * w32font.c (w32font_driver): Add new fields.
13809
138102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13811
13812 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13813 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13814 (LIBES): Add @M17N_FLT_CFLAGS@.
13815
13816 * composite.c (compose_text): Don't treat the new style
13817 composition specially.
13818
13819 * emacs.c (main): Call syms_of_font unconditionally.
13820
13821 * font.h (FONT_ENTITY_NOT_LOADABLE)
13822 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13823 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13824 (struct font_driver): New member shape.
13825 (font_registry_charsets): Extern it.
13826 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13827 (font_otf_capability, font_drive_otf): Delete their externs.
13828
13829 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13830 (font_charset_alist, font_registry_charsets): Move from xfont.c
13831 and rename.
13832 (font_prop_validate_otf): New function.
13833 (font_property_table): Register it for QCotf.
13834 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13835 (font_drive_otf): Delete.
13836 (font_prepare_composition): New arg F. Adjust for the change of
13837 lispy gstring.
13838 (font_find_for_lface): New arg C.
13839 (font_load_for_face): Adjust for the change of font_find_for_lface.
13840 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13841 lispy gstring.
13842 (Ffont_shape_text): New function.
13843 (Fopen_font): If the font size is not given, use 12-pixel.
13844 (Ffont_at): New arg STRING.
13845 (syms_of_font): Initalize font_charset_alist.
13846 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13847 conditionally.
13848
13849 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13850 fonts of the same font-spec. Change the format of RFONT-DEF.
13851 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13852 Adjust for the change of RFONT-DEF.
13853 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13854
13855 * ftfont.h: New file.
13856
13857 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13858 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13859 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13860 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13861 font_otf_capability and font_drive_otf, set ftfont_shape.
13862 (ftfont_list): Adjust for the change of :otf property value.
13863 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13864 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13865 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13866 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13867 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13868 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13869
13870 * w32term.c (x_draw_composite_glyph_string_foreground):
13871 Adjust for the change of lispy gstring.
13872
13873 * xdisp.c (handle_composition_prop): Adjust for the change of
13874 lispy gstring. Call a function for auto-composition with the
13875 third arg it->window.
13876 (fill_composite_glyph_string): Adjust for the change of lispy string.
13877 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13878
13879 * xfaces.c (set_font_frame_param): Adjust for the change of
13880 font_find_for_lface.
13881
13882 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13883 (xfont_registry_charsets): Likewise. Change caller.
13884 (syms_of_xfont): Don't handle x_font_charset_alist.
13885
13886 * xftfont.c: Include "ftfont.h".
13887 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13888 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13889 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13890 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13891 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13892 Set xftfont_driver.shape to xftfont_shape.
13893
13894 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13895 the change of lispy gstring.
13896
138972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13898
13899 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13900
139012008-02-01 Jason Rumney <jasonr@gnu.org>
13902
13903 * w32font.c (w32font_draw): Fill background manually.
13904
139052008-02-01 Jason Rumney <jasonr@gnu.org>
13906
13907 * font.c (Qfontp): Remove unused symbol.
13908 (QCantialias): New symbol.
13909 (syms_of_font): Define it.
13910 (font_property_table): Set a validator for QCantialias.
13911
13912 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13913 Define if not already.
13914 (QCfamily): Share with xfaces.c.
13915 (Qstandard, Qsubpixel, Qnatural): New symbols.
13916 (syms_of_w32font): Define them. Don't define QCfamily here.
13917 (w32_antialias_type, lispy_antialias_type): New functions.
13918 (w32_enumfont_pattern_entity): New arg requested_font.
13919 Set antialias parameter if non-default was requested.
13920 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13921
139222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13923
13924 * lread.c (read1): Undo the previous change.
13925
139262008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13927
13928 * frame.c (Fdelete_frame): Call font_update_drivers only when
13929 USE_FONT_BACKEND is defined.
13930
139312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13932
13933 * font.h (struct font_bitmap): New member bits_per_pixel.
13934 (struct font_driver): New members start_for_frame and end_for_frame.
13935 (struct font_data_list): New struct.
13936 (font_put_frame_data, font_get_frame_data): Extern them.
13937
13938 * frame.h (struct frame): New member font_data_list.
13939
13940 * font.c (font_update_drivers): Call driver->start_for_frame and
13941 driver->end_for_frame at proper timings.
13942 (font_put_frame_data, font_get_frame_data): New functions.
13943 (Ffont_spec): Add usage in the docstring.
13944
13945 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13946 (Fdelete_frame): Call font_update_drivers.
13947
13948 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13949 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13950 (xftfont_get_xft_draw): New function.
13951 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13952 (xftfont_end_for_frame): New function.
13953 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13954
13955 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13956 Change argument. Cache GCs in the per-frame data.
13957 (struct ftxfont_frame_data): New struct.
13958 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13959 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13960 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13961 (ftxfont_end_for_frame): New function.
13962 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13963
13964 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13965
139662008-02-01 Kenichi Handa <handa@m17n.org>
13967
13968 * xselect.c (Vselection_coding_system)
13969 (Vnext_selection_coding_system): Delete them.
13970 (syms_of_xselect): Don't declare selection-coding-system and
13971 next-selection-coding-system. They are declared in select.el.
13972
139732008-02-01 Jason Rumney <jasonr@gnu.org>
13974
13975 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13976
13977 * w32fns.c: Include imm.h.
13978 (get_composition_string_fn, get_ime_context_fn): New optional
13979 system functions.
13980 (globals_of_w32fns): Load them from imm32.dll.
13981 (ignore_ime_char): New flag.
13982 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13983 WM_IME_ENDCOMPOSITION messages.
13984
13985 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13986 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13987
139882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13989
13990 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13991 (READCHAR_REPORT_MULTIBYTE): New macro.
13992 (readchar): New 2nd arg MULTIBYTE.
13993 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13994 Make symbol's name multibyte according to the multibyteness of the
13995 source.
13996
139972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13998
13999 * xfaces.c (face_for_overlay_string): Call lookup_face with
14000 correct arguments (fix of synching with the trunk).
14001
140022008-02-01 Kenichi Handa <handa@m17n.org>
14003
14004 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14005 (font_prop_validate_non_neg, font_prop_validate_spacing):
14006 Delete argument prop_index.
14007 (font_property_table): Change arguments to validater. Change Callers.
14008 (font_lispy_object): Delete.
14009 (font_at): Use font_find_object instead fo font_lispy_object.
14010
140112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14012
14013 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14014 and file names.
14015
140162008-02-01 Jason Rumney <jasonr@gnu.org>
14017
14018 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14019 (font_matches_spec): Remove debug output.
14020 (add_font_entity_to_list): Avoid using substituted fonts.
14021
140222008-02-01 Jason Rumney <jasonr@gnu.org>
14023
14024 * doc.c (Fsnarf_documentation):
14025 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14026
140272008-02-01 Miles Bader <miles@gnu.org>
14028
14029 * dispextern.h (struct glyph_row): Only define "clip" field if
14030 HAVE_WINDOW_SYSTEM is defined.
14031
140322008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14033
14034 Fix up multi-tty merge.
14035
14036 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14037 and indentation.
14038
14039 * xfaces.c (free_realized_face, clear_face_gcs):
14040 Include font_done_for_face in the input_blocked section, just in case.
14041
14042 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14043 (get_char_face_and_encoding): Undo last change and remove the *other*
14044 duplicate definition (i.e. keep the one that's better scoped and that
14045 includes code for the font-backend).
14046
14047 * terminal.c (create_terminal): Default keyboard_coding to
14048 `no-conversion' and terminal_coding to `undecided'.
14049
14050 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14051
14052 * fontset.c (free_realized_fontsets): Check that the table entry does
14053 contain a fontset before trying to compare it to `base'.
14054
14055 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14056 syms_of_charset, and syms_of_coding earlier because init_window_once
14057 now needs Vcoding_system_hash_table to be setup.
14058
14059 * coding.h (default_buffer_file_coding): Remove.
14060
14061 * coding.c (default_buffer_file_coding): Remove.
14062 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14063 than ->symbol, and use the terminal-local coding system.
14064 (syms_of_coding): Don't setup the coding-systems that are not
14065 terminal-local.
14066 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14067
14068 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14069 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14070
14071 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14072 in chartab.c and were re-added here by mistake.
14073 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14074
14075 * doc.c (Fsnarf_documentation):
14076 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14077 src to etc.
14078
14079 * ChangeLog.10: Add mistakenly removed entry.
14080
140812008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14082
14083 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14084
140852008-02-01 Miles Bader <miles@gnu.org>
14086
14087 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14088 Add extra args to FACE_FOR_CHAR.
14089
140902008-02-01 Kenichi Handa <handa@m17n.org>
14091
14092 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14093 in sequence.
14094
14095 * chartab.c (map_sub_char_table, map_char_table): If the range
14096 contains just one character, call the function with that character
14097 even if the depth is not 3.
14098
140992008-02-01 Jason Rumney <jasonr@gnu.org>
14100
14101 * w32font.c (w32font_text_extents): Calculate metrics for the
14102 whole string.
14103
141042008-02-01 Jason Rumney <jasonr@gnu.org>
14105
14106 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14107
141082008-02-01 Jason Rumney <jasonr@gnu.org>
14109
14110 * w32term.c (x_set_glyph_string_clipping): Use
14111 get_glyph_string_clip_rects.
14112 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14113 Adjust for the change of struct glyph_string.
14114
14115 * w32font.c (w32font_draw): Do clipping here.
14116
141172008-02-01 Kenichi Handa <handa@m17n.org>
14118
14119 * xftfont.c (xftfont_draw): Adjust for the change of struct
14120 glyph_string.
14121
14122 * xterm.c (x_set_glyph_string_clipping): Use
14123 get_glyph_string_clip_rects.
14124 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14125 Adjust for the change of struct glyph_string.
14126
14127 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14128 the resulting clip(s}.
14129 (expose_overlaps): Add arg r. Change callers. Set it to
14130 row->clip temporarily.
14131 (expose_window): Redraw rows overlapping the exposed area.
14132
14133 * dispextern.h (struct glyph_row): New member clip.
14134 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14135 clip_height, new member clip, and num_clips.
14136
141372008-02-01 Kenichi Handa <handa@m17n.org>
14138
14139 * data.c (Fchar_or_string_p): Fix docstring.
14140
141412008-02-01 Kenichi Handa <handa@m17n.org>
14142
14143 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14144 create a temporary XftDraw object.
14145
141462008-02-01 Kenichi Handa <handa@m17n.org>
14147
14148 * font.c (Ffontp): Fix docstring.
14149
14150 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14151 strong evidence of ISO-2022.
14152
141532008-02-01 Kenichi Handa <handa@m17n.org>
14154
14155 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14156 SYNTAX_ENTRY_FOLLOW_PARENT.
14157
141582008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14159
14160 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14161 its type.
14162 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14163 Update to the new type of weak_hash_tables and next_weak.
14164
14165 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14166 a plain C pointer to Lisp_Hash_Table.
14167
14168 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14169 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14170 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14171 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14172 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14173 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14174 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14175 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14176 (GC_EQ): Remove since they've been identical to their non-GC_
14177 alter-egos ever since the markbit was eradicated.
14178
14179 * alloc.c:
14180 * buffer.c:
14181 * buffer.h:
14182 * data.c:
14183 * fileio.c:
14184 * filelock.c:
14185 * fns.c:
14186 * frame.h:
14187 * lisp.h:
14188 * macterm.c:
14189 * print.c:
14190 * process.c:
14191 * w32fns.c:
14192 * w32menu.c:
14193 * w32term.c:
14194 * xfns.c:
14195 * xmenu.c:
14196 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14197
141982008-02-01 Kenichi Handa <handa@m17n.org>
14199
14200 * chartab.c (map_sub_char_table): Make it work for the top-level
14201 char-table. Fix handling of parent char-table.
14202 (map_char_table): Adjust for the above change.
14203
142042008-02-01 Jason Rumney <jasonr@gnu.org>
14205
14206 * w32font.c (Qgdi): Rename from Qw32.
14207
142082008-02-01 Jason Rumney <jasonr@gnu.org>
14209
14210 * w32bdf.c (get_quoted_string): Make function static.
14211
142122008-02-01 Kenichi Handa <handa@m17n.org>
14213
14214 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14215 bigger ascent and descent than those of the font, use them as
14216 font's ascent and descent.
14217
142182008-02-01 Kenichi Handa <handa@m17n.org>
14219
14220 * Makefile.in (${lispsource}international/charprop.el): Move this
14221 target within "#ifdef HAVE_UNIDATA" and "#endif".
14222
142232008-02-01 Kenichi Handa <handa@m17n.org>
14224
14225 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14226 (shortlisp): Add ../lisp/language/tai-viet.el.
14227
142282008-02-01 Ulrich Mueller <ulm@gentoo.org>
14229
14230 * Makefile.in (${lispsource}international/charprop.el): Depend on
14231 temacs${EXEEXT}.
14232
142332008-02-01 Jason Rumney <jasonr@gnu.org>
14234
14235 * w32font.c (w32font_close): Delete the GDI font object.
14236
14237 * w32menu.c: Include character.h.
14238
14239 * w32proc.c: Likewise.
14240
14241 * w32select.c: Likewise.
14242
14243 * makefile.w32-in (w32proc.o): Depend on character.h.
14244
142452008-02-01 Jason Rumney <jasonr@gnu.org>
14246
14247 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14248
14249 * w32menu.c (syms_of_w32menu): Likewise.
14250
14251 * w32proc.c (syms_of_ntproc): Likewise.
14252
14253 * w32select.c (syms_of_w32select): Likewise.
14254
14255 * w32term.c (syms_of_w32term): Likewise.
14256
142572008-02-01 Jason Rumney <jasonr@gnu.org>
14258
14259 * w32font.c (w32font_draw): Delete brush after using it.
14260
142612008-02-01 Jason Rumney <jasonr@gnu.org>
14262
14263 * w32font.c (w32font_open): Don't set font_idx.
14264 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14265 to font settings.
14266 (w32font_draw): Fill background explicitly.
14267
142682008-02-01 Jason Rumney <jasonr@gnu.org>
14269
14270 * w32term.c (w32_initialize): Don't call w32font_initialize.
14271
14272 * w32font.c (w32font_info): Remove subranges.
14273 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14274 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14275 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14276 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14277 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14278 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14279 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14280 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14281 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14282 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14283 New symbols.
14284 (font_callback_data): New struct.
14285 (w32font_list, w32font_match): Use it.
14286 (w32font_open): Don't populate subranges.
14287 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14288 (w32font_encode_char): Always return unicode code-point as-is.
14289 (w32font_text_extents): Supply a transformation matrix to
14290 GetGlyphOutline. Never look up by glyph index. Avoid looping
14291 twice. Use unicode version of GetTexExtentPoint32 instead of
14292 glyph index version.
14293 (set_fonts_frame): Remove.
14294 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14295 set frame parameter. Use backward compatible fake foundries.
14296 Save generic family in extra slot under QCfamily. Make width slot
14297 constant. Save QCspacing value. Save list of scripts instead of
14298 binary subranges.
14299 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14300 (add_font_entity_to_list): Use font_callback_data struct. Filter
14301 unwanted fonts.
14302 (add_one_font_entity_to_list): Use font_callback_data struct.
14303 (w32_registry): Default to iso10646_1.
14304 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14305 string font registries. Don't fill in font name if it is a generic
14306 family name, fill family instead. Use spacing, family and script
14307 extra info to fill pitch, family and charset fields.
14308 (list_all_matching_fonts): Use font_callback_data struct.
14309 (unicode_range_for_char): Remove.
14310 (font_supported_scripts): New function.
14311 (w32font_initialize): Remove.
14312 (syms_of_w32font): Update which symbols are defined.
14313
143142008-02-01 Jason Rumney <jasonr@gnu.org>
14315
14316 * font.c (font_pixel_size): Reverse assq_no_quit args.
14317
14318 * w32term.h (FONT_WIDTH): Report max width, not average.
14319 (FONT_MAX_WIDTH): Remove.
14320 (FONT_AVG_WIDTH): New macro.
14321
14322 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14323 redefinition of FONT_WIDTH.
14324
14325 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14326 (w32_cache_char_metrics): Use FONT_WIDTH.
14327
14328 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14329
143302008-02-01 Jason Rumney <jasonr@gnu.org>
14331
14332 * w32font.c (w32font_open): Make lfHeight negative.
14333
14334 * w32fns.c (x_default_font_parameter): Use new style font name.
14335 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14336
143372008-02-01 Jason Rumney <jasonr@gnu.org>
14338
14339 * w32font.c (QCsubranges): New symbol.
14340 (w32font_open, w32font_has_char): Get subranges from subproperty
14341 of extra.
14342 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14343 (syms_of_w32font): Define :subranges symbol.
14344
14345 * font.c (font_put_extra): Expose externally.
14346
14347 * font.h (font_put_extra): Move declaration from font.c.
14348
14349 * font.c (Ffont_get): Use font driver to determine otf capability.
14350 (adjust_anchor): Check if driver defines anchor_point before using.
14351
14352 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14353 (w32font_draw): Use options.
14354 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14355 Fix detection of truetype fonts.
14356 (registry_to_w32_charset): Handle charsets other than iso8859-1
14357 expressed as lisp symbols.
14358 (w32_registry): Express charset as lisp symbol.
14359 (fill_in_logfont): Reverse pixel and point height logic.
14360 Don't set width here. Set quality to default.
14361
14362 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14363 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14364
14365 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14366 Remove redundant loop and allocation.
14367
14368 * makefile.w32-in (font.o, w32font.o): New objects.
14369 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14370 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14371
14372 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14373 STORE_XCHARB a valid l-value.
14374
14375 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14376 calculations for non-Truetype fonts.
14377 (x_draw_glyph_string): Sync with xterm.c.
14378 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14379 Remove redundant code.
14380 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14381
14382 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14383 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14384
14385 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14386 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14387
14388 * w32font.c: New file for w32 font backend.
14389
143902008-02-01 Kenichi Handa <handa@m17n.org>
14391
14392 * term.c: Don't include "buffer.h" twice.
14393
143942008-02-01 Kenichi Handa <handa@m17n.org>
14395
14396 * character.c (Funibyte_string): New function.
14397 (syms_of_character): Defsubr it.
14398
143992008-02-01 Jason Rumney <jasonr@gnu.org>
14400
14401 * w32term.c [USE_FONT_BACKEND]:
14402 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14403 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14404 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14405 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14406 (x_free_frame_resources): Sync with xterm.c.
14407
144082008-02-01 Andreas Schwab <schwab@suse.de>
14409
14410 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14411 char-table size.
14412
144132008-02-01 Kenichi Handa <handa@m17n.org>
14414
14415 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14416
144172008-02-01 Kenichi Handa <handa@m17n.org>
14418
14419 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14420 font_otf_gpos, add font_drive_otf.
14421
14422 * fontset.c (fontset_find_font): Pay attention to font size
14423 specified for a font.
14424 (reorder_font_vector): Check contents of font_def.
14425
14426 * font.c (struct otf_list): Delete it.
14427 (otf_list): Make it a lisp variable.
14428 (otf_open): Use lispy otf_list.
14429 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14430 (check_otf_features): New function.
14431 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14432 New functions.
14433 (font_drive_otf): New function merging font_otf_gsub and
14434 font_otf_gpos.
14435 (font_open_for_lface): New arg spec. Change argument order.
14436 (font_load_for_face): Adjust for the change of font_open_for_lface.
14437 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14438 Ffont_otf_gpos.
14439 (syms_of_font): Staticpro otf_list. Delete defsubr of
14440 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14441
14442 * xfaces.c (set_font_frame_param): Adjust for the change of
14443 font_open_for_lface.
14444
14445 * font.h (font_open_for_lface): Adjust prototype.
14446 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14447 member otf_drive.
14448 (font_otf_gsub, font_otf_gpos): Delete externs.
14449 (font_drive_otf): Extern it.
14450
144512008-02-01 Kenichi Handa <handa@m17n.org>
14452
14453 * font.c (font_at): If the window W is not on a window system,
14454 return Qnil.
14455
14456 * coding.c (produce_chars, encode_coding): Don't call
14457 insert_from_gap if no characters to produce.
14458
144592008-02-01 Kenichi Handa <handa@m17n.org>
14460
14461 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14462 Fclear_face_cache.
14463
14464 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14465
144662008-02-01 Miles Bader <miles@gnu.org>
14467
14468 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14469 Parse "--disable-font-backend" option.
14470 (standard_args): Add "--disable-font-backend" option.
14471
144722008-02-01 Kenichi Handa <handa@m17n.org>
14473
14474 * fontset.c (fontset_find_font): New function.
14475 (fontset_font): Use fontset_find_font.
14476 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14477 Register the specified font for all Latin characters.
14478 (new_fontset_from_font): Register the specified font for all Latin
14479 characters.
14480 (dump_fontset): For a realized fontset, include the base fontset
14481 name in the returned vector.
14482
144832008-02-01 Kenichi Handa <handa@m17n.org>
14484
14485 * character.h (CHAR_STRING): Cast C to unsigned on calling
14486 char_string.
14487
14488 * character.c (char_string): Type of arg C changed to unsigned.
14489 Signal an error if C is an invalid character code.
14490
14491 * editfns.c (general_insert_function, Fchar_to_string):
14492 Use CHARACTERP, not INTEGERP.
14493
144942008-02-01 Kenichi Handa <handa@m17n.org>
14495
14496 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14497 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14498
14499 * regex.c (analyse_first): Fix for multibyte characters in "case
14500 charset:" and "case categoryspec:".
14501
145022008-02-01 Andreas Schwab <schwab@suse.de>
14503
14504 * Makefile.in (LIBES): Move standard libraries to the end.
14505
145062008-02-01 Kenichi Handa <handa@m17n.org>
14507
14508 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14509 nonzero, don't shrink the buffer nextb.
14510
14511 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14512
14513 * coding.c (coding_alloc_by_making_gap): New arg offset.
14514 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14515 offset.
14516 (decode_coding_iso_2022): Update coding->safe_charsets.
14517 (decode_coding_gap): Temporarily set
14518 current_buffer->text->inhibit_shrinking to 1.
14519
145202008-02-01 Kenichi Handa <handa@m17n.org>
14521
14522 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14523 indexing into elements of s->cmp and s->char2b.
14524
145252008-02-01 Juanma Barranquero <lekktu@gmail.com>
14526
14527 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14528
145292008-02-01 Kenichi Handa <handa@m17n.org>
14530
14531 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14532 target_multibyte instead of multibyte.
14533 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14534 (bcmp_translate): Change the argument name from multibyte to
14535 target_multibyte.
14536
145372008-02-01 Kenichi Handa <handa@m17n.org>
14538
14539 These changes are to compile a regexp into a pattern that can be
14540 used both for multibyte and unibyte targets.
14541
14542 * Makefile.in (search.o): Depend on charset.h.
14543
14544 * character.c (multibyte_char_to_unibyte_safe): New function.
14545
14546 * search.c: Include "charset.h".
14547 (compile_pattern_1): Delete argument multibyte. Don't set
14548 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14549 (compile_pattern): Don't compare cp->buf.target_multibyte.
14550 Compare cp->buf.charset_unibyte.
14551 (compile_pattern): Set cp->buf.target_multibyte.
14552
14553 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14554
14555 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14556
14557 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14558 multibyte. Change callers.
14559 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14560 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14561 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14562 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14563 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14564 (regex_compile): Make the compiled pattern usable both for
14565 multibyte and unibyte targets.
14566 (analyse_first): Make the fastmap usable both for multibyte and
14567 unibyte targets.
14568 (TRANSLATE_VIA_MULTIBYTE): Delete.
14569 (re_match_2_internal): Pay attention to the case that the
14570 multibyteness of bufp and target may be different.
14571
145722008-02-01 Kenichi Handa <handa@m17n.org>
14573
14574 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14575 empty box occupy at least one column width.
14576
145772008-02-01 Miles Bader <miles@gnu.org>
14578
14579 * Makefile.in: Remove redundant HAVE_XFT clause.
14580
145812008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14584
145852008-02-01 Kenichi Handa <handa@m17n.org>
14586
14587 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14588 being nil.
14589
145902008-02-01 Kenichi Handa <handa@m17n.org>
14591
14592 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14593
145942008-02-01 Kenichi Handa <handa@m17n.org>
14595
14596 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14597
145982008-02-01 Kenichi Handa <handa@m17n.org>
14599
14600 * search.c (simple_search): Fix previous change.
14601
146022008-02-01 Kenichi Handa <handa@m17n.org>
14603
14604 * xftfont.c (ftfont_font_format): Extern declaration.
14605
14606 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14607
14608 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14609 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14610
14611 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14612 (ftfont_font_format): Fix previous change.
14613
14614 * font.h (Ffont_xlfd_name): EXFUN it.
14615
14616 * font.c (font_parse_xlfd): Fix the array size of `f'.
14617 (register_font_driver): Use EQ to compare driver->type.
14618
14619 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14620 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14621 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14622
146232008-02-01 Kenichi Handa <handa@m17n.org>
14624
14625 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14626 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14627
146282008-02-01 Kenichi Handa <handa@m17n.org>
14629
14630 * xfont.c (xfont_open): Set font->format.
14631
14632 * xftfont.c (xftfont_open): Set font->format.
14633
14634 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14635 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14636 (ftfont_open): Set font->format.
14637 (ftfont_font_format): New function.
14638
14639 * font.h (struct font): New member format.
14640
14641 * font.c (Qopentype): New variable.
14642 (syms_of_font): Defsym it.
14643 (Fquery_font): Change the format of the last element of the return
14644 value.
14645
146462008-02-01 Kenichi Handa <handa@m17n.org>
14647
14648 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14649 last resort.
14650
146512008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * coding.c (detect_coding_charset): Fix detection of multi-byte
14654 charset.
14655
146562008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14657
14658 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14659
146602008-02-01 Kenichi Handa <handa@m17n.org>
14661
14662 * xdisp.c (get_next_display_element): Set it->face_id for the
14663 first component of a composition.
14664 (x_produce_glyphs): Check if the font is changed or not for composition.
14665
146662008-02-01 Kenichi Handa <handa@m17n.org>
14667
14668 * fontset.c (Qlatin): New variable.
14669 (syms_of_fontset): Define it as a lisp symbol.
14670 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14671
146722008-02-01 Kenichi Handa <handa@m17n.org>
14673
14674 * font.c (font_unparse_fcname): Pay attention to the case that
14675 some of font property is a null string.
14676
146772008-02-01 Kenichi Handa <handa@m17n.org>
14678
14679 * term.c: Include "composite.h".
14680 (encode_terminal_code): Output all components of composition.
14681 Check the size of encode_terminal_src.
14682 (produce_glyphs): For composition, call produce_composite_glyph.
14683 (append_composite_glyph, produce_composite_glyph): New functions.
14684
14685 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14686 is not found, get font_info from the current ascii face.
14687
146882008-02-01 Kenichi Handa <handa@m17n.org>
14689
14690 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14691 buffer-file-name to Qnil before calling insert_from_buffer.
14692
14693 * font.c (font_unparse_fcname): Pay attention to the case that
14694 foundry is a null string.
14695
146962008-02-01 Kenichi Handa <handa@m17n.org>
14697
14698 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14699
14700 * font.c (Qunicode_sip): New variable.
14701 (syms_of_font): Declare it as a Lisp symbol.
14702
14703 * font.h (Qunicode_sip): Extern it.
14704
147052008-02-01 Kenichi Handa <handa@m17n.org>
14706
14707 * composite.c (get_composition_id): Pay attention to TAB component.
14708
14709 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14710 TAB. Adjust for the change of s->char2b which always points to
14711 the first element of allocated memory.
14712
14713 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14714
14715 * xdisp.c (handle_composition_prop): Set it->c to the first
14716 non-TAB component.
14717 (fill_composite_glyph_string): Change argument.
14718 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14719 (x_produce_glyphs): Fix handling of left/right padding.
14720
147212008-02-01 Kenichi Handa <handa@m17n.org>
14722
14723 * coding.c (detect_coding_system): Fix for handling off
14724 inhibit_iso_escape_detection. Fix for the case that no coding
14725 system is defined for a specific coding category.
14726
147272008-02-01 Kenichi Handa <handa@m17n.org>
14728
14729 * font.c (font_matching_entity): Delete unused local var.
14730
14731 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14732 opening a font.
14733
14734 * fileio.c (Finsert_file_contents): On recovering a file, assume
14735 Unix-like eol.
14736 (choose_write_coding_system): On auto-saving a file, force
14737 Unix-like eol.
14738
14739 * coding.c (setup_coding_system): Fix setting of
14740 coding->common_flags based on eol_type.
14741 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14742 inherit from it.
14743
147442008-02-01 Kenichi Handa <handa@m17n.org>
14745
14746 * alloc.c (NSTATICS): Increas to 0x600.
14747
147482008-02-01 Kenichi Handa <handa@m17n.org>
14749
14750 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14751 (ftfont_list): Don't check :name property.
14752 (ftfont_match): New function.
14753 (ftfont_pattern_entity): If the pattern doesn't contain
14754 FC_SPACING, don't assume FC_MONO.
14755
14756 * font.h (struct font_driver): New member `match'.
14757 (font_update_drivers): Adjust prototype.
14758
14759 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14760 property of FONT.
14761 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14762 them unconditionally.
14763 (font_matching_entity): New function.
14764 (font_open_by_name): Try font_matching_entity if exact match is
14765 not found.
14766 (font_update_drivers): Delete the arg FONT. Return a list of
14767 actually used backends. Don't free faces, font caches here.
14768 Don't store data in frame parameters. Don't call x_set_font.
14769 (Ffont_spec): Store :name property as is.
14770 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14771 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14772 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14773 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14774 Call font->driver->otf_gsub instead of font_otf_gsub.
14775
14776 * frame.c (x_set_font_backend): Do more works that were done in
14777 font_update_drivers before.
14778
14779 * xfont.c (xfont_match): New function.
14780 (xfont_driver): Set xfont_driver.match to xfont_match.
14781 (xfont_draw): Set font in GC if necessary.
14782
14783 * ftxfont.c (ftxfont_match): New function.
14784 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14785
14786 * xftfont.c (xftfont_match): New function.
14787 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14788
147892008-02-01 Kenichi Handa <handa@m17n.org>
14790
14791 * font.h (struct font): New member scalable.
14792 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14793 (font_otf_gsub): Adjust prototype.
14794
14795 * font.c (font_otf_capability): Fix handling of the default langsys.
14796 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14797 Check the contents of SPEC.
14798 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14799 (check_gstring): New function.
14800 (REPLACEMENT_CHARACTER): New macro.
14801 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14802 glyph codes of GSTRING.
14803 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14804 (font_prepare_composition): Set cmp->glyph_len.
14805 (font_open_entity): Set font->scalable.
14806 (Ffont_get): Handle :otf property.
14807 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14808 functions.
14809 (Fquery_font): Use font->font.full_name.
14810 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14811 Sfont_otf_alternates.
14812
14813 * ftfont.c (ftfont_open): Set font->font.full_name and
14814 font->font.name properly. Fix calculation of font->font.height
14815 and font->min_width.
14816
14817 * ftxfont.c (ftxfont_create_gcs): New function.
14818 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14819 (ftxfont_draw_backgrond): Fix filling region.
14820 (ftxfont_default_fid): New function.
14821 (ftxfont_open): Set xfont->fid to the return value of
14822 ftxfont_default_fid.
14823 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14824 (ftxfont_done_face): Free only GCs that are created by
14825 ftxfont_create_gcs.
14826 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14827
14828 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14829 Clip to src->width, etc (not src->clip_XXX).
14830
14831 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14832 FontBackend frame parameter.
14833
148342008-02-01 Kenichi Handa <handa@m17n.org>
14835
14836 * font.h (struct font_driver_list): New member `on'.
14837 (Fclear_font_cache): EXFUN it.
14838 (font_update_drivers): Extern it.
14839
14840 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14841 (font_list_entities): Check driver_list->on.
14842 (register_font_driver): Initalize `on' member to 0.
14843 (font_update_drivers): New function.
14844 (Fclear_font_cache): Check driver_list->on.
14845
14846 * frame.h (Qfont_backend): Extern it.
14847 (x_set_font_backend): Extern it.
14848
14849 * frame.c (Qfont_backend): New variable.
14850 (frame_parms): New element for font-backend.
14851 (x_set_font_backend): New function.
14852
14853 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14854 FontBackend frame parameter.
14855 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14856 x_set_font_backend.
14857
14858 * xfont.c (xfont_list): Don't try listing by :name property if the
14859 name is not for XLFD.
14860
148612008-02-01 Kenichi Handa <handa@m17n.org>
14862
14863 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14864 (LGLYPH_SET_TO): New macros.
14865 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14866 element of G is vector or not.
14867 (font_at): Extern it.
14868
14869 * font.c: Include window.h.
14870 (font_lispy_object): New function.
14871 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14872 end of valid glyph.
14873 (font_close_object): Fix getting (struct font *).
14874 (font_at): New function.
14875 (Ffont_get): If FONT is a font-object, get entity from it.
14876 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14877 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14878 range check.
14879 (Ffont_at): New function.
14880 (syms_of_font): Defsubr Sfont_at.
14881
14882 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14883 before the entry for Qcomposition.
14884 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14885 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14886 the font in gstring.
14887 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14888 LGLYPH_FORM (g) to detect the end of valid glyph.
14889 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14890 we are composing with gstring.
14891
14892 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14893 Check if adjustment is vector or not.
14894
14895 * Makefile.in (font.o): Make it depends on window.h.
14896
148972008-02-01 Kenichi Handa <handa@m17n.org>
14898
14899 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14900 adjustment is vector or not.
14901
149022008-02-01 Miles Bader <miles@gnu.org>
14903
14904 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14905
149062008-02-01 Kenichi Handa <handa@m17n.org>
14907
14908 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14909 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14910 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14911
14912 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14913 (DEVICE_DELTA): Fix typo.
14914 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14915 LGLYPH format.
14916
14917 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14918 the change of LGLYPH format.
14919
149202008-02-01 Kenichi Handa <handa@m17n.org>
14921
14922 * ftfont.c (ftfont_list): Fix typo.
14923 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14924
149252008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14926
14927 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14928
14929 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14930 xftface_info is non-NULL.
14931
149322008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14933
14934 * ftfont.c (ftfont_list): Move misplaced #endif.
14935
149362008-02-01 Kenichi Handa <handa@m17n.org>
14937
14938 * ftfont.c (ftfont_list): Pay attention to the case that
14939 FC_CAPABILITY is not defined.
14940
149412008-02-01 Kenichi Handa <handa@m17n.org>
14942
14943 * xftfont.c (xftfont_open): Set charset related members to -1.
14944
14945 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14946 QCname.
14947 (ftfont_open): Set charset related members to -1.
14948
14949 * fontset.c (Votf_script_alist): New variable.
14950 (syms_of_fontset): Initialize it.
14951 (fontset_font): Delete unused variable.
14952
14953 * fontset.h (Votf_script_alist): Extern it.
14954
14955 * font.c (font_find_for_lface): Optimize code.
14956
14957 * font.h (font_close_object, font_merge_old_spec): Extern them.
14958
149592008-02-01 Kenichi Handa <handa@m17n.org>
14960
14961 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14962 (syms_of_font): Initialize them.
14963 (font_pixel_size): Allow float value in dpi.
14964 (font_prop_validate_type): Delete.
14965 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14966 Change caller.
14967 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14968 (font_prop_validate_extra): Delete.
14969 (font_prop_validate_spacing): New function.
14970 (font_property_table): Add elements for all known properties.
14971 (get_font_prop_index): Rename from check_font_prop_name. New
14972 argument FROM. Change caller.
14973 (font_prop_validate): Validate all known properties.
14974 (font_put_extra): Delete argument force. Change caller.
14975 (font_expand_wildcards): Make it static. Fix the way of shrinking
14976 the possible range.
14977 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14978 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14979 Change caller.
14980 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14981 (font_parse_fcname): Delete argument merge. Fix parsing of point
14982 size. Don't validate properties values here. Change caller.
14983 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14984 (font_open_by_name): Delete unused variable.
14985 (Ffont_spec): Likewise. Validate property values.
14986 (Ffont_match_p): New function.
14987
14988 * font.h (QCscalable): Extern it.
14989 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14990
14991 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14992
14993 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14994 (xfont_list_pattern): New function.
14995 (xfont_list): Use xfont_list_pattern.
14996
149972008-02-01 Kenichi Handa <handa@m17n.org>
14998
14999 * font.h (Flist_fonts): EXFUN it.
15000
150012008-02-01 Jason Rumney <jasonr@gnu.org>
15002
15003 * w32term.c (w32_initialize): Add back smoothing_type and
15004 smoothing_enabled definitions.
15005
150062008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15009 s->face->font on determining underline position.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15014 (font_has_char): Accept font-object too.
15015 (font_find_for_lface): Try at first with a size specified in face.
15016
150172008-02-01 Kenichi Handa <handa@m17n.org>
15018
15019 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15020 font_open_by_name.
15021
150222008-02-01 Kenichi Handa <handa@m17n.org>
15023
15024 * font.h (QCspacing, QCdpi): Extern them.
15025 (enum font_spacing): New enum.
15026 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15027
15028 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15029 (QCspacing, QCdpi): New variables.
15030 (syms_of_font): Initialize them.
15031 (font_pixel_size): New function.
15032 (font_put_extra): New function.
15033 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15034 in FONT_EXTRA.
15035 (font_parse_fcname): Handle enumerated values (e.g. bold).
15036 Fix handling font size. Add QCname property that contains only
15037 unknown properties.
15038 (font_score): Change argument. Change caller. Pay attention to
15039 FONT_PIXEL_SIZE_QUANTUM.
15040 (font_sort_entites, font_list_entities, font_find_for_lface)
15041 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15042 (Ffont_spec): Add QCname property that contains only unknown properties.
15043
15044 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15045 include weight in listing pattern, instead check weight of each
15046 listed font. Don't include scalable in pattern. Pay attention to
15047 FONT_PIXEL_SIZE_QUANTUM.
15048
150492008-02-01 Kenichi Handa <handa@m17n.org>
15050
15051 * font.c (font_parse_fcname): Fix parsing of point-size.
15052 (font_unparse_fcname): Produce symbolic names for style properties.
15053 (font_list_entities): Handle float size correctly.
15054 (font_open_by_name): Prefer `normal' property values if the name
15055 doesn't specify them.
15056
15057 * fontset.c (Finternal_char_font): Use font_get_name, not
15058 Ffont_xlfd_name.
15059
15060 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15061 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15062 pattern. Don't force scalable.
15063
15064 * xftfont.c (xftfont_open): For generating a name, start from
15065 96-byte buffer.
15066
150672008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15068
15069 * frame.h (x_new_fontset2): Fix prototype.
15070
150712008-02-01 Kenichi Handa <handa@m17n.org>
15072
15073 * font.h (struct font_driver): Delete member parse_name.
15074 (font_match_p, font_get_spec, font_parse_fcname)
15075 (font_unparse_fcname): Extern them.
15076 (font_get_name): Adjust prototype.
15077
15078 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15079 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15080 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15081 unnecessary checks for weight, slant, and swidth.
15082 (font_parse_fcname): New function.
15083 (font_unparse_fcname): New function.
15084 (font_parse_name): New function.
15085 (font_match_p): New function.
15086 (font_get_name): Change return value to Lisp string.
15087 (font_get_spec): New function.
15088 (Qunspecified, Qignore_defface): Don't extern them.
15089 (font_find_for_lface): Assume that LFACE is fully specified.
15090 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15091 object, use it for FACE.
15092 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15093 driver->parse_name.
15094 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15095
15096 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15097 prototype.
15098
15099 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15100 argument F. Don't call Fnew_fontset. Instead, directly call
15101 make_fontset.
15102
15103 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15104
15105 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15106 of x_new_fontset2.
15107
15108 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15109 (Qsans__serif): New variables.
15110 (ftfont_generic_family_list): New variable.
15111 (syms_of_ftfont): Initialize the above variables.
15112 (ftfont_pattern_entity): Delete argument NAME.
15113 (ftfont_list_generic_family): New function.
15114 (ftfont_parse_name): Delete this function.
15115 (ftfont_list): Try generic family only when FcFontList found no font.
15116 (ftfont_list_family): Fix args to FcObjectSetBuild.
15117
15118 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15119 object in attrs[LFACE_FONT_INDEX].
15120 (set_lface_from_font_name): Cancel all changes for font-backend.
15121 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15122 function.
15123 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15124 font object in QCfont attribute.
15125 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15126 (realize_default_face) [USE_FONT_BACKEND]: Call
15127 set_lface_from_font_and_fontset.
15128
15129 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15130 "fixed", and signal error here if no suitable font was found.
15131
15132 * xfont.c (xfont_parse_name): Delete this function.
15133
15134 * xftfont.c (xftfont_open): Change coding style of error
15135 handling. Generate fontconfig's fontname pattern.
15136
15137 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15138 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15139
15140 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15141 Both args FONTSET and FONT_OBJECT must be existing ones.
15142
151432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15144
15145 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15146
151472008-02-01 Kenichi Handa <handa@m17n.org>
15148
15149 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15150
15151 * font.h (struct font): Fix typo.
15152
15153 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15154 XLFD_XXX_INDEX.
15155 (enum xlfd_field_mask): New enum.
15156 (intern_font_field): Changed argument. Change caller. If digits
15157 are followed by non-digits, return a symbol.
15158 (font_expand_wildcards): New function.
15159 (font_parse_xlfd): Fix wildcard handling.
15160 (Ffont_spec): If :name is specified, reflect the info in the other
15161 properties.
15162
15163 * ftfont.c (ftfont_pattern_entity): Fix typo.
15164 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15165 locale.
15166
151672008-02-01 Kenichi Handa <handa@m17n.org>
15168
15169 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15170
15171 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15172 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15173 registry doesn't specify encoding part.
15174 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15175 (font_open_by_name): At first try parsing the name.
15176 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15177 as Lisp symbols.
15178
15179 * fontset.c (reorder_font_vector): Pay attention to the case that
15180 the 3rd element of font_def is nil.
15181 (fontset_font): For the default fontset, append one more fontset
15182 elements for a script-based font specification. Don't add script
15183 attribute on finding a font.
15184 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15185 font name.
15186 (fontset_ascii_font): If a font can't be opened, return nil.
15187
15188 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15189 (ftfont_pattern_entity): New function.
15190 (ftfont_get_cache): Assume that freetype_font_cache is already
15191 initialized.
15192 (ftfont_list): Handle the case that a file is specified in font
15193 name. Use ftfont_pattern_entity to generate entities.
15194 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15195 (syms_of_ftfont): Initialize freetype_font_cache.
15196
15197 * xftfont.c (xftfont_open): Make the font name fontconfig's
15198 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15199 (xftfont_close): Free font->font.name if not NULL.
15200
15201 * xfont.c (xfont_list): If script is specified for a font, return
15202 null_vector.
15203 (xfont_list_family): Declare argument type.
15204
15205 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15206 name, set LFACE_FONT (lface) to nil.
15207
15208 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15209 return Qnil.
15210
152112008-02-01 Kenichi Handa <handa@m17n.org>
15212
15213 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15214 (standard_args): Add "-enable-font-backend".
15215
152162008-02-01 Kenichi Handa <handa@m17n.org>
15217
15218 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15219 (struct xftdraw_list, xftdraw_list): Delete them.
15220 (register_xftdraw, check_xftdraw): Delete them.
15221 (xftfont_prepare_face): Don't call register_xftdraw.
15222 (xftfont_done_face): Don't call check_xftdraw.
15223 (xftfont_draw): Get background color only when with_background is
15224 nonzero.
15225
15226 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15227
152282008-02-01 Kenichi Handa <handa@m17n.org>
15229
15230 These changes are for the new font handling codes.
15231
15232 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15233 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15234 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15235 (FONTSRC, FONTOBJ): New variables.
15236 (obj): Add $(FONTOBJ).
15237 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15238 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15239 @LIBOTF_LIBS@.
15240 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15241 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15242
15243 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15244
15245 * character.h (Vscript_representative_chars): Extern it.
15246
15247 * character.c (Vscript_representative_chars): New variable.
15248 (syms_of_character): Declare it as a Lisp variable.
15249
15250 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15251 enable_font_backend is nonzero, accept the composition method
15252 COMPOSITION_WITH_GLYPH_STRING.
15253
15254 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15255 enumeration COMPOSITION_WITH_GLYPH_STRING.
15256
15257 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15258 members clip_x, clip_y, clip_width, and clip_height.
15259 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15260
15261 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15262 --enable-font-backend. Call syms_of_font.
15263
15264 * fns.c (assoc_no_quit): New function.
15265
15266 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15267 (face_for_font, new_fontset_from_font)
15268 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15269
15270 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15271 (fontset_font, fontset_ascii, face_for_char)
15272 (make_fontset_for_ascii_face, Ffont_info)
15273 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15274 is nonzero, use font-backend mechanism.
15275 (find_font_encoding): Make it non-static.
15276 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15277 New functions.
15278
15279 * frame.h (struct frame): New members resx and resy.
15280 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15281 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15282
15283 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15284 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15285
15286 * lisp.h (assoc_no_quit): Extern it.
15287
15288 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15289 Through out the file, use FONT_INFO_FROM_FACE instead of
15290 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15291 rif->per_char_metric.
15292 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15293 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15294 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15295 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15296 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15297 nonzero, use font-backend mechanism.
15298 (get_per_char_metric): New function.
15299
15300 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15301 (set_lface_from_font_name)
15302 (set_font_frame_param, free_realized_face)
15303 (prepare_face_for_display, clear_face_gcs)
15304 (Finternal_set_font_selection_order, realize_x_face)
15305 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15306 font-backend mechanism.
15307 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15308 (load_face_font) [USE_FONT_BACKEND]: Abort.
15309 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15310 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15311
15312 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15313 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15314 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15315 nonzero, register all available font drivers. Call
15316 x_default_font_parameter for deciding a font.
15317 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15318
15319 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15320 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15321 (x_set_glyph_string_clipping_exactly)
15322 (x_compute_glyph_string_overhangs)
15323 (x_draw_glyph_string_foreground)
15324 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15325 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15326 enable_font_backend is nonzero, use font-backend mechanism.
15327 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15328
153292008-02-01 Kenichi Handa <handa@m17n.org>
15330
15331 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15332 system_eol_type.
15333 (syms_of_coding): Initialize system_eol_type.
15334
15335 * process.c (Fset_process_coding_system): Inherit system's eol
15336 format if necessary.
15337
153382008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15339
15340 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15341
153422008-02-01 Kenichi Handa <handa@m17n.org>
15343
15344 * coding.c (decode_eol): Pay attention to buffer relocation in
15345 del_range_2.
15346 (decode_coding): Call decode_eol before restoring undo_list.
15347
153482008-02-01 Kenichi Handa <handa@m17n.org>
15349
15350 * charset.c (Fdefine_charset_internal): Fix setting of
15351 emacs_mule_bytes.
15352
153532008-02-01 Kenichi Handa <handa@m17n.org>
15354
15355 * keyboard.c (read_char): Check if C is a character or not before
15356 looking up Vkeyboard_translate_table.
15357
153582008-02-01 Kenichi Handa <handa@m17n.org>
15359
15360 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15361 condition to terminate the loop.
15362
153632008-02-01 Kenichi Handa <handa@m17n.org>
15364
15365 * coding.c (produce_composition): Compare charbuf[i] instead of
15366 args[i] against 0.
15367 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15368
153692008-02-01 Kenichi Handa <handa@m17n.org>
15370
15371 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15372 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15373 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15374 detect_coding.
15375 (emacs_mule_char): Handle old style (Emacs 20) component character
15376 of a composition.
15377 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15378 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15379 composition rule.
15380 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15381
153822008-02-01 Kenichi Handa <handa@m17n.org>
15383
15384 * coding.c (encode_coding_ccl): Allocate destination dynamically
15385 when necessary.
15386
153872008-02-01 Kenichi Handa <handa@m17n.org>
15388
15389 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15390 the loop. When quitted, show a proper error message.
15391
153922008-02-01 Kenichi Handa <handa@m17n.org>
15393
15394 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15395 src->clip_head and src->clip_tail temporarily instead of src->hl.
15396
15397 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15398 character sequence.
15399 (Fccl_execute_on_string): Use ASET, not XSET.
15400
154012008-02-01 Kenichi Handa <handa@m17n.org>
15402
15403 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15404
154052008-02-01 Kenichi Handa <handa@m17n.org>
15406
15407 * coding.c (decode_coding): Fix the condition of terminating the
15408 decoding loop.
15409
154102008-02-01 Kenichi Handa <handa@m17n.org>
15411
15412 * data.c (Faset): On setting a character bigger than 255 in a
15413 unibyte string, signal an error instead of make the string multibyte.
15414
154152008-02-01 Kenichi Handa <handa@m17n.org>
15416
15417 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15418 made by a mapping table.
15419
154202008-02-01 Kenichi Handa <handa@m17n.org>
15421
15422 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15423 not.
15424 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15425 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15426
15427 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15428 s->face is NULL or not.
15429
154302008-02-01 Kenichi Handa <handa@m17n.org>
15431
15432 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15433 (x_draw_glyph_string): Fix drawing of right_overhang and
15434 left_overhang around/on cursor.
15435
15436 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15437
154382008-02-01 Kenichi Handa <handa@m17n.org>
15439
15440 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15441
154422008-02-01 Kenichi Handa <handa@m17n.org>
15443
15444 * coding.c (Fdefine_coding_system_internal)
15445 (Fdefine_coding_system_alias): Avoid a duplicated element in
15446 Vcoding_system_alist.
15447
154482008-02-01 Kenichi Handa <handa@m17n.org>
15449
15450 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15451
15452 * coding.c (Qcoding_system_define_form): New variable.
15453 (syms_of_coding): Intern and staticpro it.
15454 (Fcoding_system_p): Check Qcoding_system_define_form.
15455 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15456
15457 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15458 Fcoding_system_p.
15459 (CHECK_CODING_SYSTEM): If ID is not available, call
15460 Fcheck_coding_system.
15461 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15462 Try also Fcheck_coding_system.
15463
154642008-02-01 Kenichi Handa <handa@m17n.org>
15465
15466 * coding.c (code_conversion_restore): GCPRO arg.
15467
154682008-02-01 Kenichi Handa <handa@m17n.org>
15469
15470 * character.c (lisp_string_width): Check multibyteness of STRING.
15471
154722008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15473
15474 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15475 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15476 (decode_mac_font_name): Use decode_coding_c_string instead of
15477 decode_coding.
15478 (x_load_font): Initialize fontp->fontset to -1. Set
15479 fontp->encoding_type.
15480
154812008-02-01 Kenichi Handa <handa@m17n.org>
15482
15483 * search.c (search_buffer): Give up BM search on case-fold-search
15484 if one of a target character has a case-equivalence of different
15485 byte length even if that target charcter is an ASCII.
15486 (simple_search): Fix calculation of byte length of matched text.
15487 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15488
154892008-02-01 Kenichi Handa <handa@m17n.org>
15490
15491 * coding.c (decode_coding): Fix handling of invalid bytes.
15492
154932008-02-01 Kenichi Handa <handa@m17n.org>
15494
15495 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15496 Unicode characters.
15497
154982008-02-01 Kenichi Handa <handa@m17n.org>
15499
15500 * coding.c (encode_coding_object): If a pre-write-conversion
15501 function makes a new buffer, kill it.
15502
155032008-02-01 Kenichi Handa <handa@m17n.org>
15504
15505 * coding.c (QCascii_compatible_p): New variable.
15506 (syms_of_coding): Initialize it.
15507 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15508 calling string_char.
15509 (record_conversion_result): Add `default:' case.
15510 (coding_charset_list): Delete unused variable `coding_type'.
15511 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15512 property in the plist of the coding system.
15513 (Fcoding_system_put): Check QCascii_compatible_p.
15514
155152008-02-01 Miles Bader <miles@gnu.org>
15516
15517 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15518 removed calculation of frame `f', as it's now used.
15519
155202008-02-01 Kenichi Handa <handa@m17n.org>
15521
15522 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15523 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15524 (UNIDATA): New variable.
15525 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15526 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15527 $(RUN_TEMACS) unconditionally.
15528
155292008-02-01 Kenichi Handa <handa@m17n.org>
15530
15531 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15532 (admindir): New variable.
15533 ($(lispsource)international/charprop.el): New target.
15534
155352008-02-01 Miles Bader <miles@gnu.org>
15536
15537 * character.c (chars-in-region): Remove obsolete function.
15538 (syms_of_character): Remove its initialization.
15539
155402008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15541
15542 * w32select.c (validate_coding_system)
15543 (setup_windows_coding_system): New functions.
15544 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15545 setup_windows_coding_system.
15546 (setup_config, Fw32_get_clipboard_data): Use
15547 validate_coding_system.
15548 (Fx_selection_exists): Move call to setup_config to a place
15549 where signals are allowed.
15550
15551 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15552 (Fcheck_coding_system): Add declarations.
15553
155542008-02-01 Kenichi Handa <handa@m17n.org>
15555
15556 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15557
155582008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15559
15560 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15561 string as the second argument for x_new_fontset.
15562
155632008-02-01 Kenichi Handa <handa@m17n.org>
15564
15565 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15566 (encode_coding_object): Use safe_call instead of call2.
15567
155682008-02-01 Kenichi Handa <handa@m17n.org>
15569
15570 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15571
15572 * Makefile.in (lisp): Include charprop.el.
15573
155742008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15575
15576 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15577 Not sure if it's unnecessary.
15578
155792008-02-01 Steven Tamm <steventamm@mac.com>
15580
15581 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15582 some possibly unnecessary fontset checking code that crashed
15583 when creating a new frame.
15584
155852008-02-01 Kenichi Handa <handa@m17n.org>
15586
15587 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15588 lookup_face.
15589
15590 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15591
15592 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15593
155942008-02-01 Kenichi Handa <handa@m17n.org>
15595
15596 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15597 (coding_charset_list): New function.
15598
15599 * coding.h (coding_charset_list): Extern it.
15600
156012008-02-01 Kenichi Handa <handa@m17n.org>
15602
15603 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15604 concatenation of family and registry.
15605
156062008-02-01 Kenichi Handa <handa@m17n.org>
15607
15608 * character.h (BYTE8_STRING): Fix typo.
15609
15610 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15611 string to multibyte (sync to HEAD).
15612
15613 * casefiddle.c (casify_region): Handle changes in byte-length
15614 using replace_range_2 (sync to HEAD).
15615
156162008-02-01 Andreas Schwab <schwab@suse.de>
15617
15618 * chartab.c (map_char_table): GCPRO table and arg.
15619
156202008-02-01 Kenichi Handa <handa@m17n.org>
15621
15622 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15623 already at limit.
15624
156252008-02-01 Kenichi Handa <handa@m17n.org>
15626
15627 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15628 instead of fast_c_string_match_ignore_case.
15629 (find_font_encoding): Change argument to Lisp_Object. Use
15630 fast_string_match_ignore_case instead of
15631 fast_c_string_match_ignore_case. Change caller.
15632
156332008-02-01 Kenichi Handa <handa@m17n.org>
15634
15635 * xdisp.c (get_next_display_element): In unibyte case, decide to
15636 display in octal form by checking a character by
15637 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15638
15639 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15640
15641 * character.c (unibyte_has_multibyte_table): New variable.
15642
15643 * character.h (unibyte_has_multibyte_table): Extern it.
15644 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15645
156462008-02-01 Kenichi Handa <handa@m17n.org>
15647
15648 * coding.c (encode_coding_iso_2022): Fix handling of charset
15649 annotation.
15650
156512008-02-01 Kenichi Handa <handa@m17n.org>
15652
15653 * coding.c (setup_coding_system): If coding_system is nil, use
15654 Qundecided.
15655 (Fterminal_coding_system): Return nil if terminal coding system is
15656 `undecided'.
15657 (syms_of_coding): Define coding-system `undecided' here. Setup
15658 terminal_coding as `undecided'.
15659
156602008-02-01 Kenichi Handa <handa@m17n.org>
15661
15662 * xdisp.c (message_dolog, set_message_1): Call
15663 unibyte_char_to_multibyte with arg type int.
15664
15665 * lread.c (read1): Fix reading of a char-table.
15666
15667 * print.c (print_object): Include sub char-table in circularities
15668 detection.
15669
156702008-02-01 Kenichi Handa <handa@m17n.org>
15671
15672 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15673 Append the found sequences in car of ARGS instead of prepending.
15674
156752008-02-01 Kenichi Handa <handa@m17n.org>
15676
15677 * fileio.c (report_file_error): Make a unibyte string from
15678 strerror (errorno).
15679 (Fsubstitute_in_file_name): Fix the arg to
15680 unibyte_char_to_multibyte. It is evaluated twice.
15681
156822008-02-01 Kenichi Handa <handa@m17n.org>
15683
15684 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15685
156862008-02-01 Kenichi Handa <handa@m17n.org>
15687
15688 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15689 BOM is not found.
15690 (detect_coding, detect_coding_system): Optimization for ISO-2022
15691 when no 8-bit data is found.
15692
156932008-02-01 Jason Rumney <jasonr@gnu.org>
15694
15695 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15696
156972008-02-01 Kenichi Handa <handa@m17n.org>
15698
15699 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15700 CHARS.
15701
157022008-02-01 Steven Tamm <steventamm@mac.com>
15703
15704 * macterm.c (mac_encode_char): Add charset argument and update
15705 to use encoding_type.
15706 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15707 switch to pure fontset.
15708 (decode_mac_font_name): Temporarily remove decoding.
15709 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15710 (x_load_font): Temporarily remove encoding.
15711
157122008-02-01 Kenichi Handa <handa@m17n.org>
15713
15714 * xfaces.c (Fface_font): If frame is not on a window system,
15715 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15716 refer to face->font.
15717 (split_font_name_into_vector, build_font_name_from_vector)
15718 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15719 when HAVE_WINDOW_SYSTEM is defined.
15720
157212008-02-01 Kenichi Handa <handa@m17n.org>
15722
15723 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15724 (x_produce_glyphs): Fix setting of members of cmp in case
15725 cmp->glyph_len is zero.
15726
15727 * fontset.c (Fset_fontset_font): Fix docstring.
15728 (Ffontset_info): Make it backward compatible. New arg ALL.
15729
157302008-02-01 Kim F. Storm <storm@cua.dk>
15731
15732 * process.c (read_process_output): Grow decoding_buf when needed;
15733 this could cause a crash in allocate_string and compact_small_strings.
15734
157352008-02-01 Kenichi Handa <handa@m17n.org>
15736
15737 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15738
157392008-02-01 Kenichi Handa <handa@m17n.org>
15740
15741 * coding.c (setup_coding_system): Set coding->common_flags
15742 correctly for raw-text.
15743 (consume_chars): On encoding unibyte text by raw-text, don't check
15744 multibyte form.
15745 (encode_coding): On encoding by raw-text, never use translation tables.
15746
15747 * fileio.c (e_write): Short cut for the case of no encoding.
15748
157492008-02-01 Kenichi Handa <handa@m17n.org>
15750
15751 * coding.c (detect_coding, detect_coding_system): Delete unused
15752 variables.
15753
157542008-02-01 Kenichi Handa <handa@m17n.org>
15755
15756 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15757 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15758
157592008-02-01 Kenichi Handa <handa@m17n.org>
15760
15761 * coding.c (Ffind_coding_systems_region_internal): Include
15762 raw-text and no-conversion in the result.
15763
157642008-02-01 Kenichi Handa <handa@m17n.org>
15765
15766 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15767 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15768 FONT_DEF.
15769 (font_def_arg, add_arg, from_arg, to_arg): New args.
15770 (set_fontset_font): Change argument.
15771 (Fset_fontset_font): Fix for the case that TARGET is a script
15772 name and charset name.
15773 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15774
157752008-02-01 Kenichi Handa <handa@m17n.org>
15776
15777 * fontset.c (fontset_font): Rename from fontset_face. Change return
15778 value.
15779 (face_suitable_for_char_p, face_for_char): Adjust for the change
15780 of fontset_font.
15781 (make_fontset_for_ascii_face): Fix setting of the fontset element
15782 for ASCII.
15783 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15784 to get a font name.
15785 (Ffontset_info): Adjust for the change of fontset_font.
15786
15787 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15788
15789 * character.h (LEADING_CODE_LATIN_1_MIN)
15790 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15791
157922008-02-01 Kenichi Handa <handa@m17n.org>
15793
15794 * editfns.c (check_translation): New function.
15795 (Ftranslate_region_internal): Handle M:N mapping.
15796
157972008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15800
158012008-02-01 Kenichi Handa <handa@m17n.org>
15802
15803 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15804 goto invalid_code.
15805 (decode_coding_iso_2022): Fix handling of invalid designation.
15806
15807 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15808 after calling code_conversion_save.
15809
158102008-02-01 Kenichi Handa <handa@m17n.org>
15811
15812 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15813
15814 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15815
15816 * fontset.c: Include "intervals.h".
15817 (fontset_face): Fix comparing of Lisp_Objects.
15818 (free_face_fontset, new_fontset_from_font_name): Fix
15819 Lisp_Object/int mixup.
15820
15821 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15822
15823 * coding.c: Add many prototypes for static functions.
15824 (get_translation_table): Allow max_lookup to be NULL.
15825 (decode_coding, Ffind_coding_systems_region_internal)
15826 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15827 get_translation_table with max_lookup NULL.
15828
158292008-02-01 Kenichi Handa <handa@m17n.org>
15830
15831 * coding.c (get_translation_table): Declare it as Lisp_Object.
15832 (LOOKUP_TRANSLATION_TABLE): New macro.
15833 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15834 instead of CHAR_TABLE_REF.
15835
158362008-02-01 Kenichi Handa <handa@m17n.org>
15837
15838 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15839 annotation data format.
15840 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15841 Change arguments FROM and TO to single argument NCHARS. Change caller.
15842 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15843 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15844 (decode_coding_ccl, decode_coding_charset): Pay attention to
15845 coding->charbuf_used.
15846 (get_translation): New function.
15847 (produce_chars): New arguments translation_table and last_block.
15848 Translate characters here. Return number of carryover chars.
15849 Change caller.
15850 (produce_composition): New argument pos. Change caller.
15851 Adjust for the change of annotation data format.
15852 (produce_charset, produce_annotation): Likewise.
15853 (decode_coding, encode_coding): Don't call translate_chars.
15854 (consume_chars): New arg translation_table. Change caller.
15855 (translate_chars): Delete.
15856 (syms_of_coding): Make translation-table's number of extra slots 2.
15857
158582008-02-01 Kenichi Handa <handa@m17n.org>
15859
15860 * search.c (simple_search): Fix setting this_pos_byte in backward
15861 search.
15862
15863 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15864 byte sequence.
15865 (detect_coding_ccl): Fix setting of the variable valids.
15866
158672008-02-01 Kenichi Handa <handa@m17n.org>
15868
15869 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15870
15871 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15872
15873 * editfns.c (Ftranslate_region_internal): Rename from
15874 Ftranslate_region. Accept a char-table in TABLE.
15875 (syms_of_editfns): Defsubr Stranslate_region_internal.
15876
15877 * xfaces.c (set_lface_from_font_name): If a font is specified for
15878 a frame, generate a fontset from the font.
15879 (build_scalable_font_name): If the scalable font is requested for
15880 a specific size, don't change that size.
15881 (try_font_list): Try a scalable font also in the case that a
15882 pattern string is specified.
15883
158842008-02-01 Kenichi Handa <handa@m17n.org>
15885
15886 * xfaces.c (Fface_font): New optional arg CHARACTER.
15887
158882008-02-01 Kenichi Handa <handa@m17n.org>
15889
15890 * charset.h (CHARSET_OFFSET): New macro.
15891
158922008-02-01 Kenichi Handa <handa@m17n.org>
15893
15894 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15895
15896 * fontset.c (fontset_face): Handle the case that repertory is a
15897 char-table.
15898 (find_font_encoding): Return nil for unknown encoding.
15899 (Fset_fontset_font): Ignore a font of unknown encoding.
15900
159012008-02-01 Kenichi Handa <handa@m17n.org>
15902
15903 * keymap.c (describe_vector): Handle default value of a char table.
15904
15905 * fontset.c (fontset_face): Handle fallback fonts correctly.
15906 (Ffontset_info): Return infomation about fallback fonts.
15907
159082008-02-01 Kenichi Handa <handa@m17n.org>
15909
15910 * fontset.c (FONTSET_DEFAULT): New macro.
15911 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15912 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15913 the case that it is nil.
15914 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15915 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15916
15917 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15918 subset or superset.
15919
159202008-02-01 Kenichi Handa <handa@m17n.org>
15921
15922 * emacs.c (main): Call init_charset after syms_of_XXX.
15923
15924 * charset.c (Vcharset_map_directory): Delete.
15925 (Vcharset_map_path): New variable.
15926 (load_charset_map_from_file): Use Vcharset_map_path instead.
15927 (init_charset): Initialize Vcharset_map_path.
15928 (syms_of_charset): Delete declaration of "charset-map-directory",
15929 add declaration of "charset-map-path".
15930
159312008-02-01 Kenichi Handa <handa@m17n.org>
15932
15933 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15934 ASCII only string.
15935
15936 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15937
15938 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15939 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15940
159412008-02-01 Kenichi Handa <handa@m17n.org>
15942
15943 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15944
15945 * coding.c (QCmnemonic, QCdefalut_char)
15946 (QCdecode_translation_table, QCencode_translation_table)
15947 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15948 (get_translation_table): Return a list of translation tables if
15949 necessary.
15950 (decode_coding): Call get_translation_table with ENCODEP 0.
15951 (char_encodable_p): If translation_table is non-nil, always call
15952 translate_char.
15953 (Fdefine_coding_system_internal): Accept list of translation
15954 tables as :encode-translation-table and :decode-translation-table.
15955 (Fcoding_system_put): New function.
15956 (syms_of_coding): Declare new symbols. Defsubr
15957 Scoding_system_put.
15958 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15959 typically JISX0212.
15960
15961 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15962 when the charset is superset type.
15963
15964 * character.c (translate_char): Accept list of translation tables.
15965
159662008-02-01 Kenichi Handa <handa@m17n.org>
15967
15968 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15969 (CODING_ATTR_TRANS_TBL): New macro.
15970
15971 * coding.c (get_translation_table): New function.
15972 (translate_chars): Fix the bug of skipping annotation data.
15973 (decode_coding, encode_coding): Utilize get_translation_table.
15974 (char_encodable_p, Funencodable_char_position): Translate char if
15975 necessary.
15976 (Ffind_coding_systems_region_internal)
15977 (Fcheck_coding_systems_region): Setup translation table for encode
15978 in a coding system attribute vector in advance.
15979 (Fdefine_coding_system_internal): Allow a symbol as translation
15980 table. For shift-jis type coding system, allow 4th charset.
15981
159822008-02-01 Kenichi Handa <handa@m17n.org>
15983
15984 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15985
15986 * xdisp.c (get_next_display_element): Pass -1 as POS to
15987 FACE_FOR_CHAR if displaying a C-string.
15988
159892008-02-01 Kenichi Handa <handa@m17n.org>
15990
15991 * composite.c (get_composition_id): Handle xoff and yoff in a
15992 composition rule.
15993
15994 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15995 (struct composition): New member lbearing and rbearing.
15996
15997 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15998 (x_get_glyph_overhangs): Handle a composition glyph.
15999 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16000
16001 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16002 composition glyph.
16003
160042008-02-01 Kenichi Handa <handa@m17n.org>
16005
16006 * print.c: Include charset.h.
16007 (Vprint_charset_text_property): New variable.
16008 (Qdefault): Extern it.
16009 (PRINT_STRING_NON_CHARSET_FOUND)
16010 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16011 (print_check_string_result): New variable.
16012 (print_check_string_charset_prop): New function.
16013 (print_prune_charset_plist): New variable.
16014 (print_prune_string_charset): New function.
16015 (print_object): Call print_prune_string_charset if
16016 Vprint_charset_text_property is not t.
16017 (print_interval): Print nothing if interval->plist is nil.
16018 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16019 variable. Init and staticpro print_prune_charset_plist.
16020
160212008-02-01 Kenichi Handa <handa@m17n.org>
16022
16023 * fontset.c (new_fontset_from_font_name): Use the specified font
16024 for all characters in the new fontset.
16025
16026 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16027 OBJECT args.
16028
16029 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16030 OBJECT args for composition too.
16031
16032 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16033 OBJECT args.
16034
160352008-02-01 Kenichi Handa <handa@m17n.org>
16036
16037 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16038
16039 * fontset.c (reorder_font_vector): Adjust for the change of
16040 FONT_DEF format.
16041 (fontset_face): New arg id. Change caller.
16042 (face_for_char): New args pos and object.
16043 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16044 (fs_query_fontset): Check NAME by Fassoc too.
16045 (Fset_fontset_font): Allow non-XLFD font name.
16046 (Ffontset_info): Adjust for the change of FONT_DEF format.
16047
16048 * fontset.h (face_for_char): Adjust prototype.
16049
16050 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16051 (append_space, extend_face_to_end_of_line)
16052 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16053 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16054
16055 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16056 POS and OBJECT args.
16057
16058 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16059 POS and OBJECT args.
16060
160612008-02-01 Jason Rumney <jasonr@gnu.org>
16062
16063 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16064 of GlobalAlloc'ed memory.
16065
160662008-02-01 Kenichi Handa <handa@m17n.org>
16067
16068 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16069
16070 * charset.h (charset_table_used): Delete extern.
16071
16072 * charset.c (charset_table_used): Make it static.
16073 (map_charset_chars): Fix args to c_function with.
16074
16075 * chartab.c (map_sub_char_table_for_charset): Fix args to
16076 c_function with.
16077
16078 * coding.h (enum coding_result_code): Delete
16079 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16080
16081 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16082 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16083 (Vlast_code_conversion_error): New variables.
16084 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16085 (ONE_MORE_BYTE): Record error if any instead of signaling an
16086 error. If non-ASCII multibyte char is found, return the negative
16087 value of the code. All callers changed to check it.
16088 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16089 (record_conversion_result): New function. Change all codes setting
16090 coding->result to call this function.
16091 (detect_coding_utf_8, decode_coding_utf_8)
16092 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16093 Don't use the local variable incomplete.
16094 (emacs_mule_char): Change the second arg to `const'.
16095 (decode_coding): Fix of flushing out unprocessed data.
16096 (make_conversion_work_buffer): Fix making of a work buffer.
16097 (decode_coding_object): Return coding->dst_object.
16098
16099 * fontset.c (set_fontset_font): Fix args.
16100
16101 * lisp.h (CHARACTERBITS): Define as 22.
16102
16103 * process.c (send_process): Be sure to set coding->src_multibyte.
16104
16105 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16106
161072008-02-01 Kenichi Handa <handa@m17n.org>
16108
16109 * xdisp.c (handle_auto_composed_prop): Give limit to
16110 Fnext_single_char_property_change.
16111
161122008-02-01 Kenichi Handa <handa@m17n.org>
16113
16114 * composite.c (syms_of_composite): Don't make the composition hash
16115 table weak.
16116
16117 * fontset.c (Fset_fontset_font): Fix docstring.
16118
16119 * lisp.h (detect_coding_system): Adjust prototype.
16120
16121 * fileio.c (kill_workbuf_unwind): Delete this function.
16122 (Finsert_file_contents): Adjust the call of detect_coding_system.
16123 Get conversion_buffer by code_conversion_save. Use the macro
16124 CODING_MAY_REQUIRE_DECODING. After decoding, update
16125 coding_system.
16126
16127 * coding.h (make_conversion_work_buffer): Delete extern.
16128 (code_conversion_save): Extern it.
16129
16130 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16131 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16132 (decode_coding_utf_8): Don't do eol converion.
16133 (detect_coding_utf_16): Check coding->src_chars, not
16134 coding->src_bytes. Add heuristics for those that have no signature.
16135 (decode_coding_emacs_mule, decode_coding_iso_2022)
16136 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16137 Don't do eol converion.
16138 (adjust_coding_eol_type): Return a new coding system.
16139 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16140 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16141 each change.
16142 (decode_coding): Pay attention to undo_list. Do eol conversion for
16143 all types of coding-systems (if necessary).
16144 (Vcode_conversion_work_buf_list): Delete it.
16145 (Vcode_conversion_reused_workbuf): Rename from
16146 Vcode_conversion_reused_work_buf.
16147 (Vcode_conversion_workbuf_name): New variable.
16148 (reused_workbuf_in_use): New variable.
16149 (make_conversion_work_buffer): Delete the arg DEPTH.
16150 (code_conversion_restore): Change argument to cons.
16151 (code_conversion_save): Delete the argument BUFFER. Change callers.
16152 (detect_coding_system): New argument src_chars. Change callers.
16153 Fix for utf-16 detection.
16154 (init_coding_once): Don't use ISO_carriage_return.
16155 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16156 reused_workbuf_in_use.
16157
161582008-02-01 Kenichi Handa <handa@m17n.org>
16159
16160 * keymap.c (store_in_keymap): Pay attention to the case that idx
16161 is a cons specifying a character range.
16162
161632008-02-01 Kenichi Handa <handa@m17n.org>
16164
16165 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16166 HANDLED_RECOMPUTE_PROPS.
16167
16168 * coding.c (Fdefine_coding_system_internal): Fix checking of
16169 ascii compatibility.
16170
161712008-02-01 Kenichi Handa <handa@m17n.org>
16172
16173 * charset.c (find_charsets_in_text): Delete unused locale variable.
16174 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16175
16176 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16177 Resync charset_list to Vemacs_mule_charset_list.
16178
16179 * keymap.c (store_in_keymap): Pay attention to the case that idx
16180 is a cons specifying a character range.
16181
161822008-02-01 Kenichi Handa <handa@m17n.org>
16183
16184 * composite.c (update_compositions): Bind inhibit-read-only, etc
16185 to t before calling remove-list-of-text-properties.
16186
16187 * print.c (print_object): Always print ASCII chars as is.
16188
161892008-02-01 Kenichi Handa <handa@m17n.org>
16190
16191 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16192
16193 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16194 is a char table.
16195
161962008-02-01 Kenichi Handa <handa@m17n.org>
16197
16198 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16199
162002008-02-01 Kenichi Handa <handa@m17n.org>
16201
16202 * xfaces.c (set_lface_from_font_name): Fix for the case that
16203 FONTNAME is not fontset name.
16204
162052008-02-01 Kenichi Handa <handa@m17n.org>
16206
16207 * fns.c (base64_encode_1): Fix previous change.
16208
162092008-02-01 Kenichi Handa <handa@m17n.org>
16210
16211 * fontset.c (set_fontset_font): New function.
16212 (Fset_fontset_font): If a font is specified for a charset, use
16213 map_charset_chars to store the font spec in a fontset.
16214
162152008-02-01 Kenichi Handa <handa@m17n.org>
16216
16217 * fontset.c (fontset_face): Create a fallback fontset on demand.
16218 (make_fontset): Don't create a fallback fontset here.
16219 (free_face_fontset): Free a fallback fontset (if any) too.
16220 (n_auto_fontsets): Delete this variable.
16221 (auto_fontset_alist): New variable.
16222 (new_fontset_from_font_name): Check auto_fontset_alist.
16223 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16224 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16225 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16226 Defsubr Sfontset_list_all.
16227
162282008-02-01 Kenichi Handa <handa@m17n.org>
16229
16230 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16231
162322008-02-01 Kenichi Handa <handa@m17n.org>
16233
16234 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16235
162362008-02-01 Kenichi Handa <handa@m17n.org>
16237
16238 * editfns.c (Fgoto_char): Fix docstring.
16239
162402008-02-01 Kenichi Handa <handa@m17n.org>
16241
16242 * insdel.c (insert_from_gap): Adjust intervals correctly.
16243
162442008-02-01 Jason Rumney <jasonr@gnu.org>
16245
16246 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16247 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16248 (w32_initialize): Try to load it.
16249 (x_get_font_repertory): Use it if available.
16250 (w32_encode_char): Add shortcut for unicode output.
16251
16252 * w32fns.c (w32_load_system_font): Default charset to -1.
16253 (x_to_w32_charset): Match all fonts for unicode.
16254 (w32_to_x_charset): New parameter matching. Don't return partial
16255 or wildcard charsets.
16256 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16257 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16258 (w32_to_x_font): Match charset to real charset.
16259 (enum_font_cb2): Always list unicode versions.
16260
16261 * makefile.w32-in (temacs): Increase EMHEAP.
16262
162632008-02-01 Jason Rumney <jasonr@gnu.org>
16264
16265 * w32term.c (w32_encode_char): New charset parameter.
16266 font_info.encoding becomes encoding_type.
16267 (x_get_font_repertory): New function. Warning: stub only!
16268 (x_new_font): Return quickly if font already set.
16269 (x_new_fontset): fontsetname parameter is Lisp_Object.
16270 Use new fs_query_fontset. Try new_fontset_from_font_name.
16271 Use fontset_name for return value.
16272
16273 * w32term.h: Declare x_get_font_repertory.
16274
16275 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16276 place of find_charset_in_text. Use encode_coding_object in place
16277 of encode_coding.
16278 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16279 decode_coding.
16280
16281 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16282 of x_new_fontset.
16283 (w32_load_system_font): Initialize charset as unicode.
16284 font_info.encoding becomes encoding_type.
16285 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16286 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16287 (syms_of_w32fns): Set get_font_repertory_func.
16288
16289 * w32console.c: Include character.h. Use terminal_encode_buffer
16290 from term.c.
16291 (write_glyphs): Use new version of encode_terminal_code. Use
16292 encode_coding_object in place of encode_coding.
16293
16294 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16295 encoding becomes encoding_type.
16296
16297 * term.c (terminal_encode_buffer): Make externally visible.
16298
16299 * makefile.w32-in: Add character.h dependancies.
16300 (character.o, chartab.o): New targets.
16301
163022008-02-01 Kenichi Handa <handa@m17n.org>
16303
16304 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16305 CODING_ID_EOL_TYPE.
16306
163072008-02-01 Andreas Schwab <schwab@suse.de>
16308
16309 * coding.c (produce_chars): Revert last change.
16310
163112008-02-01 Kenichi Handa <handa@m17n.org>
16312
16313 * charset.h (charset_unicode): Extern it.
16314
16315 * charset.c (string_xstring_p): Check by (C >= 0x100).
16316 (find_charsets_in_text): Change format of the arc CHARSETS. New
16317 arg MULTIBYTE.
16318 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16319 change of find_charsets_in_text.
16320 (Fsplit_char): Fix doc. Never return unknown.
16321
16322 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16323
16324 * coding.c (Fdefine_coding_system_alias): Update
16325 Vcoding_system_list.
16326
16327 * fontset.c (load_font_get_repertory): Pay attention to the case
16328 that ENCODING of a font is specified by a char-table.
16329
16330 * xterm.c (x_get_font_repertory): Handle the case that the
16331 encoding of font is other than Unicode.
16332
163332008-02-01 Kenichi Handa <handa@m17n.org>
16334
16335 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16336 if a character is encodable by the terminal coding system. If
16337 not, produces proper number of `?'s. Update
16338 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16339 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16340
163412008-02-01 Kenichi Handa <handa@m17n.org>
16342
16343 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16344 variables.
16345 (encode_terminal_code): Change argument. Encode multiple
16346 characters at once. Store the result of encoding in
16347 terminal_encode_buffer.
16348 (write_glyphs, insert_glyphs): Adjust for the change of
16349 encode_terminal_code.
16350 (term_init): Initialize terminal_encode_buffer and
16351 terminal_encode_buf_size.
16352
16353 * coding.c (consume_chars): If coding->src_object is nil, don't
16354 check annotation.
16355
163562008-02-01 Kenichi Handa <handa@m17n.org>
16357
16358 * character.c (char_string): Use ASCII_CHAR_P instead of
16359 SINGLE_BYTE_CHAR_P.
16360
163612008-02-01 Kenichi Handa <handa@m17n.org>
16362
16363 * xdisp.c (handle_auto_composed_prop): Check if the last
16364 characters of auto-composed region is newly composed with the
16365 following characters.
16366 (handle_composition_prop): Fix checking of point being inside
16367 composition.
16368
163692008-02-01 Kenichi Handa <handa@m17n.org>
16370
16371 * fns.c (concat): Don't change multibyteness of the result by
16372 concatenating an 8-bit character.
16373
16374 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16375 multibyteness of the result when newelt is an 8-bit character.
16376
163772008-02-01 Dave Love <fx@gnu.org>
16378
16379 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16380 EMACS_INT.
16381
16382 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16383
16384 * xfaces.c (face_numeric_value): Declare dim size_t.
16385 (Finternal_lisp_face_equal_p): Remove unused f.
16386
16387 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16388 (MATRIX_ROW): Remove unused vars.
16389 (draw_glyphs, x_insert_glyphs, fast_find_position)
16390 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16391 byte/char counts.
16392
16393 * regex.c (regex_compile): Remove unused var.
16394
16395 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16396
16397 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16398 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16399
16400 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16401
16402 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16403
16404 * fileio.c (Fwrite_region): Remove unused var.
16405
16406 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16407 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16408
16409 * composite.c (Fremove_list_of_text_properties): Declare.
16410
16411 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16412 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16413 (coding_inherit_eol_type): Remove unused attrs.
16414 (detect_coding): Cast arg of detect_eol.
16415
16416 * charset.c (syms_of_charset): Remove unused var p.
16417 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16418 byte/char counts.
16419
16420 * casetab.c (set_case_table): Remove unused var.
16421
16422 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16423 unused vars.
16424
164252008-02-01 Dave Love <fx@gnu.org>
16426
16427 * xterm.c (x_bitmap_mask): Declare.
16428
164292008-02-01 Dave Love <fx@gnu.org>
16430
16431 * xterm.c (x_term_init): Fix type error.
16432
16433 * lisp.h: Add Funibyte_char_to_multibyte.
16434
16435 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16436 (Fset_coding_system_priority): Doc fix.
16437
16438 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16439
16440 * indent.c (check_composition): Make start and end EMACS_INT.
16441
16442 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16443
16444 * xdisp.c (handle_composition_prop, check_point_in_composition):
16445 Make buffer positions EMACS_INT.
16446
16447 * composite.c (find_composition, run_composition_function)
16448 (update_compositions, Ffind_composition_internal): Make buffer
16449 positions EMACS_INT.
16450
16451 * composite.h (find_composition, update_compositions): Make
16452 position args EMACS_INT.
16453
16454 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16455
16456 * intervals.c (get_property_and_range):
16457 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16458
16459 * unexalpha.c: Don't include varargs.h.
16460
164612008-02-01 Dave Love <fx@gnu.org>
16462
16463 * coding.h (ENCODE_UTF_8): New.
16464
16465 * Makefile.in (gtkutil.o): Depend on coding.h.
16466
16467 * coding.c (Fset_coding_system_priority): Doc fix.
16468
164692008-02-01 Kenichi Handa <handa@m17n.org>
16470
16471 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16472 the case of auto saving.
16473
164742008-02-01 Andreas Schwab <schwab@suse.de>
16475
16476 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16477 `range' from GC.
16478
164792008-02-01 Kenichi Handa <handa@m17n.org>
16480
16481 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16482
164832008-02-01 Kenichi Handa <handa@m17n.org>
16484
16485 * fileio.c (choose_write_coding_system): Return a decided coding system.
16486 (Fwrite_region): Set Vlast_coding_system_used to the return value
16487 of choose_write_coding_system.
16488
164892008-02-01 Kenichi Handa <handa@m17n.org>
16490
16491 * charset.c (Fset_charset_priority): Pay attention to duplicated
16492 arguments.
16493
16494 * coding.c (QCcategory): New variable.
16495 (syms_of_coding): Defsym it. Set all elements of
16496 Vcoding_category_table and their symbol values.
16497 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16498 coding-category-XXX, and coding-category-list.
16499 (Fdefine_coding_system_internal): Add category in the plist.
16500
165012008-02-01 Kenichi Handa <handa@m17n.org>
16502
16503 * callproc.c (Fcall_process): Handle carryover correctly.
16504
16505 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16506 (raw_text_coding_system): Check NILP (coding_system).
16507 (coding_inherit_eol_type): Check NILP (coding_system) and
16508 NILP (parent).
16509 (consume_chars): Fix for the case of raw-text.
16510
16511 * process.c (read_process_output): Handle carryover correctly.
16512
165132008-02-01 Dave Love <fx@gnu.org>
16514
16515 * regex.c (re_search_2): Fix last change.
16516
165172008-02-01 Kenichi Handa <handa@m17n.org>
16518
16519 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16520 target_multibyte. Even in a unibyte case, return a converted
16521 multibyte char.
16522 (GET_CHAR_AFTER): New macro.
16523 (PATFETCH): Translate via multibyte char.
16524 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16525 (SETUP_MULTIBYTE_RANGE): New macro.
16526 (regex_compile): Setup compiled code so that its multibyteness
16527 matches that of a target. Fix the handling of "[X-YZ]" using
16528 SETUP_MULTIBYTE_RANGE.
16529 (analyse_first) <charset>: For filling fastmap for all multibyte
16530 characters, don't check by BASE_LEADING_CODE_P.
16531 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16532 the same as RE_MULTIBYTE_P (bufp) now.
16533 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16534 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16535 (TRANSLATE_VIA_MULTIBYTE): New macro.
16536 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16537 It is the same as RE_MULTIBYTE_P (bufp) now.
16538 <exactn>: Translate via multibyte.
16539 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16540 translate it.
16541 <charset, charset_not>: Fetch a character by
16542 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16543 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16544 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16545 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16546 by GET_CHAR_AFTER.
16547 (bcmp_translate): Likewise.
16548
16549 * search.c (compile_pattern): Check the member target_multibyte,
16550 not the member multibyte of buf.
16551
16552 * lread.c (read1): While reading a string, set force_singlebyte
16553 and force_multibyte correctly.
16554
16555 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16556 up of unibyte_to_multibyte_table.
16557
165582008-02-01 Kenichi Handa <handa@m17n.org>
16559
16560 * coding.c (setup_coding_system): If coding has
16561 post-read-conversion or pre-write-conversion, set
16562 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16563 respectively.
16564 (decode_coding_gap): Run post-read-conversion if any.
16565
16566 * fileio.c (Finsert_file_contents): Even if we read into a
16567 unibyte buffer, check if we must decode the result or not.
16568
165692008-02-01 Kenichi Handa <handa@m17n.org>
16570
16571 * coding.c (make_conversion_work_buffer): Change the work buffer
16572 name to the same one as that of Emacs 21.
16573
165742008-02-01 Kenichi Handa <handa@m17n.org>
16575
16576 * coding.h (make_conversion_work_buffer): Adjust prototype.
16577 (code_conversion_restore): Don't extern it.
16578
16579 * coding.c (detected_mask): Delete unused variable.
16580 (decode_coding_iso_2022): Pay attention to the byte sequence of
16581 CTEXT extended segment, and retain those bytes as is.
16582 (decode_coding_ccl): Delete unused variable `valids'.
16583 (setup_coding_system): Delete unused variable `category'.
16584 (consume_chars): Delete unused variable `category'. Make it work
16585 for non-multibyte case.
16586 (make_conversion_work_buffer): Change argument.
16587 (saved_coding): Delete unused variable.
16588 (code_conversion_restore): Don't check saved_coding->destination.
16589 (code_conversion_save): New function.
16590 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16591 instead of record_unwind_protect.
16592 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16593 (detect_coding_system): Delete unused variable `mask'.
16594 (Fdefine_coding_system_internal): Delete unused variable id.
16595
16596 * fileio.c (kill_workbuf_unwind): New function.
16597 (Finsert_file_contents): On replacing, call
16598 make_conversion_work_buffer with correct args, and call
16599 record_unwind_protect with the first arg kill_workbuf_unwind.
16600
16601 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16602
166032008-02-01 Kenichi Handa <handa@m17n.org>
16604
16605 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16606 (fontset_add): Fix for the case that TO is less than TO1.
16607 (Ffontset_info): Don't use fallback fontset on checking the
16608 default fontset.
16609 (dump_fontset): New function for debugging.
16610
16611 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16612 coding_type is Qcharset.
16613
166142008-02-01 Kenichi Handa <handa@m17n.org>
16615
16616 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16617 (map_char_table): Don't inherit the value from the parent on
16618 initializing VAL. Adjust for the above change.
16619
166202008-02-01 Kenichi Handa <handa@m17n.org>
16621
16622 * coding.c (Qsignature, Qendian): Delete these variables.
16623 (syms_of_coding): Don't initialize them.
16624 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16625 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16626 detect_info->found.
16627 (decode_coding_utf_16): Don't detect BOM here.
16628 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16629 is NOT utf_16_without_bom.
16630 (setup_coding_system): For a coding system of type utf-16, check
16631 if the attribute :endian is Qbig or not (not nil or not), and set
16632 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16633 (detect_coding): If coding type is utf-16 and BOM detection is
16634 required, detect it.
16635 (Fdefine_coding_system_internal): For a coding system of type
16636 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16637
166382008-02-01 Kenichi Handa <handa@m17n.org>
16639
16640 * coding.c (coding_set_source): Fix for the case that the current
16641 buffer is different from coding->src_object.
16642 (decode_coding_object): Don't use the conversion work buffer if
16643 DST_OBJECT is a buffer.
16644
166452008-02-01 Dave Love <fx@gnu.org>
16646
16647 * lread.c (read_emacs_mule_char) [len==2]: Index
16648 emacs_mule_charset correctly.
16649
166502008-02-01 Dave Love <fx@gnu.org>
16651
16652 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16653 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16654 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16655 treated specially.)
16656 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16657 (detected_mask): Remove Big5 bits.
16658
166592008-02-01 Kenichi Handa <handa@m17n.org>
16660
16661 The following changes are to make the font rescaling facility
16662 compatible with Emacs 21.
16663
16664 * xfaces.c (Vface_font_rescale_alist): Rename from
16665 Vface_resizing_fonts.
16666 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16667 (font_rescale_ratio): Rename from font_resizing_ratio.
16668 (split_font_name): Set font->rescale_ratio.
16669 (better_font_p): Pay attention to font->rescale_ratio.
16670 (build_scalable_font_name): Likewise. Change RESX, and RESY
16671 fields.
16672 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16673
166742008-02-01 Kenichi Handa <handa@m17n.org>
16675
16676 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16677 (Qutf_16_le): Remove these variables.
16678 (syms_of_coding): Don't DEFSYM them.
16679 (decode_coding_utf_16): Fix handling of BOM.
16680 (encode_coding_utf_16): Fix handling of BOM.
16681
166822008-02-01 Kenichi Handa <handa@m17n.org>
16683
16684 * fileio.c (Finsert_file_contents): On replacing, before decoding
16685 the file into the work buffer, set point of the work buffer to the end.
16686
166872008-02-01 Dave Love <fx@gnu.org>
16688
16689 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16690
166912008-02-01 Dave Love <fx@gnu.org>
16692
16693 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16694 and fix C types.
16695
166962008-02-01 Kenichi Handa <handa@m17n.org>
16697
16698 * xdisp.c (SKIP_GLYPHS): New macro.
16699 (set_cursor_from_row): Pay attention to string display properties.
16700
16701 * category.c (copy_category_entry): Fix for the case that RANGE
16702 is an integer.
16703
16704 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16705
16706 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16707
167082008-02-01 Kenichi Handa <handa@m17n.org>
16709
16710 * charset.c (Fcharset_id_internal): New function.
16711 (syms_of_charset): Defsubr it.
16712
16713 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16714 with the last arg charset_list acquired from coding.
16715 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16716 the attribute coding_attr_ccl_valids.
16717
16718 * coding.h (enum define_coding_ccl_arg_index): Set the first
16719 member coding_arg_ccl_decoder to coding_arg_max.
16720
16721 * ccl.h (ccl_driver): Adjust prototype.
16722
16723 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16724 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16725 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16726 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16727 last arg Qnil.
16728
167292008-02-01 Kenichi Handa <handa@m17n.org>
16730
16731 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16732 call encode_char.
16733
16734 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16735
167362008-02-01 Dave Love <fx@gnu.org>
16737
16738 * composite.c (syms_of_composite): Make composition_hash_table weak.
16739
167402008-02-01 Kenichi Handa <handa@m17n.org>
16741
16742 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16743 (font_name_registry): Don't extern them.
16744 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16745
16746 * fontset.h (Qfontset): Don't extern it.
16747 (new_fontset_from_font_name): Extern it.
16748
16749 * fontset.c: Give 8 extra slots to fontset objects.
16750 (Qfontset_info): New variable.
16751 (syms_of_fontset): Defsym it.
16752 (FONTSET_FALLBACK): New macro.
16753 (fontset_face): Try also the default fontset.
16754 (make_fontset): Realize a fallback fontset from the default fontset.
16755 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16756 using split_font_name_into_vector and build_font_name_from_vector.
16757 (Fset_fontset_font): Access the elements of font_spec by enum
16758 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16759 name by using split_font_name_into_vector.
16760 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16761 generate a proper font name from the fontset name. Update
16762 Vfontset_alias_alist.
16763 (n_auto_fontsets): New variable.
16764 (new_fontset_from_font_name): New function.
16765 (Ffont_info): Store the information about fonts generated from the
16766 default fontset in the first extra slot of the returned char-table.
16767
16768 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16769 (font_name_registry): Delete function.
16770 (split_font_name_into_vector): New function.
16771 (build_font_name_from_vector): New function.
16772 (font_list): The argument REGISTRY is now a list of registry names.
16773 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16774 specifies an explicit font name, return the name as is. Make a
16775 list of registy names.
16776
16777 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16778 of x_new_fontset.
16779 (Fx_create_frame): Don't call x_new_fontset here. Just use
16780 x_list_fonts to check the existence of fonts.
16781
16782 * xterm.h (x_new_fontset): Adjust prototype.
16783
16784 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16785 string. Use new_fontset_from_font_name to create a fontset from a
16786 font name.
16787
167882008-02-01 Kenichi Handa <handa@m17n.org>
16789
16790 * syntax.c (Vfind_word_boundary_function_table): New name for
16791 Vnext_word_boundary_function_table.
16792 (find-word-boundary-function-table): New name for
16793 next-word-boundary-function-table.
16794
167952008-02-01 Dave Love <fx@gnu.org>
16796
16797 * Makefile.in: Fix some dependencies.
16798
16799 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16800 set it to nil before returning.
16801
16802 * composite.c (update_compositions): Fix type error.
16803
16804 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16805
168062008-02-01 Kenichi Handa <handa@m17n.org>
16807
16808 * xterm.c (x_new_font): Optimize for the case that the font is
16809 already set for the frame.
16810
168112008-02-01 Kenichi Handa <handa@m17n.org>
16812
16813 * chartab.c (char_table_ascii): Check if the char table contents
16814 is sub-char-table or not.
16815 (char_table_set, char_table_set_range): Fix argument to
16816 char_table_ascii.
16817
16818 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16819 (detect_coding_utf_8, detect_coding_utf_16)
16820 (detect_coding_emacs_mule, detect_coding_iso_2022)
16821 (detect_coding_sjis, detect_coding_big5)
16822 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16823 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16824 sequence is valid in this coding system. Change callers.
16825 (MAX_ANNOTATION_LENGTH): New macro.
16826 (ADD_ANNOTATION_DATA): New macro.
16827 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16828 ADD_ANNOTATION_DATA. Change the format of annotation data.
16829 (ADD_CHARSET_DATA): New macro.
16830 (emacs_mule_char): New argument ID. Change callers.
16831 (decode_coding_emacs_mule, decode_coding_iso_2022)
16832 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16833 Produce charset annotation data in coding->charbuf.
16834 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16835 to charset annotation data in coding->charbuf.
16836 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16837 coding->common_flags if the coding system is iso-2022 based and
16838 uses designation.
16839 (produce_composition): Adjust for the new annotation data format.
16840 (produce_charset): New function.
16841 (produce_annotation): Handle charset annotation.
16842 (handle_composition_annotation, handle_charset_annotation): New
16843 functions.
16844 (consume_chars): Handle charset annotation. Utilize the above two
16845 functions.
16846 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16847 buffer, get the deleted text as a string and set
16848 coding->src_object to that string.
16849 (detect_coding, detect_coding_system): Use the new struct
16850 coding_detection_info.
16851
16852 * coding.h (struct coding_detection_info): New structure.
16853 (struct coding_system): Adjust prototype of the member `detector'.
16854 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16855
168562008-02-01 Kenichi Handa <handa@m17n.org>
16857
16858 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16859
168602008-02-01 Dave Love <fx@gnu.org>
16861
16862 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16863 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16864 to new local and nullify apropos_accumulate before returning.
16865 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16866
168672008-02-01 Kenichi Handa <handa@m17n.org>
16868
16869 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16870 correctly.
e3eea1fc 16871
aac0c6e3
MR
168722008-02-01 Dave Love <fx@gnu.org>
16873
16874 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16875
168762008-02-01 Kenichi Handa <handa@m17n.org>
16877
16878 The following changes are to make character composition happen
16879 automatically on displaying.
16880
16881 * Makefile.in (lisp, shortlisp): Add composite.elc.
16882
16883 * composite.h (Qauto_composed, Vauto_composition_function)
16884 (Qauto_composition_function): Extern them.
16885
16886 * composite.c (Vcomposition_function_table)
16887 (Qcomposition_function_table): Delete variables.
16888 (Qauto_composed, Vauto_composition_function)
16889 (Qauto_composition_function): New variables.
16890 (run_composition_function): Don't call
16891 compose-chars-after-function.
16892 (update_compositions): Clear `auto-composed' text property.
16893 (compose_chars_in_text): Delete this function.
16894 (syms_of_composite): Staticpro Qauto_composed and
16895 Qauto_composition_function. Declare Vauto_composition_function as
16896 a Lisp variable.
16897
16898 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16899
16900 * xdisp.c (it_props): Add an entry for Qauto_composed.
16901 (handle_auto_composed_prop): New function.
16902
16903 * xselect.c (selection_data_to_lisp_data): Don't call
16904 compose_chars_in_text.
16905
169062008-02-01 Dave Love <fx@gnu.org>
16907
16908 * keyboard.c (read_char): Modify checking around use of
16909 Vkeyboard_translate_table.
16910
16911 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16912 and fix C types.
16913
169142008-02-01 Kenichi Handa <handa@m17n.org>
16915
16916 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16917 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16918 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16919 the case that the last byte is '\r' correctly.
16920 (decode_coding): Flush out the unprocessed data correctly.
16921 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16922
169232008-02-01 Dave Love <fx@gnu.org>
16924
16925 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16926 Add XK_ISO... case.
16927 (xaw_scroll_callback): Revert last change.
16928
169292008-02-01 Kenichi Handa <handa@m17n.org>
16930
16931 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16932
169332008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 * xfaces.c (Vface_resizing_fonts): New variable.
16936 (struct font_name): New member `resizing_ratio'.
16937 (font_resizing_ratio): New function.
16938 (split_font_name): Set font->resizing_ratio.
16939 (better_font_p): Pay attention to font->resizing_ratio.
16940 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16941 RESX, and RESY fields.
16942 (try_alternative_families): Try scalable fonts if
16943 Vscalable_fonts_allowed is not Qt.
16944 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16945
169462008-02-01 Dave Love <fx@gnu.org>
16947
16948 * xterm.c (xaw_scroll_callback): Cast correctly.
16949
169502008-02-01 Dave Love <fx@gnu.org>
16951
16952 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16953 (lispy_kana_keys): Comment out.
16954 (make_lispy_event) [XK_kana_A]: Comment out.
16955
16956 * xterm.c (xaw_scroll_callback): Cast call_data.
16957 (XTread_socket): Deal with ASCII keysyms.
16958 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16959
169602008-02-01 Dave Love <fx@gnu.org>
16961
16962 * xterm.c (Vx_keysym_table): New.
16963 (syms_of_xterm): Initialize it.
16964 (XTread_socket): Use it.
16965 From head: Eliminate incorrect optimization that tried to avoid
16966 decoding the output of X*LookupString.
16967 (x_get_font_repertory): Delete charset declaration.
16968
169692008-02-01 Kenichi Handa <handa@m17n.org>
16970
16971 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16972 return 0.
16973 (Fdefine_coding_system_internal): Setup
16974 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16975
169762008-02-01 Dave Love <fx@gnu.org>
16977
16978 * coding.c (Fcheck_coding_system): Doc fix.
16979
16980 * editfns.c (Finsert_byte): Return a proper value.
16981
169822008-02-01 Kenichi Handa <handa@m17n.org>
16983
16984 * coding.c (decode_coding): Fix args to translate_chars. Pay
16985 attention to Vstandard_translation_table_for_decode.
16986 (encode_coding): Fix args to translate_chars. Pay attention to
16987 Vstandard_translation_table_for_encode.
16988
16989 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16990 SINGLE_BYTE_CHAR_P.
16991
16992 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16993 not by SINGLE_BYTE_CHAR_P.
16994
16995 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16996 SINGLE_BYTE_CHAR_P.
16997
16998 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16999 SINGLE_BYTE_CHAR_P.
17000
17001 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17002 by SINGLE_BYTE_CHAR_P.
17003
17004 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17005 SINGLE_BYTE_CHAR_P.
17006
170072008-02-01 Dave Love <fx@gnu.org>
17008
17009 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17010
170112008-02-01 Dave Love <fx@gnu.org>
17012
17013 * fns.c (Flanginfo): Fix typo.
17014
17015 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17016
170172008-02-01 Kenichi Handa <handa@m17n.org>
17018
17019 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17020 (detect_coding_emacs_mule, detect_coding_iso_2022)
17021 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17022 incomplete byte sequence. Don't update *mask when correctly detected.
17023 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17024 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17025 (detect_coding, detect_coding_system): Adjust for the changes above.
17026
170272008-02-01 Kenichi Handa <handa@m17n.org>
17028
17029 * character.c (char_string): Rename from
17030 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17031 (string_char): Rename from string_char.
17032
17033 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17034 if C is greater than MAX_3_BYTE_CHAR.
17035 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17036 string_char instead of string_char_with_unification.
17037
170382008-02-01 Dave Love <fx@gnu.org>
17039
17040 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17041
170422008-02-01 Kenichi Handa <handa@m17n.org>
17043
17044 * keymap.c (push_key_description): Pay attention to force_multibyte.
17045
17046 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17047
170482008-02-01 Dave Love <fx@gnu.org>
17049
17050 * charset.c (define_charset_internal): Rename `supprementary'.
17051
17052 * Makefile.in (lisp, shortlisp): Remove latin-N.
17053
170542008-02-01 Dave Love <fx@gnu.org>
17055
17056 * xfns.c (x_window, x_window): Use use_xim.
17057
17058 * xterm.c (use_xim): Initialize.
17059 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17060 (x_term_init): Maybe set use_xim.
17061
17062 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17063
170642008-02-01 Kenichi Handa <handa@m17n.org>
17065
17066 * search.c (search_buffer): Fix case-fold-search of multibyte
17067 characters.
17068 (boyer_moore): Rename the last argument to char_high_bits.
17069
170702008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * xdisp.c (display_string): Fix for the case of zero width glyph.
17073
17074 * xfns.c (x_set_font): Change the error message of the case that
17075 x_new_fontset returns Qt.
17076
17077 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17078 (Finternal_set_lisp_face_attribute): Use signal_error for the
17079 error of invalid fontset.
17080
17081 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17082 fontset, return Qt.
17083
170842008-02-01 Dave Love <fx@gnu.org>
17085
17086 * unexelf.c (unexec): Make .got handling not SGI-specific.
17087
17088 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17089
17090 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17091
17092 * keyboard.c (read_key_sequence): Fix type error.
17093
17094 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17095 type error.
17096
17097 * fontset.c (fontset_add): Return Lisp_Object.
17098
170992008-02-01 Dave Love <fx@gnu.org>
17100
17101 * charset.h (charset_ordered_list_tick): Declare extern.
17102
171032008-02-01 Kenichi Handa <handa@m17n.org>
17104
17105 The following changes (and some of 2008-02-01 changes of mine) are
17106 for handling syntax, category, and case conversion for unibyte
17107 characters by converting them to multibyte on the fly. With these
17108 changes, we don't have to setup syntax and case tables for unibyte
17109 characters in each language environment.
17110
17111 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17112 multibyte if necessary.
17113
17114 * bytecode.c (Fbyte_code): Likewise.
17115
17116 * character.h (LEADING_CODE_LATIN_1_MIN)
17117 (LEADING_CODE_LATIN_1_MAX): New macros.
17118 (unibyte_to_multibyte_table): Extern it.
17119 (unibyte_char_to_multibyte): New macro.
17120 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17121 (CHAR_LEADING_CODE): New macro.
17122 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17123
17124 * character.c (unibyte_to_multibyte_table): New variable.
17125 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17126 (multibyte_char_to_unibyte): If C is an eight-bit character,
17127 convert it to the corresponding byte value.
17128
17129 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17130 not 1, signals an error. Update the elements of
17131 unibyte_to_multibyte_table.
17132 (init_charset_once): Initialize unibyte_to_multibyte_table.
17133 (syms_of_charset): Define the charset `iso-8859-1'.
17134
17135 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17136 as is without converting it to unibyte. In a unibyte buffer,
17137 convert C to multibyte before checking the syntax.
17138
17139 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17140
17141 * minibuf.c (Fminibuffer_complete_word): Use the macro
17142 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17143
17144 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17145
17146 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17147 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17148 that is zero, convert an eight-bit char to multibyte.
17149 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17150 non-emacs case.
17151 (PATFETCH): Convert an eight-bit char to multibyte.
17152 (HANDLE_UNIBYTE_RANGE): New macro.
17153 (regex_compile): Setup the compiled pattern for multibyte chars
17154 even if the given regex string is unibyte. Use PATFETCH_RAW
17155 instead of PATFETCH in many places. To handle `charset'
17156 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17157 only for ASCII chars.
17158 (analyse_first) <exactn>: Simplify because the compiled pattern
17159 is multibyte.
17160 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17161 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17162 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17163 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17164 multibyte always 1.
17165 (re_search_2): In emacs, set the locale variable multibyte to 1,
17166 otherwise to 0. New local variable target_multibyte. Check it
17167 to decide the multibyteness of STR1 and STR2. If
17168 target_multibyte is zero, convert unibyte chars to multibyte
17169 before translating and checking fastmap.
17170 (TARGET_CHAR_AND_LENGTH): New macro.
17171 (re_match_2_internal): In emacs, set the locale variable multibyte
17172 to 1, otherwise to 0. New local variable target_multibyte. Check
17173 it to decide the multibyteness of STR1 and STR2. Use
17174 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17175 <charset, charset_not>: If multibyte is nonzero, check fastmap
17176 only for ASCII chars. Call bcmp_translate with
17177 target_multibyte, not with multibyte.
17178 <begline>: Declare the local variable C as `unsigned'.
17179 (bcmp_translate): Change the last arg name to target_multibyte.
17180
17181 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17182 the regexp pattern and the matching target. Set cp->buf.multibyte
17183 to the multibyteness of the regexp pattern. Set
17184 cp->but.target_multibyte to the multibyteness of the matching target.
17185 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17186 FETCH_STRING_CHAR_ADVANCE.
17187 (Freplace_match): Convert unibyte chars to multibyte.
17188
17189 * syntax.c (char_quoted, back_comment, scan_words)
17190 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17191 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17192 unibyte chars to multibyte.
17193 (skip_chars): Delete the arg syntaxp, and move the code for
17194 handling syntaxes to skip_syntaxes. Change callers.
17195 Fix the case that the multibyteness of STRING and the current
17196 buffer doesn't match.
17197 (skip_syntaxes): New function.
17198 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17199 SINGLE_BYTE_CHAR_P.
17200
172012008-02-01 Kenichi Handa <handa@m17n.org>
17202
17203 * xfaces.c (QCfontset): New variable.
17204 (LFACE_FONTSET): New macro.
17205 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17206 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17207 (Finternal_set_lisp_face_attribute)
17208 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17209 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17210 check also LFACE_FONTSET_INDEX.
17211 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17212 attrs[LFACE_FONT_INDEX].
17213 (syms_of_xfaces): Intern and staticpro QCfontset.
17214
17215 * dispextern.h (enum lface_attribute_index): New member
17216 LFACE_FONTSET_INDEX.
17217
17218 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17219
172202008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * coding.c (coding_set_destination): Fix coding->destination for
17223 the case converting a region.
17224 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17225 (encode_coding_object): Fix coding->dst_pos and
17226 coding->dst_pos_byte for the case converting a region.
17227
17228 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17229
17230 * character.h (BYTE8_STRING): New macro.
17231
17232 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17233
172342008-02-01 Kenichi Handa <handa@m17n.org>
17235
17236 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17237 characters by octal form.
17238
17239 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17240
17241 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17242 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17243 _fetch_multibyte_char_len.
17244 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17245
17246 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17247
17248 * casefiddle.c (casify_object): Simplify. Handle the case that
17249 the case conversion change the byte length.
17250 (casify_region): Likewise.
17251
17252 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17253
17254 * character.c (_fetch_multibyte_char_len): Delete this variable.
17255 (syms_of_character): Setup Vprintable_chars.
17256
17257 * editfns.c (Fchar_equal): Fix for the unibyte case.
17258 (Finsert_byte): New function.
17259 (syms_of_editfns): Defsubr it.
17260
17261 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17262 of direct code 0x3ffff.
17263
17264 * search.c (Freplace_match): Fix for the unibyte case.
17265
172662008-02-01 Kenichi Handa <handa@m17n.org>
17267
17268 * lread.c (safe_to_load_p): Fix the logic.
17269
17270 * syntax.c (scan_words): Don't treat characters belonging to
17271 different scripts as constituting a word.
17272
17273 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17274
17275 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17276
17277 * emacs.c (main): In the case of --unibyte, instead of aborting on
17278 finding non-empty buffer, make it unibyte.
17279
172802008-02-01 Kenichi Handa <handa@m17n.org>
17281
17282 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17283 to create a fontset.
17284
172852008-02-01 Dave Love <fx@gnu.org>
17286
17287 * character.c (Funibyte_char_to_multibyte): Doc fix.
17288
17289 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17290
172912008-02-01 Kenichi Handa <handa@m17n.org>
17292
17293 * fontset.c (fontset_add): Make the type `int'.
17294 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17295
17296 * character.c (unibyte_char_to_multibyte)
17297 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17298 charset_unibyte, not charset_primary.
17299
17300 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17301
17302 * charset.c (charset_unibyte): Rename from charset_primary.
17303 (Funibyte_charset): Rename from Fprimary_charset.
17304 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17305 (syms_of_charset): Adjust for the above changes.
17306
17307 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17308 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17309 it->multibyte_p is zero.
17310
17311 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17312 Delete extern.
17313
173142008-02-01 Kenichi Handa <handa@m17n.org>
17315
17316 * coding.c (Fdefine_coding_system_internal): Fix category setting
17317 for a coding system of type iso-2022.
17318
173192008-02-01 Kenichi Handa <handa@m17n.org>
17320
17321 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17322
173232008-02-01 Kenichi Handa <handa@m17n.org>
17324
17325 * syntax.c (Vnext_word_boundary_function_table): New variable.
17326 (next-word-boundary-function-table): Declare it as a Lisp variable
17327 in syms_of_syntax.
17328 (scan_words): Call functions in Vnext_word_boundary_function_table
17329 if any.
17330
17331 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17332
17333 * fontset.c (fs_load_font): If fontp->charset is not negative,
17334 return fontp without setting its members.
17335
173362008-02-01 Dave Love <fx@gnu.org>
17337
17338 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17339
17340 * m/sparc.h (HAVE_ALLOCA): Delete.
17341
17342 * s/irix6-5.h: Don't include strings.h.
17343 (bcopy, bzero, bcmp): Don't undef.
17344
17345 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17346
17347 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17348 (TIOCSIGSEND): Don't test IRIX6.
17349 (bcopy, bzero, bcmp): Define conditionally.
17350
173512008-02-01 Kenichi Handa <handa@m17n.org>
17352
17353 * buffer.c (Qas, Qmake, Qto): New variables.
17354 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17355 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17356
17357 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17358 we are inserting a process output into a multibyte buffer.
17359
17360 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17361 multibyte_char_to_unibyte.
17362
17363 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17364 by the primary charset, make it eight-bit char.
17365 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17366
17367 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17368 (charset_8_bit__control, charset_8_bit_graphic)
17369 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17370 (define_charset_internal): New function.
17371 (syms_of_charset): Call define_charset_internal for pre-defined
17372 charsets.
17373
17374 * charset.h (charset_8_bit): Extern it.
17375
17376 * coding.c (make_conversion_work_buffer): Adjust for the change
17377 of Fset_buffer_multibyte.
17378 (encode_coding_raw_text): Increment p0 in the loop.
17379
17380 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17381
17382 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17383 for the change of Fset_buffer_multibyte.
17384
17385 * fns.c (Fstring_to_multibyte): New function.
17386 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17387
173882008-02-01 Dave Love <fx@gnu.org>
17389
17390 * xfns.c (x_put_x_image): Declare args.
17391
17392 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17393 (try_font_list): Declare an arg.
17394
17395 * xdisp.c (message2_nolog, set_message): Declare an arg.
17396
17397 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17398
17399 * syntax.c (scan_sexps_forward): Declare an arg.
17400
17401 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17402 Declare an arg.
17403
17404 * lisp.h (Fnew_fontset): Declare.
17405
17406 * keymap.c (push_key_description): Call CHARACTERP correctly.
17407
17408 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17409 (face_for_char): Delete unused vars.
17410 (Fset_fontset_font): Doc fix. Delete unused vars.
17411
17412 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17413
17414 * composite.c (update_compositions): Declare arg.
17415
17416 * cm.c (calccost, cmgoto): Declare args.
17417
17418 * charset.c: Remove `emacs' conditional. Doc fixes.
17419 (map_char_table_for_charset): Declare.
17420
17421 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17422
17423 * ccl.c: Remove `emacs' conditional.
17424
174252008-02-01 Kenichi Handa <handa@m17n.org>
17426
17427 The following changes are to allow specifying multiple font
17428 patterns for a character range (specified by script or charset).
17429
17430 * Makefile.in (abbrev.o): Depend on syntax.h.
17431 (xfaces.o): Depend on charset.h.
17432
17433 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17434 SINGLE_BYTE_CHAR_P.
17435
17436 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17437
17438 * character.h (Vchar_script_table): Extern it.
17439
17440 * character.c (Vscript_alist): Delete.
17441 (Vchar_script_table, Qchar_script_table): New variable.
17442 (syms_of_character): Declare Vchar_script_table as a lisp variable
17443 and initialize it.
17444
17445 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17446 have property char-table-extra-slots, make no extra slot.
17447
17448 * dispextern.h (struct face): Delete member `charset'.
17449 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17450 SINGLE_BYTE_CHAR_P.
17451 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17452 Add prototypes.
17453 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17454 (generate_ascii_font_name): Rename from generate_ascii_font.
17455
17456 * fontset.h (get_font_repertory_func): New prototype.
17457 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17458 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17459
17460 * fontset.c (Qprepend, Qappend): New variables.
17461 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17462 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17463 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17464 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17465 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17466 (load_font_get_repertory): New functions.
17467 (fontset_set): Delete.
17468 (fontset_face): New arg FACE. Return face ID, not face.
17469 Complete re-write to handle new fontset structure. Change caller.
17470 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17471 (face_for_char): Don't call lookup_face.
17472 (make_fontset_for_ascii_face): New arg FACE.
17473 (fs_load_font): New arg CHARSET_ID. Don't check
17474 Vfont_encoding_alist here.
17475 (find_font_encoding): New function.
17476 (list_fontsets): Use STRINGP, not ! NILP.
17477 (accumulate_script_ranges): New function.
17478 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17479 re-written to handle new fontset structure.
17480 (Ffontset_font): Return a copy of element.
17481 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17482 docstring of font-encoding-alist.
17483
17484 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17485 (Fset_fotset_font): Fix arguments to 5.
17486
17487 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17488
17489 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17490 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17491 (highlight_trailing_whitespace): Adjust for the change of
17492 lookup_named_face.
17493
17494 * xfaces.c: Include charset.h.
17495 (load_face_font): Delete argument C. Change caller.
17496 (generate_ascii_font_name): Rename from generate_ascii_font.
17497 (font_name_registry): New function.
17498 (cache_face): Store ascii faces before non-ascii faces in buckets.
17499 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17500 Lookup only ascii faces.
17501 (lookup_non_ascii_face): New function.
17502 (lookup_named_face): Delete argument C. Change caller.
17503 (lookup_derived_face): Delete argument C. Change caller.
17504 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17505 a string, just call font_list with it.
17506 (choose_face_font): Delete arguments FACE and C. New arg
17507 FONT_SPEC. Change caller.
17508 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17509 Change caller.
17510 (realize_non_ascii_face): New function.
17511 (realize_x_face): Call load_face_font here.
17512 (realize_tty_face): Delete argument C. Change caller.
17513 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17514 get a face ID.
17515 (dump_realized_face): Don't print charset of FACE.
17516
17517 * xfns.c (x_set_font): Always call x_new_fontset and
17518 store_frame_parameter.
17519 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17520 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17521
17522 * xterm.h (x_get_font_repertory): Extern it.
17523
17524 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17525 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17526 it->multibyte_p is zero.
17527 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17528 (x_new_fontset): If FONTSETNAME doesn't match any existing
17529 fontsets, create a new one.
17530 (x_get_font_repertory): New function.
17531
175322008-02-01 Kenichi Handa <handa@m17n.org>
17533
17534 * coding.c (Ffind_coding_systems_region_internal): Detect an
17535 ASCII only string correctly.
17536
17537 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17538 version is 0.
17539
175402008-02-01 Kenichi Handa <handa@m17n.org>
17541
17542 * lread.c: Include "coding.h".
17543 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17544 (load_each_byte, unread_char): New variables.
17545 (readchar_backlog): Delete.
17546 (readchar): Return a character unless load_each_byte is nonzero.
17547 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17548 cons. If unread_char is not -1, simply return it.
17549 (unreadchar): Handle the case that readcharfun is
17550 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17551 (read_multibyte): Delete.
17552 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17553 (read_emacs_mule_char): New functions.
17554 (Fload): Even if the file doesn't have the extension ".elc", if
17555 safe_to_load_p returns a positive version number, assume that the
17556 file contains bytecompiled code. If the version is less than 22,
17557 load the file while decoding multibyte sequences by emacs-mule.
17558 (readevalloop): Don't use readchar_backlog.
17559 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17560 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17561 (read_escape): Delete the arg BYTEREP.
17562 (read1): Set load_each_byte to 1 temporarily while handling
17563 #@NUMBER. Don't call read_multibyte.
17564 (read_vector): Call Fread with a cons. If readcharfun is
17565 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17566 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17567 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17568 and Qload_force_doc_strings.
17569
175702008-02-01 Kenichi Handa <handa@m17n.org>
17571
17572 * xdisp.c (face_before_or_after_it_pos): Call
17573 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17574
175752008-02-01 Kenichi Handa <handa@m17n.org>
17576
17577 * character.h (TRAILING_CODE_P): New macro.
17578 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17579 (string_char_with_unification): Fix prototype.
17580 (Vscript_alist): Extern it.
17581
17582 * character.c (Vscript_alist): New variable.
17583 (string_char_with_unification, str_as_unibyte)
17584 (string_escape_byte8): Add `const' to local variables.
17585 (syms_of_character): Declare script-alist as a Lisp variable.
17586
17587 * charset.h (Vcharset_ordered_list): Extern it.
17588 (charset_ordered_list_tick): Extern it.
17589 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17590 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17591 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17592 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17593 (Funify_charset): Adjust for the change of Funify_charset.
17594
17595 * charset.c (charset_ordered_list_tick): New variable.
17596 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17597 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17598 deunify intead of unify a charset.
17599 (string_xstring_p): Add `const' to local variables.
17600 (find_charsets_in_text): Add `const' to arguments and local variables.
17601 (encode_char): Adjust for the change of Funify_charset. Fix
17602 detecting of invalid code.
17603 (Fset_charset_priority): Increment charset_ordered_list_tick.
17604 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17605 and TO_CODE.
17606
17607 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17608 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17609 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17610 (decode_coding_ccl, consume_chars)
17611 (Ffind_coding_systems_region_internal)
17612 (Fcheck_coding_systems_region): Add `const' to local variables.
17613
17614 * print.c (print_object): Use octal form for printing the
17615 contents of a bool vector.
17616
176172008-02-01 Dave Love <fx@gnu.org>
17618
17619 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17620 <version == 20>: Refuse to load.
17621
176222008-02-01 Dave Love <fx@gnu.org>
17623
17624 * fns.c: Move coding.h.
17625 (Qcodeset, Qdays, Qmonths): New.
17626 (concat): Use CHARACTERP instead of INTEGERP.
17627 (Flocale_codeset): Delete.
17628 (Flanginfo): New function.
17629 (syms_of_fns): Change accordingly.
17630
17631 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17632
176332008-02-01 Dave Love <fx@gnu.org>
17634
17635 * casetab.c (init_casetab_once, init_casetab_once): Fix
17636 CHAR_TABLE_SET call.
17637
17638 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17639
17640 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17641
17642 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17643 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17644 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17645
17646 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17647
17648 * coding.c (ENCODE_DESIGNATION, decode_eol)
17649 (make_conversion_work_buffer, code_conversion_restore)
17650 (Fdefine_coding_system_internal): Convert Lisp types.
17651 (code_conversion_restore): Use EQ, not ==.
17652 (Fencode_coding_string): Fix code_convert_string call.
17653
17654 * coding.h (code_convert_region): Fix prototype.
17655
17656 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17657
17658 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17659 (Ffontset_info): Convert Lisp types.
17660
17661 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17662
17663 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17664
17665 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17666
17667 * chartab.c: Include "...h", not <...h> in some cases.
17668
17669 * callproc.c (Fcall_process): Remove unused variables.
17670
176712008-02-01 Dave Love <fx@gnu.org>
17672
17673 * coding.c (Fset_coding_system_priority): Allow null arg list.
17674
176752008-02-01 Dave Love <fx@gnu.org>
17676
17677 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17678 (Fself_insert_and_exit): Use CHARACTERP.
17679
17680 * callproc.c (Fcall_process): Remove unused vars.
17681
17682 * xterm.c (XTread_socket): Add extra dead keysyms.
17683
17684 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17685
17686 * dispextern.h: Remove prototypes for redraw_frame,
17687 redraw_garbaged_frames.
17688
17689 * cmds.c (Fself_insert_command): Use CHARACTERP.
17690
17691 * chartab.c (make_sub_char_table): Remove unused var.
17692 (Fset_char_table_default, Fmap_char_table): Doc fix.
17693
17694 * keymap.c (access_keymap): Remove generic char code.
17695 (push_key_description): Use CHARACTERP.
17696
176972008-02-01 Dave Love <fx@gnu.org>
17698
17699 * charset.c: Doc fixes.
17700 (Funify_charset): Extra checking.
17701
177022008-02-01 Dave Love <fx@gnu.org>
17703
17704 * lread.c: Remove some unused variables.
17705 (safe_to_load_p): If safe, return the magic number version byte.
17706 (Fload): Maybe use load-with-code-conversion.
17707
177082008-02-01 Kenichi Handa <handa@m17n.org>
17709
17710 * category.c (Fmodify_category_entry): Don't modify the contents
17711 of category_set for characters out of the range. Avoid
17712 unnecessary modification.
17713
17714 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17715 Vchar_unify_table. The default value of the table is now nil.
17716
17717 * character.c (syms_of_character): Setup Vchar_width_table for
17718 eight-bit-control and raw-byte chars.
17719
17720 * charset.h (enum define_charset_arg_index): Delete
17721 charset_arg_parents and add charset_arg_subset and
17722 charset_arg_superset.
17723 (enum charset_attr_index): Delete charset_parents and add
17724 charset_subset and charset_superset.
17725 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17726 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17727 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17728 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17729 (CHARSET_SUPERSET): New macros.
17730 (charset_work): Extern it.
17731 (ENCODE_CHAR): Use charset_work.
17732 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17733 (map_charset_chars): Extern it.
17734
17735 * charset.c (load_charset_map): Set the default value of encoder
17736 and deunifier char-tables to nil.
17737 (map_charset_chars): Change argument. Change callers. Use
17738 map_char_table_for_charset instead of map_char_table.
17739 (Fmap_charset_chars): New optional args from_code and to_code.
17740 (Fdefine_charset_internal): Adjust for the change of
17741 `define-charset' (:parents -> :subset or :superset).
17742 (charset_work): New variable.
17743 (encode_char, syms_of_charset): Adjust for the change of
17744 Fdefine_charset_internal.
17745 (Ffind_charset_string): Setup the vector `charsets' correctly.
17746
17747 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17748 the previous change.
17749 (char_table_ref_and_range): Adjust for the above change.
17750 (map_sub_char_table_for_charset): New function.
17751 (map_char_table_for_charset): New function.
17752
17753 * keymap.c (describe_vector): Handle a char-table directly here.
17754 (describe_char_table): Delete.
17755
17756 * lisp.h (map_charset_chars): Delete.
17757
177582008-02-01 Dave Love <fx@gnu.org>
17759
17760 * fns.c (count_combining): Comment out (unused).
17761 (Flocale_codeset): New.
17762 (syms_of_fns): Defsubr it.
17763
17764 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17765 (size_t): Remove.
17766
177672008-02-01 Dave Love <fx@gnu.org>
17768
17769 * Makefile.in (chartab.o): Depend on charset.h.
17770
177712008-02-01 Kenichi Handa <handa@m17n.org>
17772
17773 * character.c (syms_of_character): Set the default value of
17774 Vprintable_chars to Qnil.
17775
177762008-02-01 Dave Love <fx@gnu.org>
17777
17778 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17779
177802008-02-01 Kenichi Handa <handa@m17n.org>
17781
17782 * charset.c (load_charset_map): Handle the case that from < to
17783 correctly.
17784
17785 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17786 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17787 Pay attention to raw-8-bit chars.
17788
177892008-02-01 Kenichi Handa <handa@m17n.org>
17790
17791 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17792 It is not bytecompiled now.
17793
17794 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17795 (charset_jisx0208): New variables.
17796 (Fdefine_charset_internal): Setup them if appropriate.
17797 (init_charset_once): Initialize them to -1.
17798
17799 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17800 (charset_jisx0208): Extern them.
17801
17802 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17803 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17804 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17805 (setup_iso_safe_charsets): Fix arguments to Fassq.
17806 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17807 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17808 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17809 (encode_coding_iso_2022): Change the 1st arg to
17810 ENCODE_ISO_CHARACTER to a variable.
17811
178122008-02-01 Kenichi Handa <handa@m17n.org>
17813
17814 * charset.h (enum define_charset_arg_index): New enums
17815 charset_arg_min_code and charset_arg_max_code.
17816 (struct charset): New member char_index_offset.
17817
17818 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17819 Take charset->char_index_offset into account.
17820 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17821 args[charset_arg_max_code]. Setup charset.char_index_offset.
17822 (syms_of_charset): Fix args to Fdefine_charset_internal.
17823
178242008-02-01 Dave Love <fx@gnu.org>
17825
17826 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17827
178282008-02-01 Dave Love <fx@gnu.org>
17829
17830 * coding.c: Doc fixes.
17831 (Fcoding_system_aliases): Fix return value.
17832 (Qmac): Remove (duplicated) definition.
17833
178342008-02-01 Dave Love <fx@gnu.org>
17835
362654a6
JB
17836 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17837 New functions.
aac0c6e3
MR
17838
17839 * character.c (Fstring): Doc fix.
17840
17841 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17842
362654a6 17843 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17844 (font-encoding-alist): Doc fix.
17845
178462008-02-01 Dave Love <fx@gnu.org>
17847
17848 * term.c (costs_set): Declare static, non-initialized for pcc.
17849 (encode_terminal_code): Remove unused var.
17850
17851 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17852 for K&R.
17853
17854 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17855
17856 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17857 (suffixes): Move out of make_subsidiaries for K&R.
17858
17859 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17860
17861 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17862
178632008-02-01 Dave Love <fx@gnu.org>
17864
17865 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17866
17867 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17868
178692008-02-01 Yong Lu <lyongu@asia-infonet.com>
17870
17871 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17872
17873 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17874
178752008-02-01 Kenichi Handa <handa@m17n.org>
17876
17877 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17878 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17879
178802008-02-01 Kenichi Handa <handa@m17n.org>
17881
17882 * coding.c (decode_coding_charset): Adjust for the change of
17883 Fdefine_coding_system_internal.
17884 (Fdefine_coding_system_internal): For a coding system of
17885 `charset' type, store a list of charset IDs in
17886 `charset_attr_charset_valids' element of coding attributes.
17887
178882008-02-01 Kenichi Handa <handa@m17n.org>
17889
17890 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17891 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17892 caller. Handle 2-byte and 3-byte charsets correctly.
17893 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17894 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17895 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17896 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17897 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17898 sequence.
17899 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17900 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17901 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17902 and alt&rule composition.
17903 (decode_coding_iso_2022): Handle composition correctly.
17904 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17905
17906 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17907 re-defining a charset. If the charset has :emacs-mule-id, setup
17908 emacs_mule_bytes.
17909 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17910
179112008-02-01 Kenichi Handa <handa@m17n.org>
17912
17913 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17914 (encode_coding_big5, encode_coding_charset): If coding requires safe
17915 encoding, produce a character specified by
17916 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17917
179182008-02-01 Dave Love <fx@gnu.org>
17919
17920 * xterm.c (XSetIMValues): Declare.
17921
17922 * process.c: Conditionally include sys/wait.h, pty.h.
17923
17924 * print.c (print_object): Fix print format for 64-bit systems.
17925
17926 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17927
17928 * buffer.c (emacs_strerror): Declare.
17929
17930 * fontset.c (Fclear_face_cache): Declare.
17931 (accumulate_font_info): Comment-out (unused).
17932 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17933 variables.
17934
17935 * character.h (string_escape_byte8): Declare.
17936
17937 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17938 unused vars.
17939 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17940 (Fmap_charset_chars): Doc fix.
17941
17942 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17943 (Fset_coding_system_priority, Fset_coding_system_priority)
17944 (Fdefine_coding_system_internal): Doc fix.
17945
179462008-02-01 Dave Love <fx@gnu.org>
17947
17948 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17949
179502008-02-01 Kenichi Handa <handa@m17n.org>
17951
17952 * character.c (string_escape_byte8): Make multibyte string with
17953 correct size.
17954
17955 * charset.c (Fmake_char): Delete unnecessary code.
17956
179572008-02-01 Kenichi Handa <handa@m17n.org>
17958
17959 * xfns.c (x_encode_text): Allocate coding.destination here, and
17960 call encode_coding_object with dst_object Qnil.
17961
17962 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17963 multibyte form correctly.
17964
17965 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17966 against Vfont_encoding_alist.
17967
17968 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17969 handling of charset list.
17970 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17971 (decode_coding_object): Move point to coding->dst_pos before
17972 calling post-read-conversion function.
17973 (encode_coding_object): Give correct arguments to
17974 pre-write-conversion. Ignore the return value of
17975 pre-write-conversion function. Pay attention to the case that
17976 pre-write-conversion changes the current buffer. If dst_object is
17977 Qt, even if coding->src_bytes is zero, allocate at least one byte
17978 to coding->destination.
17979
17980 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17981
17982 * charset.c (Fmake_char): Make it more backward compatible.
17983 (Fmap_charset_chars): Fix docstring.
17984
179852008-02-01 Dave Love <fx@gnu.org>
17986
17987 * coding.c: Doc fixes.
17988 (Fdefine_coding_system_alias): Use names, not symbols, in
17989 coding-system-alist.
17990
179912008-02-01 Kenichi Handa <handa@m17n.org>
17992
17993 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17994 of calling free_realized_face.
17995
179962008-02-01 Yong Lu <lyongu@asia-infonet.com>
17997
17998 * charset.c (read_hex): Don't treat SPC as a comment starter.
17999 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18000 (Fdecode_char): Fix typo.
18001
180022008-02-01 Kenichi Handa <handa@m17n.org>
18003
18004 * charset.h (struct charset): New member `code_space_mask'.
18005
18006 * coding.c (coding_set_source): Delete the local variable beg_byte.
18007 (encode_coding_charset, Fdefine_coding_system_internal):
18008 Delete the local variable charset.
18009 (Fdefine_coding_system_internal): Setup
18010 attrs[coding_attr_charset_valids] correctly.
18011
18012 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18013 member to check if CODE is valid or not.
18014 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18015 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18016 is within the range of charset->min_code and carset->max_code.
18017
180182008-02-01 Dave Love <fx@gnu.org>
18019
18020 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18021
18022 * dispextern.h (generate_ascii_font): Fix return type.
18023
18024 * xfaces.c (generate_ascii_font): Fix arg declaration.
18025
18026 * coding.c (coding_inherit_eol_type)
18027 (Fset_terminal_coding_system_internal)
18028 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18029
180302008-02-01 Kenichi Handa <handa@m17n.org>
18031
18032 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18033 multiple charsets correctly.
18034
180352008-02-01 Kenichi Handa <handa@m17n.org>
18036
18037 * search.c (boyer_moore): Fix handling of multibyte character
18038 translation.
18039
18040 * xdisp.c (display_mode_element): When the variable `elt' is
18041 changed, update `this' and `lisp_string'.
18042
180432008-02-01 Kenichi Handa <handa@m17n.org>
18044
18045 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18046
18047 * callproc.c (Fcall_process): Be sure to give the current buffer
18048 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18049
18050 * charset.c (struct charset_map_entries): New struct.
18051 (load_charset_map): Rename from parse_charset_map. New args
18052 entries and n_entries. Change caller.
18053 (load_charset_map_from_file): Rename from load_charset_map.
18054 Change caller. New arg control_flag. Call load_charset_map at
18055 the tail.
18056 (load_charset_map_from_vector): New function.
18057 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18058 (encode_char): If the charset is compact, change a character index
18059 to a code point.
18060
18061 * coding.c (coding_alloc_by_making_gap): Check the case that the
18062 source and destination are the same correctly.
18063 (decode_coding_raw_text): Set coding->consumed_char and
18064 coding->consumed to 0.
18065 (produce_chars): If coding->chars_at_source is nonzero, update
18066 coding->consumed_char and coding->consumed before calling
18067 alloc_destination.
18068 (Fdefine_coding_system_alias): Register ALIAS in
18069 Vcoding_system_alist.
18070 (syms_of_coding): Define `no-conversion' coding system at the tail.
18071
18072 * fileio.c (Finsert_file_contents): Set coding_system instead of
18073 val. If the current buffer is multibyte, always call
18074 decode_coding_gap.
18075
18076 * xfaces.c (try_font_list): Give higher priority to fontset's
18077 family than face's family.
18078
180792008-02-01 Kenichi Handa <handa@m17n.org>
18080
18081 * callproc.c (Fcall_process): Be sure to give the current buffer
18082 to decode_coding_c_string.
18083
18084 * xfaces.c (try_font_list): Give a family specified in a fontset
18085 higher priority than a family specified in a face.
18086
180872008-02-01 Kenichi Handa <handa@m17n.org>
18088
18089 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18090 Fix arguments to insert_from_buffer.
18091
18092 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18093
180942008-02-01 Kenichi Handa <handa@m17n.org>
18095
18096 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18097 (decode_coding_gap): Set coding->dst_multibyte correctly.
18098
180992008-02-01 Kenichi Handa <handa@m17n.org>
18100
18101 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18102 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18103 (encode_coding_utf_16): Substitute coding->default_char for
18104 non-Unicode characters.
18105 (decode_coding): Don't call record_insert here.
18106 (setup_coding_system): Initialize `surrogate' of
18107 coding->spec.utf_16 to 0.
18108 (EMIT_ONE_BYTE): Fix for multibyte case.
18109
18110 * insdel.c (insert_from_gap): Call record_insert.
18111
181122008-02-01 Kenichi Handa <handa@m17n.org>
18113
18114 * casefiddle.c (casify_region): Fix multibyte case.
18115
18116 * character.c (c_string_width): Add return type `int'.
18117 (char_string_with_unification): Delete arg ADVANCED.
18118
18119 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18120 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18121 (CHAR_STRING_ADVANCE): Make it do-while statement.
18122
18123 * chartab.c (sub_char_table_set_range): Optimize for the case
18124 DEPTH == 3. Add workaround code for a GCC optimization bug.
18125
18126 * charset.c (parse_charset_map): Remove an unused variable.
18127
18128 * coding.c: Delete unused variables.
18129
18130 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18131 earlier. If inserted is zero and the coding system doesn't
18132 require flushing, don't call decode_coding_gap.
18133
18134 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18135
181362008-02-01 Kenichi Handa <handa@m17n.org>
18137
18138 The following changes are for using Unicode as an internal
18139 character model, and use UTF-8 format for buffer/string
18140 representation.
18141
18142 * .gdbinit (xchartable): Adjust for the change of char table structure.
18143 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18144
18145 * Makefile.in (obj): Add character.o and chartab.o.
18146 (lisp, shortlisp): Remove utf-8.elc.
18147 (*.o): For many files, change dependency on charset.h to
18148 character.h, and add dependency on character.h.
18149 (character.o, chartab.o): New targets.
18150
18151 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18152 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18153 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18154 of "charset.h".
18155
18156 * dired.c, filelock.c: Include "character.h".
18157
18158 * alloc.c: Include "character.h" instead of "charset.h".
18159 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18160 (syms_of_alloc): Remove defsubr for Smake_char_table.
18161
18162 * buffer.c: Include "character.h" instead of "charset.h", don't
18163 include "coding.h".
18164 (Fset_buffer_multibyte): Adjust for UTF-8.
18165
18166 * buffer.h: EXFUN Fbuffer_live_p.
18167
18168 * callproc.c: Include "character.h" instead of "charset.h".
18169 (Fcall_process): Big change for the new code-conversion APIs.
18170
18171 * casetab.c: Include "character.h" instead of "charset.h".
18172 (set_canon, set_identity, shuffle): Adjust for the new
18173 map_char_table spec.
18174 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18175 accessing the char table structure.
18176
18177 * chartab.c: New file that implements char table.
18178
18179 * category.c: Include "character.h".
18180 (copy_category_entry): New function.
18181 (copy_category_table): Call map_char_table and copy_category_entry.
18182 (Fmake_category_table): Initialize all top-level slots.
18183 (char_category_set): New function.
18184 (modify_lower_category_set): Delete.
18185 (Fmodify_category_entry): Call char_table_ref_and_range.
18186
18187 * category.h (CATEGORY_SET): Just call char_category_set.
18188
18189 * ccl.c: Include "character.h".
18190 (Qccl, Qcclp): New variables.
18191 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18192 it's less than 256.
18193 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18194 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18195 and DST type.
18196 (ccl_driver): Change types of argument, adjust code accordingly.
18197 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18198 ccl_driver.
18199 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18200
18201 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18202 New members src_multibyte, dst_multibyte, consumed, and produced.
18203 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18204 (CODING_SPEC_CCL_PROGRAM): New macro.
18205 (ccl_driver): Update prototype.
18206 (Qccl, Qcclp, Fccl_program_p): Extern them.
18207 (CHECK_CCL_PROGRAM): New macro.
18208
18209 * character.c, character.h, chartab.c: New files.
18210
18211 * charset.c: Mostly re-written. Move character and multibyte sequence
18212 handling codes to character.c.
18213
18214 * charset.h: Mostly re-written. Move character and multibyte sequence
18215 handling codes to character.h.
18216
18217 * coding.c, coding.h: Mostly re-written.
18218
18219 * composite.c: Include "character.h" instead of "charset.h".
18220 (CHAR_WIDTH): Move to character.h.
18221 (HASH_KEY, HASH_VALUE): Delete.
18222
18223 * composite.h (enum composition_method): Change order of enumeration
18224 symbols.
18225
18226 * data.c: Include "character.h" instead of "charset.h".
18227 (Faref): Call CHAR_TABLE_REF for a char table.
18228 (Faset): Call CHAR_TABLE_SET for a char table.
18229
18230 * dispextern.h (free_realized_face, check_face_attribytes)
18231 (generate_ascii_font): Extern them.
18232 (free_realized_multibyte_face): Delete extern.
18233
18234 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18235 table structure.
18236
18237 * editfns.c: Include "character.h" instead of "charset.h".
18238 (Fchar_to_string): Always call CHAR_STRING.
18239
18240 * emacs.c (main): Call init_charset_once, init_charset,
18241 syms_of_chartab, and syms_of_character.
18242
18243 * fileio.c: Include "character.h" instead of "charset.h".
18244 (Finsert_file_contents): Big change for the new code-conversion API.
18245 (choose_write_coding_system, Fwrite_region): Likewise.
18246 (build_annotations_2): Delete.
18247 (e_write): Big change for the new code-conversion API.
18248
18249 * fns.c: Include "character.h" instead of "charset.h".
18250 (copy_sub_char_table): Move to chartab.c.
18251 (Fcopy_sequence): Call copy_char_table for a char table.
18252 (concat): Delete codes calling count_multibyte.
18253 (string_char_to_byte, string_byte_to_char): Adjust for the new
18254 multibyte form.
18255 (internal_equal): Adjust for the change of char table structure.
18256 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18257 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18258 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18259 (char_table_translate, optimize_sub_char_table)
18260 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18261 chartab.c.
18262 (char_table_ref_and_index): Delete.
18263 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18264 (Fmd5): Call preferred_coding_system instead of accessing
18265 Vcoding_category_list. Adjust for the new code-conversion API.
18266 (syms_of_fns): Move defsubr for char table related functions to
18267 chartab.c.
18268
18269 * fontset.c: Mostly re-written.
18270
18271 * fontset.h (struct font_info): Change type of the member encoding_type.
18272 (enum FONT_SPEC_INDEX): New enum.
18273 (fontset_font_pattern, fs_load_font): Update prototype.
18274 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18275
18276 * indent.c: Include "character.h" instead of "charset.h".
18277 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18278
18279 * insdel.c: Include "character.h" instead of "charset.h".
18280 (copy_text): Don't refer to Vnonascii_translation_table.
18281 (insert_from_gap): New function.
18282
18283 * keyboard.c: Include "character.h" instead of "charset.h".
18284 (command_loop_1): Never call direct_output_forward_char before
18285 a non-ASCII character.
18286 (read_char): If Vkeyboard_translate_table is a char table, always
18287 translate a character.
18288
18289 * keymap.c: Include "character.h".
18290 (store_in_keymap): Handle the case that IDX is a cons.
18291 (Fdefine_key): Handle the case that KEY is a cons and the car part
18292 is also a cons (range).
18293 (push_key_description): Adjust for the new character code.
18294 (describe_vector): Call describe_char_table for a char table.
18295 (describe_char_table): New function.
18296
18297 * keymap.h (describe_char_table): Extern it.
18298
18299 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18300 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18301 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18302 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18303 Delete.
18304 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18305 structure.
18306 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18307 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18308 (CHARTAB_SIZE_BITS_3): New macros.
18309 (chartab_size): Extern it.
18310 (struct Lisp_Char_Table): Re-design.
18311 (struct Lisp_Sub_Char_Table): New structure.
18312 (HASH_KEY, HASH_VALUE): Move from fns.c.
18313 (CHARACTERBITS): Define as 22.
18314 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18315 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18316 (GC_SUB_CHAR_TABLE_P): New macro.
18317 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18318 (code_convert_string_norecord): Deleted extern.
18319 (init_character_once, syms_of_character, init_charset)
18320 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18321
18322 * lread.c: Include "character.h".
18323 (read_multibyte): New arg NBYTES.
18324 (read_escape): Change the meaning of returned *BYTEREP.
18325 (to_multibyte): Delete.
18326 (read1): Adjust the handling of char table and string.
18327
18328 * print.c: Include "character.h" instead of "charset.h".
18329 (print_string): Convert 8-bit raw bytes to octal form by
18330 string_escape_byte8.
18331 (print_object): Adjust for the new multibyte form. Print 8-bit
18332 raw bytes always in octal form. Handle sub char table correctly.
18333
18334 * process.c: Include "character.h" instead of "charset.h".
18335 (read_process_output, send_process): Adjust for the new
18336 code-conversion API.
18337
18338 * puresize.h (BASE_PURESIZE): Increase.
18339
18340 * regex.c: Include "character.h" instead of "charset.h".
18341 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18342 (regex_compile): Accept a range whose starting and ending
18343 character have different leading bytes.
18344 (analyse_first): Adjust for the above change.
18345
18346 * search.c: Include "character.h" instead of "charset.h".
18347 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18348 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18349
18350 * syntax.c: Include "character.h" instead of "charset.h".
18351 (syntax_parent_lookup): Delete.
18352 (Fmodify_syntax_entry): Accept a cons as CHAR.
18353 (skip_chars): Adjust for the new multibyte form.
18354 (init_syntax_once): Call char_table_set_range instead of directly
18355 accessing the structure of a char table.
18356
18357 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18358 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18359 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18360 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18361
18362 * term.c: Include "buffer.h" and "character.h".
18363 (encode_terminal_code, write_glyphs): Adjust for the new
18364 code-conversion API.
18365 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18366
18367 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18368
18369 * xdisp.c: Include "character.h".
18370 (get_next_display_element): Adjust for the new multibyte form.
18371 (disp_char_vector): Adjust for the new char table structure.
18372 (decode_mode_spec_coding): Adjust for the new structure of
18373 coding system.
18374 (decode_mode_spec): Adjust for the new code-conversion API.
18375
18376 * xfaces.c: Include "character.h" instead of "charset.h".
18377 (load_face_font): Adjust for the change of choose_face_font and
18378 FS_LOAD_FONT.
18379 (generate_ascii_font): New function.
18380 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18381 (set_font_frame_param): Adjust for the change of choose_face_font.
18382 (free_realized_face): Make it public.
18383 (free_realized_faces_for_fontset): Rename from
18384 free_realized_multibyte_face. Free also faces realized for ASCII.
18385 (choose_face_font): Change arguments. Adjust for the change of
18386 fontset_font_pattern and FS_LOAD_FONT.
18387
18388 * xfns.c: Include "character.h".
18389 (x_encode_text): Adjust for the new code-conversion API.
18390
18391 * xselect.c: Don't include "charset.h".
18392 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18393
18394 * xterm.c: Include "character.h".
18395 (x_encode_char): New argument CHARSET. Change caller.
18396 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18397 Call ENCODE_CHAR instead of SPLIT_CHAR.
18398 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18399 CHAR_WIDTH instead of CHARSET_WIDTH.
18400 (XTread_socket): Adjust for the new code-conversion API.
18401 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18402 (x_load_font): Adjust for the change of struct font.
18403
184042008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18405
18406 * xfaces.c (face_at_buffer_position): Remove unused vars.
18407
184082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18409
18410 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18411 Fix overflow checking.
18412
184132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18414
18415 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18416 Cancel previous change.
18417
184182008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18419
18420 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18421 ccl->eight_bit_control. Fix check for buffer overflow.
18422 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18423 (ccl_driver): Initialize extra_bytes to 0.
18424
184252008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18426
18427 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18428 return it ORed with ctrl_modifier.
18429
184302008-01-29 Miles Bader <miles@gnu.org>
18431
18432 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18433
184342008-01-28 Jason Rumney <jasonr@gnu.org>
18435
18436 * w32.c (stat): Don't double check for networked drive.
18437
184382008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18439
18440 * window.c (run_window_configuration_change_hook): New function.
18441 Code extracted from set_window_buffer. Set the selected frame.
18442 (set_window_buffer): Use it.
18443 * window.h (run_window_configuration_change_hook): Declare.
18444 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18445
18446 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18447
184482008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18449
18450 * Makefile.in: Remove references to unused macros.
18451
184522008-01-26 Eli Zaretskii <eliz@gnu.org>
18453
18454 * w32.c (g_b_init_get_sid_sub_authority)
18455 (g_b_init_get_sid_sub_authority_count): New static variables.
18456 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18457 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18458 (init_user_info): Use them to retrieve uid and gid.
18459 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18460 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18461 st_uid and st_gid of the file.
18462
184632008-01-26 Jason Rumney <jasonr@gnu.org>
18464
18465 * w32.c (logon_network_drive): New function.
18466 (stat): Use it.
18467
184682008-01-26 Chong Yidong <cyd@stupidchicken.com>
18469
18470 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18471 invisible text covered with an ellipsis.
18472
184732008-01-25 Richard Stallman <rms@gnu.org>
18474
18475 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18476 jump back to beginning. Move some other initializations after that.
18477 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18478 New variables.
18479 (syms_of_xdisp): Init them.
18480
18481 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18482
18483 * buffer.c (reset_buffer_local_variables):
18484 Implement `permanent-local-hook'.
18485 (Qpermanent_local_hook): New variable.
18486 (syms_of_buffer): Init and staticpro it.
18487
184882008-01-25 Michael Albinus <michael.albinus@gmx.de>
18489
18490 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18491
184922008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18493
18494 * fns.c (Fclrhash): Return TABLE.
18495
184962008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18497
18498 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18499 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18500 is set even without positional changes.
18501 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18502
18503 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18504
185052008-01-23 Jason Rumney <jasonr@gnu.org>
18506
18507 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18508
18509 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18510 the unicode range available in MULE by locale-coding-system.
18511 Improve dbcs lead byte detection. Set event timestamp and modifiers
18512 earlier.
18513
185142008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18515
18516 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18517 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18518 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18519 when used on child processes.
18520
185212008-01-21 Michael Albinus <michael.albinus@gmx.de>
18522
18523 * dbusbind.c (Fdbus_method_return_internal): Rename from
18524 Fdbus_method_return.
18525 (Fdbus_unregister_object): Move to dbus.el.
18526 (Fdbus_call_method, Fdbus_method_return_internal)
18527 (Fdbus_send_signal): Improve debug messages.
18528
185292008-01-20 Martin Rudalics <rudalics@gmx.at>
18530
18531 * undo.c (undo_inhibit_record_point): New variable.
18532 (syms_of_undo): Initialize it.
18533 (record_point): Don't record point when undo_inhibit_record_point
18534 is set.
18535
185362008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18537
18538 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18539
18540 * xdisp.c (Qauto_hscroll_mode): New var.
18541 (syms_of_xdisp): Initialize it.
18542 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18543 window's buffer.
18544 (hscroll_windows): Don't check automatic_hscrolling_p here.
18545
18546 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18547 vscroll if we're setting window-buffer to the value it already has.
18548
185492008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18550
18551 * m/intel386.h: Remove references to XENIX.
18552
185532008-01-17 Andreas Schwab <schwab@suse.de>
18554
18555 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18556 instead of HAVE_X86_64_LIB64_DIR.
18557 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18558
185592008-01-17 Glenn Morris <rgm@gnu.org>
18560
18561 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18562 to HAVE_X86_64_LIB64_DIR.
18563
185642008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18565
18566 * s/irix3-3.h:
18567 * s/irix4-0.h:
18568 * s/386-ix.h:
18569 * s/domain.h:
18570 * s/hpux9-x11r4.h:
18571 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18572
18573 * sysdep.c: Remove code containing references to symbols defined
18574 by unsupported systems.
18575
185762008-01-16 Glenn Morris <rgm@gnu.org>
18577
18578 * coding.c (select-safe-coding-system-function): Doc fix.
18579
185802008-01-15 Glenn Morris <rgm@gnu.org>
18581
18582 * config.in: Revert 2008-01-13 change: this is a generated file.
18583
185842008-01-13 Tom Tromey <tromey@redhat.com>
18585
18586 * lisp.h: Fix typo.
18587
185882008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18589
18590 * m/sequent-ptx.h:
18591 * m/sequent.h:
18592 * s/ptx.h:
18593 * s/ptx4-2.h:
18594 * s/ptx4.h: Remove files for systems no longer supported.
18595
18596 * callproc.c (Fcall_process): Fix previous change.
18597
185982008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18599
18600 * unexsunos4.c: Remove file, system not supported anymore.
18601
18602 * m/mips.h:
18603 * m/intel386.h:
18604 * callproc.c:
18605 * config.in:
18606 * ecrt0.c:
18607 * emacs.c:
18608 * fileio.c:
18609 * frame.c:
18610 * getpagesize.h:
18611 * keyboard.c:
18612 * lread.c:
18613 * process.c:
18614 * puresize.h:
18615 * sysdep.c:
18616 * systty.h:
18617 * syswait.h:
18618 * unexec.c:
18619 * xdisp.c:
18620 * alloc.c: Remove code containing references to symbols defined by
18621 unsupported systems.
18622
186232008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18624
18625 * coding.c (detect_coding_mask): Fix previous change.
18626
186272008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18628
18629 * coding.c (detect_coding_iso2022): New arg
18630 latin_extra_code_state. Allow Latin extra codes only
18631 when *latin_extra_code_state is nonzero.
18632 (detect_coding_mask): If there is a NULL byte, detect the encoding
18633 as UTF-16 or binary. If Latin extra codes exist, detect the
18634 encoding as ISO-2022 only when there's no other proper encoding is
18635 found.
18636
186372008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18638
18639 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18640 #ifdef MAC_OS.
18641
186422008-01-08 Richard Stallman <rms@gnu.org>
18643
18644 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18645
186462008-01-06 Nick Roberts <nickrob@snap.net.nz>
18647
18648 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18649 menu bar in parentheses.
18650
186512008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18652
18653 * m/7300.h:
18654 * m/acorn.h:
18655 * m/alliant-2800.h:
18656 * m/alliant.h:
18657 * m/alliant1.h:
18658 * m/alliant4.h:
18659 * m/altos.h:
18660 * m/amdahl.h:
18661 * m/apollo.h:
18662 * m/att3b.h:
18663 * m/aviion-intel.h:
18664 * m/aviion.h:
18665 * m/celerity.h:
18666 * m/clipper.h:
18667 * m/cnvrgnt.h:
18668 * m/convex.h:
18669 * m/cydra5.h:
18670 * m/delta88k.h:
18671 * m/dpx2.h:
18672 * m/dual.h:
18673 * m/elxsi.h:
18674 * m/f301.h:
18675 * m/gould-np1.h:
18676 * m/gould.h:
18677 * m/i860.h:
18678 * m/ibmps2-aix.h:
18679 * m/ibmrt-aix.h:
18680 * m/ibmrt.h:
18681 * m/irist.h:
18682 * m/is386.h:
18683 * m/isi-ov.h:
18684 * m/mega68.h:
18685 * m/mg1.h:
18686 * m/news-r6.h:
18687 * m/news-risc.h:
18688 * m/news.h:
18689 * m/nh3000.h:
18690 * m/nh4000.h:
18691 * m/ns16000.h:
18692 * m/ns32000.h:
18693 * m/nu.h:
18694 * m/orion.h:
18695 * m/orion105.h:
18696 * m/paragon.h:
18697 * m/pfa50.h:
18698 * m/plexus.h:
18699 * m/pyramid.h:
18700 * m/pyrmips.h:
18701 * m/sh3el.h:
18702 * m/sps7.h:
18703 * m/sr2k.h:
18704 * m/stride.h:
18705 * m/sun1.h:
18706 * m/sun2.h:
18707 * m/sun3-68881.h:
18708 * m/sun3-fpa.h:
18709 * m/sun3-soft.h:
18710 * m/sun3.h:
18711 * m/sun386.h:
18712 * m/symmetry.h:
18713 * m/tad68k.h:
18714 * m/tahoe.h:
18715 * m/targon31.h:
18716 * m/tek4300.h:
18717 * m/tekxd88.h:
18718 * m/tower32.h:
18719 * m/tower32v3.h:
18720 * m/ustation.h:
18721 * m/wicat.h:
18722 * m/xps100.h:
18723 * s/cxux.h:
18724 * s/cxux7.h:
18725 * s/dgux.h:
18726 * s/dgux4.h:
18727 * s/dgux5-4-3.h:
18728 * s/dgux5-4r2.h:
18729 * s/esix.h:
18730 * s/esix5r4.h:
18731 * s/hiuxmpp.h:
18732 * s/hiuxwe2.h:
18733 * s/iris3-5.h:
18734 * s/iris3-6.h:
18735 * s/isc2-2.h:
18736 * s/isc3-0.h:
18737 * s/isc4-0.h:
18738 * s/isc4-1.h:
18739 * s/newsos5.h:
18740 * s/newsos6.h:
18741 * s/osf1.h:
18742 * s/osf5-0.h:
18743 * s/riscix1-1.h:
18744 * s/riscix12.h:
18745 * s/sco4.h:
18746 * s/sco5.h:
18747 * s/sunos4-0.h:
18748 * s/sunos4-1.h:
18749 * s/sunos413.h:
18750 * s/sunos4shr.h:
18751 * s/umax.h:
18752 * s/unipl5-2.h:
18753 * s/xenix.h:
18754 * cxux-crt0.s:
18755 * unexapollo.c:
18756 * unexconvex.c:
18757 * unexenix.c:
18758 * unexsni.c: Remove files for systems no longer supported.
18759
18760 * m/intel386.h: Remove references to unsupported systems.
18761
18762 * w32.c (get_emacs_configuration): Remove reference to i860.
18763
18764 * sysdep.c: Remove dead code.
18765
187662008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18767
18768 * s/rtu.h:
18769 * m/masscomp.h: Remove files. Platform is obsolete.
18770
187712008-01-04 Michael Albinus <michael.albinus@gmx.de>
18772
18773 * dbusbind.c (Fdbus_method_return): New function.
18774 (xd_read_message): Add the serial number to the event.
18775 (Fdbus_register_method): Activate the function.
18776
187772008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18778
18779 * keyboard.c (read_key_sequence): Fix typo.
18780
187812008-01-03 Michael Albinus <michael.albinus@gmx.de>
18782
18783 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18784 (xd_signature, xd_append_arg): Handle element type detection for
18785 empty arrays.
18786 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18787 SDATA () calls; this must be solved more general.
18788 (Fdbus_register_signal): Use SBYTES instead of strlen.
18789
187902008-01-03 Magnus Henoch <magnus@zemdatav>
18791
18792 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18793 unsigned int for byte values (necessary for big-endian platform).
18794 (Fdbus_call_method): Handle the case of no returned arguments.
18795
187962007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18797
18798 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18799
188002007-12-31 Magnus Henoch <mange@freemail.hu>
18801
18802 * dbusbind.c (xd_signature): Signature of variant is just "v".
18803
188042007-12-30 Michael Albinus <michael.albinus@gmx.de>
18805
18806 * dbusbind.c: Fix several errors and compiler warnings.
18807 Reported by Tom Tromey <tromey@redhat.com>.
18808 (XD_ERROR, XD_DEBUG_MESSAGE)
18809 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18810 (xd_append_arg): Part for basic D-Bus types rewritten.
18811 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18812 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18813 appropriate.
18814 (xd_read_message): Return Qnil. Don't signal an error; it is not
18815 useful during event reading.
18816 (Fdbus_register_signal): Signal an error if the check for
18817 FUNCTIONP fails.
18818 (Fdbus_register_method): New function. The implementation is not
18819 complete, the call of the function signals an error therefore.
18820 (Fdbus_unregister_object): New function, renamed from
18821 Fdbus_unregister_signal. The initial check signals an error, if
18822 the object is not well formed.
18823
188242007-12-30 Richard Stallman <rms@gnu.org>
18825
18826 * textprop.c (get_char_property_and_overlay):
18827 Signal error if POSITION is out of range in a buffer.
18828
188292007-12-29 Martin Rudalics <rudalics@gmx.at>
18830
18831 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18832 because the original parameters are in pure storage now.
18833
188342007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18835
18836 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18837
188382007-12-22 Eli Zaretskii <eliz@gnu.org>
18839
18840 * callint.c (syms_of_callint) <command-history>: Add reference to
18841 history-length in the doc string.
18842
188432007-12-17 Jason Rumney <jasonr@gnu.org>
18844
18845 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18846 before passing as wParam.
18847
188482007-12-22 Michael Albinus <michael.albinus@gmx.de>
18849
18850 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18851 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18852 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18853 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18854 as number.
18855 (Fdbus_call_method): Fix docstring.
18856
188572007-12-21 Michael Albinus <michael.albinus@gmx.de>
18858
18859 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18860 New macros.
18861 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18862 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18863 Simplify.
18864 (xd_signature): New function.
18865 (xd_append_arg): Compute also signatures. Major rewrite.
18866 (xd_retrieve_arg): Make debug messages friendly.
18867 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18868 Check for signatures of arguments.
18869
188702007-12-19 Michael Albinus <michael.albinus@gmx.de>
18871
18872 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18873 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18874 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18875 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18876 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18877 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18878 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18879 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18880 (xd_retrieve_value): Remove. Functionality included in ...
18881 (xd_append_arg): New function.
18882 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18883
188842007-12-16 Michael Albinus <michael.albinus@gmx.de>
18885
18886 * dbusbind.c (top): Include <stdio.h>.
18887 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18888 dbus_message_new_method_call and dbus_message_new_signal.
18889 (Fdbus_register_signal): Rename unique_name to uname.
18890 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18891 non-existing unique name. Fix typos in matching rule. Return an
18892 object which is useful in Fdbus_unregister_signal.
18893 (Fdbus_unregister_signal): Reimplementation, in order to remove
18894 only the corresponding entry.
18895 (Vdbus_registered_functions_table): Change the order of entries.
18896 Apply these changes in xd_read_message and Fdbus_register_signal.
18897
188982007-12-16 Andreas Schwab <schwab@suse.de>
18899
18900 * fileio.c (Finsert_file_contents): Fix overflow check to not
18901 depend on undefined integer overflow.
18902
189032007-12-14 Jason Rumney <jasonr@gnu.org>
18904
18905 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18906 for characters above 127.
18907
189082007-12-13 Jason Rumney <jasonr@gnu.org>
18909
18910 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18911 before dereferencing array.
18912 (lookup_vk_code): Remove zero comparison.
18913
189142007-12-14 Michael Albinus <michael.albinus@gmx.de>
18915
18916 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18917 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18918 Use `unsigned int' instead of `uint'.
18919 (xd_read_message, Fdbus_register_signal): Split expressions into
18920 multiple lines before operators "&&" and "||", according to the
18921 GNU Coding Standards.
18922
189232007-12-14 Eli Zaretskii <eliz@gnu.org>
18924
18925 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18926
189272007-12-12 Juri Linkov <juri@jurta.org>
18928
18929 * buffer.c (Frename_buffer): In interactive spec replace
18930 `read-buffer' with `read-string' that uses `buffer-name-history'
18931 as history, and the current buffer's name as default.
18932
189332007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18934
18935 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18936 manipulating the backtrace manually.
18937 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18938 (struct backtrace, backtrace_list): Remove.
18939 (command_loop_1): Remove dead var `no_direct'.
18940
18941 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18942 preserve non-built-in buffer-local variables.
18943 (Fkill_all_local_variables): Don't re-create&re-set permanent
18944 buffer-local variables.
18945
189462007-12-09 Juri Linkov <juri@jurta.org>
18947
18948 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18949 Lisp code that uses `read-buffer' with current buffer as default.
18950
189512007-12-08 Michael Albinus <michael.albinus@gmx.de>
18952
18953 * dbusbind.c (xd_read_message): Generate an event for every
18954 registered handler. There might be several handlers registered
18955 for the same signal.
18956 (Fdbus_register_signal): Don't overwrite a registration for the
18957 same signal. Add a new registration if handlers are different.
18958 (Vdbus_registered_functions_table): Rework doc string.
18959
189602007-12-07 Michael Albinus <michael.albinus@gmx.de>
18961
18962 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18963 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18964 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18965 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18966 Unify argument lists.
18967 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18968 arguments and hash table keys. Use unique name for service.
18969 (Fdbus_unregister_signal): Remove checks.
18970 (Vdbus_registered_functions_table): Fix doc string.
18971
189722007-12-05 Magnus Henoch <mange@freemail.hu>
18973
18974 * process.c (make_process): Initialize pty_flag to 0.
18975
189762007-12-05 Jason Rumney <jasonr@gnu.org>
18977
18978 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18979 specified XBMs.
18980
189812007-12-05 Richard Stallman <rms@gnu.org>
18982
18983 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18984
189852007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18986
18987 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18988 New variable.
18989 (mac_try_close_socket) [MAC_OSX]: New function.
18990 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18991 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18992
18993 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18994 Use mac_try_close_socket.
18995
189962007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18997
18998 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18999 reloc_base.
19000 (copy_dysymtab): Compute relocation base here.
19001 (rebase_reloc_address) [__ppc64__]: New function.
19002 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19003 changed.
19004
190052007-12-05 Jason Rumney <jasonr@gnu.org>
19006
19007 * w32proc.c (sys_spawnve): Quote args with wildcards.
19008
190092007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19010
19011 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19012 __objc_* sections.
19013 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19014
190152007-12-05 Michael Albinus <michael.albinus@gmx.de>
19016
19017 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19018 Move check for Vdbus_registered_functions_table to
19019 xd_read_queued_messages.
19020 (xd_read_queued_messages): Protect xd_read_message calls by
19021 internal_condition_case_1.
19022
190232007-12-04 Michael Albinus <michael.albinus@gmx.de>
19024
19025 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19026 Qdbus_system_bus and Qdbus_session_bus, respectively.
19027 (Vdbus_intern_symbols): Remove.
19028 (Vdbus_registered_functions_table): New hash table.
19029 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19030 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19031 Rewrite in order to manage registered functions by hash table
19032 Vdbus_registered_functions_table.
19033
190342007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19035
19036 * xterm.c: Update URL to Window Manager Specification in comment.
19037
190382007-12-02 Michael Albinus <michael.albinus@gmx.de>
19039
19040 * config.in (HAVE_DBUS): Add.
19041
19042 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19043 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19044 (obj): Add $(DBUS_OBJ).
19045 (LIBES): Add $(DBUS_LIBS).
19046 (dbusbind.o): New target.
19047
19048 * dbusbind.c: New file.
19049
19050 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19051
19052 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19053 (Qdbus_event): New Lisp symbol.
19054 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19055 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19056 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19057
19058 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19059
190602007-12-01 Richard Stallman <rms@gnu.org>
19061
19062 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19063
190642007-11-30 Jason Rumney <jasonr@gnu.org>
19065
19066 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19067 (w32con_reset_terminal_modes): Clear screen buffer.
19068 (w32_face_attributes): Don't use color indexes that are out of range.
19069 Only reverse the default colors.
19070
19071 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19072 WINDOWSNT.
19073
19074 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19075
190762007-11-29 Jason Rumney <jasonr@gnu.org>
19077
19078 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19079 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19080 if the terminal colors are initialized.
19081 (unspecified_fg, unspecified_bg): Remove unused declarations.
19082
190832007-11-29 Andreas Schwab <schwab@suse.de>
19084
19085 * keyboard.c (apply_modifiers): Fix typo.
19086
190872007-11-29 Richard Stallman <rms@gnu.org>
19088
19089 * keymap.c (Fcurrent_local_map): Doc fix.
19090
190912007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19092
19093 * s/gnu-kfreebsd.h: New file.
19094
190952007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19096
19097 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19098 Don't cast redundantly.
19099
19100 * keyboard.c (KEY_TO_CHAR): New macro.
19101 (parse_modifiers, apply_modifiers): Accept integer arguments.
19102 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19103 for chars and symbol keys.
19104 After doing such remapping, apply function-key-map again.
19105
191062007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19107
19108 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19109 compiled anymore.
19110
191112007-11-26 Andreas Schwab <schwab@suse.de>
19112
19113 * process.c (list_processes_1): Fix indentation level of the
19114 command column.
19115
191162007-11-23 Andreas Schwab <schwab@suse.de>
19117
19118 * editfns.c (Fformat): Handle %c specially since it requires the
19119 argument to be of type int.
19120
191212007-11-23 Markus Triska <markus.triska@gmx.at>
19122
19123 * emacs.c (main): Call init_editfns before init_process, since
19124 init_process sets Vprocess_connection_type depending on OS release.
19125
191262007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19127
19128 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19129 (find_symbol_value): Use do_symval_forwarding.
19130
19131 * data.c (set_internal): Set the value in the `cons-cell' (for
19132 Buffer_Local_values) not only for frame-local variables.
19133
191342007-11-22 Andreas Schwab <schwab@suse.de>
19135
19136 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19137 values to sprintf.
19138 * keymap.c (Fsingle_key_description): Likewise.
19139 * print.c (print_object): Likewise.
19140
191412007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19142
19143 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19144 file for image is nil.
19145
191462007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19147
19148 * term.c: Include stdarg.h.
19149 (fatal): Implement using varargs.
19150 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19151
191522007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19153
19154 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19155 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19156 Update call to buffer_slot_type_mismatch.
19157 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19158 (buffer_slot_type_mismatch): Update.
19159 * buffer.c (buffer_local_types): Remove.
19160 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19161 (defvar_per_buffer): Set the type in the buffer_objfwd.
19162
191632007-11-21 Jason Rumney <jasonr@gnu.org>
19164
19165 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19166 CreateFileMapping returns NULL on failure.
19167
191682007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19169
19170 * search.c (Fset_match_data): Remove the `evaporate' feature.
19171 (unwind_set_match_data): Don't use the `evaporate' feature.
19172
191732007-11-21 Jason Rumney <jasonr@gnu.org>
19174
19175 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19176
19177 * w32console.c (w32con_write_glyphs): Remove unused variables.
19178
191792007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19180
19181 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19182
19183 * s/darwin.h (MULTI_KBOARD): Remove.
19184
19185 * macfns.c (x_create_tip_frame, Fx_create_frame)
19186 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19187
191882007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19189
19190 * buffer.c (Fbuffer_local_value): Remove redundant test.
19191 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19192 than in `current-buffer' to match the comment.
19193 Do the swap using swap_in_global_binding.
19194
19195 * data.c (store_symval_forwarding, set_internal):
19196 * eval.c (specbind): Remove dead code.
19197
19198 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19199 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19200 Since we do not want to see internal Lisp_*fwd objects here.
19201
192022007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19203
19204 * sysdep.c (init_system_name): Use getaddrinfo if available.
19205
19206 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19207 (x_scroll_bar_note_movement): start, end, with, height in struct
19208 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19209
192102007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19211
19212 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19213
192142007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19215
19216 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19217 This undoes Richard's change of 14-Oct-2002.
19218
19219 * alloc.c (allocate_other_vector):
19220 * lisp.h (allocate_other_vector): Remove.
19221
19222 * window.c (struct save_window_data): Move non-lisp data to the end
19223 and make it `int' rather than Lisp_Object.
19224 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19225 Done wrap/unwrap integer values.
19226 (Fset_window_configuration, compare_window_configurations):
19227 Update use of fields to their new types.
19228
19229 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19230 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19231 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19232 (SET_SCROLL_BAR_X_WINDOW): Remove.
19233 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19234 Access the new x_window field directly.
19235 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19236 Don't wrap/unwrap integers into Lisp_Objects.
19237 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19238 (x_scroll_bar_report_motion):
19239 Don't wrap/unwrap integers into Lisp_Objects.
19240 (x_term_init): Use SDATA.
19241 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19242 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19243 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19244 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19245 * xfns.c (x_set_background_color):
19246 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19247 Access the new x_window field directly.
19248
19249 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19250 (allocate_pseudovector): Make non-static.
19251
19252 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19253 (allocate_pseudovector): Declare.
19254 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19255
192562007-11-15 Andreas Schwab <schwab@suse.de>
19257
19258 * editfns.c (Fformat): Correctly format EMACS_INT values.
19259 Also take precision into account when formatting an integer.
19260
19261 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19262
192632007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19264
19265 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19266 (syms_of_keyboard): Defsubr it.
19267
19268 * data.c (swap_in_global_binding): Fix longstanding bug where
19269 store_symval_forwarding was not called with the right second argument,
19270 thus causing objfwd-ing from being dropped.
19271
192722007-11-14 Juanma Barranquero <lekktu@gmail.com>
19273
19274 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19275 (Fx_display_pixel_height, Fx_display_planes)
19276 (Fx_display_color_cells, Fx_server_max_request_size)
19277 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19278 (Fx_display_visual_class, Fx_display_save_under):
19279 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19280 (Fx_display_pixel_height, Fx_display_planes)
19281 (Fx_display_color_cells, Fx_server_max_request_size)
19282 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19283 (Fx_display_mm_height, Fx_display_mm_width)
19284 (Fx_display_backing_store, Fx_display_visual_class)
19285 (Fw32_select_font, Fx_display_save_under):
19286 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19287 (Fx_display_pixel_height, Fx_display_planes)
19288 (Fx_display_color_cells, Fx_server_max_request_size)
19289 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19290 (Fx_display_save_under): Fix typos in docstrings.
19291
192922007-11-14 Juanma Barranquero <lekktu@gmail.com>
19293
19294 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19295 corresponding to deleted entries; they are an implementation detail.
19296 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19297 Remove variables.
19298 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19299 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19300 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19301 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19302 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19303 (Fw32_define_rgb_color, Fw32_load_color_file)
19304 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19305 Fix typos in docstrings.
19306 (Fx_server_version): Reflow docstring.
19307 (Fw32_shell_execute): Doc fixes.
19308
193092007-11-13 Juanma Barranquero <lekktu@gmail.com>
19310
19311 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19312 if w32_parse_hot_key returned nil.
19313
193142007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19315
19316 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19317
193182007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19319
aac0c6e3
MR
19320 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19321
19322 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19323
19324 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19325 Remove W32_SCROLL_BAR_CLICK_EVENT.
19326
19327 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19328 Add MULTIMEDIA_KEY_EVENT.
19329
19330 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19331 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19332 (make_lispy_event) [WINDOWSNT]: Use it to translate
19333 MULTIMEDIA_KEY_EVENT.
19334
19335 * w32term.h (WM_APPCOMMAND): Define if not already.
19336 (GET_APPCOMMAND_LPARAM): Likewise.
19337
19338 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19339 WM_APPCOMMAND.
19340
19341 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19342 (syms_of_w32fns): Export and initialize it.
19343 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19344
193452007-11-09 Chong Yidong <cyd@stupidchicken.com>
19346
19347 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19348 twice.
19349
19350 * xdisp.c (handle_face_prop): Fix last change.
19351
193522007-11-09 Richard Stallman <rms@gnu.org>
19353
19354 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19355 not just for after-strings and before-strings.
19356 Call face_for_overlay_string and pass the overlay to it.
19357 (handle_display_prop): Determine whether property came from an overlay.
19358 Pass OVERLAY arg to handle_single_display_spec.
19359 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19360 (load_overlay_strings): Fill in it->string_overlays.
19361 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19362
19363 * xfaces.c (face_for_overlay_string): Function renamed from
19364 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19365
19366 * dispextern.h (struct it): New elt string_overlays.
19367 New elt from_overlay, also in stack.
19368 Rearrange a few elements.
19369 (face_for_overlay_string): Decl renamed from
19370 face_at_buffer_position_no_overlays, and add argument.
19371
193722007-11-09 Richard Stallman <rms@gnu.org>
19373
19374 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19375 to get the base face for an overlay string.
19376
19377 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19378
19379 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19380
19381 * xdisp.c (handle_stop): Move some code out of loop.
19382
193832007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19384
19385 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19386 Fix conversion from Lisp object to ATSUFontID.
19387
193882007-11-09 Jason Rumney <jasonr@gnu.org>
19389
19390 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19391
193922007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19393
19394 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19395 Don't assume regions are aligned to page boundary.
19396 (print_load_command_name): Add LC_UUID if defined.
19397
193982007-11-09 Richard Stallman <rms@gnu.org>
19399
19400 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19401
194022007-11-07 Jason Rumney <jasonr@gnu.org>
19403
19404 * s/windows95.h: Remove.
19405
194062007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19407
19408 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19409 abort with a message on unhandled store_type values.
19410
194112007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19412
19413 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19414 Remove HAVE_X11R5 and HAVE_X11R4.
19415
194162007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19417
19418 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19419
194202007-11-01 Johan Bockgård <bojohan@gnu.org>
19421
19422 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19423 Don't set s->stippled_p here, since it has already been set by
19424 x_set_glyph_string_gc from x_draw_glyph_string.
19425
194262007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19427
19428 * sunfns.c: Remove file.
19429
19430 * m/sun386.h:
19431 * m/sun2.h:
19432 * m/sparc.h: Remove Sun windows code.
19433
194342007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19435
19436 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19437 (init_keyboard): Set current_kboard's window-system to nil.
19438 (tty_read_avail_input): Typo.
19439 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19440
194412007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19442
19443 * s/usg5-4.h:
19444 * s/usg5-3.h:
19445 * s/ptx.h:
19446 * m/is386.h:
19447 * m/ibmps2-aix.h:
19448 * Makefile.in: Remove all mentions of X10.
19449
19450 * dispnew.c (syms_of_display): Don't mention version 10.
19451
194522007-10-28 Juanma Barranquero <lekktu@gmail.com>
19453
19454 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19455 ($(BLD)/abbrev.$(O)): Remove.
19456
194572007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19458
19459 Rewrite abbrev.c in Elisp.
19460 * image.c (Qcount): Don't declare as extern.
19461 (syms_of_image): Initialize and staticpro `Qcount'.
19462 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19463 * emacs.c (main): Don't call syms_of_abbrev.
19464 * Makefile.in (obj): Remove abbrev.o.
19465 (abbrev.o): Remove.
19466 * abbrev.c: Remove.
19467
194682007-10-26 Martin Rudalics <rudalics@gmx.at>
19469
19470 * window.c (window_min_size_2): Don't count header-line.
19471
194722007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19473
19474 * frame.h (struct frame): Move all bit fields after the first bit
19475 field to take advantage of the available space. Group all the
19476 chars together to reduce wasted space due to padding.
19477
194782007-10-26 Juanma Barranquero <lekktu@gmail.com>
19479
19480 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19481
19482 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19483 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19484 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19485 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19486 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19487 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19488 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19489 (last_marked, mark_object_loop_halt): Make static.
19490
19491 * frame.c (syms_of_frame) <delete-frame-functions>:
19492 Fix typo in docstring.
19493
194942007-10-25 Juanma Barranquero <lekktu@gmail.com>
19495
19496 * w32.c (init_environment): Fix tiny memory leak.
19497 (w32_get_resource): Remove unused variable `ok'.
19498
194992007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19500
19501 Make `window-system' into a keyboard-local variable (rather than
19502 frame-local as done originally by multi-tty).
19503
19504 * keyboard.h (struct kboard): Add Vwindow_system.
19505 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19506 (mark_kboards): Mark Vwindow_system.
19507
19508 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19509 (init_display): Don't set the obsolete `window-system' frame-param.
19510
19511 * xterm.c (x_term_init):
19512 * w32term.c (w32_create_terminal):
19513 * term.c (init_tty): Set Vwindow_system.
19514 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19515 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19516
19517 * xfns.c (Fx_create_frame, x_create_tip_frame):
19518 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19519 * macfns.c (Fx_create_frame):
19520 Don't set the obsolete `window-system' frame-param.
19521
19522 * frame.h (Qwindow_system): Remove.
19523 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19524 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19525
195262007-10-24 Richard Stallman <rms@gnu.org>
19527
19528 * frame.c (x_figure_window_size): For fullscreen case,
19529 set USPosition | PPosition without clobbering rest of window_prompting.
19530
19531 * keyboard.c (Fcurrent_idle_time): Doc fix.
19532
19533 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19534
195352007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19536
19537 * process.c (unwind_request_sigio): Only define if __ultrix__.
19538
19539 * callproc.c (child_setup): Remove spurious *.
19540
19541 * lisp.h (Fget_text_property): Declare.
19542 (have_menus_p): Declare it here rather than in sys-dep header files.
19543 * macterm.h (have_menus_p):
19544 * msdos.h (have_menus_p):
19545 * xterm.h (have_menus_p): Remove.
19546
19547 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19548 (Fmake_variable_frame_local): Just check the variable's const-ness
19549 rather than checking nil or t.
19550
195512007-10-22 Jason Rumney <jasonr@gnu.org>
19552
19553 * w32fns.c: Include math.h.
19554 (w32_abort): Declaration moved to nt/config.nt.
19555
19556 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19557 (abort): Redefinition moved to nt/config.nt.
19558
19559 * m/windowsnt.h: Remove.
19560
195612007-10-22 Juanma Barranquero <lekktu@gmail.com>
19562
19563 * emacs.c (Fdump_emacs): Fix typo in message.
19564 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19565 <installation-directory>: Reflow docstring.
19566
195672007-10-22 Juri Linkov <juri@jurta.org>
19568
19569 * minibuf.c: Allow minibuffer default to be a list of default values.
19570 With empty input use the first element of this list as returned default.
19571 (string_to_object)
19572 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19573 (read_minibuf): If defalt is cons, set histstring to its car.
19574 (Fread_string): If default_value is cons, set val to its car.
19575 (Fread_buffer): If def is cons, use its car.
19576 (Fcompleting_read): If defalt is cons, set val to its car.
19577
195782007-10-21 Michael Albinus <michael.albinus@gmx.de>
19579
19580 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19581
195822007-10-20 Juanma Barranquero <lekktu@gmail.com>
19583
19584 * doc.c (Fdocumentation): Check for advice in all cases.
19585
195862007-10-19 Chong Yidong <cyd@stupidchicken.com>
19587
19588 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19589
195902007-10-19 Richard Stallman <rms@gnu.org>
19591
19592 * doc.c (Fdocumentation): Check for and handle an advised function.
19593
195942007-10-19 Juanma Barranquero <lekktu@gmail.com>
19595
19596 * process.c (Fset_process_filter): Doc fix.
19597
195982007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19599
19600 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19601 which caused key-translation-map to applied repeatedly (thus breaking
19602 double-mode).
19603
196042007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19605
19606 * xselect.c (x_own_selection, x_handle_selection_clear)
19607 (x_clear_frame_selections):
19608 * w32menu.c (list_of_panes, list_of_items):
19609 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19610 * textprop.c (validate_plist, interval_has_all_properties)
19611 (interval_has_some_properties, interval_has_some_properties_list)
19612 (add_properties, text_property_list):
19613 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19614 * minibuf.c (Fassoc_string):
19615 * macselect.c (x_own_selection, x_clear_frame_selections)
19616 (Fx_disown_selection_internal):
19617 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19618 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19619
196202007-10-17 Chong Yidong <cyd@stupidchicken.com>
19621
19622 * process.c: Link to libs for calling res_init() if available.
19623 (Fmake_network_process): Call res_init() before getaddrinfo or
19624 gethostbyname, if possible.
19625
196262007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19627
19628 * lread.c (read1): Set pvectype for char_tables.
19629
19630 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19631 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19632 Add type checks.
19633 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19634
19635 * alloc.c (free_misc): Use XMISCTYPE.
19636 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19637
196382007-10-17 Glenn Morris <rgm@gnu.org>
19639
19640 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19641 (syms_of_minibuf): Add Qcompletion_ignore_case.
19642 * dired.c (Qcompletion_ignore_case): Change to external.
19643 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19644 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19645 (Fread_file_name): Use it rather than intern'ing.
19646
19647 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19648 (Fread_coding_system): Ignore case of user input.
19649
196502007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19651
19652 * xdisp.c (handle_display_prop): Ignore display specs after
19653 replacing one when string text is being replaced.
19654 (handle_single_display_spec): Pretend as if characters with display
19655 property haven't been consumed only when buffer text is being replaced.
19656
196572007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19658
19659 * xfns.c (Fx_create_frame, Fx_display_list):
19660 * window.c (window_fixed_size_p, enlarge_window)
19661 (shrink_window_lowest_first):
19662 * macterm.c (init_font_name_table):
19663 * macfns.c (Fx_create_frame, Fx_display_list):
19664 * lread.c (close_load_descs):
19665 * keyboard.c (read_char_x_menu_prompt):
19666 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19667 * coding.c (code_convert_region_unwind): Test the type of an object
19668 rather than just !NILP before extracting data from it.
19669
19670 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19671
19672 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19673 (XMISCANY): New macro.
19674 (XMISCTYPE): Use it.
19675 (struct Lisp_Misc_Any): New type.
19676 (union Lisp_Misc): Use it.
19677 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19678 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19679 (find_symbol_value, set_internal, default_value, Fset_default)
19680 (Fmake_variable_buffer_local, Fmake_local_variable)
19681 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19682 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19683 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19684 * alloc.c (allocate_buffer): Set the size and tag.
19685 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19686 Use XMISCANY.
19687 (die): Follow the GNU convention for error messages.
19688 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19689 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19690 tag any more.
19691 (set_buffer_internal_1):
19692 * frame.c (store_frame_param):
19693 * eval.c (specbind):
19694 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19695
19696 * doc.c (Fsnarf_documentation): Simplify.
19697
196982007-10-14 Juanma Barranquero <lekktu@gmail.com>
19699
19700 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19701 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19702
197032007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19704
19705 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19706
197072007-10-14 Juanma Barranquero <lekktu@gmail.com>
19708
19709 * eval.c (do_autoload): Don't save autoloads.
19710
19711 * data.c (Ffset): Save autoload of the function being set.
19712
197132007-10-07 John Paul Wallington <jpw@pobox.com>
19714
19715 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19716 parameter before setting up faces.
19717
197182007-10-13 Eli Zaretskii <eliz@gnu.org>
19719
19720 * ccl.c (Fregister_code_conversion_map):
19721 * keyboard.c (append_tool_bar_item): Reformat last change.
19722
19723 * lisp.h (eabs): Rename from `abs'. All callers changed.
19724
197252007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19726
19727 * buffer.c (add_overlay_mod_hooklist):
19728 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19729 * fontset.c (make_fontset):
19730 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19731 (append_tool_bar_item):
19732 * macmenu.c (grow_menu_items):
19733 * w32menu.c (grow_menu_items):
19734 * xmenu.c (grow_menu_items): Use larger_vector.
19735
197362007-10-13 Eli Zaretskii <eliz@gnu.org>
19737
19738 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19739 selected frame'' on MSDOS).
19740
197412007-10-12 Martin Rudalics <rudalics@gmx.at>
19742
19743 * frame.c (Qexplicit_name): New variable.
19744 (x_report_frame_params): Report it in parameter alist.
19745 (syms_of_frame): Intern and staticpro it.
19746
197472007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19748
19749 * macfns.c (x_create_tip_frame): Set terminal for frame.
19750
197512007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19752
19753 * frame.c (Qenvironment): Remove.
19754 (syms_of_frame) <Qenvironment>: Don't initialize.
19755 (Fdelete_frame): Don't treat the `environment' param specially.
19756 * frame.h (Qenvironment): Don't declare.
19757 * callproc.c (set_initial_environment): Don't set unused frame param.
19758
19759 * frame.c (Fframe_with_environment): Remove.
19760 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19761
19762 * lisp.h (Fframe_with_environment): Don't declare.
19763
197642007-10-10 Juanma Barranquero <lekktu@gmail.com>
19765
19766 * indent.c (indent_tabs_mode, last_known_column)
19767 (last_known_column_modified): Make static.
19768 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19769
197702007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19771
19772 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19773
197742007-10-09 Jason Rumney <jasonr@gnu.org>
19775
19776 * w32term.c (x_set_window_size): Disable code that attempts to tell
19777 Lisp code about a size change before it actually happens.
19778
197792007-10-09 Richard Stallman <rms@gnu.org>
19780
19781 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19782 return HANDLED_RETURN.
19783
197842007-10-08 Martin Rudalics <rudalics@gmx.at>
19785
19786 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19787 when there's an unread command event.
19788
19789 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19790 window autoselection act appropriately when leaving selected frame.
19791 (syms_of_frame): Initialize focus_follows_mouse.
19792 * frame.h (focus_follows_mouse): Extern it.
19793 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19794 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19795 * msdos.c (dos_rawgetc): Likewise.
19796 * w32term.c (w32_read_socket): Likewise.
19797 * xterm.c (handle_one_xevent): Likewise.
19798 * xdisp.c (syms_of_xdisp): In doc-string of
19799 mouse-autoselect-window mention focus-follows-mouse.
19800
198012007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19802
19803 * macterm.c (mac_load_query_font): Fix missing return value.
19804 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19805 Add BLOCK_INPUT.
19806
198072007-10-08 Richard Stallman <rms@gnu.org>
19808
19809 * xdisp.c (get_window_cursor_type): Implement documented behavior
19810 for cursor-in-non-selected-windows = t.
19811
198122007-10-08 Jason Rumney <jasonr@gnu.org>
19813
19814 * w32.c (w32_get_resource): Always close registry keys.
19815
198162007-10-08 Jason Rumney <jasonr@gnu.org>
19817
19818 * makefile.w32-in (LIBS): Add COMCTL32.
19819
19820 * w32fns.c (globals_of_w32fns): Init common controls.
19821
198222007-10-08 Richard Stallman <rms@gnu.org>
19823
19824 * image.c (our_memory_buffer): Rename from omfib_buffer.
19825
198262007-10-08 Richard Stallman <rms@gnu.org>
19827
19828 * buffer.c (Foverlays_at): Doc fix.
19829
198302007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19831
19832 * fns.c (Fplist_put): Preserve uneven tail data.
19833
198342007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19835
19836 * termhooks.h (enum event_kind): Remove trailing comma.
19837
19838 * frame.h (enum): Remove trailing comma.
19839
198402007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19841
19842 * w32proc.c (delete_child): Don't terminate threads of zombies.
19843
198442007-10-08 Martin Rudalics <rudalics@gmx.at>
19845
19846 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19847
19848 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19849 last-repeatable-command.
19850 (init_kboard): Initialize Vlast_repeatable_command.
19851 (command_loop_1): Set it to real_this_command unless that was
19852 bound to an input event.
19853 (mark_kboards): Mark it.
19854
198552007-10-08 Richard Stallman <rms@gnu.org>
19856
19857 * eval.c (condition-case): Doc fix.
19858
198592007-10-08 Masatake YAMATO <jet@gyve.org>
19860
19861 * xfaces.c (tty_supports_face_attributes_p): Fix code
19862 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19863 was copied and not edited.
19864
198652007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19866
19867 Add new `input-decode-map' keymap and use it for terminal
19868 escape sequences.
19869 * keyboard.h (struct kboard): Add Vinput_decode_map.
19870 Remove Vlocal_key_translation_map.
19871 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19872 (init_kboard): Init input-decode-map.
19873 Replace local-key-translation-map back with key-translation-map.
19874 (syms_of_keyboard): Declare input-decode-map.
19875 Remove local-key-translation-map. Update docstrings.
19876 (mark_kboards): Mark Vinput_decode_map.
19877 Don't mark Vlocal_key_translation_map.
19878 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19879 Replace local-key-translation-map back with key-translation-map.
19880 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19881 Bind in input-decode-map rather than function-key-map.
19882
19883 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19884 This was made redundant by the previous introduction of XSETPVECTYPE.
19885
198862007-10-09 Richard Stallman <rms@gnu.org>
19887
19888 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19889
198902007-09-29 Richard Stallman <rms@gnu.org>
19891
19892 * eval.c (internal_condition_case_2, internal_condition_case_1)
19893 (internal_condition_case): Reenable abort if x_catching_errors ()
19894 to see if that really happens and why.
19895
198962007-10-06 Andreas Schwab <schwab@suse.de>
19897
19898 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19899
199002007-10-04 Juanma Barranquero <lekktu@gmail.com>
19901
19902 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19903
199042007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19905
19906 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19907
199082007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19909
19910 * window.h (struct window):
19911 * window.c (struct save_window_data, struct saved_window):
19912 * termhooks.h (struct terminal):
19913 * process.h (struct Lisp_Process):
19914 * frame.h (struct frame):
19915 * buffer.h (struct buffer):
19916 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19917 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19918 The size field of (pseudo)vectors is now unsigned.
19919 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19920
19921 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19922 Turn `count' into an integer.
19923
19924 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19925 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19926 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19927 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19928 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19929
19930 * alloc.c (allocate_pseudovector): New fun.
19931 (ALLOCATE_PSEUDOVECTOR): New macro.
19932 (allocate_window, allocate_terminal, allocate_frame)
19933 (allocate_process): Use it.
19934 (mark_vectorlike): New function.
19935 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19936 (mark_terminals): Use it.
19937 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19938 (Fmake_byte_code): Use XSETPVECTYPE.
19939
19940 * frame.c (Fframe_parameters): Minor simplification.
19941
19942 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19943
19944 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19945
19946 * buffer.c (Fget_buffer_create, init_buffer_once):
19947 * lread.c (defsubr):
19948 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19949
19950 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19951 defined differently in the m/*.h files.
19952 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19953 (XSETPVECTYPE): New macro.
19954 (XSETPSEUDOVECTOR): Use it.
19955
19956 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19957 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19958
19959 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19960 * lread.c (defvar_per_buffer):
19961 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19962
19963 * window.c (candidate_window_p): Only consider as visible frames that
19964 are on the same terminal.
19965
19966 * m/ibms390x.h (MARKBIT): Remove unused macro.
19967
199682007-10-01 Juanma Barranquero <lekktu@gmail.com>
19969
19970 * lread.c (Fload): Fix typo in docstring.
19971
199722007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19973
19974 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19975 of a non-zero value can't yield zero.
19976
199772007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19978
19979 * term.c (term_clear_mouse_face, term_mouse_highlight)
19980 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19981
19982 * print.c (safe_debug_print): Use XHASH.
19983
19984 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19985 Lisp elements such as tags.
19986 (XHASH): New macro.
19987 (EQ): Use it.
19988 (SREF, SSET, STRING_COPYIN): Use SDATA.
19989 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19990
19991 * alloc.c (mark_terminal): Remove left-over declaration.
19992 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19993 (allocate_vectorlike): Remove type argument. Adjust callers.
19994 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19995 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19996
19997 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19998 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19999 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20000 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20001 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20002 Use them.
20003
20004 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20005 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20006 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20007
200082007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20009
20010 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20011 loaded by default.
20012
200132007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20014
20015 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20016 on this tty.
20017 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20018
20019 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20020 Update all users.
20021 (handle_one_term_event): Use Gpm_DrawPointer.
20022 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20023 Signal errors instead of returning nil. Always return nil.
20024 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20025 Make it a noop if gpm-mouse was not activated.
20026 (syms_of_term): Update names.
20027
200282007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20029
20030 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20031 (init_sys_modes): Check that gpm_tty is the current tty.
20032
20033 * alloc.c (allocate_terminal): Set the vector size to only count the
20034 lisp fields. Initialize those to nil.
20035 (mark_object): Don't treat terminals specially.
20036 (mark_terminal): Remove.
20037 (mark_terminals): Use mark_object instead.
20038
20039 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20040 the GC to the beginning.
20041
20042 * indent.h:
20043 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20044
20045 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20046
200472007-09-25 Jason Rumney <jasonr@gnu.org>
20048
20049 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20050
20051 * w32console.c (create_w32cons_output): Remove.
20052
20053 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20054
20055 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20056 (reset_sys_modes): Use reset_terminal_modes_hook.
20057
200582007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20059
20060 * eval.c (do_autoload): Don't output any message.
20061
200622007-09-24 Juri Linkov <juri@jurta.org>
20063
20064 * emacs.c (standard_args): Change priority of "--no-splash"
20065 from 40 to 3. Add "--no-desktop" with the same priority.
20066
200672007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20068
20069 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20070 and optimize the case where they are all 1.
20071
200722007-09-23 Johannes Weiner <hannes@saeurebad.de>
20073
20074 * lisp.h (abs): Define if not defined.
20075 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20076 Don't define `abs', since it's defined in lisp.h.
20077
200782007-09-22 Eli Zaretskii <eliz@gnu.org>
20079
20080 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20081 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20082 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20083 (init_tty): Use DEV_TTY instead of "/dev/tty".
20084 [WINDOWSNT]: No need to protect from NAME arg being null.
20085
200862007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20087
20088 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20089 up the tty state.
20090
200912007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20092
20093 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20094 (gpm_tty): Change its type.
20095 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20096 (gpm_tty): Change its type and initialize it.
20097 (Fterm_open_connection): Check the frame is indeed a tty.
20098 Use the new gpm_tty.
20099 (Fterm_close_connection): Use the new gpm_tty.
20100 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20101 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20102
201032007-09-21 Juanma Barranquero <lekktu@gmail.com>
20104
20105 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20106 underline_color, to draw strike-through.
20107
201082007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20109
20110 * lisp.h (allocate_terminal): Declare.
20111
20112 * window.c (candidate_window_p): Consider frames that are being placed
20113 by the user as somewhere between visible and iconified.
20114 (window_loop): Prefer windows on the current frame.
20115 (Fselect_window): Move the use of select-frame to the beginning so we
20116 can just delegate all the work (it'll call us back anyway).
20117
20118 * frame.c (Qdisplay_environment_variable):
20119 * frame.h (Qdisplay_environment_variable): Delete.
20120
20121 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20122 of the first arg, since that value may be a union.
20123
20124 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20125 parameter rather than Qdisplay_environment_variable. If all else
20126 fails, look for DISPLAY in initial-environment.
20127
201282007-09-21 Glenn Morris <rgm@gnu.org>
20129
20130 * Makefile.in (emacstool): Remove target.
20131 (lisp, shortlisp): Remove termdev.elc.
20132
201332007-09-21 Markus Triska <markus.triska@gmx.at>
20134
20135 * xterm.c (x_delete_display): Compile session management conditionally.
20136
201372007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20138
20139 * callproc.c (getenv_internal_1): New function.
20140 (getenv_internal): Use it.
20141 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20142
20143 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20144 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20145 (Fset_terminal_parameter): Work with dead terminals as well.
20146 (Fmodify_terminal_parameters): Remove.
20147
20148 * terminal.c (get_terminal): Handle terminals.
20149 Make sure the terminal returned is live.
20150 (create_terminal): Use allocate_terminal.
20151 (mark_terminals): Move to alloc.c.
20152 (delete_terminal): Use terminal->name as liveness status.
20153 NULL out fields after freeing their contents.
20154 Don't deallocate the object.
20155 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20156 rather than an int.
20157 (Fterminal_live_p): Accept non-integer arguments.
20158 (Fterminal_list): Return terminal objects rather than an ints.
20159
20160 * alloc.c (enum mem_type): New member for `terminal' objects.
20161 (allocate_terminal): New function.
20162 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20163 Handle terminals.
20164 (mark_terminal): New fun.
20165 (mark_terminals): Move from terminal.c.
20166
20167 * term.c (get_tty_terminal): Don't treat output_initial specially.
20168 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20169 (delete_tty): Use terminal->name as liveness status.
20170
20171 * termhooks.h (struct terminal): Make it into a pseudovector.
20172 Remove `deleted' replaced by checking `name's nullness.
20173
20174 * print.c (print_object): Handle terminals.
20175
20176 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20177 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20178
20179 * frame.c (make_terminal_frame):
20180 * keyboard.c (tty_read_avail_input):
20181 * w32term.c (x_delete_terminal):
20182 * xfns.c (Fx_create_frame, x_create_tip_frame):
20183 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20184
201852007-09-20 Glenn Morris <rgm@gnu.org>
20186
20187 * process.c (Fmake_network_process): Doc fix.
20188
201892007-09-19 Jason Rumney <jasonr@gnu.org>
20190
20191 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20192
201932007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20194
20195 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20196 Fix a C warning regarding variable constness.
20197
20198 * xterm.c (handle_one_xevent): Fix a C warning.
20199
202002007-09-18 Jason Rumney <jasonr@gnu.org>
20201
20202 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20203
202042007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20205
20206 * gtkutil.c (gdpy_def): New variable.
20207 (xg_initialize): Initialize gdpy_def.
20208 (xg_display_close): If no other display exists, set gdpy_def to a
20209 new connection.
20210
202112007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20212
20213 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20214 when we have no file name for the icon.
20215 (xg_tool_bar_expose_callback): Remove.
20216 (xg_create_tool_bar): Don't connect expose signal to
20217 xg_tool_bar_expose_callback.
20218 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20219
202202007-09-16 Andreas Schwab <schwab@suse.de>
20221
20222 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20223 values instead of zapping them.
20224
202252007-09-14 Glenn Morris <rgm@gnu.org>
20226
20227 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20228 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20229 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20230 scope and rename to omfib_buffer for clarity.
20231 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20232
202332007-09-14 Kenichi Handa <handa@m17n.org>
20234
20235 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20236
202372007-09-13 Jason Rumney <jasonr@gnu.org>
20238
20239 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20240
20241 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20242
20243 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20244 (mac_term_init): Call here instead, passing rif.
20245
202462007-09-13 Glenn Morris <rgm@gnu.org>
20247
20248 * s/hpux.h: No longer define `static' as nothing.
20249
202502007-09-13 Johan Bockgård <bojohan@gnu.org>
20251
20252 * callint.c (Fcall_interactively): Remove unused var `fun'.
20253
202542007-09-12 Romain Francoise <romain@orebokech.com>
20255
20256 * window.c (prefer_window_split_horizontally, display_buffer):
20257 Revert 2007-09-08 change.
20258
202592007-09-12 Glenn Morris <rgm@gnu.org>
20260
20261 * alloca.c: Remove file.
20262 * Makefile.in (alloca): Do not undef.
20263 (allocaobj, alloca.o): Remove.
20264 (otherobj): Remove allocaobj.
20265 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20266 * regex.c (C_ALLOCA): Remove all references and code that was only
20267 used when this was defined.
20268 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20269 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20270 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20271
20272 * Makefile.in (SOURCES, unlock, relock): Delete.
20273
20274 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20275 (menu_grab_callback): All uses changed.
20276
20277 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20278 (x_reply_selection_request): All uses changed.
20279
202802007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20281
20282 * lread.c (load_warn_old_style_backquotes): Change message to look
20283 better when it appears in the middle of byte-compiler messages.
20284
202852007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20286
20287 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20288
20289 * xterm.c (x_create_terminal): Add comment.
20290
20291 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20292
202932007-09-10 Richard Stallman <rms@gnu.org>
20294
20295 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20296
202972007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20298
20299 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20300 (DEFUN): Document `intspec', use it instead of `prompt'.
20301
20302 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20303
20304 * data.c (Finteractive_form): If the interactive specification starts
20305 with a `(', use it as a Lisp form.
20306
20307 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20308 name and file modes.
20309
20310 * callint.c (Fcall_interactively): Comment fixes.
20311
203122007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20313
20314 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20315 and compiled functions.
20316
203172007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20318
20319 * window.c (prefer_window_split_horizontally): New variable.
20320 (display_buffer): Consider splitting window horizontally depending
20321 on prefer_window_split_horizontally.
20322
203232007-09-08 Eli Zaretskii <eliz@gnu.org>
20324
20325 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20326
203272007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20328
20329 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20330
20331 * frame.c (x_set_frame_parameters): Check number is positive before
20332 using XFASTINT.
20333
20334 * window.c (freeze_window_start): Don't presume selected_window holds
20335 a window object.
20336 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20337
203382007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20339
20340 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20341
203422007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20343
20344 * window.c (Vsplit_window_preferred_function): New var.
20345 (Fdisplay_buffer): Use it.
20346 (syms_of_window): Export, and initialize it.
20347
203482007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20349
20350 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20351
203522007-09-06 Glenn Morris <rgm@gnu.org>
20353
20354 * gtkutil.c (menu_grab_callback) <cnt>:
20355 * xselect.c (x_reply_selection_request) <cnt>: Move static
20356 variable to file scope.
20357
203582007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20359
20360 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20361 consistent values of selected_frame and selected_window.
20362
203632007-09-04 Jason Rumney <jasonr@gnu.org>
20364
20365 * w32console.c (initialize_w32_display): Zero unused hooks.
20366
203672007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20368
20369 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20370 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20371
203722007-09-04 Jason Rumney <jasonr@gnu.org>
20373
20374 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20375 in w32console.c. Set up input. Remove XXX comments that have been
20376 confirmed as correct.
20377
20378 * s/ms-w32.h (MULTI_KBOARD): Define.
20379
20380 * w32console.c (one_and_only_w32cons): Remove.
20381 (initialize_w32_display): Take terminal argument.
20382
20383 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20384 initialize_w32_display.
20385 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20386
20387 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20388
20389 * keyboard.c (discard_mouse_events): Discard it.
20390 (make_lispy_event): Translate it to a lisp event.
20391 (lispy_wheel_names): Add wheel-left and right events.
20392 (syms_of_keyboard): Enlarge wheel_syms.
20393
20394 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20395 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20396
20397 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20398
20399 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20400 from WM_MOUSEHWHEEL.
20401 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20402
20403 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20404 terminal.
20405
20406 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20407 keyboard for the terminal.
20408
204092007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20410
20411 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20412 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20413 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20414 and resume-tty-function to resume-tty-hook.
20415 (Fsuspend_tty, Fresume_tty): Use new names.
20416
204172007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20418
20419 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20420 if it starts with "n:".
20421
204222007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20423
20424 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20425
204262007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20427
20428 * frame.h:
20429 * frame.c (Qterm_environment_variable): Remove.
20430 (syms_of_frame): Don't init and staticpro it.
20431
20432 * callproc.c (getenv_internal): Remove special case for $TERM.
20433
20434 * callproc.c (Vinitial_environment): New variable.
20435 (set_initial_environment): Initialize it.
20436 (syms_of_callproc): Declare it.
20437 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20438 TERM under which a process runs is never related to the TERM in which
20439 Emacs is running.
20440
204412007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20442
20443 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20444 * s/darwin.h: ... do it here.
20445
204462007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20447
20448 * lisp.h (set_initial_environment): Rename from set_global_environment.
20449
20450 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20451 removed by mistake on the multi-tty branch.
20452
20453 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20454 (Fmodify_frame_parameters): Return a value.
20455
20456 * image.c (png_load): Comment-out var only used in commented-out code.
20457
20458 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20459 before passing it to mark_object.
20460
20461 * xfaces.c (internal_resolve_face_name): Return a value.
20462 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20463
20464 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20465 (x_icon): Comment-out var only used in commented-out code.
20466
204672007-08-29 Romain Francoise <romain@orebokech.com>
20468
20469 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20470 QUIT hasn't been provided.
20471
204722007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20473
20474 * callproc.c (child_setup, getenv_internal): Use the
20475 display-environment-variable and term-environment-variable frame params.
20476 (set_initial_environment): Initialise Vprocess_environment.
20477
20478 * config.in: Disable multi-keyboard support on a mac.
20479
20480 * frame.c (Qterm_environment_variable)
20481 (Qdisplay_environment_variable): New variables.
20482 (syms_of_frame): Intern and staticpro them.
20483 (Fmake_terminal_frame): Disable output method test.
20484
20485 * frame.h: Declare them here.
20486
20487 * macfns.c (x_set_mouse_color): Get rif from the frame.
20488 (x_set_tool_bar_lines): Don't use updating_frame.
20489 (mac_window): Add 2 new parameters for consistency with other systems.
20490 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20491 frame parameters following what is done in X11 and w32. Don't use
20492 FRAME_MAC_DISPLAY_INFO.
20493 (Fx_open_connection, start_hourglass): Remove window-system check.
20494 (x_create_tip_frame): Get the keyboard from the terminal.
20495
20496 * macmenu.c: Reorder includes.
20497 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20498
20499 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20500 terminal parameter.
20501 (x_clear_frame): Add a frame parameter.
20502 (note_mouse_movement): Get rif from the frame.
20503 (mac_term_init): Initialize the terminal.
20504 (mac_initialize): Make static and move terminal initialization ...
20505 (mac_create_terminal): ... to this new function.
20506
20507 * macterm.h (struct mac_display_info): Add terminal.
20508 (mac_initialize): Delete declaration.
20509
20510 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20511
20512 * sysdep.c: Comment out text after #endif.
20513
20514 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20515 is defined. Better initialize ttys in windows. Use terminal
20516 specific mouse_position_hook.
20517
20518 * termhooks.h (union display_info): Add mac_display_info.
20519
20520 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20521 Set the default minibuffer frame, window_system and the rest of the
20522 frame parameters following what is done in X11.
20523
20524 * w32term.c (w32_initialize): Make static.
20525
20526 * xselect.c (x_handle_selection_clear): Only access
20527 terminal->kboard when MULTI_KBOARD is defined.
20528
20529 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20530 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20531
205322007-08-29 Jason Rumney <jasonr@gnu.org>
20533
20534 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20535 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20536
20537 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20538 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20539
20540 * keyboard.c (restore_kboard_configuration): Only define when
20541 MULTI_KBOARD defined.
20542
20543 * makefile.w32-in: Update dependancies from Makefile.in.
20544 (OBJ1): Add terminal.$(O)
20545
20546 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20547 Don't define function body.
20548 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20549
20550 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20551
20552 * w32.c (request_sigio, unrequest_sigio): Remove.
20553
20554 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20555 (w32con_clear_frame, w32con_clear_end_of_line)
20556 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20557 (w32con_delete_glyphs, w32con_set_terminal_window)
20558 (scroll_line, w32_sys_ring_bell): Add frame arg.
20559 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20560 Add terminal arg.
20561 (PICK_FRAME): Remove.
20562 (w32con_write_glyphs): Use frame specific terminal coding.
20563 (one_and_only_w32cons): New global variable.
20564 (initialize_w32_display): Use it for storing hooks.
20565 (create_w32cons_output): New function.
20566
20567 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20568 arg a frame.
20569
20570 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20571 Set window_system.
20572 (x_set_tool_bar_lines): Don't use updating_frame.
20573 (Fx_create_frame): Set terminal and ref count.
20574 (Fx_open_connection): Remove window-system check.
20575
20576 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20577
20578 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20579 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20580 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20581 Add frame arg.
20582 (x_delete_terminal, w32_create_terminal): New functions.
20583 (w32_term_init): Create a terminal.
20584 (w32_initialize): Move terminal specific initialization to
20585 w32_create_terminal.
20586
20587 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20588 (w32_clear_rect, w32_clear_area): Use background from frame.
20589 (w32_display_info): Add terminal.
20590 (w32_sys_ring_bell, x_delete_display): Declare here.
20591
20592 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20593
20594 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20595
205962007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20597
20598 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20599 Fix get_named_tty calls for the controlling tty.
20600
206012007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20602
194d44e7 20603 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20604
206052007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20606
20607 * term.c (tty_insert_glyphs): Add missing first parameter.
20608
206092007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20610
20611 * buffer.c (Fbuffer_list, Fbury_buffer):
20612 Take frame->buried_buffer_list into account.
20613
20614 * cm.c (current_tty): New variable, for cmputc().
20615 (cmputc): Use it.
20616 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20617 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20618 (cmgoto): Add tty parameter. Pass it on to calccost().
20619 Use emacs_tputs() instead of tputs().
20620
20621 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20622 tputs().
20623 (current_tty): New variable, for cmputc().
20624 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20625
20626 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20627 (internal_condition_case, internal_condition_case_1)
20628 (internal_condition_case_2): Don't abort when x_catching_errors.
20629
20630 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20631 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20632 prevent crashes caused by bogus longjmps in read_char.
20633
20634 * keymap.h (Fset_keymap_parent): Add EXFUN.
20635
20636 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20637 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20638 Remove redundant definition.
20639
20640 * macfns.c (x_set_mouse_color, x_make_gc):
20641 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20642
20643 * w32term.c (x_free_frame_resources):
20644 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20645 (w32_initialize): Use the accessor macros for terminal characteristics.
20646
20647 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20648 Use the accessor macros for terminal characteristics.
20649 * msdos.c (internal_terminal_init): Use the accessor macros for
20650 terminal characteristics.
20651 (ScreenVisualBell, internal_terminal_init):
20652 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20653
20654 * termopts.h (no_redraw_on_reenter): Declare.
20655
20656 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20657 (mark_terminals, mark_ttys): Declare.
20658 (Fgarbage_collect): Call them.
20659 (mark_object): Mark buried_buffer_list.
20660
20661 * prefix-args.c: Include stdlib.h for exit.
20662
20663 * syssignal.h: Add comment.
20664
20665 * indent.c: Include stdio.h.
20666
20667 * window.h (Vinitial_window_system): Declare.
20668 (Vwindow_system): Delete declaration.
20669
20670 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20671
20672 * image.c (lookup_image): Don't initialize `c' until the xasserts
20673 have been run.
20674
20675 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20676 FRAME_FOREGROUND_PIXEL.
20677
20678 * print.c (print_preprocess): Don't lose print_depth levels while
20679 iterating.
20680
20681 * widget.c (update_from_various_frame_slots):
20682 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20683
20684 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20685 frames.
20686 (window_internal_height): Remove bogus make_number call.
20687 (init_window_once): Call make_terminal_frame with two zero parameters.
20688
20689 * fileio.c (Fread_file_name): Update comment.
20690
20691 * callint.c (Fcall_interactively):
20692 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20693 Make sure it is correctly unwound.
20694
20695 * xsmfns.c (x_session_close): New function.
20696
20697 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20698 Delete declarations.
20699
20700 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20701 (x_output): Remove background_pixel and foreground_pixel fields.
20702 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20703 (x_delete_device, x_session_close): Declare.
20704
20705 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20706 (read_filtered_event): Call `read_char' with a local
20707 `wrong_kboard_jmpbuf'.
20708
20709 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20710 Don't call single_kboard_state. Use FRAME_RIF.
20711
20712 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20713 systems.
20714
20715 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20716 (Fframe_with_environment, Fset_input_meta_mode)
20717 (Fset_quit_char): EXFUN.
20718 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20719 (init_sys_modes, reset_sys_modes): Update prototypes.
20720 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20721
20722 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20723 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20724 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20725 Delete declarations.
20726 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20727 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20728 New declarations.
20729
20730 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20731 already does that during init_display(). Call syms_of_keymap
20732 before syms_of_keyboard. Call `syms_of_terminal'.
20733 Call set_initial_environment, not set_process_environment.
20734 (shut_down_emacs): Call reset_all_sys_modes() instead of
20735 reset_sys_modes().
20736
20737 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20738 (internal_resolve_face_name, resolve_face_name_error): New functions.
20739 (resolve_face_name): Protect against loops and errors thrown by Fget.
20740 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20741 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20742
20743 * scroll.c: Replace CURTTY() with local variables throughout the
20744 file (where applicable).
20745 (calculate_scrolling, calculate_direct_scrolling)
20746 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20747 characteristics.
20748
20749 * keymap.c (Vfunction_key_map): Remove.
20750 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20751 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20752 (Vkey_translation_map): Remove.
20753 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20754 (Fdescribe_buffer_bindings)
20755 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20756 Update for terminal-local key-translation-map.
20757
20758 * Makefile.in (callproc.o): Update dependencies.
20759 (lisp, shortlisp): Add termdev.elc.
20760 (obj): Add terminal.o.
20761 (terminal.o): Add dependencies.
20762 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20763 (data.o, fns.o): Add termhooks.h dependency.
20764 (SOME_MACHINE_LISP): Add dnd.elc.
20765 (minibuf.o): Fix typo.
20766 Update dependencies.
20767
20768 * data.c (do_symval_forwarding, store_symval_forwarding)
20769 (find_symbol_value): Use the selected frame's keyboard, not
20770 current_kboard.
20771
20772 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20773 Vwindow_system.
20774
20775 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20776 Fmenu_bar_open.
20777 (syms_of_xmenu): Update defsubr.
20778 (mouse_position_for_popup, Fx_popup_menu)
20779 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20780 (set_frame_menubar, free_frame_menubar)
b97439ce 20781 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20782 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20783 an X frame.
20784
20785 * xselect.c (x_own_selection): Abort if not an X frame.
20786 (some_frame_on_display): Check if it is an X frame.
20787 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20788
20789 * coding.c: Include frame.h and termhooks.h.
20790 (terminal_coding, keyboard_coding): Delete.
20791 (Fset_terminal_coding_system_internal)
20792 (Fset_keyboard_coding_system_internal)
20793 (Fkeyboard_coding_system)
20794 (Fterminal_coding_system): Add a terminal parameter.
20795 Get terminal_coding from the terminal.
20796 (init_coding_once): Don't call setup_coding_system here.
20797
20798 * dispextern.h (set_scroll_region, turn_off_insert)
20799 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20800 (tty_clear_end_of_line, tty_setup_colors)
20801 (delete_tty, updating_frame)
20802 (produce_special_glyphs, produce_glyphs, write_glyphs)
20803 (insert_glyphs): Remove.
20804 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20805 (tty_turn_off_highlight, get_tty_size): Add declaration.
20806 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20807
20808 * frame.h (enum output_method): Add output_initial.
20809 (struct x_output): Delete.
20810 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20811 Access foreground_pixel and background_pixel directly from the frame.
20812 (tty_display): Delete.
20813 (struct frame): Add buried_buffer_list, foreground_pixel,
20814 background_pixel and terminal. Delete kboard.
20815 (union output_data): Add tty.
20816 (FRAME_KBOARD): Get the kboard from the terminal.
20817 (FRAME_INITIAL_P): New macro.
20818 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20819 (Qterm_environment_variable, Qdisplay_environment_variable)
20820 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20821 New declarations.
20822
20823 * termchar.h (tty_output, tty_display_info): New structures.
20824 (tty_list): Declare.
20825 (FRAME_TTY, CURTTY): New macros.
20826 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20827 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20828 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20829 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20830
20831 * callproc.c: Include frame.h and termhooks.h, for terminal
20832 parameters.
20833 (add_env): New function.
20834 (child_setup): Use it.
20835 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20836 (getenv_internal): Fix get_terminal_param call.
20837 (Fgetenv_internal, egetenv): Update doc.
20838 (syms_of_callproc): Initialize Vprocess_environment to nil.
20839 Register and initialize them. Remove obsolete defvars. Update doc
20840 strings.
20841 (child_setup): Handle Vlocal_environment_variables.
20842 (getenv_internal): Add terminal parameter.
20843 Handle Vlocal_environment_variables.
20844 (Fgetenv_internal): Add terminal parameter.
20845 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20846 environment in a frame (not terminal) parameter. Update doc strings.
20847 (set_initial_environment): Rename from set_global_environment.
20848 Store Emacs environment in initial frame parameter.
20849
20850 * xdisp.c (redisplay_internal): Update references to
20851 `previous_terminal_frame'.
20852 (display_mode_line, Fformat_mode_line): Replace calls to
20853 `push_frame_kboard' with `push_kboard'.
20854 (get_glyph_string_clip_rects): Add extra parentheses and
20855 braces to prevent compiler warnings.
20856 (calc_pixel_width_or_height): Add xassert to check that the
20857 frame is alive. Don't call `lookup_image' on a termcap frame.
20858 (message2_nolog, message3_nolog, redisplay_internal)
20859 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20860 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20861 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20862 (Fx_display_pixel_width, Fx_display_pixel_height)
20863 (Fx_display_planes, Fx_display_color_cells)
20864 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20865 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20866 (Fx_display_backing_store, Fx_display_visual_class)
20867 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20868 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20869
20870 * xfns.c (x_set_foreground_color x_set_background_color)
20871 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20872 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20873 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20874 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20875 terminal that is being deleted.
20876 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20877 frame parameter, and make sure it overrides any user-supplied setting.
20878 (Fx_close_connection, Fx_synchronize): Unify argument names with
20879 the rest of the DEFUNs.
20880
20881 * dispnew.c (Fsend_string_to_terminal): Update call to
20882 `get_tty_terminal'.
20883 (Fredraw_frame, Fsend_string_to_terminal)
20884 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20885 FRAME_TERMCAP_P and FRAME_TTY.
20886 (window_change_signal): Don't believe width/height values that are
20887 impossibly small.
20888 (Vinitial_window_system): Rename from Vwindow_system.
20889 (termscript, Wcm, rif): Delete.
20890
20891 * termhooks.h (struct terminal): New struct containing the
20892 previously global text display hooks and new members NAME,
20893 DELETED and PARAM_ALIST.
20894 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20895 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20896 (FRAME_RIF): New macros.
20897 (get_terminal_param, get_device): New declarations.
20898 (termscript): Delete declaration.
20899
20900 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20901 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20902 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20903 FRAME_FOREGROUND_PIXEL.
20904 (x_fully_uncatch_errors): Disable definition.
20905 (x_scroll_bar_expose): Fix reference to foreground pixel.
20906 (XTread_socket): Disable loop on all X displays.
20907 (x_delete_terminal): Don't set terminal->deleted and let
20908 delete_terminal delete the frames on the terminal.
20909 (x_delete_display): Doc update to reflect changes in
20910 delete_terminal.
20911 (x_display_info) <terminal>: Move member earlier in the struct.
20912 (deleting_tty): Remove old variable.
20913 (Fsuspend_tty): Call clear_tty_hooks.
20914 (Fresume_tty, init_tty): Call set_tty_hooks.
20915 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20916 errors on X frames.
20917 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20918 (handle_one_xevent): Initialize `f' to NULL.
20919 (x_delete_terminal, x_create_terminal): New functions.
20920 (XTset_terminal_modes, XTreset_terminal_modes)
20921 (XTread_socket, x_connection_closed, x_term_init)
20922 (x_term_init, x_delete_display): Add terminal parameter.
20923 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20924 X connections.
20925
20926 * frame.c: Include termchar.h.
20927 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20928 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20929 (Qdisplay_environment_variable): New vars.
20930 (Fframep): Deal with output_initial.
20931 (Fframe-live-p): Doc fix.
20932 (Fwindow-system): New function.
20933 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20934 (make_terminal_frame): Don't create frames on a terminal that is
20935 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20936 (store_frame_param): Check for found_for_frame before calling XFRAME.
20937 (Fmake_terminal_frame): Handle NULL tty names correctly.
20938 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20939 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20940 frames to refer to a deleted frame in their 'environment parameter.
20941 (Fframe_with_environment): New function.
20942 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20943 (get_future_frame_param): New function.
20944 (Fmake_terminal_frame): Use it.
20945 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20946
20947 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20948 * sysdep.c (reset_sys_modes): Update for renames.
20949
20950 * keyboard.c (tty_read_avail_input): New function.
20951 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20952 (syms_of_keyboard): Defsubr them.
20953 (Fset_input_meta_mode, Fset_quit_char): New functions.
20954 (Fset_input_mode): Split to above functions.
20955 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20956 parameter. Use it in call to `read_char'.
20957 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20958 Set wrong_kboard_jmpbuf correctly in recursive calls.
20959 Use current_kboard to access Vkeyboard_translate_table.
20960 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20961 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20962 Update longjmp invocations. Remember the original current_kboard,
20963 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20964 changes it. Comment out unnecessary calls to
20965 `record_single_kboard_state' and `any_kboard_state'.
20966 Update recursive calls.
20967 (wrong_kboard_jmpbuf): Remove global variable.
20968 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20969 Handle deleted interrupted_kboards correctly; that is a legal
20970 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20971 and read_char calls. Abort if interrupted_kboard died in read_char.
20972 (any_kboard_state, single_kboard_state)
20973 (push_frame_kboard): Remove function.
20974 (pop_kboard): Switch out of single_kboard mode if the kboard has
20975 been deleted. Remove unused variable. Help debugging by not
20976 changing current_kboard unnecessarily. Set current_kboard to the
20977 kboard of the selected frame when the stored kboard object has
20978 been deleted before pop_kboard.
20979 (temporarily_switch_to_single_kboard): Change first parameter to a
20980 frame pointer. Throw an error when caller wants to change kboards
20981 while in single_kboard mode. Don't push_kboard if we weren't in
20982 single kboard state. Don't pop_kboard if we popped into any
20983 kboard state.
20984 (restore_kboard_configuration): Abort if pop_kboard changed the
20985 kboard in single_kboard mode. Call pop_kboard only after setting
20986 up single_kboard mode.
20987 (Frecursive_edit): Switch to single_kboard mode only in nested
20988 command loops.
20989 (cmd_error, command_loop, command_loop_1, timer_check):
20990 Comment out unnecessary call to `any_kboard_state' and
20991 `record_single_kboard_state'.
20992 (delete_kboard): Exit single_kboard mode if we have just deleted
20993 that kboard. Use FRAME_KBOARD.
20994 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20995 `fatal_error_signal'.
20996 (record_single_kboard_state): Don't push_kboard if we weren't in
20997 single kboard state. Don't pop_kboard if we popped into any
20998 kboard state.
20999 (push_frame_kboard): Rename to push_kboard.
21000 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21001 (read_avail_input): Read input from all terminals.
21002 (mark_kboards): Also mark Vkeyboard_translate_table.
21003 (kbd_buffer_store_event_hold): Simplify condition.
21004 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21005 (Vkeyboard_translate_table): Move to struct kboard.
21006 (init_kboard): Initialize Vkeyboard_translate_table.
21007 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21008 Vkeyboard_translate_table. Update doc strings. Update docs of
21009 local-function-key-map and function-key-map.
21010
21011 * terminal.c: New file.
21012
21013 * term.c: Include errno.h.
21014 (Vring_bell_function, device_list, initial_device)
21015 (next_device_id, ring_bell, update_begin, update_end)
21016 (set_terminal_window, cursor_to, raw_cursor_to)
21017 (clear_to_end, clear_frame, clear_end_of_line)
21018 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21019 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21020 (syms_of_term): Move their initialization to terminal.c.
21021 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21022 (Ftty_display_color_cells)
21023 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21024 (clear_tty_hooks, set_tty_hooks)
21025 (init_tty, maybe_fatal): New functions.
21026 (Ftty_type): Return nil if terminal is not on a tty instead of
21027 throwing an error. Doc update.
21028 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21029 Doc update. Initialize new subrs and variables.
21030 (delete_tty): Use terminal->deleted.
21031 (tty_set_terminal_modes): Rename from set_terminal_modes.
21032 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21033 (set_scroll_region): Rename to `tty_set_scroll_region'.
21034 (turn_on_insert): Rename to `tty_turn_on_insert'.
21035 (turn_off_insert): Rename to `tty_turn_off_insert'.
21036 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21037 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21038 (toggle_highligh): Rename to `tty_toggle_highlight'.
21039 (background_highlight): Rename to `tty_background_highlight'.
21040 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21041 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21042 (tty_set_scroll_region, tty_background_highlight)
21043 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21044 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21045 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21046 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21047 Add static modifier.
21048 (tty_reset_terminal_modes, tty_set_terminal_window)
21049 (tty_set_scroll_region, tty_background_highlight)
21050 (tty_highlight_if_desired, tty_cursor_to)
21051 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21052 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21053 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21054 renames.
21055
210562007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21057
21058 * keyboard.c: Qrtl is new.
21059 (parse_tool_bar_item): Handle :rtl keyword.
21060 (syms_of_keyboard): Intern :rtl keyword.
21061
21062 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21063
21064 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21065 so no Lisp code is executed.
21066 (file_for_image, find_rtl_image): New functions.
21067 (xg_get_image_for_pixmap): Use file_for_image.
21068 (update_frame_tool_bar): If direction is RTL, use RTL image if
21069 defined. Use Gtk stock images if defined.
21070
210712007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21072
21073 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21074 for nonexistent or zero-width glyph in composition glyph.
21075
210762007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21077
21078 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21079
21080 * xdisp.c (Finvisible_p): New function.
21081 (syms_of_xdisp): defsubr it.
21082
210832007-08-24 Juanma Barranquero <lekktu@gmail.com>
21084
21085 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21086 Doc fixes.
21087
210882007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21089
21090 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21091
210922007-08-24 Martin Rudalics <rudalics@gmx.at>
21093
21094 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21095 whether decoding has modified buffer contents.
21096
210972007-08-24 Jason Rumney <jasonr@gnu.org>
21098
21099 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21100 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21101 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21102 (init_svg_functions) [HAVE_NTGUI]: New function.
21103 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21104 (svg_load_image): Use them.
21105 (svg_load_image) [HAVE_NTGUI]: Implement background.
21106
211072007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21108
21109 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21110 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21111 (LIBX): Remove @RSVG_LIBS@.
21112 (LIBES): Add $(RSVG_LIBS).
21113
21114 * image.c (svg_load_image): Blend with specified background if exists.
21115 Use IMAGE_BACKGROUND. Add Mac OS Support.
21116
21117 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21118 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21119 Remove macros.
21120 [MAC_OSX] (socket_callback): Do nothing.
21121 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21122 ReceiveNextEvent.
21123 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21124 socket_callback.
21125 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21126
211272007-08-22 Glenn Morris <rgm@gnu.org>
21128
21129 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21130
211312007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21132
21133 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21134
21135 * image.c: Add support for SVG images. Some additional comments
21136 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21137 (svg_image_p): New function to test for SVG image.
21138 (svg_load): New function to load SVG image.
21139 (svg_load_image): New function, helper for svg_load.
21140 (Qsvg): New Lisp_object.
21141 (svg_keyword_index): New enum.
21142 (svg_format): New static `image_keyword' struct.
21143 (svg_type): New static `image_type' struct.
21144 (librsvg/rsvg.h): Include it.
21145
211462007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21147
21148 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21149
211502007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21151
21152 * lread.c (Qold_style_backquotes): New var.
21153 (syms_of_lread): Init and staticpro it.
21154 (load_warn_old_style_backquotes): New fun.
21155 (Fload): Use them to warn about old style backquotes.
21156 (end_of_file_error, Fload): Remove unused vars.
21157
21158 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21159
21160 * lread.c (Vold_style_backquotes): New var.
21161 (syms_of_lread): Init and export it to Elisp.
21162 (read1): Set it when we find an old-style (back)quote.
21163
211642007-08-22 Jason Rumney <jasonr@gnu.org>
21165
21166 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21167
211682007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21169
21170 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21171
211722007-08-19 Richard Stallman <rms@gnu.org>
21173
21174 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21175
211762007-08-19 Andreas Schwab <schwab@suse.de>
21177
21178 * alloc.c (pure): Round PURESIZE up.
21179
211802007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21181
21182 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21183 active frame.
21184
211852007-08-16 Richard Stallman <rms@gnu.org>
21186
21187 * eval.c (Fcommandp): Add parens to clarify.
21188
21189 * minibuf.c (Fall_completions): Use enum for type of table.
21190
21191 * emacs.c (USAGE2): Improve text.
21192
211932007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21194
21195 * term.c (tty_default_color_capabilities): Declare static
21196 variables in file scope, to avoid HPUX compiler problem.
21197
211982007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21199
21200 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21201 to gtk_toolbar_insert.
21202
212032007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21204
21205 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21206
21207 * insdel.c (reset_var_on_error): New fun.
21208 (signal_before_change, signal_after_change):
21209 Use it to reset (after|before)-change-functions to nil in case of error.
21210 Bind inhibit-modification-hooks to t.
21211 Don't bind (after|before)-change-functions to nil while they run.
21212
212132007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21214
21215 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21216 filling pixmap with stippled background.
21217
212182007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21219
21220 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21221 Don't use invisible frame as parent window for repositioning.
21222
212232007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21224
21225 * print.c (new_backquote_output): Rename from old_backquote_output.
21226 (print): Inverse its logic (according to its name) so as to match the
21227 behavior of new_backquote_flag in lread.c.
21228
212292007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21230
21231 * gmalloc.c (posix_memalign): New function.
21232
21233 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21234 ActivateControl/DeactivateControl here.
21235 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21236 frame-notice-user-settings is non-nil.
21237 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21238 for kEventParamFMFontStyle.
21239 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21240 mac_pass_command_to_system and mac_pass_control_to_system here.
21241 (XTread_socket): Call ActivateControl/DeactivateControl here.
21242 (XTread_socket) [TARGET_API_MAC_CARBON]:
21243 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21244 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21245 for window repositioning.
21246
212472007-08-08 Glenn Morris <rgm@gnu.org>
21248
21249 * Replace `iff' in doc-strings and comments.
21250
212512007-08-07 Chong Yidong <cyd@stupidchicken.com>
21252
21253 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21254
212552007-08-07 Martin Rudalics <rudalics@gmx.at>
21256
21257 * fileio.c (Finsert_file_contents): Run format-decode and
21258 after_insert_file_functions on entire buffer when REPLACE is
21259 non-nil and inhibit modification_hooks and point_motion_hooks.
21260 For consistency, run after_insert_file_functions iff something
21261 got inserted. Move signal_after_change and update_compositions
21262 after code running after_insert_file_functions. Make sure that
21263 undo_list doesn't record intermediate steps of the decoding process.
21264
212652007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21266
21267 * emacs.c (main)
21268 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21269 Call malloc_enable_thread on interactive startup.
21270
21271 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21272 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21273 [USE_PTHREAD]: Conditionalize with it.
21274 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21275 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21276 New functions.
21277
212782007-08-06 Chong Yidong <cyd@stupidchicken.com>
21279
21280 * xdisp.c (redisplay_window): When restoring original buffer
21281 position, make sure it is still valid.
21282
21283 * image.c (png_load): Ignore png-supplied background color.
21284
212852007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21286
21287 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21288 Use kCFAbsoluteTimeIntervalSince1970.
21289
21290 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21291 New variable.
21292 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21293 event loop should be quit.
21294 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21295 Quit dialog event loop if quit_dialog_event_loop is set.
21296
21297 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21298 (Selection): New typedef. Use instead of ScrapRef.
21299 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21300 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21301 (mac_clear_selection): Rename from clear_scrap.
21302 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21303 scrap_has_target_type. All uses changed.
21304 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21305 (mac_selection_has_target_p): New functions.
21306 (mac_put_selection_value): Rename from put_scrap_string.
21307 (mac_get_selection_value): Rename from get_scrap_string.
21308 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21309 (put_scrap_private_timestamp, scrap_has_target_type)
21310 (get_scrap_private_timestamp): Remove functions.
21311 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21312 (x_own_selection, x_get_local_selection):
21313 Use mac_valid_selection_value_p.
21314 (x_own_selection): Don't use put_scrap_private_timestamp.
21315 Record OWNERSHIP-INFO into Vselection_alist instead.
21316 (x_get_local_selection): Don't check type if request is local.
21317 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21318 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21319
213202007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21321
21322 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21323 add comment explaining why.
21324
213252007-08-03 Richard Stallman <rms@gnu.org>
21326
21327 * fileio.c (Fvisited_file_modtime): Use make_time.
21328
213292007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21330
21331 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21332 build.
21333
213342007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21335
21336 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21337
213382007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21339
21340 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21341
213422007-07-30 Richard Stallman <rms@gnu.org>
21343
21344 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21345
213462007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21347
21348 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21349
213502007-07-28 Nick Roberts <nickrob@snap.net.nz>
21351
21352 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21353 remote default-directory.
21354
21355 * buffer.c (mode-line-format): Update doc string.
21356
213572007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21358
21359 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21360 scroll bar gap.
21361 (x_scroll_bar_create): Set bar->fringe_extended_p.
21362 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21363 on frame edge. Check fringe background extension. Don't clear
21364 extended fringe background area.
21365
21366 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21367 (w32_fill_area): Enclose multiple statements with do ... while (0).
21368
21369 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21370 Extend fringe background to scroll bar gap.
21371 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21372 Set bar->fringe_extended_p.
21373 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21374 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21375 background extension. Don't clear extended fringe background area.
21376
21377 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21378 New member fringe_extended_p.
21379
213802007-07-25 Glenn Morris <rgm@gnu.org>
21381
21382 * Relicense all FSF files to GPLv3 or later.
21383
21384 * COPYING: Switch to GPLv3.
21385
213862007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21387
21388 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21389
21390 * data.c (Finteractive_form): Check for the presence of an
21391 `interactive-form' symbol property more thoroughly.
21392
21393 * data.c (Finteractive_form): Use an `interactive-form' property if
21394 present, analogous to the function-documentation property.
21395
213962007-07-24 Jason Rumney <jasonr@gnu.org>
21397
21398 * w32fns.c (x_real_positions): Get real position from OS instead of
21399 calculating it.
21400
214012007-07-23 Jason Rumney <jasonr@gnu.org>
21402
21403 * filelock.c (current_lock_owner): Allow for @ sign in username.
21404
214052007-07-22 Nick Roberts <nickrob@snap.net.nz>
21406
21407 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21408 remote default-directory.
21409
21410 * buffer.c (mode-line-format): Describe above case in doc string.
21411
214122007-07-20 Eli Zaretskii <eliz@gnu.org>
21413
21414 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21415 Define if not defined.
21416
214172007-07-18 Jason Rumney <jasonr@gnu.org>
21418
21419 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21420
214212007-07-18 Richard Stallman <rms@gnu.org>
21422
21423 * data.c (Fsetq_default): Doc fix.
21424
21425 * eval.c (Fsetq): Doc fix.
21426
214272007-07-18 Juanma Barranquero <lekktu@gmail.com>
21428
21429 * coding.c (Ffind_operation_coding_system):
21430 * eval.c (For, Fand): Doc fixes.
21431 Reported by Johan Bockgård.
21432
214332007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21434
21435 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21436
21437 * xterm.h: Declare x_ewmh_activate_frame.
21438
21439 * xterm.c (x_ewmh_activate_frame): New function.
21440 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21441
214422007-07-17 Martin Rudalics <rudalics@gmx.at>
21443
21444 * window.c (Fdisplay_buffer): If largest or LRU window is the
21445 only window, split it even if it is not eligible for splitting.
21446 This restores the original behavior broken by the 2007-07-15
21447 change.
21448
214492007-07-17 Glenn Morris <rgm@gnu.org>
21450
21451 * abbrev.c (abbrev_check_chars): New function.
21452 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21453 Call abbrev_check_chars to check abbrev characters are word
21454 constituents. Doc fix.
21455
214562007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21457
21458 * process.c (Fstart_process, Fmake_network_process)
21459 (read_process_output): Fix up last changes.
21460
214612007-07-16 Eli Zaretskii <eliz@gnu.org>
21462
21463 * makefile.w32-in (clean): Don't delete *~.
21464
214652007-07-16 Andreas Schwab <schwab@suse.de>
21466
21467 * window.c (Fdisplay_buffer): Use NILP.
21468 (Fset_window_scroll_bars): Likewise.
21469
214702007-07-15 Martin Rudalics <rudalics@gmx.at>
21471
21472 * window.c (window_min_size_2): New function.
21473 (window_min_size_1, size_window, Fdisplay_buffer)
21474 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21475 windows without mode- or header-lines when window-min-height is
21476 too small.
21477 (size_window): Reset nodelete_p after testing it, following an
21478 earlier note by Kim F. Storm.
21479 (display_buffer): Do not set split_height_threshold to twice the
21480 value of window_min_height to avoid changing the value of a
21481 customizable variable. Rather explicitly check whether the
21482 height of the window that shall be splitted is at least as large
21483 as split_height_threshold.
21484 (Fwindow_full_width_p): New defun.
21485 (syms_of_window): Defsubr it.
21486
21487 * window.h: Add EXFUN for Fwindow_full_width_p.
21488
214892007-07-14 Jason Rumney <jasonr@gnu.org>
21490
21491 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21492
214932007-07-14 Richard Stallman <rms@gnu.org>
21494
21495 * eval.c (maybe_call_debugger): New function.
21496 (find_handler_clause): Use maybe_call_debugger.
21497 Call it when the handler says `debug'.
21498 Eliminate DEBUGGER_VALUE_PTR.
21499 (Fsignal): Eliminate debugger_value.
21500 (Qdebug): New variable.
21501 (syms_of_eval): Initialize it.
21502
215032007-07-14 Juanma Barranquero <lekktu@gmail.com>
21504
21505 * eval.c (Fprogn):
21506 * keyboard.c (Ftrack_mouse):
21507 * print.c (Fwith_output_to_temp_buffer):
21508 * window.c (Fsave_window_excursion): Doc fix.
21509
215102007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21511
21512 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21513
215142007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21515
21516 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21517 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21518 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21519 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21520 Remove unused encoding_carryover.
21521 * process.c: Adjust all functions accordingly.
21522
215232007-07-12 Richard Stallman <rms@gnu.org>
21524
21525 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21526
215272007-07-11 Jason Rumney <jasonr@gnu.org>
21528
21529 * makefile.w32-in (LIBS): Include OLE32.
21530
21531 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21532 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21533
215342007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21535
21536 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21537 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21538 from a Lisp_Object into a bare pointer.
21539 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21540 Adjust the code correspondingly.
21541
21542 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21543
21544 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21545 (term_show_mouse_face): Remove unused var `j'.
21546 (handle_one_term_event): Remove unused vars `i' and `j'.
21547 Don't cast return value of ttyname since it's not necessary.
21548
215492007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21550
21551 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21552 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21553
21554 * fns.c (map_char_table): Use an array of int for `indices' rather than
21555 an array of Lisp_Objects (which are only ever integers anyway).
21556 (Fmap_char_table): Update caller.
21557 * lisp.h: Update prototype.
21558 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21559 * fontset.c (Ffontset_info):
21560 * casetab.c (set_case_table): Update callers.
21561
21562 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21563
21564 * keymap.c (struct accessible_keymaps_data)
21565 (struct where_is_internal_data): New structures.
21566 (accessible_keymaps_1, where_is_internal_1): Use them to change
21567 interface to adhere to the one used by map_keymap.
21568 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21569 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21570
21571 * keymap.h (map_keymap_function_t): More informative prototype.
21572
215732007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21574
21575 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21576 (looking_at_1): Don't change search_regs and last_thing_searched
21577 if `inhibit-changing-match-data' is non-nil.
21578 (string_match_1, search_buffer, set_search_regs): Likewise.
21579 (syms_of_search): Add Lisp level definition for
21580 `inhibit-changing-match-data' and set it to nil.
21581 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21582 start and end of the match, instead of using values in search_regs.
21583
215842007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21585
21586 * minibuf.c (Fcompleting_read): New value `confirm-only'
21587 for `require-match'.
21588
215892007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21590
21591 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21592 part of the 2007-06-27 change to syms_of_fileio.
21593
215942007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21595
21596 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21597 Check WINDOWP before using XWINDOW. Consolidate return statements.
21598
215992007-06-27 Richard Stallman <rms@gnu.org>
21600
21601 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21602
216032007-06-27 Juanma Barranquero <lekktu@gmail.com>
21604
21605 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21606
216072007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21608
21609 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21610 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21611 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21612 (_free_internal, memalign): Use them.
21613 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21614 Initialize to PTHREAD_MUTEX_INITIALIZER.
21615 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21616 (morecore_nolock): Rename from morecore. All uses changed.
21617 Use only nolock versions of internal allocation functions.
21618 (_malloc_internal_nolock, _realloc_internal_nolock)
21619 (_free_internal_nolock): New functions created from
21620 _malloc_internal, _realloc_internal, and _free_internal.
21621 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21622 Copy hook value to automatic variable before its use.
21623 (memalign): Copy hook value to automatic variable before its use.
21624
216252007-06-26 Kenichi Handa <handa@m17n.org>
21626
21627 * coding.c (Ffind_operation_coding_system): Docstring improved.
21628 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21629
216302007-06-25 David Kastrup <dak@gnu.org>
21631
21632 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21633 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21634 cater for additional parameter.
21635
21636 * keymap.h: Adjust number of parameters to `current-active-maps'.
21637
21638 * doc.c (Fsubstitute_command_keys): Adjust call of
21639 `current-active-maps'.
21640
216412007-06-25 David Kastrup <dak@gnu.org>
21642
21643 * callint.c (Fcall_interactively): Make the parsing of interactive
21644 specs somewhat more readable.
21645
216462007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21647
21648 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21649 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21650 if extended background has already been filled.
21651
216522007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21653
21654 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21655 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21656
21657 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21658 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21659 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21660 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21661 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21662 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21663 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21664 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21665 Run timers during dialog popup.
21666 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21667
216682007-06-21 Jason Rumney <jasonr@gnu.org>
21669
21670 * image.c (convert_mono_to_color_image): Swap fore and background.
21671
216722007-06-20 Jason Rumney <jasonr@gnu.org>
21673
21674 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21675 (w32_free_bdf_font): Unmap memory not handle.
21676
216772007-06-20 Sam Steingold <sds@gnu.org>
21678
21679 * gmalloc.c (__morecore): Fix the declaration to comply with the
21680 definition.
21681
216822007-06-20 Juanma Barranquero <lekktu@gmail.com>
21683
21684 * w32term.c (w32_delete_display): Remove leftover declaration.
21685 (w32_define_cursor, w32_initialize): Make static.
21686
21687 * w32.c (_wsa_errlist): Fix typo in error message.
21688 (init_environment): Ignore any environment variable from the
21689 registry having a null value.
21690
216912007-06-20 Glenn Morris <rgm@gnu.org>
21692
21693 * Makefile.in (LIBGIF): Default to -lgif.
21694
216952007-06-17 Jason Rumney <jasonr@gnu.org>
21696
21697 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21698 unicode strings.
21699
217002007-06-16 Juanma Barranquero <lekktu@gmail.com>
21701
21702 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21703 Fix typo in docstring.
21704
217052007-06-16 Eli Zaretskii <eliz@gnu.org>
21706
21707 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21708 and their keybindings.
21709
217102007-06-15 Chong Yidong <cyd@stupidchicken.com>
21711
21712 * composite.c (update_compositions): Fix last fix.
21713
217142007-06-14 Jason Rumney <jasonr@gnu.org>
21715
21716 * w32.c (get_process_times_fn): New function pointer.
21717 (globals_of_w32): Intialize it if present in kernel32.dll.
21718 (w32_get_internal_run_time): New function.
21719
21720 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21721
217222007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21723
21724 * composite.c (update_compositions): Check the validness of
21725 compositions.
21726
217272007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21728
21729 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21730 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21731
21732 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21733 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21734
21735 * macgui.h (USE_MAC_TOOLBAR): New define.
21736
21737 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21738 Return immediately unless popup is activated.
21739
21740 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21741 background to scroll bar gap.
21742 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21743 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21744 scroll bars on frame edge. Check fringe background extension.
21745 Don't clear extended fringe background area.
21746 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21747 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21748 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21749 [USE_MAC_TOOLBAR]: New macros.
21750 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21751 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21752 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21753 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21754 [USE_MAC_TOOLBAR]: New functions.
21755 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21756 manually if previous repositioning has failed.
21757 (mac_handle_keyboard_event): Use precomputed event kind.
21758 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21759 as tool bar item click. Handle mouse movement over tool bar items.
21760
21761 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21762 toolbar_win_gravity.
21763 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21764 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21765 Add externs.
21766
21767 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21768 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21769
217702007-06-14 Chong Yidong <cyd@stupidchicken.com>
21771
21772 * image.c (search_image_cache): Remove unused variable.
21773
217742007-06-13 Chong Yidong <cyd@stupidchicken.com>
21775
21776 * xfns.c, xmenu.c: Link to xaw3d if available.
21777
217782007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21779
21780 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21781 frame_foreground and frame_background.
21782
21783 * image.c (lookup_image): Save frame foreground and background colors.
21784 (search_image_cache): Check if saved and current frame colors match.
21785
217862007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21787
21788 * regex.c (regex_compile): Remove the `regnum' counter.
21789 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21790
217912007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21792
21793 * term.c: Include intervals.h to declare Fget_text_property.
21794
217952007-06-10 Jason Rumney <jasonr@gnu.org>
21796
21797 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21798
217992007-06-08 Juanma Barranquero <lekktu@gmail.com>
21800
21801 * callint.c (Fcall_interactively):
21802 * editfns.c (Fdelete_and_extract_region):
21803 * fileio.c (Fread_file_name):
21804 * fns.c (Fmapconcat):
21805 * keyboard.c (cmd_error_internal):
21806 * keymap.c (Fkey_description):
21807 * lread.c (openp):
21808 * minibuf.c (read_minibuf):
21809 * search.c (wordify):
21810 * sunfns.c (sel_read):
21811 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21812 * xfns.c (x_default_scroll_bar_color_parameter):
21813 * xmenu.c (menu_help_callback):
21814 * xselect.c (Fx_get_atom_name):
21815 * xterm.c (x_term_init): Use empty_unibyte_string.
21816
218172007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21818
21819 * alloc.c (init_strings): Initialize canonical empty strings.
21820 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21821 canonical empty string when the requested size is 0.
21822
21823 * emacs.c (empty_unibyte_string): Rename from empty_string.
21824 (empty_multibyte_string): New canonical empty string.
21825 (syms_of_emacs): Don't initialize empty_string.
21826
21827 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21828 string, if appropriate.
21829 (empty_unibyte_string, empty_multibyte_string): New externs.
21830 (empty_string): Remove extern.
21831
21832 * lread.c (syms_of_lread): Use empty_unibyte_string.
21833
218342007-06-07 Jason Rumney <jasonr@gnu.org>
21835
21836 * s/ms-w32.h: Don't define HAVE_TZNAME.
21837
21838 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21839
218402007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21841
21842 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21843
21844 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21845 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21846
21847 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21848 Don't call next handler.
21849 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21850 Remove argument. Install handler to application.
21851 (set_frame_menubar): Don't change deep_p.
21852 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21853 FRAME_OUTER_TO_INNER_DIFF_Y.
21854 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21855 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21856 [HAVE_DIALOGS]: New macros.
21857 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21858 Use them.
21859 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21860
21861 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21862 init_service_handler. All callers changed. Return OSStatus value.
21863
21864 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21865 All callers changed so as not to call SetPortWindowPort.
21866 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21867 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21868 mac_draw_string_common.
21869 (mac_draw_image_string_qd): Likewise.
21870 (mac_draw_string_common): Use them. Add INLINE.
21871 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21872 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21873 GetGlobalMouse.
21874 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21875 and FRAME_OUTER_TO_INNER_DIFF_Y.
21876 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21877 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21878 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21879 repositioning window to mac_handle_window_event.
21880 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21881 saving window location to mac_handle_window_event
21882 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21883 (install_menu_target_item_handler): Remove argument in extern.
21884 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21885 Also accept command events.
21886 (do_keystroke): New function created from XTread_socket.
21887 (init_command_handler): Remove functions.
21888 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21889 and save window location by kEventWindowShowing and kEventWindowHiding
21890 handlers here. Don't call next handler for window state change and
21891 focus events.
21892 (mac_handle_application_event, mac_handle_keyboard_event)
21893 [TARGET_API_MAC_CARBON]: New functions.
21894 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21895 kEventWindowShowing and kEventWindowHiding events. Move installation
21896 of mouse, font, text input and menu target item handlers to
21897 install_application_handler.
21898 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21899 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21900 New function.
21901 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21902 Register it.
21903 (XTread_socket) [TARGET_API_MAC_CARBON]:
21904 Consolidate SendEventToEventTarget calls.
21905 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21906 Move application activation handler to mac_handle_application_event.
21907 Move keyboard handler to mac_handle_keyboard_event.
21908 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21909 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21910 init_command_handler. Call install_application_handler.
21911
21912 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21913 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21914
219152007-06-07 Glenn Morris <rgm@gnu.org>
21916
21917 * emacs.c (main): Use `emacs-copyright' in --version output.
21918
219192007-06-06 Chong Yidong <cyd@stupidchicken.com>
21920
21921 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21922
219232007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21924
21925 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21926
21927 * macgui.h: Replace WindowPtr with WindowRef.
21928
21929 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21930 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21931 Replace ControlHandle with ControlRef.
21932 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21933
21934 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21935 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21936 Replace ControlHandle with ControlRef.
21937 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21938 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21939
21940 * macterm.h (struct scroll_bar): Rename member control_handle_low
21941 and control_handle_high to control_ref_low and control_ref_high.
21942 All uses changed.
21943 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21944 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21945 respectively. All uses changed.
21946 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21947 (install_window_handler, remove_window_handler): Replace WindowPtr
21948 with WindowRef in externs.
21949
219502007-06-05 Juanma Barranquero <lekktu@gmail.com>
21951
21952 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21953
219542007-06-03 Nick Roberts <nickrob@snap.net.nz>
21955
21956 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21957
21958 * frame.c (Fmouse_position, Fmouse_pixel_position):
21959 Condition on HAVE_GPM too.
21960
21961 * term.c (term_mouse_highlight): Remove unused variables.
21962 (Fterm_open_connection): Set gpm_zerobased to 1.
21963 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21964 Use zero based co-ordinates.
21965 (handle_one_term_event): Report a drag as mouse movement too.
21966
21967 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21968
219692007-06-03 Chong Yidong <cyd@stupidchicken.com>
21970
21971 * image.c (search_image_cache): New function. Require background
21972 color match if background color is unspecified in the image spec.
21973 (uncache_image, lookup_image): Use it.
21974
219752007-06-01 Juanma Barranquero <lekktu@gmail.com>
21976
21977 * window.c (Fshrink_window): Reflow docstring.
21978
219792007-06-02 Chong Yidong <cyd@stupidchicken.com>
21980
21981 * Version 22.1 released.
21982
219832007-06-01 Richard Stallman <rms@gnu.org>
21984
21985 * xfns.c (x_encode_text): Add GCPRO.
21986
219872007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21988
21989 * xfns.c (x_set_name_internal): Save encoded name before
21990 x_encode_text in case string data is relocated.
21991
219922007-05-31 Richard Stallman <rms@gnu.org>
21993
21994 * buffer.c (syms_of_buffer): Doc fix.
21995
219962007-05-30 Nick Roberts <nickrob@snap.net.nz>
21997
21998 * sysdep.c (init_sys_modes): Add rather than replace with
21999 O_NONBLOCK.
22000
22001 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22002 term_mouse_moveto.
22003
22004 * termhooks.h (term_mouse_moveto): New extern.
22005
22006 * term.c (mouse_face_window): Rename...
22007 (Qmouse_face_window): ...to this.
22008 (term_show_mouse_face, term_clear_mouse_face)
22009 (term_mouse_highlight): Use Qmouse_face_window.
22010 (term_mouse_moveto): New function.
22011 (term_mouse_position): Make it work.
22012 (syms_of_term): Uncomment assignment to mouse_position_hook.
22013 Staticpro Qmouse_face_window.
22014
220152007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22016
22017 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22018 around current_column call.
22019
220202007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22021
22022 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22023 * xdisp.c (next_element_from_buffer):
22024 * window.c (delete_window):
22025 * term.c (term_mouse_highlight):
22026 * msdos.c (getdefdir):
22027 * macterm.c (mac_create_bitmap_from_bitmap_data)
22028 (init_font_name_table):
22029 * fns.c (Fsxhash):
22030 * data.c (Fmake_local_variable):
22031 * ccl.c (ccl_driver): Likewise.
22032
220332007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22034
22035 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22036 Call mac_wakeup_from_rne on window size change.
22037
220382007-05-25 Chong Yidong <cyd@stupidchicken.com>
22039
22040 * image.c (uncache_image): Fix typo.
22041
220422007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22043
22044 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22045
220462007-05-22 Richard Stallman <rms@gnu.org>
22047
22048 * xterm.c (x_connection_closed): Remove NO_RETURN.
22049
220502007-05-22 Martin Rudalics <rudalics@gmx.at>
22051
22052 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22053
220542007-05-21 Chong Yidong <cyd@stupidchicken.com>
22055
22056 * image.c (uncache_image): New function.
22057 (Fimage_refresh): New function.
22058
220592007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22060
22061 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22062
220632007-05-20 Nick Roberts <nickrob@snap.net.nz>
22064
22065 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22066 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22067
220682007-05-20 Nick Roberts <nickrob@snap.net.nz>
22069
22070 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22071 conditional on [HAVE_GPM_H].
22072
220732007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22074
22075 * syntax.c (skip_chars): Update syntax-table only after we checked that
22076 the new location is valid.
22077
220782007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22079
22080 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22081 mac_get_window_bounds.
22082
220832007-05-20 Nick Roberts <nickrob@snap.net.nz>
22084
22085 * Makefile.in (LIBGPM): Allow it to be set from configure.
22086 If set then link Emacs with it.
22087
22088 * config.in: Regenerate.
22089
22090 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22091 New externs.
22092
22093 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22094 Include gpm.h.
22095 (handle_one_term_event, term_gpm): New externs.
22096
22097 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22098 and allow it to be interrupted by SIGIO.
22099
22100 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22101 (wait_reading_process_output): Wait on gpm_fd too.
22102 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22103 (add_gpm_wait_descriptor_called_flag): New variable.
22104 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22105
22106 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22107 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22108 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22109 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22110 (make_lispy_event): Add case GPM_CLICK_EVENT.
22111 (read_avail_input): Handle mouse input.
22112
22113 * term.c (write_glyphs_with_face): New function.
22114 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22115 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22116 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22117 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22118 (last_mouse_x, last_mouse_y): New variables.
22119 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22120 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22121 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22122 (Fterm_close_connection): New functions.
22123 (term_init): Initialise mouse_face_window.
22124
221252007-05-19 Chong Yidong <cyd@stupidchicken.com>
22126
22127 * xdisp.c (redisplay_window): If first window line is a
22128 continuation line, recompute the new window start instead of
22129 recentering.
22130
221312007-05-18 Glenn Morris <rgm@gnu.org>
22132
22133 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22134 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22135
221362007-05-17 Glenn Morris <rgm@gnu.org>
22137
22138 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22139
221402007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22141
22142 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22143 dead key repeat and up events.
22144
221452007-05-14 Chong Yidong <cyd@stupidchicken.com>
22146
22147 * image.c (pbm_load): Check image size for monochrome pbm.
22148
221492007-05-13 Chong Yidong <cyd@stupidchicken.com>
22150
22151 * xterm.c (XTread_socket): Revert last change.
22152
221532007-05-12 Chong Yidong <cyd@stupidchicken.com>
22154
22155 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22156
22157 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22158
221592007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22160
22161 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22162 mixup (YAILOM).
22163
221642007-05-07 Andreas Schwab <schwab@suse.de>
22165
22166 * keymap.c (Flookup_key): Fix typo in last change.
22167
221682007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22169
22170 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22171 mapping for unibyte strings.
22172
221732007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22174
22175 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22176 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22177
221782007-04-29 Richard Stallman <rms@gnu.org>
22179
22180 * insdel.c (replace_range): For undo, record insertion first.
22181
221822007-04-29 Andreas Schwab <schwab@suse.de>
22183
22184 * lisp.h (VECSIZE): Use OFFSETOF.
22185
221862007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22187
22188 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22189 disabled lines.
22190
221912007-04-28 Richard Stallman <rms@gnu.org>
22192
22193 * lread.c (read_escape): In a string, \s is always space.
22194
221952007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22196
22197 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22198
22199 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22200 submenu for menu bar items.
22201
22202See ChangeLog.10 for earlier changes.
22203
22204;; Local Variables:
22205;; coding: utf-8
22206;; add-log-time-zone-rule: t
aac0c6e3
MR
22207;; End:
22208
e3eb1dae 22209 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22210
22211 This file is part of GNU Emacs.
22212
22213 GNU Emacs is free software: you can redistribute it and/or modify
22214 it under the terms of the GNU General Public License as published by
22215 the Free Software Foundation, either version 3 of the License, or
22216 (at your option) any later version.
22217
22218 GNU Emacs is distributed in the hope that it will be useful,
22219 but WITHOUT ANY WARRANTY; without even the implied warranty of
22220 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22221 GNU General Public License for more details.
22222
22223 You should have received a copy of the GNU General Public License
22224 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22225
22226;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40