Fix return value of dnd-get-local-file-name (Bug#7090).
[bpt/emacs.git] / src / ChangeLog
CommitLineData
7b2bf907
GM
12010-10-03 Glenn Morris <rgm@gnu.org>
2
3 * buffer.c (before-change-functions, after-change-functions):
4 Three-year overdue doc fix following 2007-08-13 change.
5
1911a33b
KH
62010-10-02 Kenichi Handa <handa@m17n.org>
7
8 * coding.c (coding_inherit_eol_type): If parent doesn't specify
9 eol-format, inherit from the system's default.
10 (complement_process_encoding_system): Make a new coding system
11 inherit the original eol-format.
12
fcaf8878
KH
132010-09-30 Kenichi Handa <handa@m17n.org>
14
15 * coding.c (complement_process_encoding_system): New function.
16
17 * coding.h (complement_process_encoding_system): Extern it.
18
19 * callproc.c (Fcall_process): Complement the coding system for
20 encoding arguments.
21 (Fcall_process_region): Complement the coding system for encoding
22 the input to the process.
23
24 * process.c (Fstart_process): Complement the coding system for
25 encoding arguments.
26 (send_process): Complement the coding system for encoding what
27 sent to the process.
28
18acb5ad
KH
292010-09-29 Kenichi Handa <handa@m17n.org>
30
31 * xfont.c (xfont_open): Fix setting of font->average_width from
32 :avgwidth property (Bug#7123).
33
dec83468
MA
342010-09-28 Michael Albinus <michael.albinus@gmx.de>
35
36 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
37 is more portable.
38
39 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
40 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
41 has not defined SIGIO.
42
e0720500
MA
432010-09-27 Michael Albinus <michael.albinus@gmx.de>
44
11a5af7c 45 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
46 (Bug#7113)
47
42d3022b
J
482010-09-26 Jan Djärv <jan.h.d@swipnet.se>
49
50 * xgselect.c (xg_select): Clear file descriptors not set from
51 rfds and wfds.
52
fbb3da77
SM
532010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
54
55 * syntax.c (back_comment): Detect the case where a 1-char comment
56 starter is also the 2nd char of a 2-char comment ender.
57
2b5b82db
J
582010-09-17 Jan Djärv <jan.h.d@swipnet.se>
59
60 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
61
5f61a25c
J
622010-09-12 Jan Djärv <jan.h.d@swipnet.se>
63
64 * xterm.c (get_current_vm_state): New function.
65 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
66 want_fullscreen so set_wm_state calls are few (Bug#7013).
67 (x_handle_net_wm_state): Move code to get_current_vm_state and
68 call that function.
69
65c92e31 702010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
71
72 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
73
a552b35a
KH
742010-09-08 Kenichi Handa <handa@m17n.org>
75
76 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
77 we may use designation or locking-shift.
78
396475b7
KH
792010-09-07 Kenichi Handa <handa@m17n.org>
80
81 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
82 sequence when the source is multibyte.
83
d419e1d9
KH
842010-08-31 Kenichi Handa <handa@m17n.org>
85
86 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
87 characters.
88
89 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
90 (produce_glyphs): Don't set it->char_to_display here.
91 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
92 (produce_special_glyphs): Set temp_it.char_to_display before
93 calling produce_glyphs.
94
95 * xdisp.c (get_next_display_element): Set it->char_to_display
96 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
97 characters.
98 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
99 calling PRODUCE_GLYPHS.
100 (append_space_for_newline): Save and store it->char_to_display.
101 Set it->char_to_display before calling PRODUCE_GLYPHS.
102 (extend_face_to_end_of_line): Set it->char_to_display before
103 calling PRODUCE_GLYPHS.
104 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
105 character to its byte value.
106 (get_char_glyph_code): New function.
107 (produce_stretch_glyph): Set it2.char_to_display too before
108 calling x_produce_glyphs.
109 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
110 non-ASCII characters. Don't set it->char_to_display here.
111 Don't handle unibyte-display-via-language-environment here. For a
d419e1d9
KH
112 charater of no glyph, use font->space_width instead of FONT_WIDTH.
113
769ae9e1
KH
1142010-08-29 Kenichi Handa <handa@m17n.org>
115
116 * term.c (encode_terminal_code): Encode byte chars to the
117 correspnding bytes.
118
b72e0717
AS
1192010-08-17 Andreas Schwab <schwab@linux-m68k.org>
120
121 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
122 instead of SAFE_ALLOCA.
123
3a7a9129
CY
1242010-08-17 Chong Yidong <cyd@stupidchicken.com>
125
126 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
127 (Bug#6214).
128
983b8302
J
1292010-08-14 Jan Djärv <jan.h.d@swipnet.se>
130
131 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
132
7d1b9df3
J
1332010-08-13 Jan Djärv <jan.h.d@swipnet.se>
134
135 * doc.c (Fsnarf_documentation): Initialize skip_file before
136 build-files test.
137
2294b255
PG
1382010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
139
65b3d997
A
140 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
141 New definitions.
2294b255
PG
142 (HAVE_TERMIO): Remove.
143
7a84eee5
KH
1442010-08-06 Kenichi Handa <handa@m17n.org>
145
146 * charset.c: Include <stdlib.h>
147 (struct charset_sort_data): New struct.
148 (charset_compare): New function.
149 (Fsort_charsets): New funciton.
150 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
151
152 * coding.c (decode_coding_iso_2022): Fix checking of dimension
153 number in CTEXT extended segment.
154
f5f6c0e0
JB
1552010-08-01 Juanma Barranquero <lekktu@gmail.com>
156
157 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
158 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
159
b756c005
JB
1602010-07-30 Juanma Barranquero <lekktu@gmail.com>
161
162 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
163 (Fhash_table_size): Fix typos in docstrings.
164 (Fmake_hash_table): Doc fix.
165
b4f588fa
JB
1662010-07-28 Juanma Barranquero <lekktu@gmail.com>
167
168 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
169 Doc fix (bug#5625).
170
9f8c08a7
KB
1712010-07-27 Ken Brown <kbrown@cornell.edu>
172
173 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
174 the MSDOS definition.
175
a2a0d36b
CS
1762010-07-25 Christoph Scholtes <cschol2112@gmail.com>
177
178 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
179
a77cfeaf
CS
1802010-07-22 Christoph Scholtes <cschol2112@gmail.com>
181
182 * window.c (Fwindow_height): Doc fix (bug#6518).
183
14fb5704
JB
1842010-07-21 Juanma Barranquero <lekktu@gmail.com>
185
186 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
187
499322ce
J
1882010-07-17 Jan Djärv <jan.h.d@swipnet.se>
189
190 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
191 is related to the menu bar (Bug#6499).
192
b78f9767
J
1932010-07-14 Jan Djärv <jan.h.d@swipnet.se>
194
195 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
196
197 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
198
199 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
200 i.e. don't put back ButtonRelease (Bug#6608).
201
202 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
203 instead of Window. Call xg_event_is_for_menubar when
204 USE_GTK (Bug#6499).
205
206 * gtkutil.h (xg_event_is_for_menubar): Declare.
207
208 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
209
1f60c16a
EZ
2102010-07-14 Eli Zaretskii <eliz@gnu.org>
211
212 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
213 when it's the same as the old foreground. (Bug#6609)
214
7c33a057
CY
2152010-07-10 Chong Yidong <cyd@stupidchicken.com>
216
217 * xfaces.c (realize_face): Garbage the frame if a face is removed
218 (Bug#6593).
219
9d70a3fc
AS
2202010-07-05 Andreas Schwab <schwab@linux-m68k.org>
221
222 * keyboard.c: Remove duplicate <setjmp.h>.
223 (read_key_sequence): Remove volatile qualifiers.
224
5a874e95
YM
2252010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
226
227 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
228 (struct glyph_row): New members left_fringe_offset and
229 right_fringe_offset.
230
231 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
232 specially.
233 * w32term.c (w32_draw_fringe_bitmap): Likewise.
234 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
235
236 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
237 Take account of bitmap offset.
238 (draw_window_fringes): Take account of window vscroll.
239 (update_window_fringes): Likewise. Extend top-aligned top indicator
240 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
241 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
242 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
243
0682186e
JB
2442010-07-04 Juanma Barranquero <lekktu@gmail.com>
245
246 * w32fns.c (Qtooltip): Declare.
247 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
248
ad3e6f44
J
2492010-07-03 Jan Djärv <jan.h.d@swipnet.se>
250
251 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
252 grab on just Press (Bug#6499).
253
54ee7410
CY
2542010-07-02 Chong Yidong <cyd@stupidchicken.com>
255
256 * frame.c (Qtooltip): New var.
257 (delete_frame): Use it. Fix faulty if statement. Don't update
258 mode line for tooltip frames. Suggested by Martin Rudalics.
259
260 * xfns.c (x_create_tip_frame):
261 * w32fns.c (x_create_tip_frame): Use it.
262
3d8416fc
NA
2632010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
264
265 * xftfont.c (xftfont_open): Check font width one by one also when
266 spacing is dual.
267
268 * ftfont.c (ftfont_open): Ditto.
269
b1feb9b4
AS
2702010-06-26 Andreas Schwab <schwab@linux-m68k.org>
271
272 * alloc.c (Fmake_byte_code): Don't access undefined argument
273 (Bug#6517).
274
c7dd9743
CY
2752010-06-25 Chong Yidong <cyd@stupidchicken.com>
276
277 * xdisp.c (next_element_from_image): Ensure that after-strings are
278 read the next time we hit handle_stop (Bug#1336).
279
5721b4ed
AS
2802010-06-23 Andreas Schwab <schwab@linux-m68k.org>
281
282 * lread.c (read1): Signal error if #s is not followed by paren.
283
277c5f18
CY
2842010-06-19 Chong Yidong <cyd@stupidchicken.com>
285
52ab9bb2
CY
286 * image.c (free_image): Mark frame as garbaged (Bug#6426).
287
277c5f18
CY
288 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
289
6fda6a0c
GM
2902010-06-15 Glenn Morris <rgm@gnu.org>
291
292 * editfns.c (Fbyte_to_string): Pacify compiler.
293
e454a4a3
SM
2942010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
295
296 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
297 Check `object's type before accessing its guts.
298
657d4c0b
AS
2992010-06-08 Andreas Schwab <schwab@linux-m68k.org>
300
301 * minibuf.c (Fall_completions): Add more checks.
302
9b27fd9f
JB
3032010-06-08 Juanma Barranquero <lekktu@gmail.com>
304
305 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
306
0eb7675e
AS
3072010-06-03 Andreas Schwab <schwab@linux-m68k.org>
308
309 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 310 address. (Bug#6346)
0eb7675e 311
78edd3b7
JB
3122010-06-03 Juanma Barranquero <lekktu@gmail.com>
313
314 * ccl.c (Fccl_program_p): Fix typo in docstring.
315
1ab8293c
SM
3162010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
317
318 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
319 of bug#6305).
320
5ca3929b
CY
3212010-05-27 Chong Yidong <cyd@stupidchicken.com>
322
323 * xdisp.c (redisplay_window): After redisplay, check if point is
324 still valid before setting it (Bug#6177).
325
f5b416d2 3262010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
327
328 * s/netbsd.h: If terminfo is found, use it in preference to
329 termcap. (Bug#6190) [Backport from trunk]
330
aeb77d46
CY
3312010-05-20 Kevin Ryde <user42@zip.com.au>
332
333 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
334 (Voverriding_terminal_local_map, Vsystem_key_alist)
335 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
336
c3bb441d
SM
3372010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
338
339 * editfns.c (Fbyte_to_string): New function.
340
754790b6
CY
3412010-05-18 Chong Yidong <cyd@stupidchicken.com>
342
343 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
344 prevent stack overflow if number of arguments is too large
345 (Bug#6214).
346
c8670ded
EZ
3472010-05-11 Eli Zaretskii <eliz@gnu.org>
348
349 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
350
351 * w32fns.c: Include w32.h.
352 (Fw32_shell_execute): Decode the error message before passing it
353 to `error'. (Bug#6126)
354
3ffd4615 3552010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
356
357 * ftfont.c: Fix incorrect parentheses of #if condition for
358 definining M17N_FLT_USE_NEW_FEATURE.
359
61a808e8
CY
3602010-05-07 Chong Yidong <cyd@stupidchicken.com>
361
362 * Version 23.2 released.
363
5dcde606
AS
3642010-04-30 Andreas Schwab <schwab@linux-m68k.org>
365
366 * composite.c (autocmp_chars): Save point as marker before calling
367 auto-composition-function (Bug#5984).
368
369 * lisp.h (restore_point_unwind): Add prototype.
370
371 * fileio.c (restore_point_unwind): Remove static attribute.
372
c4170e32
KH
3732010-04-23 Kenichi Handa <handa@m17n.org>
374
375 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
376 new feature of libotf and m17n-flt.
65b3d997
A
377 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
378 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
379 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
380 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
381 that OUT is NULL. Use OTF_drive_gsub_with_log and
382 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
383 OTF_drive_gpos.
384 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
385 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
386 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 387
e42cd1a7
JB
3882010-04-19 Juanma Barranquero <lekktu@gmail.com>
389
390 * dired.c (Ffile_attributes): Fix typo in docstring.
391
79353a53
AR
3922010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
393
394 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
395 NSInteger (Bug#5811).
396
658b9b93
YM
3972010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
398
399 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
400 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
401
16009a0e
YM
4022010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
403
404 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
405
f016f225
JD
4062010-04-07 Jan Djärv <jan.h.d@swipnet.se>
407
408 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
409 FRAME_LINE_TO_PIXEL_Y.
410
411 * xterm.c (x_set_window_size_1): Don't add border_width/height to
412 pixelwidth/height.
413
84257d93
CY
4142010-04-05 Chong Yidong <cyd@stupidchicken.com>
415
416 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
417 terminal frames (Bug#5837).
418
95b1abcf
CY
4192010-03-31 Chong Yidong <cyd@stupidchicken.com>
420
421 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
422 * nsterm.h: Fix prototype.
423
4a217bed
EZ
4242010-03-31 Eli Zaretskii <eliz@gnu.org>
425
426 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
427 in this function. (Bug#5703)
428
4f103e04
CY
4292010-03-31 Chong Yidong <cyd@stupidchicken.com>
430
431 * nsterm.h: Fix last change.
432
a6d676d9
CY
4332010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
434
435 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
436
67fee863
JD
4372010-03-30 Jan Djärv <jan.h.d@swipnet.se>
438
439 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
440 invisible (Bug#5766).
441
9ae6e189
CY
4422010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
443
444 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
445 HAVE_NS conditionals.
194d44e7 446 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
447
448 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
449 filename for the title.
450 (ns_set_doc_edited): Do nothing if the selected window is a
451 minibuffer window.
452
453 * nsterm.h: Add prototypes for ns_set_name_as_filename and
454 ns_set_doc_edited.
455
456 * nsterm.m: Remove unneeded prototype.
457
25c72475
GM
4582010-03-28 Glenn Morris <rgm@gnu.org>
459
460 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
461 in the DOC file. (Bug#5336)
462
f79a01db
CY
4632010-03-24 Chong Yidong <cyd@stupidchicken.com>
464
465 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
466
93318cbd
JD
4672010-03-20 Jan Djärv <jan.h.d@swipnet.se>
468
469 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
470
471 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
472
473 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
474
ad13a3ee
YM
4752010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
476
477 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
478 XLoadQueryFont.
479
fbdc1721
KH
4802010-03-16 Kenichi Handa <handa@m17n.org>
481
482 * coding.c (decode_coding_ccl): Fix previous change for the
483 multibyte case.
fb608df3
KH
484 (encode_coding_ccl): Don't setup ccl program here. Fix for the
485 case that the output buffer is fullfilled.
486 (encode_coding): Setup ccl program here.
fbdc1721 487
35cd7cd6
CY
4882010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
489
490 * editfns.c (Fformat): Account for string precision when computing
491 field width (Bug#5710).
492
618db430
SM
4932010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
494
c0335e02
SM
495 Make it possible to C-g in a tight bytecode loop again (bug#5680).
496 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
497 (QUIT): Use it to consolidate code and remove redundancy.
498 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
499
254c06a8
SM
500 * regex.c (regex_compile): Setup gl_state as well.
501
618db430
SM
502 * syntax.c (skip_chars): Setup gl_state (bug#3823).
503 (in_classes): Use CONSP before XCAR/XCDR.
504
233f0c9f
CY
5052010-03-03 Chong Yidong <cyd@stupidchicken.com>
506
507 * keymap.c (Fwhere_is_internal): Use Fequal to compare
508 definitions, so that keyboard macros are correctly handled
509 (Bug#5481).
510
75f80e63
EZ
5112010-03-02 Eli Zaretskii <eliz@gnu.org>
512
513 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
514 text that could be relocated inside the call to emacs_mule_char.
515 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
516 (CODING_DECODE_CHAR): Add a comment describing its purpose.
517
dcfb9bc4
KH
5182010-03-02 Kenichi Handa <handa@m17n.org>
519
fc9a17bc
KH
520 * character.c (parse_str_as_multibyte): Fix handling of the
521 multibyte form of raw-bytes.
522 (str_as_multibyte): Likewise.
523
dcfb9bc4
KH
524 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
525 form of raw-bytes.
526
412c01b6
CY
5272010-02-28 Chong Yidong <cyd@stupidchicken.com>
528
529 * charset.c (load_charset_map_from_file)
530 (load_charset_map_from_vector): Zero out allocated
531 charset_map_entries before using them.
532
df7e1ea0
AS
5332010-02-27 Andreas Schwab <schwab@linux-m68k.org>
534
535 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
536
fe69a722
CY
5372010-02-27 Chong Yidong <cyd@stupidchicken.com>
538
4ed28cf4
CY
539 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
540 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 541
7379cfce
KH
5422010-02-26 Kenichi Handa <handa@m17n.org>
543
f88cc4d6
KH
544 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
545
7379cfce
KH
546 * xdisp.c (reseat_to_string): Fix previous change.
547
cf2fdcfb
CY
5482010-02-26 David Reitter <david.reitter@gmail.com>
549
550 * nsfont.m (nsfont_draw): ns_antialias_text should be a
551 Lisp_Object (Bug#4736).
552
cc6c7c75
KH
5532010-02-25 Kenichi Handa <handa@m17n.org>
554
555 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
556
32e737d7
JD
5572010-02-24 Jan Djärv <jan.h.d@swipnet.se>
558
559 * xterm.c (XTflash): Move declarations before statements.
560
561 * gtkutil.c (xg_get_gdk_display): Remove (unused).
562 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
563 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
564 (xg_create_tool_bar): Remove unused variables.
565 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 566 (xg_create_frame_widgets): Remove variable grav.
32e737d7 567
676cae9f
CY
5682010-02-21 Chong Yidong <cyd@stupidchicken.com>
569
570 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
571
886cc2b8
SM
5722010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
573
574 * term.c (fatal): Add a final \n if needed (bug#5596).
575
ddb2d8e2
CY
5762010-02-18 Chong Yidong <cyd@stupidchicken.com>
577
578 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
579
2a4f8d3d
GM
5802010-02-18 Glenn Morris <rgm@gnu.org>
581
582 * callint.c (Finteractive): Doc fix.
583
ebaf11b6
KH
5842010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
585
886cc2b8
SM
586 * coding.c (record_conversion_result):
587 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
588 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
589 memory allocation error.
590
d0396581
KH
5912010-02-17 Kenichi Handa <handa@m17n.org>
592
886cc2b8
SM
593 * coding.c (decode_coding_ccl): Don't setup ccl program here.
594 Fix for the case that the output buffer is fullfilled.
d0396581
KH
595 (decode_coding): Setup ccl program here. Keep looping when the
596 decoder stopped because the output buffer is
597 fullfilled (bug#5534).
598
599 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
600
98599f74
JD
6012010-02-13 Jan Djärv <jan.h.d@swipnet.se>
602
471e4f04 603 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 604 bug #5571.
886cc2b8 605 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 606 overdrawn.
98599f74 607
182659ae
JD
6082010-02-10 Jan Djärv <jan.h.d@swipnet.se>
609
610 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
611 doing_interact here.
612 (ice_connection_closed): New function.
613 (x_session_check_input, smc_die_CB, ice_io_error_handler)
614 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
615 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
616 returns I/O error.
617 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
618 bug #5512.
619
9be32c4e 6202010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
621
622 * nsfont.m (nsfont_open): The system's value for the font descent
623 is negative, so round it down to avoid clipping.
624
a2f3eb19
CY
6252010-02-06 Chong Yidong <cyd@stupidchicken.com>
626
627 * charset.c (load_charset_map_from_file)
628 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 629 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 630
3088147c
CY
6312010-02-05 Chong Yidong <cyd@stupidchicken.com>
632
633 * charset.c (load_charset_map_from_file): Allocate large
634 charset_map_entries structure on the heap rather than the stack.
635 (Bug#5526).
636
b57d9029
KH
6372010-01-31 Kenichi Handa <handa@m17n.org>
638
639 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 640 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 641
c67d885b
CY
6422010-01-31 Chong Yidong <cyd@stupidchicken.com>
643
644 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
645 <deactivated@gmail.com> (Bug#3605).
646
8fab2362
CY
6472010-01-31 David De La Harpe Golden <david@harpegolden.net>
648
649 * fileio.c (Frename_file): Correctly rename symlinks to
650 directories (Bug#5496).
651
cb2a62f2
CY
6522010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
653
654 * nsterm.m (ns_ring_bell): Handle visible bell like X.
655
944c7a26
AS
6562010-01-30 Andreas Schwab <schwab@linux-m68k.org>
657
658 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
659
c024ac08
CY
6602010-01-29 Chong Yidong <cyd@stupidchicken.com>
661
662 * frame.c (DEFAULT_ROWS): Change default to 35.
663
664 * xfns.c (x_default_font_parameter): Change default XFT font to
665 monospace-10 (Bug#3643).
666
af93af83
EZ
6672010-01-29 Eli Zaretskii <eliz@gnu.org>
668
669 * w32inevt.c (key_event): Remove unnecessary comparison of
670 event->uChar.AsciiChar with 128.
671
ca0eb708
CY
6722010-01-28 Chong Yidong <cyd@stupidchicken.com>
673
b242dbfc
CY
674 * fileio.c (Frename_file): Fix last change (Bug#5487).
675
ca0eb708
CY
676 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
677
678 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
679
45d45af5
JD
6802010-01-28 Jan Djärv <jan.h.d@swipnet.se>
681
682 * xfns.c (Fx_create_frame): Remove window size matching code from
683 2010-01-15.
a73f9c9d 684 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 685
7e233730
JR
6862010-01-27 Jason Rumney <jasonr@gnu.org>
687
688 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 689 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 690
86e893e3
KH
6912010-01-27 Kenichi Handa <handa@m17n.org>
692
693 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 694 pattern string (Bug#4209).
86e893e3 695
8719abec
CY
6962010-01-27 David De La Harpe Golden <david@harpegolden.net>
697
698 * fileio.c (Frename_file): Call copy-directory and
699 delete-directory for directories, in order to handle cross-device
700 renaming (Bug#3353).
701
844794c8
JD
7022010-01-25 Jan Djärv <jan.h.d@swipnet.se>
703
aa3e13b5 704 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 705 sizes 24 and 10. Bug #3643.
844794c8 706
bd4b5750
SM
7072010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
708
8dc1adf6 709 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
710 * keymap.c (shadow_lookup): Add `remap' arg.
711 (describe_map, describe_vector): Update calls to shadow_lookup.
712 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
713 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
714 perform remapping during shadow_lookup check of remapped_sequences.
715
285d07e2
CY
7162010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
717
718 * image.c (png_load): Use png_sig_cmp instead of the obsolete
719 png_check_sig, which has been removed in libpng 1.4.
720
c6d09b8d
CY
7212010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
722
723 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
724 lacks this header file).
725
3d782998
YM
7262010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
727
728 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
729 as in Emacs 22.
730
2aff7c53
YM
7312010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
732
733 * lisp.h (make_pure_string): String pointer arg now points to const.
734
735 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
736 args now point to const.
737
74327f7a
EZ
7382010-01-22 Eli Zaretskii <eliz@gnu.org>
739
740 * lread.c (Fload): Don't treat files without .elc extension as
741 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
742 them. (bug#5303)
743
4d1e6632
KH
7442010-01-20 Kenichi Handa <handa@m17n.org>
745
746 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
747 treat the source as actual byte sequence.
748
1fdede8f
AM
7492010-01-19 Alan Mackenzie <acm@muc.de>
750
751 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 752 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
753 `signal_after_change_p' to `coherent_change_p', and make the
754 invocation of `modify_region' conditional on it.
755
67477f30
JD
7562010-01-19 Jan Djärv <jan.h.d@swipnet.se>
757
758 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
759 for debug purpose.
760 (syms_of_xsettings): Declare xft-settings.
761
244b023e
CY
7622010-01-18 Chong Yidong <cyd@stupidchicken.com>
763
764 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
765
617364fe
CY
7662010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
767
768 * xterm.c (event_handler_gdk): Block input (Bug#5037).
769
4fe22cdf
CY
7702010-01-16 Chong Yidong <cyd@stupidchicken.com>
771
772 * emacs.c (standard_args): Adjust arg priorities to reflect how
773 they are processed in startup.el.
774
e118d2be
AS
7752010-01-16 Andreas Schwab <schwab@linux-m68k.org>
776
777 * Makefile.in (lisp, shortlisp): Update.
778
523ae620
SM
7792010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
780
781 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
782 code, link the new kboard into all_kboard before running Lisp code,
783 and protect the new terminal with GCPRO (Bug#5365).
784 (x_term_init): Remove unused var `atom'.
785 (x_delete_display, x_delete_terminal): Remove unused var `i'.
786
f0d13888
JD
7872010-01-15 Jan Djärv <jan.h.d@swipnet.se>
788
789 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
790 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
791 to find out usable size of the desktop. Don't make frames larger than
ac146f82 792 this. Bug #3643.
f0d13888 793
cc320f07
KH
7942010-01-15 Kenichi Handa <handa@m17n.org>
795
796 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
797
7ffdf101
CY
7982010-01-15 Chong Yidong <cyd@stupidchicken.com>
799
800 * nsterm.m (Qnone): Define.
801
802 * nsfns.m (Qnone): Move definition to nsterm.m.
803
d12bd917
KH
8042010-01-14 Kenichi Handa <handa@m17n.org>
805
806 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
807 systems.
808
d9a7c140
KH
8092010-01-14 Kenichi Handa <handa@m17n.org>
810
811 Make auto-composition work on all buffers even if they are
812 fundamental mode.
813
814 * composite.c (Vauto_composition_mode): New variable.
815 (composition_compute_stop_pos): Check Vauto_composition_mode
816 instead of Vauto_composition_function.
817 (composition_adjust_point, Ffind_composition_internal): Likewise.
818 (syms_of_composite): Declare Lisp variable
819 "auto-composition-mode" here.
820
63286bb2
CY
8212010-01-13 Chong Yidong <cyd@stupidchicken.com>
822
823 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
824 during call to vendor-specific-keysyms (Bug#5365).
825
c2623ee7
YM
8262010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
827
828 * keyboard.c (input_available_signal) [SYNC_INPUT]:
829 Call SIGNAL_THREAD_CHECK (Bug#5333).
830
831 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
832 Call SIGNAL_THREAD_CHECK.
833
0b5397c2
SM
8342010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
835
836 Try to fix bug#5314. This is probably not the final word, tho.
837 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
838 recent-auto-save-p as a side-effect.
839 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
840 * buffer.c (Fkill_buffer, reset_buffer):
841 * editfns.c (Fsubst_char_in_region):
842 * fileio.c (Finsert_file_contents, Fdo_auto_save)
843 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
844
dc954cb2
KH
8452010-01-13 Kenichi Handa <handa@m17n.org>
846
847 Display buffer name, etc. in mode line by composing correctly.
848
849 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
850 STRING is not nil.
0b5397c2 851 (display_mode_element): Adjust for the change of
dc954cb2
KH
852 decode_mode_spec and display_line.
853 (decode_mode_spec): Change arg MULTIBYTE to STRING.
854 (display_string): Handle the case that STRING is non-null and
855 LISP_STRING is not nil.
856
0b5397c2
SM
857 * xterm.c (x_draw_composite_glyph_string_foreground):
858 Pay attention to s->face->overstrike.
dc954cb2
KH
859
860 * composite.c (composition_reseat_it): Don't check PT if STRING is
861 non nil.
862
4a00eaca
YM
8632010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
864
865 * keyboard.c (read_char): Don't apply previous change when current
866 buffer is unchanged by command execution.
867
60abb287
JD
8682010-01-12 Jan Djärv <jan.h.d@swipnet.se>
869
870 * keyboard.c (read_char): Return after executing from special map.
871
893db5bc
GM
8722010-01-12 Glenn Morris <rgm@gnu.org>
873
874 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
875 bug-gnu-emacs rather than emacs-pretest-bug.
876
4d03ece0
CY
8772010-01-11 Chong Yidong <cyd@stupidchicken.com>
878
879 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
880 initializing the Lisp variables that depend on them.
881
1df47e38
YM
8822010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
883
884 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
885 Clear areas that will not be updated after change of menu bar lines.
886 Clear the menu bar window's current matrix when the window gets empty.
887
2f1c6384
CY
8882010-01-09 Chong Yidong <cyd@stupidchicken.com>
889
e398c61c
CY
890 * intervals.h, textprop.c (extend_property_ranges): Return value
891 and args changed. Discard properties that begin at or after the
892 new end (Bug#5306).
893
894 * editfns.c (Fformat): Caller changed.
895
e5a29a10
CY
896 * nsterm.m (ns_set_default_prefs): Delete function.
897 (syms_of_nsterm): Initialize ns_command_modifier,
898 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
899 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
900
2f1c6384
CY
901 * xdisp.c (pos_visible_p): Check for invisible text at the correct
902 position (Bug#4040).
903
d427a9fa
EZ
9042010-01-09 Eli Zaretskii <eliz@gnu.org>
905
906 * editfns.c (Ffloat_time): Doc fix.
907
21b9df2f
JD
9082010-01-09 Jan Djärv <jan.h.d@swipnet.se>
909
910 * xfns.c (Fx_create_frame): Don't create frame larger than display
911 by default bug#3643.
912
4b00d3b1
YM
9132010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
914
915 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
916 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
917 windows above internal border.
918
919 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
920 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
921 windows above internal border.
922
923 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
924 tool bar windows specially.
925
926 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
927
928 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
929 specially.
930 (XTflash): Take account of menu bar height.
931
932 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
933 specially.
934
5075d853
JD
9352010-01-08 Jan Djärv <jan.h.d@swipnet.se>
936
ac146f82 937 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
938 also be true before we can return early (bug #5339).
939
474217c8
CY
9402010-01-06 David Reitter <david.reitter@gmail.com>
941
942 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
943 (Fns_display_usable_bounds): Rewrite, computing bounds properly
944 (Bug#3233).
945
c0e6d47d
JD
9462010-01-06 Jan Djärv <jan.h.d@swipnet.se>
947
d0cf45b7
JD
948 * font.c (font_open_entity): Enable chache and call cached_font_ok
949 for the driver if defined.
950 (QCuser_spec): New symbol.
951 (font_spec_from_name): Save name as user-spec.
952 (font_load_for_lface): Keep user-spec instead of name.
953 (font_open_by_name): Save name as user-spec.
954 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 955 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
956
957 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
958 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
959 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
960
961 * font.h (struct font_driver): Add cached_font_ok.
962
c0e6d47d
JD
963 * xterm.c (x_clear_frame): Queue draw for scroll bars.
964
7c583cd8
JD
9652010-01-05 Jan Djärv <jan.h.d@swipnet.se>
966
967 * xterm.c (x_new_font): Move code for setting rows/cols before
968 resizing ...
ac146f82 969 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
970
971 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
972 (xg_frame_resized, xg_frame_set_char_size):
973 Call xg_clear_under_internal_border.
7c583cd8 974 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 975
03f77f0a
CY
9762010-01-05 Chong Yidong <cyd@stupidchicken.com>
977
978 * keyboard.c (read_key_sequence): Catch keyboard switch after
979 making a new tty frame (Bug#5095).
980
2a1ef5be
KH
9812010-01-05 Kenichi Handa <handa@m17n.org>
982
983 * fontset.c (fontset_find_font): Fix getting the frame pointer.
984
e3eb1dae
SM
9852010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
986
987 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
988 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
989 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
990
777013f2
MA
9912010-01-03 Michael Albinus <michael.albinus@gmx.de>
992
993 * dbusbind.c (xd_add_watch): Improve debug message.
994 (xd_remove_watch): Improve debug message. If DATA is the session
995 bus, unset D-Bus session environment.
996 (Fdbus_init_bus): Pass the bus as argument to
997 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 998
8932b1c2
CY
9992010-01-01 Chong Yidong <cyd@stupidchicken.com>
1000
87231e2c
CY
1001 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1002
4801c5fa
CY
1003 * lread.c (syms_of_lread): Make it clearer that these are the
1004 names of loaded files (Bug#5068).
1005
8932b1c2
CY
1006 * eval.c (run_hook_with_args): Handle the case where the global
1007 value has the obsolete single-function form (Bug#5026).
1008
11e3c684
CY
10092009-12-27 Chong Yidong <cyd@stupidchicken.com>
1010
1011 * minibuf.c (Fall_completions): Minor optimization.
1012
5b28ce35
EZ
10132009-12-26 Eli Zaretskii <eliz@gnu.org>
1014
5ce6e4f4
JB
1015 * .gdbinit (pgx): Fix display of composite glyphs.
1016 Display cmp.from and cmp.to as well.
1017 (pitx): Fix last change.
5b28ce35 1018
bcffff46
KH
10192009-12-25 Kenichi Handa <handa@m17n.org>
1020
1021 * composite.h (composition_adjust_point): Update prototype.
1022
1023 * composite.c (composition_reseat_it): Don't make a composition
1024 spanning over point.
1025 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1026 composable characters.
1027 (composition_adjust_point): New arg NEW_PT. Callers changed.
1028
1029 * keyboard.c (command_loop_1): Force redisplay if the last point
1030 was within a composition.
1031 (adjust_point_for_property): Don't adjust point for automatic
1032 composition when called after buffer modification.
1033
3f670e9a
EZ
10342009-12-19 Eli Zaretskii <eliz@gnu.org>
1035
5ce6e4f4
JB
1036 * .gdbinit (pitx): Don't use enum names, use their values.
1037 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1038 (pgx): Don't use enum names, use their values.
1039 (pitmethod): New helper command.
1040 (pitx): Use it to display iteration method.
1041 (pgrowit): New command.
1042
ad903955
EZ
1043 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1044
3f670e9a
EZ
1045 Update dependencies in Makefile.in.
1046
1047 * Makefile.in (alloc.o): Depend on termhooks.h.
1048 (atimer.o): Depend on blockinput.h.
1049 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1050 and frame.h.
1051 (callint.o): Depend on systime.h, coding.h, and composite.h.
1052 (callproc.o): Depend on buffer.h.
1053 (casefiddle.o): Don't depend on charset.h.
1054 (casetab.o): Depend on character.h.
1055 (ccl.o): Depend on composite.h.
1056 (chartab.o): Depend on ccl.h.
1057 (cm.o): Depend on dispextern.h.
1058 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1059 (coding.o): Don't depend on $(INTERVALS_H).
1060 (composite.o): Don't depend on dispextern.h explicitly (it's in
1061 $(INTERVALS_H)). Depend on ccl.h.
1062 (data.o): Depend on systime.h, coding.h, composite.h,
1063 dispextern.h, font.h, and ccl.h.
1064 (dired.o): Depend on composite.h.
1065 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1066 composite.h (it's in $(INTERVALS_H)).
1067 (doc.o): Depend on systime.h, coding.h, and composite.h.
1068 (editfns.o): Don't depend explicitly on dispextern.h.
1069 (emacs.o): Depend on frame.h and coding.h.
1070 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1071 (fileio.o): Depend on frame.h and commands.h. Don't depend
1072 explicitly on dispextern.h.
1073 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1074 composite.h.
1075 (fns.o): Don't depend on termhooks.h.
1076 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1077 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1078 coding.h, $(INTERVALS_H), window.h, xterm.h.
1079 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1080 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1081 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1082 fontset.h, ccl.h, and ftfont.h.
1083 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1084 (gtkutil.o): Depend on dispextern.h and composite.h.
1085 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1086 termhooks.h, and ccl.h.
1087 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1088 (intervals.o): Depend on systime.h and coding.h.
1089 (keyboard.o): Depend on composite.h and coding.h.
1090 (keymap.o): Depend on coding.h and frame.h.
1091 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1092 (macros.o): Depend on systime.h, coding.h, and composite.h.
1093 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1094 and atimer.h.
1095 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1096 dispextern.h explicitly.
0b5397c2
SM
1097 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1098 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1099 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1100 (regex.o): Don't depend on charset.h.
1101 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1102 (search.o): Don't depend explicitly on composite.h.
1103 (sound.o): Depend on atimer.h and systime.h.
1104 (syntax.o): Don't depend explicitly on composite.h.
1105 (sysdep.o): Depend on coding.h and composite.h.
1106 (term.o): Depend on xterm.h and buffer.h.
1107 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1108 (textprop.o): Don't depend on dispextern.h explicitly.
1109 (undo.o): Depend on dispextern.h.
1110 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1111 dispextern.h and composite.h explicitly.
1112 (xdisp.o): Depend on ccl.h.
1113 (xfaces.o): Depend on coding.h and ccl.h.
1114 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1115 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1116 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1117 ftfont.h.
1118 (xgselect.o): New dependency.
1119 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1120 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1121 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1122 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1123 (xsmfns.o): Depend on frame.h and dispextern.h.
1124 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1125 sysselect.h.
1126
7a6f7fea
AS
11272009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1128
1129 * font.c (Fclear_font_cache): Pass correct cache argument to
1130 font_clear_cache.
1131
f4c21026
AS
11322009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1133
1134 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1135 twice.
1136
f7ab0997
CY
11372009-12-15 Chong Yidong <cyd@stupidchicken.com>
1138
1139 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1140 calling file-remote-p. Reported by Jim Meyering.
1141
fa8e045a
MA
11422009-12-15 Michael Albinus <michael.albinus@gmx.de>
1143
1144 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1145 avoid compiler warnings. (Bug #5217)
fa8e045a 1146
a63dba42
KH
11472009-12-14 Kenichi Handa <handa@m17n.org>
1148
1149 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1150 in 8-bit encoding.
1151
5ce6e4f4 11522009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1153
1154 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1155 tooltip windows.
1156
223e5fc6
JD
11572009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1158
36acb2a7
JD
1159 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1160 Xatom_net_window_type.
1161
1162 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1163 Xatom_net_window_type.
1164
b8f00677
JD
1165 * xterm.c (my_log_handler): New function.
1166 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1167 so we can filter out buggy messages. (Bug #5120).
b8f00677 1168
e5f0bc9a
JD
1169 * xterm.c (xg_scroll_callback): Parameter list changed,
1170 use parameter GtkScrollType to determine scroll/line/page.
1171 Only allow dragging if a button < 4 is grabbed (bug #5177).
1172 (xg_end_scroll_callback): New function.
1173 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1174 xg_create_scroll_bar.
1175
1176 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1177 (scroll_end_callback): Remove.
1178 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1179 button-release-event. Replace value-changed event with change-value,
1180 bug #5177,
1181 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1182 bug #5177.
1183
1184 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1185 (xg_create_scroll_bar): Add GCallback end_callback.
1186
223e5fc6
JD
1187 * xftfont.c (QClcdfilter): New variable.
1188 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1189 (syms_of_xftfont): Initialize QClcdfilter.
1190
3c055b77
JD
11912009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1192
1193 * xsettings.c (struct xsettings): Add member seen.
1194 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1195 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1196 (apply_xft_settings): Only update Xft settings with what member seen
1197 indicates as new.
1198
05fe33ff
EZ
11992009-12-12 Eli Zaretskii <eliz@gnu.org>
1200
1201 * dispextern.h (struct text_pos): Use EMACS_INT;
1202 (struct glyph): Use EMACS_INT for charpos.
1203 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1204 region_beg_charpos, region_end_charpos,
1205 redisplay_end_trigger_charpos, and also for
1206 iterator_stack_entry.end_charpos and
1207 iterator_stack_entry.stop_charpos.
1208
e8d7886a
JD
12092009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1210
5ce6e4f4 1211 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1212 (xg_create_scroll_bar): Call scroll_end_callback on button release
1213 event (bug #5177).
1214 (xg_event_is_for_scrollbar): != replaced with ==.
1215
d0db2ec8
KH
12162009-12-12 Kenichi Handa <handa@m17n.org>
1217
1218 * ftfont.c (struct ftfont_info): New member matrix.
1219 (ftfont_open): Setup xftfont_info->matrix.
1220 (MFLTFontFT): New member matrix.
1221 (FLOOR, CEIL, ROUND): New macros.
1222 (ftfont_get_metrics): Handle matrix transformation.
1223 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1224
1225 * xftfont.c (struct xftfont_info): New member matrix.
1226 (xftfont_open): Setup xftfont_info->matrix.
1227
12282009-12-10 Kenichi Handa <handa@m17n.org>
1229
1230 * xdisp.c (append_space_for_newline): Consider face-remapping.
1231
2cc7b62f
AS
12322009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1233
b87dd913
AS
1234 * xsettings.c: Include "keyboard.h".
1235
eba5eb94
AS
1236 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1237
2cc7b62f
AS
1238 Fix implicit function declarations.
1239 * cmds.c: Include "frame.h".
1240 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1241 * frame.h: Move declaration of delete_frame outside of
1242 HAVE_WINDOW_SYSTEM.
1243
a4ef73c8
CY
12442009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1245
1246 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1247
1248 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1249 GTK builds.
1250
944a300c
AS
12512009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1252
1253 * unexelf.c (unexec): Don't search for .data twice.
1254
022eef62
CY
12552009-12-05 Chong Yidong <cyd@stupidchicken.com>
1256
426ac949
CY
1257 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1258 if push failed.
1259 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1260 of push_display_prop (Bug#5000).
1261
022eef62
CY
1262 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1263 value of font_list_entities (Bug#5085).
1264
be95bee9
JB
12652009-12-04 Juanma Barranquero <lekktu@gmail.com>
1266
1267 Fix `string-to-number' to deal consistently with integers and floats.
1268 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1269 trailing characters, not just whitespace.
1270 (read1): Pass new arg 0 to keep old behavior.
1271 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1272 trailing chars, as it is already done for integers. Doc fixes.
1273 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1274
24c2d7ce
EZ
12752009-12-04 Eli Zaretskii <eliz@gnu.org>
1276
0b5397c2
SM
1277 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1278 Delete unused enumeration value.
24c2d7ce 1279
7e694795
EZ
12802009-12-03 Eli Zaretskii <eliz@gnu.org>
1281
1282 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1283
84b31826
SM
12842009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1285
1286 * process.c (Fmake_network_process): Fix up the tests for
1287 "connectionless socket", so they DTRT for seqpacket sockets as well.
1288
f00c449b
SM
12892009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1290
1291 * process.c (Qseqpacket): New symbol.
1292 (HAVE_SEQPACKET): New macro.
1293 (Fmake_network_process): Accept new :type `seqpacket'.
1294 (init_process): Add `seqpacket' feature when applicable.
1295 (syms_of_process): Initialize Qseqpacket.
1296
8096a0ff
YM
12972009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1298
1299 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1300 if entity is Qnil.
1301
3e0de07f
SM
13022009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1303
1304 * print.c (print_preprocess): Preprocess the key_and_value table of
1305 hashtables, even tho they're "hidden" (bug#5082).
1306
abeafb2a
JD
13072009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1308
1309 * frame.c (frame_make_pointer_invisible)
1310 (frame_make_pointer_visible): Declare f before statements.
1311
4bf47195
EZ
13122009-11-28 Eli Zaretskii <eliz@gnu.org>
1313
1314 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1315 omitted dependencies on lisp.h.
1316
c525b3f2
JD
13172009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1318
ece2d4ed
JD
1319 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1320 is NULL.
1321
1322 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1323
1324 * frame.c (frame_make_pointer_invisible)
3e0de07f 1325 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1326 frame.
1327
c525b3f2
JD
1328 * search.c (simple_search): Remove warning by making *p const.
1329
2f00e299
DN
13302009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1331
1332 * xdisp.c (power_letter): Remove duplicate const.
1333
084b049b
JD
13342009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1335
a1fadc6f
JD
1336 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1337
5ce6e4f4 1338 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1339 defaults (bug #5025).
1340
28259cac
SM
13412009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1342
1343 * insdel.c (adjust_markers_for_delete): Move it in the
1344 right direction! (bug#4803)
1345
e8e14166
YM
13462009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1347
1348 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1349
1350 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1351
86677b58
GM
13522009-11-24 Glenn Morris <rgm@gnu.org>
1353
1354 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1355
581e51e8
JD
13562009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1357
cfc86c7a
JD
1358 * Makefile.in: Must create deps for ecrt0.o in its rule.
1359
581e51e8
JD
1360 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1361 because that is what Gtk+ font dialog understands.
1362
1363 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1364 of Fcopy_sequence.
1365 (font_open_by_name): Put name given into QCname for font-object returned.
1366
1367 * frame.c (x_set_font): Save original font name as frame parameter
1368 font-parameter.
1369
1370 * xsettings.c (set_default_xft_settings): New function.
1371 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1372 is found.
1373
8b264ecb
AS
13742009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1375
1376 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1377 searching backwards through multibyte buffer.
1378
872870b2
JD
13792009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1380
1381 * xterm.c: #include xgselect.h.
1382 (x_initialize): Call xgselect_initialize.
1383
1384 * xsettings.c (something_changedCB): C++ comments => C comments.
1385 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1386 does that now.
1387
1388 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1389 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1390 (scroll_bar_button_cb): Remove.
5ce6e4f4 1391 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1392 event.
1393 (xg_create_scroll_bar): Don't bind button-press-event and
1394 button-release-event.
1395
1396 * process.c: Include xgselect.h if defined (USE_GTK) ||
1397 defined (HAVE_GCONF).
1398 (wait_reading_process_output): Call xg_select for the same condition.
1399
1400 * xgselect.c (xg_select): New function to better integrate with
1401 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1402
1403 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1404
1405 * Makefile.in (XOBJ): Add xgselect.o.
1406
62a6e103
AS
14072009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1408
0b5397c2
SM
1409 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1410 Remove ignored second argument. All callers changed.
62a6e103
AS
1411 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1412 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1413 * xdisp.c (string_char_and_length): Likewise.
1414
b0ca0f33
DN
14152009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1416
1417 * xterm.c (x_new_font):
1418 * print.c (print_object):
1419 * cmds.c (Fself_insert_command): Move declarations before statements.
1420
dd5a6279
CY
14212009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1422
1423 * s/cygwin.h: Remove unneeded linker flags.
1424
4a8e097d
JD
14252009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1426
0d1d0d26
JD
1427 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1428
1429 * xsettings.h: Declare xsettings_get_system_font.
1430
1431 * xsettings.c (xsettings_get_system_font): New function.
1432 (init_gconf): No use initiating gconf unless we have Xft also.
1433 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1434 HAVE_GCONF.
1435
4a8e097d
JD
1436 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1437 add a blank entry so it doesn't collapse into nothing.
1438
8ab1650e
SM
14392009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1440
1441 * lread.c (Funintern): Comment out last change.
1442
82c602f0
RS
14432009-11-19 Richard Stallman <rms@gnu.org>
1444
1445 * lread.c (Funintern): Error if symbol is t or nil.
1446
87e32266
SM
14472009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1448
1449 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1450 representation of Lisp integers.
1451 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1452
1b9ac145
AS
14532009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1454
1455 * lisp.h: Remove declaration of Ffont_get_system_font.
1456 * xfns.c: Move include of "xsettings.h".
1457 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1458
dfb3c4c6
JD
14592009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1460
87e32266
SM
1461 * xsettings.c (something_changedCB, Ffont_get_system_font):
1462 Check use_system_font.
dfb3c4c6
JD
1463 (syms_of_xsettings): DEFVAR font-use-system-font.
1464
9370c1d8
AS
14652009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1466
25fe851a
AS
1467 * xfns.c (x_default_font_parameter): Remove dead assignment.
1468
9370c1d8
AS
1469 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1470
637fa988
JD
14712009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1472
87e32266 1473 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1474 not have FC_LCD_*. #define them if not there.
a6eb20d8 1475
87e32266 1476 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1477
637fa988
JD
1478 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1479
1480 * xterm.c (handle_one_xevent): Call xft_settings_event for
1481 ClientMessage, PropertyNotify and DestroyNotify.
1482 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1483 Call xsettings_initialize.
1484
1485 * xftfont.c (xftfont_fix_match): New function.
1486 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1487 Call xftfont_fix_match after XftFontMatch.
1488
1489 * xfont.c (xfont_driver): Initialize all members.
1490
87e32266
SM
1491 * xfns.c (x_default_font_parameter):
1492 Try font from Ffont_get_system_font.
637fa988
JD
1493 Do not get font from x_default_parameter if we got one from
1494 Ffont_get_system_font.
87e32266 1495 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1496
1497 * w32font.c (w32font_driver): Initialize all members.
1498
1499 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1500
1501 * lisp.h: Declare syms_of_xsettings.
1502
87e32266
SM
1503 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1504 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1505
1506 * ftfont.c (ftfont_filter_properties): New function.
1507
1508 * frame.c (x_set_font): Remove unused variable lval.
1509
87e32266 1510 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1511
1512 * font.c (font_put_extra): Don't return if val is nil, it means
1513 boolean option is off.
1514 (font_parse_fcname): Collect all extra properties in extra_props
1515 and call filter_properties for all drivers with extra_props and
1516 font as parameter.
87e32266
SM
1517 (font_open_entity): Do not use cache, it does not pick up new
1518 fontconfig settings like hinting.
637fa988
JD
1519 (font_load_for_lface): If spec had a name in it, store it in entity.
1520
a73f9c9d 1521 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
1522
1523 * config.in: HAVE_GCONF is new.
1524
1525 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1526 xsettings.o is new.
1527
5a942932
KH
15282009-11-17 Kenichi Handa <handa@m17n.org>
1529
1530 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1531 back to the default font in case that no suitable font is found.
1532
b7c7a4d1
SM
15332009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1534
1535 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1536 Suggested by Chad Brown <yandros@mit.edu>.
1537 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1538
072f1e39
JD
15392009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1540
1541 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1542
5d1e70a2
AS
15432009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1544
87e32266 1545 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1546
a53cfbe5
JD
15472009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1548
473a99b7
JD
1549 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1550 has a parent.
1551
a53cfbe5 1552 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1553 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1554
1555 * config.in: Generated (AUTO_DEPEND).
1556
f04bb9b2
MA
15572009-11-13 Michael Albinus <michael.albinus@gmx.de>
1558
b7c7a4d1 1559 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1560 Vdbus_registered_functions_table, because it contains also
1561 properties. Fix docstring.
b7c7a4d1 1562 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1563
8f11f7ec
SM
15642009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1565
1566 * alloc.c (mark_object): Don't reprocess marked strings.
1567 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1568 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1569
8a605fe8
KH
15702009-11-13 Kenichi Handa <handa@m17n.org>
1571
8f11f7ec 1572 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1573 semantics of Vword_combining_categories.
1574 (Vword_combining_categories): Describe the slight change of the
1575 semantics.
1576
241c4680
EZ
15772009-11-13 Eli Zaretskii <eliz@gnu.org>
1578
1579 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1580
1581 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1582
5d58e44c
SM
15832009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1584
1585 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1586
5e13f9d3
JB
15872009-11-12 Juanma Barranquero <lekktu@gmail.com>
1588
1589 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1590
cf54c754
DR
15912009-11-11 David Reitter <david.reitter@gmail.com>
1592
1593 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1594 variables to fix 2009-11-09 change.
1595
a4ada374
DN
15962009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1597
91433552
DN
1598 * process.c (ifflag_def): Make flag_sym constant.
1599 (Fnetwork_interface_info): Use a constant pointer.
1600 (ifflag_table):
1601 * xfns.c (cursor_bits):
1602 * xdisp.c (power_letter):
1603 * termcap.c (speeds, esctab):
1604 * sysdep.c (baud_convert):
1605 * keyboard.c (lispy_accent_codes, modifier_names):
1606 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1607 (jpeg_format, tiff_format, gif_format, svg_format)
1608 (interlace_start, interlace_increment, gs_format):
1609 * gtkutil.c (separator_names):
1610 * fringe.c (swap_nibble):
1611 * fns.c (base64_value_to_char, base64_char_to_value):
1612 * fileio.c (make_temp_name_tbl):
1613 * coding.c (suffixes): Make constant.
1614
f4265f6c
DN
1615 * frame.c (make_initial_frame):
1616 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1617 build_string.
1618 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1619
04420943
DN
1620 * s/freebsd.h:
1621 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1622
0a5d24ae
DN
1623 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1624 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1625
a4ada374
DN
1626 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1627 * xterm.c (syms_of_xterm):
1628 * xfaces.c (syms_of_xfaces):
1629 * xdisp.c (syms_of_xdisp):
1630 * lread.c (syms_of_lread):
1631 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1632 build_string.
91433552 1633
a4ada374
DN
1634 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1635
af98fc7f
SM
16362009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1637
8ab1650e 1638 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1639
e90292a9
JD
16402009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1641
1642 * keyboard.h: Declare timer_check.
1643
1644 * keyboard.c (timer_check_2): New function that does what the old
1645 timer_check did.
1646 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1647 returned, i.e. don't return -1 with timers pending.
1648
1649 * process.c: Remove extern declaration of timer_check.
1650
1651 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1652 even if timer_check returned -1.
1653
af98fc7f
SM
1654 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1655 xg_dialog_data.
e90292a9
JD
1656 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1657 the event loop.
1658 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1659 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1660 Destroy the dialog after xg_dialog_run.
1661
045b83c0
SM
16622009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1663
1664 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1665
1fb99a3a
JD
16662009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1667
1668 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1669
04e452cb
JB
16702009-11-09 Juanma Barranquero <lekktu@gmail.com>
1671
1672 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1673
ef7417fd
SM
16742009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1675
1676 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1677 w32menu.c, and nsmenu.m.
1678 Simplify the obsolete case where position is nil.
1679 (cleanup_popup_menu): New function, moved from nsmenu.m.
1680 (struct skp): Remove slot `notreal'.
1681 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1682 adjust callers.
1683 (single_menu_item): Adjust call to parse_menu_item.
1684 (syms_of_menu): Defsubr x-popup-menu.
1685 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1686 (keymap_panes): Don't export any more.
1687 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1688 (xmenu_show): Declare.
1689 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1690 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1691 * keyboard.h (parse_menu_item): Update declaration.
1692 * xmenu.c (Fx_popup_menu): Remove.
1693 (syms_of_xmenu): Don't defsubr x-popup-menu.
1694 * w32menu.c (Fx_popup_menu): Remove.
1695 (syms_of_w32menu): Don't defsubr x-popup-menu.
1696 * nsmenu.m (cleanup_popup_menu): Remove.
1697 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1698 moved to menu.c's Fx_popup_menu.
1699 (Fx_popup_menu): Remove.
1700 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1701 menu_items (it's done in menu.c already).
1702
424d6179
SM
17032009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1704
1705 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1706 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1707
c0df13a6 17082009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1709
1710 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1711 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1712 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1713 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1714
2de9f71c
SM
17152009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1716
1717 Let integers use up 2 tags to give them one extra bit and thus double
1718 their range.
1719 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1720 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1721 New macros.
1722 (enum Lisp_Type): Use them. Give explicit values.
1723 (Lisp_Type_Limit): Remove.
1724 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1725 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1726 Pay attention to USE_2_TAGS_FOR_INTS.
1727 (INTEGERP): Use LISP_INT_TAG_P.
1728 * fns.c (internal_equal): Simplify the default case.
1729 (sxhash): Use case_Lisp_Int.
1730 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1731 any more.
1732 (Ftype_of): Use case_Lisp_Int.
1733 (store_symval_forwarding): Take into account the fact that Ints can
1734 now have more than one tag.
1735 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1736 buffer_slot_type_mismatch):
1737 * xfaces.c (face_attr_equal_p):
1738 * print.c (print_object):
1739 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1740 Use case_Lisp_Int.
1741
323637a2
EZ
17422009-11-06 Eli Zaretskii <eliz@gnu.org>
1743
7ac65b38
EZ
1744 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1745
323637a2
EZ
1746 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1747 warning.
1748
e511451f
JD
17492009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1750
1751 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1752
1753 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1754
1755 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1756 ButtonPressRelease and MotionNotify (bug#4870).
1757
5e2327cf
DN
17582009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1759
5adc433e
DN
1760 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1761
d67b4f80
DN
1762 * xterm.c (syms_of_xterm):
1763 * xselect.c (syms_of_xselect):
1764 * xmenu.c (syms_of_xmenu):
1765 * xfns.c (syms_of_xfns):
1766 * xfaces.c (syms_of_xfaces):
1767 * xdisp.c (syms_of_xdisp):
1768 * window.c (syms_of_window):
1769 * w32fns.c (syms_of_w32fns):
1770 * undo.c (syms_of_undo):
1771 * textprop.c (syms_of_textprop):
1772 * terminal.c (syms_of_terminal):
1773 * syntax.c (syms_of_syntax):
1774 * sound.c (syms_of_sound):
1775 * search.c (syms_of_search):
1776 * print.c (syms_of_print):
1777 * minibuf.c (syms_of_minibuf):
1778 * macros.c (syms_of_macros):
1779 * keymap.c (syms_of_keymap, initial_define_key)
1780 (initial_define_lispy_key):
1781 * keyboard.c (syms_of_keyboard):
1782 * insdel.c (syms_of_insdel):
1783 * image.c (syms_of_image):
1784 * fringe.c (syms_of_fringe):
1785 * frame.c (syms_of_frame):
1786 * fontset.c (syms_of_fontset):
1787 * fns.c (syms_of_fns):
1788 * fns.c (syms_of_fns):
1789 * fileio.c (syms_of_fileio):
1790 * fileio.c (syms_of_fileio):
1791 * eval.c (syms_of_eval):
1792 * doc.c (syms_of_doc):
1793 * dispnew.c (syms_of_display):
1794 * dired.c (syms_of_dired):
1795 * dbusbind.c (syms_of_dbusbind):
1796 * data.c (syms_of_data):
1797 * composite.c (syms_of_composite):
1798 * coding.c (syms_of_coding):
1799 * cmds.c (syms_of_cmds):
1800 * charset.c (define_charset_internal, syms_of_character):
1801 * ccl.c (syms_of_ccl):
1802 * category.c (syms_of_category, init_category_once):
1803 * casetab.c (syms_of_casetab):
1804 * casefiddle.c (syms_of_casefiddle):
1805 * callint.c (syms_of_callint):
1806 * bytecode.c (syms_of_bytecode):
1807 * buffer.c (keys_of_buffer, syms_of_buffer):
1808 * alloc.c (syms_of_alloc):
1809 * process.c (syms_of_process, init_process):
1810 * lread.c (syms_of_lread, init_obarray):
1811 * font.c (build_style_table):
1812 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1813 intern_c_string, calls to make_pure_string with
1814 make_pure_c_string. Use pure_cons instead of Fcons.
1815
5e2327cf
DN
1816 * process.c (socket_options): Make it const.
1817 (set_socket_option, init_process): Use a const pointer.
1818
1819 * lread.c (intern_c_string): New function.
1820 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1821 (defvar_int): Uset it. Make the name const char*.
1822
1823 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1824 (defvar_int): Update prototypes.
1825 (DEFUN, EXFUN): Support for prototypes is now required.
1826 (intern_c_string): New prototype.
1827 (struct Lisp_Subr): Make symbol_name constant.
1828
1829 * font.c (struct table_entry): Remove unused member. Make NAMES
1830 constant.
1831 (weight_table, slant_table, width_table): Make constant.
1832
1833 * emacs.c (struct standard_args): Make name and longname constant.
1834
1835 * character.h (DEFSYM): Use intern_c_string.
1836
a56eaaef
DN
18372009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1838
1839 * alloc.c (make_pure_c_string): New function.
1840
1841 * eval.c (Fautoload): Purecopy all arguments.
1842
f6a07420
KH
18432009-11-05 Kenichi Handa <handa@m17n.org>
1844
1845 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1846 the buffer in case of replace.
1847
5d28d4b1
DN
18482009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1849
1850 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1851
b349d111
SM
18522009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1853
d528b1ce
SM
1854 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1855 when applicable (bug#4851).
1856
b349d111
SM
1857 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1858 (P_): Support for prototypes is now required.
1859
c38eb027
CY
18602009-10-31 Chong Yidong <cyd@stupidchicken.com>
1861
1862 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1863 (Bug#4827).
1864
0405f8d9
EZ
18652009-10-30 Eli Zaretskii <eliz@gnu.org>
1866
d528b1ce 1867 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1868
ca0a881a
DN
18692009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1870
1871 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1872
d528b1ce
SM
1873 * lread.c (Fload): Purecopy the file name when building
1874 Vpreloaded_file_list.
ca0a881a 1875
47e0e0e4
JR
18762009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1877
1878 * w32fns.c (syms_of_w32fns): Change default value of
1879 w32-scroll-lock-modifier to nil. (Bug#2827)
1880
057bce6f
JB
18812009-10-26 Juanma Barranquero <lekktu@gmail.com>
1882
782a943e 1883 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1884
242bc74c
AS
18852009-10-26 Andreas Schwab <schwab@redhat.com>
1886
1887 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1888
522d013a
JB
18892009-10-26 Juanma Barranquero <lekktu@gmail.com>
1890
1891 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1892 For delta < 0, skip check that only makes sense when the mini-window
1893 is going to be enlarged. (Bug#4534)
1894
18060980
CY
18952009-10-25 Chong Yidong <cyd@stupidchicken.com>
1896
1897 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1898 string in menu maps (Bug#4471).
1899
fec8f0fe
CY
19002009-10-24 Chong Yidong <cyd@stupidchicken.com>
1901
1902 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1903 FRAME_NS_VIEW on terminal frames (Bug#4765).
1904
10d66ec0
AS
19052009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1906
1cae01f7
AS
1907 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1908 DBUS_TYPE_UINTnn separately to get proper sign extension.
1909
58a12889
AS
1910 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1911 can properly handle unsigned types.
d528b1ce 1912 (make_uid, make_gid): Remove.
58a12889 1913
987c9327
AS
1914 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1915 types again.
1916
522d013a 1917 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1918 (system_process_attributes): Likewise.
1919
905a9ed3
DN
19202009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1921
1922 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1923
1924 * eval.c (Fautoload): Purecopy the filename. Simplify.
1925
1926 * category.c (Fdefine_category): Purecopy docstring.
1927
a599b3e8
AS
19282009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1929
7b792fc9
AS
1930 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1931
a599b3e8
AS
1932 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1933
b35ac83e
CY
19342009-10-23 Chong Yidong <cyd@stupidchicken.com>
1935
1936 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1937 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1938 (Bug#4775).
1939
e8903e00
SM
19402009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1941
1942 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1943 (init_fileio_once):
1944 * lisp.h (init_fileio_once): Remove.
1945 * emacs.c (main): Don't call init_fileio_once.
1946
8f43cbf3
DN
19472009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1948
1949 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1950
26898943
AS
19512009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1952
1953 * doprnt.c (doprnt): Fix overflow check.
1954
5c646d5a
JD
19552009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1956
3132a7ea
JD
1957 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1958
5c646d5a
JD
1959 * xterm.h (x_wait_for_event): Declare it.
1960
1961 * xterm.c (pending_event_wait): New variable.
1962 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1963 see pending_event_wait.eventtype.
1964 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1965 (x_new_font): Call change_frame_size with new rows/columns before we
1966 try to resize the frame.
5c646d5a 1967 (x_wait_for_event): New function.
d528b1ce
SM
1968 (x_set_window_size_1): Don't change gravity unless change_gravity
1969 is set.
5c646d5a
JD
1970 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1971 don't change frame size, instead wait for the ConfigureNotify.
1972 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1973 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1974 (x_initialize): Initialize pending_event_wait.
1975
1976 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1977 size.
1978
1979 * widget.c (EmacsFrameSetValues): Add comment.
1980 (EmacsFrameSetCharSize): Just call x_set_window_size.
1981
1982 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1983 x_wait_for_event.
d528b1ce 1984 (flush_and_sync): Remove again.
5c646d5a
JD
1985 (xg_get_font_name): Suggest monospace if no previous font is known.
1986
e9c1637d
SM
19872009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1988
1989 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1990 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1991
5a72cccb
YM
19922009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1993
1994 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1995 processing pending events when event is filtered for input method.
ab04798f 1996 (Bug#3681)
5a72cccb 1997
2629aa37
JB
19982009-10-20 Juanma Barranquero <lekktu@gmail.com>
1999
2000 * fns.c: Add #endif accidentally removed in previous change.
2001
c3417a74
DN
20022009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2003
2004 * fns.c: Remove code for unsupported system: MAC_OS.
2005 * image.c: Likewise. Include setjmp.h.
2006
9685cef2
JD
20072009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2008
2009 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2010 pixel -1 (bug #4742).
2011
d7306fe6
DN
20122009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2013
019d2c4c
DN
2014 * process.c (create_pty): Remove conditionals for no longer
2015 supported systems: UNIPLUS and RTU.
2016
ee6bacd4
DN
2017 * xterm.c:
2018 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2019
d7306fe6
DN
2020 * alloc.c: Do not define struct catchtag.
2021 * eval.c: Move struct catchtag definition ...
2022 * lisp.h: ... here.
2023
2024 * image.c: Move png.h #include earlier to avoid warnings.
2025
2026 * xterm.c:
2027 * xsmfns.c:
2028 * xselect.c:
2029 * xrdb.c:
2030 * xmenu.c:
2031 * xftfont.c:
2032 * xfont.c:
2033 * xfns.c:
2034 * xfaces.c:
2035 * xdisp.c:
2036 * window.c:
2037 * widget.c:
2038 * w32xfns.c:
2039 * w32uniscribe.c:
2040 * w32term.c:
2041 * w32select.c:
2042 * w32reg.c:
2043 * w32proc.c:
2044 * w32menu.c:
2045 * w32inevt.c:
2046 * w32heap.c:
2047 * w32font.c:
2048 * w32fns.c:
2049 * w32console.c:
2050 * w32.c:
2051 * w16select.c:
2052 * vm-limit.c:
2053 * unexsol.c:
2054 * unexec.c:
2055 * unexcw.c:
2056 * unexaix.c:
2057 * undo.c:
2058 * tparam.c:
2059 * textprop.c:
2060 * terminfo.c:
2061 * terminal.c:
2062 * termcap.c:
2063 * term.c:
2064 * syntax.c:
2065 * sound.c:
2066 * sheap.c:
2067 * search.c:
2068 * scroll.c:
2069 * region-cache.c:
2070 * regex.c:
2071 * ralloc.c:
2072 * process.c:
2073 * print.c:
b024548b
DN
2074 * nsterm.m:
2075 * nsselect.m:
2076 * nsmenu.m:
2077 * nsimage.m:
2078 * nsfont.m:
2079 * nsfns.m:
d7306fe6
DN
2080 * msdos.c:
2081 * minibuf.c:
2082 * menu.c:
2083 * marker.c:
2084 * macros.c:
2085 * keymap.c:
2086 * keyboard.c:
2087 * intervals.c:
2088 * insdel.c:
2089 * indent.c:
2090 * gtkutil.c:
2091 * ftxfont.c:
2092 * ftfont.c:
2093 * fringe.c:
2094 * frame.c:
2095 * fontset.c:
2096 * font.c:
2097 * fns.c:
2098 * floatfns.c:
2099 * filelock.c:
2100 * fileio.c:
2101 * emacs.c:
2102 * editfns.c:
2103 * dosfns.c:
2104 * doprnt.c:
2105 * doc.c:
2106 * dispnew.c:
2107 * dired.c:
2108 * dbusbind.c:
2109 * data.c:
2110 * composite.c:
2111 * coding.c:
2112 * cmds.c:
2113 * cm.c:
2114 * chartab.c:
2115 * charset.c:
2116 * character.c:
2117 * ccl.c:
2118 * category.c:
2119 * casetab.c:
2120 * casefiddle.c:
2121 * callproc.c:
2122 * callint.c:
2123 * bytecode.c:
2124 * buffer.c:
2125 * atimer.c: Include setjmp.h. (Bug#4643)
2126
fd5f21e6
SM
21272009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2128
4c0354d7
SM
2129 Remove leftover table unibyte_to_multibyte_table.
2130 * character.c (unibyte_to_multibyte_table): Remove.
2131 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2132 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2133 * character.h (UNIBYTE_TO_CHAR): New macro.
2134 (MAKE_CHAR_MULTIBYTE): Use it.
2135 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2136 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2137 (message_dolog, set_message_1):
2138 * search.c (Freplace_match):
2139 * editfns.c (Fcompare_buffer_substrings):
2140 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2141 (concat):
2142 * insdel.c (copy_text, count_size_as_multibyte):
2143 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2144 * term.c (produce_glyphs):
2145 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2146 * regex.c (RE_CHAR_TO_MULTIBYTE):
2147 * cmds.c (internal_self_insert):
2148 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2149
fd5f21e6
SM
2150 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2151
4418646e
DN
21522009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2153
2154 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2155
35f5c1d2
JB
21562009-10-16 Juanma Barranquero <lekktu@gmail.com>
2157
2158 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2159
a0cd8f6b
AR
21602009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2161
2162 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2163 still needed under Tiger.
2164
2165 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2166
2167 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2168 __Apple__.
2169
2170 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2171
01a8d3fa
KH
21722009-10-15 Kenichi Handa <handa@m17n.org>
2173
2174 * print.c (print_object): Escape a symbol like "2E10" too.
2175
bf6c75c9 21762009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2177
2178 Cleanups and changes for 64-bit compile under Snow Leopard.
2179 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2180
2181 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2182
c5959062 2183 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2184 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2185 cast argument.
2186 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2187 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2188
2189 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2190
2191 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2192 where appropriate.
2193
2194 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2195 where appropriate.
6e4780c5
JB
2196 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2197 Use stringWithUTF8String.
bf6c75c9
AR
2198 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2199
6e4780c5
JB
2200 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2201 Add formal protocol mention to inheritance.
bf6c75c9
AR
2202 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2203
6e4780c5
JB
2204 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2205 Fix printf format.
bf6c75c9
AR
2206 (ns_query_color): Use CGFloat where appropriate.
2207 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2208 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2209 argument.
2210
3d87f118
AR
2211 * config.in (NS_HAVE_NSINTEGER): Drop.
2212
a95c8102
AR
2213 * dbusbind.c (dbus-method-return-internal)
2214 (dbus-method-error-internal): Use long format in printf, and cast
2215 argument.
2216
2217 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2218 in printf, and cast argument.
2219
6873acca 2220 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2221 cast argument.
2222
9ec6f100
GM
22232009-10-11 Glenn Morris <rgm@gnu.org>
2224
2225 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2226
5be883cd
JD
22272009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2228
2229 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2230 menu bar with a small width so it doesn't enlarge the frame.
2231
d7a39b51
JB
22322009-10-08 Juanma Barranquero <lekktu@gmail.com>
2233
2234 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2235
0c2b6f8e
GM
22362009-10-06 Glenn Morris <rgm@gnu.org>
2237
2238 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2239 SOME_MACHINE_LISP (this enters indirectly via DOC).
2240
e02131a2
EZ
22412009-10-05 Eli Zaretskii <eliz@gnu.org>
2242
2243 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2244
b4744254
EZ
22452009-10-04 Eli Zaretskii <eliz@gnu.org>
2246
2247 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2248 Doc fix.
2249
dbf64827
JB
22502009-10-03 Martin Rudalics <rudalics@gmx.at>
2251
2252 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2253
e9a0aef8
MA
22542009-10-02 Michael Albinus <michael.albinus@gmx.de>
2255
d528b1ce 2256 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2257 used anymore outside fileio.c.
2258
2259 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2260
64eb2b56
JB
22612009-10-01 Juanma Barranquero <lekktu@gmail.com>
2262
2263 * lisp.h (Qdelete_directory_internal):
2264 Declare, instead of Qdelete_directory.
2265
2266 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2267
9d28c33e
SM
22682009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2269
2270 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2271
9d8f3bd9
MA
22722009-10-01 Michael Albinus <michael.albinus@gmx.de>
2273
9d28c33e 2274 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2275 Fdelete_directory. It is not a command anymore. It has no file
2276 name handler.
2277
9694740b
SM
22782009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2279
2280 * xdisp.c (get_next_display_element): Use an enum in last change.
2281
748e162f
KH
22822009-09-28 Kenichi Handa <handa@m17n.org>
2283
9694740b 2284 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2285 unibyte_display_via_language_environment in handling
2286 Vnobreak_char_display.
2287
17efd58d
AR
22882009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2289
2290 * nsterm.h (ns_app_name): New extern variable.
2291
2292 * nsterm.m (ns_app_name): New variable.
2293 (ns_term_init): Set and use it.
2294 (ns_term_shutdown): Use it.
2295
2296 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2297 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2298
2299 * nsfns.m (ns_set_name_iconic, ns_set_name)
2300 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2301 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2302
9694740b
SM
2303 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2304 Remove double-casting in client_data comparison.
31c2d412 2305
3208cb35
YM
23062009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2307
2308 * keyboard.c (make_lispy_event): Remember last wheel direction.
2309 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2310
b7d552d6
GM
23112009-09-26 Glenn Morris <rgm@gnu.org>
2312
2313 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2314 internal.elc. Add term/pc-win.elc.
2315 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2316 term/x-win.elc.
2317 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2318 term/w32-win.elc.
2319 (NS_SUPPORT): New.
2320 (lisp): Add NS_SUPPORT.
2321 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2322
4ff670a8
DR
23232009-09-25 David Reitter <david.reitter@gmail.com>
2324
2325 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2326 on Mac OS X 10.6+ (bug#4513).
2327
feabfb6c
JB
23282009-09-24 Juanma Barranquero <lekktu@gmail.com>
2329
2330 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2331 some parts of Emacs code (like font selection) don't grok them.
2332 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2333
de59072a
AS
23342009-09-24 Andreas Schwab <schwab@redhat.com>
2335
2336 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2337
a489517b
JB
23382009-09-24 Juanma Barranquero <lekktu@gmail.com>
2339
2340 * dired.c (Fdirectory_files): Fix typo in docstring.
2341
0592970c
AR
23422009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2343
2344 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2345 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2346 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2347 under GNUstep.
2348 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2349
2350 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2351 glyph advancement.
2352
48e8a88b
AR
23532009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2354
2355 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2356 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2357
2358 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2359 deleted (bug #4492).
2360
e14f0a78
AR
2361 * nsfont.m (Vns_reg_to_script): New lisp variable.
2362 (syms_of_nsfont): Declare it.
2363 (ns_registry_to_script): New function.
2364 (ns_get_req_script): Call it.
2365 (ns_findfonts): Don't give up on non-unicode registry.
2366
2367 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2368
5b650faa
SM
23692009-09-20 Tom Tromey <tromey@redhat.com>
2370
2371 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2372 batch mode (bug#4228).
2373
a489517b 23742009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2375
2376 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2377 carefully. (Bug #4339)
0bae4e09 2378
fcfe06f3
CY
23792009-09-18 Chong Yidong <cyd@stupidchicken.com>
2380
d798ba87 2381 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2382
31642728
AR
23832009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2384
2385 * emacs.c (inhibit_x_resources): Update doc string for NS.
2386 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2387 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2388
2389 * nsterm.h (ns_no_defaults): Remove.
2390
2391 * nsterm.m (ns_no_defaults): Remove.
2392 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2393 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2394 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2395 don't update the NSWindow itself.
2396 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2397 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2398
2399 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2400 ns_use_qd_smoothing.
2401
2402 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2403 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2404 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2405 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2406
8686ac71
JB
24072009-09-17 Juanma Barranquero <lekktu@gmail.com>
2408
2409 * emacs.c (inhibit_x_resources): New variable.
2410 (main) [HAVE_NS]: Don't process --quick command line option.
2411 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2412
2413 * lisp.h (inhibit_x_resources): Declare it extern.
2414
2415 * w32reg.c (x_get_string_resource):
2416 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2417
e227ba05
EZ
24182009-09-17 Eli Zaretskii <eliz@gnu.org>
2419
362654a6
JB
2420 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2421 Add lisp/term/internal.elc.
e227ba05 2422
742d40e8
SM
24232009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2424
2425 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2426 (bug#4461).
2427
005bd5a2
DN
24282009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2429
2430 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2431
2432 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2433 (OBJECTS_MACHINE): Remove, unused.
2434
f9af9719
SM
24352009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2436
2437 * frame.c (x_get_resource_string): Remove unused.
2438
0307c7d2
JD
24392009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2440
2441 * xterm.c (x_new_font): Call change_frame_size before calling
2442 x_set_window_size, in case frame size won't change.
2443
2444 * frame.c (x_set_font): Remove dead code.
2445
428b13d6
SM
24462009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2447
2448 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2449
5766c380
SM
24502009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2451
2452 * lread.c (Fload): Don't output a message after loading an obsolete
2453 package any more (done in Lisp now).
2454
2fd0161b
CY
24552009-09-12 Chong Yidong <cyd@stupidchicken.com>
2456
2457 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2458
bc5e75b6
SM
24592009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2460
2461 * keymap.c (Fwhere_is_internal): Use nconc2.
2462
c31c985e
AM
24632009-09-11 Alan Mackenzie <acm@muc.de>
2464
2465 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2466 batch mode.
2467
78012bd2
AS
24682009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2469
2470 * xdisp.c (display_mode_element): Detect cycles.
2471
9d889332
SM
24722009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2473
2474 * keymap.c (where_is_internal): Don't erroneously return nil right after
2475 filling the cache.
2476 (where_is_internal_1): Fix up typo.
2477
7ab5d780
GM
24782009-09-11 Glenn Morris <rgm@gnu.org>
2479
2480 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2481 share a common doc-string.
2482
5238a749
SM
24832009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2484
66d77eda
SM
2485 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2486 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2487
5238a749
SM
2488 * keymap.c (QCadvertised_binding): New constant.
2489 (syms_of_keymap): Initialize it.
2490 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2491 if applicable.
2492
19f48442
SM
24932009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2494
50d4ba39
SM
2495 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2496 (parse_menu_item): Streamline since bindings are recomputed all the
2497 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2498 more and don't support lmenu's menu-alias any more either.
2499
a88a5372
SM
2500 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2501 (where_is_internal): Strip it down to only traverse the keymaps.
2502 Move the cache handling from Fwhere_is_internal to here.
2503 (Fwhere_is_internal): Move the handling of remapping and the choice of
2504 the best binding from where_is_internal to here.
2505 Unify the cached/noncached paths, so remapping is also handled
2506 correctly when the cache is used, and so the cache can be used to
2507 speed up remap-handling when applicable.
2508 Give preference to non-remapped bindings.
2509 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2510 non-remapped bindings.
2511 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2512 command remapping.
2513
19f48442
SM
2514 * xdisp.c (display_mode_element): Move list length limit from 50 to
2515 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2516
599498c3 25172009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2518
2519 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2520
f9b7b5ac
SM
25212009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2522
a53af587
JB
2523 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2524 (Bug#4334)
2525
f9b7b5ac
SM
2526 * keymap.c (where_is_internal): Filter out shadowed remappings.
2527 Assume that where_is_internal returns unshadowed bindings to simplify
2528 the code and get rid of the gotos. Use ASIZE.
2529
04f4b72d
JD
25302009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2531
4da146f2
JD
2532 * xterm.c (x_focus_changed): If we get a focusout and pointer
2533 is invisible, make it visible.
2534
04f4b72d
JD
2535 * xterm.h: Remove condition for declaration of
2536 x_*_window_to_frame.
2537
7cef7ce3
SM
25382009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2539
2540 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2541 initial terminal as well.
2542
a54fa5b7
JD
25432009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2544
2545 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2546 x_menubar_window_to_frame.
a54fa5b7
JD
2547
2548 * xterm.c: Remove declarations also in xterm.h
2549 (XTmouse_position): Do not return valid positions
2550 for clicks in the menubar and the toolbar for Gtk+.
2551
2552 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2553 if the widget for the event has the same top level as a frame,
2554 return the frame.
2555 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2556 internal windows, bug #4122.
2557 (x_non_menubar_window_to_frame): Remove.
2558
5a021dd0
GM
25592009-09-02 Glenn Morris <rgm@gnu.org>
2560
2561 * buffer.c (default-major-mode): Move most of the doc from here...
2562 (major-mode): ... to here.
2563
548fe2f3
NR
25642009-08-30 Nick Roberts <nickrob@snap.net.nz>
2565
2566 * process.c (wait_reading_process_output): Keep the descriptor
2567 when pty is used by a non-child process, e.g., in I/O buffer of
2568 GDB this allows inferior to be restarted.
2569
e0840eef
EZ
25702009-08-29 Eli Zaretskii <eliz@gnu.org>
2571
2572 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2573 both branches into one.
2574
82e98df4
SM
25752009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2576
2577 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2578 (main): Use enable-multibyte-characters rather than
2579 default-enable-multibyte-characters. Output a warning message when
2580 running a unibyte session.
2581
890617cb
YM
25822009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2583
2584 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2585 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2586 (copy_data_segment): Also copy __program_vars section.
2587 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2588 (dump_it) [LC_DYLD_INFO]: Use it.
2589
2590 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2591
e7adeadc
EZ
25922009-08-28 Eli Zaretskii <eliz@gnu.org>
2593
2594 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2595 $(SRC)/buildobj.h.
2596 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2597 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2598 $(SRC)/buildobj.h.
2599 (clean): Add buildobj.h.
2600
3ed8bbdc
TZ
26012009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2602
2603 * print.c (print_object): Set escapeflag to 1 when printing
2604 hashtable keys and values.
2605
155a6764
SM
26062009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2607
2608 * lread.c (read_integer): Use doubles (and potentially return a float
2609 number) as we do in string-to-number.
2610 (read1): Use strtol to read integers, signal errors on strtol's
2611 overflow and use floats if strtol's output is too large for
2612 Elisp integers.
2613
877610de
EZ
26142009-08-27 Eli Zaretskii <eliz@gnu.org>
2615
2616 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2617 (make-buildobj-SH): Fix last change.
2618 (SRC): Move to before where it's first used.
2619
ef73e7be
KH
26202009-08-27 Kenichi Handa <handa@m17n.org>
2621
550c8289
KH
2622 * process.c (send_process): Use encode_coding_object instead of
2623 encode_coding_string to perform eol-conversion even if the string
2624 is unibyte.
2625
60afa08d
KH
2626 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2627 character.
2628
ef73e7be 2629 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2630 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2631
7b3a82d7
DN
26322009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2633
5654bf63
DN
2634 * callproc.c (Fcall_process): Remove always true #if.
2635
7b3a82d7
DN
2636 * lisp.h: Replace #if 0 code for checking with text pointing to
2637 the --enable-checking configure flag.
2638
2639 * emacs.c (main): Mention the --enable-profiling configure flag
2640 instead of using CFLAGS.
2641
878bde49
KR
26422009-08-26 Ken Raeburn <raeburn@raeburn.org>
2643
2644 * Makefile.in (buildobj.h): New target.
2645 (doc.o): Depend on it.
2646 (temacs${EXEEXT}): Don't generate buildobj.lst.
2647 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2648 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2649 ($(BLD)/doc.$(O)): Depend on it.
2650 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2651 provided by Eli Zaretskii.)
2652 ($(TEMACS)): Don't generate buildobj.lst.
2653 * doc.c: Include buildobj.h.
2654 (buildobj): New static variable.
2655 (Fsnarf_documentation): Use it, instead of opening and reading
2656 buildobj.lst.
2657
1574224c
MA
26582009-08-25 Michael Albinus <michael.albinus@gmx.de>
2659
2660 * dbusbind.c (Fdbus_call_method)
2661 (Fdbus_call_method_asynchronously): Use English numeric format for
2662 timeout values in doc string.
2663
d9da2f45
KH
26642009-08-25 Kenichi Handa <handa@m17n.org>
2665
ef73e7be
KH
2666 * alloc.c (mark_char_table): New function.
2667 (mark_object): Use mark_char_table for a char-table.
2668
d9da2f45
KH
2669 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2670 (CHAR_TABLE_REF): Use it.
2671
c8edcc01
KR
26722009-08-23 Ken Raeburn <raeburn@raeburn.org>
2673
2674 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2675 before invoking the newly build emacs to check for load-path
2676 shadowing.
2677
7763401b
GM
26782009-08-22 Glenn Morris <rgm@gnu.org>
2679
2680 * Makefile.in (bootstrap_exe): New variable.
2681 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2682 Use ${bootstrap_exe}.
2683
729eadda
EZ
26842009-08-22 Eli Zaretskii <eliz@gnu.org>
2685
2686 * coding.h (encode_coding_string): Don't encode unibyte strings.
2687 (Bug#4047)
2688
eb4c6ace
MA
26892009-08-22 Michael Albinus <michael.albinus@gmx.de>
2690
2691 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2692
2693 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2694 intended as hotfix only.
2695 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2696
36e34d1b
AR
26972009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2698
2699 * nsterm.m (ns_get_color): Update documentation properly for last
2700 change, and clean up loose ends in the code left by it. Fix
2701 longstanding bug with 16-bit hex parsing, and add support for
2702 yet another X11 format (rgb:r/g/b) for compatibility.
2703 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2704 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2705
f983eb8a
SM
27062009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2707
2708 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2709
3f56d3c6
MA
27102009-08-20 Michael Albinus <michael.albinus@gmx.de>
2711
2712 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2713 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2714 (xd_initialize, xd_pending_messages): Check, whether
2715 $DBUS_SESSION_BUS_ADDRESS is set.
2716
fb641d68
YM
27172009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2718
2719 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2720
2721 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2722
cf59a374
GM
27232009-08-20 Glenn Morris <rgm@gnu.org>
2724
2725 * emacs.c (system-type): Doc fix.
2726
1373f3be
SM
27272009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2728
2729 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2730 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2731
058ed861
MA
27322009-08-18 Michael Albinus <michael.albinus@gmx.de>
2733
1373f3be
SM
2734 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2735 New functions.
058ed861
MA
2736 (xd_initialize): Revert change from 2009-08-16.
2737
563a866e 27382009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2739
2740 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2741 font-group vector, return nil.
5fc05db0 2742
e42bdf01
CY
27432009-08-17 Chong Yidong <cyd@stupidchicken.com>
2744
2745 * process.c (status_notify): Don't perform redisplay.
2746 (Fdelete_process, list_processes_1, process_send_signal):
2747 Expliticly perform redisplay.
2748 (wait_reading_process_output): Always check process status, but
2749 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2750
4230ab74
KR
27512009-08-17 Ken Raeburn <raeburn@raeburn.org>
2752
1373f3be 2753 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2754 (XFLOAT_INIT): New macro for storing a float value.
2755 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2756 * fns.c (sxhash): Copy out the value of a float in order to
2757 examine its bytes.
2758 * dbusbind.c (xd_append_arg): Likewise.
2759
4230ab74
KR
2760 * emacs.c (main): Don't call syms_of_data twice.
2761
a0645cdd
MA
27622009-08-16 Michael Albinus <michael.albinus@gmx.de>
2763
2764 * dbusbind.c (xd_initialize): Add connection file descriptor to
2765 input_wait_mask, in order to let select() detect, whether a new
2766 message has been arrived.
ca4f31ea 2767 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2768
485db0ba
MA
27692009-08-15 Michael Albinus <michael.albinus@gmx.de>
2770
1373f3be
SM
2771 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2772 New functions.
485db0ba
MA
2773
2774 * lisp.h (xd_pending_messages): Declare.
2775
2776 * keyboard.c (readable_events): Call xd_pending_messages.
2777
b5b98ff4
CY
27782009-08-15 Chong Yidong <cyd@stupidchicken.com>
2779
1373f3be 2780 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2781
f8354c6e
CY
2782 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2783
b5b98ff4
CY
2784 * buffer.c (set_buffer_internal_1)
2785 (swap_out_buffer_local_variables): Check for unbound local
2786 variables (Bug#4138).
2787
8b9fc636
EZ
27882009-08-14 Eli Zaretskii <eliz@gnu.org>
2789
2790 * process.c (create_pty): Fix last change.
2791
ce959360
CY
27922009-08-13 Chong Yidong <cyd@stupidchicken.com>
2793
2794 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2795 (xbm_load_image): Caller changed.
64b807c9 2796 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2797
c7baf7e9
NR
27982009-08-13 Nick Roberts <nickrob@snap.net.nz>
2799
2800 * process.c (create_pty): New function.
2801 (Fstart_process): Use it to allow Emacs to just associate a pty
2802 with the buffer. See associated change in gdb-mi.el.
2803 (list_processes_1): Deal with no program name.
2804 (start_process_unwind): Use pid == -2 to mean no process.
2805
1ac9108a
SM
28062009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2807
2808 * cmds.c (nonundocount): New global variable.
2809 (keys_of_cmds): Initialize it.
2810 (Fself_insert_command): Use it to combine upto 20 sequential chars
2811 into a single undo entry, just like the Qself_insert_command code in
2812 keyboard.c does.
2813 Call frame_make_pointer_invisible, also like the Qself_insert_command
2814 code in keyboard.c does.
2815 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2816 than its own local replacement for it.
2817
e267324c
KR
28182009-08-10 Ken Raeburn <raeburn@raeburn.org>
2819
1ac9108a 2820 * fns.c (concat): Don't re-set string length to its current value.
77437343 2821
1ac9108a
SM
2822 * coding.h (decode_coding_string, encode_coding_string):
2823 Use SBYTES macro.
f0bed503 2824
1ac9108a 2825 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2826 (doprnt): Merge with doprnt1, discarding lispstrings code.
2827 * lisp.h (doprnt_lisp): Don't declare.
2828
416e006d
JL
28292009-08-07 Juri Linkov <juri@jurta.org>
2830
2831 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2832
6f7d5780
DN
28332009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2834
2835 * print.c (syms_of_print): Undo previous change.
2836
f19a0f5b
TZ
28372009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2838
2839 * lread.c (read1, syms_of_lread): Read hashtables back from the
2840 readable format.
2841
2842 * print.c (print_preprocess, print_object): Print hashtables fully
2843 and readably.
2844 (syms_of_print): Provide 'hashtable-print-readable.
2845
b9173dc2
AR
28462009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2847
2848 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2849 no family set.
2850 (nsfont_open): Handle case when entity has no family.
2851
1586503c
AR
28522009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2853
2854 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2855 element, not a list, for match case.
2856
087048cd
KH
28572009-07-28 Kenichi Handa <handa@m17n.org>
2858
2859 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2860 rigidly.
2861
2862 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2863 font_parse_xlfd. Check font properties more rigidly.
2864
780c2506
DN
28652009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2866
31fd7c5c
JB
2867 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2868 bsd-common.h.
780c2506 2869
a8c0cc18
KH
28702009-07-27 Kenichi Handa <handa@m17n.org>
2871
2872 * xfaces.c (face_with_height): Call font_clear_prop.
2873
4fbe2306
CY
28742009-07-26 Chong Yidong <cyd@stupidchicken.com>
2875
111d9af3
CY
2876 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2877
2878 * xterm.c (x_term_init): Use Qx.
2879
4fbe2306
CY
2880 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2881
1ac9108a 2882 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2883 (ns_get_color): Revert 2009-07-16 change.
2884
beb0b7f9
EZ
28852009-07-25 Eli Zaretskii <eliz@gnu.org>
2886
2887 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2888 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2889
2baf5e76
KR
28902009-07-25 Ken Raeburn <raeburn@raeburn.org>
2891
1ac9108a
SM
2892 * coding.h (decode_coding_string, encode_coding_string):
2893 Use SCHARS macro.
8890e5f5 2894
2baf5e76 2895 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2896 (load_depth): Delete.
2baf5e76
KR
2897 (Qload_in_progress): New variable.
2898 (load_unwind): Don't reference load_depth or load_in_progress.
2899 (Fload): Likewise; specbind Qload_in_progress instead.
2900 (init_lread): Don't initialize load_depth.
2901 (syms_of_lread): Initialize and protect Qload_in_progress.
2902
1395c6f5
AR
29032009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2904
2905 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2906
4e2f36cf
AR
29072009-07-23 Yavor Doganov <yavor@gnu.org>
2908
2909 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2910
5dd9a6f7
AR
29112009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2912
2913 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2914 Bugs 3792, 3720, 2402.
2915 (ns_lookup_indexed_color): Check for bad index.
2916 (ns_index_color): Init unused slot to 0.
2917 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2918 Bug 3714, possibly 3082.
5dd9a6f7 2919
c902b920
JR
29202009-07-22 Jason Rumney <jasonr@gnu.org>
2921
1ac9108a
SM
2922 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2923 Position IME window at cursor (Bug#2570).
c902b920
JR
2924 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2925 (globals_of_w32fns): Dynamically load functions required above.
2926
2927 * w32term.c (w32_draw_window_cursor): Send message to reposition
2928 any IME window.
2929
090101cf
CY
29302009-07-21 Chong Yidong <cyd@stupidchicken.com>
2931
2932 * fileio.c: Revert 2009-07-16 changes.
2933 (Vauto_save_include_big_deletions): New variable.
2934 (Fdo_auto_save): Disable auto-save only if
2935 auto-save-include-big-deletions is nil.
2936
e6583e3d
CY
29372009-07-21 Chong Yidong <cyd@stupidchicken.com>
2938
2939 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2940 the overflowed pixels into account (Bug#3879).
2941
ece435a5
KR
29422009-07-21 Ken Raeburn <raeburn@raeburn.org>
2943
2944 * lread.c (load_depth): New variable.
2945 (Fload, load_unwind, init_lread): Set it to the load recursion
2946 depth; set load_in_progress as a simple boolean based on the
2947 current load_depth. (Bug#3892)
2948
40b2d973
AR
29492009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2950
2951 * nsfont.m (ns_has_attribute): Remove.
2952 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2953
10be7e0d
JL
29542009-07-18 Juri Linkov <juri@jurta.org>
2955
2956 * process.c (Fset_process_query_on_exit_flag): Mention killing
2957 a buffer in docstring.
2958
fa055055
KH
29592009-07-17 Kenichi Handa <handa@m17n.org>
2960
2961 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2962
042f7b69
YM
29632009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2964
2965 * nsfns.m (Fns_set_alpha): Remove function.
2966 (syms_of_nsfns): Don't defsubr it.
2967
2968 * nsterm.m (ns_get_color): Remove incompatible color formats.
2969 (ns_color_to_lisp): Generate #rrggbb color format string.
2970
4be941e3
RS
29712009-07-16 Richard Stallman <rms@gnu.org>
2972
2973 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2974 (Fset_buffer_auto_saved): Handle save_length = -2.
2975
4e6b227d
CY
29762009-07-16 Chong Yidong <cyd@stupidchicken.com>
2977
2978 * xterm.c (Qx_gtk_map_stock): New var.
2979
2980 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2981 of calling intern each time.
2982
a1856973
YM
29832009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2984
2985 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2986 does tiling.
2987
2988 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2989
497e54d8
KH
29902009-07-14 Kenichi Handa <handa@m17n.org>
2991
72d36834
KH
2992 * font.c (font_vconcat_entity_vectors): New function.
2993 (struct font_sort_data): New member font_driver_preference.
2994 (font_compare): Check font_driver_preference.
2995 (font_sort_entities): The format of the first argument changed.
2996 (font_delete_unmatched): Likewise.
2997 (font_list_entities): The return type changed.
2998 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2999 (font_find_for_lface): Adjuste for the above changes.
3000 Don't suppress the checking of C even if the repertory supports it.
3001 (Flist_fonts): Adjust for the above changes.
72d36834 3002
1ac9108a
SM
3003 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3004 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3005 Reject a font who has adstyle property that is different from a
3006 langname derived from registry property.
1ac9108a 3007 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3008
b6046155
EZ
30092009-07-13 Eli Zaretskii <eliz@gnu.org>
3010
3011 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3012 local copy of dirfilename.
3013
fb6b6049
KH
30142009-07-13 Kenichi Handa <handa@m17n.org>
3015
e2402a5e
KH
3016 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3017 against max_char.
3018
fb6b6049
KH
3019 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3020 calling XSYMBOL (sym).
3021
65156807
EZ
30222009-07-11 Eli Zaretskii <eliz@gnu.org>
3023
1ac9108a
SM
3024 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3025 New function.
3026 (directory_files_internal) [WINDOWSNT]:
3027 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3028 the filesystem of the directory is fast or slow.
3029
3030 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3031 file name.
3032 (is_slow_fs): New function.
3033 (stat): Use it to determine whether to issue more system calls to
3034 get accurate file attributes, when w32-get-true-file-attributes is
3035 `local'.
3036
e0ab5fcf
JD
30372009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3038
3039 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3040 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3041 parameter font-parameter as default to the font dialog.
3042
784ceded
KH
30432009-07-10 Kenichi Handa <handa@m17n.org>
3044
3045 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3046
fb8edc0b
EZ
30472009-07-09 Eli Zaretskii <eliz@gnu.org>
3048
1ac9108a 3049 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3050
fb8edc0b
EZ
3051 * w32.c (stat): Treat UNC file names as residing on remote
3052 drives. (Bug#3542)
3053
635c75b1
KH
30542009-07-09 Kenichi Handa <handa@m17n.org>
3055
3056 * fontset.c (fontset_find_font): Fix previous change.
3057
c1d5ce94
MA
30582009-07-08 Michael Albinus <michael.albinus@gmx.de>
3059
3060 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3061 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3062 error flag.
3063
edb61b39
KH
30642009-07-08 Kenichi Handa <handa@m17n.org>
3065
374bf7e4
KH
3066 * fontset.c (fontset_find_font): Fix the logic of handling
3067 charset_matched.
3068 (font_for_char): Delete unused var.
3069 (generate_ascii_font_name): Delete it.
3070
edb61b39
KH
3071 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3072
3073 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3074 (encode_coding_sjis): Fix the code range check.
3075
0f3f018c
CY
30762009-07-07 Chong Yidong <cyd@stupidchicken.com>
3077
3078 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3079 (Fexpand_file_name): Copy string data properly (Bug#3772).
3080
fcaf6f3a
JD
30812009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3082
3083 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3084 first MapNotify.
3085
6809ca75
KH
30862009-07-07 Kenichi Handa <handa@m17n.org>
3087
3088 * character.h (unibyte_has_multibyte_table): Delete extern.
3089 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3090
3091 * charset.c (Fset_charset_priority): Update charset_unibyte.
3092 (syms_of_charset): Initialize charset_unibyte.
3093
3094 * character.c (unibyte_has_multibyte_table): Delete it.
3095 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3096 charset_unibyte.
3097 (multibyte_char_to_unibyte_safe): Likewise.
3098 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3099
1ac9108a 3100 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3101 (x_produce_glyphs): Likewise.
3102
3103 * .gdbinit (xcharset): Fix the treating $arg0.
3104
ad9e2d54
EZ
31052009-07-04 Eli Zaretskii <eliz@gnu.org>
3106
3107 Emulation of `getloadavg' on MS-Windows.
3108 * w32.c: Include float.h
3109 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3110 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3111 (get_native_system_info, get_system_times): New functions.
3112 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3113 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3114 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3115 g_b_init_get_system_times, and num_of_processors.
3116
0a3472c7
JR
31172009-07-03 Jason Rumney <jasonr@gnu.org>
3118
3119 * w32term.c (w32_initialize): Use standard types.
3120
80904120
EZ
31212009-07-03 Eli Zaretskii <eliz@gnu.org>
3122
3123 * dired.c (Ffile_attributes): Decode user and group names by the
3124 locale's encoding. (Bug#3443)
3125
6978862d
DN
31262009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3127
f8d23104
DN
3128 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3129 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3130
3131 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3132
3133 * term.c (init_tty): Remove spurious #ifdef.
3134
6978862d
DN
3135 * m/mips.h: Mention this file is also used for netbsd.
3136 * m/pmax.h: Remove file.
3137
e044e4fc
JD
31382009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3139
3140 * xterm.h (struct x_display_info): Add invisible_cursor.
3141 (struct x_output): Add current_cursor.
3142
3143 * xterm.c (XTtoggle_invisible_pointer): New function.
3144 (x_define_frame_cursor): Don't define cursor if invisible or the
3145 same as before. Set current_cursor.
3146 (x_create_terminal): Set toggle_invisible_pointer_hook.
3147
3148 * xfns.c (make_invisible_cursor): New function.
3149 (x_set_mouse_color): Call make_invisible_cursor.
3150 Set current_cursor.
3151 (x_window): Set current_cursor.
3152
3153 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3154
3155 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3156 inserting a character.
3157 (read_avail_input): Call frame_make_pointer_visible.
3158
3159 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3160 (frame_make_pointer_invisible, frame_make_pointer_visible):
3161 New functions.
e044e4fc
JD
3162 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3163
3164 * frame.h: Declare frame_make_pointer_invisible and
3165 frame_make_pointer_visible.
3166 (struct frame): Add pointer_invisible.
3167
574c8efa
JD
31682009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3169
7b507248
JD
3170 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3171 frame isn't visible.
3172 (xg_frame_resized): If width/height is -1, get size of window
3173 from X server.
3174
3175 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3176 for MapNotify.
3177
835bdaa7 3178 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3179 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3180 (flush_and_sync): Reintroduce.
574c8efa 3181
3f1c6666 31822009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3183
31fd7c5c 3184 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3185
3186 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3187 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3188
3189 * frame.h: Declare Qsticky.
3190
cad9ef74
JD
3191 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3192
3193 * nsfns.m (ns_frame_parm_handlers): Ditto.
3194
3195 * frame.c: Declare Qsticky.
3196 (frame_parms): Add sticky.
3197
3198 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3199
3200 * xterm.h: Declare x_set_sticky.
3201
3202 * xterm.c (x_set_sticky): New function.
3203
69b16610
JD
3204 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3205 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3206 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3207
3208 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3209
3210 * frame.c: Qmaximized is new.
3211 (x_set_frame_parameters): Do not handle fullscreen specially.
3212 Only set width and height if explicitly set.
3213 (x_set_fullscreen): Handle Qmaximized.
3214 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3215 (syms_of_frame): Initialize Qmaximized.
3216
1ac9108a
SM
3217 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3218 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3219
3220 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3221 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3222 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3223 set gravity to NorthWestGravity when USE_GTK.
3224 (set_wm_state): New function.
31fd7c5c 3225 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3226 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3227 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3228 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3229 to x_real_positions and x_fullscreen_adjust.
3230
3231 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3232 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3233 flush_and_sync.
3234 (xg_height_changed): New function.
3235 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3236 and gtk_window_set_policy. Set frame gravity after parsing the
3237 geometry string.
3f1c6666
JD
3238 (xg_update_frame_menubar, free_frame_menubar)
3239 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3240 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3241 Remove calls to xg_frame_set_char_size.
3242
fd503d99
KH
32432009-07-01 Kenichi Handa <handa@m17n.org>
3244
3245 * keyboard.c (decode_keyboard_code): New function.
3246 (tty_read_avail_input): Decode the input bytes if necessary.
3247
1ac9108a
SM
3248 * coding.c (setup_coding_system):
3249 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3250 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3251 use Qno_conversion.
3252
24ed93fb
YM
32532009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3254
3255 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3256
99061dfc
CY
32572009-06-30 Chong Yidong <cyd@stupidchicken.com>
3258
1ac9108a 3259 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3260
ff90fbde
JR
32612009-06-30 Jason Rumney <jasonr@gnu.org>
3262
3263 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3264 is already loaded.
3265 Set user model ID if supported (bug#1849).
3266
5f445726
JM
32672009-06-29 Jim Meyering <meyering@redhat.com>
3268
3269 Remove useless if-before-xfree test.
3270 * nsfont.m (nsfont_close): Remove useless test.
3271 * term.c (delete_tty): Likewise.
3272 * w32.c (system_process_attributes): Likewise.
3273 * w32font.c (w32font_close): Likewise.
3274 * xfaces.c (x_free_gc): Likewise.
3275 * xselect.c (buffer): Likewise.
3276
b9607587
AS
32772009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3278
3279 * process.c (send_process): Keep decoded string in a local
3280 variable and protect it from GC. (Bug#3521)
3281
89ba96f4
EZ
32822009-06-28 Eli Zaretskii <eliz@gnu.org>
3283
3284 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3285 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3286
098a1589
CY
32872009-06-28 Chong Yidong <cyd@stupidchicken.com>
3288
485422be
CY
3289 * xdisp.c (start_display, handle_face_prop)
3290 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3291 (redisplay_window, try_window_id, produce_image_glyph):
3292 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3293
098a1589
CY
3294 * xterm.c (x_update_window_begin, x_new_focus_frame)
3295 (x_scroll_bar_handle_click, handle_one_xevent)
3296 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3297 (x_make_frame_visible, x_make_frame_invisible)
3298 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3299 code chunks that are now obsolete.
3300
78c38319
MA
33012009-06-28 Michael Albinus <michael.albinus@gmx.de>
3302
3303 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3304 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3305 for hours, when optimzation is enabled.
3306 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3307 (xd_read_message): Make them static.
3308
4189ed40
CY
33092009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3310
3311 * term.c (turn_on_face): Allow simultaneously bold and dim
3312 terminal faces (Bug#3530).
3313
cd9b5e16
CY
33142009-06-27 Chong Yidong <cyd@stupidchicken.com>
3315
4e23bedb
CY
3316 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3317
cd9b5e16
CY
3318 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3319 truncation glyphs (Bug#3686).
3320
07cc3c35
GM
33212009-06-27 Glenn Morris <rgm@gnu.org>
3322
3323 * m/pmax.h: Restore file, with only netbsd portions.
3324
31fd7c5c 33252009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3326
cd9b5e16 3327 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3328
42d4a64f
KH
33292009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3330
3331 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3332 the arg FORCE_SYMBOL.
3333
930fe55b 33342009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3335
3336 * fontset.c (fontset_find_font): When a usable rfont_def is found
3337 in a fallback font-group, make it the first element of the group.
3338
57ebc3fd
CY
33392009-06-24 Chong Yidong <cyd@stupidchicken.com>
3340
3341 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3342
f084f942
KH
33432009-06-24 Kenichi Handa <handa@m17n.org>
3344
3345 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3346 set for C.
3347 (fontset_font): Record the availability of a font for C both in
3348 the realized fontsets of the current one and the default one.
3349
2f686c87
DN
33502009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3351
3352 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3353 conditional, it is always defined on AIX.
3354
666e158e
MB
33552009-06-23 Miles Bader <miles@gnu.org>
3356
3357 * window.c (Vrecenter_redisplay): New variable.
3358 (syms_of_window): Initialize it.
3359 (Qtty): New extern declaration.
3360 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3361
c6da7cd2
JM
33622009-06-23 Jim Meyering <meyering@redhat.com>
3363
1ac9108a
SM
3364 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3365 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3366 pointer dereferences are guaranteed to be valid.
c6da7cd2 3367
678dca3d
KH
33682009-06-23 Kenichi Handa <handa@m17n.org>
3369
74d75424
KH
3370 * emacs.c (main): Call init_font ().
3371
3372 * font.h (Vfont_log): Extern it.
3373 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3374
3375 * font.c (font_sort_entities, font_list_entities)
3376 (font_matching_entity, font_open_entity)
3377 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3378 (Vfont_log): Delete static.
3379 (font_log_env_checked): Delete this variable.
3380 (font_add_log): Don't check font_log_env_checked.
3381 (font_deferred_log): Check Vfont_log.
3382 (init_font): New function.
3383
678dca3d
KH
3384 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3385
3386 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3387
3388 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3389
3390 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3391
3392 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3393 (face_for_char): Don't call font_deferred_log here.
3394 (font_for_char): Likewise.
3395
8a668709
CY
33962009-06-22 Chong Yidong <cyd@stupidchicken.com>
3397
9a01ee33
CY
3398 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3399 rather than its background_width for drawing the overline and
3400 underline (Bug#489).
3401
3402 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3403 rather than its background_width for drawing the overline and
3404 underline (Bug#489).
ec7c9926
CY
3405 (xg_default_icon_file): New variable.
3406 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3407 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3408
8a668709
CY
3409 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3410 (load_overlay_strings): Remove externs.
3411 (fast_find_position): Function deleted.
3412 (mouse_face_from_buffer_pos): New function, based on
3413 fast_find_position. Correctly handle before-strings,
3414 display-strings, and after-strings (Bug#1220).
3415 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3416
4d4c02d8
CY
34172009-06-21 Chong Yidong <cyd@stupidchicken.com>
3418
1ac9108a 3419 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3420 (move_it_in_display_line_to, move_it_in_display_line_to)
3421 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3422
70243478
CY
34232009-06-21 Chong Yidong <cyd@stupidchicken.com>
3424
3425 * Branch for 23.1.
3426
13087e59
JR
34272009-06-21 Jason Rumney <jasonr@gnu.org>
3428
3429 * w32term.c (keyboard_codepage): New static variable.
3430 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3431 (w32_read_socket) [WM_CHAR]: Use it to decode character
3432 input (bug#3237).
3433 (w32_initialize): Initialize it.
3434 (codepage_for_locale): New function.
3435
4735b74e
KR
34362009-06-20 Ken Raeburn <raeburn@raeburn.org>
3437
3438 * process.c (status_message): Pass Faset index argument as a lisp
3439 object, so as to work with USE_LISP_UNION_TYPE.
3440
0e727afa
YM
34412009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3442
3443 * coding.c (Ffind_coding_systems_region_internal):
3444 Cache checked characters.
3445
cf299835
KH
34462009-06-18 Kenichi Handa <handa@m17n.org>
3447
1ac9108a 3448 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3449
90f20d94
AS
34502009-06-18 Andreas Schwab <aschwab@redhat.com>
3451
3452 * xdisp.c (redisplay_internal): Check that the frame is still
3453 live after redisplay of its windows.
3454 (redisplay_windows): Check that the window is still live.
3455
7f1faf1c
KH
34562009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3457
3458 * coding.c (detect_coding_utf_16): Fix previous change.
3459
cc13543e
KH
34602009-06-16 Kenichi Handa <handa@m17n.org>
3461
3462 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3463 UTF-16 by checking the dispersion of Eth and Oth bytes.
3464
977b85f4
AS
34652009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3466
3467 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3468
66bd43d1
KH
34692009-06-15 Kenichi Handa <handa@m17n.org>
3470
3471 * process.c (status_message): Fix previous change. Be sure to
3472 decode a localized string.
3473
cb5ca9c5
YM
34742009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3475
3476 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3477 add comment explaining why.
3478
ec7709ba 34792009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3480
ec7709ba 3481 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3482
4b7f335c
AR
34832009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3484
3485 * nsfont.m (ns_attribute_value): Remove.
3486 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3487 (ns_has_attribute): Shrink the normal range.
3488 (ns_findfonts): Don't worry about requested spec in determining
3489 need for synthItal.
e41820ee 3490 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3491
73b26103
SZ
34922009-06-14 Seiji Zenitani <zenitani@mac.com>
3493
3494 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3495
5753e4da
KH
34962009-06-11 Kenichi Handa <handa@m17n.org>
3497
3498 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3499 overhang for the static composition case.
3500
3561b671
KH
35012009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3502
5753e4da
KH
3503 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3504 overhang for the automatic composition case.
3505
3561b671
KH
3506 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3507 composition case.
3508
852bbd41
CY
35092009-06-10 Chong Yidong <cyd@stupidchicken.com>
3510
3511 * xdisp.c (get_next_display_element): When handling wrap-prefix
3512 and line-prefix, treat \n as a control character (bug#3502).
3513
9903d1e6
KH
35142009-06-10 Kenichi Handa <handa@m17n.org>
3515
3516 * font.c (font_parse_family_registry): Fix for one-char foundry.
3517 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3518
0bcbaaaa
CY
35192009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3520
3521 * process.c (status_message): Fix handling of multibyte signal
3522 string (Bug#3499).
3523
40aa3f13
JM
35242009-06-09 Jim Meyering <meyering@redhat.com>
3525
1f80c7e2
CY
3526 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3527 color name is missing.
40aa3f13 3528
72d51285
KH
35292009-06-09 Kenichi Handa <handa@m17n.org>
3530
3531 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3532 FROM-CODE and TO-CODE are codepoints of CHARSET.
3533
c1d04d84
AR
35342009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3535
3536 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3537
35382009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3539
3540 Changes to support :script/:lang/:otf in NS font driver.
3541 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3542 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3543 indicate not part of font driver interface, and change callers.
3544 (ns_get_family): Remove pointless null check.
3545 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3546 ns_spec_to_descriptor, ns_descriptor_to_entity.
3547 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3548 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3549 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3550 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3551 (ns_get_req_script, ns_accumulate_script_ranges)
3552 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3553 New functions.
3554 (nsfont_list, nsfont_match): Use ns_findfonts.
3555 (nsfont_open): Use font descriptor instead of traits.
3556 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3557 (dump_glyphstring): Rename to ns_dump_glyphstring.
3558
c7eb9816
AR
3559 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3560
c1d04d84
AR
3561 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3562
3563 * fontset.c (fontset_from_font): Remove NS-specific code.
3564
ec7709ba 35652009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3566
3567 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3568 nonactive windows.
3569
31fd7c5c 35702009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3571
1ac9108a 3572 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3573
68852c13 35742009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3575
3576 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3577
6756cd1d
CY
35782009-06-07 Chong Yidong <cyd@stupidchicken.com>
3579
3580 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3581 account for the overflowing of newlines into the last glyph on the
3582 display line (Bug#3482).
3583
28bf482a
DR
35842009-06-05 David Reitter <david.reitter@gmail.com>
3585
ec7709ba
JB
3586 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3587 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3588 Fns_selection_exists_p, Fns_selection_owner_p.
3589
fdb55376
JR
35902009-06-03 Jason Rumney <jasonr@gnu.org>
3591
3592 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3593 available. (Bug#3379)
3594
05129fbe
KH
35952009-05-29 Kenichi Handa <handa@m17n.org>
3596
1ac9108a
SM
3597 * coding.c (get_translation_table):
3598 Check Venable_character_translation.
05129fbe 3599
ec7709ba 36002009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3601
ec7709ba
JB
3602 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3603 (x_make_frame_visible): Move frame to front rather than calling
15891144 3604 ns_raise_frame().
ec7709ba 3605 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3606 isn't key window.
ec7709ba 3607 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3608 drawRect may be called by NSView even if the frame is hidden.
3609
ec7709ba
JB
3610 * nsfns.m (Fx_create_frame): Follow other ports in
3611 determining visibility; default to t. Ensure async_visible is set.
15891144 3612
21f73755
EZ
36132009-05-23 Eli Zaretskii <eliz@gnu.org>
3614
3615 * dired.c (Ffile_attributes): Doc fix.
3616
34001e41
CY
36172009-05-22 Chong Yidong <cyd@stupidchicken.com>
3618
3619 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3620
46306a17
SM
36212009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3622
3623 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3624 and xfont_scratch_props.
3625 (syms_of_xfont): Do it here instead.
3626 (xfont_find_ccl_program): Delete, unused.
3627 (xfont_open): Delete unused var `i'.
3628
ef6e0694
KH
36292009-05-21 Kenichi Handa <handa@m17n.org>
3630
3631 * fontset.c (Qlatin): Don't make it static.
3632
46306a17
SM
3633 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3634 New functions.
ef6e0694
KH
3635 (xfont_scripts_cache, xfont_scratch_props): New variables.
3636 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3637 (xfont_list_pattern): Argument changed. Callers changed.
3638 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3639 (xfont_list): Don't reject a font spec with :script property.
3640 (xfont_has_char): Fix setting of encoding.
3641 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3642 xfont_scratch_props.
3643
36442009-05-19 Kenichi Handa <handa@m17n.org>
3645
46306a17 3646 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3647 Callers changed.
3648
36492009-05-18 Kenichi Handa <handa@m17n.org>
3650
3651 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3652
ac71ced7
SM
36532009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3654
3655 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3656 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3657
1c6d1051
YM
36582009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3659
3660 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3661 (x_delete_terminal): Dissociate resource database from display and
3662 then call XrmDestroyDatabase before closing display.
3663
9b9b779c
AR
36642009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3665
3666 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3667 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3668 whether selected frame is viable before raising it (based on patch
3669 by David Reitter), and improve commentary.
3670 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3671
cccd42d5
KH
36722009-05-15 Kenichi Handa <handa@m17n.org>
3673
3674 * font.c (Ffont_spec): Check arguments.
3675
337fbd17
CY
36762009-05-14 Chong Yidong <cyd@stupidchicken.com>
3677
3678 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3679 weight when testing attributes (Bug#3282).
3680
47a6002f
JD
36812009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3682
3683 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3684 what we expect to get in the next ConfigureNotify event.
3685
9cb363db
YM
3686 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3687 before Xft one (Bug#1696).
3688
b9126609
CY
36892009-05-07 David Reitter <david.reitter@gmail.com>
3690
3691 * nsfns.m (Fx_display_planes): Compute bitplanes using
3692 NSBitsPerPixelFromDepth (Bug#3207).
3693
27a69fd9
CY
36942009-05-10 Chong Yidong <cyd@stupidchicken.com>
3695
3696 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3697
00f37552
TTN
36982009-05-10 Ulrich Mueller <ulm@gentoo.org>
3699
3700 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3701
2d82a920
DR
37022009-05-07 David Reitter <david.reitter@gmail.com>
3703
ec7709ba
JB
3704 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3705 Respect mouse face background.
2d82a920 3706
46b0d52d
DR
37072009-05-07 David Reitter <david.reitter@gmail.com>
3708
ec7709ba
JB
3709 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3710 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3711 in ns_update_begin and ns_update_end.
3712
ce1b23bb
SM
37132009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3714
5996e1b7
SM
3715 * nsfns.m (ns_get_screen): Rewrite.
3716 Don't presume selected-frame is of type `ns'.
3717
ba98e3a0
SM
3718 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3719 all drivers.
3720
ce1b23bb
SM
3721 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3722
bcda200f
YM
37232009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3724
3725 * keyboard.h (add_user_signal): Fix typo in extern.
3726
3727 * lisp.h (add_user_signal): Remove extern.
3728
3729 * unexelf.c (unexec): Consider a section to precede the .bss section
3730 if its addresses overlap that of .bss.
3731 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3732 instead of dumping process.
3733
864660a2
SM
37342009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3735
3736 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3737
50da4e56
SM
37382009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3739
3740 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3741
51520a1a
DN
37422009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3743
3744 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3745 any statements.
3746
409ea3a1
AS
37472009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3748
59c4c60f
AS
3749 * process.c (read_process_output): Make sure the current buffer is
3750 always restored.
3751
409ea3a1
AS
3752 * coding.c (record_conversion_result): Don't modify
3753 Vlast_code_conversion_error for successful result.
3754 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3755
56f00ed2
KH
37562009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3757
3758 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3759 (load_charset_map): Remove unnecessary code.
56f00ed2 3760
4491c9d2
DR
37612009-04-30 David Reitter <david.reitter@gmail.com>
3762
35f5b128 3763 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3764 through f24.
3765
6970f632
CY
37662009-04-30 Chong Yidong <cyd@stupidchicken.com>
3767
3768 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3769
3770 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3771 face_at_buffer_position.
3772 (face_before_or_after_it_pos, get_next_display_element)
3773 (note_mouse_highlight): Update face_at_buffer_position call.
3774
3775 * term.c (term_mouse_highlight):
3776 * msdos.c (IT_note_mouse_highlight):
3777 * fontset.c (Finternal_char_font):
35f5b128 3778 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3779
3780 * dispextern.h (face_at_buffer_position): Update prototype.
3781
0c616f63
KH
37822009-04-30 Kenichi Handa <handa@m17n.org>
3783
35f5b128 3784 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3785
ad3aaf33
AS
37862009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3787
3788 * callproc.c (Fcall_process): Fix GC protection. Make sure
3789 current buffer is always restored.
3790
c3c963a0
YM
37912009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3792
3793 * atimer.c (init_atimer): Also clear stopped_atimers.
3794
3795 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3796
7e3386cb
YM
3797 * process.c (create_process): Clean up merger residues of
3798 2008-07-17 change.
3799
91f68422
CY
38002009-04-29 Ulrich Mueller <ulm@gentoo.org>
3801
3802 * lread.c (Vread_circle): New variable.
3803 (read1): Disable recursive read if Vread_circle is nil.
3804
24b34550
KH
38052009-04-29 Kenichi Handa <handa@m17n.org>
3806
3807 * fontset.h (set_default_ascii_font): Delete extern.
3808
3809 * fontset.c (set_default_ascii_font): Delete this unused function.
3810
3811 * frame.c (x_set_font): When ARG is a font-object, check if the
3812 font-object matches with the ASCII font-spec of the frame's
9c358bda 3813 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3814
77bf07e1
AS
38152009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3816
3817 * fns.c (Flocale_info): Protect vector from GC during decoding.
3818
3819 * process.c (Fstart_process): Protect argv strings from GC during
3820 encoding.
3821
2c55aacf
AS
38222009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3823
3824 * sysdep.c: Include <ctype.h>.
3825
b892d3c9
DR
38262009-04-27 David Reitter <david.reitter@gmail.com>
3827
35f5b128 3828 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3829 Remove commented-out code.
3830
9d0644c4
JB
38312009-04-26 Johan Bockgård <bojohan@gnu.org>
3832
3833 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3834
b7053016
JR
38352009-04-25 Jason Rumney <jasonr@gnu.org>
3836
3837 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3838
4e8231f3
YM
38392009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3840
3841 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3842 Swap bytes in short integer if fringe bitmap width > 8.
3843
493dcf2c
KH
38442009-04-23 Kenichi Handa <handa@m17n.org>
3845
3846 * xfaces.c (Fx_list_fonts): If a font size is specified in
3847 PATTERN, set it in returned scalable fonts.
3848
401e9e57
CY
38492009-04-22 Chong Yidong <cyd@stupidchicken.com>
3850
708e05dc
CY
3851 * keyboard.c (Fset_input_meta_mode): Doc fix.
3852
3853 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3854
1ac9108a 3855 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3856
3857 * coding.c (Fterminal_coding_system): Doc fix.
3858
3859 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3860 (Fx_display_pixel_height, Fx_display_planes)
3861 (Fx_display_color_cells, Fx_server_max_request_size)
3862 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3863 (Fx_display_mm_height, Fx_display_mm_width)
3864 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3865 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3866 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3867 (check_x_display_info): Handle terminal objects instead of
3868 terminal ids.
3869
401e9e57
CY
3870 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3871 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3872 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3873 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3874
df80c7f0
KH
38752009-04-21 Kenichi Handa <handa@m17n.org>
3876
5a8f12af 3877 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3878 (font_score): Check AVGWIDTH too.
908567ef 3879
df80c7f0
KH
3880 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3881 worst case.
1ac9108a
SM
3882 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3883 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3884
705af33f
JR
38852009-04-19 Jason Rumney <jasonr@gnu.org>
3886
3887 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3888 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3889
3890 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3891 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3892 get_phys_cursor_geometry.
3893
b71ac3dd 3894 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3895 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3896 using get_phys_cursor_geometry.
3897
3898 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3899 correctly calculated.
3900
dc2933eb
JD
39012009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3902
1ac9108a
SM
3903 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3904 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3905 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3906 is deprecated.
3907
973e7849
AS
39082009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3909
3910 * font.c (font_put_frame_data): Use xfree instead of free.
3911
314d66f4
JB
39122009-04-17 Juanma Barranquero <lekktu@gmail.com>
3913
3914 * w32font.c (Qja, Qko): Remove declarations.
3915 (syms_of_w32font): Don't DEFSYM them.
3916
cf702558
CY
39172009-04-17 Chong Yidong <cyd@stupidchicken.com>
3918
3919 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3920
3921 * font.h (Qja, Qko): Extern them.
3922
3923 * ftfont.c (Qja, Qko): Remove declarations.
3924
3925 * xfont.c (Qja, Qko): Remove declarations.
3926
b50504f5
KH
39272009-04-17 Kenichi Handa <handa@m17n.org>
3928
bde25748
KH
3929 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3930 string from a vector to handle Latin-1 characters correctly.
3931
b50504f5
KH
3932 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3933 entity even if the cache hits.
3934
f4646fff
AS
39352009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3936
3937 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3938 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3939
e7deaab0
AS
3940 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3941 * lisp.h: Adjust prototypes.
3942
0a0e7d49
CY
39432009-04-16 Chong Yidong <cyd@stupidchicken.com>
3944
3945 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3946 change (Bug#3003).
3947
3c908a57
KH
39482009-04-16 Kenichi Handa <handa@m17n.org>
3949
1ac9108a 3950 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3951
3952 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3953 adstyle.
3954
3955 * ftfont.c (Qja, Qko): Don't make them static.
3956 (enum ftfont_cache_for): New enum.
3957 (fc_charset_table): Undo the previous change.
3958 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3959 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3960 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3961 non-scarable font, try to get AVERAGE_WIDTH.
3962 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3963 Change ft_face_cache from a list of a hash-table. Don't check
3964 `ja' and `ko' adstyle here.
3965 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3966 FTFONT_CACHE_FOR_CHARET.
3967 (ftfont_get_charset): Undo the previous change.
1ac9108a 3968 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3969 (ftfont_close): Likewise.
3970 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3971
3972 * font.c (font_sort_entites): Change the meaning of the arg
3973 BEST-ONLY. Don't optimize for VEC of lenght 1.
3974 (font_select_entity): Just return the value of font_sort_entites.
3975
3976 * xfaces.c (merge_face_vectors): Reflect font properties in
3977 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3978 font_clear_prop if a face attribute doesn't change.
3979
3c908a57
KH
3980 * charset.h (charset_ksc5601): Extern it.
3981
3982 * charset.c (charset_ksc5601): New variable.
3983 (Fdefine_charset_internal): Set charset_ksc5601.
3984 (init_charset_once): Initialize charset_ksc5601 to -1.
3985
d65859c3
DN
39862009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3987
3988 * fileio.c (history_delete_duplicates): Remove unused declaration.
3989
3990 * callint.c (history_delete_duplicates): New declaration.
3991 (Fcall_interactively): Remove command history duplicates when
3992 history_delete_duplicates is true.
3993
3ba010e5
EZ
39942009-04-14 Eli Zaretskii <eliz@gnu.org>
3995
3996 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3997
06f19b91
KH
39982009-04-14 Kenichi Handa <handa@m17n.org>
3999
4000 * font.c (Ffont_info): Fix docstring. Fix the second element of
4001 the returned value (bug#2949).
4002
2cce8bfc
CY
40032009-04-14 Chong Yidong <cyd@stupidchicken.com>
4004
4005 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4006
d156542d
KH
40072009-04-14 Kenichi Handa <handa@m17n.org>
4008
4009 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4010 encoding charset is ascii_compatible.
4011
4012 * charset.c (Fdefine_charset_internal): Make charset
4013 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4014 code_offset is 0, and covers all ASCII characters.
4015
86fa089e
SM
40162009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4017
4018 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4019 (ns_string_to_pasteboard_internal):
4020 * nsmenu.m (process_dialog):
4021 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4022 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4023 * lisp.h (Fx_load_color_file): Declare.
4024
a8a3728b
KH
40252009-04-13 Kenichi Handa <handa@m17n.org>
4026
1ac9108a 4027 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4028 (font_select_entity): Suppress the code to optimize for the same
4029 kind of fonts.
4030 (font_load_for_lface): Get a font that supports at least ASCII
4031 characters.
4032
4033 * ftfont.c (Qja, Qko): New variables.
4034 (fc_charset_table): Delete uniquifier data for iso8859-1.
4035 (ftfont_get_latin1_charset): New function.
4036 (get_adstyle_property): New function.
4037 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4038 bitmap fonts.
4039 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4040 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4041 `ko' or `ja'.
4042 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4043 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4044 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4045 property.
4046 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4047 (syms_of_ftfont): DEFSYM Qja and Qko.
4048
483670b5
KH
40492009-04-09 Kenichi Handa <handa@m17n.org>
4050
12b55765
KH
4051 * charset.c (map_charset_chars): For a charset of `superset'
4052 method, fix calculation of code range.
4053
483670b5
KH
4054 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4055 from the list of extra properties.
4056 (font_clear_prop): Be sure to delete `:name' font property.
4057
57d3b93b
KH
40582009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4059
b4b2c2ca
YM
4060 * dispnew.c (redraw_overlapping_rows): Fix detection of
4061 overlapping for topmost and bottommost rows.
4062
1ac9108a 4063 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4064
472c3609
JR
40652009-04-06 Jason Rumney <jasonr@gnu.org>
4066
4067 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4068
ab193662
KH
40692009-04-06 Kenichi Handa <handa@m17n.org>
4070
4071 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4072
4073 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4074
0c26f026
KH
40752009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4076
4077 * ftfont.c (ftfont_open): Fix checking of the return value of
4078 FT_Load_Char. Fix setting font->underline_thickness.
4079
e173bbce
CY
40802009-04-04 Chong Yidong <cyd@stupidchicken.com>
4081
4082 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4083 (Fterminal_parameters, Fterminal_parameter)
4084 (Fset_terminal_parameter): In doc string, refer to terminal
4085 objects rather than terminal ids.
4086
693a2698
EZ
40872009-04-04 Eli Zaretskii <eliz@gnu.org>
4088
4089 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4090 ret_lim_data. (Bug#2867)
4091
d5221487
CY
40922009-04-03 Chong Yidong <cyd@stupidchicken.com>
4093
4094 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4095 so they don't get wider than the window, matching 2006-01-23
4096 change to the partner function in xdisp.c (Bug#2800).
4097
223509a3
KH
40982009-04-03 Kenichi Handa <handa@m17n.org>
4099
4100 * print.c (print_object): Make each lowest sub_char_table start a
4101 new line (Bug#2866).
4102
74fcd0b1
KH
41032009-04-02 Kenichi Handa <handa@m17n.org>
4104
4105 * fontset.c (fontset_font): Record no-font when a fontset
4106 explicitly tells not to try another font-specs.
4107
c542407d
SM
41082009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4109
4110 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4111
e3869731
KH
41122009-03-30 Kenichi Handa <handa@m17n.org>
4113
d8d2f142
KH
4114 * fontset.c (fontset_from_font): Specify only registry in a
4115 font-spec for all characters supported by that registry.
4116
e3869731
KH
4117 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4118 even if HAVE_M17N_FLT is not defined.
4119
5da5f805
CY
41202009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4121
4122 * ftfont.c: Conditionalize prototyping and use of
4123 ftfont_variation_glyphs.
4124
ab226c50
SM
41252009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4126
9628fed7
SM
4127 * frame.c (delete_frame): Work around compiler bug.
4128
4129 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4130 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4131 Some more EMACS_INT.
4132 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4133
4134 * xdisp.c (dump_glyph): Fix typo.
4135
ae19ba7c
SM
4136 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4137 (adjust_markers_gap_motion, adjust_markers_for_delete)
4138 (adjust_markers_for_insert, adjust_point)
4139 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4140 (make_gap, copy_text, count_size_as_multibyte, insert)
4141 (insert_and_inherit, insert_before_markers)
4142 (insert_before_markers_and_inherit, insert_1)
4143 (count_combining_before, count_combining_after, insert_1_both)
4144 (insert_from_string, insert_from_string_before_markers)
4145 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4146 (insert_from_buffer_1, adjust_after_replace)
4147 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4148 (replace_range_2, del_range, del_range_1, del_range_byte)
4149 (del_range_both, del_range_2, modify_region)
4150 (prepare_to_modify_buffer, signal_before_change)
4151 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4152 for buffer positions and sizes.
4153 * lisp.h: Adjust prototypes accordingly.
4154
4155 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4156 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4157 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4158
ab226c50
SM
4159 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4160
46dfb8fb
JD
41612009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4162
4163 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4164 lines and columns so we keep the same pixel height and width.
4165
4166 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4167 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4168 (x_handle_net_wm_state): New function to update frame parameter
4169 fullscreen.
4170 (x_term_init): Initialize atoms for _NET_WM_STATE.
4171
4172 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4173
d347e494
SM
41742009-03-27 Kevin Ryde <user42@zip.com.au>
4175
4176 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4177 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4178 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4179 (Fgpm_mouse_stop): Pass that new parameter.
4180 * termhooks.h (close_gpm): Adjust prototype.
4181
84db11d6
SM
41822009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4183
c95a5008
SM
4184 * lisp.h (Fx_focus_frame): Declare.
4185
84db11d6
SM
4186 * callint.c (Fcall_interactively): For '^' just delegate the work to
4187 handle-shift-selection.
4188 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4189
0a1958d6
CY
41902009-03-24 Chong Yidong <cyd@stupidchicken.com>
4191
0bfdff23
CY
4192 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4193
0a1958d6
CY
4194 * data.c (Qinteractive_form): New variable.
4195 (Finteractive_form): Use it.
4196
4197 * eval.c (Fcommandp): Use Qinteractive_form.
4198
58aec0d6
JR
41992009-03-24 Jason Rumney <jasonr@gnu.org>
4200
4201 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4202 Calculate total size precisely. Decode environment variables
4203 before substituting. (Bug#38)
4204
553dd618
KH
42052009-03-24 Kenichi Handa <handa@m17n.org>
4206
4207 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4208 encoding (Bug#2722).
553dd618 4209
c39ea606
JD
42102009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4211
4212 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4213 that gdpy is set.
4214
bc9b2b5e
AM
42152009-03-22 Alan Mackenzie <acm@muc.de>
4216
4217 * callint.c (Finteractive): Clarify the doc string - even
4218 promptless elements need \n separators.
4219
9f995a76
JR
42202009-03-22 Jason Rumney <jasonr@gnu.org>
4221
4222 * w32term.c (syms_of_w32term): Doc fix for
4223 x-use-underline-position-properties.
4224
22749e9a
EZ
42252009-03-21 Eli Zaretskii <eliz@gnu.org>
4226
4227 * w32.c (getpwuid): Change argument type to unsigned.
4228 (struct w32_id): Change type of `rid' member to unsigned.
4229 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4230 argument ID to unsigned. All callers changed.
4231 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4232
e00553bf
EZ
42332009-03-20 Eli Zaretskii <eliz@gnu.org>
4234
4235 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4236 negative, produce a float value.
4237
4238 * dired.c (make_uid, make_gid): New functions.
4239 (Ffile_attributes): Use them to avoid negative UID and GID.
4240
f761d6b6
JB
42412009-03-20 Juanma Barranquero <lekktu@gmail.com>
4242
4243 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4244 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4245 Fix typos in docstrings.
4246
d507f8d7
KH
42472009-03-19 Kenichi Handa <handa@m17n.org>
4248
4249 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4250 changed, use font_load_for_lface to get a new font object.
4251 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4252
4253 * frame.c (x_set_font): Handle the case that ARG is a cons.
4254
c68845e0
GM
42552009-03-19 Glenn Morris <rgm@gnu.org>
4256
4257 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4258
bfa49dd1
CY
42592009-03-19 Chong Yidong <cyd@stupidchicken.com>
4260
4261 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4262
8458d4c1
KH
42632009-03-19 Kenichi Handa <handa@m17n.org>
4264
4265 * charset.c (load_charset_map_from_file): When a mapfile can't be
4266 loaded, signal an error.
4267
78e7d1fe
EZ
42682009-03-18 Eli Zaretskii <eliz@gnu.org>
4269
4270 * dired.c (Ffile_attributes): Make sure UID and GID are always
4271 positive, even if the value is too large for a positive EMACS_INT.
4272 Doc fix.
4273
4274 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4275
5da9fdfa
YM
42762009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4277
4278 * xmenu.c (xdialog_show): Move Fredisplay call ...
4279 (Fx_popup_dialog): ... here.
4280
7519c40d
SM
42812009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4282
4283 * dired.c (file_name_completion): Disable the first optimization just
4284 installed, since it is not implemented correctly.
4285
2cd298e2
SM
42862009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4287
4288 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4289 only if the entry can affect bestmatch.
2cd298e2
SM
4290 Stop the search early, as Ftry_completion already does.
4291
48d37adf
CY
42922009-03-17 Chong Yidong <cyd@stupidchicken.com>
4293
e10c9c93 4294 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4295
9286b16a
CY
42962009-03-15 Chong Yidong <cyd@stupidchicken.com>
4297
4298 * keyboard.c (parse_menu_item): Don't display remappings as menu
4299 equivalent bindings (Bug#788).
4300
f7b146dc
JR
43012009-03-15 Jason Rumney <jasonr@gnu.org>
4302
4303 * w32term.h (WM_EMACS_PAINT): New message.
4304 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4305 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4306 before passing to lisp thread. (Bug#950)
4307
f761d6b6 43082009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4309
d93f9575
CY
4310 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4311 variable as it was never reset.
4312 (ns_term_init): Remove initialization of Lisp-settable defaults
4313 and ns_expand_space.
4314 (-setPanelFromDefaultValues): Remove ns_expand_space.
4315 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4316 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4317 i.e. no additional spacing, similar to Carbon port.
4318
d93f9575
CY
4319 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4320 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4321
305018ec
JD
43222009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4323
4324 * sound.c (alsa_configure): Remove call to deprecated
4325 snd_pcm_sw_params_set_xfer_align.
4326
f761d6b6 43272009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4328
4329 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4330 after clicking in a detached tool bar.
4331 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4332
46e722a9
SM
43332009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4334
348db3dd
SM
4335 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4336 int/Lisp_Object mixup).
46e722a9 4337
a3d16f39
KH
43382009-03-13 Kenichi Handa <handa@m17n.org>
4339
4340 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4341 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4342 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4343 (set_fontset_font): Change ARG to a vector. Handle range_list in
4344 ARG correctly.
4345 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4346 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4347 the above change.
4348 (fontset_from_font): Fix previous change.
fe24f56a 4349 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4350 entry. If FONTSET is the default fontset, don't set the extra
4351 slot of the returning char-table.
4352
b066e6b6
JB
43532009-03-12 Juanma Barranquero <lekktu@gmail.com>
4354
4355 * nsfns.m (Fx_close_connection): Doc fix.
4356 (Fns_do_applescript): Reflow docstring.
4357 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4358 (Fx_display_pixel_width, Fx_display_pixel_height)
4359 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4360 Fix typos in docstrings.
4361 (Fns_set_alpha): Fix typos in error messages.
4362
d472514e 43632009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4364
d472514e 4365 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4366 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4367 were used for such events.
4368
d472514e
JB
4369 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4370 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4371
d472514e 4372 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4373 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4374
fb930676
KH
43752009-03-11 Kenichi Handa <handa@m17n.org>
4376
ff85581a
KH
4377 * font.h (font_open_by_spec): Extern it.
4378
c50b7e98
KH
4379 * font.c (font_open_by_spec): New function.
4380 (font_open_by_name): Use font_open_by_spec.
4381
fb930676
KH
4382 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4383 fontset of the frame.
4384
4385 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4386 modify the default font of frames that use this fontset.
4387 (num_auto_fontsets): New variable.
4388 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4389 name. Be sure to set FONTSET_ASCII to the correct font name.
4390 (update_auto_fontset_alist): New function.
4391
df4e8455
JB
43922009-03-11 Juanma Barranquero <lekktu@gmail.com>
4393
4394 * makefile.w32-in: Update dependencies.
4395
0a375797
AR
43962009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4397
4398 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4399
61313fa3
SM
44002009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4401
4402 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4403
b55103fb
CY
44042009-03-10 Chong Yidong <cyd@stupidchicken.com>
4405
4406 * lread.c (Feval_buffer): Doc fix.
4407
dde2559c
KH
44082009-03-09 Kenichi Handa <handa@m17n.org>
4409
4410 * charset.c (Qfile_name_handler_alist): Extern it.
4411 (load_charset_map_from_file): Temporarily bind
4412 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4413
df4e8455 44142009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4415
47f588bb
GM
4416 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4417 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4418
4ddf94bd
AR
44192009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4420
4c9bdfc2
AR
4421 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4422 (x_set_window_size): Change back to calculated method of setting
4423 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4424 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4425 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4426
fe41ae9e
AR
4427 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4428
4c9bdfc2
AR
4429 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4430 accelerator in parens under GNUstep.
4431
825d0875
KH
44322009-03-06 Kenichi Handa <handa@m17n.org>
4433
4434 These changes are to detect incorrect composition sequence without
f3b3be74 4435 looking ahead the source. (Bug#2370)
825d0875
KH
4436
4437 * coding.h: Include "composite.h".
4438 (enum compisition_state): New enum.
4439 (struct compisition_status): New struct.
4440 (struct iso_2022_spec): New member cmp_status.
4441 (struct emacs_mule_spec): New struct.
4442 (struct coding_system): New members ctext_extended_segment_len and
4443 embedded_utf_8. Change the union member
4444 spec.emacs_mule_full_support to spec.emacs_mule.
4445
4446 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4447 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4448 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4449 (ADD_COMPOSITION_DATA): New arg nbytes.
4450 (emacs_mule_char): New arg cmp_status.
4451 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4452 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4453 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4454 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4455 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4456 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4457 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4458 (EMACS_MULE_COMPOSITION_END): New macro.
4459 (emacs_mule_finish_composition): New function.
4460 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4461 (decode_coding_emacs_mule): Avoid long looking ahead while
4462 handling composition.
4463 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4464 (ENCODE_COMPOSITION_RULE): New macro.
4465 (finish_composition): New function.
4466 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4467 (DECODE_COMPOSITION_START): New implementation.
4468 (DECODE_COMPOSITION_END): Likewise.
4469 (STORE_COMPOSITION_RULE): New macro.
4470 (decode_coding_iso_2022): Avoid long looking ahead while handling
4471 composition, CTEXT extended segment, and embedded UTF-8.
4472 (setup_coding_system): For a coding of type iso-2022, reset
4473 CODING_ISO_EXTSEGMENT_LEN (coding) and
4474 CODING_ISO_EMBEDDED_UTF_8 (coding).
4475 (get_translation): Delete arguments last_block, from_nchars,
4476 to_nchars. Callers changed.
4477 (produce_chars): Don't modify charbuf. Adjusted for the change of
4478 get_translation.
98a326f7 4479 (produce_composition): Adjust for the new annotation sequence.
825d0875 4480 (handle_composition_annotation): Likewise.
98a326f7 4481 (consume_chars): Adjust for the change of get_translation.
825d0875 4482
ccbc4452
AR
44832009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4484
4ddf94bd 4485 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4486
988a7ddb
KH
44872009-03-05 Kenichi Handa <handa@m17n.org>
4488
4489 * font.c (font_select_entity): New function.
4490 (font_find_for_lface): Use font_select_entity to select a font.
4491
4492 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4493 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4494 font with C restriction.
4495
98a326f7 44962009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4497
be1bce46 4498 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4499
10ea2b82
JR
45002009-03-04 Jason Rumney <jasonr@gnu.org>
4501
2c93b248 4502 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4503 characters that have already been read. (Bug#2569)
2c93b248 4504
10ea2b82
JR
4505 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4506 Log an error message if check_image_size failed.
4507 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4508 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4509
71a0c011
EZ
45102009-03-02 Eli Zaretskii <eliz@gnu.org>
4511
4512 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4513 when decoding process output.
4514
2f63bba8
RS
45152009-03-01 Richard M Stallman <rms@gnu.org>
4516
4517 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4518
4519 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4520
0a9564cb
EZ
45212009-02-28 Eli Zaretskii <eliz@gnu.org>
4522
4523 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4524 (decode_coding_emacs_mule, decode_coding_iso_2022)
4525 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4526 (decode_coding_raw_text, decode_coding_charset)
4527 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4528 Honor inhibit-eol-conversion. (Bug #2186)
4529
449148b3
JR
45302009-02-28 Jason Rumney <jasonr@gnu.org>
4531
4532 * coding.c (detect_coding_charset): If not checking latin extra,
4533 fail on characters between 0x80 and 0xA0. (Bug#2354)
4534
a4aee864
EZ
45352009-02-28 Eli Zaretskii <eliz@gnu.org>
4536
4537 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4538 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4539
d88bee5a
GM
45402009-02-27 Glenn Morris <rgm@gnu.org>
4541
4542 * callint.c (Finteractive): Doc fix.
4543
a808f22d
KH
45442009-02-27 Kenichi Handa <handa@m17n.org>
4545
4546 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4547
caf8d60c
CY
45482009-02-27 Chong Yidong <cyd@stupidchicken.com>
4549
4550 * font.c (font_style_to_value): Set value for unknown symbols to
4551 100 instead of 255.
b61137ea
CY
4552 (weight_table, slant_table, width_table): Treat "unspecified" as
4553 the default value.
caf8d60c 4554
1a0de25c
JB
45552009-02-26 Juanma Barranquero <lekktu@gmail.com>
4556
4557 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4558
8fc45744
JB
45592009-02-25 Juanma Barranquero <lekktu@gmail.com>
4560
107bd7d1
JB
4561 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4562 error as soon as a recursive load is detected.
8fc45744 4563
f097e223
AR
45642009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4565
4566 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4567 before caching.
4568
8810a12f
KH
45692009-02-24 Kenichi Handa <handa@m17n.org>
4570
4571 * fontset.c (fontset_find_font): Fix the condition for checking
4572 unavailable font.
4573
2c7d1565
GM
45742009-02-24 Glenn Morris <rgm@gnu.org>
4575
4576 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4577 whitespace that confuses documentation.
4578
a20878b6
MB
45792009-02-23 Miles Bader <miles@gnu.org>
4580
4581 * process.c (Flist_system_processes, Fprocess_attributes)
4582 (syms_of_process): Rename `system-process-attributes' to
4583 `process-attributes'.
4584
b3b58c01
AS
45852009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4586
1b3b981b
AS
4587 * coding.h (struct coding_system): Make safe_charsets a pointer to
4588 unsigned char.
4589 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4590 being 255.
4591 (SAFE_CHARSET_P): Likewise.
4592 (setup_iso_safe_charsets): Properly setup safe_charsets.
4593 (Fdefine_coding_system_internal): Likewise.
4594 (setup_coding_system): Likewise. Remove unneeded casts.
4595 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4596 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4597 unneeded casts.
4598
b3b58c01
AS
4599 * insdel.c (del_range_2): Don't modify gap contents when called
4600 from decode_coding_object. (Bug#1809)
4601
0b6f228c
CY
46022009-02-21 Chong Yidong <cyd@stupidchicken.com>
4603
4604 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4605 Qfont_object.
4606 (Ftype_of): Recognize font objects.
4607
4608 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4609
4610 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4611 moved to data.c.
4612
52f8870b
AR
46132009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4614
4615 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4616 async_iconified. Based on a patch by Christian Lynbech
4617 <christian.lynbech@tieto.com>.
4618 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4619
7087d5e9
GM
46202009-02-20 Glenn Morris <rgm@gnu.org>
4621
4622 * syntax.c (Fskip_chars_forward): Fix doc typo.
4623
41d2ceef
CY
46242009-02-20 Chong Yidong <cyd@stupidchicken.com>
4625
4626 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4627
1a3b7ca6
CY
46282009-02-19 Chong Yidong <cyd@stupidchicken.com>
4629
4630 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4631
73cce38d
KH
46322009-02-19 Kenichi Handa <handa@m17n.org>
4633
4634 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4635 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4636
a51092ee
DN
46372009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4638
4639 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4640
c423ecca
KH
46412009-02-18 Kenichi Handa <handa@m17n.org>
4642
4643 * font.c (font_check_otf_features): Fix handling of `nil' element.
4644 (Ffont_spec): Describe :lang and :otf in the docstring.
4645
4c1958f4
AS
46462009-02-16 Andreas Schwab <schwab@suse.de>
4647
4648 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4649 string.
4650
5704f39a
KH
46512009-02-16 Kenichi Handa <handa@m17n.org>
4652
4653 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4654 (Bug#1723)
5704f39a 4655
8f0085aa
CY
46562009-02-14 Chong Yidong <cyd@stupidchicken.com>
4657
a057d86a 4658 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4659
4660 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4661 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4662
aff01dd9
EZ
46632009-02-14 Eli Zaretskii <eliz@gnu.org>
4664
4665 * msdos.c (MAX_SCREEN_BUF): New macro.
4666 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4667 Encode the entire run of glyphs sharing the same face, instead of
4668 doing that one glyph at a time (fixes a bug with displaying
4669 double-size characters).
4670
ba301db3
AR
46712009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4672
4673 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4674
4675 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4676 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4677 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4678
4679 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4680 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4681
51d861de
SM
46822009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4683
ac146f82 4684 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4685 invisible areas.
4686
7fed8996
JR
46872009-02-12 Jason Rumney <jasonr@gnu.org>
4688
631ea4fb
JR
4689 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4690 (add_font_entity_to_list): Call check_face_name even when family
4691 is unspecified.
4692
cb4a3e42
JR
4693 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4694 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4695 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4696
7fed8996 4697 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4698 raster fonts. (Bug#2219)
7fed8996 4699
895416e3
KH
47002009-02-12 Kenichi Handa <handa@m17n.org>
4701
4702 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4703 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4704 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4705 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4706 (find_automatic_composition): While looking forward and backward,
4707 check static composition. Fix where to stop looking forward.
4708 (composition_adjust_point): Fix checking of static composition.
4709 (Fcomposition_get_gstring): Pay attention to
1dacf998 4710 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4711
4712 * lisp.h (fast_looking_at): Extern it.
4713
4714 * search.c (fast_looking_at): New function.
4715
51d861de 4716 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4717 <struct glyph>.u.cmp.to.
4718 (append_composite_glyph): Likewise.
4719
51d861de 4720 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4721 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4722 composition.
51d861de 4723 (append_composite_glyph): Adjust for the change of
895416e3
KH
4724 <strcut glyph>.u.cmp.to.
4725
8510724d
JB
47262009-02-11 Juanma Barranquero <lekktu@gmail.com>
4727
4728 * casetab.c (init_casetab_once):
4729 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4730 * font.c (font_update_lface):
4731 * fontset.c (Fnew_fontset):
4732 * ftfont.c (ftfont_drive_otf):
4733 * xfont.c (xfont_open):
4734 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4735
294fa707
SM
47362009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4737
4738 * fileio.c (Fwrite_region): !NILP -> CONSP.
4739
b5bfebec
AS
47402009-02-10 Andreas Schwab <schwab@suse.de>
4741
4742 * process.c (send_process): Properly relocate pointer into data
adab88bd 4743 when using encoded data. (Bug#2272)
b5bfebec 4744
cb84a2be
KH
47452009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4746
4747 * coding.c (detect_coding_charset): Fix previous change.
4748
89e09428
JR
47492009-02-08 Jason Rumney <jasonr@gnu.org>
4750
4751 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4752 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4753
4470a277
AS
47542009-02-07 Andreas Schwab <schwab@suse.de>
4755
4756 * unexelf.c (unexec): Fix error message.
4757
3175b12a
AR
47582009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4759
4760 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4761 when modal window is active. (Bug #2152)
3175b12a
AR
4762 (applicationShouldTerminate:): Remove now-unneeded while loop
4763 around NSRunAlertPanel.
4764
4765 * nsmenu.m (popupSession): New file-global variable.
4766 (pop_down_menu): End the popupSession before closing dialog.
4767 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4768 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4769 don't query NSApp for events (just sleep instead).
4770
8434d0b8
EZ
47712009-02-07 Eli Zaretskii <eliz@gnu.org>
4772
51d861de
SM
4773 * coding.c (syms_of_coding) <translation-table-for-input>:
4774 Modify doc string to discourage use for character code unification.
8434d0b8 4775
aa82edfd
CY
47762009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4777
4778 * atimer.c (run_timers): Update pending_atimers.
4779
2d283c7c
CY
47802009-02-06 Chong Yidong <cyd@stupidchicken.com>
4781
eb306cab
CY
4782 * image.c (svg_load_image): Fix last change.
4783
2d283c7c
CY
4784 * xfns.c (Fx_create_frame): Signal an error if no font is
4785 found (Bug#2147).
4786
4d8e170e
JB
47872009-02-05 Juanma Barranquero <lekktu@gmail.com>
4788
4789 * character.c (syms_of_character) <script-representative-chars>:
4790 Fix typo in docstring.
4791
c96169a0
AR
47922009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4793
4794 * nsmenu.m (pop_down_menu): New function.
4795 (ns_popup_dialog): Call it on unwind.
4796 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4797 call timer_check() (Bug#2154).
4798 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4799 handling_signal is set.
4800 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4801
31fd7c5c 4802 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4803
4804 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4805
4806 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4807
51d861de
SM
4808 * keyboard.c (poll_for_input_1, handle_async_input):
4809 Set handling_signal under HAVE_NS.
c96169a0 4810
aacd8ba1
GM
48112009-02-04 Glenn Morris <rgm@gnu.org>
4812
4813 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4814
4cb75c4b
KH
48152009-02-04 Kenichi Handa <handa@m17n.org>
4816
4817 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4818
4819 * charset.c (Fchar_charset): New optional arg restriction.
4820
4821 * coding.h (coding_system_charset_list): Extern it.
4822
4823 * coding.c (coding_system_charset_list): New function.
4824
4825 * composite.c: Include coding.h and termhooks.h.
4826 (composition_gstring_p): Fix for the terminal case.
4827 (composition_gstring_width): Likewise.
4828 (fill_gstring_body): Likewise.
4829 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4830 the frame.
4831 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4832 is within a composition.
867d4bb3 4833 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4834
4835 * term.c (encode_terminal_code): Fix handling of composition.
4836 (produce_composite_glyph): For static composition, get pixel_width
4837 from struct composition.
4838
826ba17e
AS
48392009-02-02 Andreas Schwab <schwab@suse.de>
4840
4841 * unexelf.c (unexec): Handle unaligned bss offset.
4842
8ad093db
AR
48432009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4844
4845 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4846 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4847
8ad093db
AR
4848 * keyboard.c (handle_interrupt): Don't call
4849 quit_throw_to_read_char() under NS.
d0a76a6e 4850
8ad093db
AR
4851 * blockinput.h: Remove NS-specific code.
4852
4d18a7a2
DN
48532009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4854
db878925
DN
4855 * dispnew.c (window_change_signal): Don't try to get the size of a
4856 suspended tty frame.
4857 * term.c (Fresume_tty): Resize if the size has changed while the
4858 tty was suspended.
4859
4d18a7a2
DN
4860 * alloc.c (mark_stack): Properly conditionalize previous change.
4861
8984df7c
JB
48622009-01-30 Juanma Barranquero <lekktu@gmail.com>
4863
4864 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4865 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4866 Remove; this code is not used on Windows.
4867
75f4f1ac
EZ
48682009-01-30 Eli Zaretskii <eliz@gnu.org>
4869
4870 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4871 EOLs that also has stray ^M characters.
4872
07a1e794
JB
48732009-01-30 Juanma Barranquero <lekktu@gmail.com>
4874
4875 * atimer.c (run_timers, alarm_signal_handler):
4876 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4877 * w32inevt.c (w32_console_read_socket):
4878 * w32term.c (w32_read_socket):
4879 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4880
a8b11cc9
CY
48812009-01-30 Chong Yidong <cyd@stupidchicken.com>
4882
4883 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4884 Initialize it as a relative filename pattern.
4885 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4886 (Fcall_process_region): Simplify temp file creation using
4887 temporary-file-directory.
4888
c279587b
EZ
48892009-01-29 Eli Zaretskii <eliz@gnu.org>
4890
4891 * msdos.c: Rename pending_signals to msdos_pending_signals.
4892 (sig_suspender, sigprocmask): Adjust.
4893
a8fe3242
CY
48942009-01-29 Chong Yidong <cyd@stupidchicken.com>
4895
4896 * keyboard.c (pending_signals): New var.
4897 (poll_for_input, input_available_signal, init_keyboard): Set it.
4898 (process_pending_signals): New function.
4899
4900 * lisp.h (QUIT): Check pending_signals instead of
4901 interrupt_input_pending. Use process_pending_signals.
4902
51d861de 4903 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4904
51d861de 4905 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4906
4907 * sysdep.c (emacs_write): Use process_pending_signals.
4908
4909 * xterm.c (XTread_socket): Update pending_signals.
4910
4911 * w32term.c (w32_read_socket): Update pending_signals.
4912
4913 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4914
6570a1c4
KH
49152009-01-29 Kenichi Handa <handa@m17n.org>
4916
4917 * xftfont.c (xftfont_has_char): New function.
4918 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4919
d72a4afa
AR
49202009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4921
4922 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4923 under GNUstep.
4924 (ns_query_color): New declaration.
4925
4926 * nsterm.m (ns_confirm_quit): New variable.
4927 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4928 (EmacsApp-applicationShouldTerminate:): Use it.
4929 (EmacsPrefsController): Let user set it.
4930 (ns_query_color): New function.
4931 (ns_defined_color): Use it.
4932 (ns_initialize): Drop.
4933 (ns_term_init): Add two lines from ns_initialize(), and set
4934 input_interrupt_mode to nil.
4935
4936 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4937 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4938
9fe78804
KH
49392009-01-28 Kenichi Handa <handa@m17n.org>
4940
4941 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4942 (fontset_get_font_group): Remember that no font-group is specified
4943 for C.
9fe78804 4944
fa57de36
CY
49452009-01-27 Chong Yidong <cyd@stupidchicken.com>
4946
930600e9
CY
4947 * fns.c (concat): Check for string overflow (bug#1787).
4948
fa57de36
CY
4949 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4950 Quadruple undo limits (bug#1501).
4951
7179ce7b
KH
49522009-01-27 Kenichi Handa <handa@m17n.org>
4953
4954 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4955 directly use GT_Get_Char_index.
4956
4957 * xftfont.c (struct xftfont_info): New member `index'.
4958
4959 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4960 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4961
5be8fcc0
CY
49622009-01-26 Kenichi Handa <handa@m17n.org>
4963
4964 * fontset.c (fontset_find_font): Fix handling of non-cons return
4965 value of fontset_get_font_group.
4966 (fontset_font): Revert last change.
4967
19ae3e61
JR
49682009-01-26 Jason Rumney <jasonr@gnu.org>
4969
4970 * w32font.c (w32font_list_internal): Return quickly if registry is
4971 unknown. Simplify final return.
4972 (add_font_entity_to_list): Break complex logic down into more
4973 manageable chunks. Move unknown registry check to
4974 w32font_list_internal.
4975
8612b71a
AR
49762009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4977
4978 Changes to remove Feval calls from GUI under NS.
4979
d8038940
JB
4980 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4981 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4982 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4983
4984 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4985 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4986 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4987 instead of NON_ASCII_KEYSTROKE_EVENT.
4988 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4989 (EmacsApp-applicationShouldTerminate:): Query user.
4990 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4991 instead of Feval.
4992
4993 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4994
4995 * keyboard.c (kbd_buffer_get_event): Check for it.
4996 (keys_of_keyboard): Define lispy keys for
4997 ns-put/unput-working-text.
4998
4999 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5000 versions.
5001 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5002
6288ae55
CY
50032009-01-25 Chong Yidong <cyd@stupidchicken.com>
5004
5005 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5006 setting current_buffer directly. (Bug#2044)
6288ae55 5007
289e7f8f
CY
50082009-01-24 Chong Yidong <cyd@stupidchicken.com>
5009
5ce87308 5010 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5011 any work. (Bug#1952, bug#1990).
5ce87308 5012
64cc3cf6 5013 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5014
b3243e6f
AR
50152009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5016
5017 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5018 (ns_no_defaults): New declaration.
5019 (main): Use it.
e0d2e69a 5020
d900b2af 5021 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5022
d900b2af 5023 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5024
d900b2af
AR
5025 * nsterm.m (ns_no_defaults): New variable.
5026 (ns_initialize): Don't read defaults when ns_no_defaults.
5027 (EmacsView-readSelectionFromPasteboard:)
5028 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5029 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5030 (ns_dumpglyphs_stretch): New function.
5031 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5032 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5033
e0d2e69a
AR
5034 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5035
3ac71f5d
CY
50362009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5037
5038 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5039 call for Sparc64.
5040
3fe53a83
AR
50412009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5042
5043 * nsfns.m:
5044 * nsgui.h:
5045 * nsmenu.m:
5046 * nsselect.m:
5047 * nsterm.h:
5048 * nsterm.m: Remove '23' comments that indicated code added during
5049 update from emacs-20 -> emacs-23.
5050
10f87c6f 50512009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5052
5053 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5054 ns_alternate_modifier. (Bug#1217)
a3b53a85 5055
c7cef62d
AR
5056 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5057 Display all shortcuts, including those w/o super modifier.
5058
575fb8bd
AR
5059 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5060
918b848b
CY
50612009-01-22 Chong Yidong <cyd@stupidchicken.com>
5062
5063 * fileio.c (Vwrite_region_post_annotation_function)
5064 (Vwrite_region_annotation_buffers): New vars.
5065 (build_annotations_unwind): Just reset
5066 Vwrite_region_annotation_buffers.
5067 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5068 Call write-region-post-annotation-function.
5069 (build_annotations): Add to Vwrite_region_annotation_buffers if
5070 buffer changes.
5071
a39e2539
AR
50722009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5073
5074 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5075 Tiger.
51d861de
SM
5076 * nsfns.m (ns_do_applescript):
5077 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5078
35ed44db
AR
50792009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5080
5081 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5082
cbe0b5bf
AR
50832009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5084
5085 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5086
6049d3a0
AR
5087 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5088
5089 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5090 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5091 handle Ctrl-tab. (Bug#1841)
5092 (ns_get_color): Use unsigned long long for scanned hex string value.
5093 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5094 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5095 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5096 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5097 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5098 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5099 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5100
d3810c21 5101 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5102 DPI. (Bug#1316)
d3810c21
AR
5103 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5104 values in onTiger section.
4c7077c3 5105
e301e634
CY
51062009-01-19 Chong Yidong <cyd@stupidchicken.com>
5107
7f82490b
CY
5108 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5109 Check return value of font_spec_from_name.
64cc3cf6 5110 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5111
5112 * font.c (font_spec_from_name): Return Qnil if font name could not
5113 be parsed.
5114 (font_parse_name): Treat a `?' character as part of an XLFD.
5115
e301e634
CY
5116 * fns.c (Fsubstring): Doc fix.
5117
1c0db158
KH
51182009-01-19 Kenichi Handa <handa@m17n.org>
5119
51d861de 5120 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5121 (ftfont_list): Likewise.
5122
acf20901
JB
51232009-01-18 Juanma Barranquero <lekktu@gmail.com>
5124
fff4e459
JB
5125 * dbusbind.c (Fdbus_register_signal):
5126 * process.c (conv_sockaddr_to_lisp):
5127 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5128
acf20901
JB
5129 * callproc.c (Fgetenv_internal): Doc fix.
5130
e7abcdfb
CY
51312009-01-16 Chong Yidong <cyd@stupidchicken.com>
5132
5133 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5134 it is not even used.
5135
b60861e6
GM
51362009-01-16 Glenn Morris <rgm@gnu.org>
5137
5138 * font.c (Ffont_variation_glyphs): Silence compiler.
5139
8db52afe
JB
51402009-01-15 Juanma Barranquero <lekktu@gmail.com>
5141
5142 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5143 Reported by David Robinow <drobinow@gmail.com>.
5144
4cddb209
KH
51452009-01-15 Kenichi Handa <handa@m17n.org>
5146
51d861de 5147 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5148
f247f67b
JR
51492009-01-14 Jason Rumney <jasonr@gnu.org>
5150
5151 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5152 never a fontset. (Bug#1562)
f247f67b 5153
f56a4450
KH
51542009-01-14 Kenichi Handa <handa@m17n.org>
5155
5156 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5157 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5158
4e99855e
CY
51592009-01-13 Chong Yidong <cyd@stupidchicken.com>
5160
5161 * font.c (font_clear_prop): If clearing the family, clear the font
5162 width index too.
5163
fff4e459 5164 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5165
24f01470
JB
51662009-01-12 Juanma Barranquero <lekktu@gmail.com>
5167
5168 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5169 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5170 functions, use sizeof.
5171
a41240a3
MR
51722009-01-12 Martin Rudalics <rudalics@gmx.at>
5173
5174 * keyboard.c (read_char): Fix case where last_nonmenu_event
5175 returned a bad value with submenus. (Bug#447)
5176
944636b8
CY
51772009-01-12 Chong Yidong <cyd@stupidchicken.com>
5178
5179 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5180 family, clear the font width index too.
5181
0dad7c6f
JR
51822009-01-11 Jason Rumney <jasonr@gnu.org>
5183
5184 * keyboard.c (cmd_error_internal): Exit when errors occur before
5185 frame creation and not in daemon mode. (Bug#1836)
5186
7c2363af
CY
51872009-01-10 Chong Yidong <cyd@stupidchicken.com>
5188
5189 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5190 of a display vector, backtrack.
5191 (try_window_reusing_current_matrix): Check glyph type before
5192 referencing charpos member.
5193
97b1b294
EZ
51942009-01-10 Eli Zaretskii <eliz@gnu.org>
5195
5196 Fix Bug #876:
5197
5198 * coding.c (inhibit_null_byte_detection): New variable.
5199 (detect_coding, detect_coding_system): Don't pay attention to null
5200 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5201 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5202 <inhibit-iso-escape-detection>: Doc fix.
5203
4624b6e3
JR
52042009-01-09 Jason Rumney <jasonr@gnu.org>
5205
5206 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5207 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5208 Only report Unicode Plane 2 fonts as unicode-sip.
5209
323b840c
CY
52102009-01-09 Chong Yidong <cyd@stupidchicken.com>
5211
51d861de
SM
5212 * xfaces.c (Fx_font_family_list): Delete function.
5213 Move compatibility version to faces.el.
323b840c 5214
51d861de 5215 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5216
eba7400d
MR
52172009-01-09 Martin Rudalics <rudalics@gmx.at>
5218
5219 * frame.c (x_set_frame_parameters): Remember requested value for
5220 fullscreen before it's reset by the parameter handler.
5221
4b09796d
GM
52222009-01-09 Glenn Morris <rgm@gnu.org>
5223
5224 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5225 (last_command_event): ... and update all users.
4b09796d
GM
5226 (last_input_char): For clarity, rename to...
5227 (last_input_event): ... and update all users.
5228 (last-command-char, last-input-char): Move to subr.el as aliases.
5229 * cmds.c, commands.h: Update for last_command_char rename.
5230
14ccea62
CY
52312009-01-08 Chong Yidong <cyd@stupidchicken.com>
5232
51d861de 5233 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5234
5f004711
JR
52352009-01-08 Jason Rumney <jasonr@gnu.org>
5236
5237 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5238 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5239 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5240 Don't declare.
fff4e459 5241 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5242 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5243
b71f6f73
KH
52442009-01-07 Kenichi Handa <handa@m17n.org>
5245
50b06221 5246 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5247 remember the coding system used for decoding in
50b06221
KH
5248 coding_system (Bug#1039).
5249
b71f6f73 5250 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5251 breaking the loop. (Bug#870)
b71f6f73
KH
5252 (decode_coding_utf_16, decode_coding_emacs_mule)
5253 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5254 (decode_coding_charset): Likewise.
5255
56f668f7
MR
52562009-01-05 Martin Rudalics <rudalics@gmx.at>
5257
5258 * frame.c (x_set_frame_parameters): Make sure height (width) get
5259 applied when fullwidth (fullheight) is set. (Bug#1522)
5260
5da9424d
JB
52612009-01-04 Juanma Barranquero <lekktu@gmail.com>
5262
5263 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5264 (utc_base): Declare as ULONGLONG, not long double.
5265 (convert_time_raw): Delete.
5266 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5267 (initialize_utc_base): New function.
5268 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5269 (convert_from_time_t): Use initialize_utc_base; compute result with
5270 64-bit arithmetic.
5271 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5272
c4605e09
EZ
52732009-01-03 Eli Zaretskii <eliz@gnu.org>
5274
9acef61c 5275 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5276 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5277 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5278 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5279 [!subprocesses]: Define.
5280 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5281 (Flist_system_processes, Fsystem_process_attributes)
5282 [!subprocesses]: Call list_system_processes and
5283 system_process_attributes instead of returning Qnil.
5284
9acef61c
JB
5285 * dosfns.c (system_process_attributes, list_system_processes):
5286 New functions.
c4605e09
EZ
5287
5288 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5289
5290 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5291 Don't use the default (no-op) implementation.
5292
8b7d0a16
JR
52932009-01-03 Jason Rumney <jasonr@gnu.org>
5294
a6d46bc1
JR
5295 * keyboard.c (parse_modifiers_uncached): Wheel events are
5296 clicks (bug#687).
5297
8b7d0a16
JR
5298 * w32term.c (x_query_colors, x_query_color): New functions.
5299
5300 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5301 (svg_load_image): Cast returned pointers from dynamically loaded
5302 functions. Eliminate W32 specific code.
5303
bfe11752
DN
53042009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5305
89e2438a
DN
5306 * nsfns.m (x_set_foreground_color, x_set_background_color)
5307 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5308 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5309 x_ prefix instead of ns_. Update references.
5310 (syms_of_nsfns): Add a FIXME comment.
5311
5312 * nsterm.m (x_set_cursor_type): New prototype.
5313 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5314
bfe11752
DN
5315 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5316 for Solaris instead of incorrectly providing Qutime and Qcutime.
5317
031da700
EZ
53182009-01-02 Eli Zaretskii <eliz@gnu.org>
5319
5320 * w32.c (process_times): Compute sum of utime and stime.
5321 (system_process_attributes): Add Qtime to the alist.
5322
5323 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5324 and add them to the alist.
5325
5326 * process.c (top level) <Qtime, Qctime>: New variables.
5327 (syms_of_process): staticpro them.
5328 (Fsystem_process_attributes): Add their documentation to the doc
5329 string.
5330
5331 * process.h: Declare Qtime and Qctime.
5332
df23bf08
JR
53332009-01-02 Jason Rumney <jasonr@gnu.org>
5334
9acef61c 5335 * image.c (Qgobject): New symbol.
df23bf08
JR
5336 (syms_of_image): Initialize it.
5337 (init_svg_functions): Load some functions from gobject library.
5338
5bbdf7aa
DN
53392009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5340
5341 * frame.c (make_terminal_frame): Remove redundant code and useless
5342 block.
5343
63136da6
AS
53442009-01-01 Andreas Schwab <schwab@suse.de>
5345
5346 * process.c (conv_sockaddr_to_lisp): Add workaround for
5347 getsockname bug on BSD.
5348
9ef69046
CY
53492009-01-01 Chong Yidong <cyd@stupidchicken.com>
5350
d6fafbe0
CY
5351 * xfns.c (x_create_tip_frame): Set border width of the X window.
5352
51d861de 5353 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5354
f9c34147
JR
53552009-01-01 Jason Rumney <jasonr@gnu.org>
5356
9acef61c 5357 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5358 Don't block input, as per earlier xterm.c changes.
5359
f5497e45
AR
53602008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5361
5362 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5363 (ns_appkit_version_int): New function.
5364 (x-server-version): Use ns_appkit_version_int and follow 21+
5365 convention of returning 3 integers.
5366
c19cab20
KH
53672008-12-30 Kenichi Handa <handa@m17n.org>
5368
5369 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5370 (CHAR_SURROGATE_PAIR_P): New macro.
5371
5372 * font.h (struct font_driver): New member get_variation_glyphs.
5373
9acef61c 5374 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5375 (Ffont_variation_glyphs): New function.
5376 (syms_of_font): Defsubr it.
5377
5378 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5379 ftfont_variation_glyphs.
5380 (setup_otf_gstring): New function.
5381 (ftfont_drive_otf): Use it.
5382 (ftfont_shape_by_flt): Handle variation selector.
5383 (ftfont_variation_glyphs): New function.
5384
28cd591f
MR
53852008-12-30 Martin Rudalics <rudalics@gmx.at>
5386
5387 * frame.c (Vemacs_iconified): Remove.
5388
7f714baf
JR
53892008-12-30 Jason Rumney <jasonr@gnu.org>
5390
5391 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5392 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5393
9d2d22ab
CY
53942008-12-30 Chong Yidong <cyd@stupidchicken.com>
5395
5396 * indent.c (Fvertical_motion): Don't advance iterator if we have
5397 reseated to the desired position.
5398
5399 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5400 checking for pos match.
5401
545312c2
KH
54022008-12-30 Kenichi Handa <handa@m17n.org>
5403
1ede3eb6
KH
5404 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5405 just get the low 8-bit of the code.
5406
545312c2
KH
5407 * font.c (font_intern_prop): Validate str as multibyte.
5408
bd7bbf29
DN
54092008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5410
31e0750e
DN
5411 * dispextern.h (struct face): Move lface and hash from the middle
5412 of bitfields.
5413
bd7bbf29
DN
5414 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5415
b5672e7c
DN
54162008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5417
5418 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5419 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5420 instead of intervals.h.
5421
d704470f
AS
54222008-12-26 Andreas Schwab <schwab@suse.de>
5423
5424 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5425 cons.
5426
54b33868
MR
54272008-12-26 Martin Rudalics <rudalics@gmx.at>
5428
5429 * textprop.c (Qminibuffer_prompt): New variable.
5430 (syms_of_textprop): Initialize it.
5431 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5432 in minibuffer-prompt face. (Bug#1662)
5433
40b615d6
JR
54342008-12-25 Jason Rumney <jasonr@gnu.org>
5435
5436 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5437
baae5c2d
JR
54382008-12-24 Jason Rumney <jasonr@gnu.org>
5439
5440 * ralloc.c (r_alloc_reset_variable): New function.
5441
5442 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5443 record of what points where. (Bug#716)
baae5c2d 5444
a9051c88
DN
54452008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5446
5447 * minibuf.c (read_minibuf): Follow the non-interactive case when
5448 running as a daemon, before detaching.
5449
8b146312
AS
54502008-12-22 Andreas Schwab <schwab@suse.de>
5451
5452 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5453 * gtkutil.c (free_widget_value): Use xfree instead of free.
5454
56f2de10
MR
54552008-12-22 Martin Rudalics <rudalics@gmx.at>
5456
5457 * frame.c (delete_frame): New function derived from
5458 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5459 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5460 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5461 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5462 * frame.h: Extern delete_frame.
5463 * window.c (window_loop):
5464 * terminal.c (delete_terminal):
5465 * xterm.c (x_connection_closed):
5466 * xfns.c (Fx_hide_tip):
9acef61c 5467 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5468
1fc200d6
JR
54692008-12-21 Jason Rumney <jasonr@gnu.org>
5470
5471 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5472 when character maps to .notdef character.
5473
5e252df2
SM
54742008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5475
5476 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5477
99b72cc4
JR
54782008-12-20 Jason Rumney <jasonr@gnu.org>
5479
5480 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5481 a graphical frame on Windows. (Bug#1325)
99b72cc4 5482
acc49a52
JD
54832008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5484
5485 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5486
6ea15123
CY
54872008-12-20 Chong Yidong <cyd@stupidchicken.com>
5488
5489 * minibuf.c (Fread_buffer): Doc fix.
5490
b2dab6c8
JR
54912008-12-20 Jason Rumney <jasonr@gnu.org>
5492
54ea0c87 5493 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5494 server name in UNC paths. (Bug#719)
54ea0c87 5495
b2dab6c8 5496 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5497 charbuf. (Bug#1035)
b2dab6c8 5498
6d1921be
DN
54992008-12-19 Daniel Engeler <engeler@gmail.com>
5500
5501 * sysdep.c (serial_configure): Fix typo.
5502
53934c98
DN
55032008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5504
5505 * sysdep.c: Include alloca.h.
f4f634e8
DN
5506 (system_process_attributes): Add implementation for Solaris.
5507
5508 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5509
06e111a6
DN
55102008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5511
5512 Reorganize implementation of Flist_system_processes and
5513 Fsystem_process_attributes. No functional changes.
5514 * process.c: Don't #include pwd.h, grp.h and limits.h.
5515 (Flist_system_processes): Just call list_system_processes.
5516 (Fsystem_process_attributes): Just call system_process_attributes.
5517 (procfs_list_system_processes, time_from_jiffies)
5518 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5519 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5520
5521 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5522 (list_system_processes): Rename from
5523 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5524 Provide a do nothing implementation.
5525 (system_process_attributes): Rename from
5526 procfs_list_system_processes.
5527 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5528 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5529
5530 * w32.c (list_system_processes): Rename from
5531 w32_list_system_processes.
5532 (system_process_attributes): Rename from
5533 w32_system_process_attributes.
5534
5535 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5536
5537 * process.h (w32_list_system_processes)
5538 (w32_system_process_attributes): Remove.
362654a6
JB
5539 (list_system_processes, system_process_attributes):
5540 New prototypes.
06e111a6 5541
6a705b23
KH
55422008-12-19 Kenichi Handa <handa@m17n.org>
5543
5544 * xfont.c (xfont_decode_coding_xlfd): New function.
5545 (xfont_encode_coding_xlfd): New function.
5546 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5547 (xfont_list): Decode and encode XLFD by iso-8859-1.
5548 (xfont_match): Likewise.
5549 (xfont_list_family): Likewise.
5550 (xfont_open): Likewise.
5551
d66c0241 5552 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5553 names are utf-8.
5554
d66c0241 5555 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5556 names are utf-8.
5557
5a130941
JD
55582008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5559
5560 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5561 changed.
bfd20325
JD
5562 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5563 clicked on a detached tool bar button.
5a130941 5564
fd95644b
DN
55652008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5566
5567 * emacs.c (main): Print and error and exit when no data is read
5568 from the pipe.
5569
e6eee6ae
JR
55702008-12-17 Jason Rumney <jasonr@gnu.org>
5571
5572 * w32font.c (w32font_has_char): Always return -1.
5573
a35dd56b
KH
55742008-12-16 Kenichi Handa <handa@m17n.org>
5575
5576 * font.c (font_open_entity): Fix previous change.
5577
0e3635c2
DN
55782008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5579
5580 * process.c: Include <limits.h>.
5581
d4835507 55822008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5583
5584 * font.c (font_update_drivers): Fix mistake in reconstructing the
5585 driver list.
5586
55872008-12-16 Chong Yidong <cyd@stupidchicken.com>
5588
5589 * font.c (font_clear_cache): Fix format of font cache data.
5590
e2cbc401
CY
55912008-12-15 Chong Yidong <cyd@stupidchicken.com>
5592
5593 * xftfont.c (xftfont_open): Free Xft font pattern if
5594 XftFontOpenPattern fails.
5595
5596 * xterm.c (x_free_frame_resources): Remove extraneous call to
5597 free_frame_faces.
5598
b131d535
CY
55992008-12-13 Chong Yidong <cyd@stupidchicken.com>
5600
5601 * xterm.c (x_delete_display): Move xim_close_dpy call to
5602 x_delete_terminal.
5603 (x_delete_terminal): Call xim_close_dpy.
5604
e6df5336
JR
56052008-12-13 Jason Rumney <jasonr@gnu.org>
5606
5607 * w32font.c (intern_font_name): New function.
5608 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5609 (w32font_open_internal, Fx_select_font): Decode font name.
5610 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5611
5612 * w32font.h (intern_font_name): Declare new function.
5613
5614 * w32uniscribe.c (add_opentype_font_name_to_list):
5615 Use intern_font_name.
5616
20d68145
CY
56172008-12-13 Chong Yidong <cyd@stupidchicken.com>
5618
9f2554de
CY
5619 * frame.c (Fdelete_frame): Call free_font_driver_list.
5620
3d9bec9a
CY
5621 * font.c (free_font_driver_list): Implement missing function.
5622
20d68145
CY
5623 * w32term.c (w32_term_init): Don't initialize the image cache
5624 here; it will be done in init_frame_faces.
5625
5626 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5627 (struct x_display_info): Remove unused member null_pixel. New
5628 member xim_callback_data.
5629
5630 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5631 (xim_initialize): Save pointer to callback function data.
5632 (xim_close_dpy): Free callback function data. Call XCloseIM,
5633 reverting 2008-11-04 change by David Smith.
5634 (x_term_init): Don't initialize the image cache here; it will be
5635 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5636 (x_delete_display): Free x_dnd_atoms member.
5637
96f9306b
KH
56382008-12-13 Kenichi Handa <handa@m17n.org>
5639
6dec9044
JB
5640 * font.c (font_rescale_ratio): Moved from xfaces.c.
5641 Argument type changed. Handle a font-spec too.
96f9306b 5642 (font_score): Check Vface_font_rescale_alist.
6dec9044 5643 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5644
5645 * xfaces.c (font_rescale_ratio): Moved to font.c.
5646
8d5b4964
CY
56472008-12-13 Chong Yidong <cyd@stupidchicken.com>
5648
5649 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5650
e6df5336
JR
56512008-12-12 Jason Rumney <jasonr@gnu.org>
5652
5653 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5654 Vwindow_system_version to the real w32 major version.
5655
97c6058a
DN
56562008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5657
5658 * term.c (init_tty): Move setting the terminal name before the
5659 potential user: maybe_fatal.
5660
ec4e88d7
CY
56612008-12-11 Chong Yidong <cyd@stupidchicken.com>
5662
d4835507
JB
5663 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5664 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5665
b4233ec9
JR
56662008-12-11 Jason Rumney <jasonr@gnu.org>
5667
8ec71e23 5668 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5669 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5670
b4233ec9 5671 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5672 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5673
011a0143
JB
56742008-12-11 Juanma Barranquero <lekktu@gmail.com>
5675
5676 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5677
3c309f34
JB
56782008-12-11 Juanma Barranquero <lekktu@gmail.com>
5679
5680 * process.c (Fsystem_process_attributes, syms_of_process):
5681 Fix typo in name of Ssystem_process_attributes.
5682 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5683
fedc6ab5
JB
56842008-12-11 Juanma Barranquero <lekktu@gmail.com>
5685
5686 * syntax.c (Fmodify_syntax_entry): Doc fix.
5687
ba3de0e8
JB
56882008-12-10 Juanma Barranquero <lekktu@gmail.com>
5689
5690 * font.c (Ffont_spec): Move usage to end of docstring.
5691
174f1c74
JR
56922008-12-10 Jason Rumney <jasonr@gnu.org>
5693
5694 * w32font.c (Qcham): New symbol.
5695 (font_supported_scripts): Add cham, and comments for other new
5696 scripts in bitfield from OpenType spec.
9d32f818
JR
5697 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5698 contain characters beyond the bmp.
174f1c74 5699
7b649478
KH
57002008-12-10 Kenichi Handa <handa@m17n.org>
5701
5702 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5703 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5704 Qunicode_sip.
5705
2133e2d1
JB
57062008-12-10 Juanma Barranquero <lekktu@gmail.com>
5707
5708 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5709 (Fcoding_system_put): Use QCdefault_char.
5710 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5711
9af886ee
CY
57122008-12-09 Chong Yidong <cyd@stupidchicken.com>
5713
74d819eb
CY
5714 * xftfont.c (syms_of_xftfont): Fix typo.
5715
4ccfa1c0 5716 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5717
7c19d3ae
DN
57182008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5719
5720 * emacs.c (main): Close daemon_pipe on exec.
5721
567826bb
CY
57222008-12-08 Chong Yidong <cyd@stupidchicken.com>
5723
5724 * termchar.h (struct tty): New members termcap_term_buffer and
5725 termcap_strings_buffer.
5726
5727 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5728 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5729 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5730 All callers changed.
5731 (init_tty): Store termcap data and string buffers in new struct
5732 tty members termcap_term_buffer and termcap_strings_buffer.
5733 (delete_tty): Free them.
4ccfa1c0 5734 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5735
aa96c42b
SZ
57362008-12-07 Seiji Zenitani <zenitani@mac.com>
5737
5738 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5739 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5740
b7e1d896
CY
57412008-12-06 Chong Yidong <cyd@stupidchicken.com>
5742
5743 * coding.c (make_conversion_work_buffer): Disable buffer
5744 modification hooks in the work buffer.
5745
b5ec91a5
EZ
57462008-12-05 Eli Zaretskii <eliz@gnu.org>
5747
5748 * process.c (procfs_system_process_attributes): If `nread' has a
5749 negative value, assign zero to it.
5750
a5d2a52b
CY
57512008-12-05 Chong Yidong <cyd@stupidchicken.com>
5752
68c5540b 5753 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5754
7bf1bb21
KH
57552008-12-05 Kenichi Handa <handa@m17n.org>
5756
5757 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5758 second character is a combining character.
5759
2fdc7d00
EZ
57602008-12-05 Eli Zaretskii <eliz@gnu.org>
5761
5762 * process.c (procfs_system_process_attributes): Don't use cmd,
5763 cmdsize, and q without initializing them first.
5764
bf6bfba8
JR
57652008-12-04 Jason Rumney <jasonr@gnu.org>
5766
5767 * w32font.c (w32font_draw): Initialize orig_clip before getting
5768 it, and delete it when finished.
5769
a3b1a468
DN
57702008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5771
5772 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5773 case when running as a daemon before detaching.
5774
8b8be8eb
JB
57752008-12-03 Juanma Barranquero <lekktu@gmail.com>
5776
805f2638 5777 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5778
b1bde622
KH
57792008-12-03 Kenichi Handa <handa@m17n.org>
5780
e500c47d
KH
5781 * font.c (font_at): Set `multibyte' at first.
5782
ca516334
KH
5783 * coding.c (decode_coding_charset): Check type of an element of
5784 vector VALIDS.
7bf1bb21 5785 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5786
4ccfa1c0 5787 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5788 (font_for_char): Likewise.
5789
1e5ecd37
CY
57902008-12-03 Chong Yidong <cyd@stupidchicken.com>
5791
d5b01609 5792 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5793 (font_update_lface): Handle fonts with corrupted size specs,
5794 i.e. non-int and non-float.
d5b01609 5795
11e3a6e4 5796 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5797 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5798 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5799
ab06788b
CY
5800 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5801
1e5ecd37 5802 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5803 underline_minimum_offset for underline position.
1e5ecd37 5804
63c125ab
DN
58052008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5806
5807 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5808
5809 * character.c (c_string_width): Specify the type for LEN.
5810
3a8406e1
KH
58112008-12-03 Kenichi Handa <handa@m17n.org>
5812
4ccfa1c0 5813 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5814 (decode_coding_utf_8): Likewise.
4ccfa1c0 5815 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5816 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5817
651df7d9
CY
58182008-12-02 Chong Yidong <cyd@stupidchicken.com>
5819
5820 * keyboard.c (make_lispy_position): Only use PT if the selected
5821 window is current.
5822
1f625c6c
AS
58232008-12-02 Andreas Schwab <schwab@suse.de>
5824
f7741ce9
AS
5825 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5826
1f625c6c
AS
5827 * doprnt.c (doprnt1): Fix size of charbuf.
5828
92bc2678
CY
58292008-12-02 Chong Yidong <cyd@stupidchicken.com>
5830
5831 * keyboard.c (timer_check): Revert last change.
5832
93b9e8cc
JB
58332008-12-02 Juanma Barranquero <lekktu@gmail.com>
5834
5835 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5836
fd7a37d5
JB
58372008-12-01 Juanma Barranquero <lekktu@gmail.com>
5838
5839 * makefile.w32-in: Update dependencies.
5840 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5841
c115043b
AS
58422008-12-01 Andreas Schwab <schwab@suse.de>
5843
5844 * font.c (register_font_driver): Use xmalloc.
5845 (font_put_frame_data): Likewise.
5846
f5668d2a
CY
58472008-12-01 Chong Yidong <cyd@stupidchicken.com>
5848
860d96be
CY
5849 * xfaces.c (realize_x_face): Make abort condition clearer.
5850
f5668d2a
CY
5851 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5852
379c17e7
CY
58532008-11-30 Chong Yidong <cyd@stupidchicken.com>
5854
5855 * keyboard.c (timer_check): After a timer runs, ensure that the
5856 selected window's buffer is current.
5857
35f36d65
JB
58582008-11-30 Juanma Barranquero <lekktu@gmail.com>
5859
f952c61c
JB
5860 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5861 It was accidentally restored by the Unicode merge.
5862
35f36d65
JB
5863 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5864
b23077df
JB
58652008-11-29 Juanma Barranquero <lekktu@gmail.com>
5866
5867 * w32proc.c: Include "coding.h".
5868 (Fw32_short_file_name): Encode filename passed to Windows API.
5869 (Fw32_long_file_name): Encode filename passed to Windows API and
5870 decode back the result. (Bug#1433)
5871
b8ebe9dd
KH
58722008-11-29 Kenichi Handa <handa@m17n.org>
5873
8cc53f96
KH
5874 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5875 not before accessing it.
5876
b8ebe9dd
KH
5877 * charset.c (Fdefine_charset_internal): After calculating
5878 min_char, max_char, and fastmap, copy the charset structure again.
5879 (encode_char): Fix the previous change.
5880
59bc82c0
SZ
58812008-11-28 Seiji Zenitani <zenitani@mac.com>
5882
5883 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5884
5885 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5886
5887 * nsterm.m (x_set_frame_alpha): New function.
5888
32247e3d
EZ
58892008-11-27 Eli Zaretskii <eliz@gnu.org>
5890
5891 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5892
b003e5ff
JB
58932008-11-27 Juanma Barranquero <lekktu@gmail.com>
5894
5895 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5896 pointer to check_face_name.
5897
708550f5
KH
58982008-11-27 Kenichi Handa <handa@m17n.org>
5899
5900 * category.h (SET_CATEGORY_SET): Call set_category_set.
5901 (set_category_set): Extern it.
5902
5903 * category.c (hash_get_category_set): New function.
5904 (Fmodify_category_entry): Adjusted for the change of
5905 char_table_ref_and_range. Call hash_get_category_set to get a
5906 category set to store in the table.
5907
5908 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5909 Funify_charset.
5910
2ae37cf0 5911 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5912 (DECODE_CHAR): Check if the decoder vector is ready.
5913 (ENCODE_CHAR): Check if the encoder char-table is ready.
5914 (maybe_unify_char): Extern it.
5915
5916 * charset.c (Vchar_unified_charset_table): Delete it.
5917 (inhibit_load_charset_map): New variable.
5918 (temp_charset_work): New variable.
5919 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5920 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5921 New macros.
5922 (load_charset_map): Meaning of control_flag changed. If
5923 inhibit_load_charset_map is nonzero, setup a table in
5924 temp_charset_work.
5925 (load_charset): New argument control_flag.
5926 (map_charset_for_dump): New function.
5927 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5928 map_charset_for_dump.
5929 (Fdefine_charset_internal): If the charset method is MAP, load
5930 mapping tables by calling load_charset.
5931 (Funify_charset): Don't load a mapping table but directly set
5932 Vchar_unify_table.
5933 (maybe_unify_char): New function.
5934 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5935 Handle the case of inhibit_load_charset_map being nonzero.
5936 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5937 Handle the case of inhibit_load_charset_map being nonzero.
5938 (Fclear_charset_maps): Just free temp_charset_work.
5939 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5940 variable.
5941
5942 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5943 change of char_table_ref_and_range.
5944 (char_table_ref_and_range): Change the meaning of argument FROM
5945 and TO. Now the caller must provide initial values for *FROM
5946 and *TO.
5947
5948 * fontset.c (fontset_add): Adjusted for the change of
5949 char_table_ref_and_range.
5950 (fontset_get_font_group): Likewise.
5951 (Ffontset_info): Likewise.
5952
5953 * keymap.c (describe_vector): Adjusted for the change of
5954 char_table_ref_and_range. For char-table, put boundary between
5955 non-ASCII and 8-bit characters.
5956
5957 * print.c (print_object): For bool-vector, delete unnecessary
5958 check of ASCII_BYTE_P.
5959
9196133b
JR
59602008-11-26 Jason Rumney <jasonr@gnu.org>
5961
5962 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5963 leading in font height. (Bug#879)
9196133b 5964
9f688acf
GM
59652008-11-26 Glenn Morris <rgm@gnu.org>
5966
5967 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5968 redefinition with ifdef. (Bug#1383)
5969
90d19aff
AR
59702008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5971
5972 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5973
4ccfa1c0 59742008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5975
5976 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5977 New EmacsView methods.
5978 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5979 Fixes bug #1048,1357,1414.
5980
59812008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5982
5983 Fix bug #1362.
5984 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5985 is not an indexed color.
5986 * nsterm.m (free_indexed_color): Add argument checking.
5987 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5988
e7d5ecb3
CY
59892008-11-24 Chong Yidong <cyd@stupidchicken.com>
5990
5991 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5992 Document confirm-after-completion value for
5993 minibuffer-completion-confirm.
5994
c285743c
JR
59952008-11-24 Jason Rumney <jasonr@gnu.org>
5996
5997 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5998 warning.
5999
b0857706
JR
60002008-11-23 Jason Rumney <jasonr@gnu.org>
6001
6002 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6003 restored before returning.
6004
6005 * w32font.c (check_face_name): New function.
6006 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6007 fonts. (Bug#642)
b0857706 6008
ee50ff07
MR
60092008-11-22 Martin Rudalics <rudalics@gmx.at>
6010
6011 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6012 confirm-nonexistent-file-or-buffer in doc-string.
6013
b8ff72fa
SM
60142008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6015
6016 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6017 Fix copy/paste typo. Add checks.
6018
cee53ed4
KH
60192008-11-21 Kenichi Handa <handa@m17n.org>
6020
6021 * coding.c (detect_coding_iso_2022): Reject invalid composition
6022 sequence.
6023 (DECODE_COMPOSITION_START): If the current source is the last
6024 block, and the current composition doesn't end, regard this
6025 sequence as invalid.
6026 (decode_coding_iso_2022): Handle invalid composition sequence.
6027
f6ef1e65
MR
60282008-11-20 Martin Rudalics <rudalics@gmx.at>
6029
6030 * window.c (coordinates_in_window): Don't return
6031 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6032 line when the window is not the rightmost one. (Bug#1372)
6033
e08b1705
MR
60342008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6035
6036 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6037
ad98e89f
EZ
60382008-11-15 Eli Zaretskii <eliz@gnu.org>
6039
6040 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6041 and bright_bg if noninteractive is non-zero.
6042
fb098a4b
CY
60432008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6044
6045 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6046 x_draw_glyph_string_background.
6047
6048 * w32term.c (x_draw_glyph_string): Likewise.
6049
ce952b6e
CY
60502008-11-15 Chong Yidong <cyd@stupidchicken.com>
6051
6052 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6053 the next glyph string once past the overhang width.
6054
6055 * nsterm.m (ns_draw_glyph_string): Likewise.
6056
6057 * w32term.c (x_draw_glyph_string): Likewise.
6058
26ea7079
CY
60592008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6060
6061 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6062 double file close.
6063
1c33c906
MR
60642008-11-14 Martin Rudalics <rudalics@gmx.at>
6065
6066 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6067 dedicated status of window before attempting to display another
6068 buffer in it.
6069
8fc29035
JB
60702008-11-14 Juanma Barranquero <lekktu@gmail.com>
6071
6072 * msdos.c (Fmsdos_long_file_names):
6073 (syms_of_msdos) <dos-unsupported-char-glyph>:
6074 * dosfns.c (Fint86): Fix typos in docstrings.
6075
55fb4286
EZ
60762008-11-14 Eli Zaretskii <eliz@gnu.org>
6077
6078 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6079
3fda0315
KY
60802008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6081
6082 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6083
7e849c17
CY
60842008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6085
6086 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6087
6088 * frame.h: Negative alpha means "don't touch".
6089
6090 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6091
6092 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6093
b9fd67bd
DN
60942008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6095
6096 * hftctl.c:
6097 * chpdef.h:
6098 * acldef.h: Remove files used only for systems no longer supported.
6099
6100 * Makefile.in: Fix .o alphabetical ordering.
6101 (hftctl.o): Remove dependency, file removed.
6102 (keymap.o, print.o): Depend on charset.h.
6103
d5998e03
KH
61042008-11-10 Kenichi Handa <handa@m17n.org>
6105
2ae37cf0 6106 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6107
be70e183
CY
61082008-11-08 Chong Yidong <cyd@stupidchicken.com>
6109
6110 * dired.c (file_name_completion): If completion_ignore_case is
6111 enabled, ignore case when checking completion-regexp-list.
6112
7cf94eac
EZ
61132008-11-08 Eli Zaretskii <eliz@gnu.org>
6114
6115 * vm-limit.c (get_lim_data): Fix last change.
6116
ee107a89
KH
61172008-11-08 Kenichi Handa <handa@m17n.org>
6118
6119 * character.c (Fget_byte): New function.
6120 (syms_of_character): Defsubr Fget_byte.
6121
5fd15622
CY
61222008-11-07 Chong Yidong <cyd@stupidchicken.com>
6123
6124 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6125 cursor position is valid after scrolling.
6126
13d62fad
JB
61272008-11-06 Juanma Barranquero <lekktu@gmail.com>
6128
6129 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6130
a1dd2936
GM
61312008-11-06 Glenn Morris <rgm@gnu.org>
6132
6133 * xterm.c (handle_one_xevent): Don't let popup menus cause
6134 mouse-autoselect-window related window switching. (Bug#1261)
6135
860cd236
CY
61362008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6137
6138 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6139
653a3150
AS
61402008-11-04 Andreas Schwab <schwab@suse.de>
6141
6142 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6143
870f5cac
CY
61442008-11-03 Chong Yidong <cyd@stupidchicken.com>
6145
6146 * xfns.c (Fx_wm_set_size_hint): New function.
6147
1e02f3cb
MR
61482008-11-03 Martin Rudalics <rudalics@gmx.at>
6149
6150 * textprop.c (Fprevious_single_char_property_change): Return 0
6151 when there's no change in a string. (Bug#1301)
6152
e630dfc6
MR
61532008-11-02 Martin Rudalics <rudalics@gmx.at>
6154
6155 * frame.c (do_switch_frame): New argument NORECORD passed to
6156 Fselect_window.
6157 (Fselect_frame): New argument NORECORD passed to
6158 do_switch_frame.
6159 (Fset_frame_selected_window): New argument NORECORD passed to
6160 Fselect_frame.
6161 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6162 in call of do_switch_frame.
6163 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6164 Handle NORECORD argument in call of Fselect_frame.
6165 * lisp.h (do_switch_frame, Fselect_frame)
6166 (Fset_frame_selected_window): Adjust declarations.
6167 * window.c (select_frame_norecord): New function.
6168 (run_window_configuration_change_hook): Use it and call
6169 Fselect_frame with NORECORD set.
6170 (Fselect_window): Pass NORECORD to Fselect_frame.
6171 (Fset_window_configuration): Handle NORECORD argument in call of
6172 do_switch_frame.
6173 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6174 Fset_frame_selected_window.
6175 * keyboard.c (command_loop_1): Handle NORECORD in call of
6176 Fselect_frame (currently ifdefd).
6177
9020b223
GM
61782008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6179
6180 * emacs.c (USAGE2): Untabify.
6181
793ffee8
SM
61822008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6183
6184 * composite.c (fill_gstring_header): Fix copy/paste typo.
6185
ab6d1131
MR
61862008-10-31 Martin Rudalics <rudalics@gmx.at>
6187
6188 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6189 (Fother_window): Rename argument and rewrite doc-string.
6190 (select_window_norecord): Fix return value. (Bug#1276)
6191
601a9cf1
JB
61922008-10-30 Juanma Barranquero <lekktu@gmail.com>
6193
6194 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6195 new frames overriding foreground for tooltips. Based on similar patch
6196 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6197
813b0652
CY
61982008-10-29 Chong Yidong <cyd@stupidchicken.com>
6199
6200 * emacs.c (Fdaemon_initialized): Initialize nfd.
6201
4414f58f
MR
62022008-10-29 Martin Rudalics <rudalics@gmx.at>
6203
6204 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6205 (Fwindow_text_height): Clarify doc-strings.
6206 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6207 doc-string of window-scroll-functions.
6208
ecdcaa09
RS
62092008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6210
6211 * category.c (syms_of_category): Fix typo in docstring.
6212
23fe745a
JB
62132008-10-28 Juanma Barranquero <lekktu@gmail.com>
6214
6215 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6216 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6217 Fix typos in docstrings.
6218
ff808935
DN
62192008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6220
6221 * emacs.c (daemon_pipe): Make non-static.
6222 (IS_DAEMON): Move definition ...
6223 * lisp.h (IS_DAEMON): ... here.
6224 (daemon_pipe): Declare.
6225 (is_daemon): Remove.
6226 * dispnew.c (init_display): Use IS_DAEMON.
6227
fc012771
SM
62282008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6229
6230 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6231 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6232
6233 * emacs.c (is_daemon): Remove.
6234 (main): Don't set is_daemon.
6235 (IS_DAEMON): New macro.
6236 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6237 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6238 parent exits.
6239 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6240
d8bdbe6f
CY
62412008-10-27 Chong Yidong <cyd@stupidchicken.com>
6242
d1a072bf
CY
6243 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6244 over-sized glyph, draw it with the default glyph width.
6245
e2e325aa
CY
6246 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6247 glyph, draw it with the default glyph width.
6248
6249 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6250 glyph, draw it with the default glyph width.
6251
d8bdbe6f
CY
6252 * xdisp.c (try_scrolling): When computing the distance from the
6253 scroll margin to PT, try moving some distance past the window
6254 bottom before giving up.
6255
7bfac547
MR
62562008-10-27 Martin Rudalics <rudalics@gmx.at>
6257
6258 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6259 (Fset_window_buffer): Explain in doc-string that a window can be
6260 "strongly" dedicated to its buffer.
6261
4ff029f6
DN
62622008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6263
6264 * emacs.c (daemon_name): New variable.
6265 (main): Deal with --daemon=SERVER_NAME.
6266 (Fdaemonp): Return a name if one was passed to --daemon.
6267
5790ef40
DN
62682008-10-26 Romain Francoise <romain@orebokech.com>
6269
f9bd0df9 6270 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6271 (main): Create a pipe before forking, make the parent exit only after
6272 the child has closed its end of the pipe. Move closing the
6273 descriptors ...
6274 (Fdaemon_initialized): ... here. New function.
6275
f5385255
SM
62762008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6277
4d632321
SM
6278 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6279 the previous unoptimized table.
6280
f5385255
SM
6281 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6282 the distinction between non-nil and non-t value of `dedicated'.
6283
6c56a0f3
CY
62842008-10-25 Chong Yidong <cyd@stupidchicken.com>
6285
6286 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6287 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6288
fec89261
MR
62892008-10-25 Martin Rudalics <rudalics@gmx.at>
6290
6291 * window.c (Fget_buffer_window, Fdelete_windows_on)
6292 (Freplace_buffer_in_windows): Make buffer argument optional and
6293 rename to buffer_or_name.
6294
34fcddd0
CY
62952008-10-24 Chong Yidong <cyd@stupidchicken.com>
6296
f5385255
SM
6297 * xdisp.c (handle_single_display_spec, handle_display_prop):
6298 Undo 2005-05-16 change.
34fcddd0
CY
6299 (handle_stop): Pop iterator if it's loaded with an empty string.
6300 (get_overlay_strings_1): Don't save iterator if it's loaded with
6301 an empty string (bug#1201).
6302
064766f2
KH
63032008-10-24 Kenichi Handa <handa@m17n.org>
6304
6305 * ftfont.c (ftfont_otf_features): Fix previous change.
6306 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6307 calling ftfont_otf_features.
6308
f9bd0df9 63092008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6310
6311 * font.c (font_match_p): Fix for the case that a vector of
6312 characters is in script-representative-chars.
6313
1dae9197
MA
63142008-10-24 Michael Albinus <michael.albinus@gmx.de>
6315
6316 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6317 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6318 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6319 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6320 macro. (Bug#1186)
1dae9197 6321
f9bd0df9 63222008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6323
6324 * s/sol2-10.h: New file.
6325
878a4584
JB
63262008-10-23 Juanma Barranquero <lekktu@gmail.com>
6327
6328 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6329 poor beast has survived 9+ years and the jump from xterm.c!).
6330
cd265ca6
MR
63312008-10-23 Martin Rudalics <rudalics@gmx.at>
6332
6333 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6334 Reword doc-string.
f5385255 6335 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6336
472a4dc9
JB
63372008-10-23 Juanma Barranquero <lekktu@gmail.com>
6338
6339 * character.c (syms_of_character) <script-representative-chars>:
6340 <unicode-category-table>: Doc fixes.
6341
159bd5a2
NF
63422008-10-23 Noah Friedman <friedman@splode.com>
6343
6344 * coding.c (make_conversion_work_buffer): Check that
6345 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6346 Fget_buffer_create.
6347
49f9c344
KH
63482008-10-23 Kenichi Handa <handa@m17n.org>
6349
6350 * font.c (font_add_log): Check the values of extra properties.
6351
12bb3111
MR
63522008-10-22 Martin Rudalics <rudalics@gmx.at>
6353
6354 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6355 Reword doc-string.
6356 (Fset_window_parameter): Use NILP.
6357 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6358 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6359
bbeb4e99
JB
63602008-10-22 Juanma Barranquero <lekktu@gmail.com>
6361
6362 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6363
63642008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6365
6366 * nsfns.m (ns_appkit_version): New function.
6367 (x-server-version): Use it.
6368 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6369 (x-server-vendor): Don't check_ns().
6370
6371 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6372
a9b555d3
JB
63732008-10-22 Juanma Barranquero <lekktu@gmail.com>
6374
6375 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6376 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6377
4626499f
KH
63782008-10-22 Kenichi Handa <handa@m17n.org>
6379
e3681952
KH
6380 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6381 scripts.
6382
4626499f
KH
6383 * category.c (word_boundary_p): Check scripts instead of charset.
6384 Handle nil value in word-separating-categories and
6385 word-combining-categories.
6386 (syms_of_category): Fix docstrings of word-separating-categories
6387 and word-combining-categories.
6388
1560f91a
EZ
63892008-10-21 Eli Zaretskii <eliz@gnu.org>
6390
6391 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6392 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6393
f4668441
MR
63942008-10-21 Martin Rudalics <rudalics@gmx.at>
6395
6396 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6397 Rename arg "buffer" to "buffer_or_name".
6398 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6399 it optional.
6400 (no_switch_window): Remove since the return value is not used.
a9b555d3 6401 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6402 Consider window as dedicated when Fwindow_dedicated_p returns a
6403 non-nil value.
6404 * lisp.h: Remove prototype for no_switch_window.
6405
fd75ddb2
JD
64062008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6407
6408 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6409 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6410
07295713
KH
64112008-10-21 Kenichi Handa <handa@m17n.org>
6412
6413 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6414 check Vlatin_extra_code_table.
6415
712adc82
EZ
64162008-10-20 Eli Zaretskii <eliz@gnu.org>
6417
6418 * fileio.c (Fset_file_modes): Doc fix.
6419
f549eb0b
MA
64202008-10-19 Michael Albinus <michael.albinus@gmx.de>
6421
6422 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6423 in arrays.
6424
aac0c6e3
MR
64252008-10-19 Martin Rudalics <rudalics@gmx.at>
6426
6427 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6428 Mention kill-buffer in doc-string.
6429 (Fset_window_buffer): Reinsert tem check removed in last commit.
6430 (Fenlarge_window, Fshrink_window): Have argument names and
6431 doc-string follow Elisp manual more closely.
6432
64332008-10-18 Eli Zaretskii <eliz@gnu.org>
6434
6435 * fileio.c (Fset_file_modes): Doc fix.
6436
64372008-10-18 Martin Rudalics <rudalics@gmx.at>
6438
6439 * window.c (Fwindow_width, Fset_window_start)
6440 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6441 (Fdelete_windows_on, Freplace_buffer_in_windows):
6442 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6443 (Fwindow_dedicated_p): Make window argument optional.
6444 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6445 (Fset_window_buffer): Respect any non-nil dedicated value for
6446 window. Rename "buffer" argument to "buffer_or_name".
6447
64482008-10-18 Ulrich Mueller <ulm@gentoo.org>
6449
6450 * m/sh3.h: New file, machine description for SuperH.
6451
64522008-10-17 Martin Rudalics <rudalics@gmx.at>
6453
6454 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6455
64562008-10-17 Kenichi Handa <handa@m17n.org>
6457
6458 * ftfont.c (ftfont_otf_features): Fix indexing
6459 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6460
64612008-10-16 Magnus Henoch <mange@freemail.hu>
6462
6463 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6464 (Fdbus_call_method_asynchronously): Ditto.
6465 This change makes C-h f display the argument list.
6466
64672008-10-16 Chong Yidong <cyd@stupidchicken.com>
6468
6469 * fileio.c (Fexpand_file_name): Doc fix.
6470
6471 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6472 of :foreground and :background equivalent to unspecified (20.x
6473 compatibility).
6474
64752008-10-15 Eli Zaretskii <eliz@gnu.org>
6476
6477 * buffer.c (syms_of_buffer): Doc fix.
6478
64792008-10-14 Kenichi Handa <handa@m17n.org>
6480
6481 * font.c (font_clear_prop): When clearing font width, clear the
6482 average width field too.
6483
64842008-10-12 Andreas Schwab <schwab@suse.de>
6485
6486 * ftfont.c (ftfont_shape_by_flt): Make static.
6487 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6488
6489 * font.c: Don't include <m17n-flt.h>.
6490
64912008-10-10 Eli Zaretskii <eliz@gnu.org>
6492
6493 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6494
64952008-10-09 Eli Zaretskii <eliz@gnu.org>
6496
6497 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6498 away code.
6499
65002008-10-09 Chong Yidong <cyd@stupidchicken.com>
6501
6502 * dispnew.c (update_text_area): Avoid looping due to large glyph
6503 overhangs (bug#1070).
6504
65052008-10-09 Kenichi Handa <handa@m17n.org>
6506
6507 * fontset.c (face_for_char): If face->fontset is negative, just
6508 return ascii_face.
6509
f5385255
SM
6510 * font.c (font_delete_unmatched): Fix previous change.
6511 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6512
65132008-10-09 Martin Rudalics <rudalics@gmx.at>
6514
6515 * frame.c (Fraise_frame): On text-only terminals select frame in
6516 order to make it visible. (Bug#1061)
6517
65182008-10-08 Chong Yidong <cyd@stupidchicken.com>
6519
6520 * fontset.c (fontset_find_font): Check frame validity.
6521
65222008-10-07 Chong Yidong <cyd@stupidchicken.com>
6523
a9b555d3 6524 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6525 (xg_display_close): Allow Emacs to close all displays (bug#985).
6526
65272008-10-06 Andreas Schwab <schwab@suse.de>
6528
f5385255 6529 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6530
65312008-10-06 Chong Yidong <cyd@stupidchicken.com>
6532
f5385255 6533 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6534
a9b555d3 6535 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6536
6537 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6538 during initialization.
6539
65402008-10-04 Eli Zaretskii <eliz@gnu.org>
6541
6542 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6543 whole thing on MSDOS frames as well as on a TTY.
6544
6545 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6546 well as for TTY.
6547 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6548 well as on a TTY.
6549
6550 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6551 as well as for TTY.
6552
6553 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6554
6555 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6556 MSDOS frames as well.
6557
65582008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6559
6560 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6561 correct arguments.
b71ac3dd 6562 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6563
65642008-10-03 Glenn Morris <rgm@gnu.org>
6565
6566 * emacs.c (USAGE1): Add --daemon.
6567
65682008-10-02 Eli Zaretskii <eliz@gnu.org>
6569
6570 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6571 100, so it's in percents as advertised.
6572
65732008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6574
6575 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6576 (ns_output.current_cursor, ns_output.desired_cursor)
6577 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6578 (FRAME_NEW_CURSOR_COLOR): Remove.
6579
6580 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6581 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6582 enumeration (HOLLOW_BOX_CURSOR, etc.).
6583
6584 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6585 (draw_window_cursor): Simplify code.
f5385255
SM
6586 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6587 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6588 updates manually.
a9b555d3
JB
6589 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6590 Use core Emacs cursor types.
aac0c6e3 6591
b8ff72fa 6592 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6593
65942008-10-02 Martin Rudalics <rudalics@gmx.at>
6595
6596 * process.c (Faccept_process_output): Fix doc-string.
6597
65982008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6599
6600 * gmalloc.c (__sbrk): Also define for uClibc.
6601
6602 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6603 for uClibc.
6604
66052008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6606
6607 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6608 styles.
6609 (nsfont_open): Reenable the cache.
6610
66112008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6612
6613 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6614 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6615
66162008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6617
6618 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6619 a suspended terminal.
6620
66212008-09-30 Michael Albinus <michael.albinus@gmx.de>
6622
6623 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6624
66252008-09-30 Eli Zaretskii <eliz@gnu.org>
6626
6627 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6628
66292008-09-30 Chong Yidong <cyd@stupidchicken.com>
6630
6631 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6632 in a continued line coincides with a line beginning.
6633
66342008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6635
6636 * nsfont.m (nsfont_trait_distance): Fix bug.
6637 (nsfont_list): Return a list rather than a vector (syncs with Handa
6638 changes of 2008-05-14).
6639 (nsfont_open): Improve logging.
6640
66412008-09-29 Andreas Schwab <schwab@suse.de>
6642
6643 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6644
66452008-09-28 Martin Rudalics <rudalics@gmx.at>
6646
6647 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6648 name as char-resolve-modifiers.
6649 Reported by: Markus Triska <markus.triska@gmx.at>
6650
66512008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6652
6653 * dispnew.c (init_display): Return earlier when running as a daemon.
6654
66552008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6656
6657 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6658
66592008-09-27 Eli Zaretskii <eliz@gnu.org>
6660
6661 * composite.c (Fcomposition_get_gstring)
6662 (Fcompose_region_internal, Fcompose_string_internal)
6663 (Ffind_composition_internal): Doc fix.
6664 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6665 (syms_of_composite) <auto-composition-function>: Doc fix.
6666 (syms_of_composite) <composition-function-table>: Doc fix.
6667
66682008-09-25 Chong Yidong <cyd@stupidchicken.com>
6669
6670 * search.c (wordify): New argument for lax word-ends.
6671 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6672
66732008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6674
6675 * lisp.h (is_daemon): Declare.
6676 * dispnew.c (init_display): Do not try to initialize the terminal
6677 when running as a daemon.
6678
66792008-09-22 Chong Yidong <cyd@stupidchicken.com>
6680
6681 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6682 x_display_pixel_height.
6683
66842008-09-22 Martin Rudalics <rudalics@gmx.at>
6685
6686 * undo.c (record_point): Don't call Fundo_boundary for first
6687 change. (Bug#731)
6688
66892008-09-22 Juanma Barranquero <lekktu@gmail.com>
6690
6691 * emacs.c (Fdaemonp): Doc fix.
6692
66932008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6694
6695 * emacs.c (main): Place #ifdef in the proper place.
6696
66972008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6698
6699 * emacs.c (standard_args): Add --daemon.
6700 (main): Disconnect from the terminal when --daemon is passed.
6701 (is_daemon): New variable.
6702 (Fdaemonp): New function.
6703 (syms_of_emacs): Defsubr it.
6704
67052008-09-20 Chong Yidong <cyd@stupidchicken.com>
6706
6707 * xdisp.c (get_next_display_element): Handle string display
6708 correctly when checking for the end of a box run.
6709
67102008-09-20 Glenn Morris <rgm@gnu.org>
6711
6712 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6713 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6714 (Frename_file): Avoid copying to trash if a rename involves
6715 a delete. (Bug#964).
6716
67172008-09-20 Eli Zaretskii <eliz@gnu.org>
6718
6719 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6720 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6721 frames as well as termcap frames.
6722 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6723 get_named_tty.
6724
67252008-09-19 Eli Zaretskii <eliz@gnu.org>
6726
6727 * process.c (procfs_system_process_attributes): Fix cmdline in
6728 case /proc/PID/cmdline is empty.
6729
6730 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6731 x_display_pixel_height.
6732
67332008-09-19 Juanma Barranquero <lekktu@gmail.com>
6734
6735 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6736
6737 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6738 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6739
67402008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6741
6742 * dispextern.h (struct it): Move line_wrap away from the middle of
6743 bitfields. Move voffset in struct iterator_stack_entry after the
6744 bitfields. Move tab_width near after another short.
6745
67462008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6747
6748 * frame.h (struct frame): Move alpha from the middle of bitfields.
6749
6750 * window.h (struct window): Move frozen_window_start_p after the
6751 rest of the bitfields to reduce padding.
6752
67532008-09-18 Chong Yidong <cyd@stupidchicken.com>
6754
6755 * xterm.h (x_display_info): Remove `height' and `width' members.
6756
6757 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6758
6759 * w32term.h (w32_display_info): Remove `height', `width',
6760 `height_in', and `width_in' members.
6761
b8ff72fa
SM
6762 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6763 New functions.
aac0c6e3
MR
6764 (x_calc_absolute_position): Use them.
6765 (x_term_init): Omit removed `height' and `width' members.
6766
b8ff72fa
SM
6767 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6768 New functions.
aac0c6e3
MR
6769 (w32_read_socket, x_calc_absolute_position): Use them.
6770 (w32_initialize_display_info, w32_term_init): Omit removed members
6771 of w32_display_info.
6772
b8ff72fa
SM
6773 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6774 New functions.
6775 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6776
b8ff72fa
SM
6777 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6778 New functions.
aac0c6e3
MR
6779 (x_calc_absolute_position): Use them.
6780 (x_term_init): Omit removed `height' and `width' members.
6781
6782 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6783 (compute_tip_xy):
6784 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6785 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6786 x_display_pixel_width.
6787
67882008-09-18 Kenichi Handa <handa@m17n.org>
6789
6790 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6791 (composition_compute_stop_pos): Fix handling of static composition.
6792 (Fcomposition_get_gstring): Check FROM and TO at first.
6793
67942008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6795
46e722a9 6796 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6797 mixup (YAILOM).
6798
67992008-09-17 Chong Yidong <cyd@stupidchicken.com>
6800
6801 * indent.c (Fvertical_motion): Use position reported by iterator
6802 instead of PT for determining screen motion (bug#943).
6803
68042008-09-17 Romain Francoise <romain@orebokech.com>
6805
6806 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6807
68082008-09-17 Kenichi Handa <handa@m17n.org>
6809
6810 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6811
6812 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6813 if necessary.
6814
68152008-09-16 Kenichi Handa <handa@m17n.org>
6816
6817 * coding.c (make_conversion_work_buffer): Avoid calling
6818 Fget_buffer_create if it is not necessary.
6819
68202008-09-15 Martin Rudalics <rudalics@gmx.at>
6821
6822 * window.c (Fselect_window): Don't update window_select_count and
6823 use_time when norecord is not nil.
6824
68252008-09-14 Kenichi Handa <handa@m17n.org>
6826
6827 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6828 specpdl_ptr.
6829
68302008-09-12 Kenichi Handa <handa@m17n.org>
6831
6832 * indent.c (scan_for_column): Don't handle automatic composition
6833 if the current buffer is not associated with a window.
6834
6835 * composite.c (composition_reseat_it): If the current buffer is
6836 not associated with a window, ignore the automatic composition.
6837 (find_automatic_composition): Likewise.
6838
68392008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6840
6841 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6842 (Fgpm_mouse_stop): Use it.
6843 * termhooks.h (close_gpm): Declare.
6844 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6845 connection if Gpm_GetEvent fails.
6846
6847 * window.c (set_window_buffer): Always preserve current-buffer.
6848
68492008-09-12 Glenn Morris <rgm@gnu.org>
6850
6851 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6852
68532008-09-11 Glenn Morris <rgm@gnu.org>
6854
6855 * charset.c (charset-map-path): Doc fix.
6856
68572008-09-10 Kenichi Handa <handa@m17n.org>
6858
6859 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6860
6861 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6862 compose a grapheme cluster with the preceding base glyph.
6863
6864 * composite.c (composition_compute_stop_pos): Fix previous change.
6865 Reset cmp_it->id to -1 at first.
6866
68672008-09-10 Glenn Morris <rgm@gnu.org>
6868
6869 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6870
68712008-09-09 Chong Yidong <cyd@stupidchicken.com>
6872
6873 * keyboard.c (read_key_sequence): Reapply translation maps when
6874 switching keyboards.
6875
68762008-09-09 Kenichi Handa <handa@m17n.org>
6877
6878 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6879 characters.
6880
6881 * composite.c (FORWARD_CHAR): Fix calculation
6882 of (POSITION).pos_byte.
6883 (composition_compute_stop_pos): Limit the search of composition to
6884 at most 500 characters ahead. If we reach the limit or find a
6885 newline, set cmp_it->ch to -2 and return 0.
6886 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6887
68882008-09-08 Kenichi Handa <handa@m17n.org>
6889
6890 * indent.c (Fvertical_motion): Be sure to set
6891 it_overshoot_expected if it.cmp_it.id is non-negative.
6892
68932008-09-07 Andreas Schwab <schwab@suse.de>
6894
6895 * callproc.c (Fcall_process): Don't hold references to string data
6896 across garbage collection. Move initialisation of new_argv down
6897 to avoid compiler bug.
6898
68992008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6900
6901 * process.c (Fsystem_process_attributes): Doc fix.
6902
69032008-09-07 Chong Yidong <cyd@stupidchicken.com>
6904
6905 * callproc.c (Fcall_process): Canonicalize current directory name.
6906
6907 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6908 iterator advances to the next line if the current line ends in a
6909 continued tab.
6910
69112008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6912
6913 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6914 member to point to cmp_from.
6915
6916 * xdisp.c: Doc fix for references to gidx data member.
6917
69182008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6919
6920 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6921
69222008-09-07 Kenichi Handa <handa@m17n.org>
6923
6924 * composite.c (FORWARD_CHAR): Check STOP after
6925 incrementing (POSITION).pos.
6926
69272008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6928
6929 * process.c (Fsystem_process_attributes): Doc fix.
6930
69312008-09-06 Chong Yidong <cyd@stupidchicken.com>
6932
6933 * keyboard.c (Ftop_level): Doc fix.
6934
69352008-09-06 Eli Zaretskii <eliz@gnu.org>
6936
6937 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6938 minibuffer, don't let lower part of menu invade the echo area.
6939
6940 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6941 "char *q" to access menu text and advance through it. Revert the
6942 change that displayed ">" instead of ASCII character 0x10.
6943
69442008-09-05 Eli Zaretskii <eliz@gnu.org>
6945
6946 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6947 toggle boxes and radio buttons on MS-DOS as well.
6948
69492008-09-05 Kenichi Handa <handa@m17n.org>
6950
6951 * composite.c (autocmp_chars): Check lookback count.
6952 (composition_compute_stop_pos): Set cmp_it->lookback.
6953 (composition_reseat_it): Check lookback count.
6954 (struct position_record): New struct.
6955 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6956 (find_automatic_composition): New function.
6957 (composition_adjust_point): Use find_automatic_composition.
6958
6959 * dispextern.h (struct composition_it): New member lookback.
6960
69612008-09-02 Chong Yidong <cyd@stupidchicken.com>
6962
6963 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6964 if moving by a single line.
6965
69662008-09-02 Andreas Schwab <schwab@suse.de>
6967
6968 * xterm.c (x_delete_display): Fix merge error.
6969
6970 * fileio.c (Fexpand_file_name): Remove unused variables.
6971
69722008-09-02 Eli Zaretskii <eliz@gnu.org>
6973
6974 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6975 storage on all platforms, not just on DOS_NT.
6976
69772008-09-02 Jason Rumney <jasonr@gnu.org>
6978
b8ff72fa
SM
6979 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6980 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6981
69822008-09-01 Chong Yidong <cyd@stupidchicken.com>
6983
6984 * xfaces.c (Finternal_set_alternative_font_family_alist)
6985 (Finternal_set_alternative_font_registry_alist): Properly copy
6986 entire alist structure.
6987
69882008-09-01 Kenichi Handa <handa@m17n.org>
6989
d66c0241 6990 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6991 representative chars of the script is a vector.
d66c0241
JB
6992 (ftfont_list): Handle the case where the representative chars of
6993 the script is a vector.
aac0c6e3
MR
6994
6995 * character.c (syms_of_character): Docstring of
6996 script-representative-chars fixed.
6997
69982008-08-31 Eli Zaretskii <eliz@gnu.org>
6999
7000 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7001 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7002 the menu. Allocate larger buffer for `text', to account for
7003 possible ^C characters.
7004
70052008-08-31 Martin Rudalics <rudalics@gmx.at>
7006
7007 * xdisp.c (prepare_menu_bars): Don't call
7008 Vwindow_size_change_functions with arg Qt.
7009
70102008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7011
7012 * font.h (font_range):
7013 * fileio.c (report_file_error):
46e722a9
SM
7014 * composite.c (composition_update_it): Yet another int/Lisp_Object
7015 mixup (YAILOM).
aac0c6e3
MR
7016
70172008-08-30 Glenn Morris <rgm@gnu.org>
7018
7019 * data.c (Fmake_variable_frame_local): Doc fix.
7020
7021 * frame.c (Fmodify_frame_parameters): Doc fix.
7022
70232008-08-30 Eli Zaretskii <eliz@gnu.org>
7024
7025 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7026 needed by GetTokenInformation.
7027 (w32_system_process_attributes): Check return values of all system
7028 APIs.
7029
7030 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7031 only when the state changes.
7032 (IT_update_begin, IT_update_end): Add termscript trace.
7033
7034 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7035 clipboard is unavailable. Set dst to NULL if it doesn't point to
7036 malloc'ed data.
7037 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7038 passing random values to xfree.
7039
7040 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7041 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7042
70432008-08-29 Jason Rumney <jasonr@gnu.org>
7044
7045 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7046
70472008-08-29 Eli Zaretskii <eliz@gnu.org>
7048
7049 * composite.c (fill_gstring_body): Avoid compiler warnings.
7050
7051 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7052 LGLYPH_SET_CODE to avoid compiler warnings.
7053
2ae37cf0 7054 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7055
7056 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7057
7058 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7059 LGLYPH_SET_CODE.
7060
70612008-08-29 Kenichi Handa <handa@m17n.org>
7062
7063 * fileio.c (report_file_error): Don't downcase the first character
7064 of errstring if it is still unibyte.
7065
70662008-08-29 Kenichi Handa <handa@m17n.org>
7067
7068 These changes are to re-implement the automatic composition so
7069 that it doesn't use text properties.
7070
7071 * Makefile.in (ftfont.o): Depend on composite.h.
7072 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7073
7074 * character.h (Vunicode_category_table): Extern it.
7075
7076 * character.c (Vunicode_category_table): New variable.
7077 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7078
7079 * chartab.c (optimize_sub_char_table): Perform more greedy
7080 optimization.
7081
b8ff72fa
SM
7082 * composite.h (enum composition_method):
7083 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7084 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7085 (Vcomposition_function_table): Extern it.
7086 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7087 (composition_gstring_put_cache, composition_gstring_from_id)
7088 (composition_gstring_p, composition_gstring_width)
7089 (composition_compute_stop_pos, composition_reseat_it)
7090 (composition_update_it, composition_adjust_point): Extern them.
7091 (Fcomposition_get_gstring): EXFUN it.
7092
d66c0241 7093 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7094 (Vcomposition_function_table)
7095 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7096 (gstring_hash_table, gstring_work, gstring_work_headers):
7097 New variables.
aac0c6e3
MR
7098 (gstring_lookup_cache, composition_gstring_put_cache)
7099 (composition_gstring_from_id, composition_gstring_p)
7100 (composition_gstring_width, fill_gstring_header)
7101 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7102 (composition_reseat_it, composition_update_it)
b8ff72fa 7103 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7104 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7105 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7106 Defsubr composition_get_gstring.
aac0c6e3
MR
7107
7108 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7109 cmp_id.
7110 (struct glyph_string): Delete the member gidx. New members
7111 cmp_id, cmp_from, and cmp_to.
7112 (enum it_method): Delete GET_FROM_COMPOSITION.
7113 (struct composition_it): New struct.
7114 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7115 Delete c, len, cmp_id, cmp_len in u.comp.
7116
7117 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7118 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7119 (enum lglyph_indices): Likewise.
b8ff72fa 7120 (font_range): Adjust extern.
aac0c6e3
MR
7121 (font_fill_lglyph_metrics): Extern it.
7122
7123 * font.c (QCf): New variable.
7124 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7125 (font_prepare_composition): Delete this function.
7126 (font_range): Type and arguments changed.
7127 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7128 (font_fill_lglyph_metrics): New function.
b8ff72fa 7129 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7130 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7131 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7132 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7133
7134 * fontset.h (font_for_char): Extern it.
7135
7136 * fontset.c (font_for_char): New function.
7137
7138 * ftfont.c: Include composite.h.
7139 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7140 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7141
7142 * indent.c: Include composite.h and dispextern.h.
7143 (check_composition): Delete this function.
7144 (scan_for_column): Handle composition by
7145 composition_compute_stop_pos, composition_reseat_it, and
7146 composition_update_it.
7147 (compute_motion): Likewise.
7148 (Fvertical_motion): Fix checking of composition.
7149
7150 * keyboard.c (adjust_point_for_property): Check composition by
7151 composition_adjust_point.
7152
b8ff72fa 7153 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7154 struct glyph_string.
7155
b8ff72fa
SM
7156 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7157 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7158 struct glyph.
7159 (produce_composite_glyph): Likewise.
7160
b8ff72fa
SM
7161 * w32term.c (x_draw_composite_glyph_string_foreground):
7162 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7163 (x_draw_glyph_string): Likewise.
7164
7165 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7166 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7167
7168 * xdisp.c: Include font.h.
7169 (it_props): Delete the entry for Qauto_composed.
7170 (init_iterator): Initialize it->cmp_it.id to -1.
7171 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7172 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7173 (handle_auto_composed_prop): Delete it.
7174 (handle_composition_prop): Handle only static composition.
7175 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7176 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7177 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7178 (pop_it): Likewise.
7179 (get_next_element): Delete next_element_from_composition.
7180 (CHAR_COMPOSED_P): New macro.
7181 (get_next_display_element): For automatic composition, get a face
7182 from the font in the glyph-string.
7183 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7184 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7185 (next_element_from_string): Check if the character at the current
7186 position is composed by CHAR_COMPOSED_P.
7187 (next_element_from_buffer): Likewise.
d66c0241
JB
7188 (next_element_from_composition): Adjust for the change of struct it.
7189 Update it->cmp_it.
b8ff72fa
SM
7190 (dump_glyph): Adjust for the change of struct glyph.
7191 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7192 it and struct glyph. Don't handle automatic composition here.
7193 (fill_gstring_glyph_string): New function.
7194 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7195 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7196 (BUILD_GSTRING_GLYPH_STRING): New macro.
7197 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7198 automatic composition.
b8ff72fa 7199 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7200 struct glyph.
b8ff72fa 7201 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7202
b8ff72fa 7203 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7204 the change of struct glyph_string.
7205 (x_draw_glyph_string): Likewise.
7206
72072008-08-29 Glenn Morris <rgm@gnu.org>
7208
7209 * buffer.c (word-wrap): Doc fix.
7210 * xdisp.c (truncate-partial-width-windows): Doc fix.
7211 Increase default to 50.
7212
72132008-08-29 Chong Yidong <cyd@stupidchicken.com>
7214
7215 * xdisp.c (update_tool_bar_unwind): New function.
7216 (update_tool_bar): Temporarily set selected frame before building
7217 tool-bar items.
7218
72192008-08-28 Michael Albinus <michael.albinus@gmx.de>
7220
7221 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7222 snprintf, respectively.
7223 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7224
72252008-08-28 Chong Yidong <cyd@stupidchicken.com>
7226
7227 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7228 LDFLAGS to GNUstep CC invocation.
7229
72302008-08-27 Chong Yidong <cyd@stupidchicken.com>
7231
7232 * indent.c (Fvertical_motion): Revert last change. Handle the
7233 general case where we are moving forward, and PT spans multiple
7234 screen lines.
7235
7236 * eval.c (find_handler_clause): Temporarily increase
7237 max-lisp-eval-depth while printing the backtrace buffer, to
7238 guarantee that help-mode code can run.
7239
72402008-08-27 Eli Zaretskii <eliz@gnu.org>
7241
7242 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7243 colors under -rv.
7244 (IT_set_frame_parameters): Don't swap foreground and background
7245 colors if `(reverse . t)' is present in the frame properties.
7246 (internal_terminal_init): Call init_frame_faces only for the
7247 initial frame.
7248
72492008-08-27 Andreas Schwab <schwab@suse.de>
7250
7251 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7252
72532008-08-27 Andreas Schwab <schwab@suse.de>
7254
7255 * search.c (search_buffer): Set char_base to zero only at the end.
7256
72572008-08-27 Kenichi Handa <handa@m17n.org>
7258
b8ff72fa 7259 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7260
72612008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7262
7263 * xterm.c (x_term_init): Temporarily hide the partially
7264 initialized terminal while calling vendor-specific-keysyms.
7265
72662008-08-26 Eli Zaretskii <eliz@gnu.org>
7267
7268 * msdos.c (internal_terminal_init): Most initializations done only
7269 once, especially initial_screen_colors[] and termscript open.
7270
72712008-08-26 Chong Yidong <cyd@stupidchicken.com>
7272
7273 * eval.c (Fcondition_case): Doc fix.
7274
7275 * widgetprv.h (EmacsFramePart): Change font member to the new font
7276 struct.
7277
7278 * widget.c: Include character.h and font.h for XSETFONT.
7279 (setup_frame_gcs): Compute X font id from font struct, just once.
7280
72812008-08-26 Eli Zaretskii <eliz@gnu.org>
7282
7283 * term.c (get_named_tty): Fix last change.
7284
72852008-08-26 Chong Yidong <cyd@stupidchicken.com>
7286
7287 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7288 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7289
72902008-08-25 Eli Zaretskii <eliz@gnu.org>
7291
7292 * frame.c (do_switch_frame): Mark previously displayed frame as
7293 obscured for FRAME_MSDOS_P frames as well.
7294
72952008-08-24 Eli Zaretskii <eliz@gnu.org>
7296
7297 * frame.c (make_terminal_frame): Initialize f->terminal,
7298 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7299 Set the top frame to newly created frame.
7300 (Fmake_terminal_frame): Reuse the_only_display_info.
7301
7302 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7303 estimating available memory.
7304
b97439ce 73052008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7306
7307 * nsterm.m (ns_draw_window_cursor): Don't call
7308 NSDisableScreenUpdates and NSEnableScreenUpdates on
7309 non-NS_IMPL_COCOA systems.
7310
73112008-08-23 Andreas Schwab <schwab@suse.de>
7312
7313 * process.c (procfs_system_process_attributes): Fix use of
7314 uninitialized variables.
7315
73162008-08-23 Eli Zaretskii <eliz@gnu.org>
7317
7318 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7319
7320 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7321 calling tty-set-up-initial-frame-faces.
7322
b8ff72fa
SM
7323 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7324 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7325
7326 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7327 addition to output_termcap.
7328
7329 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7330
7331 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7332 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7333 highlight.
7334
7335 * process.c [!subprocesses]: Define QCname.
7336 (syms_of_process): Intern and staticpro it.
7337
7338 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7339 Adjust for changes in encoding/decoding routines.
7340 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7341 encode_coding and decode_coding.
7342
b8ff72fa 7343 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7344
7345 * dosfns.c: Include frame.h before termhooks.h.
7346 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7347 variable termscript.
7348
7349 * s/msdos.h (USER_FULL_NAME): Define.
7350 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7351
7352 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7353 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7354 pw->pw_gecos.
7355
7356 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7357 SELECTED_FRAME as additional (1st) argument.
7358 (tty_read_avail_input): Handle output_msdos_raw in
7359 addition to output_termcap.
7360
7361 * msdos.c: Include frame.h before termhooks.h.
7362 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7363 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7364 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7365 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7366 (IT_set_terminal_modes, IT_reset_terminal_modes)
7367 (IT_set_frame_parameters): Use tty->termscript instead of a global
7368 variable termscript.
7369 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7370 global variable terminal_coding. Don't refer to
7371 Vnonascii_translation_table.
7372 (internal_terminal_init): Set Vwindow_system in current_kboard.
7373 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7374 Announce date and time of session start, if termscript is open.
7375 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7376 term.c:init_tty). Open termscript only of not already open.
7377 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7378 here instead of dos_ttraw. Don't initialize display if this is an
7379 initial tty. Don't set FRAME_FONT.
7380 (Vwindow_system_version): Bump to 23.
7381 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7382 is available, set up mouse_position_hook.
7383 (dos_ttraw, IT_set_terminal_modes): If called with initial
7384 terminal, do nothing.
7385 (IT_set_frame_parameters): Handle the Qtty_type frame
7386 parameter by calling internal_terminal_init.
7387 (dos_set_window_size, show_mouse_face)
7388 (clear_mouse_face, IT_note_mode_line_highlight)
7389 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7390 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7391 (initialize_msdos_display): New function.
7392 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7393 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7394 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7395 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7396 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7397 (request_sigio, unrequest_sigio): Don't define, now defined on
7398 sysdep.c.
7399 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7400
7401 * term.c [MSDOS]: Include msdos.h.
7402 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7403 conditional to DOS_NT. Allow only one call to this function in a
7404 session. Don't allocate a new struct tty_display_info; instead,
7405 reuse the_only_display_info. Call get_tty_size to get screen
7406 dimensions. Call init_baud_rate to set bad_rate.
7407 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7408 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7409 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7410 (get_tty_terminal, get_named_tty, Ftty_type)
7411 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7412 output_termcap.
b8ff72fa
SM
7413 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7414 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7415 only when subprocesses are supported.
aac0c6e3
MR
7416
7417 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7418 f->output_data.x.
7419 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7420 terminal devices.
7421
5582fbc7 7422 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7423 x_output.
7424 (FRAME_FONT): Use output_data.tty.
7425 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7426 (struct x_display_info): Rename from display_info. Update all users in
7427 msdos.c.
aac0c6e3 7428 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7429 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7430 (dos_ttraw): Update prototype.
7431
7432 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7433 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7434
74352008-08-23 Jason Rumney <jasonr@gnu.org>
7436
7437 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7438 (fn_TIFFSetDirectory): New library function used.
7439 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7440 (tiff_load): Use :index to select among multiple images. Set count
7441 property when multiple images exist.
7442 (gif_format): Use :index, not :image.
7443
74442008-08-23 Chong Yidong <cyd@stupidchicken.com>
7445
7446 * xdisp.c (try_scrolling): Check INT_MAX instead of
7447 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7448 to obtain INT_MAX.
7449
74502008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7451
7452 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7453
74542008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7455
7456 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7457 GNUstep library location.
7458
74592008-08-21 Chong Yidong <cyd@stupidchicken.com>
7460
7461 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7462 before using it.
7463
7464 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7465
74662008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7467
7468 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7469 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7470 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7471 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7472 (EmacsApp-cursor_blink_handler): Remove declaration.
7473 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7474 match 01 Feb 2008 changes in xterm.c.
7475 (ns_read_socket): Add cast to avoid warning.
7476 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7477 GNUstep.
7478
74792008-08-20 Chong Yidong <cyd@stupidchicken.com>
7480
7481 * xselect.c (x_get_foreign_selection): Return nil if desired
7482 selection could not be obtained, instead of signalling an error.
7483
74842008-08-20 David Reitter <david.reitter@gmail.com>
7485
7486 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7487 * nsterm.m: Remove ns-specific code for cursor blinking.
7488 (ns_draw_window_cursor): Clear cursor properly rather than
7489 redrawing the area. Respect width of bar cursors.
7490 These changes enable the use of generic blink-cursor-mode and
7491 generic cursor types in NS and support smooth cursor movements (do
7492 not blink off after command).
7493 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7494 Nextstep, too.
7495
74962008-08-19 Kenichi Handa <handa@m17n.org>
7497
7498 * font.c (Vfont_log_deferred): New variable.
7499 (font_add_log): Check Vfont_log_deferred.
7500 (font_deferred_log): New function.
7501
7502 * font.h (font_deferred_log): Extern it.
7503
7504 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7505 for sorting.
7506 (face_for_char): Use deferred log.
7507
75082008-08-18 Kenichi Handa <handa@m17n.org>
7509
7510 * fontset.c (face_for_char): Add font log.
7511
7512 * font.c (font_add_log): Add the font properties :script, :lang,
7513 and :otf in the log.
7514
75152008-08-17 Chong Yidong <cyd@stupidchicken.com>
7516
7517 * xdisp.c: Remove dead code.
7518 (handle_invisible_prop, next_overlay_string): Defer call to
7519 setup_for_ellipsis.
7520 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7521
75222008-08-15 Chong Yidong <cyd@stupidchicken.com>
7523
7524 * xfaces.c (lookup_derived_face): Properly handle possible zero
7525 return value of get_lface_attributes.
7526 (merge_faces): Don't tell lookup_derived_face to signal an error
7527 if face is not found.
7528
7529 * dired.c (Fdirectory_files): Doc fix.
7530
7531 * process.c (make_process): Initialize kill_without_query struct
7532 member.
7533
75342008-08-15 Eli Zaretskii <eliz@gnu.org>
7535
7536 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7537 Alternative calculation of totphys for Visual Studio 6.
7538
7539 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7540
7541 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7542 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7543 All users changed.
7544 (stat): Only root directory passed to GetDriveType. Allow RAM
7545 disk as well as local fixed disk when w32-get-true-file-attributes
7546 is set to `local'.
7547 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7548 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7549 (w32_cached_id, w32_add_to_cache): New functions.
7550 (get_name_and_id): Look account names in the cache before calling
7551 lookup_account_sid.
7552 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7553 New initialization flags.
7554 (globals_of_w32): Initialize them to zero.
7555 (w32_system_process_attributes): Use w32_cached_id and
7556 w32_add_to_cache.
7557
75582008-08-14 Lawrence Mitchell <wence@gmx.li>
7559
7560 * lread.c (Fread_char, Fread_char_exclusive): If no character
7561 event is read before timeout is reached, return nil, rather than
7562 converting to a number.
7563
75642008-08-14 Chong Yidong <cyd@stupidchicken.com>
7565
7566 * fns.c (use_dialog_box): Doc fix.
7567
7568 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7569 on OS X.
7570
75712008-08-13 Chong Yidong <cyd@stupidchicken.com>
7572
7573 * frame.c (Qns_parse_geometry): New var.
7574 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7575
75762008-08-11 Chong Yidong <cyd@stupidchicken.com>
7577
7578 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7579 space character in calculating tabs.
7580
75812008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7582
7583 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7584
75852008-08-10 Glenn Morris <rgm@gnu.org>
7586
7587 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7588 silence gcc "limited range of data type" warnings in some
7589 make_fixnum_or_float calls.
7590
75912008-08-09 Eli Zaretskii <eliz@gnu.org>
7592
7593 * w32.c (w32_system_process_attributes): If the process does not
7594 exist, return nil.
7595
7596 * w32.c: Include thelp32.h, psapi.h and coding.h.
7597 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7598 declarations.
7599 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7600 (Process32Next_Proc): New typedefs.
7601 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7602 (g_b_init_process32_next, g_b_init_open_thread_token)
7603 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7604 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7605 (g_b_init_get_process_working_set_size)
7606 (g_b_init_global_memory_status_ex): New static variables.
7607 (globals_of_w32): Initialize them.
7608 (create_toolhelp32_snapshot, process32_first, process32_next)
7609 (open_thread_token, impersonate_self, revert_to_self)
7610 (get_process_memory_info, get_process_working_set_size)
7611 (global_memory_status, global_memory_status_ex): New wrapper
7612 functions.
7613 (w32_list_system_processes, w32_system_process_attributes)
7614 (enable_privilege, restore_privilege, ltime, process_times):
7615 New functions.
7616 (convert_time_raw): New function.
7617 (convert_time): Remove conversion of FILETIME into time in 100
7618 nsec units, call convert_time_raw instead.
7619
7620 * process.h (w32_list_system_processes, w32_system_process_attributes):
7621 Add prototypes.
7622 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7623 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7624 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7625 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7626
7627 * process.c (Fsystem_process_attributes): Doc fix.
7628
76292008-08-08 Chong Yidong <cyd@stupidchicken.com>
7630
7631 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7632 a continued multi-char glyph; if so, advance to the actual glyph.
7633
76342008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7635
7636 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7637
7638 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7639 (.m.o): Use it.
7640 * config.in: Regenerate.
7641
76422008-08-07 Chong Yidong <cyd@stupidchicken.com>
7643
7644 * xdisp.c (redisplay_window): Revert last change.
7645 (try_window): Check bottom scroll margin too.
7646
76472008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7648
7649 * config.in: Regenerate.
7650
7651 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7652 -list-load-path-shadows'.
7653 (nsgui.h): Reduce number of things depending on it.
7654
76552008-08-06 Chong Yidong <cyd@stupidchicken.com>
7656
7657 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7658 instead of window-end which does the wrong thing at eob.
7659 (try_cursor_movement): Minor optimization.
7660 (redisplay_window): If scroll margin is defined, don't assume
7661 window doesn't need scrolling.
7662
76632008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7664
7665 * config.in: Regenerate.
7666
7667 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7668 (mostlyclean): Don't delete *.d under NS.
7669
7670 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7671
76722008-08-06 Kenichi Handa <handa@m17n.org>
7673
7674 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7675
76762008-08-06 Andreas Schwab <schwab@suse.de>
7677
7678 * config.in: Regenerate.
7679
76802008-08-05 Chong Yidong <cyd@stupidchicken.com>
7681
7682 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7683 forcing a window start.
7684
7685 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7686 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7687
76882008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7689
7690 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7691 argument.
7692
76932008-08-05 Juanma Barranquero <lekktu@gmail.com>
7694
7695 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7696 <scroll-down-aggressively, before-change-functions>:
7697 <after-change-functions>: Reflow docstrings.
7698
76992008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7700 Ken Raeburn <raeburn@gnu.org>
7701
7702 Dock menu customization, based on a patch by Ken Raeburn, plus some
7703 other fixes.
7704 * nsmenu.m (dockMenu): New variable.
7705 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7706
7707 * nsterm.h (dockMenu): Declare.
7708
7709 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7710 (ns_term_init): Initialize dockMenu.
7711 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7712 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7713 left.
7714
7715 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7716
77172008-08-04 Chong Yidong <cyd@stupidchicken.com>
7718
7719 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7720
7721 * config.in: Regenerate.
7722
77232008-08-04 Seiji Zenitani <zenitani@mac.com>
7724
7725 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7726
77272008-08-04 Chong Yidong <cyd@stupidchicken.com>
7728
7729 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7730
77312008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7732
7733 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7734
7735 * keyboard.h: Comment an #endif.
7736
7737 * lisp.h (have_menus_p): Adjust comment.
7738
7739 * menu.c (find_and_return_menu_selection): Fix comparison with
7740 client_data.
7741
7742 * nsmenu.m (popup_activated_flag): New variable.
7743 (popup_activated): New function.
7744 (menu-or-popup-active-p): New exported lisp definition.
7745 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7746 when popup done.
7747 (ns_popup_dialog): Set popup_activated_flag.
7748
7749 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7750 version for GNUstep (handled by conditional typedef in nsterm.m).
7751 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7752 in rgb.txt).
7753
7754 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7755
7756 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7757
7758 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7759
7760 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7761 shortcircuit if popup_activated like GTK and X toolkit.
7762
7763 * m/inter386.h: Change DARWIN to DARWIN_OS.
7764
7765 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7766 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7767 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7768 comment on NO_SOCK_SIGIO.
7769
77702008-08-03 Chong Yidong <cyd@stupidchicken.com>
7771
7772 * nsterm.m (windowDidResize): Remove stopModal call.
7773
77742008-08-03 Andreas Schwab <schwab@suse.de>
7775
7776 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7777 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7778
77792008-08-02 Chong Yidong <cyd@stupidchicken.com>
7780
7781 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7782 Don't use uninitialized pointer variable when using getrlimit.
7783
77842008-08-02 Jason Rumney <jasonr@gnu.org>
7785
7786 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7787
77882008-08-02 Eli Zaretskii <eliz@gnu.org>
7789
7790 * alloc.c (NSTATICS): Bump to 0x640.
7791
7792 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7793
7794 * lisp.h: Add prototype for directory_files_internal.
7795
7796 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7797 New functions.
7798 (syms_of_process): Defsubr them. Add initializations for various
7799 Q* symbols used in procfs_system_process_attributes.
7800 (procfs_list_system_processes, procfs_system_process_attributes)
7801 [HAVE_PROCFS]: New functions.
7802 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7803 (procfs_get_total_memory): New functions.
7804
78052008-08-01 Juanma Barranquero <lekktu@gmail.com>
7806
7807 * xfaces.c (Fx_load_color_file): Fix previous change;
7808 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7809
78102008-08-01 Michael Albinus <michael.albinus@gmx.de>
7811
7812 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7813
78142008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7815
7816 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7817
78182008-08-01 Chong Yidong <cyd@stupidchicken.com>
7819
7820 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7821
7822 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7823 define NSApplicationDelegateReplySuccess.
7824 (EmacsView -converstationIdentifier): Use long instead of
7825 NSInteger for GNUstep, since it doesn't have NSInteger.
7826
7827 * xmenu.c: Revert last change.
7828
7829 * keyboard.h: Fix last change.
7830
78312008-08-01 Juanma Barranquero <lekktu@gmail.com>
7832
7833 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7834 on Windows.
7835
78362008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7837
7838 Warning clearing and clean-up in NS port.
7839 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7840 Add prototypes.
7841 * nsgui.h (FACE_DEFAULT): Remove, unused.
7842 (XGCValues): Change colors to unsigned long.
7843 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7844 nsterm.m.
7845 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7846 (ns_list_fonts): Remove, unused.
7847 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7848 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7849 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7850 (nsfont_draw): Compare face colors to 0, not nil.
7851 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7852 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7853 (-addSubmenuWithTitle:): Use NSMenuItem class.
7854 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7855 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7856 (ns_clip_to_row): Make gc arg a BOOL.
7857 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7858 ns_clip_to_row() call.
7859 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7860 used). Cast FRAME_FONT assignments.
7861 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7862 (ns_string_to_lispmod): Change arg to const char.
7863 (ns_term_init): Use NSMenuItem class.
7864 (EmacsApp -openFile:): Move to different section of file.
7865 (EmacsApp -application:openFiles:): Don't return a value, call
7866 -replyToOpenOrPrint:.
7867 (EmacsView -keyDown:): Fix up cast.
7868 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7869 (EmacsView -menuDown:): Cast tag in call to
7870 find_and_call_menu_selection().
7871 (ns_list_fonts): Remove, unused.
7872 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7873 (ns_fontname_to_xlfd): Make static.
7874 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7875 Remove prototypes (now in keyboard.h).
7876 (next_menubar_widget_id): Remove, unused.
7877 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7878 Remove prototypes (now in keyboard.h).
7879 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7880
78812008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7882
7883 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7884 (floatfns.o): Depend on syssignal.h.
7885 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7886
7887 * systty.h: Fix previous change that removed BSD_TERMIOS.
7888 Add comments to #ifdefs.
7889
78902008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7891
7892 * w32fns.c (w32-load-color-file): Remove.
7893 (x-open-connection): Use renamed Fx_load_color_file.
7894 * xfaces.c (x-load-color-file): Add.
7895 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7896 Emacs.clr.
7897 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7898
78992008-07-31 Michael Albinus <michael.albinus@gmx.de>
7900
7901 * dbusbind.c (Fdbus_call_method_asynchronously)
7902 (Fdbus_method_error_internal): New defuns.
7903 (xd_read_message): Handle also reply messages.
7904 (Vdbus_registered_functions_table): Extend docstring.
7905
79062008-07-31 Juanma Barranquero <lekktu@gmail.com>
7907
7908 * keyboard.c (gobble_input): Fix previous change.
7909
79102008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7911
7912 * bitmaps/README:
7913 * xfns.c:
7914 * termcap.c:
7915 * term.c:
7916 * syswait.h:
7917 * systty.h:
7918 * systime.h:
7919 * syssignal.h:
7920 * sysdep.c:
7921 * process.h:
7922 * process.c:
7923 * print.c:
7924 * ndir.h:
7925 * lread.c:
7926 * keyboard.c:
7927 * getpagesize.h:
7928 * floatfns.c:
7929 * fileio.c:
7930 * emacs.c:
7931 * doc.c:
7932 * dispnew.c:
7933 * dired.c:
7934 * data.c:
7935 * callproc.c:
7936 * buffer.c:
7937 * README:
7938 * Makefile.in:
7939 * s/template.h:
7940 * s/msdos.h:
7941 * m/vax.h: Remove VMS support.
7942 * s/vms.h:
7943 * vlimit.h:
7944 * uaf.h:
7945 * temacs.opt:
7946 * param.h:
7947 * ioctl.h: Remove file.
7948
79492008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7950
7951 * s/ms-w32.h (MULTI_KBOARD): Remove.
7952 * xterm.c:
7953 * xselect.c:
7954 * xfns.c:
7955 * window.c:
7956 * w32term.c:
7957 * w32fns.c:
7958 * terminal.c:
7959 * termhooks.h:
7960 * term.c:
7961 * sysdep.c:
7962 * keyboard.h:
7963 * keyboard.c:
7964 * frame.h:
7965 * frame.c:
7966 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7967 * config.in: Regenerate.
7968
79692008-07-30 Jason Rumney <jasonr@gnu.org>
7970
7971 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7972
7973 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7974 (w32font_open_internal): Get unicode version of textmetrics.
7975 Don't enable or disable glyph indices here.
7976 (w32font_open): Disable use of glyph indices.
7977
7978 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7979
79802008-07-30 Chong Yidong <cyd@stupidchicken.com>
7981
7982 * minibuf.c (Vread_buffer_function): Doc fix.
7983
79842008-07-30 John Paul Wallington <jpw@pobox.com>
7985
7986 * minibuf.c (read_buffer_completion_ignore_case): New var.
7987 (Fread_buffer): Use it.
7988
79892008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7990
7991 * systty.h (sensemode): Remove empty #if. Remove reference to
7992 BSD_TERMIOS, unused.
7993
7994 * sysdep.c: Remove reference to DGUX.
7995 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7996
7997 * config.in: Regenerate.
7998
79992008-07-30 Jason Rumney <jasonr@gnu.org>
8000
8001 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8002
80032008-07-29 Jason Rumney <jasonr@gnu.org>
8004
8005 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8006 is populated.
8007 (uniscribe_encode_char): Always use uniscribe.
8008 Avoid using context if cache is populated.
8009
80102008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8011
8012 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8013 open menu.
8014
8015 * gtkutil.c (menu_nav_ended): Remove.
8016 (create_menus): Remove signal connect for menu_nav_ended.
8017
80182008-07-28 Chong Yidong <cyd@stupidchicken.com>
8019
8020 * xdisp.c (redisplay_window): Check return value of
8021 compute_window_start_on_continuation_line before forcing a window
8022 start.
8023
80242008-07-28 Jason Rumney <jasonr@gnu.org>
8025
8026 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8027
8028 * w32term.c (w32_enable_unicode_output, cleartype_active):
8029 Remove obsolete display options.
8030 (x_draw_glyph_string_background): Don't use old cleartype_active
8031 workaround.
8032 (w32_initialize): Remove cleartype_active initialization.
8033 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8034
80352008-07-28 Andreas Schwab <schwab@suse.de>
8036
8037 * lisp.h (init_weak_hash_tables, syms_of_font)
8038 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8039 (remove_hash_entry): Don't declare.
8040 * eval.c (maybe_call_debugger): Make static and move before use.
8041 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8042 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8043 * xterm.h (x_set_frame_alpha): Declare.
8044
80452008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8046
8047 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8048 (create_menus): Connect selection-done to menu_nav_ended.
8049
80502008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8051
8052 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8053 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8054 parameter with read of 'alpha' one.
8055 (Qns_frame_parameter): Remove.
5582fbc7 8056 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8057 (next-selection-coding-system, Vselection_coding_system)
8058 (Vnext_selection_coding_system): Drop.
8059
80602008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8061
8062 * nsfns.m (do-applescript, do_applescript): Rename to
8063 ns-do-applescript, ns_do_applescript, and move within file.
8064
80652008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8066
8067 Remove support for Mac Carbon.
8068 * mactoolbox.c:
8069 * macterm.h:
8070 * macterm.c:
8071 * macselect.c:
8072 * macmenu.c:
8073 * macgui.h:
8074 * macfns.c:
8075 * mac.c: Remove file.
8076 * s/darwin.h:
8077 * m/intel386.h:
8078 * xfaces.c:
8079 * xdisp.c:
8080 * window.c:
8081 * tparam.c:
8082 * termhooks.h:
8083 * termcap.c:
8084 * term.c:
8085 * syssignal.h:
8086 * sysselect.h:
8087 * sysdep.c:
8088 * process.c:
8089 * lread.c:
8090 * lisp.h:
8091 * keyboard.c:
8092 * image.c:
8093 * fringe.c:
8094 * frame.h:
8095 * frame.c:
8096 * fontset.c:
8097 * font.h:
8098 * font.c:
8099 * fns.c:
8100 * fileio.c:
8101 * emacs.c:
8102 * dispnew.c:
8103 * dispextern.h:
8104 * config.in:
8105 * atimer.c:
2ae37cf0 8106 * Makefile.in: Remove code for Carbon.
aac0c6e3 8107
f0131492 81082008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8109
8110 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8111
81122008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8113
8114 * macterm.h (kCGBitmapByteOrder32Host): New define for
8115 non-universal SDKs.
8116
8117 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8118 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8119
8120 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8121 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8122
81232008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8124
8125 * w32inevt.c: Include dispextern.h.
8126
81272008-07-26 Andreas Schwab <schwab@suse.de>
8128
8129 * print.c (print_object): Fix off-by-one in last change.
8130
81312008-07-25 Juanma Barranquero <lekktu@gmail.com>
8132
8133 * term.c (syms_of_term): Don't initialize default_orig_pair,
8134 default_set_foreground and default_set_background on Windows.
8135
81362008-07-25 Jason Rumney <jasonr@gnu.org>
8137
8138 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8139 ScriptItemize. Clean up return value checking. Remove unused
8140 variables.
8141 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8142 shaping engine.
8143
8144 * w32font.c (w32font_has_char): Handle the case where we can't
8145 determine the script for a character.
8146
81472008-07-25 Chong Yidong <cyd@stupidchicken.com>
8148
8149 * term.c (syms_of_term): Initialize default_orig_pair,
8150 default_set_foreground, and default_set_background.
8151
8152 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8153 clash (bug#86).
8154 (getloadavg): Callers changed.
8155
8156 * image.c (svg_load_image): Fix last change.
8157 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8158 image size is valid. Use g_object_unref instead of deprecated
8159 rsvg_handle_free to free rsvg handle.
8160 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8161
81622008-07-25 Jason Rumney <jasonr@gnu.org>
8163
8164 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8165 surrogates before looking up glyph index.
8166 (w32font_text_extents): Encode as surrogates if falling back to
8167 functions that need UTF-16 wide chars.
8168
8169 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8170 BMP as surrogates before looking up glyph index.
8171
81722008-07-25 Chong Yidong <cyd@stupidchicken.com>
8173
8174 * image.c (svg_load_image): Check for failure in return value of
8175 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8176
81772008-07-25 Jason Rumney <jasonr@gnu.org>
8178
8179 * w32font.c (Fx_select_font): Reverse sense of second arg.
8180
81812008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8182
8183 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8184 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8185
8186 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8187 (PURESIZE): Use it.
8188
81892008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8190
8191 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8192 * m/alpha.h (TEXT_END):
8193 * m/ibmrs6000.h (TEXT_END):
8194 * m/macppc.h (TEXT_END):
8195 * s/darwin.h (TEXT_END):
8196 * s/msdos.h (TEXT_END): Remove, unused.
8197 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8198 * s/cygwin.h: Remove comment.
8199
8200 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8201 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8202 * m/intel386.h (DOT_GLOBAL_START):
8203 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8204 (USG): Remove, file not used on USG platforms.
8205
8206 * Makefile.in (HAVE_X11): Remove empty #else.
8207
82082008-07-24 Andreas Schwab <schwab@suse.de>
8209
8210 * fileio.c (Finsert_file_contents): Properly adjust undo list
8211 after format conversion.
8212
82132008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8214
8215 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8216 (menu_nav_ended): Remove.
8217 (create_menus): Remove signal connect for menu_nav_ended.
8218 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8219 create_menus.
8220 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8221
82222008-07-23 Jason Rumney <jasonr@gnu.org>
8223
8224 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8225 with opened font.
8226 (w32font_open): Set font type to gdi.
8227
8228 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8229
82302008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8231
8232 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8233 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8234 defines it.
8235 * unexec.c (ADDR_CORRECT): Define unconditionally.
8236
8237 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8238
8239 * unexec.c: Remove code depending on !COFF and USG, the file is
8240 not used for such systems.
8241
8242 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8243 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8244 (LD_SWITCH_SYSTEM_1): Remove, update users.
8245
8246 * s/darwin.h (DATA_END):
8247 * m/intel386.h (DATA_END):
8248 * m/ibmrs6000.h (DATA_END):
8249 * m/alpha.h (DATA_END): Remove, unused.
8250
8251 * config.in: Regenerate.
8252 * s/ms-w32.h (subprocesses): Define unconditionally.
8253 * s/template.h (subprocesses): Update comment.
8254 * s/vms.h (subprocesses):
8255 * s/usg5-4.h (subprocesses):
8256 * s/hpux10-20.h (subprocesses):
8257 * s/gnu-linux.h (subprocesses):
8258 * s/cygwin.h (subprocesses):
8259 * s/bsd-common.h (subprocesses):
8260 * s/aix4-2.h (subprocesses):
8261 * s/darwin.h (subprocesses): Do not define, defined by default now.
8262
8263 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8264 Remove all references.
8265 (temacs): Add GNUstep specific ld flags.
8266
8267 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8268 similarly to what X does.
8269
82702008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8271
8272 * nsfns.m (x-list-fonts): Remove.
8273 (syms_of_nsfns): Drop the x-list-fonts declaration.
8274 * nsterm.m: Get rid of remaining "//" comments.
8275
82762008-07-22 Chong Yidong <cyd@stupidchicken.com>
8277
8278 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8279
8280 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8281 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8282 (Fns_own_selection_internal, Fx_disown_selection_internal)
8283 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8284
8285 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8286 ... */' style of docstrings. Doc fixes.
8287
82882008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8289
8290 * terminfo.c (UP, BC, PC): Undo previous change.
8291
8292 * nsfns.m: Rename ns prefixed functions/variables to the
8293 corresponding x versions. Update references.
8294
82952008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8296
8297 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8298
82992008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8300
8301 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8302 Remove forwarding functions.
8303 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8304 non-static.
8305 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8306 non-static.
8307 (ns_frame_parm_handlers): Use the new names.
8308 (syms_of_nsfns): Move to the end of file.
8309
8310 * nsterm.m (syms_of_nsterm): Move to the end of file.
8311
8312 * dispnew.c (init_display): Remove code for X10.
8313
83142008-07-22 Jason Rumney <jasonr@gnu.org>
8315
8316 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8317 bare drive.
8318
83192008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8320
8321 * nsterm.m (syms_of_nsterm): Remove debugging println.
8322
83232008-07-22 David Reitter <david.reitter@gmail.com>
8324
8325 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8326 Carbon implementation of the same functionality: execute arbitrary
8327 AppleScript code.
8328
83292008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8330
8331 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8332 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8333 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8334 (Fx_display_mm_height, Fx_display_mm_width)
8335 (Fx_display_backing_store, Fx_display_visual_class)
8336 (Fx_display_save_under, Fx_open_connection)
8337 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8338 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8339 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8340 (Fx_display_pixel_width, Fx_display_pixel_height)
8341 (Fx_display_usable_bounds, Fx_display_planes)
8342 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8343 ... */' style of docstrings.
8344
83452008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8346
8347 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8348 on this platform.
8349 (mips):
8350 * m/iris4d.h (mips): Do not define.
8351 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8352
8353 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8354
8355 * image.c:
8356 * nsfns.m:
8357 * nsselect.m:
8358 * nsterm.h:
8359 * nsterm.m: Rename ns prefixed functions/variables to the
8360 corresponding x versions. Update references.
8361
8362 * m/ibms390x.h (NO_REMAP): Do not undefine.
8363
8364 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8365
83662008-07-21 Chong Yidong <cyd@stupidchicken.com>
8367
8368 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8369 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8370 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8371 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8372 (Fns_display_mm_height, Fns_display_mm_width)
8373 (Fns_display_backing_store, Fns_display_visual_class)
8374 (Fns_display_save_under, Fns_open_connection)
8375 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8376 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8377 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8378 (Fns_display_pixel_width, Fns_display_pixel_height)
8379 (Fns_display_usable_bounds, Fx_display_planes)
8380 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8381
83822008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8383
8384 * print.c (print_object): Check print_depth before searching for
8385 circularities.
8386
83872008-07-21 Michael Albinus <michael.albinus@gmx.de>
8388
8389 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8390 only sprintf.
8391
83922008-07-21 Kenichi Handa <handa@m17n.org>
8393
8394 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8395
83962008-07-20 Andreas Schwab <schwab@suse.de>
8397
8398 * syntax.c (find_start_pos, find_start_value)
8399 (find_start_value_byte, find_start_begv, find_defun_start)
8400 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8401
84022008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8403
8404 * s/sol2-3.h: Insert contents of s/sol2.h.
8405 (LD_SWITCH_SYSTEM): Remove redundant definition.
8406 * s/sol2.h: Remove, unused.
8407
84082008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8409
8410 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8411
84122008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8413
8414 * Makefile.in (ns_appdir): Fix typo in find command.
8415
84162008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8417
8418 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8419
8420 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8421 added not supported anymore.
8422
8423 * s/usg5-4-2.h (LIBS_SYSTEM):
8424 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8425
8426 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8427 * s/lynxos.h (GETPGRP_NO_ARG):
8428 * s/hpux10-20.h (NO_SIOCTL_H):
8429 * s/gnu.h (GETPGRP_NO_ARG):
8430 * s/gnu-linux.h (NO_SIOCTL_H):
8431 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8432 * s/cygwin.h (GETPGRP_NO_ARG):
8433 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8434 (C_DEBUG_SWITCH): Remove duplicate definition.
8435
8436 * m/ibms390.h: Remove boilerplate comments.
8437
8438 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8439
8440 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8441 (wait_reading_process_output): Remove code for SunOS, platform not
8442 supported anymore. Use SOLARIS2 instead of sun.
8443
84442008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8445
8446 * font.c (font_open_by_name): Under NS, default lface height to zero.
8447 (font_open_for_lface): Under NS, set size based on frame fontsize.
8448 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8449 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8450
84512008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8452
8453 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8454 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8455 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8456 YES/NO.
8457 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8458 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8459 * Makefile.in (clean): Clear out build destination dir.
8460
84612008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8462
8463 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8464 xterm, xselect.
8465 * lisp.h: Remove declaration of hash_remove.
8466 * nsgui.h: Remove redefinitions of hash_remove.
8467 * fns.c (hash_remove): Rename to hash_remove_from_table.
8468
84692008-07-19 Seiji Zenitani <zenitani@mac.com>
8470
8471 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8472 strdup() the family UTF8String before modifying it.
8473
84742008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8475
8476 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8477 NS_FACE_BACKGROUND with 0 instead of nil.
8478 * nsfont.m (nsfont_draw): Same.
8479
84802008-07-19 Chong Yidong <cyd@stupidchicken.com>
8481
8482 * nsfns.m (ns_set_background_color): Fix crash.
8483
84842008-07-18 Chong Yidong <cyd@stupidchicken.com>
8485
8486 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8487
84882008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8489
8490 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8491
84922008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8493
8494 * gtkutil.c: Include <config.h> instead of "config.h".
8495
8496 * lisp.h (Foverlay_buffer): Add EXFUN.
8497
8498 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8499 child process to complete child_setup. Undo 2005-09-21 change.
8500
8501 * s/darwin.h: Mention setsid after vfork.
8502
85032008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8504
8505 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8506 Depend on macgui.h.
8507
8508 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8509 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8510
8511 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8512 and f19.
8513 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8514
8515 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8516 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8517 Remove enumerators.
8518
8519 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8520 Check if FACE_FROM_ID returns NULL.
8521
85222008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8523
8524 * w32inevt.c (change_frame_size): Remove extern declaration.
8525 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8526 change_frame_size.
8527
85282008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8529
8530 * getloadavg.c: Revert last change (2008-07-15).
8531
85322008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8533
8534 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8535 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8536 from configure.
8537
85382008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8539
8540 * s/sol2.h:
8541 * s/sol2-4.h: Reorganize conditionals.
8542
8543 * ecrt0.c: Remove code depending on m68000, not used anymore.
8544
8545 * fns.c (hash_remove): Make static.
8546 * lisp.h (hash_remove): Don't prototype.
8547
8548 * m/ibmrs6000.h:
8549 * m/ibms390x.h:
8550 * m/macppc.h: Remove boilerplate comments.
8551
8552 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8553 Solaris, which does not need them.
8554
8555 * m/vax.h: Remove comments about unsupported systems.
8556
8557 * s/darwin.h: Reorganize ifdefs.
8558
85592008-07-17 Andreas Schwab <schwab@suse.de>
8560
8561 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8562
85632008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8564
8565 Use SDATA. Follow coding convention of placing operators at
8566 beginning of next line rather than end of previous line, and placing
8567 spaces around infix operators.
8568
8569 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8570 in case it was defined already.
8571 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8572 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8573 ns_default.
8574 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8575 Lisp_Objects.
8576 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8577 (ns_defined_color, ns_color_to_lisp): Declare.
8578 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8579 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8580 it's accepted even with USE_LISP_UNION_TYPE.
8581 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8582 (update_frame_tool_bar): Remove apparently obsolete tests for
8583 non-integerness of f->tool_bar_lines.
8584 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8585 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8586 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8587 (nsfont_open): Don't confuse NULL for Qnil.
8588 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8589 * menu.h (find_and_call_menu_selection):
8590 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8591 (find_and_return_menu_selection): Always return something.
8592 * frame.h: Include dispextern.h for Display_Info.
8593 (display_x_get_resource): Declare.
8594
85952008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8596
8597 * syntax.c: Remove stdio.h include accidentally introduced in
8598 Emacs.app commit.
8599 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8600 NS_IMPL_COCOA.
8601 * keyboard.c (handle_async_input, input_available_signal): Remove
8602 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8603
86042008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8605
8606 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8607 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8608 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8609 Use SDATA.
8610
8611 * keymap.c: Remove all NS-specific code.
8612 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8613 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8614 where_is_preferred_modifier, return a different value depending on how
8615 preferred is the binding.
8616 (where_is_internal): Adjust accordingly.
8617 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8618 Adjust to new preferred_sequence_p.
8619 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8620 * keyboard.c (parse_solitary_modifier): Not static any more.
8621 * keyboard.h (parse_solitary_modifier): Declare.
8622
86232008-07-16 Andreas Schwab <schwab@suse.de>
8624
8625 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8626 of easymenu.
8627
86282008-07-16 Chong Yidong <cyd@stupidchicken.com>
8629
8630 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8631 that we don't move off the line.
8632
86332008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8634
8635 * keyboard.c (Qsuper): Remove.
8636 (parse_menu_item): Don't call where_is_internal specially for NS.
8637
86382008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8639
8640 * s/gnu-linux.h: Remove boilerplate comments.
8641
8642 * m/alpha.h (__ELF__): Consolidate conditions.
8643
8644 * m/m68k.h (linux): Use GNU_LINUX instead.
8645 Remove boilerplate comments.
8646
8647 * m/intel386.h: Undo refactoring from previous change.
8648 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8649 too, remove dead code.
8650 (linux): Use GNU_LINUX instead.
8651
86522008-07-16 Jason Rumney <jasonr@gnu.org>
8653
8654 * w32gui.h: Repeat 26 June changes lost by last change.
8655
86562008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8657
8658 * systty.h: Remove code for Aix on 386, unsupported platform.
8659
8660 * s/ms-w32.h: Remove boilerplate comments.
8661 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8662
8663 * s/gnu-linux.h (TERM): Remove support.
8664 (HAVE_SYSVIPC): Remove, unused.
8665 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8666 for this system.
8667
8668 * process.c: Remove support for IRIS, unused.
8669 Remove support for TERM, not relevant anymore.
8670
8671 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8672 used with the definition.
8673
8674 * s/aix4-2.h (static): Do not undef.
8675
8676 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8677 only used on Aix.
8678 (HAVE_SYSVIPC): Remove, unused.
8679
8680 * m/hp800.h (CANNOT_DUMP): Do not undef.
8681
8682 * m/alpha.h: Fix comment.
8683
8684 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8685 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8686 used by this configuration.
8687 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8688 * unexec.c: Remove code depending on HPUX and
8689 USG_SHARED_LIBRARIES, not used with this file. Remove code
8690 depending on IRIS, unused. Remove if 0-ed code.
8691
8692 * s/template.h: Remove comments about static.
8693
8694 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8695 Remove if 0-ed code.
8696 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8697 were the same as the default.
8698 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8699 Remove boilerplate comments.
8700 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8701 (HAVE_SYSVIPC): Remove, unused.
8702 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8703
8704 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8705 Remove boilerplate comments.
8706 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8707 Remove boilerplate comments.
8708 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8709 Remove boilerplate comments.
8710 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8711
8712 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8713 USG systems which do not use DATA_SEG_BITS.
8714 Refactor code. Remove boilerplate comments.
8715
8716 * m/ibms390.h:
8717 * m/m68k.h:
8718 * s/bsd-common.h:
8719 * s/cygwin.h:
8720 * s/darwin.h:
8721 * s/freebsd.h:
8722 * s/gnu.h:
8723 * s/msdos.h: Remove boilerplate comments.
8724
8725 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8726 do not use this file.
aac0c6e3
MR
8727 (IRIS_4D): Remove, unused.
8728
8729 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8730 do not use this file.
aac0c6e3
MR
8731 (SIGN_EXTEND_CHAR):
8732 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8733 * unexmips.c: Remove file, unused.
8734
8735 * editfns.c (Fuser_full_name): Replace the only use of
8736 USER_FULL_NAME with its value.
8737 * config.in: Regenerate.
8738
87392008-07-16 David Reitter <david.reitter@gmail.com>
8740
8741 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8742 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8743
87442008-07-16 Glenn Morris <rgm@gnu.org>
8745
8746 * emacs.c (system-type): Doc fix.
8747
87482008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8749
8750 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8751 If the cache doesn't work, let's fix it, rather than work around it.
8752
87532008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8754
8755 * Makefile.in: Correct additions for nsfont.o in last commit.
8756 * nsfont.m: New file (forgot last commit).
8757
87582008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8759
8760 * callproc.c (set_initial_environment): Initialize
8761 Vprocess_environment under CANNOT_DUMP (fixes crash when
8762 batch-compiling for bootstrap).
8763
87642008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8765 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8766
8767 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8768 fix crash due to different init order.
8769
87702008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8771
8772 Changes and additions for NeXTstep windowing system (Cocoa and
8773 GNUstep) support.
8774
8775 * Makefile.in:
8776 * config.in: Support defines and build commands for NS port.
8777 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8778 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8779 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8780 windowing.
8781 (struct face): Add synth_ital field.
8782 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8783 (init_display): Initialize Vinitial_window_system to "ns" when so
8784 compiled.
8785 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8786 (display_arg): Use under NS.
8787 (main): Under NS, allocate autorelease pool and handle command line
8788 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8789 (standard_args): Add NS-specific args.
8790 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8791 * font.c (DEFAULT_ENCODING): New variable.
8792 (font_find_for_lface): Use it.
8793 (syms_of_font): Load syms_of_nsfont under NS.
8794 * font.h: Declare nsfont_driver when compiled under NS.
8795 * fontset.c: When compiling under NS, include nsterm.h.
8796 (fontset_from_font): Autoconstruct fontset under NS.
8797 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8798 symbol, document and use it.
8799 (do_switch_frame): When for_deletion under Cocoa, add
8800 Fraise_frame(Qnil).
8801 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8802 (x_get_arg): Allow "yes" and "no" as boolean values.
8803 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8804 Qright under Cocoa.
8805 (focus-follows-mouse): Default to 0 under NS.
8806 * frame.h (enum output_method): Add output_ns.
8807 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8808 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8809 (FRAME_WINDOW_P): NS-specific definition.
8810 * fringe.c (max_used_fringe_bitmap): Make public.
8811 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8812 (getloadavg): Use NeXT code under descendant OS's.
8813 * image.c (includes and header section, x_create_bitmap_from_data)
8814 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8815 (image_background_transparent, x_clear_image_1)
8816 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8817 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8818 (x_to_xcolors, x_from_xcolors, x_disable_image)
8819 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8820 other GUIs, including XPM support using code originally written for
8821 Carbon GUI.
8822 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8823 using NS API.
8824 (image_ascent): Use font metrics macros instead of direct struct field
8825 access.
8826 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8827 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8828 Also, handle NS as GTK for menu bar purposes.
8829 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8830 toolkit where they differ.
8831 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8832 use cachelist, still needed under NS.
8833 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8834 (struct widget_value): Define it here for menu.c.
8835 * keymap.c (includes): Include modifier internals.
8836 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8837 NS.
8838 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8839 support for preferring sequences using certain modifiers, specified by
8840 the FIRSTONLY argument.
8841 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8842 under NS GNUstep implementation.
8843 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8844 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8845 * menu.c: Include nsterm.h under NS.
8846 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8847 (free_menubar_widget_tree_value, update_submenu_strings)
8848 (find_and_call_menu_selection): Treat NS as X and NT.
8849 (find_and_return_menu_selection): New function, used for popup menus.
8850 * nsgui.h:
8851 * nsterm.h:
8852 * nsfns.m:
8853 * nsimage.m:
8854 * nsmenu.m:
8855 * nsselect.m:
8856 * nsterm.m: New files.
8857 * process.c (wait_reading_process_output): Under NS, call ns_select()
8858 instead of plain select().
8859 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8860 beginning of buffer.
8861 * sysselect.h (init_process): Rename when compiling under Cocoa to
8862 avoid name conflict.
8863 * termhooks.h (display_info): Add ns_display_info to union.
8864 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8865 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8866 COCOA environment.
8867 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8868 unexec() signature. (Note, this will dump, but the resulting file
8869 crashes; unexosx is used instead; keeping around for reference and
8870 possible aid in getting dump working under GNUstep.)
8871 * w32gui.h (button_type, widget_value): Remove definitions (now in
8872 keyboard.h).
8873 * window.c: Include nsterm.h when compiling under NS.
8874 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8875 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8876 other GUI windowing systems.
8877 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8878 GTK.
8879 (x_consider_frame_title): Under NS, set icon type and frame
8880 modified-state indicator; use ns_set_name_as_filename() when using
8881 formatted title.
8882 (update_window_cursor): Make public when compiling under NS.
8883 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8884 (hourglass_atimer, Vhourglass_delay
8885 * xfaces.c (header section, init_frame_faces, clear_font_table)
8886 (defined_color, unload_color, x_face_list_fonts)
8887 (prepare_face_for_display): Add NS support parallel to other GUIs.
8888 Emulate GCs like other non-X GUIs.
8889 (split_font_name): Don't lowercase font name under NS.
8890 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8891 under NS.
8892 * s/darwin.h: Add support for compilation under NS.
8893
88942008-07-15 Jason Rumney <jasonr@gnu.org>
8895
8896 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8897 (w32_show_hourglass): Rename from show_hourglass.
8898 (w32_hide_hourglass): Rename from hide_hourglass.
8899 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8900 (Vhourglass_delay): Declare extern.
8901 (hourglass_started): Remove.
8902
8903 * xdisp.c (Vhourglass_delay): Remove static.
8904 (hourglass_started, start_hourglass, cancel_hourglass):
8905 Don't include these versions on WINDOWSNT.
8906
89072008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8908
8909 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8910 variables (formerly in xfns.c).
8911 (show_hourglass, hide_hourglass): New prototypes (same).
8912 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8913 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8914 in xfns.c).
8915 (syms_of_xdisp): Declare/initialize display-hourglass,
8916 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8917 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8918 formerly in xfns.c.
8919 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8920 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8921 (start_hourglass, cancel_hourglass): Remove.
8922 (show_hourglass, hide_hourglass): Remove prototypes and static
8923 modifiers.
8924 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8925 hourglass_atimer, hourglass_shown_p declaration/initialization.
8926 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8927 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8928 (start_hourglass, cancel_hourglass): Remove.
8929 (show_hourglass, hide_hourglass): Remove prototypes and static
8930 modifiers.
8931 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8932 hourglass_atimer, hourglass_shown_p declaration/initialization.
8933 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8934 (DEFAULT_HOURGLASS_DELAY): Remove.
8935 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8936 hourglass_shown_p declaration/initialization.
8937
89382008-07-14 Jason Rumney <jasonr@gnu.org>
8939
8940 * w32fns.c (w32_get_arg): Remove wrapper function.
8941 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8942 directly.
8943 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8944
89452008-07-14 Kenichi Handa <handa@m17n.org>
8946
8947 * xfont.c (xfont_open): Add workaround for X's bug.
8948
89492008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8950
8951 * fontset.c: Include <stdio.h> unconditionally.
8952
89532008-07-13 Michael Albinus <michael.albinus@gmx.de>
8954
8955 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8956 for filtering.
8957
89582008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8959
8960 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8961
8962 * m/macppc.h:
8963 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8964
8965 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8966 (SPECIAL_EMACS_INT):
8967 * m/ia64.h (SPECIAL_EMACS_INT):
8968 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8969 * s/gnu.h (NLIST_STRUCT):
8970 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8971 * s/gnu-linux.h (LINUX):
8972 * s/msdos.h (HAVE_FACES):
8973 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8974
8975 * systty.h:
8976 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8977 anymore.
8978
89792008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8980
8981 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8982 always defined as int.
8983
8984 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8985 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8986 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8987 * s/freebsd.h (HAVE_WAIT_HEADER):
8988 * s/bsd-common.h (HAVE_UNION_WAIT):
8989 * s/aix4-2.h (HAVE_WAIT_HEADER):
8990 * m/mips.h (HAVE_UNION_WAIT):
8991 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8992 (COFF, static): Do not define, they are undefined later in the file.
8993
8994 * process.c (update_status): Don't use a union.
8995 (status_convert):
8996 (sigchld_handler): Use int instead of WAITTYPE.
8997
89982008-07-12 Chong Yidong <cyd@stupidchicken.com>
8999
9000 * indent.c (Fvertical_motion): Restore hscroll before moving to
9001 goal column.
9002
90032008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9004
9005 * lisp.h: Remove left over code.
9006
90072008-07-11 Andreas Schwab <schwab@suse.de>
9008
9009 * lisp.h: Fix logic in last change.
9010
9011 * menu.h: New file.
9012 * menu.c: Include it.
9013 * xmenu.c: Likewise.
9014 * Makefile.in: Update dependencies.
9015
90162008-07-11 Kenichi Handa <handa@m17n.org>
9017
9018 * fontset.c (fontset_from_font): Cancel the previous change.
9019
90202008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9021
9022 * lisp.h:
9023 * w32heap.c:
9024 * emacs.c:
9025 * alloc.c: Replace all references of NO_UNION_TYPE with
9026 USE_LISP_UNION_TYPE.
9027
9028 * m/xtensa.h (NO_UNION_TYPE):
9029 * m/vax.h (NO_UNION_TYPE):
9030 * m/template.h (NO_UNION_TYPE):
9031 * m/sparc.h (NO_UNION_TYPE):
9032 * m/mips.h (NO_UNION_TYPE):
9033 * m/macppc.h (NO_UNION_TYPE):
9034 * m/m68k.h (NO_UNION_TYPE):
9035 * m/iris4d.h (NO_UNION_TYPE):
9036 * m/intel386.h (NO_UNION_TYPE):
9037 * m/ibms390x.h (NO_UNION_TYPE):
9038 * m/ibms390.h (NO_UNION_TYPE):
9039 * m/ibmrs6000.h (NO_UNION_TYPE):
9040 * m/ia64.h (NO_UNION_TYPE):
9041 * m/hp800.h (NO_UNION_TYPE):
9042 * m/arm.h (NO_UNION_TYPE):
9043 * m/amdx86-64.h (NO_UNION_TYPE):
9044 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9045 defining it the same.
9046
90472008-07-10 Chong Yidong <cyd@stupidchicken.com>
9048
9049 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9050
90512008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9052
9053 * fileio.c:
9054 * sysdep.c
9055 * systty.h:
9056 * m/ibmrs6000.h:
9057 * m/iris4d.h:
9058 * s/aix4-2.h:
9059 * s/freebsd.h:
9060 * s/gnu-linux.h:
9061 * s/hpux10-20.h:
9062 * s/hpux11.h:
9063 * s/netbsd.h:
9064 * s/sol2-3.h:
9065 * s/sol2-4.h:
9066 * s/sol2.h:
9067 * s/usg5-4.h:
9068 * s/vms.h: Remove references to unused variables.
9069
90702008-07-10 Andreas Schwab <schwab@suse.de>
9071
9072 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9073 pattern before matching the generic family.
9074
90752008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9076
9077 * unexec.c:
9078 * s/vms.h:
9079 * s/usg5-4-2.h:
9080 * s/sol2-5.h:
9081 * s/freebsd.h:
9082 * s/darwin.h: Remove dead code.
9083
9084 * m/template.h:
9085 * m/sparc.h:
9086 * m/mips.h:
9087 * m/m68k.h:
9088 * m/iris4d.h:
9089 * m/intel386.h:
9090 * m/ibms390x.h:
9091 * m/ibms390.h:
9092 * m/ia64.h:
9093 * m/hp800.h:
9094 * m/arm.h:
9095 * m/amdx86-64.h: Remove dead code and references to unused
9096 and compiler defined symbols.
9097
9098 * unexmips.c:
9099 * unexelf.c: Remove references to desupported systems.
9100
9101 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9102
9103 * m/powermac.h: Remove boilerplate comments.
9104 (NO_REMAP): Remove unused definition.
9105
9106 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9107 define them.
9108
91092008-07-10 Kenichi Handa <handa@m17n.org>
9110
9111 * xfont.c (xfont_open): Log the reason of failure.
9112
91132008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9114
9115 * fontset.c (fontset_get_font_group):
9116 * font.c (font_check_otf): Specify argument types.
9117
91182008-07-09 Kenichi Handa <handa@m17n.org>
9119
9120 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9121 non-ASCII char is found.
9122
9123 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9124 (reorder_font_vector): Change the arg preferred_family to font.
9125 Prefer the spec matching with font.
9126 (fontset_get_font_group): New function.
9127 (fontset_find_font): Change the format of an element of a realized
9128 fontset. Use fontset_get_font_group.
9129 (fontset_font): Try the current fontset, the default fontset, the
9130 fallbacks of the current fontset, and the fallbacks of the default
9131 fontset in this order.
9132 (face_for_char): Delete the shortcut to use the current font.
9133 (fontset_from_font): Don't set fonts for Latin in the fontset.
9134
9135 * font.h (font_make_object, font_match_p): Adjust prototypes.
9136
9137 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9138
9139 * font.c (font_make_object): New arg entity and pixelsize.
9140 (font_check_otf_features, font_check_otf): New functions.
9141 (font_match_p): Check :lang, :script, and :otf properties.
9142
9143 * xfont.c (xfont_open): Adjust it for the change of
9144 font_make_object.
9145 (xfont_text_extents): Fix initial setting of metrics.
9146
9147 * ftfont.c (struct ftfont_info): New member index, delete member
9148 fc_charset_idx. Make the member order compatible with struct
9149 xftfont_info.
9150 (fc_charset_table): Change charset names to registry names.
9151 (ftfont_pattern_entity): Delete the args registry and
9152 fc_charset_idx. Change the value of :font-entity property
9153 to (FONTNAME . INDEX). Always set :registry property to
9154 `iso10646-1'.
9155 (struct ftfont_cache_data): New struct.
9156 (ftfont_lookup_cache): New arg for_face.
9157 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9158 (ftfont_driver): Set the member otf_capability.
9159 (ftfont_get_charset): Adjust it for the change of
9160 fc_charset_table.
9161 (OTF_TAG_SYM): New macro.
9162 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9163 for the change of fc_charset_table.
9164 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9165 ftfont_pattern_entity. Add FC_INDEX to objset.
9166 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9167 and ftfont_pattern_entity.
9168 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9169 font_make_object, struct ftfont_info.
9170 (ftfont_has_char): Use ftfont_get_fc_charset.
9171 (ftfont_otf_features, ftfont_otf_capability): New functions.
9172 (ftfont_shape): Use ftfont_get_otf.
9173 (ftfont_text_extents): Fix initial setting of metrics.
9174
9175 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9176 member order compatible with struct ftfont_info.
9177 (xftfont_open): Add FC_CHARSET to the pattern. Set
9178 xftfont_info->ft_size. Don't unlock the face. Check BDF
9179 properties if appropriate.
9180 (xftfont_close): Unlock the face.
9181 (xftfont_anchor_point, xftfont_shape): Deleted.
9182 (syms_of_xftfont): Don't set members anchor_point and shape of
9183 xftfont_driver.
9184
9185 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9186 font_make_object.
9187
9188 * w32font.c (w32font_open): Adjust it for the change of
9189 font_make_object.
9190 (w32font_open_internal): Don't set properties of font_object here.
9191
91922008-07-08 Chong Yidong <cyd@stupidchicken.com>
9193
9194 * macfns.c (x_create_tip_frame):
9195 * w32fns.c (x_create_tip_frame):
9196 * xfns.c (x_create_tip_frame): Pass parameter argument to
9197 face-set-after-frame-default.
9198
9199 * xfaces.c (Finternal_merge_in_global_face): Save merged
9200 attributes for the default face back into the face vector.
9201
92022008-07-08 Andreas Schwab <schwab@suse.de>
9203
9204 * fontset.h: Declare fontset_from_font. Don't declare
9205 new_fontset_from_font and fontset_from_font_name.
9206 * xterm.c: Include "fontset.h".
9207 * Makefile.in (xterm.o): Update dependencies.
9208
92092008-07-08 Glenn Morris <rgm@gnu.org>
9210
9211 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9212 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9213
92142008-07-07 Chong Yidong <cyd@stupidchicken.com>
9215
9216 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9217 (x_set_frame_parameters): Don't bind it.
9218
92192008-07-07 Juanma Barranquero <lekktu@gmail.com>
9220
9221 * w32fns.c (map_w32_filename): Declare extern.
9222
92232008-07-07 Jason Rumney <jasonr@gnu.org>
9224
9225 * w32term.c (WS_EX_LAYERED): Define if not already.
9226
92272008-07-06 Chong Yidong <cyd@stupidchicken.com>
9228
9229 * xfaces.c (set_font_frame_param): Don't try to set the font
9230 parameter if it is still unspecified in the lface.
9231
92322008-07-05 Chong Yidong <cyd@stupidchicken.com>
9233
9234 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9235 face if it didn't already exist.
9236
9237 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9238
92392008-07-05 Andreas Schwab <schwab@suse.de>
9240
9241 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9242
92432008-07-05 Chong Yidong <cyd@stupidchicken.com>
9244
9245 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9246 word-wrapping.
9247 (IT_DISPLAYING_WHITESPACE): New macro.
9248 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9249 when word-wrapping. Simplify word-wrapping logic. Use correct
9250 pixel positions when saving copies of the iterator.
9251 (display_line): Use proper wrap point if the last character on a
9252 line was preceded by whitespace.
9253
92542008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9255
9256 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9257
92582008-07-04 Kenichi Handa <handa@m17n.org>
9259
9260 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9261
9262 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9263
92642008-07-02 Jason Rumney <jasonr@gnu.org>
9265
9266 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9267 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9268
9269 * xdisp.c (next_element_from_display_vector): Move assignment out
9270 of if statement.
9271
92722008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9273
9274 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9275
9276 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9277 (syms_of_fileio): Initialize and export them.
9278 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9279
9280 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9281 (Fsystem_move_file_to_trash): New function.
9282 (syms_of_w32fns): Export it to lisp.
9283
92842008-07-01 Jason Rumney <jasonr@gnu.org>
9285
9286 * w32font.c (w32font_text_extents): Don't count overhang as part
9287 of width.
9288
92892008-06-30 Miles Bader <miles@gnu.org>
9290
9291 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9292 Add `avoid_cursor_p' field.
9293
9294 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9295 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9296 (append_glyph, append_composite_glyph, produce_image_glyph)
9297 (append_stretch_glyph): Initialize avoid_cursor_p.
9298 (get_it_property): Rename from `get_line_height_property'.
9299 (x_produce_glyphs): Use get_it_property.
9300 (handle_line_prefix, push_display_prop): New functions.
9301 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9302 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9303 New variables.
9304 (syms_of_xdisp): Initialize them.
9305
93062008-06-30 Kenichi Handa <handa@m17n.org>
9307
9308 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9309 XftDefaultSubstitute (they are called in XftFontMatch).
9310 (xftfont_open): Fix args to ftfont_font_format.
9311
9312 * ftfont.c (fc_charset_table): New member lang.
9313 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9314 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9315 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9316 (ftfont_open): Fix args to ftfont_font_format.
9317 (ftfont_font_format): New arg filename.
9318
93192008-06-30 Chong Yidong <cyd@stupidchicken.com>
9320
9321 * xfaces.c (Finternal_merge_in_global_face): If default face was
9322 modified, realize it again. Update the font face attribute.
9323
93242008-06-29 Jason Rumney <jasonr@gnu.org>
9325
9326 * w32term.c (x_set_frame_alpha): Fix logic.
9327
93282008-06-29 Kenichi Handa <handa@m17n.org>
9329
9330 * fontset.c (Finternal_char_font): Return font-object instead of
9331 font-name.
9332
9333 * composite.c (get_composition_id): Fix the width calculation for TAB.
9334
93352008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9336
9337 * indent.c (Fvertical_motion): Properly handle float column arg.
9338
93392008-06-28 Jason Rumney <jasonr@gnu.org>
9340
9341 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9342 (pfnSetLayeredWindowAttributes): New function pointer.
9343 (w32_initialize): Initialize it when supported.
9344 (x_set_frame_alpha): New function.
9345
9346 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9347 (w32_frame_parm_handlers): Set alpha handler.
9348
9349 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9350
93512008-06-27 Jason Rumney <jasonr@gnu.org>
9352
9353 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9354 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9355 (w32_to_x_charset, x_to_w32_charset)
9356 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9357 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9358 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9359 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9360 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9361 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9362 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9363 (Qw32_charset_unicode): Remove.
9364 (syms_of_w32fns): Update for above changes.
9365
9366 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9367 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9368 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9369 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9370 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9371 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9372 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9373 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9374 (syms_of_w32font): Update for above changes.
9375
93762008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9377
9378 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9379 removed #if.
9380 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9381
93822008-06-26 Juanma Barranquero <lekktu@gmail.com>
9383 Eli Zaretskii <eliz@gnu.org>
9384
9385 * makefile.w32-in (LOCAL_FLAGS):
9386 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9387
9388 * sysdep.c (_spawnlp, _getpid):
9389 Declare with explicit _cdecl instead of _CRTAPI1.
9390
9391 * editfns.c (Fget_internal_run_time):
9392 Check for WINDOWSNT with #ifdef, not #if.
9393
93942008-06-26 Jason Rumney <jasonr@gnu.org>
9395
9396 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9397
9398 * w32term.c (x_draw_glyph_string_foreground)
9399 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9400 Use FONT_HANDLE macro.
9401 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9402
9403 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9404 (uniscribe_encode_char): Use FONT_HANDLE macro.
9405
9406 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9407 (w32font_text_extents): Use precast w32_font.
9408 (w32font_close): Free cached metrics.
9409 (w32font_open_internal): Allocate space for name on stack.
9410
94112008-06-26 Chong Yidong <cyd@stupidchicken.com>
9412
9413 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9414
94152008-06-26 Jason Rumney <jasonr@gnu.org>
9416
9417 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9418 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9419
94202008-06-26 Juanma Barranquero <lekktu@gmail.com>
9421
9422 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9423
94242008-06-26 Jason Rumney <jasonr@gnu.org>
9425
9426 * w32bdf.c, w32bdf.h: Remove obsolete files.
9427
9428 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9429
9430 * w32gui.h: Don't include w32bdf.h.
9431 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9432 Remove obsolete font support.
9433
9434 * w32font.h (struct w32font_info): Remove compat_w32_font.
9435 Add hfont member.
9436 (FONT_COMPAT): Remove obsolete macro.
9437
9438 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9439 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9440 (w32font_open_internal): Remove compat code. Set new hfont member.
9441 (Fx_select_font): Use new hfont member.
9442
9443 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9444 (uniscribe_encode_char): Use new hfont member.
9445
9446 * w32term.c (x_draw_glyph_string_foreground)
9447 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9448 (x_draw_glyph_string): Use metrics in w32font_info.
9449
94502008-06-26 Kenichi Handa <handa@m17n.org>
9451
9452 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9453
94542008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9455
9456 * unexnext.c:
9457 * m/ews4800.h:
9458 * m/hp9000s300.h:
9459 * m/ibm370aix.h:
9460 * m/mips-siemens.h:
9461 * m/ncr386.h:
9462 * m/next.h:
9463 * m/pmax.h:
9464 * m/powerpcle.h:
9465 * m/tandem-s2.h:
9466 * s/386bsd.h:
9467 * s/bsd386.h:
9468 * s/bsd4-1.h:
9469 * s/bsd4-2.h:
9470 * s/bsdos2-1.h:
9471 * s/bsdos2.h:
9472 * s/bsdos3.h:
9473 * s/bsdos4.h:
9474 * s/nextstep.h:
9475 * s/ultrix4-3.h:
9476 * s/usg5-0.h:
9477 * s/usg5-2-2.h:
9478 * s/usg5-2.h:
9479 * s/usg5-4-3.h:
9480 * s/ux4800.h:
9481 * s/uxpds.h:
9482 * s/uxpv.h: Remove support for obsolete systems.
9483 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9484 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9485 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9486 Remove, insert contents in s/aix4-2.h.
9487 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9488 * s/bsd4-3.h: Rename to ...
9489 * s/bsd-common.h: ... this.
9490 * data.c:
9491 * doc.c:
9492 * ecrt0.c:
9493 * emacs.c:
9494 * fileio.c:
9495 * floatfns.c:
9496 * keyboard.c:
9497 * mem-limits.h:
9498 * print.c:
9499 * process.c:
9500 * sysdep.c:
9501 * syssignal.h:
9502 * systty.h:
9503 * syswait.h:
9504 * term.c:
9505 * unexec.c:
9506 * unexelf.c:
9507 * unexhp9k800.c:
9508 * m/hp800.h:
9509 * m/ibmrs6000.h:
9510 * m/mips.h:
9511 * m/vax.h:
9512 * s/darwin.h:
9513 * s/freebsd.h:
9514 * s/gnu.h:
9515 * s/ms-w32.h:
9516 * s/msdos.h:
9517 * s/netbsd.h:
9518 * s/template.h: Remove references to obsolete variables.
9519
9520 * Makefile.in: Add dependencies for all unexec files.
9521 (admindir): Remove unused variable.
9522 (UNEXEC_SRC): Remove references.
9523
95242008-06-25 Chong Yidong <cyd@stupidchicken.com>
9525
9526 * xfns.c (x_default_font_parameter): If Xft is available, first
9527 try Monospace-12 for the default font.
9528
95292008-06-25 Jason Rumney <jasonr@gnu.org>
9530
9531 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9532
95332008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9534
9535 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9536
9537 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9538
95392008-06-25 Juanma Barranquero <lekktu@gmail.com>
9540
9541 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9542 <scroll-conservatively>: Fix typo in docstring.
9543
9544 * xselect.c (Fx_send_client_event): Doc fix.
9545
95462008-06-25 Kenichi Handa <handa@m17n.org>
9547
9548 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9549
9550 * font.c (font_parse_fcname): Remove unused variables.
9551 (font_sort_entites): Delete the arg SPEC. Caller changed.
9552 Fix for the case of ! best_only.
9553 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9554
9555 * lisp.h (Fstring_to_unibyte): EXFUN it.
9556
9557 * character.h (str_to_unibyte): Extern it.
9558
9559 * character.c (str_to_unibyte): New function.
9560
9561 * fns.c (Fstring_to_unibyte): New function.
9562 (syms_of_fns): Defsubr it.
9563
95642008-06-24 Kenichi Handa <handa@m17n.org>
9565
9566 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9567 DPI too.
9568 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9569
95702008-06-24 Andreas Schwab <schwab@suse.de>
9571
9572 * Makefile.in (${lispsource}loaddefs.el): Rename from
9573 ../lisp/loaddefs.el.
9574 (bootstrap-clean): Do what distclean does but don't remove
9575 Makefile.
9576 (distclean): Depend on bootstrap-clean and remove Makefile.
9577
95782008-06-24 Chong Yidong <cyd@stupidchicken.com>
9579
9580 * buffer.h (struct buffer): New member word_wrap.
9581
9582 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9583 word-wrap.
9584 (init_buffer_once): Initialize them.
9585
9586 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9587 line_wrap enum possessing three possible values.
9588
9589 * termopts.h: Replace truncate_partial_width_windows with
9590 Vtruncate_partial_width_windows.
9591
9592 * dispnew.c (direct_output_for_insert): Avoid direct output when
9593 inserting a space with word wrap on.
9594
9595 * indent.c (compute_motion): Obey integer values of
9596 truncate-partial-width-windows.
9597
9598 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9599 replacing truncate_partial_width_windows.
9600 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9601 truncate only if the window width is below that integer.
9602 (start_display, resize_mini_window, produce_stretch_glyph)
9603 (display_string, move_it_in_display_line_to): Use line_wrap.
9604 (back_to_previous_visible_line_start, reseat_1): Reset
9605 string_from_display_prop_p.
9606 (display_line): Extend default face to end of line when wrapping.
9607
96082008-06-24 Kim F. Storm <storm@cua.dk>
9609
9610 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9611 to wrap continued lines at word boundaries.
9612
96132008-06-24 Jason Rumney <jasonr@gnu.org>
9614
9615 * font.c (Ffont_face_attributes): Multiply pixel size before point
9616 conversion to avoid multiplying rounding error.
9617
96182008-06-23 Jason Rumney <jasonr@gnu.org>
9619
9620 * w32term.c (x_draw_glyph_string_background)
9621 (x_draw_glyph_string): Remove old bdf font code.
9622
9623 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9624
96252008-06-22 Kenichi Handa <handa@m17n.org>
9626
9627 * font.c (font_find_for_lface): Try the adstyle specified in
9628 the property of LFACE_FONT of LFACE (if any).
9629
96302008-06-21 Seiji Zenitani <zenitani@mac.com>
9631 Ryo Yoshitake <ryo@shiftmode.net>
9632
9633 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9634
96352008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9636
9637 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9638 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9639 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9640 (witness-emacs): Remove.
9641 (lisp, shortlisp): Move loaddefs.el earlier.
9642 (mostlyclean): Forget about witness-emacs.
9643
96442008-06-22 Glenn Morris <rgm@gnu.org>
9645
9646 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9647 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9648
96492008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9650
9651 * Makefile.in (PRECOMP): Remove.
9652 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9653 (witness-emacs): Run `compile-first'.
9654 (.el.elc): Use the new compile-onefile target.
9655
96562008-06-21 Kenichi Handa <handa@m17n.org>
9657
9658 * xftfont.c (xftfont_open): Handle QCembolden only when
9659 FC_EMBOLDEN is defined.
9660
96612008-06-21 Andreas Schwab <schwab@suse.de>
9662
9663 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9664 (.el.elc): Likewise.
9665
96662008-06-21 Miles Bader <miles@gnu.org>
9667
9668 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9669 build dir, not the lisp source dir.
9670
96712008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9672
9673 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9674 (bootstrapclean): Remove.
9675 (.el.elc): New rule.
9676 (PRECOMP): New var.
9677 (../lisp/subdirs.el): Remove.
9678 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9679 (witness-emacs): New target.
9680 (mostlyclean): Remove witness-emacs as well.
9681 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9682 Add witness-emacs dependency.
9683
96842008-06-20 Chong Yidong <cyd@stupidchicken.com>
9685
9686 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9687 defined by the font.
9688
96892008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9690
9691 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9692 (bootstrap-clean): New target that keeps TAGS around.
9693 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9694 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9695
96962008-06-20 Jason Rumney <jasonr@gnu.org>
9697
9698 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9699 Remove obsolete font code.
9700
9701 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9702 to determine language support.
9703
97042008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9705
9706 * sysdep.c (cfsetspeed): New fun extracted from the code.
9707 (cfmakeraw): Move before first use.
9708
97092008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9710
9711 * sysdep.c (cfmakeraw): Provide fallback implementation.
9712 (serial_configure): Provide fallback implementation of cfsetspeed.
9713
97142008-06-20 Kenichi Handa <handa@m17n.org>
9715
9716 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9717 the pattern.
9718
9719 * fontset.c (fontset_from_font): Copy font_spec before changing
9720 the elements.
9721
9722 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9723
97242008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9725
9726 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9727 for explicit `font' parameters.
9728
9729 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9730
97312008-06-19 Kenichi Handa <handa@m17n.org>
9732
9733 * frame.c: Include <ctype.h>.
9734 (x_set_font_backend): Allow spacing characters in the X resource
9735 for FontBackend.
9736
97372008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9738
9739 * w32fns.c, xfns.c (Qfont_param): New var.
9740 (syms_of_w32fns): Initialize it.
9741 (x_default_font_parameter): Record explicit `font' into
9742 `font-parameter'.
9743
97442008-06-18 Kenichi Handa <handa@m17n.org>
9745
9746 * font.c (font_parse_xlfd): Fix previous change.
9747 (font_parse_fcname): Don't use :fc-unknown-spec.
9748 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9749 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9750 (font_add_log): Prepend the driver name to the resulting fonts.
9751
9752 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9753 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9754 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9755
9756 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9757 (QCembolden): New variables.
9758 (syms_of_xftfont): DEFSYM them.
9759 (xftfont_open): Call XftFontMatch. Don't trust the result of
9760 XftTextExtents8 if the pixel_size is less than 5.
9761
97622008-06-18 Andreas Schwab <schwab@suse.de>
9763
9764 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9765 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9766
97672008-06-18 Jason Rumney <jasonr@gnu.org>
9768
9769 * w32font.c (w32font_list, w32font_match): Add logging.
9770
9771 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9772
97732008-06-17 Chong Yidong <cyd@stupidchicken.com>
9774
9775 * font.c (font_parse_fcname): Store divider characters for
9776 unknown-spec list. For known key symbols, intern using correct
9777 symbol name.
9778
97792008-06-17 Kenichi Handa <handa@m17n.org>
9780
9781 * xfaces.c (realize_default_face): If the frame is not on window
9782 system, set the fontset of face to nil.
9783
97842008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9785
9786 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9787
97882008-06-16 Juanma Barranquero <lekktu@gmail.com>
9789
9790 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9791 (build_font_name_from_vector): Delete externs.
9792
9793 * xfaces.c (struct font_name): Don't declare.
9794
97952008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9796
9797 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9798
97992008-06-16 Chong Yidong <cyd@stupidchicken.com>
9800
9801 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9802
98032008-06-16 Juanma Barranquero <lekktu@gmail.com>
9804
9805 * font.c (Ffont_spec): Fix usage in docstring.
9806 (Ffont_face_attributes): Doc fix.
9807
98082008-06-16 Andreas Schwab <schwab@suse.de>
9809
9810 * font.c (Ffont_face_attributes): Fix definition.
9811
98122008-06-16 Jason Rumney <jasonr@gnu.org>
9813
9814 * font.h (font_style_symbolic_from_value): Remove.
9815
9816 * font.c (font_style_symbolic_from_value): Remove.
9817 (font_style_symbolic): Revert to pre 2008-06-13 version.
9818
9819 * w32font.c (w32_to_fc_weight): New function.
9820 (w32font_full_name, logfont_to_fcname): Use it.
9821
98222008-06-16 Kenichi Handa <handa@m17n.org>
9823
9824 * font.c (font_check_object): Delete it.
9825 (font_clear_cache): Check if a font-object is alive.
9826 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9827 font-object to nil.
9828 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9829 (font_at): Don't call font_check_object.
9830 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9831
98322008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9833
9834 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9835
98362008-06-16 Chong Yidong <cyd@stupidchicken.com>
9837
9838 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9839
98402008-06-15 Chong Yidong <cyd@stupidchicken.com>
9841
9842 * font.c (font_parse_fcname): Only one decimal point.
9843 (font_unparse_fcname): Handle data in family and foundry indices
9844 as symbols, not strings.
9845 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9846
9847 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9848
9849 * font.h (font_unparse_gtkname): Add prototype.
9850
98512008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9852
9853 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9854
98552008-06-15 Andreas Schwab <schwab@suse.de>
9856
9857 * font.c (font_update_drivers): Fix crash when no drivers match.
9858
98592008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9860
9861 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9862 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9863
98642008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9865
9866 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9867
98682008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9869
9870 * process.c (Fserial_process_configure, Fprocess_send_eof):
9871 Use EQ to compare Lisp_Objects.
9872
98732008-06-13 Jason Rumney <jasonr@gnu.org>
9874
9875 * w32fns.c (Fw32_select_font): Remove old font API function.
9876
9877 * w32font.c (logfont_to_fcname): New function.
9878 (Fx_select_font): New font dialog function compatible with
9879 GTK/fontconfig version.
9880
9881 * font.c (font_style_symbolic_from_value): New function.
9882 (font_style_symbolic): Use it.
9883
9884 * font.h (font_style_symbolic_from_value): Declare new function.
9885
98862008-06-13 Juanma Barranquero <lekktu@gmail.com>
9887
9888 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9889 <font-width-table>: Fix typos in docstrings.
9890
98912008-06-13 Daniel Engeler <engeler@gmail.com>
9892
9893 These changes add serial port access.
9894 * process.c: Add HAVE_SERIAL.
9895 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9896 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9897 (list_processes_1, select_wrapper, Fstop_process)
9898 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9899 (status_notify): Modify to handle serial processes.
9900 [HAVE_SERIAL] (Fserial_process_configure)
9901 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9902 New functions.
9903 * process.h (struct Lisp_Process): Add `type'.
9904 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9905 New functions.
9906 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9907 serial ports.
b71ac3dd 9908 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9909 * w32.h: Add FILE_SERIAL.
9910 (struct _child_process): Add ovl_read, ovl_write.
9911
99122008-06-13 Kenichi Handa <handa@m17n.org>
9913
9914 * dispextern.h (enum lface_attribute_index): New member
9915 LFACE_FOUNDRY_INDEX.
9916
9917 * font.c (font_score): Delete arg alternate_families. Check only
9918 weight, slant, width, and size. Ignore the difference of alias
9919 style symbols.
9920 (font_sort_entites): Adjust for the above change. Reflect the
9921 order of font-driver to scores.
9922 (font_list_entities): Don't check alternate_familes here.
9923 (font_clear_prop): Handle foundry.
9924 (font_update_lface): Don't parse "foundry-family" form here.
9925 Handle FONT_FOUNDRY_INDEX.
9926 (font_find_for_lface): Likewise. Handle alternate families here.
9927 If registry is nil, try iso8859-1 and ascii-0.
9928 (font_open_for_lface): Pay attention to size in ENTITY.
9929 (font_open_by_name): Simplify by calling font_load_for_lface.
9930 (free_font_driver_list): Delete it.
9931 (font_update_drivers): Preserve the order of backends.
9932 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9933 of font_score and font_sort_entites.
9934 (font_update_sort_order): Likewise.
9935
9936 * xfaces.c (LFACE_FOUNDRY): New macro.
9937 (check_lface_attrs): Check foundry.
9938 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9939 (merge_face_vectors): Check foundry.
9940 (merge_face_ref): Likewise.
9941 (Finternal_set_lisp_face_attribute): Likewise.
9942 (x_update_menu_appearance): Likewise.
9943 (Finternal_get_lisp_face_attribute): Likewise.
9944 (lface_hash): Likewise.
9945 (lface_same_font_attributes_p): Likewise.
9946 (x_supports_face_attributes_p): Likewise.
9947 (tty_supports_face_attributes_p): Likewise.
9948 (Finternal_set_alternative_font_family_alist): Intern strings.
9949 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9950 (realize_default_face): Set LFACE_FOUNDRY (lface).
9951
9952 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9953 font-driver at first.
9954
9955 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9956
99572008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9958
9959 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9960
99612008-06-12 Jim Meyering <meyering@redhat.com>
9962
9963 Make unexec_free handle NULL the same way free does.
9964 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9965
99662008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9967
9968 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9969 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9970 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9971 (WEAK_ALIAS): Simplify.
9972 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9973 when searching a unibyte buffer.
9974
99752008-06-12 Chong Yidong <cyd@stupidchicken.com>
9976
9977 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9978
99792008-06-12 Juanma Barranquero <lekktu@gmail.com>
9980
9981 * w32font.c: Include ctype.h.
9982
99832008-06-11 Jason Rumney <jasonr@gnu.org>
9984
9985 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9986 misreported as space.
9987 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9988 as aliases for registry iso10646-1.
9989
99902008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9991
9992 * buffer.c (clone_per_buffer_values): Skip `name'.
9993
99942008-06-11 Chong Yidong <cyd@stupidchicken.com>
9995
9996 * font.c (font_parse_fcname): Fix last change; accept decimal
9997 points in font size.
9998
99992008-06-10 Jason Rumney <jasonr@gnu.org>
10000
10001 * w32uniscribe.c (add_opentype_font_name_to_list):
10002 Skip non unicode fonts.
10003
100042008-06-10 Chong Yidong <cyd@stupidchicken.com>
10005
10006 * xfns.c (Fx_font_dialog): New function.
10007
10008 * gtkutil.c (xg_dialog_response_cb): Rename from
10009 xg_file_response_callback.
10010 (pop_down_dialog): Rename from pop_down_file_dialog.
10011 (xg_get_file_name): Callers changed.
10012 (xg_get_font_name): New function.
10013
10014 * gtkutil.h (xg_get_font_name): Insert prototype.
10015
100162008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10017
10018 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10019 x_underline_minimum_display_offset.
10020 (syms_of_xdisp): Declare it here rather than in xterm.c.
10021 * dispextern.h (underline_minimum_offset): Declare it.
10022 * w32term.c (x_draw_glyph_string): Use it.
10023 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10024 (syms_of_xterm): Don't declare it any more.
10025 (x_draw_glyph_string): Adjust to the new name.
10026
8719abec 100272008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10028
10029 * xterm.c (x_underline_minimum_display_offset): New var.
10030 (x_draw_glyph_string): Use it.
10031 (syms_of_xterm): Declare it.
10032
100332008-06-10 Chong Yidong <cyd@stupidchicken.com>
10034
10035 * font.c (font_parse_fcname): Accept GTK-style font names too.
10036
100372008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10038
10039 * dired.c (file_name_completion): Don't return t if the match is exact
10040 but with different capitalization.
10041 * minibuf.c (Ftry_completion): Simplify.
10042
10043 * window.c (Vwindow_point_insertion_type): New var.
10044 (set_window_buffer): Use it.
10045 (syms_of_window): Init and export it to Lisp.
10046
100472008-06-10 Kenichi Handa <handa@m17n.org>
10048
10049 * font.h (font_intern_prop): Prototype adjusted.
10050
10051 * font.c (font_intern_prop): New arg force_symbol.
10052 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10053 Adjust for the change of font_intern_prop.
10054
10055 * ftfont.c (ftfont_pattern_entity):
10056 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10057 (w32_registry):
10058 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10059 the change of font_intern_prop.
10060
100612008-06-09 Juanma Barranquero <lekktu@gmail.com>
10062
10063 * w32menu.c (digest_single_submenu): Declare extern.
10064
100652008-06-09 Jason Rumney <jasonr@gnu.org>
10066
10067 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10068
10069 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10070 (parse_single_submenu): Remove.
10071 (digest_single_submenu): Remove.
10072 (syms_of_w32menu): Don't initialise variables that have moved
10073 to menu.c.
10074 (set_frame_menubar): Sync with version in xmenu.c.
10075 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10076
10077 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10078 Make static again.
10079
100802008-06-09 Jason Rumney <jasonr@gnu.org>
10081
10082 Changes to w32 files related to the move of common menu code
10083 to menu.c on 2008-06-08 by Chong Yidong.
10084
10085 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10086 defs to w32gui.h.
10087 (single_keymap_panes, push_menu_item, push_menu_pane):
10088 Make globally visible.
10089
10090 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10091 (local_free, malloc_widget_value, free_widget_value)
10092 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10093 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10094 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10095 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10096 (menu_items, menu_items_allocated, menu_items_used)
10097 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10098 (init_menu_items, finish_menu_items, discard_menu_items)
10099 (grow_menu_items, push_submenu_start, push_submenu_end)
10100 (push_left_right_boundary, push_menu_pane, push_menu_item)
10101 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10102 (free_menubar_widget_tree_value, parse_single_submenu)
10103 (update_submenu_strings): Remove functions.
10104 (xmalloc_widget_value): Remove and declare extern.
10105
10106 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10107 (OBJ1): Build it.
10108
10109 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10110 (local_heap, local_alloc, local_free, malloc_widget_value)
10111 (free_widget_value): Define here.
10112
101132008-06-09 Kenichi Handa <handa@m17n.org>
10114
10115 * font.h (Qascii_0): Extern it.
10116
10117 * font.c (Qascii_0): New variable.
10118 (syms_of_font): DEFSYM it.
10119 (font_open_by_name): If the registry "iso8859-1" fails, try also
10120 "ascii-0".
10121
10122 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10123
101242008-06-08 Kenichi Handa <handa@m17n.org>
10125
10126 * .gdbinit (xfont): New command.
10127
101282008-06-08 Andreas Schwab <schwab@suse.de>
10129
10130 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10131 * Makefile.in (menu.o): Update dependencies.
10132
10133 * Makefile.in (obj): Always add menu.o.
10134 * emacs.c (main): Always call syms_of_menu.
10135 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10136
101372008-06-08 Chong Yidong <cyd@stupidchicken.com>
10138
10139 * Makefile.in: Compile menu.c.
10140
10141 * lisp.h: Declare syms_of_menu.
10142
10143 * emacs.c (main): Call syms_of_menu.
10144
10145 * keyboard.h: Relocate platform-independent menu definitions from
10146 xmenu.c.
10147
10148 * menu.c: New file. Relocate platform-independent menu
10149 definitions from xmenu.c. Suggested by Adrian Robert.
10150
10151 * xmenu.c: Remove platform-independent menu definitions.
10152 (menu_items menu_items_inuse, menu_items_allocated)
10153 (menu_items_used, menu_items_n_panes)
10154 (menu_items_submenu_depth): Move to keyboard.h.
10155 (init_menu_items, finish_menu_items, unuse_menu_items)
10156 (discard_menu_items, restore_menu_items, save_menu_items)
10157 (grow_menu_items, push_submenu_start, push_submenu_end)
10158 (push_left_right_boundary, push_menu_pane, push_menu_item)
10159 (keymap_panes, single_keymap_panes, single_menu_item)
10160 (list_of_panes, list_of_items, find_and_call_menu_selection)
10161 (xmalloc_widget_value, free_menubar_widget_value_tree)
10162 (parse_single_submenu, digest_single_submenu)
10163 (update_submenu_strings): Move to menu.c.
10164
101652008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10166
10167 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10168
101692008-06-06 Miles Bader <miles@gnu.org>
10170
10171 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10172 face, not frame default.
10173
101742008-06-05 Martin Rudalics <rudalics@gmx.at>
10175
10176 * window.c (pop_up_windows, pop_up_frames)
10177 (display_buffer_reuse_frames, Vpop_up_frame_function)
10178 (Vdisplay_buffer_function, Veven_window_heights)
10179 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10180 (Vspecial_display_function, Vsame_window_buffer_names)
10181 (Vsame_window_regexps, split_height_threshold)
10182 (Vsplit_window_preferred_function): Move those vars to window.el.
10183 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10184 (Fdisplay_buffer): Move those functions to window.el.
10185 (syms_of_window): Remove corresponding declarations.
10186 (display_buffer): New function.
10187 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10188 * dispnew.c (Flast_nonminibuf_frame): New function.
10189 * buffer.c (Fpop_to_buffer): Move to window.el.
10190
101912008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10192
10193 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10194
101952008-06-05 Kenichi Handa <handa@m17n.org>
10196
10197 * coding.c (detect_coding): Fix previous change.
10198 (detect_coding_system): Likewise.
10199
102002008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10201
10202 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10203
10204 * keymap.c (Vminibuffer_local_filename_must_match_map):
10205 Rename from Vminibuffer_local_must_match_filename_map.
10206 (syms_of_keymap):
10207 * minibuf.c (Fcompleting_read): Adjust accordingly.
10208 * commands.h: Rename declaration as well.
10209
102102008-06-05 Kenichi Handa <handa@m17n.org>
10211
10212 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10213 family name.
10214 (Ffont_put): Likewise.
10215
10216 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10217 current font-spec.
10218
10219 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10220 is unspecified.
10221
10222 * xfaces.c (realize_x_face): If the font-related face attributes
10223 are the same as those of default face, realize a new fontset from
10224 default->fontset.
10225 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10226
102272008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10228
10229 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10230 (move_it_in_display_line): New wrapper.
10231
10232 * window.c (window_scroll_pixel_based_preserve_x)
10233 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10234 (window_scroll_pixel_based, window_scroll_line_based):
10235 Use them to preserve column positions.
10236 (syms_of_window): Initialize them.
10237
10238 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10239 (HPOS . VPOS) pair.
10240
10241 * dispextern.h (move_it_in_display_line): Declare.
10242
102432008-06-05 Juanma Barranquero <lekktu@gmail.com>
10244
10245 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10246 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10247 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10248
102492008-06-04 Juanma Barranquero <lekktu@gmail.com>
10250
10251 * window.c (Fset_window_parameter): Doc fix.
10252 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10253
102542008-06-04 Joakim Verona <joakim@verona.se>
10255
10256 * window.h (struct window): Add new member window_parameters.
10257
10258 * window.c (Fwindow_parameters, Fwindow_parameter)
10259 (Fset_window_parameter): New defuns.
10260 (syms_of_window): Defsubr the new defuns.
10261 (make_window): Initialize window_parameters to nil.
10262
102632008-06-04 John Paul Wallington <jpw@pobox.com>
10264
10265 * eval.c (Fdefmacro): Doc fix.
10266
102672008-06-04 Kenichi Handa <handa@m17n.org>
10268
10269 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10270 Be sure to call setup_coding_system when we find a proper coding system.
10271 (detect_coding_system): Fix handling of coding->head_ascii.
10272
102732008-06-03 Andreas Schwab <schwab@suse.de>
10274
10275 * font.c (font_prop_validate_spacing): Fix last change.
10276
102772008-06-03 Kenichi Handa <handa@m17n.org>
10278
10279 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10280 (font_parse_fcname): Fix handling of unknown key.
10281
10282 * xfont.c (xfont_list): Try an alias.
10283
10284 * charset.c (char_charset): Return NULL if the arg charset_list is
10285 specified and C doesn't belong to any of them.
10286
102872008-06-02 Chip Coldwell <coldwell@redhat.com>
10288
10289 * font.c (font_pixel_size): Don't take cdr of an integer.
10290
102912008-06-02 Jim Meyering <meyering@redhat.com>
10292
10293 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10294 * alloc.c (xfree): Return right away for a NULL arg.
10295 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10296 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10297 * mac.c (create_apple_event_from_event_ref): Likewise.
10298 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10299 Likewise.
10300 * doprnt.c (doprnt1): Likewise.
10301 * frame.c (frame): Likewise.
10302 * keyboard.c (wipe_kboard): Likewise.
10303 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10304 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10305 * term.c (tty_default_color_capabilities, maybe_fatal)
10306 (delete_tty): Likewise.
10307 * w16select.c (string): Likewise.
10308 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10309 * w32bdf.c (w32_free_bdf_font): Likewise.
10310 * w32fns.c (w32_unload_font): Likewise.
10311 * w32font.c (w32font_close): Likewise.
10312 * window.c (size_window): Likewise.
10313 * xselect.c (receive_incremental_selection): Likewise.
10314 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10315 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10316 * w32.c (stat): Likewise.
10317
10318 Remove useless if-before-free tests.
10319 * editfns.c (Fset_time_zone_rule): Likewise.
10320 * lread.c (nosuffix): Likewise.
10321 * ralloc.c (get_bloc): Likewise.
10322 * regex.c (reg_free): Likewise.
10323 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10324 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10325 * xsmfns.c (smc_save_yourself_CB): Likewise.
10326
103272008-06-02 Kenichi Handa <handa@m17n.org>
10328
10329 * font.c (font_find_for_lface): Handle float font size.
10330 (font_open_for_lface): Likewise.
10331
10332 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10333 comparing the properties.
10334
103352008-06-01 Jason Rumney <jasonr@gnu.org>
10336
10337 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10338 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10339 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10340 Don't add empty script list.
10341 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10342
103432008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10344
10345 * Makefile.in (dot, dotdot): Remove, update users.
10346 ".." has been used elsewhere in the file for a long time.
10347 (LIBXT_STATIC): Remove conditional based on unused variable.
10348
103492008-06-01 Miles Bader <miles@gnu.org>
10350
10351 * xfaces.c (Vface_remapping_alist): New variable.
10352 (syms_of_xfaces): Initialize it.
10353 (enum named_merge_point_kind): New type.
10354 (struct named_merge_point): Add `named_merge_point_kind' field.
10355 (push_named_merge_point): Make cycle detection respect different
10356 named-merge-point kinds.
10357 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10358 Remove face-name alias resolution.
10359 (lface_from_face_name): New definition using
10360 `lface_from_face_name_no_resolve'.
10361 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10362 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10363 (get_lface_attributes): New definition that layers face-remapping on
10364 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10365 (lookup_basic_face): New function.
10366 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10367 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10368 `get_lface_attributes'.
10369 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10370 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10371 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10372
10373 * xdisp.c (init_iterator): Pass base_face_id through
10374 `lookup_basic_face' when we actually use it as a face-id.
10375 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10376 DEFAULT_FACE_ID.
10377
10378 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10379 lookup the initial face-id.
10380
10381 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10382
103832008-06-01 Juanma Barranquero <lekktu@gmail.com>
10384
10385 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10386 (Fremove_text_properties): Fix typos in docstrings.
10387
103882008-05-31 Kenichi Handa <handa@m17n.org>
10389
10390 * font.c (font_list_entities): Fix the car part of data to be
10391 stored in the cache.
10392
10393 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10394
103952008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10396
10397 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10398 Add a `test' argument so another predicate than `equal' can be used.
10399 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10400 (map_char_table): Remove unused vars `c' and `i'.
10401 * lisp.h (Foptimize_char_table): Adjust declaration.
10402 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10403
104042008-05-30 Kenichi Handa <handa@m17n.org>
10405
10406 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10407 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10408 defined.
10409
104102008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10411
10412 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10413 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10414 frame-local settings for the same variable.
10415
104162008-05-30 Kenichi Handa <handa@m17n.org>
10417
10418 * fontset.c (Ffont_info): Move to font.c.
10419 (syms_of_fontset): Delete defsubr of Sfont_info.
10420
10421 * font.c (font_style_to_value, font_score): Delete casting of the
10422 args to xstcasecmp.
10423 (register_font_driver): Increment num_font_drivers only when
10424 registering the driver globally.
10425 (Ffont_info): Move from fontset.c. Handle a font object too.
10426 (syms_of_font): Defsubr Sfont_info.
10427
104282008-05-29 Kenichi Handa <handa@m17n.org>
10429
10430 * coding.h (enum define_coding_utf8_arg_index): New enum.
10431 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10432 coding_attr_utf_bom.
10433 (enum utf_bom_type): Rename from utf_16_bom_type.
10434 (struct utf_16_spec): Adjust for the above change.
10435 (struct coding_system): Add utf_8_bom in `spec' union.
10436
10437 * coding.c (CODING_UTF_8_BOM): New macro.
10438 (enum coding_category): Delete coding_category_utf_8, add
10439 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10440 coding_category_utf_8_sig.
10441 (CATEGORY_MASK_UTF_8): Delete it.
10442 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10443 (CATEGORY_MASK_UTF_8_SIG): New macros.
10444 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10445 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10446 CATEGORY_MASK_UTF_8_SIG.
10447 (CATEGORY_MASK_UTF_8): New macro.
10448 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10449 (detect_coding_utf_8): Check BOM.
10450 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10451 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10452 (encode_coding_utf_16): Likewise.
10453 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10454 (detect_coding, detect_coding_system): Handle utf-8-auto.
10455 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10456 (syms_of_coding): Fix setting up of Vcoding_category_table.
10457
104582008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10459
10460 * process.c (Faccept_process_output): If `millisec' is non-nil,
10461 `seconds' default to 0.
10462 (wait_reading_process_output): Also return non-nil if we read output
10463 from a non-running process.
10464
104652008-05-29 Jason Rumney <jasonr@gnu.org>
10466
10467 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10468 `raster' specified.
10469 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10470 in the uniscribe backend, but disallow any font that has no
10471 unicode subrange support.
10472
104732008-05-29 Juanma Barranquero <lekktu@gmail.com>
10474
10475 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10476 Fix typos in docstrings.
10477
104782008-05-29 Kenichi Handa <handa@m17n.org>
10479
10480 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10481 (Fx_family_fonts): Set frame correctly.
10482
104832008-05-28 Jason Rumney <jasonr@gnu.org>
10484
10485 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10486
104872008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10488
10489 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10490 calling build_annotations.
10491
104922008-05-28 Juanma Barranquero <lekktu@gmail.com>
10493
10494 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10495 (Fencode_coding_string):
10496 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10497 <latin-extra-code-table>: Fix typos in docstrings.
10498 (syms_of_coding) <coding-system-alist>: Doc fix.
10499 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10500
105012008-05-28 Kenichi Handa <handa@m17n.org>
10502
10503 * fontset.c (Ffont_info): Don't call font_close_object.
10504
10505 * font.c (font_parse_family_registry): Use Ffont_put to validate
10506 foundry and family.
10507 (font_delete_unmatched): Don't check spacing.
10508 (font_list_entities): Add spacing to the spec to list fonts.
10509
10510 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10511 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10512
10513 * coding.c (encode_coding_raw_text): Fix previous change.
10514 (encode_coding_object): When the dst_object is a buffer and is
10515 different from src_object, move gap to PT.
10516
105172008-05-27 Chong Yidong <cyd@stupidchicken.com>
10518
10519 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10520
105212008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10522
10523 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10524 all branches. Compute it differently.
10525
10526 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10527
105282008-05-27 Juanma Barranquero <lekktu@gmail.com>
10529
10530 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10531 into "else if () ... else ...".
10532
105332008-05-27 Jason Rumney <jasonr@gnu.org>
10534
10535 * w32font.c (w32font_open_internal): Determine if glyph indices
10536 are likely to work here.
10537
105382008-05-27 Chong Yidong <cyd@stupidchicken.com>
10539
10540 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10541 draw overlap glyphs with appropriate highlighting.
10542
105432008-05-27 Kenichi Handa <handa@m17n.org>
10544
10545 * xfont.c (xfont_open): Fix calculation of font->average_width.
10546
105472008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10548
10549 * casefiddle.c (casify_object): Try to guess better whether the
10550 argument is a byte or a char.
10551
105522008-05-26 Andreas Schwab <schwab@suse.de>
10553
10554 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10555 Always send multiples of format size.
10556
10557 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10558
105592008-05-26 Jason Rumney <jasonr@gnu.org>
10560
10561 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10562 (compute_metrics): Don't set failure if we just cleared the cache.
10563 (w32_weight_table): Remove unused variable.
10564 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10565 backwards compatibility.
10566
105672008-05-25 Kenichi Handa <handa@m17n.org>
10568
10569 * w32term.c (x_draw_glyph_string):
10570 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10571
10572 * xfaces.c: Delete unused function prototypes.
10573 (xstrlwr, font_frame): Delete them.
10574 (clear_face_cache): Delete unused variable.
10575
10576 * xftfont.c (xftfont_open): Delete unused variable.
10577 If underline_thickness is not 1, adjust underline_position.
10578
10579 * ftxfont.c (ftxfont_open): Delete unused variable.
10580
10581 * fontset.c (face_for_char): Optimize for the case of no charset
10582 property.
10583
10584 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10585 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10586 (otf_open, font_otf_capability, generate_otf_features)
10587 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10588 Comment out by surrounding "#if 0" and "#endif" for the moment.
10589 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10590 (syms_of_font): Codes for accessing above commented out.
10591
105922008-05-24 Eli Zaretskii <eliz@gnu.org>
10593
10594 * w32proc.c: Include dispextern.h.
10595
10596 * w32.c: Include dispextern.h.
10597
105982008-05-23 Juanma Barranquero <lekktu@gmail.com>
10599
10600 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10601 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10602 Fix typos in docstrings.
10603
106042008-05-23 Jason Rumney <jasonr@gnu.org>
10605
10606 * xsmfns.c: Remove includes that are already included by config.h.
10607
106082008-05-23 Kenichi Handa <handa@m17n.org>
10609
10610 * charset.c (Qemacs, charset_emacs): New variables.
10611 (char_charset): Fix for non-Unicode characters.
10612 (syms_of_charset): Define charset_emacs.
10613
10614 * w32term.c (x_draw_glyph_string): Be sure to update
10615 s->underline_thickness and s->underline_position. Be sure to draw
10616 underline within the current line area.
10617
10618 * xterm.c (x_draw_glyph_string): Be sure to update
10619 s->underline_thickness and s->underline_position. Be sure to draw
10620 underline within the current line area.
10621
10622 * fontset.c: Delete unused variables and add casting for char *
10623 throughout the file.
10624 (fontset_font): Try the fallback fonts of the current fontset
10625 before consulting the default fontset.
10626
10627 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10628
10629 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10630
106312008-05-22 Jason Rumney <jasonr@gnu.org>
10632
10633 * font.c: Don't include strings.h.
10634
10635 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10636
10637 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10638 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10639 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10640 to call xstrcasecmp.
10641
10642 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10643
10644 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10645
10646 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10647
10648 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10649
106502008-05-22 Kenichi Handa <handa@m17n.org>
10651
10652 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10653
10654 * font.c (font_prop_validate_style): Adjust for the format
10655 change of font_style_table.
10656
10657 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10658 two args.
10659
10660 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10661 two args.
10662
106632008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10664
10665 * minibuf.c (keys_of_minibuf): Delete.
10666 * lisp.h (keys_of_minibuf): Delete.
10667 * emacs.c (main): Don't call keys_of_minibuf.
10668
106692008-05-22 Kenichi Handa <handa@m17n.org>
10670
10671 * ftfont.c (ftfont_resolve_generic_family): Rename from
10672 ftfont_list_generic_family. Return a single family for each
10673 generic family.
10674 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10675 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10676 Call font_add_log.
10677 (ftfont_match): Call font_add_log.
10678
10679 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10680 (FONT_DEBUG): Define it.
10681 (font_add_log): Extern it.
10682 (font_assert): Rename from xassert.
10683
10684 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10685 (xfont_list_family): Call font_add_log.
10686 (xfont_match): Likewise.
10687 (memq_no_quit): Delete.
10688
10689 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10690 call of Ffont_xlfd_name.
10691
10692 * xfaces.c (struct table_entry, slant_table, weight_table)
10693 (swidth_table): Move to font.c.
10694
10695 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10696 xassert are changed to font_assert. Delete many unused variables.
10697 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10698 New variables.
10699 (struct table_entry): Move from xfaces.c and modified.
10700 (weight_table, slant_table, width_table): Move from xfaces.c and
10701 contents adjusted for the change of struct table_entry.
10702 (font_style_to_value, font_style_symbolic): Adjust for the
10703 format change of font_style_table.
10704 (font_parse_family_registry): Don't overwrite existing foundry and
10705 family of font_spec.
10706 (font_score): Fix calculation of diff for sizes.
10707 (font_sort_entites): Call font_add_log.
10708 (font_delete_unmatched): Return a newly created list.
10709 (font_list_entities): Fix previous change. Call font_add_log.
10710 (font_matching_entity, font_open_entity, font_close_entity):
10711 Call font_add_log.
10712 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10713 (Finternal_set_font_style_table): Delete.
10714 (BUILD_STYLE_TABLE): New macro.
10715 (build_style_table): New function.
10716 (Vfont_log, font_log_env_checked): New variables.
10717 (font_add_log): New function.
10718 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10719 Declare Lisp variables "font-weight-table", "font-slant-table",
10720 "font-width-table", and "font-log". Initialize font_style_table.
10721
107222008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10723
10724 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10725
107262008-05-21 Seiji Zenitani <zenitani@mac.com>
10727 Ryo Yoshitake <ryo@shiftmode.net>
10728
10729 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10730 (Vframe_alpha_lower_limit): New variable.
10731 (x_set_alpha): New function.
10732
10733 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10734
10735 * xfns.c (x-create-frame, Qalpha):
10736 Initialize the frame parameter `alpha'.
10737 * xterm.c (OPAQUE, OPACITY): New.
10738 (x_set_frame_alpha): New function.
10739 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10740
10741 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10742 * w32fns.c (w32_frame_parm_handlers): Likewise.
10743
107442008-05-20 Jason Rumney <jasonr@gnu.org>
10745
10746 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10747 truetype fonts to opentype list.
10748
107492008-05-20 Juanma Barranquero <lekktu@gmail.com>
10750
10751 * fontset.c (Ffontset_info): Doc fix.
10752 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10753 <ignore-relative-composition>: Fix typos in docstrings.
10754
10755 * font.c (syms-of-font) <font-encoding-alist>:
10756 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10757 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10758 (Ffont_otf_alternates): Doc fixes.
10759
107602008-05-20 Kenichi Handa <handa@m17n.org>
10761
10762 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10763 font.h through out the file.
10764 (FONT_DRIVERS): Rename from FONTOBJ.
10765 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10766 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10767
10768 * emacs.c (main): Call syms_of_font unconditionally.
10769
10770 * font.h (find_font_encoding): Extern it.
10771
10772 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10773 fontset.c.
194d44e7 10774 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
10775 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10776 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10777 only when HAVE_WINDOW_SYSTEM is defined.
10778 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10779 when HAVE_WINDOW_SYSTEM is defined.
10780
10781 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10782 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10783
10784 * xfaces.c: Include font.h unconditionally.
10785 (merge_face_ref, merge_face_vectors)
10786 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10787
107882008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10789
10790 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10791 indirect_variable.
10792 * eval.c (lisp_indirect_variable): New fun.
10793 (Fuser_variable_p): Use it.
10794
107952008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10796
10797 * lisp.h (indirect_variable):
10798 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10799 Use Lisp_Symbol pointers rather than Lisp_Object.
10800 Adjust callers.
10801 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10802 To this end, change calling-convention.
10803
10804 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10805 if some non-hidden buffers are selected by string&pred.
10806
108072008-05-19 Chong Yidong <cyd@stupidchicken.com>
10808
10809 * process.c (wait_reading_process_output): Always check status
10810 when in batch mode.
10811
108122008-05-19 Kenichi Handa <handa@m17n.org>
10813
10814 * font.c (font_list_entities): Fix handling of cache.
10815 (font_matching_entity): Likewise.
10816
10817 * ftfont.c (cs_iso8859_1): Delete.
10818 (ft_face_cache): New variable.
10819 (struct ftfont_info): New member fc_charset_idx.
10820 (ftfont_build_basic_charsets): Delete.
10821 (fc_charset_table): New variable.
10822 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10823 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10824 Callers changed.
10825 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10826 (ftfont_spec_pattern): New argument fc_charset_idx.
10827 Check registry more rigidly. Change callers.
10828 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10829 change of :font-entity property of the font.
10830
10831 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10832 property of the font.
10833
108342008-05-18 Juanma Barranquero <lekktu@gmail.com>
10835
10836 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10837 (Funencodable_char_position, Fcheck_coding_systems_region)
10838 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10839 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10840 (Ffind_operation_coding_system, Fset_coding_system_priority)
10841 (Fcoding_system_eol_type): Doc fixes.
10842
108432008-05-17 Glenn Morris <rgm@gnu.org>
10844
10845 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10846
108472008-05-16 Eli Zaretskii <eliz@gnu.org>
10848
10849 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10850 and st_gid.
10851
10852 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10853 HAVE_WINDOW_SYSTEM is not defined.
10854
10855 * xfaces.c (merge_face_ref, merge_face_vectors)
10856 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10857 HAVE_WINDOW_SYSTEM is defined.
10858 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10859
108602008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10861
10862 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10863
108642008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10865
10866 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10867
108682008-05-15 Kenichi Handa <handa@m17n.org>
10869
10870 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10871 preference.
10872
108732008-05-15 Glenn Morris <rgm@gnu.org>
10874
10875 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10876
108772008-05-15 Chong Yidong <cyd@stupidchicken.com>
10878
10879 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10880 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10881
10882 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10883
108842008-05-15 Kenichi Handa <handa@m17n.org>
10885
10886 * ftfont.c (ftfont_list): Downcase family name to check generic
10887 families.
10888
10889 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10890 font-spec for QCfont value.
10891
10892 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10893 buffer. Check the return value of it.
10894
108952008-05-14 Jason Rumney <jasonr@gnu.org>
10896
10897 * w32term.c (w32_get_glyph_overhangs): Remove.
10898 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10899
109002008-05-14 Kenichi Handa <handa@m17n.org>
10901
10902 * font.c (font_prop_validate): Make nil a valid value.
10903 (font_clear_cache): Check if the cached vector of entities is nil
10904 or not.
10905
109062008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10907
10908 * emacs.c (main_thread): Conditionalize on
10909 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10910 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10911
10912 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10913 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10914 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10915
109162008-05-14 Kenichi Handa <handa@m17n.org>
10917
10918 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10919 has no corresponding coding system.
10920
109212008-05-14 Jason Rumney <jasonr@gnu.org>
10922
10923 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10924
10925 * w32font.h (w32font_open_internal): Update declaration.
10926
10927 * w32font.c (w32font_open_internal): Change last argument from
10928 w32font_info struct to font object. Fill in font object from
10929 font_entity. Get Outline metrics if possible. Use them to
10930 calculate underline position and thickness. Use xlfd name as name
10931 property. Don't set codepage.
10932 (w32font_open): Pass font_object to w32font_open_internal. Don't
10933 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10934 (w32font_draw): Use s->font.
10935 (clear_cached_metrics): Don't clear non-existent blocks.
10936
10937 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10938 font was not found.
10939 (x_draw_glyph_string): Use underline position and thickness from font.
10940
10941 * w32uniscribe.c (uniscribe_open): Pass font_object to
10942 w32font_open_internal.
10943
109442008-05-14 Kenichi Handa <handa@m17n.org>
10945
10946 These changes are to delete all legacy font-handling codes, and
10947 make Emacs use only font-backends.
10948
10949 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10950 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10951
10952 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10953
10954 * charset.h (Vcharset_non_preferred_head)
10955 (Vcurrent_iso639_language): Extern them.
10956
10957 * charset.c (Vcharset_non_preferred_head): New variable.
10958 (Vcurrent_iso639_language): New variable.
10959 (syms_of_charset): Declare it as a Lisp variable.
10960 (char_charset): Don't check non preferred charsets. As a last
10961 resort, return charset_unicode.
10962 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10963
10964 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10965 conditionals. Don't check enable_font_backend. Delete all codes
10966 used only when USE_FONT_BACKEND is not defined.
10967
10968 * dispextern.h (struct glyph_string): Change type of `font' to
10969 `struct font *'.
10970 (struct glyph_string): New member underline_position and
10971 underline_thickness.
10972 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10973 (struct face): Change type of `font' to `struct font *'. Remove
10974 members `font_name', `font_info_id'.
10975 (per_char_metric, encode_char): Delete externs.
10976 (calc_pixel_width_or_height): Adjust the prototype.
10977
10978 * emacs.c (enable_font_backend): Delete extern.
10979 (main): Don't set enable_font_backend. Don't check the command
10980 line argument "-disable-font-backend".
10981
10982 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10983 (enum font_property_index): New members FONT_DPI_INDEX,
10984 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10985 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10986 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10987 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10988 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10989 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10990 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10991 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10992 (struct font_spec, struct font_entity): New structs.
10993 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10994 (struct font): Many members from old "struct font_info" moved to
10995 here. Members font and entity deleted.
10996 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10997 the new font-related objects.
10998 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10999 (CHECK_FONT_GET_OBJECT): Likewise.
11000 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11001 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11002 (struct font_driver): New members case_sensitive anc check. Type
11003 of the member list and open changed.
11004 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11005 (font_symbolic_width, font_find_object, font_get_spec)
11006 (font_set_lface_from_name): Delete extern.
11007 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11008
11009 * font.c: Include <strings.h>.
11010 (enable_font_backend): Delete it.
11011 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11012 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11013 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11014 (null_string): Delete it.
11015 (null_vector): Make it static.
11016 (font_family_alist): Delete it.
11017 (Qnormal): Extern it.
11018 (QCextra, QClanguage): Delete it.
11019 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11020 (font_make_spec, font_make_entity, font_make_object)
11021 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11022 the string. Callers changed.
11023 (font_pixel_size): Adjusted for the format change of font-related
11024 objects.
11025 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11026 (font_style_to_value, font_style_symbolic): New function.
11027 (build_font_family_alist): Delete it.
11028 (font_registry_charsets): Use Fassoc_string instead of
11029 assq_no_quit.
11030 (font_prop_validate_symbol): Don't return null_string.
11031 (font_prop_validate_style): Adjusted for the change of
11032 style-related values in a font vector.
11033 (font_property_table): Delete entries for QClanguage and
11034 QCantialias, add entries for QCavgwidth.
11035 (get_font_prop_index): Delete the 2nd argument FROM.
11036 (font_prop_validate): Arguments changed.
11037 (font_put_extra): Adjusted for the change of font-related objects.
11038 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11039 (font_parse_fcname, font_unparse_fcname)
11040 (font_prepare_composition): Likewise.
11041 (font_parse_family_registry): Renamed from font_merge_old_spec.
11042 (otf_open): Delete the 1st arg entity.
11043 (font_otf_capability): Adjusted for the above change.
11044 (font_score): New arg alternate_families. Adjusted for the change
11045 of font-related objects.
11046 (font_sort_entites): New arg best_only.
11047 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11048 Delete them.
11049 (font_match_p): Check alternate families.
11050 (font_find_object): Delete it.
11051 (font_check_object): New function.
11052 (font_clear_cache): Adjusted for the change of font-related objects.
11053 (font_delete_unmatched): New arg.
11054 (font_list_entities): Call font_driver->list with a spec that
11055 doesn't specify style-related properties.
11056 (font_matching_entity): Arguments changed. Caller changed.
11057 (font_open_entity): Adjusted for the change of font-related objects.
11058 (font_close_object, font_has_char, font_encode_char)
11059 (font_get_name, font_get_spec): Likewise.
11060 (font_spec_from_name, font_clear_prop, font_update_lface):
11061 New functions.
11062 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11063 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11064 (font_at): Adjusted for the change of font-related objects.
11065 (font_range): New function.
11066 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11067 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11068 (Fcopy_font_spec, Fmerge_font_spec): New function.
11069 (Ffont_family_list): Renamed from list-families.
11070 (Finternal_set_font_style_table): Arguments changed.
11071 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11072 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11073 change of font-related objects.
11074 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11075
11076 * fontset.h (struct font_info): Delete it. Most members go to
11077 struct font.
11078 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11079 (enum FONT_SPEC_INDEX): Delete it.
11080 (font_info, list_fonts_func, load_font_func, query_font_func)
11081 (set_frame_fontset_func, find_ccl_program_func)
11082 (get_font_repertory_func, new_fontset_from_font_name): Delete
11083 externs.
11084 (fontset_from_font_name): Extern it.
11085 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11086 (FONT_INFO_FROM_FACE): Deleted.
11087 (face_for_font): Adjust prototype.
11088
11089 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11090 conditionals. Don't check enable_font_backend. Delete all codes
11091 used only when USE_FONT_BACKEND is not defined.
11092 (get_font_info_func, list_font_func, load_font_func)
11093 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11094 (get_font_repertory_func): Delete them.
11095 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11096 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11097 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11098 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11099 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11100 (fontset_compare_rfontdef): New function.
11101 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11102 rfont-defs by qsort. Adjusted for the change of font-group vector.
11103 (load_font_get_repertory): Deleted.
11104 (fontset_find_font): Use new macros to ref/set elements of
11105 font-def and rfont-def.
11106 (fontset_font): Fix the timing of remembering that no font for C.
11107 (free_face_fontset): Do nothing if the face has no fontset.
11108 (face_suitable_for_char_p): Use new macros to ref/set elements of
11109 rfont-def.
11110 (face_for_char): Likewise. Call face_for_char with font_object.
11111 (fs_load_font): Delete. Delete #pragma surrounding it.
11112 (fs_query_fontset): Use strcasecmp instead of strcmp.
11113 (generate_ascii_font_name): Adjusted for the format change of
11114 font-spec.
11115 (Fset_fontset_font): Likewise. Use new macros to set elements of
11116 font-def.
11117 (Fnew_fontset): Use font_unparse_xlfd to generate
11118 FONTSET_ASCII (fontset).
11119 (new_fontset_from_font_name): Deleted.
11120 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11121 a fontset is already created for the font. FIx updating of
11122 Vfontset_alias_alist.
11123 (fontset_ascii_font): Deleted.
11124 (Ffont_info): Adjusted for the format change of font-spec.
11125 (Finternal_char_font): Likewise.
11126 (Ffontset_info): Likewise.
11127 (syms_of_fontset): Don't check load_font_func.
11128
11129 * fns.c (internal_equal): Handle PREV_FONT.
11130
11131 * frame.h: Delete USE_FONT_BACKEND conditional.
11132
11133 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11134 conditionals. Don't check enable_font_backend. Delete all codes
11135 used only when USE_FONT_BACKEND is not defined.
11136 (x_set_font): Call x_new_font, not x_new_fontset2.
11137 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11138 already set for the frame.
11139
11140 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11141 a font-entity by font_make_entity. Use font_intern_prop instead
11142 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11143 font property. If a font is scalable, set avgwidth property to 0.
11144 Set font-entity property by font_put_extra.
11145 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11146 (ffont_driver): Adjusted for the change of struct font_driver.
11147 (ftfont_spec_pattern): New function.
11148 (ftfont_list): Return a list, not vector.
11149 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11150 (ftfont_list_family): Don't downcase names.
11151 (ftfont_free_entity): Deleted.
11152 (ftfont_open): Return a font-object. Adjusted for the change of
11153 struct font. Get underline_thickness and underline_position from
11154 font property. Don't update dpyinfo->smallest_font_height and
11155 dpyinfo->smallest_char_width.
11156 (ftfont_close): Don't free `struct font'.
11157 (ftfont_has_char): Adjusted for the format change of font-entity.
11158 (ftfont_encode_char, ftfont_text_extents): Likewise.
11159
11160 * ftxfont.c (ftxfont_list): Return a list, not vector.
11161 (ftxfont_open): Return a font-object. Adjusted for the change of
11162 struct font. Get underline_thickness and underline_position from
11163 font property. Don't update dpyinfo->smallest_font_height and
11164 dpyinfo->smallest_char_width.
11165 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11166 (ftxfont_draw): Adjusted for the change of struct font.
11167
11168 * image.c (image_ascent): Don't include "charset.h". Include
11169 "character.h" and "font.h".
11170
11171 * lisp.h (enum pvec_type): New member PREV_FONT.
11172 (Fassoc_string): EXFUN it.
11173
11174 * print.c: Include font.h.
11175 (print_object): Handle font-related objects.
11176
11177 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11178 conditionals. Don't check enable_font_backend. Delete all codes
11179 used only when USE_FONT_BACKEND is not defined.
11180 (handle_auto_composed_prop): Do nothing if it->f is not on a
11181 window system. Check how many following characters can be
11182 displayed by the same font.
11183 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11184 'struct font *'.
11185 (get_char_face_and_encoding): Assign the whole encoding task to
11186 the `encode-char' method of a font driver.
11187 (fill_composite_glyph_string): Adjusted for the change of `struct
11188 face' and `struct glyph_string'.
11189 (fill_glyph_string): Likewise.
11190 (get_per_char_metric): Arguments changed.
11191 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11192 and `struct glyph_string'.
11193 (produce_stretch_glyph, calc_line_height_property)
11194 (x_produce_glyphs): Likewise.
11195
11196 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11197 conditionals. Don't check enable_font_backend. Delete all codes
11198 used only when USE_FONT_BACKEND is not defined. Use
11199 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11200 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11201 (Qp): Extern them.
11202 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11203 Deleted.
11204 (struct font_name): Deleted.
11205 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11206 (compare_fonts_by_sort_order): New function.
11207 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11208 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11209 Deleted.
11210 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11211 compare_fonts_by_sort_order.
11212 (Fx_font_family_list): Call Ffont_family_list.
11213 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11214 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11215 (face_symbolic_slant, face_symbolic_swidth)
11216 (split_font_name_into_vector, build_font_name_from_vector)
11217 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11218 (font_rescale_ratio, split_font_name, build_font_name)
11219 (free_font_names, sort_fonts, x_face_list_fonts)
11220 (face_font_available_p, sorted_font_list, cmp_font_names)
11221 (font_list_1, concat_font_list, font_list, remove_duplicates):
11222 Deleted.
11223 (Fx_list_fonts): Use Ffont_list.
11224 (LFACE_AVGWIDTH): Deleted.
11225 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11226 by FONTP.
11227 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11228 (set_lface_from_font_name): Delete it.
11229 (set_lface_from_font): Renamed from
11230 set_lface_from_font_and_fontset. Caller changed. Don't set
11231 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11232 for face.
11233 (merge_face_vectors): Copy font-spec if necessary.
11234 Clear properties of the font-spec if necessary.
11235 (merge_face_ref): Clear properties of the font-spec if necessary.
11236 (Finternal_set_lisp_face_attribute): Likewise.
11237 (set_font_frame_param): Use font_load_for_lface to load a
11238 font-object, and call Fmodify_frame_parameters with it.
11239 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11240 font name by Ffont_xlfd_name.
11241 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11242 QCslant, and QCwidth.
11243 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11244 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11245 Compare fonts by EQ.
11246 (lookup_non_ascii_face): Deleted.
11247 (face_for_font): The 2nd argument changed.
11248 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11249 Check atomic font properties by case insensitive.
11250 (realize_non_ascii_face): Set face->overstrike correctly.
11251 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11252 (dump_realized_face): Get font name from
11253 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11254
11255 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11256 conditionals. Don't check enable_font_backend. Delete all codes
11257 used only when USE_FONT_BACKEND is not defined.
11258 (xic_create_xfontset): Original code deleted and renamed from
11259 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11260 (x_make_gc): Don't set GCFont in GCs.
11261 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11262 opened by "fixed".
11263 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11264 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11265 get_font_repertory_func.
11266
11267 * xfont.c: Include <stdlib.h> and "ccl.h".
11268 (struct xfont_info): New structure.
11269 (xfont_query_font): Deleted.
11270 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11271 moved from xterm.c.
11272 (xfont_driver): Adjusted for the change of struct font_driver.
11273 (compare_font_names): New function.
11274 (xfont_list_pattern): Sort font names case insensitively. Make
11275 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11276 (xfont_list): Return a list, not vector.
11277 (xfont_match): If the font doesn't have QCname property, generate
11278 a name from the other font properties.
11279 (xfont_open): Return a font-object. Adjusted for the change of
11280 struct font. Get underline_thickness and underline_position from
11281 font property. Don't update dpyinfo->smallest_font_height and
11282 dpyinfo->smallest_char_width.
11283 (xfont_close): Don't free struct font.
11284 (xfont_prepare_face): Adjusted for the change of struct font.
11285 (xfont_done_face): Deleted.
11286 (xfont_has_char): Adjusted for the change of struct font.
11287 (xfont_encode_char, xfont_draw): Likewise.
11288 (xfont_check): New function.
11289
11290 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11291 callback function.
11292 (xftfont_match): Adjusted for the format change of font-entity.
11293 (xftfont_open): Adjusted for the format change of font-entity and
11294 font-object. Adjusted for the change of struct font. Return a
11295 font-object. Don't update dpyinfo->smallest_font_height and
11296 dpyinfo->smallest_char_width.
11297 (xftfont_close): Block input while calling XftFontClose.
11298 (xftfont_prepare_face): Don't block input while calling
11299 xftfont_get_colors. Adjusted for the change of struct font.
11300 (xftfont_shape): Return value of error case fixed.
11301
11302 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11303
11304 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11305 conditionals.
11306 (FONT_WIDTH): Return (f)->max_width.
11307 (struct x_display_info): Delete member `font'.
11308 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11309 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11310 (struct x_output): Change type of `font' to `struct font *'.
11311
11312 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11313 conditionals. Don't check enable_font_backend. Delete all codes
11314 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11315 (x_per_char_metric, x_encode_char): Deleted.
11316 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11317 (x_compute_glyph_string_overhangs): Adjusted for the change of
11318 `struct face'.
11319 (x_draw_glyph_string_foreground)
11320 (x_draw_composite_glyph_string_foreground): Likewise.
11321 (x_draw_glyph_string): Likewise. Use font->underline_position and
11322 font->underline_thickness.
11323 (x_new_font): Renamed from x_new_fontset2.
11324 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11325 (x_check_font): Call `check' method of a font driver.
11326 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11327 (x_query_font, x_get_font_repertory): Deleted.
11328 (x_find_ccl_program): Renamed and moved to xfont.c.
11329 (x_redisplay_interface): Adjusted for the change of `struct
11330 redisplay_interface'.
11331
11332 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11333 conditionals. Don't check enable_font_backend. Delete all codes
11334 used only when USE_FONT_BACKEND is not defined. Surround non-used
11335 code by "#ifdef OLD_FONT" and "endif".
11336 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11337
11338 * w32font.h (struct w32font_info): New member.
11339 (FONT_COMPAT): New macro.
11340 (w32font_open_internal): Prototype adjusted.
11341
11342 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11343 OLD_FONT" and "endif".
11344
11345 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11346 conditionals. Don't check enable_font_backend. Delete all codes
11347 used only when USE_FONT_BACKEND is not defined.
11348 (w32font_open): Return a font-object. Make a font-object by
11349 font_make_object. Adjusted for the change of struct w32font_info.
11350 (w32font_close): Don't free struct font. Adjusted for the change
11351 of struct w32font_info.
11352 (w32font_encode_char, w32font_text_extents, w32font_draw):
11353 Adjusted for the change of struct w32font_info.
11354 (w32font_draw): Likewise.
11355 (w32font_list_internal): Return a list, not vector.
11356 (w32font_open_internal): Change the 4th arg to font-object.
11357 Adjusted for the change of struct w32font_info and font-object format.
11358 (add_font_name_to_list): Don't downcase names.
11359 (w32_enumfont_pattern_entity): Make a font-entity by
11360 font_make_entity. Adjusted for the format change of font-entity.
11361 Use FONT_SET_STYLE to set a style-related font property. If a
11362 font is scalable, set avgwidth property to 0. Set font-entity
11363 property by font_put_extra.
11364 (font_matches_spec): Adjusted for the format change of font-entity.
11365 (w32_weight_table, w32_decode_weight): New variables.
11366 (w32_encode_weight): New function.
11367 (fill_in_logfont): Adjusted for the format change of font-spec.
11368 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11369 weight value.
11370 (w32font_driver): Adjusted for the change of struct font_driver.
11371
11372 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11373 conditionals. Don't check enable_font_backend. Surround non-used
11374 code by "#ifdef OLD_FONT" and "endif".
11375 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11376 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11377
11378 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11379 conditionals. Don't check enable_font_backend. Delete all codes
11380 used only when USE_FONT_BACKEND is not defined. Surround non-used
11381 code by "#ifdef OLD_FONT" and "endif".
11382
11383 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11384 (uniscribe_open): Return value changed to font-object.
11385 Adjusted for the format change of font-object.
11386 (uniscribe_otf_capability): Adjusted for the change of struct font.
11387 (add_opentype_font_name_to_list): Don't downcase names.
11388 (uniscribe_font_driver): Adjusted for the change of struct
11389 font_driver.
11390
113912008-05-13 Chong Yidong <cyd@stupidchicken.com>
11392
11393 * dispnew.c (update_frame_1): Check if tty output is still valid
11394 before flushing it.
11395
113962008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11397
11398 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11399 to Gtk+ menus.
11400
114012008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11402
11403 * dired.c (file_name_completion): Tweak the code so as to always do it
11404 in a single pass. Tighten the scope of some variables.
11405
11406 * dired.c (Qdefault_directory): New var.
11407 (file_name_completion): Use it instead of Fexpand_file_name.
11408 (syms_of_dired): Initialize it.
11409
114102008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11411
11412 * fileio.c (double_dollars): Remove dead code.
11413
114142008-05-10 Eli Zaretskii <eliz@gnu.org>
11415
11416 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11417 Mention w32-get-true-file-attributes in doc string.
11418
11419 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11420
114212008-05-09 Glenn Morris <rgm@gnu.org>
11422
11423 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11424 2008-04-23.
11425
114262008-05-09 Eli Zaretskii <eliz@gnu.org>
11427
11428 Support for reporting owner and group of each file on MS-Windows:
11429 * dired.c (stat_uname, stat_gname): New functions, with special
11430 implementation for w32.
11431 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11432
11433 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11434 (dflt_group_name): New static variable.
11435 (dflt_group): Rename from the_group.
11436 (init_user_info): Init dflt_group fields. Get user's group name
11437 from LookupAccountSid.
11438 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11439 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11440 New initialization states.
11441 (globals_of_w32): Initialize them to zero. Initialize the default
11442 group name to "None".
11443 (GetFileSecurity_Name): New global var, the name of the function
11444 to call for GetFileSecurity.
11445 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11446 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11447 (get_file_security, get_security_descriptor_owner)
11448 (get_security_descriptor_group, is_valid_sid)
11449 (get_file_security_desc, get_rid, get_name_and_id)
11450 (get_file_owner_and_group): New functions.
11451 (stat): Use get_file_security_desc and get_file_owner_and_group to
11452 report the owner and primary group of each file. Don't ignore the
11453 high 32 bits of file's size, now that st_size is 64-bit wide.
11454 Fix test when to get true file attributes.
11455 (init_user_info): Use get_rid instead of equivalent inline code.
11456 (fstat): Don't ignore the high 32 bits of file's size.
11457
114582008-05-09 Chong Yidong <cyd@stupidchicken.com>
11459
11460 * image.c (png_load): Use correct bit-depth for setting background
11461 color.
11462
114632008-05-08 Eli Zaretskii <eliz@gnu.org>
11464
11465 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11466 epa-hook.elc.
11467
114682008-05-08 Juanma Barranquero <lekktu@gmail.com>
11469
11470 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11471
114722008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11473
11474 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11475 because the original parameters are in pure storage now.
11476 (mac_window): Remove unused params. Update callers.
11477
114782008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11479
11480 * lread.c (substitute_object_recurse): Use lower-level primitives.
11481 Don't signal errors when traversing sub-char-tables.
11482 Don't loop over all the possible characters when traversing char-tables.
11483
11484 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11485 just like we do in print.c.
11486
114872008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11488
11489 * minibuf.c (Ftry_completion): Remove code left over from when we used
11490 scmp instead of Fcompare_strings.
11491
114922008-05-04 Juanma Barranquero <lekktu@gmail.com>
11493
11494 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11495
114962008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11497
11498 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11499 Create bitmap context in native byte order.
11500
11501 * macterm.c (XDrawLine)
11502 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11503 context in native byte order.
11504
115052008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11506
11507 * config.in: Regenerate.
11508
11509 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11510 New definitions for Image I/O support.
11511 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11512 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11513 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11514 (mac_data_provider_release_data, image_load_image_io)
11515 [USE_MAC_IMAGE_IO]: New functions.
11516 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11517 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11518 (init_image_func_pointer) [MAC_OSX]: Remove function.
11519 (image_load_quartz2d) [MAC_OSX]: Check availability of
11520 CGImageCreateWithPNGDataProvider at compile time.
11521 Use lowercase `false' for boolean constant.
11522 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11523 Use image_load_image_io.
11524 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11525 Don't check MyCGImageCreateWithPNGDataProvider.
11526 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11527 Don't call init_image_func_pointer.
11528
11529 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11530
11531 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11532 Make variable non-static.
11533 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11534 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11535
11536 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11537 (RED_FROM_ULONG): Mask off higher bits.
11538 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11539
11540 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11541 Include AvailabilityMacros.h.
11542 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11543 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11544
115452008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11546
11547 * chartab.c (Fset_char_table_range): If range is t, really set all
11548 chars to that value.
11549
115502008-05-03 Eli Zaretskii <eliz@gnu.org>
11551
11552 * dired.c (Ffile_attributes): Don't allow the device number become
11553 negative.
11554
115552008-05-02 Daiki Ueno <ueno@unixuser.org>
11556
11557 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11558
115592008-05-02 Juri Linkov <juri@jurta.org>
11560
11561 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11562 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11563 DEFAULT argument as a list of default values in docstrings.
11564
115652008-05-01 Chong Yidong <cyd@stupidchicken.com>
11566
11567 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11568
115692008-05-01 Martin Rudalics <rudalics@gmx.at>
11570
11571 * dispnew.c (change_frame_size_1): Preserve small windows when
11572 shrinking frames by calling set_window_height|width with third
11573 arg 2.
11574
11575 * window.h (struct window): Replace field too_small_ok by field
11576 resize_proportionally.
11577
11578 * window.c (make_window): Initialize resize_proportionally.
11579 (enlarge_window): Temporarily set resize_proportionally to make
11580 sure that shrink_windows does scale the window proportionally.
11581 (shrink_windows): When window has resize_proportionally set try
11582 to shrink it proportionally by stealing from other windows.
11583 (struct saved_window, Fset_window_configuration)
11584 (compare_window_configurations): Handle resize_proportionally.
11585 (WINDOW_TOTAL_SIZE): New macro.
11586 (window_min_size, shrink_windows, size_window): Use it.
11587 (check_min_window_sizes): Remove. Invalid values of
11588 window-min-height|width are handled by window_min_size_2 now.
11589 (size_window, Fsplit_window, enlarge_window)
11590 (adjust_window_trailing_edge, grow_mini_window): Don't call
11591 check_min_window_sizes.
11592 (window_min_size_2, window_min_size_1, window_min_size):
11593 New argument safe_p for retrieving "safe" minimum sizes.
11594 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11595 (adjust_window_trailing_edge, grow_mini_window):
11596 Adjust arguments of window_min_size... functions.
11597 (shrink_windows): Argument min_size removed. New argument
11598 safe_p allows shrinking windows to their safe minimum sizes.
11599 Calculate minimum size and decide whether a window shall be
11600 deleted for each window individually.
11601 (size_window): When nodelete_p equals 2, tell shrink_windows to
11602 delete windows only if their new minimum size is no more safe.
11603 (shrink_window_lowest_first): Call window_min_size_1 to make
11604 sure to preserve modeline of bottom-most window when resizing
11605 the minibuffer.
11606 (Fset_window_configuration, Fcurrent_window_configuration)
11607 (compare_window_configurations): Do not handle
11608 window-min-height|width any more.
11609 (syms_of_window): Clarify window-min-height|width doc-strings.
11610
116112008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11612
11613 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11614 some more. Copy some of the code from Ftry_completions.
11615 Remove special case code that dates back to initial revision when the
11616 slash was only added when necessary and that can't trigger nowadays.
11617
116182008-04-27 Kenichi Handa <handa@m17n.org>
11619
11620 * font.c (font_prop_validate): Signal `error' instead of `font'.
11621
116222008-04-29 Jason Rumney <jasonr@gnu.org>
11623
11624 * w32fns.c (Fw32_battery_status): New defun.
11625 (syms_of_w32fns): Defsubr it.
11626
116272008-04-28 Andreas Schwab <schwab@suse.de>
11628
11629 * dired.c (file_name_completion): Fix another mixing of encoded
11630 and decoded names.
11631
116322008-04-28 Juanma Barranquero <lekktu@gmail.com>
11633
11634 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11635
116362008-04-27 Juanma Barranquero <lekktu@gmail.com>
11637
11638 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11639
116402008-04-27 Andreas Schwab <schwab@suse.de>
11641
11642 * dired.c (file_name_completion): Fix inappropriate mixing of
11643 encoded and decoded names.
11644
11645 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11646
11647 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11648
116492008-04-26 Eli Zaretskii <eliz@gnu.org>
11650
11651 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11652 2008-03-31, it's not needed anymore with `struct stat' definition
11653 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11654 for the same reasons.
11655
116562008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11657
11658 * m/sparc.h: Additional redefinitions for GNU/Linux.
11659
116602008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11661
11662 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11663 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11664 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11665 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11666 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11667 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11668 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11669 Likewise.
11670
11671 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11672 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11673 (mac_ax_number_of_characters): Add externs.
11674 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11675 [USE_MAC_TSM]: Likewise.
11676 (mac_handle_text_input_event) [MAC_OSX]:
11677 Handle kEventTextInputOffsetToPos for no active input area case.
11678 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11679 (mac_handle_document_access_event)
11680 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11681 (install_application_handler) [MAC_OSX]: Register handlers for
11682 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11683 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11684 Register mac_handle_document_access_event.
11685
11686 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11687 Make functions non-static.
11688
116892008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11690
11691 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11692 (read_file_name_completion_ignore_case, insert_default_directory)
11693 (Qdefault_directory): Move to minibuffer.el.
11694 (Fread_file_name): Call the new `read-file-name' instead.
11695
116962008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11697
11698 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11699 Make function non-static.
11700 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11701 Remove function.
11702 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11703 Move to mactoolbox.c.
11704 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11705
11706 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11707 (mac_rect_make): New macro.
11708
11709 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11710 instead of float.
11711 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11712 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11713 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11714 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11715 CGRectMake.
11716 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11717 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11718 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11719 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11720 instead of WindowRef in argument type.
11721 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11722 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11723 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11724 instead of DISPLAY. All uses changed.
11725 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11726 (x_calc_absolute_position): Simplify so as not to use
11727 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11728
11729 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11730 instead of WindowRef in argument type.
11731 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11732 [TARGET_API_MAC_CARBON]: Remove externs.
11733 (create_apple_event, mac_event_parameters_to_lisp)
11734 [TARGET_API_MAC_CARBON]: Add externs.
11735
11736 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11737 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11738 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11739 is clicked.
11740 (x_activate_menubar): Remove extern for saved_menu_event_location.
11741 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11742 Move from mac.c.
11743
117442008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11745
11746 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11747 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11748
117492008-04-23 Jason Rumney <jasonr@gnu.org>
11750
11751 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11752 attributes only for local files.
11753
11754 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11755 default to Qlocal.
11756
117572008-04-22 Juri Linkov <juri@jurta.org>
11758
11759 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11760 read-buffer-to-switch instead of using the letter "B".
11761
117622008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11763
11764 * fileio.c (Qdefault_directory): New variable.
11765 (Fread_file_name): Use it to pass `dir' to the completion functions.
11766
117672008-04-20 Chong Yidong <cyd@stupidchicken.com>
11768
11769 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11770
117712008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11772
11773 * keyboard.c (Vpre_help_message): Remove.
11774 (show_help_echo): Remove default C code.
11775
11776 * dired.c (directory_files_internal, file_name_completion):
11777 Only call ENCODE_FILE if the string is indeed decoded.
11778
117792008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11780
11781 * Makefile.in (TOOLKIT_DEFINES): Remove.
11782 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11783
117842008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11785
11786 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11787 (mactoolbox.o): New target.
11788
11789 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11790 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11791
11792 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11793 Use mac_set_frame_window_background instead of XSetWindowBackground.
11794 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11795 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11796 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11797 instead of SetWindowTitleWithCFString.
11798 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11799 Move function to mactoolbox.c.
11800 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11801 Use mac_set_window_modified instead of SetWindowModified.
11802 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11803 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11804 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11805 FrontNonFloatingWindow. Use mac_activate_window instead of
11806 ActivateWindow. Use mac_active_non_floating_window instead of
11807 ActiveNonFloatingWindow.
11808 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11809 Use mac_show_hourglass and mac_hide_hourglass.
11810 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11811 instead of GetGlobalMouse.
11812 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11813 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11814 Use mac_bring_window_to_front instead of BringToFront.
11815 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11816 mactoolbox.c.
11817 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11818 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11819 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11820 mactoolbox.c.
11821
11822 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11823 (XtPointer): Move typedef from macmenu.c.
11824 (enum button_type): Move enum from macmenu.c.
11825 (widget_value): Move typedef from macmenu.c.
11826 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11827 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11828 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11829 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11830 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11831 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11832 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11833 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11834 (Selection): Move typedef from macselect.c.
11835 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11836 macterm.c.
11837 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11838 (mac_is_window_collapsed, mac_bring_window_to_front)
11839 (mac_send_window_behind, mac_hide_window, mac_show_window)
11840 (mac_collapse_window, mac_front_non_floating_window)
11841 (mac_active_non_floating_window, mac_activate_window)
11842 (mac_move_window_structure, mac_move_window, mac_size_window)
11843 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11844
11845 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11846 (enum mac_menu_kind): Move enum to mactoolbox.c.
11847 (min_menu_id): Move variable to mactoolbox.c.
11848 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11849 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11850 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11851 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11852 [TARGET_API_MAC_CARBON]: Likewise.
11853 (XtPointer): Move typedef to macgui.h.
11854 (enum button_type): Move enum to macgui.h.
11855 (widget_value): Move typedef to macgui.h.
11856 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11857 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11858 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11859 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11860 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11861 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11862 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11863 (popup_activated_flag): Make variable non-static.
11864 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11865 (add_menu_item, fill_menu, dispose_menus):
11866 Move functions to mactoolbox.c.
11867 (restore_show_help_function, menu_target_item_handler)
11868 (install_menu_target_item_handler, mac_handle_dialog_event)
11869 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11870 [TARGET_API_MAC_CARBON]: Likewise.
11871 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11872 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11873 (find_and_call_menu_selection, name_is_separator): Make function
11874 non-static.
11875 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11876 to mactoolbox.c.
11877 (set_frame_menubar): Don't call install_menu_quit_handler.
11878 (menu_item_selection): New variable.
11879 (mac_menu_show): Use create_and_show_popup_menu.
11880 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11881 selection but set variable menu_item_selection. All uses changed.
11882 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11883 Call install_menu_quit_handler. Move to mactoolbox.c.
11884
11885 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11886 (Selection): Move typedef to macgui.h.
11887 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11888 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11889 Make variables non-static.
11890 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11891 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11892 Make functions non-static.
11893 (Vmac_service_selection) [MAC_OSX]: Likewise.
11894 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11895 (mac_valid_selection_target_p, mac_clear_selection)
11896 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11897 (mac_put_selection_value, mac_selection_has_target_p)
11898 (mac_get_selection_value, mac_get_selection_target_list)
11899 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11900 Move functions to mactoolbox.c.
11901 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11902 Likewise.
11903 (copy_scrap_flavor_data, mac_handle_service_event)
11904 (install_service_handler) [MAC_OSX]: Likewise.
11905 (syms_of_macselect) <Vmac_dnd_known_types>:
11906 Use mac_dnd_default_known_types.
11907
11908 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11909 Move to mactoolbox.c.
11910 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11911 (Fx_selection_owner_p): Add EXFUN.
11912 (install_window_handler, remove_window_handler, XSetWindowBackground):
11913 Remove externs.
11914 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11915 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11916 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11917 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11918 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11919 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11920 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11921 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11922 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11923 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11924 (mac_valid_selection_target_p, mac_clear_selection)
11925 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11926 (mac_put_selection_value, mac_selection_has_target_p)
11927 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11928 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11929 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11930 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11931 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11932 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11933 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11934 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11935 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11936
11937 * mactoolbox.c: New file.
11938
119392008-04-18 Jason Rumney <jasonr@gnu.org>
11940
11941 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11942
119432008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11944
11945 * character.c (Fmultibyte_char_to_unibyte):
11946 Return latin1 chars unchanged.
11947
11948 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11949 relocated if it points to `name'.
11950
119512008-04-17 Kenichi Handa <handa@m17n.org>
11952
11953 * data.c (Faset): Allow setting a multibyte character in an
11954 ASCII-only unibyte string.
11955
11956 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11957
119582008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11959
11960 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11961 done in config.h.
11962
119632008-04-16 Juanma Barranquero <lekktu@gmail.com>
11964
11965 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11966 (Fchar_direction): Add usage in the docstring.
11967
119682008-04-15 Chong Yidong <cyd@stupidchicken.com>
11969
11970 * keyboard.c (read_key_sequence): Remove always-true checks.
11971
119722008-04-14 Jason Rumney <jasonr@gnu.org>
11973
11974 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11975 compatibility struct, for better underline positioning.
11976
119772008-04-13 David Hansen <david.hansen@gmx.net>
11978
11979 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11980 string.
11981
119822008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11983
11984 * m/hp800.h (XUINT, XSET): Remove.
11985
119862008-04-12 Juanma Barranquero <lekktu@gmail.com>
11987
11988 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11989 previous change.
11990
119912008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11992
11993 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11994 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11995
119962008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11997
11998 * keymap.h (map_keymap_canonical): Declare.
11999 * xmenu.c (single_keymap_panes): Use it.
12000
120012008-04-11 Glenn Morris <rgm@gnu.org>
12002
12003 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12004 set the target's value to that of the alias.
12005
120062008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12007
12008 * term.c (set_tty_color_mode): Left over typo.
12009
120102008-04-10 Michael Albinus <michael.albinus@gmx.de>
12011
12012 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12013 only after check for file name handler functions. Signal, when
12014 native functionality is not supported.
12015 (syms_of_fileio): Declare it unconditionally.
12016
120172008-04-10 Jason Rumney <jasonr@gnu.org>
12018
12019 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12020 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12021
12022 * w32.c (logon_network_drive): Also logon to remote drives that
12023 are mapped to drive letters.
12024
120252008-04-10 Glenn Morris <rgm@gnu.org>
12026
12027 * xdisp.c (truncate-partial-width-windows): Doc fix.
12028
120292008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12030
12031 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12032 Move functions to minibuffer.el.
12033 (syms_of_fileio): Don't declare them.
12034
120352008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12036
12037 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12038 (syms_of_minibuf): Remove its initialization.
12039
12040 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12041
120422008-04-09 Juanma Barranquero <lekktu@gmail.com>
12043
12044 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12045
120462008-04-09 Jason Rumney <jasonr@gnu.org>
12047
12048 * makefile.w32-in (distclean): Delete makefile too.
12049 (maintainer-clean): New target.
12050
12051 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12052
12053 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12054 for new font backend and composite cases.
12055
120562008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12057
12058 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12059 Most of the code moved to run_timers.
12060 (do_pending_atimers): Call run_timers.
12061 (run_timers): New function.
12062
12063 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12064 run atimers.
12065
12066 * process.c (wait_reading_process_output): The same as above.
12067
120682008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12069
12070 * minibuf.c (last_exact_completion): Remove variable.
12071 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12072 (complete_and_exit_1, complete_and_exit_2)
12073 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12074 (Fdisplay_completion_list, display_completion_list_1)
12075 (Fminibuffer_completion_help, Fself_insert_and_exit)
12076 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12077 minibuffer.el.
12078 (syms_of_minibuf): Remove corresponding initializations.
12079
12080 * keyboard.c (Qdeactivate_mark): New var.
12081 (command_loop_1): Use it to call `deactivate-mark'.
12082 (syms_of_keyboard): Initialize it.
12083
12084 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12085 to another frame.
12086 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12087 Don't call set_tty_color_mode.
12088 (store_frame_param): Reset previous_frame rather than call
12089 set_tty_color_mode.
12090 * term.c (set_tty_color_mode): Rewrite.
12091 * dispextern.h (set_tty_color_mode): New type.
12092 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12093
120942008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12095
12096 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12097 for generic chars, which do not exist any more in emacs-unicode.
12098
120992008-04-08 Michael Albinus <michael.albinus@gmx.de>
12100
12101 * coding.c (detect_coding_emacs_mule)
12102 (Ffind_operation_coding_system): Fix typo.
12103
121042008-04-08 Jason Rumney <jasonr@gnu.org>
12105
12106 * w32uniscribe.c (SNAME): Extract only symbol name.
12107
12108 * w32font.h (struct w32_metric_cache): New struct.
12109 (w32font_info): Use it.
12110 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12111 (CACHE_BLOCKSIZE): New constants.
12112
12113 * w32font.c (Qja, Qko, Qzh): New symbols.
12114 (syms_of_w32font): Initialise them.
12115 (font_matches_spec): Use them to filter by language.
12116 (recompute_cached_metrics): Remove function.
12117 (compute_metrics, clear_cached_metrics): New functions.
12118 (w32font_encode_char): Use them to manage metric cache.
12119 (w32font_text_extents): Cache metrics for all glyphs on demand.
12120 Delay converting glyph indices to WORD until needed.
12121 (w32font_open_internal): Initialize metric cache to empty.
12122 (registry_to_w32_charset): Charset should always be a symbol.
12123 (fill_in_logfont, list_all_matching_fonts): Family should
12124 always be a symbol.
12125
121262008-04-06 Jason Rumney <jasonr@gnu.org>
12127
12128 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12129 Give up if glyph indices not supported. Use uniscribe obtained
12130 ABC widths for individual metrics. Map glyph clusters back to
12131 characters using fClusterStart flag. Return number of glyphs
12132 produced, not chars processed.
12133 (uniscribe_shape): Map char at FROM to current glyph.
12134
121352008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12136
12137 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12138 Use SetMenuItemHierarchicalMenu.
12139
121402008-04-05 Jason Rumney <jasonr@gnu.org>
12141
12142 * image.c (pbm_load): Allow color values up to 65535.
12143 Throw an error if max_color_idx is outside the supported range.
12144 Report an error when image size is invalid.
12145 Read two bytes at a time when raw images have max_color_idx above 255.
12146
121472008-04-05 Eli Zaretskii <eliz@gnu.org>
12148
12149 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12150 cFileName a file name that includes `?' characters, use the 8+3
12151 alias in cAlternateFileName instead.
12152
121532008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12154
12155 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12156 append "CCL: Quitted" when the CCL program is quitted.
12157 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12158
12159 * ccl.h (struct ccl_program): New member quit_silently.
12160
121612008-04-05 Chong Yidong <cyd@stupidchicken.com>
12162
12163 * search.c (compile_pattern_1): Treat non-nil and non-string of
12164 search-spaces-regexp as nil.
12165
12166 * minibuf.c (Fassoc_string): Tweak docstring.
12167
121682008-04-05 Eli Zaretskii <eliz@gnu.org>
12169
12170 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12171 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12172 2008-03-14 to force inode be positive.
12173
12174 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12175 _S_* ones, since we now use our own sys/stat.h.
12176 (stat, fstat): Don't mangle the inode number.
12177 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12178
121792008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12180
12181 * frame.h (struct frame): Give one more bit to `visible' since we use
12182 values larger than 1 to indicate obscured frames on ttys.
12183
12184 * keymap.c (Qkeymap_canonicalize): New var.
12185 (Fmap_keymap_internal): New fun.
12186 (describe_map): Use keymap-canonicalize.
12187
12188 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12189 (Fundo_boundary): Set them.
12190 (syms_of_undo): Initialize them.
12191 (record_point): Use them instead of last_point_position*.
12192 (last_undo_buffer): Change type.
12193
121942008-04-04 Jason Rumney <jasonr@gnu.org>
12195
12196 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12197 (recompute_cached_metrics): Don't set ascent and descent per char.
12198
12199 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12200 (uniscribe_check_otf): Add GC protection before consing.
12201 Rearrange loop for counting features.
12202
122032008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12204
12205 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12206 buffer with byte-size of source buffer.
12207
122082008-04-03 Chong Yidong <cyd@stupidchicken.com>
12209
12210 * callint.c (Fcall_interactively): Handle temporary region even
12211 when shift-select-mode is off.
12212
122132008-04-03 Jason Rumney <jasonr@gnu.org>
12214
12215 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12216
122172008-04-03 Kenichi Handa <handa@m17n.org>
12218
12219 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12220 (CATEGORY_MASK_UTF_16): Likewise.
12221 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12222 binary file.
12223 (detect_coding): Add null-byte detection for a binary file.
12224 (detect_coding_system): Likewise.
12225
122262008-04-03 Jason Rumney <jasonr@gnu.org>
12227
12228 * w32uniscribe.c: New file.
12229
12230 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12231
12232 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12233
12234 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12235 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12236 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12237 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12238 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12239 (Qphonetic): New symbols.
12240 (syms_of_w32font): Initialize them.
12241 (font_supported_scripts): Use them.
12242 (w32font_list_family): List all charsets.
12243 (w32font_text_extents, recompute_cached_metrics): Fix metric
12244 calculations.
12245 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12246 Give opentype fonts their own format.
12247 (font_matches_spec): New arguments backend and logfont.
12248 Handle :otf spec for uniscribe backend.
12249 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12250 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12251
12252 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12253 font backend.
12254 (globals_of_w32fns): Initialize uniscribe font backend.
12255
12256 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12257 dependencies.
12258 (w32uniscribe.$(O)): New file to build.
12259 (FONT_OBJ): Include w32uniscribe.$(O).
12260 (LIBS): Add uniscribe libraries.
12261
12262 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12263
122642008-04-02 Chong Yidong <cyd@stupidchicken.com>
12265
12266 * callint.c (Vshift_select_mode): New var.
12267 (Finteractive): Document new ^ spec.
12268 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12269 is present.
12270
12271 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12272 (command_loop_1): Avoid running the direct display versions of
12273 forward-char and backward-char if shift-selection may occur.
12274 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12275 shift-translation takes place.
12276
12277 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12278 avoid clobbering by define-minor-mode.
12279
12280 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12281 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12282
12283 * syntax.c (Fforward_word): Add ^ interactive spec.
12284
12285 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12286 (Fscroll_right): Add ^ interactive spec.
12287
122882008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12289
12290 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12291
12292 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12293
12294 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12295
122962008-03-31 Juri Linkov <juri@jurta.org>
12297
12298 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12299
123002008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12301
12302 * gtkutil.c (xg_set_geometry): Fix indentation.
12303 (xg_resize_outer_widget): Remove.
12304 (x_wm_size_hint_off): Fix indentation.
12305 (xg_frame_set_char_size): Call flush_and_sync after
12306 gtk_window_resize.
12307 (x_wm_set_size_hint): Pass NULL as geometry window to
12308 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12309 Add menu bar and tool bar height to base height.
12310 (xg_update_frame_menubar, free_frame_menubar)
12311 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12312 (update_frame_tool_bar, free_frame_tool_bar):
12313 Change xg_resize_outer_widget to xg_frame_set_char_size.
12314
123152008-03-30 Michael Albinus <michael.albinus@gmx.de>
12316
12317 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12318 (Fdbus_call_method): New parameter TIMEOUT.
12319 (dbus-send-signal): Optimize UNGCPRO call.
12320
123212008-03-29 Juri Linkov <juri@jurta.org>
12322
12323 * window.c (Fdisplay_buffer): Move call to
12324 Vsplit_window_preferred_function out of conditions that check
12325 if window is eligible for vertical splitting.
12326 When Vsplit_window_preferred_function is non-nil, call it and use
12327 its non-nil return value as window. Otherwise, continue doing
12328 vertical splitting using Fsplit_window with arg horflag=nil.
12329 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12330 default value from `split-window' to nil.
12331
123322008-03-29 Juri Linkov <juri@jurta.org>
12333
12334 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12335 for interactive code letters 'b' and 'B'.
12336
123372008-03-29 Eli Zaretskii <eliz@gnu.org>
12338
12339 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12340 multibyte string.
12341
123422008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12343
12344 * keyboard.c (pending_funcalls): New var.
12345 (timer_check): Run it.
12346 (syms_of_keyboard): Initialize it.
12347 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12348 (Vdelete_terminal_functions): New vars.
12349 (syms_of_terminal): Initialize them.
12350 (Fdelete_terminal): Run delete-terminal-functions.
12351 * xdisp.c (safe_eval): Rewrite.
12352 (safe_call2): New fun.
12353 * frame.c (Qdelete_frame_functions): New var.
12354 (syms_of_frame): Initialize it.
12355 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12356 * lisp.h (safe_call2, pending_funcalls): Declare.
12357
123582008-03-28 Andreas Schwab <schwab@suse.de>
12359
12360 * indent.c (Fmove_to_column): Move declaration before statements.
12361
123622008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12363
12364 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12365 (struct frame): Use bit fields for boolean vars.
12366
12367 * process.c (server_accept_connection): Simplify naming.
12368 (emacs_get_tty_pgrp): Use SDATA.
12369
12370 * coding.c (decode_coding_object): Fix last change.
12371
123722008-03-27 Jason Rumney <jasonr@gnu.org>
12373
12374 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12375
123762008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12377
12378 * charset.c (Fdefine_charset_internal): Change the way of
12379 registering charsets in Vcharset_order_list.
12380 (syms_of_charset): Make the charset `eight-bit' supplementary.
12381
123822008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12383
12384 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12385 operations, to avoid having the difference between pointers
12386 overflow.
12387
123882008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12389
12390 * indent.c (check_display_width): New fun.
12391 (scan_for_column): Use it.
12392
12393 * data.c (syms_of_data): Mark most-positive-fixnum and
12394 most-negative-fixnum as constants.
12395
12396 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12397
12398 * indent.c (scan_for_column): Extract from current_column_1.
12399 Merge with the same code from Fmove_to_column.
12400 (current_column_1, Fmove_to_column): Use it.
12401
124022008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12403
12404 * keymap.c (map_keymap_internal): New fun.
12405 (map_keymap): Use it.
12406 (Fmap_keymap_internal): New fun.
12407 (Fmap_keymap): Remove left-out test from before make_save_value.
12408
12409 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12410
12411 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12412 Use XCAR/XCDR.
12413
12414 * process.h (struct Lisp_Process): Remove filter_multibyte.
12415 * process.c (QCfilter_multibyte): Remove.
12416 (setup_process_coding_systems): Don't use filter_multibyte.
12417 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12418 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12419 (Fset_process_filter_multibyte): Change the coding-system to
12420 approximate the previous behavior.
12421 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12422 coding-system.
12423
12424 * coding.c (decode_coding_object): When not decoding into a buffer,
12425 obey the coding system's preference of (uni|multi)byte.
12426
124272008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12428
12429 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12430 every char is changed and has a different byte-length.
12431 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12432 Fix int -> EMACS_INT.
12433
124342008-03-23 David Hansen <david.hansen@gmx.net>
12435
12436 * dbusbind.c (xd_read_message): Remove extra copying of message
12437 strings. Check for NULL `interface' or `member'.
12438
124392008-03-22 Eli Zaretskii <eliz@gnu.org>
12440
12441 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12442 cFileName a file name that includes `?' characters, use the 8+3
12443 alias in cAlternateFileName instead.
12444
124452008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12446
12447 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12448
124492008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12450
12451 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12452 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12453 work on current_buffer only instead (that was already the case
12454 for some of the code anyway).
12455 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12456 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12457 (SET_PT, SET_PT_BOTH): Adjust.
12458 * intervals.h (set_point, temp_set_point, set_point_both)
12459 (temp_set_point_both): Remove redundant declarations.
12460
124612008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12462
12463 * fileio.c (Finsert_file_contents):
12464 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12465 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12466 when buffer != current_buffer anyway.
12467
124682008-03-20 Andreas Schwab <schwab@suse.de>
12469
12470 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12471 as default.
12472
124732008-03-19 Jason Rumney <jasonr@gnu.org>
12474
12475 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12476 (syms_of_w32fns): Initialize them.
12477 (HOURGLASS_ID): New constant.
12478 (x_window_to_frame): Don't check hourglass_window.
12479 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12480 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12481 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12482 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12483 Only change the cursor if hourglass is not active.
12484 (Fx_create_frame): Initialize frame's current_cursor.
12485 (hourglass_atimer): Remove.
12486 (hourglass_started): New function.
12487 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12488 (show_hourglass): Adapt to w32, changing argument to frame.
12489
12490 * w32term.h (struct w32_output): Remove hourglass_window.
12491 Add current_cursor.
12492
12493 * eval.c (call_debugger, Fsignal):
12494 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12495 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12496 (Fexecute_extended_command, cancel_hourglass_unwind):
12497 * minibuf.c (read_minibuf):
12498 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12499
125002008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12501
12502 * window.c (run_funs): New fun.
12503 (run_window_configuration_change_hook): Use it to run the buffer-local
12504 and the global part of the hook.
12505
12506 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12507 (unwind_format_mode_line): Restore selected window.
12508 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12509
125102008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12511
12512 * editfns.c (Fchar_equal): Check they are valid characters.
12513
12514 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12515
125162008-03-17 Andreas Schwab <schwab@suse.de>
12517
12518 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12519 against a charset.
12520
12521 * lisp.h (Fbuffer_list): Declare.
12522
125232008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12524
aac0c6e3
MR
12525 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12526 handlebox_widget is != 0.
12527
125282008-03-16 Juri Linkov <juri@jurta.org>
12529
12530 * callint.c (Fcall_interactively): For interactive code letters
12531 'b' and 'B' put the buffer list into the list of default "future"
12532 values of the minibuffer.
12533
125342008-03-16 Andreas Schwab <schwab@suse.de>
12535
12536 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12537 modifiers.
12538
12539 * regex.c (re_match_2_internal): Correct matching of a charset
12540 against latin-1 characters.
12541
125422008-03-16 Kenichi Handa <handa@m17n.org>
12543
12544 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12545 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12546 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12547 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12548 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12549 CHAR_STRING_ADVANCE.
12550 (produce_chars): Fix for the case that the source and the
12551 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12552 instead of CHAR_STRING_ADVANCE.
12553 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12554 STRING_CHAR_ADVANCE.
12555
125562008-03-15 Andreas Schwab <schwab@suse.de>
12557
12558 * regex.c (re_match_2_internal): Correct matching of eight bit
12559 characters in unibyte strings.
12560
125612008-03-15 Martin Rudalics <rudalics@gmx.at>
12562
12563 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12564 at end of range when it coincides with the end of the buffer.
12565
125662008-03-14 Eli Zaretskii <eliz@gnu.org>
12567
12568 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12569
12570 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12571
125722008-03-14 Jason Rumney <jasonr@gnu.org>
12573
12574 * editfns.c (initial_tz): New variable.
12575 (syms_of_editfns): Initialize it.
12576 (Fset_time_zone_rule): Set it when first called.
12577 Use it when TZSTRING is nil.
12578
12579 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12580 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12581 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12582 (globals_of_w32fns): Initialize them.
12583 (compute_tip_xy): Use them to position tooltips.
12584
125852008-03-14 Glenn Morris <rgm@gnu.org>
12586
12587 * emacs.c (main): Revert previous change.
12588 (standard_args): Revert -internal-script back to -scriptload,
12589 and remove the long-option form.
12590
125912008-03-13 Glenn Morris <rgm@gnu.org>
12592
12593 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12594 Remove option -enable-font-backend.
12595
125962008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12597
12598 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12599
126002008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12601
12602 * xterm.c (x_connection_closed): For GTK: If this is the last
12603 terminal just exit without closing the display.
12604
126052008-03-11 Jason Rumney <jasonr@gnu.org>
12606
12607 * w32font.c (w32font_full_name): Use floor to round.
12608
f0131492 126092008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12610
12611 * sound.c (alsa_configure): Declare vol at beginning of block.
12612
12613 * fontset.c (Ffontset_info): Remove extra semicolon.
12614
126152008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12616
12617 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12618 size of resulting string.
12619
126202008-03-10 Jason Rumney <jasonr@gnu.org>
12621
12622 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12623
126242008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12625
12626 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12627 Don't pretend as if characters with display property haven't been
12628 consumed for string-replacing-string case.
12629
126302008-03-08 Kim F. Storm <storm@cua.dk>
12631
12632 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12633 (get_next_display_element, next_element_from_string)
12634 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12635
126362008-03-08 Andreas Schwab <schwab@suse.de>
12637
12638 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12639
126402008-03-06 Jason Rumney <jasonr@gnu.org>
12641
12642 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12643 when charset not specified. Only translate ANSI to unicode when
12644 font_type is truetype.
12645 (w32font_coverage_ok): New function.
12646 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12647
126482008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12649
12650 * lread.c (Fread_char): Resolve modifiers.
12651 (Fread_char_exclusive): Likewise.
12652
12653 * character.c (char_resolve_modifier_mask): New function.
12654 (char_string): Use char_resolve_modifier_mask.
12655 (Fchar_resolve_modifiers): New function.
12656 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12657 function.
12658
126592008-03-04 Jason Rumney <jasonr@gnu.org>
12660
12661 * makefile.w32-in: Always include w32font.c in the build.
12662 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12663
126642008-03-04 Andreas Schwab <schwab@suse.de>
12665
12666 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12667 (versionclean): Likewise.
12668
126692008-03-04 Juanma Barranquero <lekktu@gmail.com>
12670
12671 * .cvsignore: Add oo.
12672
126732008-03-03 Andreas Schwab <schwab@suse.de>
12674
12675 * coding.c (decode_coding_object): Inhibit gap shrinking while
12676 decoding in place.
12677
126782008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12679
12680 * w32term.c: Remove unused include "gnu.h".
12681 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12682
12683 * gnu.h: Rename to ...
12684 * emacs-icon.h: ... this.
12685 * xterm.c: Use emacs-icon.h instead of gnu.h.
12686 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12687
126882008-03-03 Juanma Barranquero <lekktu@gmail.com>
12689
12690 * w32font.c: Include math.h.
12691
126922008-03-03 Jason Rumney <jasonr@gnu.org>
12693
12694 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12695 Compute options separately.
12696 (w32font_open_internal): Set glyph_idx before caching metrics.
12697
12698 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12699 Define if system headers don't.
12700 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12701 (w32font_encode_char): Don't declare here.
12702
12703 * w32font.c (Quniscribe, QCformat): New symbols.
12704 (syms_of_w32font): Define them.
12705 (w32font_has_char): Indicate uncertainty.
12706 (w32font_encode_char): Encode as glyph point. Make static.
12707 (recompute_cached_metrics): New function.
12708 (w32font_open_internal): Use it. Set font to use glyph points
12709 initially. Set format based on type of font.
12710 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12711 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12712 on it. Set format based on information available here.
12713 (add_font_entity_to_list): Identify backend based on opentype_only.
12714
127152008-03-02 Andreas Schwab <schwab@suse.de>
12716
12717 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12718
12719 * coding.c (decode_coding_big5, produce_chars):
12720 Fix typos in last change.
12721
127222008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12723
12724 * gnu.h: New icon.
12725
127262008-03-02 Kenichi Handa <handa@m17n.org>
12727
12728 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12729 `dos', don't decode '\r' if that is the last in the source.
12730 (decode_coding_utf_16, decode_coding_emacs_mule)
12731 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12732 (decode_coding_raw_text, decode_coding_charset): Likewise.
12733 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12734
127352008-03-01 Jason Rumney <jasonr@gnu.org>
12736
12737 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12738
127392008-03-01 Kim F. Storm <storm@cua.dk>
12740
12741 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12742
127432008-03-01 Jason Rumney <jasonr@gnu.org>
12744
12745 * w32font.c (w32font_full_name): New function.
12746 (w32font_open_internal): Use it.
12747
127482008-03-01 Kim F. Storm <storm@cua.dk>
12749
12750 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12751
127522008-03-01 Jason Rumney <jasonr@gnu.org>
12753
12754 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12755
127562008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12757
12758 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12759 xg_frame_resized when the event is for the edit widget.
12760
12761 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12762
12763 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12764 set_char_size.
12765 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12766 operations on widgets here. Just set frame size if needed.
12767 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12768 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12769 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12770 the whole frame.
12771 (xg_create_tool_bar): Move attachment of the tool bar to
12772 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12773 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12774
127752008-03-01 Jason Rumney <jasonr@gnu.org>
12776
12777 * w32fns.c (w32_msg_pump): Disable debug code.
12778
127792008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12780
12781 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12782
127832008-02-29 Chong Yidong <cyd@stupidchicken.com>
12784
12785 * xdisp.c (next_overlay_string): Don't set
12786 overlay_strings_at_end_processed_p if we're currently reading from
12787 a display string.
12788
127892008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12790
12791 * xdisp.c (get_overlay_strings_1): Fix typo.
12792
127932008-02-29 Chong Yidong <cyd@stupidchicken.com>
12794
12795 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12796
127972008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12798
12799 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12800
12801 * xdisp.c (display_mode_element): Cancel the previous change.
12802 (decode_mode_spec): Likewise.
12803 (handle_auto_composed_prop): Don't make composition if it->string
12804 is a string.
12805
128062008-02-27 Kim F. Storm <storm@cua.dk>
12807
12808 * lisp.h (GLYPH): Change type from int to struct with separate char
12809 and face_id members.
12810 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12811 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12812 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12813 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12814 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12815 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12816 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12817 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12818 handle new Lisp glyph code encoding, either an integer or a cons.
12819
12820 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12821 (GLYPH_ALIAS): Delete.
12822 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12823 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12824 (GLYPH_FROM_CHAR): Replace macro by ...
12825 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12826
12827 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12828 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12829 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12830 (GLYPH_INVALID_P): New macro.
12831 (spec_glyph_lookup_face): Update prototype.
12832
12833 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12834 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12835 new glyph code encoding.
12836 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12837 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12838
12839 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12840 Adapt to new glyph type and new glyph code encoding.
12841
12842 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12843
12844 * indent.c (current_column, current_column_1, Fmove_to_column)
12845 (compute_motion): Adapt to new glyph code encoding.
12846
12847 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12848
128492008-02-27 Chong Yidong <cyd@stupidchicken.com>
12850
12851 * process.c (wait_reading_process_output): Check for window
12852 changes caused by timers.
12853 Suggested by Johan Bockgård.
12854
128552008-02-27 Glenn Morris <rgm@gnu.org>
12856
12857 * emacs.c (USAGE1): Add `--disable-font-backend'.
12858
128592008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12860
12861 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12862 is made to the buffer.
12863
128642008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12865
12866 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12867 (face_at_string_position):
12868 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12869 (face_at_string_position):
12870 * xdisp.c (display_string, next_overlay_change):
12871 * buffer.h (overlays_at):
12872 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12873 Update callers.
12874
128752008-02-26 Chong Yidong <cyd@stupidchicken.com>
12876
12877 * editfns.c (Fformat): Doc fix.
12878
128792008-02-26 Juanma Barranquero <lekktu@gmail.com>
12880
12881 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12882 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12883 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12884
128852008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12886
12887 * buffer.c (Fbuffer_swap_text): New function.
12888 (syms_of_buffer): Defsubr it.
12889
128902008-02-25 Chong Yidong <cyd@stupidchicken.com>
12891
12892 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12893
128942008-02-25 Jason Rumney <jasonr@gnu.org>
12895
12896 * w32font.c (w32font_draw): Draw one character at a time when padding.
12897
128982008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12899
12900 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12901 Handle a nil arg. Use run_window_configuration_change_hook.
12902 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12903 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12904 Use run_window_configuration_change_hook.
12905
129062008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12907
12908 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12909 1-pixel width.
12910
129112008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12912
12913 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12914 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12915 if the glyph in the font is zero pixel with.
12916
12917 * dispextern.h (struct glyph_string): New member padding_p.
12918
12919 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12920
12921 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12922
12923 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12924
12925 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12926
12927 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12928
129292008-02-25 Jason Rumney <jasonr@gnu.org>
12930
12931 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12932
129332008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12934
12935 Allow fine-grained image-cache flushing.
12936 * dispextern.h (struct image): Add `dependencies' field.
12937 (clear_image_caches): Change arg to Lisp_Object.
12938 * image.c (make_image): Initialize `dependencies' field.
12939 (clear_image_cache): Change arg to allow fine-grained flushing.
12940 Perform the flush even if image-cache-eviction-delay is nil.
12941 (clear_image_caches): Change arg to Lisp_Object.
12942 (Fclear_image_cache): Expand meaning of the argument.
12943 (mark_image): Mark `dependencies' field.
12944 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12945 (lface_hash): Use XHASH rather than XFASTINT.
12946 (face_at_buffer_position): Fix int -> EMACS_INT position.
12947 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12948 (select_frame_for_redisplay): Remove code duplication.
12949 (redisplay_internal): Adapt arg to call to clear_image_caches.
12950
129512008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12952
12953 * s/vms4-0.h:
12954 * s/vms4-2.h:
12955 * s/vms4-4.h:
12956 * s/vms5-5.h: Remove, unused.
12957
12958 * s/irix5-2.h:
12959 * s/irix6-0.h:
12960 * s/riscos5.h:
12961 * s/mach-bsd4-3.h:
12962 * m/mips4.h: Remove files for obsolete systems.
12963
12964 * Makefile.in:
12965 * filelock.c:
12966 * unexmips.c:
12967 * m/hp9000s300.h:
12968 * m/iris4d.h:
12969 * s/aix3-1.h:
12970 * s/hpux.h:
12971 * s/msdos.h:
12972 * s/usg5-0.h:
12973 * s/usg5-2-2.h:
12974 * s/usg5-2.h:
12975 * s/usg5-3.h: Remove references to obsolete variables.
12976
12977 * s/irix5-0.h: Remove, move all the contents ...
12978 * s/irix6-5.h: ... here. Simplify.
12979 * config.in: Regenerate.
12980
129812008-02-24 Jason Rumney <jasonr@gnu.org>
12982
12983 * w32term.c (x_draw_glyph_string_background): Clear the background
12984 manually when cleartype is in use.
12985 (x_draw_glyph_string_foreground): Draw text transparently when
12986 cleartype is in use.
12987
12988 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12989 a font into it unless we have to.
12990
129912008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12992
12993 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12994 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12995
aac0c6e3
MR
129962008-02-18 Jason Rumney <jasonr@gnu.org>
12997
12998 * w32fns.c (Fw32_shell_execute): Encode parameters.
12999
130002008-02-09 Eli Zaretskii <eliz@gnu.org>
13001
13002 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13003
130042008-02-05 Juanma Barranquero <lekktu@gmail.com>
13005
13006 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13007
130082008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13009
13010 * xterm.c (x_set_offset): Don't change the gravity if
13011 CHANGE_GRAVITY is -1.
13012
130132008-02-23 Chong Yidong <cyd@stupidchicken.com>
13014
13015 * fileio.c (auto_save_error_occurred): New var.
13016 (auto_save_error): Set it.
13017 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13018 error occurred.
13019
130202008-02-23 Eli Zaretskii <eliz@gnu.org>
13021
13022 * w32.c (globals_of_w32): Add initializations for
13023 g_b_init_get_sid_sub_authority and
13024 g_b_init_get_sid_sub_authority_count.
13025
130262008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13027
13028 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13029 (font_parse_xlfd): Use them for sanity check.
13030 (Finternal_set_font_style_table): Make sure the table is bijective.
13031
13032 Consolidate the image_cache to the terminal struct.
13033 * termhooks.h (P_): Remove redundant def.
13034 (struct terminal): New field `image_cache'.
13035 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13036 of FRAME_X_IMAGE_CACHE.
13037 * xterm.h (struct x_display_info): Remove image_cache field.
13038 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13039 * w32term.h (struct w32_display_info): Remove image_cache field.
13040 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13041 * macterm.h (struct mac_display_info): Remove image_cache field.
13042 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13043 * xterm.c (x_term_init):
13044 * w32term.c (w32_term_init):
13045 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13046 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13047 Remove declarations.
13048 (clear_image_caches, mark_image_cache): New declarations.
13049 * xfaces.c (clear_face_cache):
13050 * xdisp.c (redisplay_internal): Use clear_image_caches.
13051 * image.c (clear_image_cache): Don't check that a frame is on
13052 a window-system before checking if it shares the same cache.
13053 (clear_image_caches): New function.
13054 (Fclear_image_cache): Use it.
13055 (mark_image): Move from allo.c.
13056 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13057 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13058 (mark_object): Don't call mark_image_cache for frames.
13059 (mark_terminals): Call mark_image_cache.
13060
13061 * lisp.h (Fdelete_terminal): Declare.
13062
13063 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13064 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13065 wrong_type_argument.
13066
130672008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13068
13069 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13070 malayalam.el, and tamil.el. Add sinhala.el.
13071
130722008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13073
13074 * xterm.c (x_connection_closed): Consolidate identical tests.
13075 (x_delete_terminal): Don't crash if called via x_connection_closed.
13076
130772008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13078
13079 * xdisp.c (decode_mode_spec): New arg string.
13080 (display_mode_element): Adjust for the above change.
13081
130822008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13083
13084 * callint.c (Fcall_interactively): Use AREF.
13085
130862008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13087
13088 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13089
130902008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13091
13092 * xfns.c (Fx_show_tip): Set string to " " if empty.
13093
130942008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13095
13096 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13097 with Qt.
13098
130992008-02-17 Kenichi Handa <handa@m17n.org>
13100
13101 * ftfont.c (ftfont_shape): Return Lispy number.
13102
13103 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13104 for GCs.
13105 (Finternal_set_font_selection_order): Call font_update_sort_order
13106 only when enable_font_backend is set.
13107 (realize_x_face): Set face->font_info to that of default face only
13108 when enable_font_backend is set.
13109
13110 * xdisp.c (handle_composition_prop): Set it->c to the fist
13111 character of the composed region.
13112 (fill_composite_glyph_string): Set base_face->font_info to
13113 s->font_info. Get a face for ascii from base_face->ascii_face.
13114 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13115 with a face already decided.
13116 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13117 non-negative.
13118 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13119 call font_prepare_composition unconditionally.
13120
13121 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13122
13123 * xterm.h (struct x_display_info): New member font.
13124
13125 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13126 (x_set_mouse_face_gc, x_new_font): Likewise.
13127 (x_term_init): Setup display_info->font.
13128 (x_delete_terminal): Free display_info->font.
13129
13130 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13131
13132 * ftxfont.c (ftxfont_default_fid): Delete it.
13133 (ftxfont_open): Set xfont->fid to 0.
13134 (ftxfont_end_for_frame): Clear data specific to the frame and the
13135 font-driver.
13136
13137 * xftfont.c (xftfont_default_fid): Delete it.
13138 (xftfont_open): Set xfont->fid to 0.
13139
13140 * fontset.c (FONTSET_OBJLIST): New macro.
13141 (fontset_find_font): Update font-object list of the fontset.
13142 (free_realized_fontset): New function.
13143 (free_face_fontset): Call free_realized_fontset.
13144 (Ffont_info): Call font_close_object only when enable_font_backend
13145 is set.
13146
13147 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13148 [HAVE_NTGUI]: Include w32term.h.
13149 [MAC_OS]: Include macterm.ch.
13150 (font_otf_ValueRecord): Use make_number.
13151 (font_finish_cache): Fix handling of reference count.
13152 (font_clear_cache): Update num_fonts.
13153 (font_open_entity): Update smallest_char_width and
13154 smallest_font_height of the frame.
13155 (font_close_object): Update num_fonts.
13156 (Fclear_font_cache): Fix finding the target cache data.
13157
131582008-02-16 Glenn Morris <rgm@gnu.org>
13159
13160 * fontset.c (Finternal_char_font): Fix compilation warning.
13161
131622008-02-16 Eli Zaretskii <eliz@gnu.org>
13163
13164 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13165 instead of char arrays. Enlarge the size of array passed to
13166 get_token_information.
13167
13168 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13169 warnings.
13170
131712008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13172
13173 * .gdbinit: Don't set `args', it breaks gdb --args.
13174
131752008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13176
13177 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13178 within a narrowed buffer.
13179
131802008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13181
13182 * coding.c (decode_coding_object, encode_coding_object):
13183 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13184
131852008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13186
13187 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13188 hardcoding 1.
13189 (detect_coding_system):
13190 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13191 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13192 * insdel.c (insert_from_gap):
13193 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13194 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13195 (string_to_multibyte):
13196 * character.c (chars_in_text, multibyte_chars_in_text):
13197 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13198
13199 * character.h (FETCH_STRING_CHAR_ADVANCE)
13200 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13201 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13202 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13203
13204 * casefiddle.c (casify_region): Only call after-change and composition
13205 functions on the part of the region that was changed.
13206
13207 * keyboard.c (read_avail_input):
13208 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13209
132102008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13211
13212 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13213 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13214
132152008-02-11 Juanma Barranquero <lekktu@gmail.com>
13216
13217 * w32menu.c (push_submenu_start, push_submenu_end)
13218 (push_left_right_boundary, push_menu_pane, push_menu_item):
13219 * keyboard.c (read_key_sequence): Don't pass args with side effects
13220 to AREF, it fails when compiling with -DENABLE_CHECKING.
13221
132222008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13223
13224 * Makefile.in (${lispsource}international/charprop.el):
13225 Delete this target.
13226
13227 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13228 emacs-unicode-2.
13229
132302008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13231
13232 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13233
132342008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13235
13236 * frame.c (Qnoelisp): New symbol.
13237 (syms_of_frame): Initialize it.
13238 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13239 harmless Elisp code, from a strong `force' from x_connection_closed.
13240 * frame.h (Qnoelisp): Declare.
13241 * xterm.c (x_connection_closed): Pass `noelisp'.
13242
13243 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13244 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13245 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13246 rather than `int' for the type of `type'.
13247
132482008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13249
13250 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13251
13252 * Makefile.in (GNUC): Remove support for gcc-1.x.
13253
132542008-02-10 Richard Stallman <rms@gnu.org>
13255
13256 * lisp.h (ASET): Use AREF, not ASLOT.
13257
132582008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13259
13260 * lisp.h (ASET): Check bounds.
13261
132622008-02-10 Glenn Morris <rgm@gnu.org>
13263
13264 * buffer.c (mode-name): Doc fix.
13265
132662008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13267
13268 * Makefile.in:
13269 * emacs.c:
13270 * gmalloc.c:
13271 * keyboard.c:
13272 * lisp.h:
13273 * m/ibm370aix.h:
13274 * process.c:
13275 * regex.c:
13276 * s/hpux.h:
13277 * sysdep.c:
13278 * sysselect.h:
13279 * systty.h:
13280 * unexec.c:
13281 * w32term.c:
13282 * xsmfns.c:
13283 * xterm.c: Remove code that deals with obsolete variables.
13284
13285 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13286
13287 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13288 nothing else needs it anymore.
13289
132902008-02-09 Eli Zaretskii <eliz@gnu.org>
13291
13292 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13293 instead of unibyte_char_to_multibyte.
13294
132952008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13296
13297 * s/gnu-linux.h: Remove commented out code.
13298
13299 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13300
13301 * Makefile.in: Update what RMS says about using autoconf.
13302 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13303 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13304 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13305 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13306
133072008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13308
13309 * keymap.c (Fkey_description): Move side effect outside of macro call.
13310
13311 * xfaces.c (Finternal_make_lisp_face):
13312 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13313
13314 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13315 (syms_of_fontset): Use ASET.
13316
13317 * fns.c (concat): Move side effect outside of macro call.
13318 (hash_clear): Use ASET.
13319
133202008-02-08 Richard Stallman <rms@gnu.org>
13321
13322 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13323 If FORCE, and frame has a surrogate minibuffer for another frame,
13324 delete the other frame first.
13325
133262008-02-07 Timo Savola <timo.savola@iki.fi>
13327
13328 * xterm.c (x_detect_focus_change): Handle embed client message.
13329 (handle_one_xevent): Ditto.
13330 (handle_one_xevent): If embedded and we get a button press/release,
13331 request focus.
13332 (xembed_set_info, xembed_send_message): New functions.
13333 (x_make_frame_visible): Call xembed_set_info if embedded.
13334 (x_make_frame_invisible): Call xembed_set_info if embedded.
13335 (x_term_init): Initialize Xatom_XEMBED.
13336 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13337 (x_iconify_frame): Ditto.
13338
13339 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13340 (enum xembed_info, enum xembed_message, enum xembed_focus)
13341 (enum xembed_modifier, enum xembed_accelerator): New.
13342 (xembed_set_info, xembed_send_message): Declare.
13343 (FRAME_X_EMBEDDED_P): New.
13344
13345 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13346 gtk_plug_new.
13347
13348 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13349 window ID of a frame.
13350 (x_window): Reparent frame if embedded.
13351 (Fx_create_frame): Don't set border width if embedded.
13352
13353 * emacs.c (USAGE3): Add --parent-id.
13354 (standard_args): Ditto.
13355
133562008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13357
13358 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13359
133602008-02-07 Jim Meyering <meyering@redhat.com>
13361
13362 Use "do...while (0)", not "if (1)...else" in macro definitions.
13363 The latter provokes a warning from gcc about the empty else, when
13364 followed by ";". Also, without that trailing semicolon, it would
13365 silently swallow up any following statement.
13366 * syntax.h (SETUP_SYNTAX_TABLE)
13367 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13368 * buffer.h (DECODE_POSITION): Likewise.
13369 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13370 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13371 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13372 (FETCH_CHAR_ADVANCE): Likewise.
13373 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13374
133752008-02-07 Jim Meyering <meyering@redhat.com>
13376
13377 * lread.c [lint]: Don't include <sys/inode.h>.
13378
133792008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13380
13381 * xselect.c (x_handle_dnd_message):
13382 * xmenu.c (digest_single_submenu, xmenu_show):
13383 * xdisp.c (with_echo_area_buffer_unwind_data)
13384 (format_mode_line_unwind_data, unwind_format_mode_line)
13385 (display_menu_bar):
13386 * eval.c (Ffetch_bytecode):
13387 * doc.c (store_function_docstring):
13388 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13389 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13390 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13391
133922008-02-07 Kenichi Handa <handa@m17n.org>
13393
13394 * ftxfont.c (ftxfont_open): Don't set
13395 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13396
13397 * ftfont.c (ftfont_open): Fix previous change.
13398
133992008-02-06 Jason Rumney <jasonr@gnu.org>
13400
13401 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13402 Use cached metrics for ASCII characters.
13403 (w32font_open_internal): Don't set font's owning_frame.
13404 Cache metrics for ASCII characters.
13405
13406 * w32font.h (struct w32font_info): Add ascii_metrics.
13407 Remove owning_frame.
13408
134092008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13410
13411 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13412 to negative value.
13413
13414 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13415
13416 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13417
13418 * charset.c (syms_of_charset): Set QCtest and Qeq.
13419
134202008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13421
13422 * process.c (Fstart_process):
13423 * callproc.c (Fcall_process): Handle the case where
13424 Funhandled_file_name_directory returns nil.
13425
13426 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13427 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13428 * font.c (check_gstring): Use them and AREF to access the vector before
13429 we know it's really a gstring.
13430 (Ffont_shape_text): Fix typo.
46e722a9 13431 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13432
13433 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13434 Declare.
13435
13436 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13437
134382008-02-05 Jason Rumney <jasonr@gnu.org>
13439
13440 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13441 Set smallest_font_height and smallest_char_width in display info.
13442
134432008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13444
13445 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13446
134472008-02-05 Miles Bader <miles@gnu.org>
13448
13449 * xfaces.c (get_lface_attributes, merge_named_face)
13450 (lookup_named_face, lookup_derived_face, realize_named_face):
13451 Revert 2008-02-01 change by cyd@stupidchicken.com.
13452
134532008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13454
13455 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13456 fallback fonts.
13457 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13458
134592008-02-04 Jason Rumney <jasonr@gnu.org>
13460
13461 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13462 set full_name.
13463 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13464
134652008-02-03 Jason Rumney <jasonr@gnu.org>
13466
13467 * makefile.w32-in (OBJ1): Include font.o here.
13468 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13469
134702008-02-02 Jason Rumney <jasonr@gnu.org>
13471
13472 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13473
134742008-02-01 Jason Rumney <jasonr@gnu.org>
13475
13476 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13477
13478 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13479
134802008-02-01 Andreas Schwab <schwab@suse.de>
13481
13482 * Makefile.in (shortlisp, lisp): Update for rename of
13483 ../lisp/language/myanmar.el.
13484
134852008-02-01 Chong Yidong <cyd@stupidchicken.com>
13486
13487 * xfaces.c (get_lface_attributes): Delete function.
13488 (merge_named_face, lookup_named_face, lookup_derived_face)
13489 (realize_named_face): Call lface_from_face_name directly, and use
13490 the fact that merge_face_vectors does not alter its FROM argument.
13491
134922008-02-01 Jason Rumney <jasonr@gnu.org>
13493
13494 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13495 input in the default locale. Handle non-Unicode multibyte input.
13496
134972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13498
13499 * fontset.c (reorder_font_vector): Exclude nil elements from the
13500 font group. Don't try multiple fonts.
13501 (fontset_font): Adjust for the above change.
13502 (Finternal_char_font): Return nil if the found font doesn't
13503 contain the character ch.
13504
13505 * Makefile.in (lisp, shortlisp): Add cham.el.
13506
135072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13508
13509 * font.h (FONTP): Make it return 1 also for a font-object.
13510
13511 * .gdbinit (xfontset): New function.
13512
13513 * font.c (font_find_for_lface): Check if the character C is
13514 supported or not only for the first font.
13515
13516 * fontset.c (reorder_font_vector): Fix typo.
13517 (fontset_find_font): Don't add a font-spec specifying a script.
13518 Use 0 (not Qt) for the indication of empty font-group. Change the
13519 format of RFONT-DEF. Return Qt if no font in the font-group
13520 support the character.
13521 (fontset_font): Adjust for the above change. If no font was
13522 found the character, remember that.
13523 (face_for_char): Adjust for the change of RFONT-DEF.
13524 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13525 no font for the target.
13526 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13527
135282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13529
13530 * font.c (font_load_for_face): Handle the case that the font in
13531 face->lface is a string.
13532
135332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13534
13535 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13536
135372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13538
13539 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13540 Fix previous change. If the frame is not on a window system,
13541 signal an error.
13542
135432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13544
13545 * coding.c (decode_coding_object, encode_coding_object): Adjust
13546 marker positions after conversion.
13547
13548 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13549
135502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13551
13552 * font.c (font_find_for_lface): Fix the handling of the return
13553 value of font_has_char.
13554 (Ffont_shape_text): Fix previous change.
13555
13556 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13557 (fontset_ref_and_range): Delete it.
13558 (fontset_find_font): Call char_table_ref_and_range instead of
13559 FONTSET_REF_AND_RANGE.
13560 (make_fontset): Don't setup font groups of Latin here.
13561 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13562 (new_fontset_from_font): Make the specified font the default for
13563 all Latin characters.
13564
135652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13566
13567 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13568 is on a window system before accessing the fontset of the frame.
13569
135702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13571
13572 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13573
13574 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13575 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13576
13577 * font.c (Ffont_shape_text): If the font driver doesn't have a
13578 shaper function, make zero-width glyphs to have at least one-pixel
13579 width. Fix setting of `to' field of glyphs.
13580
135812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13582
13583 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13584 glyphs.
13585
13586 * font.h (struct font_driver): Improve docstring of member `shape'.
13587
135882008-02-01 Kenichi Handa <handa@m17n.org>
13589
13590 * composite.c (syms_of_composite): Fix docstring of
13591 auto-composition-function.
13592
13593 * font.h (LGLYPH_SIZE): New macro.
13594
13595 * font.c (Ffont_fill_gstring): Stop filling when a character not
13596 supported by the font is found.
13597 (Ffont_shape_text): When a shape callback function returns nil,
13598 try at most two more times with larger gstring.
13599 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13600
13601 * xdisp.c (handle_auto_composed_prop): Change the argument to
13602 auto-composition-function.
13603
13604 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13605 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13606 Lispy glyph and store it in the lgstring.
13607
13608 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13609
13610 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13611
136122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13613
13614 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13615
13616 * fontset.c (Vfont_encoding_charset_alist): New variable.
13617 (syms_of_fontset): DEFVAR it.
13618 (reorder_font_vector, fontset_find_font): Optimize for the case of
13619 no need of reordering.
13620 (face_for_char): Map the charset property by
13621 Vfont_encoding_charset_alist.
13622
136232008-02-01 Jason Rumney <jasonr@gnu.org>
13624
13625 * w32font.c (logfonts_match): Don't check adstyle here.
13626 (font_matches_spec): Check here against physical font instead.
13627 (add_font_entity_to_list): Avoid some substitutions.
13628
13629 * font.c (font_parse_fcname): Default weight and slant to normal.
13630 (font_score): Prefer normal fonts if weight or slant unspecified.
13631 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13632 match freetype scores.
13633
136342008-02-01 Jason Rumney <jasonr@gnu.org>
13635
13636 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13637 font, as it may have been deleted.
13638 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13639 most common hyphenless variation.
13640 (logfonts_match): Check generic family.
13641 (font_matches_spec): Don't check generic family here.
13642 (fill_in_logfont): Set generic family based on adstyle.
13643
13644 * w32font.h (w32font_get_cache): Update declaration.
13645
136462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13647
13648 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13649
13650 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13651 If none of the new drivers are available, call font_update_drivers
13652 with the old drivers.
13653
13654 * w32font.c (w32font_get_cache): Adjust the argument type.
13655
13656 * xfont.c (xfont_get_cache): Adjust the argument type.
13657
13658 * font.h (struct font_driver): Change argument type of get_cache.
13659
13660 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13661
13662 * font.c (Ffont_get): Fix arguments to Fassoc.
13663 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13664 (font_clear_cache): New function.
13665 (font_list_entities, font_matching_entity): Use font_get_cache.
13666 (font_update_drivers): Call font_clear_cache when finishing a driver.
13667
13668 * fontset.c (fontset_find_font): Fix previous change.
13669
136702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13671
13672 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13673 dpyinfo->font_table.
13674 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13675 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13676
13677 * font.c (font_at): Handle the case that the arg C is negative.
13678 Handle the unibyte case.
13679 (Ffont_at): Call font_at with the arg C -1.
13680
13681 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13682 the position here, and call font_at with the arg C -1.
13683 Don't check the range of the existing composition at the point.
13684
136852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13686
13687 * fontset.c (fontset_add): New args charset_id and family.
13688 Change caller.
13689 (load_font_get_repertory, fontset_find_font): Assume that
13690 font_spec is always a font-spec object.
13691 (Fset_fontset_font): Always store a font-spec object in a fontset.
13692
13693 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13694 instead of get_property_and_range.
13695
136962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13697
13698 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13699 (xftfont_open): Don't keep locking face.
13700 (xftfont_close): Don't unlock face.
13701 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13702
13703 * fontset.c (fontset_find_font): Don't prefer a font of
13704 supplementary charset.
13705
137062008-02-01 Kenichi Handa <handa@m17n.org>
13707
13708 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13709 script, langsys_tag to langsys, new member script.
13710 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13711 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13712 listing to the script specified in that property. Fix arg to
13713 OTF_check_features.
13714
137152008-02-01 Jason Rumney <jasonr@gnu.org>
13716
13717 * w32font.h: New file.
13718
13719 * w32font.c: Include it.
13720 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13721 (w32font_open): Set owning_frame.
13722 (w32font_text_extents): Use owning_frame.
13723 (struct font_callback_data): Add opentype_only field.
13724 (add_font_entity_to_list): Use it to filter fonts.
13725 Don't check against full name.
13726 (w32font_list_internal): New function.
13727 (w32font_list): Use it.
13728 (w32font_match_internal): New function.
13729 (w32font_match): Use it.
13730 (w32font_open_internal): New function.
13731 (w32font_open): Use it.
13732 (w32font_get_cache, w32font_close, w32font_has_char)
13733 (w32font_encode_char, w32font_text_extents, w32font_draw):
13734 Make non-static.
13735
13736 * makefile.w32-in (w32font.o): Depend on w32font.h.
13737
137382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13739
13740 * charset.c (Fdefine_charset_internal): Record a supplementary
13741 charset at the tail of Vcharset_order_list.
13742
13743 * font.c (Ffont_shape_text): Fix the return value.
13744
13745 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13746
13747 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13748
137492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13750
13751 * ftfont.c (struct OpenTypeSpec): New struct.
13752 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13753 (ftfont_get_open_type_spec): New function.
13754 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13755
13756 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13757
137582008-02-01 Jason Rumney <jasonr@gnu.org>
13759
13760 * w32font.c (add_font_entity_to_list): Compare only the beginning
13761 of full name.
13762
137632008-02-01 Kenichi Handa <handa@m17n.org>
13764
13765 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13766 Never return HANDLED_RECOMPUTE_PROPS.
13767
137682008-02-01 Kenichi Handa <handa@m17n.org>
13769
13770 * font.c (font_gstring_produce): Delete it.
13771
13772 * composite.h (COMPOSITION_METHOD):
13773 Handle COMPOSITION_WITH_GLYPH_STRING.
13774
137752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13776
13777 * xfont.c (Qx): Delete.
13778 (syms_of_xfont): Don't initialize Qx.
13779
13780 * composite.h (enum composition_method):
13781 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13782
137832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13784
13785 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13786 (choose_face_font): Accept new form of font-spec.
13787
13788 * frame.h (font_driver_list): Declare it unconditionally.
13789 (struct frame): Define members font_driver_list and font_data_list
13790 unconditionally.
13791
13792 * fontset.c: Include "font.h" unconditionally.
13793 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13794 (Fset_fontset_font): Accept a font-spec object.
13795
13796 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13797 PIXEL_SIZE part a wild card.
13798
13799 * dispextern.h (struct glyph_string): Define members clip and
13800 num_clips unconditionally.
13801 (struct face): Define members font_info and extra unconditionally.
13802
13803 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13804 ftfont_info only when HAVE_LIBOTF is defined.
13805
138062008-02-01 Andreas Schwab <schwab@suse.de>
13807
13808 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13809 and end.
13810
138112008-02-01 Jason Rumney <jasonr@gnu.org>
13812
13813 * w32font.c (w32font_driver): Add new fields.
13814
138152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13816
13817 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13818 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13819 (LIBES): Add @M17N_FLT_CFLAGS@.
13820
13821 * composite.c (compose_text): Don't treat the new style
13822 composition specially.
13823
13824 * emacs.c (main): Call syms_of_font unconditionally.
13825
13826 * font.h (FONT_ENTITY_NOT_LOADABLE)
13827 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13828 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13829 (struct font_driver): New member shape.
13830 (font_registry_charsets): Extern it.
13831 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13832 (font_otf_capability, font_drive_otf): Delete their externs.
13833
13834 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13835 (font_charset_alist, font_registry_charsets): Move from xfont.c
13836 and rename.
13837 (font_prop_validate_otf): New function.
13838 (font_property_table): Register it for QCotf.
13839 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13840 (font_drive_otf): Delete.
13841 (font_prepare_composition): New arg F. Adjust for the change of
13842 lispy gstring.
13843 (font_find_for_lface): New arg C.
13844 (font_load_for_face): Adjust for the change of font_find_for_lface.
13845 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13846 lispy gstring.
13847 (Ffont_shape_text): New function.
13848 (Fopen_font): If the font size is not given, use 12-pixel.
13849 (Ffont_at): New arg STRING.
13850 (syms_of_font): Initalize font_charset_alist.
13851 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13852 conditionally.
13853
13854 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13855 fonts of the same font-spec. Change the format of RFONT-DEF.
13856 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13857 Adjust for the change of RFONT-DEF.
13858 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13859
13860 * ftfont.h: New file.
13861
13862 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13863 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13864 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13865 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13866 font_otf_capability and font_drive_otf, set ftfont_shape.
13867 (ftfont_list): Adjust for the change of :otf property value.
13868 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13869 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13870 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13871 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13872 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13873 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13874
13875 * w32term.c (x_draw_composite_glyph_string_foreground):
13876 Adjust for the change of lispy gstring.
13877
13878 * xdisp.c (handle_composition_prop): Adjust for the change of
13879 lispy gstring. Call a function for auto-composition with the
13880 third arg it->window.
13881 (fill_composite_glyph_string): Adjust for the change of lispy string.
13882 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13883
13884 * xfaces.c (set_font_frame_param): Adjust for the change of
13885 font_find_for_lface.
13886
13887 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13888 (xfont_registry_charsets): Likewise. Change caller.
13889 (syms_of_xfont): Don't handle x_font_charset_alist.
13890
13891 * xftfont.c: Include "ftfont.h".
13892 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13893 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13894 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13895 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13896 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13897 Set xftfont_driver.shape to xftfont_shape.
13898
13899 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13900 the change of lispy gstring.
13901
139022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13903
13904 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13905
139062008-02-01 Jason Rumney <jasonr@gnu.org>
13907
13908 * w32font.c (w32font_draw): Fill background manually.
13909
139102008-02-01 Jason Rumney <jasonr@gnu.org>
13911
13912 * font.c (Qfontp): Remove unused symbol.
13913 (QCantialias): New symbol.
13914 (syms_of_font): Define it.
13915 (font_property_table): Set a validator for QCantialias.
13916
13917 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13918 Define if not already.
13919 (QCfamily): Share with xfaces.c.
13920 (Qstandard, Qsubpixel, Qnatural): New symbols.
13921 (syms_of_w32font): Define them. Don't define QCfamily here.
13922 (w32_antialias_type, lispy_antialias_type): New functions.
13923 (w32_enumfont_pattern_entity): New arg requested_font.
13924 Set antialias parameter if non-default was requested.
13925 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13926
139272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13928
13929 * lread.c (read1): Undo the previous change.
13930
139312008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13932
13933 * frame.c (Fdelete_frame): Call font_update_drivers only when
13934 USE_FONT_BACKEND is defined.
13935
139362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13937
13938 * font.h (struct font_bitmap): New member bits_per_pixel.
13939 (struct font_driver): New members start_for_frame and end_for_frame.
13940 (struct font_data_list): New struct.
13941 (font_put_frame_data, font_get_frame_data): Extern them.
13942
13943 * frame.h (struct frame): New member font_data_list.
13944
13945 * font.c (font_update_drivers): Call driver->start_for_frame and
13946 driver->end_for_frame at proper timings.
13947 (font_put_frame_data, font_get_frame_data): New functions.
13948 (Ffont_spec): Add usage in the docstring.
13949
13950 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13951 (Fdelete_frame): Call font_update_drivers.
13952
13953 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13954 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13955 (xftfont_get_xft_draw): New function.
13956 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13957 (xftfont_end_for_frame): New function.
13958 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13959
13960 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13961 Change argument. Cache GCs in the per-frame data.
13962 (struct ftxfont_frame_data): New struct.
13963 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13964 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13965 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13966 (ftxfont_end_for_frame): New function.
13967 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13968
13969 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13970
139712008-02-01 Kenichi Handa <handa@m17n.org>
13972
13973 * xselect.c (Vselection_coding_system)
13974 (Vnext_selection_coding_system): Delete them.
13975 (syms_of_xselect): Don't declare selection-coding-system and
13976 next-selection-coding-system. They are declared in select.el.
13977
139782008-02-01 Jason Rumney <jasonr@gnu.org>
13979
13980 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13981
13982 * w32fns.c: Include imm.h.
13983 (get_composition_string_fn, get_ime_context_fn): New optional
13984 system functions.
13985 (globals_of_w32fns): Load them from imm32.dll.
13986 (ignore_ime_char): New flag.
13987 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13988 WM_IME_ENDCOMPOSITION messages.
13989
13990 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13991 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13992
139932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13994
13995 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13996 (READCHAR_REPORT_MULTIBYTE): New macro.
13997 (readchar): New 2nd arg MULTIBYTE.
13998 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13999 Make symbol's name multibyte according to the multibyteness of the
14000 source.
14001
140022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14003
14004 * xfaces.c (face_for_overlay_string): Call lookup_face with
14005 correct arguments (fix of synching with the trunk).
14006
140072008-02-01 Kenichi Handa <handa@m17n.org>
14008
14009 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14010 (font_prop_validate_non_neg, font_prop_validate_spacing):
14011 Delete argument prop_index.
14012 (font_property_table): Change arguments to validater. Change Callers.
14013 (font_lispy_object): Delete.
14014 (font_at): Use font_find_object instead fo font_lispy_object.
14015
140162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14017
14018 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14019 and file names.
14020
140212008-02-01 Jason Rumney <jasonr@gnu.org>
14022
14023 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14024 (font_matches_spec): Remove debug output.
14025 (add_font_entity_to_list): Avoid using substituted fonts.
14026
140272008-02-01 Jason Rumney <jasonr@gnu.org>
14028
14029 * doc.c (Fsnarf_documentation):
14030 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14031
140322008-02-01 Miles Bader <miles@gnu.org>
14033
14034 * dispextern.h (struct glyph_row): Only define "clip" field if
14035 HAVE_WINDOW_SYSTEM is defined.
14036
140372008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14038
14039 Fix up multi-tty merge.
14040
14041 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14042 and indentation.
14043
14044 * xfaces.c (free_realized_face, clear_face_gcs):
14045 Include font_done_for_face in the input_blocked section, just in case.
14046
14047 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14048 (get_char_face_and_encoding): Undo last change and remove the *other*
14049 duplicate definition (i.e. keep the one that's better scoped and that
14050 includes code for the font-backend).
14051
14052 * terminal.c (create_terminal): Default keyboard_coding to
14053 `no-conversion' and terminal_coding to `undecided'.
14054
14055 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14056
14057 * fontset.c (free_realized_fontsets): Check that the table entry does
14058 contain a fontset before trying to compare it to `base'.
14059
14060 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14061 syms_of_charset, and syms_of_coding earlier because init_window_once
14062 now needs Vcoding_system_hash_table to be setup.
14063
14064 * coding.h (default_buffer_file_coding): Remove.
14065
14066 * coding.c (default_buffer_file_coding): Remove.
14067 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14068 than ->symbol, and use the terminal-local coding system.
14069 (syms_of_coding): Don't setup the coding-systems that are not
14070 terminal-local.
14071 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14072
14073 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14074 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14075
14076 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14077 in chartab.c and were re-added here by mistake.
14078 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14079
14080 * doc.c (Fsnarf_documentation):
14081 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14082 src to etc.
14083
14084 * ChangeLog.10: Add mistakenly removed entry.
14085
140862008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14087
14088 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14089
140902008-02-01 Miles Bader <miles@gnu.org>
14091
14092 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14093 Add extra args to FACE_FOR_CHAR.
14094
140952008-02-01 Kenichi Handa <handa@m17n.org>
14096
14097 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14098 in sequence.
14099
14100 * chartab.c (map_sub_char_table, map_char_table): If the range
14101 contains just one character, call the function with that character
14102 even if the depth is not 3.
14103
141042008-02-01 Jason Rumney <jasonr@gnu.org>
14105
14106 * w32font.c (w32font_text_extents): Calculate metrics for the
14107 whole string.
14108
141092008-02-01 Jason Rumney <jasonr@gnu.org>
14110
14111 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14112
141132008-02-01 Jason Rumney <jasonr@gnu.org>
14114
14115 * w32term.c (x_set_glyph_string_clipping): Use
14116 get_glyph_string_clip_rects.
14117 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14118 Adjust for the change of struct glyph_string.
14119
14120 * w32font.c (w32font_draw): Do clipping here.
14121
141222008-02-01 Kenichi Handa <handa@m17n.org>
14123
14124 * xftfont.c (xftfont_draw): Adjust for the change of struct
14125 glyph_string.
14126
14127 * xterm.c (x_set_glyph_string_clipping): Use
14128 get_glyph_string_clip_rects.
14129 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14130 Adjust for the change of struct glyph_string.
14131
14132 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14133 the resulting clip(s}.
14134 (expose_overlaps): Add arg r. Change callers. Set it to
14135 row->clip temporarily.
14136 (expose_window): Redraw rows overlapping the exposed area.
14137
14138 * dispextern.h (struct glyph_row): New member clip.
14139 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14140 clip_height, new member clip, and num_clips.
14141
141422008-02-01 Kenichi Handa <handa@m17n.org>
14143
14144 * data.c (Fchar_or_string_p): Fix docstring.
14145
141462008-02-01 Kenichi Handa <handa@m17n.org>
14147
14148 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14149 create a temporary XftDraw object.
14150
141512008-02-01 Kenichi Handa <handa@m17n.org>
14152
14153 * font.c (Ffontp): Fix docstring.
14154
14155 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14156 strong evidence of ISO-2022.
14157
141582008-02-01 Kenichi Handa <handa@m17n.org>
14159
14160 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14161 SYNTAX_ENTRY_FOLLOW_PARENT.
14162
141632008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14164
14165 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14166 its type.
14167 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14168 Update to the new type of weak_hash_tables and next_weak.
14169
14170 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14171 a plain C pointer to Lisp_Hash_Table.
14172
14173 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14174 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14175 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14176 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14177 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14178 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14179 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14180 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14181 (GC_EQ): Remove since they've been identical to their non-GC_
14182 alter-egos ever since the markbit was eradicated.
14183
14184 * alloc.c:
14185 * buffer.c:
14186 * buffer.h:
14187 * data.c:
14188 * fileio.c:
14189 * filelock.c:
14190 * fns.c:
14191 * frame.h:
14192 * lisp.h:
14193 * macterm.c:
14194 * print.c:
14195 * process.c:
14196 * w32fns.c:
14197 * w32menu.c:
14198 * w32term.c:
14199 * xfns.c:
14200 * xmenu.c:
14201 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14202
142032008-02-01 Kenichi Handa <handa@m17n.org>
14204
14205 * chartab.c (map_sub_char_table): Make it work for the top-level
14206 char-table. Fix handling of parent char-table.
14207 (map_char_table): Adjust for the above change.
14208
142092008-02-01 Jason Rumney <jasonr@gnu.org>
14210
14211 * w32font.c (Qgdi): Rename from Qw32.
14212
142132008-02-01 Jason Rumney <jasonr@gnu.org>
14214
14215 * w32bdf.c (get_quoted_string): Make function static.
14216
142172008-02-01 Kenichi Handa <handa@m17n.org>
14218
14219 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14220 bigger ascent and descent than those of the font, use them as
14221 font's ascent and descent.
14222
142232008-02-01 Kenichi Handa <handa@m17n.org>
14224
14225 * Makefile.in (${lispsource}international/charprop.el): Move this
14226 target within "#ifdef HAVE_UNIDATA" and "#endif".
14227
142282008-02-01 Kenichi Handa <handa@m17n.org>
14229
14230 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14231 (shortlisp): Add ../lisp/language/tai-viet.el.
14232
142332008-02-01 Ulrich Mueller <ulm@gentoo.org>
14234
14235 * Makefile.in (${lispsource}international/charprop.el): Depend on
14236 temacs${EXEEXT}.
14237
142382008-02-01 Jason Rumney <jasonr@gnu.org>
14239
14240 * w32font.c (w32font_close): Delete the GDI font object.
14241
14242 * w32menu.c: Include character.h.
14243
14244 * w32proc.c: Likewise.
14245
14246 * w32select.c: Likewise.
14247
14248 * makefile.w32-in (w32proc.o): Depend on character.h.
14249
142502008-02-01 Jason Rumney <jasonr@gnu.org>
14251
14252 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14253
14254 * w32menu.c (syms_of_w32menu): Likewise.
14255
14256 * w32proc.c (syms_of_ntproc): Likewise.
14257
14258 * w32select.c (syms_of_w32select): Likewise.
14259
14260 * w32term.c (syms_of_w32term): Likewise.
14261
142622008-02-01 Jason Rumney <jasonr@gnu.org>
14263
14264 * w32font.c (w32font_draw): Delete brush after using it.
14265
142662008-02-01 Jason Rumney <jasonr@gnu.org>
14267
14268 * w32font.c (w32font_open): Don't set font_idx.
14269 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14270 to font settings.
14271 (w32font_draw): Fill background explicitly.
14272
142732008-02-01 Jason Rumney <jasonr@gnu.org>
14274
14275 * w32term.c (w32_initialize): Don't call w32font_initialize.
14276
14277 * w32font.c (w32font_info): Remove subranges.
14278 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14279 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14280 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14281 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14282 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14283 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14284 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14285 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14286 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14287 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14288 New symbols.
14289 (font_callback_data): New struct.
14290 (w32font_list, w32font_match): Use it.
14291 (w32font_open): Don't populate subranges.
14292 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14293 (w32font_encode_char): Always return unicode code-point as-is.
14294 (w32font_text_extents): Supply a transformation matrix to
14295 GetGlyphOutline. Never look up by glyph index. Avoid looping
14296 twice. Use unicode version of GetTexExtentPoint32 instead of
14297 glyph index version.
14298 (set_fonts_frame): Remove.
14299 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14300 set frame parameter. Use backward compatible fake foundries.
14301 Save generic family in extra slot under QCfamily. Make width slot
14302 constant. Save QCspacing value. Save list of scripts instead of
14303 binary subranges.
14304 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14305 (add_font_entity_to_list): Use font_callback_data struct. Filter
14306 unwanted fonts.
14307 (add_one_font_entity_to_list): Use font_callback_data struct.
14308 (w32_registry): Default to iso10646_1.
14309 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14310 string font registries. Don't fill in font name if it is a generic
14311 family name, fill family instead. Use spacing, family and script
14312 extra info to fill pitch, family and charset fields.
14313 (list_all_matching_fonts): Use font_callback_data struct.
14314 (unicode_range_for_char): Remove.
14315 (font_supported_scripts): New function.
14316 (w32font_initialize): Remove.
14317 (syms_of_w32font): Update which symbols are defined.
14318
143192008-02-01 Jason Rumney <jasonr@gnu.org>
14320
14321 * font.c (font_pixel_size): Reverse assq_no_quit args.
14322
14323 * w32term.h (FONT_WIDTH): Report max width, not average.
14324 (FONT_MAX_WIDTH): Remove.
14325 (FONT_AVG_WIDTH): New macro.
14326
14327 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14328 redefinition of FONT_WIDTH.
14329
14330 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14331 (w32_cache_char_metrics): Use FONT_WIDTH.
14332
14333 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14334
143352008-02-01 Jason Rumney <jasonr@gnu.org>
14336
14337 * w32font.c (w32font_open): Make lfHeight negative.
14338
14339 * w32fns.c (x_default_font_parameter): Use new style font name.
14340 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14341
143422008-02-01 Jason Rumney <jasonr@gnu.org>
14343
14344 * w32font.c (QCsubranges): New symbol.
14345 (w32font_open, w32font_has_char): Get subranges from subproperty
14346 of extra.
14347 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14348 (syms_of_w32font): Define :subranges symbol.
14349
14350 * font.c (font_put_extra): Expose externally.
14351
14352 * font.h (font_put_extra): Move declaration from font.c.
14353
14354 * font.c (Ffont_get): Use font driver to determine otf capability.
14355 (adjust_anchor): Check if driver defines anchor_point before using.
14356
14357 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14358 (w32font_draw): Use options.
14359 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14360 Fix detection of truetype fonts.
14361 (registry_to_w32_charset): Handle charsets other than iso8859-1
14362 expressed as lisp symbols.
14363 (w32_registry): Express charset as lisp symbol.
14364 (fill_in_logfont): Reverse pixel and point height logic.
14365 Don't set width here. Set quality to default.
14366
14367 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14368 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14369
14370 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14371 Remove redundant loop and allocation.
14372
14373 * makefile.w32-in (font.o, w32font.o): New objects.
14374 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14375 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14376
14377 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14378 STORE_XCHARB a valid l-value.
14379
14380 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14381 calculations for non-Truetype fonts.
14382 (x_draw_glyph_string): Sync with xterm.c.
14383 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14384 Remove redundant code.
14385 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14386
14387 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14388 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14389
14390 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14391 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14392
14393 * w32font.c: New file for w32 font backend.
14394
143952008-02-01 Kenichi Handa <handa@m17n.org>
14396
14397 * term.c: Don't include "buffer.h" twice.
14398
143992008-02-01 Kenichi Handa <handa@m17n.org>
14400
14401 * character.c (Funibyte_string): New function.
14402 (syms_of_character): Defsubr it.
14403
144042008-02-01 Jason Rumney <jasonr@gnu.org>
14405
14406 * w32term.c [USE_FONT_BACKEND]:
14407 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14408 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14409 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14410 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14411 (x_free_frame_resources): Sync with xterm.c.
14412
144132008-02-01 Andreas Schwab <schwab@suse.de>
14414
14415 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14416 char-table size.
14417
144182008-02-01 Kenichi Handa <handa@m17n.org>
14419
14420 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14421
144222008-02-01 Kenichi Handa <handa@m17n.org>
14423
14424 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14425 font_otf_gpos, add font_drive_otf.
14426
14427 * fontset.c (fontset_find_font): Pay attention to font size
14428 specified for a font.
14429 (reorder_font_vector): Check contents of font_def.
14430
14431 * font.c (struct otf_list): Delete it.
14432 (otf_list): Make it a lisp variable.
14433 (otf_open): Use lispy otf_list.
14434 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14435 (check_otf_features): New function.
14436 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14437 New functions.
14438 (font_drive_otf): New function merging font_otf_gsub and
14439 font_otf_gpos.
14440 (font_open_for_lface): New arg spec. Change argument order.
14441 (font_load_for_face): Adjust for the change of font_open_for_lface.
14442 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14443 Ffont_otf_gpos.
14444 (syms_of_font): Staticpro otf_list. Delete defsubr of
14445 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14446
14447 * xfaces.c (set_font_frame_param): Adjust for the change of
14448 font_open_for_lface.
14449
14450 * font.h (font_open_for_lface): Adjust prototype.
14451 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14452 member otf_drive.
14453 (font_otf_gsub, font_otf_gpos): Delete externs.
14454 (font_drive_otf): Extern it.
14455
144562008-02-01 Kenichi Handa <handa@m17n.org>
14457
14458 * font.c (font_at): If the window W is not on a window system,
14459 return Qnil.
14460
14461 * coding.c (produce_chars, encode_coding): Don't call
14462 insert_from_gap if no characters to produce.
14463
144642008-02-01 Kenichi Handa <handa@m17n.org>
14465
14466 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14467 Fclear_face_cache.
14468
14469 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14470
144712008-02-01 Miles Bader <miles@gnu.org>
14472
14473 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14474 Parse "--disable-font-backend" option.
14475 (standard_args): Add "--disable-font-backend" option.
14476
144772008-02-01 Kenichi Handa <handa@m17n.org>
14478
14479 * fontset.c (fontset_find_font): New function.
14480 (fontset_font): Use fontset_find_font.
14481 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14482 Register the specified font for all Latin characters.
14483 (new_fontset_from_font): Register the specified font for all Latin
14484 characters.
14485 (dump_fontset): For a realized fontset, include the base fontset
14486 name in the returned vector.
14487
144882008-02-01 Kenichi Handa <handa@m17n.org>
14489
14490 * character.h (CHAR_STRING): Cast C to unsigned on calling
14491 char_string.
14492
14493 * character.c (char_string): Type of arg C changed to unsigned.
14494 Signal an error if C is an invalid character code.
14495
14496 * editfns.c (general_insert_function, Fchar_to_string):
14497 Use CHARACTERP, not INTEGERP.
14498
144992008-02-01 Kenichi Handa <handa@m17n.org>
14500
14501 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14502 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14503
14504 * regex.c (analyse_first): Fix for multibyte characters in "case
14505 charset:" and "case categoryspec:".
14506
145072008-02-01 Andreas Schwab <schwab@suse.de>
14508
14509 * Makefile.in (LIBES): Move standard libraries to the end.
14510
145112008-02-01 Kenichi Handa <handa@m17n.org>
14512
14513 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14514 nonzero, don't shrink the buffer nextb.
14515
14516 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14517
14518 * coding.c (coding_alloc_by_making_gap): New arg offset.
14519 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14520 offset.
14521 (decode_coding_iso_2022): Update coding->safe_charsets.
14522 (decode_coding_gap): Temporarily set
14523 current_buffer->text->inhibit_shrinking to 1.
14524
145252008-02-01 Kenichi Handa <handa@m17n.org>
14526
14527 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14528 indexing into elements of s->cmp and s->char2b.
14529
145302008-02-01 Juanma Barranquero <lekktu@gmail.com>
14531
14532 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14533
145342008-02-01 Kenichi Handa <handa@m17n.org>
14535
14536 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14537 target_multibyte instead of multibyte.
14538 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14539 (bcmp_translate): Change the argument name from multibyte to
14540 target_multibyte.
14541
145422008-02-01 Kenichi Handa <handa@m17n.org>
14543
14544 These changes are to compile a regexp into a pattern that can be
14545 used both for multibyte and unibyte targets.
14546
14547 * Makefile.in (search.o): Depend on charset.h.
14548
14549 * character.c (multibyte_char_to_unibyte_safe): New function.
14550
14551 * search.c: Include "charset.h".
14552 (compile_pattern_1): Delete argument multibyte. Don't set
14553 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14554 (compile_pattern): Don't compare cp->buf.target_multibyte.
14555 Compare cp->buf.charset_unibyte.
14556 (compile_pattern): Set cp->buf.target_multibyte.
14557
14558 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14559
14560 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14561
14562 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14563 multibyte. Change callers.
14564 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14565 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14566 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14567 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14568 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14569 (regex_compile): Make the compiled pattern usable both for
14570 multibyte and unibyte targets.
14571 (analyse_first): Make the fastmap usable both for multibyte and
14572 unibyte targets.
14573 (TRANSLATE_VIA_MULTIBYTE): Delete.
14574 (re_match_2_internal): Pay attention to the case that the
14575 multibyteness of bufp and target may be different.
14576
145772008-02-01 Kenichi Handa <handa@m17n.org>
14578
14579 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14580 empty box occupy at least one column width.
14581
145822008-02-01 Miles Bader <miles@gnu.org>
14583
14584 * Makefile.in: Remove redundant HAVE_XFT clause.
14585
145862008-02-01 Kenichi Handa <handa@m17n.org>
14587
14588 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14589
145902008-02-01 Kenichi Handa <handa@m17n.org>
14591
14592 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14593 being nil.
14594
145952008-02-01 Kenichi Handa <handa@m17n.org>
14596
14597 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14598
145992008-02-01 Kenichi Handa <handa@m17n.org>
14600
14601 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14602
146032008-02-01 Kenichi Handa <handa@m17n.org>
14604
14605 * search.c (simple_search): Fix previous change.
14606
146072008-02-01 Kenichi Handa <handa@m17n.org>
14608
14609 * xftfont.c (ftfont_font_format): Extern declaration.
14610
14611 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14612
14613 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14614 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14615
14616 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14617 (ftfont_font_format): Fix previous change.
14618
14619 * font.h (Ffont_xlfd_name): EXFUN it.
14620
14621 * font.c (font_parse_xlfd): Fix the array size of `f'.
14622 (register_font_driver): Use EQ to compare driver->type.
14623
14624 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14625 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14626 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14627
146282008-02-01 Kenichi Handa <handa@m17n.org>
14629
14630 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14631 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14632
146332008-02-01 Kenichi Handa <handa@m17n.org>
14634
14635 * xfont.c (xfont_open): Set font->format.
14636
14637 * xftfont.c (xftfont_open): Set font->format.
14638
14639 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14640 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14641 (ftfont_open): Set font->format.
14642 (ftfont_font_format): New function.
14643
14644 * font.h (struct font): New member format.
14645
14646 * font.c (Qopentype): New variable.
14647 (syms_of_font): Defsym it.
14648 (Fquery_font): Change the format of the last element of the return
14649 value.
14650
146512008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14654 last resort.
14655
146562008-02-01 Kenichi Handa <handa@m17n.org>
14657
14658 * coding.c (detect_coding_charset): Fix detection of multi-byte
14659 charset.
14660
146612008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14662
14663 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14664
146652008-02-01 Kenichi Handa <handa@m17n.org>
14666
14667 * xdisp.c (get_next_display_element): Set it->face_id for the
14668 first component of a composition.
14669 (x_produce_glyphs): Check if the font is changed or not for composition.
14670
146712008-02-01 Kenichi Handa <handa@m17n.org>
14672
14673 * fontset.c (Qlatin): New variable.
14674 (syms_of_fontset): Define it as a lisp symbol.
14675 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14676
146772008-02-01 Kenichi Handa <handa@m17n.org>
14678
14679 * font.c (font_unparse_fcname): Pay attention to the case that
14680 some of font property is a null string.
14681
146822008-02-01 Kenichi Handa <handa@m17n.org>
14683
14684 * term.c: Include "composite.h".
14685 (encode_terminal_code): Output all components of composition.
14686 Check the size of encode_terminal_src.
14687 (produce_glyphs): For composition, call produce_composite_glyph.
14688 (append_composite_glyph, produce_composite_glyph): New functions.
14689
14690 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14691 is not found, get font_info from the current ascii face.
14692
146932008-02-01 Kenichi Handa <handa@m17n.org>
14694
14695 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14696 buffer-file-name to Qnil before calling insert_from_buffer.
14697
14698 * font.c (font_unparse_fcname): Pay attention to the case that
14699 foundry is a null string.
14700
147012008-02-01 Kenichi Handa <handa@m17n.org>
14702
14703 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14704
14705 * font.c (Qunicode_sip): New variable.
14706 (syms_of_font): Declare it as a Lisp symbol.
14707
14708 * font.h (Qunicode_sip): Extern it.
14709
147102008-02-01 Kenichi Handa <handa@m17n.org>
14711
14712 * composite.c (get_composition_id): Pay attention to TAB component.
14713
14714 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14715 TAB. Adjust for the change of s->char2b which always points to
14716 the first element of allocated memory.
14717
14718 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14719
14720 * xdisp.c (handle_composition_prop): Set it->c to the first
14721 non-TAB component.
14722 (fill_composite_glyph_string): Change argument.
14723 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14724 (x_produce_glyphs): Fix handling of left/right padding.
14725
147262008-02-01 Kenichi Handa <handa@m17n.org>
14727
14728 * coding.c (detect_coding_system): Fix for handling off
14729 inhibit_iso_escape_detection. Fix for the case that no coding
14730 system is defined for a specific coding category.
14731
147322008-02-01 Kenichi Handa <handa@m17n.org>
14733
14734 * font.c (font_matching_entity): Delete unused local var.
14735
14736 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14737 opening a font.
14738
14739 * fileio.c (Finsert_file_contents): On recovering a file, assume
14740 Unix-like eol.
14741 (choose_write_coding_system): On auto-saving a file, force
14742 Unix-like eol.
14743
14744 * coding.c (setup_coding_system): Fix setting of
14745 coding->common_flags based on eol_type.
14746 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14747 inherit from it.
14748
147492008-02-01 Kenichi Handa <handa@m17n.org>
14750
14751 * alloc.c (NSTATICS): Increas to 0x600.
14752
147532008-02-01 Kenichi Handa <handa@m17n.org>
14754
14755 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14756 (ftfont_list): Don't check :name property.
14757 (ftfont_match): New function.
14758 (ftfont_pattern_entity): If the pattern doesn't contain
14759 FC_SPACING, don't assume FC_MONO.
14760
14761 * font.h (struct font_driver): New member `match'.
14762 (font_update_drivers): Adjust prototype.
14763
14764 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14765 property of FONT.
14766 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14767 them unconditionally.
14768 (font_matching_entity): New function.
14769 (font_open_by_name): Try font_matching_entity if exact match is
14770 not found.
14771 (font_update_drivers): Delete the arg FONT. Return a list of
14772 actually used backends. Don't free faces, font caches here.
14773 Don't store data in frame parameters. Don't call x_set_font.
14774 (Ffont_spec): Store :name property as is.
14775 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14776 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14777 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14778 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14779 Call font->driver->otf_gsub instead of font_otf_gsub.
14780
14781 * frame.c (x_set_font_backend): Do more works that were done in
14782 font_update_drivers before.
14783
14784 * xfont.c (xfont_match): New function.
14785 (xfont_driver): Set xfont_driver.match to xfont_match.
14786 (xfont_draw): Set font in GC if necessary.
14787
14788 * ftxfont.c (ftxfont_match): New function.
14789 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14790
14791 * xftfont.c (xftfont_match): New function.
14792 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14793
147942008-02-01 Kenichi Handa <handa@m17n.org>
14795
14796 * font.h (struct font): New member scalable.
14797 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14798 (font_otf_gsub): Adjust prototype.
14799
14800 * font.c (font_otf_capability): Fix handling of the default langsys.
14801 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14802 Check the contents of SPEC.
14803 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14804 (check_gstring): New function.
14805 (REPLACEMENT_CHARACTER): New macro.
14806 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14807 glyph codes of GSTRING.
14808 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14809 (font_prepare_composition): Set cmp->glyph_len.
14810 (font_open_entity): Set font->scalable.
14811 (Ffont_get): Handle :otf property.
14812 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14813 functions.
14814 (Fquery_font): Use font->font.full_name.
14815 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14816 Sfont_otf_alternates.
14817
14818 * ftfont.c (ftfont_open): Set font->font.full_name and
14819 font->font.name properly. Fix calculation of font->font.height
14820 and font->min_width.
14821
14822 * ftxfont.c (ftxfont_create_gcs): New function.
14823 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14824 (ftxfont_draw_backgrond): Fix filling region.
14825 (ftxfont_default_fid): New function.
14826 (ftxfont_open): Set xfont->fid to the return value of
14827 ftxfont_default_fid.
14828 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14829 (ftxfont_done_face): Free only GCs that are created by
14830 ftxfont_create_gcs.
14831 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14832
14833 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14834 Clip to src->width, etc (not src->clip_XXX).
14835
14836 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14837 FontBackend frame parameter.
14838
148392008-02-01 Kenichi Handa <handa@m17n.org>
14840
14841 * font.h (struct font_driver_list): New member `on'.
14842 (Fclear_font_cache): EXFUN it.
14843 (font_update_drivers): Extern it.
14844
14845 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14846 (font_list_entities): Check driver_list->on.
14847 (register_font_driver): Initalize `on' member to 0.
14848 (font_update_drivers): New function.
14849 (Fclear_font_cache): Check driver_list->on.
14850
14851 * frame.h (Qfont_backend): Extern it.
14852 (x_set_font_backend): Extern it.
14853
14854 * frame.c (Qfont_backend): New variable.
14855 (frame_parms): New element for font-backend.
14856 (x_set_font_backend): New function.
14857
14858 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14859 FontBackend frame parameter.
14860 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14861 x_set_font_backend.
14862
14863 * xfont.c (xfont_list): Don't try listing by :name property if the
14864 name is not for XLFD.
14865
148662008-02-01 Kenichi Handa <handa@m17n.org>
14867
14868 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14869 (LGLYPH_SET_TO): New macros.
14870 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14871 element of G is vector or not.
14872 (font_at): Extern it.
14873
14874 * font.c: Include window.h.
14875 (font_lispy_object): New function.
14876 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14877 end of valid glyph.
14878 (font_close_object): Fix getting (struct font *).
14879 (font_at): New function.
14880 (Ffont_get): If FONT is a font-object, get entity from it.
14881 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14882 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14883 range check.
14884 (Ffont_at): New function.
14885 (syms_of_font): Defsubr Sfont_at.
14886
14887 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14888 before the entry for Qcomposition.
14889 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14890 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14891 the font in gstring.
14892 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14893 LGLYPH_FORM (g) to detect the end of valid glyph.
14894 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14895 we are composing with gstring.
14896
14897 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14898 Check if adjustment is vector or not.
14899
14900 * Makefile.in (font.o): Make it depends on window.h.
14901
149022008-02-01 Kenichi Handa <handa@m17n.org>
14903
14904 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14905 adjustment is vector or not.
14906
149072008-02-01 Miles Bader <miles@gnu.org>
14908
14909 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14914 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14915 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14916
14917 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14918 (DEVICE_DELTA): Fix typo.
14919 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14920 LGLYPH format.
14921
14922 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14923 the change of LGLYPH format.
14924
149252008-02-01 Kenichi Handa <handa@m17n.org>
14926
14927 * ftfont.c (ftfont_list): Fix typo.
14928 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14929
149302008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14931
14932 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14933
14934 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14935 xftface_info is non-NULL.
14936
149372008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14938
14939 * ftfont.c (ftfont_list): Move misplaced #endif.
14940
149412008-02-01 Kenichi Handa <handa@m17n.org>
14942
14943 * ftfont.c (ftfont_list): Pay attention to the case that
14944 FC_CAPABILITY is not defined.
14945
149462008-02-01 Kenichi Handa <handa@m17n.org>
14947
14948 * xftfont.c (xftfont_open): Set charset related members to -1.
14949
14950 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14951 QCname.
14952 (ftfont_open): Set charset related members to -1.
14953
14954 * fontset.c (Votf_script_alist): New variable.
14955 (syms_of_fontset): Initialize it.
14956 (fontset_font): Delete unused variable.
14957
14958 * fontset.h (Votf_script_alist): Extern it.
14959
14960 * font.c (font_find_for_lface): Optimize code.
14961
14962 * font.h (font_close_object, font_merge_old_spec): Extern them.
14963
149642008-02-01 Kenichi Handa <handa@m17n.org>
14965
14966 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14967 (syms_of_font): Initialize them.
14968 (font_pixel_size): Allow float value in dpi.
14969 (font_prop_validate_type): Delete.
14970 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14971 Change caller.
14972 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14973 (font_prop_validate_extra): Delete.
14974 (font_prop_validate_spacing): New function.
14975 (font_property_table): Add elements for all known properties.
14976 (get_font_prop_index): Rename from check_font_prop_name. New
14977 argument FROM. Change caller.
14978 (font_prop_validate): Validate all known properties.
14979 (font_put_extra): Delete argument force. Change caller.
14980 (font_expand_wildcards): Make it static. Fix the way of shrinking
14981 the possible range.
14982 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14983 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14984 Change caller.
14985 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14986 (font_parse_fcname): Delete argument merge. Fix parsing of point
14987 size. Don't validate properties values here. Change caller.
14988 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14989 (font_open_by_name): Delete unused variable.
14990 (Ffont_spec): Likewise. Validate property values.
14991 (Ffont_match_p): New function.
14992
14993 * font.h (QCscalable): Extern it.
14994 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14995
14996 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14997
14998 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14999 (xfont_list_pattern): New function.
15000 (xfont_list): Use xfont_list_pattern.
15001
150022008-02-01 Kenichi Handa <handa@m17n.org>
15003
15004 * font.h (Flist_fonts): EXFUN it.
15005
150062008-02-01 Jason Rumney <jasonr@gnu.org>
15007
15008 * w32term.c (w32_initialize): Add back smoothing_type and
15009 smoothing_enabled definitions.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15014 s->face->font on determining underline position.
15015
150162008-02-01 Kenichi Handa <handa@m17n.org>
15017
15018 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15019 (font_has_char): Accept font-object too.
15020 (font_find_for_lface): Try at first with a size specified in face.
15021
150222008-02-01 Kenichi Handa <handa@m17n.org>
15023
15024 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15025 font_open_by_name.
15026
150272008-02-01 Kenichi Handa <handa@m17n.org>
15028
15029 * font.h (QCspacing, QCdpi): Extern them.
15030 (enum font_spacing): New enum.
15031 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15032
15033 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15034 (QCspacing, QCdpi): New variables.
15035 (syms_of_font): Initialize them.
15036 (font_pixel_size): New function.
15037 (font_put_extra): New function.
15038 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15039 in FONT_EXTRA.
15040 (font_parse_fcname): Handle enumerated values (e.g. bold).
15041 Fix handling font size. Add QCname property that contains only
15042 unknown properties.
15043 (font_score): Change argument. Change caller. Pay attention to
15044 FONT_PIXEL_SIZE_QUANTUM.
15045 (font_sort_entites, font_list_entities, font_find_for_lface)
15046 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15047 (Ffont_spec): Add QCname property that contains only unknown properties.
15048
15049 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15050 include weight in listing pattern, instead check weight of each
15051 listed font. Don't include scalable in pattern. Pay attention to
15052 FONT_PIXEL_SIZE_QUANTUM.
15053
150542008-02-01 Kenichi Handa <handa@m17n.org>
15055
15056 * font.c (font_parse_fcname): Fix parsing of point-size.
15057 (font_unparse_fcname): Produce symbolic names for style properties.
15058 (font_list_entities): Handle float size correctly.
15059 (font_open_by_name): Prefer `normal' property values if the name
15060 doesn't specify them.
15061
15062 * fontset.c (Finternal_char_font): Use font_get_name, not
15063 Ffont_xlfd_name.
15064
15065 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15066 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15067 pattern. Don't force scalable.
15068
15069 * xftfont.c (xftfont_open): For generating a name, start from
15070 96-byte buffer.
15071
150722008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15073
15074 * frame.h (x_new_fontset2): Fix prototype.
15075
150762008-02-01 Kenichi Handa <handa@m17n.org>
15077
15078 * font.h (struct font_driver): Delete member parse_name.
15079 (font_match_p, font_get_spec, font_parse_fcname)
15080 (font_unparse_fcname): Extern them.
15081 (font_get_name): Adjust prototype.
15082
15083 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15084 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15085 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15086 unnecessary checks for weight, slant, and swidth.
15087 (font_parse_fcname): New function.
15088 (font_unparse_fcname): New function.
15089 (font_parse_name): New function.
15090 (font_match_p): New function.
15091 (font_get_name): Change return value to Lisp string.
15092 (font_get_spec): New function.
15093 (Qunspecified, Qignore_defface): Don't extern them.
15094 (font_find_for_lface): Assume that LFACE is fully specified.
15095 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15096 object, use it for FACE.
15097 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15098 driver->parse_name.
15099 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15100
15101 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15102 prototype.
15103
15104 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15105 argument F. Don't call Fnew_fontset. Instead, directly call
15106 make_fontset.
15107
15108 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15109
15110 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15111 of x_new_fontset2.
15112
15113 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15114 (Qsans__serif): New variables.
15115 (ftfont_generic_family_list): New variable.
15116 (syms_of_ftfont): Initialize the above variables.
15117 (ftfont_pattern_entity): Delete argument NAME.
15118 (ftfont_list_generic_family): New function.
15119 (ftfont_parse_name): Delete this function.
15120 (ftfont_list): Try generic family only when FcFontList found no font.
15121 (ftfont_list_family): Fix args to FcObjectSetBuild.
15122
15123 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15124 object in attrs[LFACE_FONT_INDEX].
15125 (set_lface_from_font_name): Cancel all changes for font-backend.
15126 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15127 function.
15128 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15129 font object in QCfont attribute.
15130 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15131 (realize_default_face) [USE_FONT_BACKEND]: Call
15132 set_lface_from_font_and_fontset.
15133
15134 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15135 "fixed", and signal error here if no suitable font was found.
15136
15137 * xfont.c (xfont_parse_name): Delete this function.
15138
15139 * xftfont.c (xftfont_open): Change coding style of error
15140 handling. Generate fontconfig's fontname pattern.
15141
15142 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15143 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15144
15145 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15146 Both args FONTSET and FONT_OBJECT must be existing ones.
15147
151482008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15149
15150 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15151
151522008-02-01 Kenichi Handa <handa@m17n.org>
15153
15154 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15155
15156 * font.h (struct font): Fix typo.
15157
15158 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15159 XLFD_XXX_INDEX.
15160 (enum xlfd_field_mask): New enum.
15161 (intern_font_field): Changed argument. Change caller. If digits
15162 are followed by non-digits, return a symbol.
15163 (font_expand_wildcards): New function.
15164 (font_parse_xlfd): Fix wildcard handling.
15165 (Ffont_spec): If :name is specified, reflect the info in the other
15166 properties.
15167
15168 * ftfont.c (ftfont_pattern_entity): Fix typo.
15169 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15170 locale.
15171
151722008-02-01 Kenichi Handa <handa@m17n.org>
15173
15174 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15175
15176 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15177 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15178 registry doesn't specify encoding part.
15179 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15180 (font_open_by_name): At first try parsing the name.
15181 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15182 as Lisp symbols.
15183
15184 * fontset.c (reorder_font_vector): Pay attention to the case that
15185 the 3rd element of font_def is nil.
15186 (fontset_font): For the default fontset, append one more fontset
15187 elements for a script-based font specification. Don't add script
15188 attribute on finding a font.
15189 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15190 font name.
15191 (fontset_ascii_font): If a font can't be opened, return nil.
15192
15193 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15194 (ftfont_pattern_entity): New function.
15195 (ftfont_get_cache): Assume that freetype_font_cache is already
15196 initialized.
15197 (ftfont_list): Handle the case that a file is specified in font
15198 name. Use ftfont_pattern_entity to generate entities.
15199 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15200 (syms_of_ftfont): Initialize freetype_font_cache.
15201
15202 * xftfont.c (xftfont_open): Make the font name fontconfig's
15203 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15204 (xftfont_close): Free font->font.name if not NULL.
15205
15206 * xfont.c (xfont_list): If script is specified for a font, return
15207 null_vector.
15208 (xfont_list_family): Declare argument type.
15209
15210 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15211 name, set LFACE_FONT (lface) to nil.
15212
15213 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15214 return Qnil.
15215
152162008-02-01 Kenichi Handa <handa@m17n.org>
15217
15218 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15219 (standard_args): Add "-enable-font-backend".
15220
152212008-02-01 Kenichi Handa <handa@m17n.org>
15222
15223 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15224 (struct xftdraw_list, xftdraw_list): Delete them.
15225 (register_xftdraw, check_xftdraw): Delete them.
15226 (xftfont_prepare_face): Don't call register_xftdraw.
15227 (xftfont_done_face): Don't call check_xftdraw.
15228 (xftfont_draw): Get background color only when with_background is
15229 nonzero.
15230
15231 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15232
152332008-02-01 Kenichi Handa <handa@m17n.org>
15234
15235 These changes are for the new font handling codes.
15236
15237 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15238 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15239 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15240 (FONTSRC, FONTOBJ): New variables.
15241 (obj): Add $(FONTOBJ).
15242 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15243 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15244 @LIBOTF_LIBS@.
15245 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15246 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15247
15248 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15249
15250 * character.h (Vscript_representative_chars): Extern it.
15251
15252 * character.c (Vscript_representative_chars): New variable.
15253 (syms_of_character): Declare it as a Lisp variable.
15254
15255 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15256 enable_font_backend is nonzero, accept the composition method
15257 COMPOSITION_WITH_GLYPH_STRING.
15258
15259 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15260 enumeration COMPOSITION_WITH_GLYPH_STRING.
15261
15262 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15263 members clip_x, clip_y, clip_width, and clip_height.
15264 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15265
15266 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15267 --enable-font-backend. Call syms_of_font.
15268
15269 * fns.c (assoc_no_quit): New function.
15270
15271 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15272 (face_for_font, new_fontset_from_font)
15273 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15274
15275 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15276 (fontset_font, fontset_ascii, face_for_char)
15277 (make_fontset_for_ascii_face, Ffont_info)
15278 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15279 is nonzero, use font-backend mechanism.
15280 (find_font_encoding): Make it non-static.
15281 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15282 New functions.
15283
15284 * frame.h (struct frame): New members resx and resy.
15285 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15286 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15287
15288 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15289 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15290
15291 * lisp.h (assoc_no_quit): Extern it.
15292
15293 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15294 Through out the file, use FONT_INFO_FROM_FACE instead of
15295 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15296 rif->per_char_metric.
15297 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15298 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15299 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15300 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15301 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15302 nonzero, use font-backend mechanism.
15303 (get_per_char_metric): New function.
15304
15305 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15306 (set_lface_from_font_name)
15307 (set_font_frame_param, free_realized_face)
15308 (prepare_face_for_display, clear_face_gcs)
15309 (Finternal_set_font_selection_order, realize_x_face)
15310 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15311 font-backend mechanism.
15312 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15313 (load_face_font) [USE_FONT_BACKEND]: Abort.
15314 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15315 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15316
15317 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15318 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15319 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15320 nonzero, register all available font drivers. Call
15321 x_default_font_parameter for deciding a font.
15322 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15323
15324 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15325 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15326 (x_set_glyph_string_clipping_exactly)
15327 (x_compute_glyph_string_overhangs)
15328 (x_draw_glyph_string_foreground)
15329 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15330 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15331 enable_font_backend is nonzero, use font-backend mechanism.
15332 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15333
153342008-02-01 Kenichi Handa <handa@m17n.org>
15335
15336 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15337 system_eol_type.
15338 (syms_of_coding): Initialize system_eol_type.
15339
15340 * process.c (Fset_process_coding_system): Inherit system's eol
15341 format if necessary.
15342
153432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15344
15345 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15346
153472008-02-01 Kenichi Handa <handa@m17n.org>
15348
15349 * coding.c (decode_eol): Pay attention to buffer relocation in
15350 del_range_2.
15351 (decode_coding): Call decode_eol before restoring undo_list.
15352
153532008-02-01 Kenichi Handa <handa@m17n.org>
15354
15355 * charset.c (Fdefine_charset_internal): Fix setting of
15356 emacs_mule_bytes.
15357
153582008-02-01 Kenichi Handa <handa@m17n.org>
15359
15360 * keyboard.c (read_char): Check if C is a character or not before
15361 looking up Vkeyboard_translate_table.
15362
153632008-02-01 Kenichi Handa <handa@m17n.org>
15364
15365 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15366 condition to terminate the loop.
15367
153682008-02-01 Kenichi Handa <handa@m17n.org>
15369
15370 * coding.c (produce_composition): Compare charbuf[i] instead of
15371 args[i] against 0.
15372 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15373
153742008-02-01 Kenichi Handa <handa@m17n.org>
15375
15376 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15377 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15378 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15379 detect_coding.
15380 (emacs_mule_char): Handle old style (Emacs 20) component character
15381 of a composition.
15382 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15383 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15384 composition rule.
15385 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15386
153872008-02-01 Kenichi Handa <handa@m17n.org>
15388
15389 * coding.c (encode_coding_ccl): Allocate destination dynamically
15390 when necessary.
15391
153922008-02-01 Kenichi Handa <handa@m17n.org>
15393
15394 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15395 the loop. When quitted, show a proper error message.
15396
153972008-02-01 Kenichi Handa <handa@m17n.org>
15398
15399 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15400 src->clip_head and src->clip_tail temporarily instead of src->hl.
15401
15402 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15403 character sequence.
15404 (Fccl_execute_on_string): Use ASET, not XSET.
15405
154062008-02-01 Kenichi Handa <handa@m17n.org>
15407
15408 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15409
154102008-02-01 Kenichi Handa <handa@m17n.org>
15411
15412 * coding.c (decode_coding): Fix the condition of terminating the
15413 decoding loop.
15414
154152008-02-01 Kenichi Handa <handa@m17n.org>
15416
15417 * data.c (Faset): On setting a character bigger than 255 in a
15418 unibyte string, signal an error instead of make the string multibyte.
15419
154202008-02-01 Kenichi Handa <handa@m17n.org>
15421
15422 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15423 made by a mapping table.
15424
154252008-02-01 Kenichi Handa <handa@m17n.org>
15426
15427 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15428 not.
15429 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15430 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15431
15432 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15433 s->face is NULL or not.
15434
154352008-02-01 Kenichi Handa <handa@m17n.org>
15436
15437 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15438 (x_draw_glyph_string): Fix drawing of right_overhang and
15439 left_overhang around/on cursor.
15440
15441 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15442
154432008-02-01 Kenichi Handa <handa@m17n.org>
15444
15445 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15446
154472008-02-01 Kenichi Handa <handa@m17n.org>
15448
15449 * coding.c (Fdefine_coding_system_internal)
15450 (Fdefine_coding_system_alias): Avoid a duplicated element in
15451 Vcoding_system_alist.
15452
154532008-02-01 Kenichi Handa <handa@m17n.org>
15454
15455 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15456
15457 * coding.c (Qcoding_system_define_form): New variable.
15458 (syms_of_coding): Intern and staticpro it.
15459 (Fcoding_system_p): Check Qcoding_system_define_form.
15460 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15461
15462 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15463 Fcoding_system_p.
15464 (CHECK_CODING_SYSTEM): If ID is not available, call
15465 Fcheck_coding_system.
15466 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15467 Try also Fcheck_coding_system.
15468
154692008-02-01 Kenichi Handa <handa@m17n.org>
15470
15471 * coding.c (code_conversion_restore): GCPRO arg.
15472
154732008-02-01 Kenichi Handa <handa@m17n.org>
15474
15475 * character.c (lisp_string_width): Check multibyteness of STRING.
15476
154772008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15478
15479 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15480 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15481 (decode_mac_font_name): Use decode_coding_c_string instead of
15482 decode_coding.
15483 (x_load_font): Initialize fontp->fontset to -1. Set
15484 fontp->encoding_type.
15485
154862008-02-01 Kenichi Handa <handa@m17n.org>
15487
15488 * search.c (search_buffer): Give up BM search on case-fold-search
15489 if one of a target character has a case-equivalence of different
15490 byte length even if that target charcter is an ASCII.
15491 (simple_search): Fix calculation of byte length of matched text.
15492 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15493
154942008-02-01 Kenichi Handa <handa@m17n.org>
15495
15496 * coding.c (decode_coding): Fix handling of invalid bytes.
15497
154982008-02-01 Kenichi Handa <handa@m17n.org>
15499
15500 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15501 Unicode characters.
15502
155032008-02-01 Kenichi Handa <handa@m17n.org>
15504
15505 * coding.c (encode_coding_object): If a pre-write-conversion
15506 function makes a new buffer, kill it.
15507
155082008-02-01 Kenichi Handa <handa@m17n.org>
15509
15510 * coding.c (QCascii_compatible_p): New variable.
15511 (syms_of_coding): Initialize it.
15512 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15513 calling string_char.
15514 (record_conversion_result): Add `default:' case.
15515 (coding_charset_list): Delete unused variable `coding_type'.
15516 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15517 property in the plist of the coding system.
15518 (Fcoding_system_put): Check QCascii_compatible_p.
15519
155202008-02-01 Miles Bader <miles@gnu.org>
15521
15522 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15523 removed calculation of frame `f', as it's now used.
15524
155252008-02-01 Kenichi Handa <handa@m17n.org>
15526
15527 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15528 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15529 (UNIDATA): New variable.
15530 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15531 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15532 $(RUN_TEMACS) unconditionally.
15533
155342008-02-01 Kenichi Handa <handa@m17n.org>
15535
15536 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15537 (admindir): New variable.
15538 ($(lispsource)international/charprop.el): New target.
15539
155402008-02-01 Miles Bader <miles@gnu.org>
15541
15542 * character.c (chars-in-region): Remove obsolete function.
15543 (syms_of_character): Remove its initialization.
15544
155452008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15546
15547 * w32select.c (validate_coding_system)
15548 (setup_windows_coding_system): New functions.
15549 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15550 setup_windows_coding_system.
15551 (setup_config, Fw32_get_clipboard_data): Use
15552 validate_coding_system.
15553 (Fx_selection_exists): Move call to setup_config to a place
15554 where signals are allowed.
15555
15556 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15557 (Fcheck_coding_system): Add declarations.
15558
155592008-02-01 Kenichi Handa <handa@m17n.org>
15560
15561 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15562
155632008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15564
15565 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15566 string as the second argument for x_new_fontset.
15567
155682008-02-01 Kenichi Handa <handa@m17n.org>
15569
15570 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15571 (encode_coding_object): Use safe_call instead of call2.
15572
155732008-02-01 Kenichi Handa <handa@m17n.org>
15574
15575 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15576
15577 * Makefile.in (lisp): Include charprop.el.
15578
155792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15580
15581 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15582 Not sure if it's unnecessary.
15583
155842008-02-01 Steven Tamm <steventamm@mac.com>
15585
15586 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15587 some possibly unnecessary fontset checking code that crashed
15588 when creating a new frame.
15589
155902008-02-01 Kenichi Handa <handa@m17n.org>
15591
15592 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15593 lookup_face.
15594
15595 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15596
15597 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15598
155992008-02-01 Kenichi Handa <handa@m17n.org>
15600
15601 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15602 (coding_charset_list): New function.
15603
15604 * coding.h (coding_charset_list): Extern it.
15605
156062008-02-01 Kenichi Handa <handa@m17n.org>
15607
15608 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15609 concatenation of family and registry.
15610
156112008-02-01 Kenichi Handa <handa@m17n.org>
15612
15613 * character.h (BYTE8_STRING): Fix typo.
15614
15615 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15616 string to multibyte (sync to HEAD).
15617
15618 * casefiddle.c (casify_region): Handle changes in byte-length
15619 using replace_range_2 (sync to HEAD).
15620
156212008-02-01 Andreas Schwab <schwab@suse.de>
15622
15623 * chartab.c (map_char_table): GCPRO table and arg.
15624
156252008-02-01 Kenichi Handa <handa@m17n.org>
15626
15627 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15628 already at limit.
15629
156302008-02-01 Kenichi Handa <handa@m17n.org>
15631
15632 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15633 instead of fast_c_string_match_ignore_case.
15634 (find_font_encoding): Change argument to Lisp_Object. Use
15635 fast_string_match_ignore_case instead of
15636 fast_c_string_match_ignore_case. Change caller.
15637
156382008-02-01 Kenichi Handa <handa@m17n.org>
15639
15640 * xdisp.c (get_next_display_element): In unibyte case, decide to
15641 display in octal form by checking a character by
15642 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15643
15644 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15645
15646 * character.c (unibyte_has_multibyte_table): New variable.
15647
15648 * character.h (unibyte_has_multibyte_table): Extern it.
15649 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15650
156512008-02-01 Kenichi Handa <handa@m17n.org>
15652
15653 * coding.c (encode_coding_iso_2022): Fix handling of charset
15654 annotation.
15655
156562008-02-01 Kenichi Handa <handa@m17n.org>
15657
15658 * coding.c (setup_coding_system): If coding_system is nil, use
15659 Qundecided.
15660 (Fterminal_coding_system): Return nil if terminal coding system is
15661 `undecided'.
15662 (syms_of_coding): Define coding-system `undecided' here. Setup
15663 terminal_coding as `undecided'.
15664
156652008-02-01 Kenichi Handa <handa@m17n.org>
15666
15667 * xdisp.c (message_dolog, set_message_1): Call
15668 unibyte_char_to_multibyte with arg type int.
15669
15670 * lread.c (read1): Fix reading of a char-table.
15671
15672 * print.c (print_object): Include sub char-table in circularities
15673 detection.
15674
156752008-02-01 Kenichi Handa <handa@m17n.org>
15676
15677 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15678 Append the found sequences in car of ARGS instead of prepending.
15679
156802008-02-01 Kenichi Handa <handa@m17n.org>
15681
15682 * fileio.c (report_file_error): Make a unibyte string from
15683 strerror (errorno).
15684 (Fsubstitute_in_file_name): Fix the arg to
15685 unibyte_char_to_multibyte. It is evaluated twice.
15686
156872008-02-01 Kenichi Handa <handa@m17n.org>
15688
15689 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15690
156912008-02-01 Kenichi Handa <handa@m17n.org>
15692
15693 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15694 BOM is not found.
15695 (detect_coding, detect_coding_system): Optimization for ISO-2022
15696 when no 8-bit data is found.
15697
156982008-02-01 Jason Rumney <jasonr@gnu.org>
15699
15700 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15701
157022008-02-01 Kenichi Handa <handa@m17n.org>
15703
15704 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15705 CHARS.
15706
157072008-02-01 Steven Tamm <steventamm@mac.com>
15708
15709 * macterm.c (mac_encode_char): Add charset argument and update
15710 to use encoding_type.
15711 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15712 switch to pure fontset.
15713 (decode_mac_font_name): Temporarily remove decoding.
15714 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15715 (x_load_font): Temporarily remove encoding.
15716
157172008-02-01 Kenichi Handa <handa@m17n.org>
15718
15719 * xfaces.c (Fface_font): If frame is not on a window system,
15720 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15721 refer to face->font.
15722 (split_font_name_into_vector, build_font_name_from_vector)
15723 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15724 when HAVE_WINDOW_SYSTEM is defined.
15725
157262008-02-01 Kenichi Handa <handa@m17n.org>
15727
15728 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15729 (x_produce_glyphs): Fix setting of members of cmp in case
15730 cmp->glyph_len is zero.
15731
15732 * fontset.c (Fset_fontset_font): Fix docstring.
15733 (Ffontset_info): Make it backward compatible. New arg ALL.
15734
157352008-02-01 Kim F. Storm <storm@cua.dk>
15736
15737 * process.c (read_process_output): Grow decoding_buf when needed;
15738 this could cause a crash in allocate_string and compact_small_strings.
15739
157402008-02-01 Kenichi Handa <handa@m17n.org>
15741
15742 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15743
157442008-02-01 Kenichi Handa <handa@m17n.org>
15745
15746 * coding.c (setup_coding_system): Set coding->common_flags
15747 correctly for raw-text.
15748 (consume_chars): On encoding unibyte text by raw-text, don't check
15749 multibyte form.
15750 (encode_coding): On encoding by raw-text, never use translation tables.
15751
15752 * fileio.c (e_write): Short cut for the case of no encoding.
15753
157542008-02-01 Kenichi Handa <handa@m17n.org>
15755
15756 * coding.c (detect_coding, detect_coding_system): Delete unused
15757 variables.
15758
157592008-02-01 Kenichi Handa <handa@m17n.org>
15760
15761 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15762 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15763
157642008-02-01 Kenichi Handa <handa@m17n.org>
15765
15766 * coding.c (Ffind_coding_systems_region_internal): Include
15767 raw-text and no-conversion in the result.
15768
157692008-02-01 Kenichi Handa <handa@m17n.org>
15770
15771 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15772 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15773 FONT_DEF.
15774 (font_def_arg, add_arg, from_arg, to_arg): New args.
15775 (set_fontset_font): Change argument.
15776 (Fset_fontset_font): Fix for the case that TARGET is a script
15777 name and charset name.
15778 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15779
157802008-02-01 Kenichi Handa <handa@m17n.org>
15781
15782 * fontset.c (fontset_font): Rename from fontset_face. Change return
15783 value.
15784 (face_suitable_for_char_p, face_for_char): Adjust for the change
15785 of fontset_font.
15786 (make_fontset_for_ascii_face): Fix setting of the fontset element
15787 for ASCII.
15788 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15789 to get a font name.
15790 (Ffontset_info): Adjust for the change of fontset_font.
15791
15792 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15793
15794 * character.h (LEADING_CODE_LATIN_1_MIN)
15795 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15796
157972008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * editfns.c (check_translation): New function.
15800 (Ftranslate_region_internal): Handle M:N mapping.
15801
158022008-02-01 Kenichi Handa <handa@m17n.org>
15803
15804 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15805
158062008-02-01 Kenichi Handa <handa@m17n.org>
15807
15808 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15809 goto invalid_code.
15810 (decode_coding_iso_2022): Fix handling of invalid designation.
15811
15812 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15813 after calling code_conversion_save.
15814
158152008-02-01 Kenichi Handa <handa@m17n.org>
15816
15817 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15818
15819 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15820
15821 * fontset.c: Include "intervals.h".
15822 (fontset_face): Fix comparing of Lisp_Objects.
15823 (free_face_fontset, new_fontset_from_font_name): Fix
15824 Lisp_Object/int mixup.
15825
15826 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15827
15828 * coding.c: Add many prototypes for static functions.
15829 (get_translation_table): Allow max_lookup to be NULL.
15830 (decode_coding, Ffind_coding_systems_region_internal)
15831 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15832 get_translation_table with max_lookup NULL.
15833
158342008-02-01 Kenichi Handa <handa@m17n.org>
15835
15836 * coding.c (get_translation_table): Declare it as Lisp_Object.
15837 (LOOKUP_TRANSLATION_TABLE): New macro.
15838 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15839 instead of CHAR_TABLE_REF.
15840
158412008-02-01 Kenichi Handa <handa@m17n.org>
15842
15843 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15844 annotation data format.
15845 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15846 Change arguments FROM and TO to single argument NCHARS. Change caller.
15847 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15848 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15849 (decode_coding_ccl, decode_coding_charset): Pay attention to
15850 coding->charbuf_used.
15851 (get_translation): New function.
15852 (produce_chars): New arguments translation_table and last_block.
15853 Translate characters here. Return number of carryover chars.
15854 Change caller.
15855 (produce_composition): New argument pos. Change caller.
15856 Adjust for the change of annotation data format.
15857 (produce_charset, produce_annotation): Likewise.
15858 (decode_coding, encode_coding): Don't call translate_chars.
15859 (consume_chars): New arg translation_table. Change caller.
15860 (translate_chars): Delete.
15861 (syms_of_coding): Make translation-table's number of extra slots 2.
15862
158632008-02-01 Kenichi Handa <handa@m17n.org>
15864
15865 * search.c (simple_search): Fix setting this_pos_byte in backward
15866 search.
15867
15868 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15869 byte sequence.
15870 (detect_coding_ccl): Fix setting of the variable valids.
15871
158722008-02-01 Kenichi Handa <handa@m17n.org>
15873
15874 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15875
15876 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15877
15878 * editfns.c (Ftranslate_region_internal): Rename from
15879 Ftranslate_region. Accept a char-table in TABLE.
15880 (syms_of_editfns): Defsubr Stranslate_region_internal.
15881
15882 * xfaces.c (set_lface_from_font_name): If a font is specified for
15883 a frame, generate a fontset from the font.
15884 (build_scalable_font_name): If the scalable font is requested for
15885 a specific size, don't change that size.
15886 (try_font_list): Try a scalable font also in the case that a
15887 pattern string is specified.
15888
158892008-02-01 Kenichi Handa <handa@m17n.org>
15890
15891 * xfaces.c (Fface_font): New optional arg CHARACTER.
15892
158932008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * charset.h (CHARSET_OFFSET): New macro.
15896
158972008-02-01 Kenichi Handa <handa@m17n.org>
15898
15899 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15900
15901 * fontset.c (fontset_face): Handle the case that repertory is a
15902 char-table.
15903 (find_font_encoding): Return nil for unknown encoding.
15904 (Fset_fontset_font): Ignore a font of unknown encoding.
15905
159062008-02-01 Kenichi Handa <handa@m17n.org>
15907
15908 * keymap.c (describe_vector): Handle default value of a char table.
15909
15910 * fontset.c (fontset_face): Handle fallback fonts correctly.
15911 (Ffontset_info): Return infomation about fallback fonts.
15912
159132008-02-01 Kenichi Handa <handa@m17n.org>
15914
15915 * fontset.c (FONTSET_DEFAULT): New macro.
15916 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15917 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15918 the case that it is nil.
15919 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15920 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15921
15922 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15923 subset or superset.
15924
159252008-02-01 Kenichi Handa <handa@m17n.org>
15926
15927 * emacs.c (main): Call init_charset after syms_of_XXX.
15928
15929 * charset.c (Vcharset_map_directory): Delete.
15930 (Vcharset_map_path): New variable.
15931 (load_charset_map_from_file): Use Vcharset_map_path instead.
15932 (init_charset): Initialize Vcharset_map_path.
15933 (syms_of_charset): Delete declaration of "charset-map-directory",
15934 add declaration of "charset-map-path".
15935
159362008-02-01 Kenichi Handa <handa@m17n.org>
15937
15938 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15939 ASCII only string.
15940
15941 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15942
15943 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15944 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15945
159462008-02-01 Kenichi Handa <handa@m17n.org>
15947
15948 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15949
15950 * coding.c (QCmnemonic, QCdefalut_char)
15951 (QCdecode_translation_table, QCencode_translation_table)
15952 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15953 (get_translation_table): Return a list of translation tables if
15954 necessary.
15955 (decode_coding): Call get_translation_table with ENCODEP 0.
15956 (char_encodable_p): If translation_table is non-nil, always call
15957 translate_char.
15958 (Fdefine_coding_system_internal): Accept list of translation
15959 tables as :encode-translation-table and :decode-translation-table.
15960 (Fcoding_system_put): New function.
15961 (syms_of_coding): Declare new symbols. Defsubr
15962 Scoding_system_put.
15963 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15964 typically JISX0212.
15965
15966 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15967 when the charset is superset type.
15968
15969 * character.c (translate_char): Accept list of translation tables.
15970
159712008-02-01 Kenichi Handa <handa@m17n.org>
15972
15973 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15974 (CODING_ATTR_TRANS_TBL): New macro.
15975
15976 * coding.c (get_translation_table): New function.
15977 (translate_chars): Fix the bug of skipping annotation data.
15978 (decode_coding, encode_coding): Utilize get_translation_table.
15979 (char_encodable_p, Funencodable_char_position): Translate char if
15980 necessary.
15981 (Ffind_coding_systems_region_internal)
15982 (Fcheck_coding_systems_region): Setup translation table for encode
15983 in a coding system attribute vector in advance.
15984 (Fdefine_coding_system_internal): Allow a symbol as translation
15985 table. For shift-jis type coding system, allow 4th charset.
15986
159872008-02-01 Kenichi Handa <handa@m17n.org>
15988
15989 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15990
15991 * xdisp.c (get_next_display_element): Pass -1 as POS to
15992 FACE_FOR_CHAR if displaying a C-string.
15993
159942008-02-01 Kenichi Handa <handa@m17n.org>
15995
15996 * composite.c (get_composition_id): Handle xoff and yoff in a
15997 composition rule.
15998
15999 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16000 (struct composition): New member lbearing and rbearing.
16001
16002 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16003 (x_get_glyph_overhangs): Handle a composition glyph.
16004 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16005
16006 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16007 composition glyph.
16008
160092008-02-01 Kenichi Handa <handa@m17n.org>
16010
16011 * print.c: Include charset.h.
16012 (Vprint_charset_text_property): New variable.
16013 (Qdefault): Extern it.
16014 (PRINT_STRING_NON_CHARSET_FOUND)
16015 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16016 (print_check_string_result): New variable.
16017 (print_check_string_charset_prop): New function.
16018 (print_prune_charset_plist): New variable.
16019 (print_prune_string_charset): New function.
16020 (print_object): Call print_prune_string_charset if
16021 Vprint_charset_text_property is not t.
16022 (print_interval): Print nothing if interval->plist is nil.
16023 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16024 variable. Init and staticpro print_prune_charset_plist.
16025
160262008-02-01 Kenichi Handa <handa@m17n.org>
16027
16028 * fontset.c (new_fontset_from_font_name): Use the specified font
16029 for all characters in the new fontset.
16030
16031 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16032 OBJECT args.
16033
16034 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16035 OBJECT args for composition too.
16036
16037 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16038 OBJECT args.
16039
160402008-02-01 Kenichi Handa <handa@m17n.org>
16041
16042 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16043
16044 * fontset.c (reorder_font_vector): Adjust for the change of
16045 FONT_DEF format.
16046 (fontset_face): New arg id. Change caller.
16047 (face_for_char): New args pos and object.
16048 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16049 (fs_query_fontset): Check NAME by Fassoc too.
16050 (Fset_fontset_font): Allow non-XLFD font name.
16051 (Ffontset_info): Adjust for the change of FONT_DEF format.
16052
16053 * fontset.h (face_for_char): Adjust prototype.
16054
16055 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16056 (append_space, extend_face_to_end_of_line)
16057 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16058 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16059
16060 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16061 POS and OBJECT args.
16062
16063 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16064 POS and OBJECT args.
16065
160662008-02-01 Jason Rumney <jasonr@gnu.org>
16067
16068 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16069 of GlobalAlloc'ed memory.
16070
160712008-02-01 Kenichi Handa <handa@m17n.org>
16072
16073 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16074
16075 * charset.h (charset_table_used): Delete extern.
16076
16077 * charset.c (charset_table_used): Make it static.
16078 (map_charset_chars): Fix args to c_function with.
16079
16080 * chartab.c (map_sub_char_table_for_charset): Fix args to
16081 c_function with.
16082
16083 * coding.h (enum coding_result_code): Delete
16084 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16085
16086 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16087 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16088 (Vlast_code_conversion_error): New variables.
16089 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16090 (ONE_MORE_BYTE): Record error if any instead of signaling an
16091 error. If non-ASCII multibyte char is found, return the negative
16092 value of the code. All callers changed to check it.
16093 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16094 (record_conversion_result): New function. Change all codes setting
16095 coding->result to call this function.
16096 (detect_coding_utf_8, decode_coding_utf_8)
16097 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16098 Don't use the local variable incomplete.
16099 (emacs_mule_char): Change the second arg to `const'.
16100 (decode_coding): Fix of flushing out unprocessed data.
16101 (make_conversion_work_buffer): Fix making of a work buffer.
16102 (decode_coding_object): Return coding->dst_object.
16103
16104 * fontset.c (set_fontset_font): Fix args.
16105
16106 * lisp.h (CHARACTERBITS): Define as 22.
16107
16108 * process.c (send_process): Be sure to set coding->src_multibyte.
16109
16110 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16111
161122008-02-01 Kenichi Handa <handa@m17n.org>
16113
16114 * xdisp.c (handle_auto_composed_prop): Give limit to
16115 Fnext_single_char_property_change.
16116
161172008-02-01 Kenichi Handa <handa@m17n.org>
16118
16119 * composite.c (syms_of_composite): Don't make the composition hash
16120 table weak.
16121
16122 * fontset.c (Fset_fontset_font): Fix docstring.
16123
16124 * lisp.h (detect_coding_system): Adjust prototype.
16125
16126 * fileio.c (kill_workbuf_unwind): Delete this function.
16127 (Finsert_file_contents): Adjust the call of detect_coding_system.
16128 Get conversion_buffer by code_conversion_save. Use the macro
16129 CODING_MAY_REQUIRE_DECODING. After decoding, update
16130 coding_system.
16131
16132 * coding.h (make_conversion_work_buffer): Delete extern.
16133 (code_conversion_save): Extern it.
16134
16135 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16136 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16137 (decode_coding_utf_8): Don't do eol converion.
16138 (detect_coding_utf_16): Check coding->src_chars, not
16139 coding->src_bytes. Add heuristics for those that have no signature.
16140 (decode_coding_emacs_mule, decode_coding_iso_2022)
16141 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16142 Don't do eol converion.
16143 (adjust_coding_eol_type): Return a new coding system.
16144 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16145 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16146 each change.
16147 (decode_coding): Pay attention to undo_list. Do eol conversion for
16148 all types of coding-systems (if necessary).
16149 (Vcode_conversion_work_buf_list): Delete it.
16150 (Vcode_conversion_reused_workbuf): Rename from
16151 Vcode_conversion_reused_work_buf.
16152 (Vcode_conversion_workbuf_name): New variable.
16153 (reused_workbuf_in_use): New variable.
16154 (make_conversion_work_buffer): Delete the arg DEPTH.
16155 (code_conversion_restore): Change argument to cons.
16156 (code_conversion_save): Delete the argument BUFFER. Change callers.
16157 (detect_coding_system): New argument src_chars. Change callers.
16158 Fix for utf-16 detection.
16159 (init_coding_once): Don't use ISO_carriage_return.
16160 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16161 reused_workbuf_in_use.
16162
161632008-02-01 Kenichi Handa <handa@m17n.org>
16164
16165 * keymap.c (store_in_keymap): Pay attention to the case that idx
16166 is a cons specifying a character range.
16167
161682008-02-01 Kenichi Handa <handa@m17n.org>
16169
16170 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16171 HANDLED_RECOMPUTE_PROPS.
16172
16173 * coding.c (Fdefine_coding_system_internal): Fix checking of
16174 ascii compatibility.
16175
161762008-02-01 Kenichi Handa <handa@m17n.org>
16177
16178 * charset.c (find_charsets_in_text): Delete unused locale variable.
16179 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16180
16181 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16182 Resync charset_list to Vemacs_mule_charset_list.
16183
16184 * keymap.c (store_in_keymap): Pay attention to the case that idx
16185 is a cons specifying a character range.
16186
161872008-02-01 Kenichi Handa <handa@m17n.org>
16188
16189 * composite.c (update_compositions): Bind inhibit-read-only, etc
16190 to t before calling remove-list-of-text-properties.
16191
16192 * print.c (print_object): Always print ASCII chars as is.
16193
161942008-02-01 Kenichi Handa <handa@m17n.org>
16195
16196 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16197
16198 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16199 is a char table.
16200
162012008-02-01 Kenichi Handa <handa@m17n.org>
16202
16203 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16204
162052008-02-01 Kenichi Handa <handa@m17n.org>
16206
16207 * xfaces.c (set_lface_from_font_name): Fix for the case that
16208 FONTNAME is not fontset name.
16209
162102008-02-01 Kenichi Handa <handa@m17n.org>
16211
16212 * fns.c (base64_encode_1): Fix previous change.
16213
162142008-02-01 Kenichi Handa <handa@m17n.org>
16215
16216 * fontset.c (set_fontset_font): New function.
16217 (Fset_fontset_font): If a font is specified for a charset, use
16218 map_charset_chars to store the font spec in a fontset.
16219
162202008-02-01 Kenichi Handa <handa@m17n.org>
16221
16222 * fontset.c (fontset_face): Create a fallback fontset on demand.
16223 (make_fontset): Don't create a fallback fontset here.
16224 (free_face_fontset): Free a fallback fontset (if any) too.
16225 (n_auto_fontsets): Delete this variable.
16226 (auto_fontset_alist): New variable.
16227 (new_fontset_from_font_name): Check auto_fontset_alist.
16228 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16229 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16230 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16231 Defsubr Sfontset_list_all.
16232
162332008-02-01 Kenichi Handa <handa@m17n.org>
16234
16235 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16236
162372008-02-01 Kenichi Handa <handa@m17n.org>
16238
16239 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16240
162412008-02-01 Kenichi Handa <handa@m17n.org>
16242
16243 * editfns.c (Fgoto_char): Fix docstring.
16244
162452008-02-01 Kenichi Handa <handa@m17n.org>
16246
16247 * insdel.c (insert_from_gap): Adjust intervals correctly.
16248
162492008-02-01 Jason Rumney <jasonr@gnu.org>
16250
16251 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16252 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16253 (w32_initialize): Try to load it.
16254 (x_get_font_repertory): Use it if available.
16255 (w32_encode_char): Add shortcut for unicode output.
16256
16257 * w32fns.c (w32_load_system_font): Default charset to -1.
16258 (x_to_w32_charset): Match all fonts for unicode.
16259 (w32_to_x_charset): New parameter matching. Don't return partial
16260 or wildcard charsets.
16261 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16262 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16263 (w32_to_x_font): Match charset to real charset.
16264 (enum_font_cb2): Always list unicode versions.
16265
16266 * makefile.w32-in (temacs): Increase EMHEAP.
16267
162682008-02-01 Jason Rumney <jasonr@gnu.org>
16269
16270 * w32term.c (w32_encode_char): New charset parameter.
16271 font_info.encoding becomes encoding_type.
16272 (x_get_font_repertory): New function. Warning: stub only!
16273 (x_new_font): Return quickly if font already set.
16274 (x_new_fontset): fontsetname parameter is Lisp_Object.
16275 Use new fs_query_fontset. Try new_fontset_from_font_name.
16276 Use fontset_name for return value.
16277
16278 * w32term.h: Declare x_get_font_repertory.
16279
16280 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16281 place of find_charset_in_text. Use encode_coding_object in place
16282 of encode_coding.
16283 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16284 decode_coding.
16285
16286 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16287 of x_new_fontset.
16288 (w32_load_system_font): Initialize charset as unicode.
16289 font_info.encoding becomes encoding_type.
16290 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16291 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16292 (syms_of_w32fns): Set get_font_repertory_func.
16293
16294 * w32console.c: Include character.h. Use terminal_encode_buffer
16295 from term.c.
16296 (write_glyphs): Use new version of encode_terminal_code. Use
16297 encode_coding_object in place of encode_coding.
16298
16299 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16300 encoding becomes encoding_type.
16301
16302 * term.c (terminal_encode_buffer): Make externally visible.
16303
16304 * makefile.w32-in: Add character.h dependancies.
16305 (character.o, chartab.o): New targets.
16306
163072008-02-01 Kenichi Handa <handa@m17n.org>
16308
16309 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16310 CODING_ID_EOL_TYPE.
16311
163122008-02-01 Andreas Schwab <schwab@suse.de>
16313
16314 * coding.c (produce_chars): Revert last change.
16315
163162008-02-01 Kenichi Handa <handa@m17n.org>
16317
16318 * charset.h (charset_unicode): Extern it.
16319
16320 * charset.c (string_xstring_p): Check by (C >= 0x100).
16321 (find_charsets_in_text): Change format of the arc CHARSETS. New
16322 arg MULTIBYTE.
16323 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16324 change of find_charsets_in_text.
16325 (Fsplit_char): Fix doc. Never return unknown.
16326
16327 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16328
16329 * coding.c (Fdefine_coding_system_alias): Update
16330 Vcoding_system_list.
16331
16332 * fontset.c (load_font_get_repertory): Pay attention to the case
16333 that ENCODING of a font is specified by a char-table.
16334
16335 * xterm.c (x_get_font_repertory): Handle the case that the
16336 encoding of font is other than Unicode.
16337
163382008-02-01 Kenichi Handa <handa@m17n.org>
16339
16340 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16341 if a character is encodable by the terminal coding system. If
16342 not, produces proper number of `?'s. Update
16343 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16344 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16345
163462008-02-01 Kenichi Handa <handa@m17n.org>
16347
16348 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16349 variables.
16350 (encode_terminal_code): Change argument. Encode multiple
16351 characters at once. Store the result of encoding in
16352 terminal_encode_buffer.
16353 (write_glyphs, insert_glyphs): Adjust for the change of
16354 encode_terminal_code.
16355 (term_init): Initialize terminal_encode_buffer and
16356 terminal_encode_buf_size.
16357
16358 * coding.c (consume_chars): If coding->src_object is nil, don't
16359 check annotation.
16360
163612008-02-01 Kenichi Handa <handa@m17n.org>
16362
16363 * character.c (char_string): Use ASCII_CHAR_P instead of
16364 SINGLE_BYTE_CHAR_P.
16365
163662008-02-01 Kenichi Handa <handa@m17n.org>
16367
16368 * xdisp.c (handle_auto_composed_prop): Check if the last
16369 characters of auto-composed region is newly composed with the
16370 following characters.
16371 (handle_composition_prop): Fix checking of point being inside
16372 composition.
16373
163742008-02-01 Kenichi Handa <handa@m17n.org>
16375
16376 * fns.c (concat): Don't change multibyteness of the result by
16377 concatenating an 8-bit character.
16378
16379 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16380 multibyteness of the result when newelt is an 8-bit character.
16381
163822008-02-01 Dave Love <fx@gnu.org>
16383
16384 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16385 EMACS_INT.
16386
16387 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16388
16389 * xfaces.c (face_numeric_value): Declare dim size_t.
16390 (Finternal_lisp_face_equal_p): Remove unused f.
16391
16392 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16393 (MATRIX_ROW): Remove unused vars.
16394 (draw_glyphs, x_insert_glyphs, fast_find_position)
16395 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16396 byte/char counts.
16397
16398 * regex.c (regex_compile): Remove unused var.
16399
16400 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16401
16402 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16403 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16404
16405 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16406
16407 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16408
16409 * fileio.c (Fwrite_region): Remove unused var.
16410
16411 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16412 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16413
16414 * composite.c (Fremove_list_of_text_properties): Declare.
16415
16416 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16417 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16418 (coding_inherit_eol_type): Remove unused attrs.
16419 (detect_coding): Cast arg of detect_eol.
16420
16421 * charset.c (syms_of_charset): Remove unused var p.
16422 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16423 byte/char counts.
16424
16425 * casetab.c (set_case_table): Remove unused var.
16426
16427 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16428 unused vars.
16429
164302008-02-01 Dave Love <fx@gnu.org>
16431
16432 * xterm.c (x_bitmap_mask): Declare.
16433
164342008-02-01 Dave Love <fx@gnu.org>
16435
16436 * xterm.c (x_term_init): Fix type error.
16437
16438 * lisp.h: Add Funibyte_char_to_multibyte.
16439
16440 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16441 (Fset_coding_system_priority): Doc fix.
16442
16443 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16444
16445 * indent.c (check_composition): Make start and end EMACS_INT.
16446
16447 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16448
16449 * xdisp.c (handle_composition_prop, check_point_in_composition):
16450 Make buffer positions EMACS_INT.
16451
16452 * composite.c (find_composition, run_composition_function)
16453 (update_compositions, Ffind_composition_internal): Make buffer
16454 positions EMACS_INT.
16455
16456 * composite.h (find_composition, update_compositions): Make
16457 position args EMACS_INT.
16458
16459 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16460
16461 * intervals.c (get_property_and_range):
16462 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16463
16464 * unexalpha.c: Don't include varargs.h.
16465
164662008-02-01 Dave Love <fx@gnu.org>
16467
16468 * coding.h (ENCODE_UTF_8): New.
16469
16470 * Makefile.in (gtkutil.o): Depend on coding.h.
16471
16472 * coding.c (Fset_coding_system_priority): Doc fix.
16473
164742008-02-01 Kenichi Handa <handa@m17n.org>
16475
16476 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16477 the case of auto saving.
16478
164792008-02-01 Andreas Schwab <schwab@suse.de>
16480
16481 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16482 `range' from GC.
16483
164842008-02-01 Kenichi Handa <handa@m17n.org>
16485
16486 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16487
164882008-02-01 Kenichi Handa <handa@m17n.org>
16489
16490 * fileio.c (choose_write_coding_system): Return a decided coding system.
16491 (Fwrite_region): Set Vlast_coding_system_used to the return value
16492 of choose_write_coding_system.
16493
164942008-02-01 Kenichi Handa <handa@m17n.org>
16495
16496 * charset.c (Fset_charset_priority): Pay attention to duplicated
16497 arguments.
16498
16499 * coding.c (QCcategory): New variable.
16500 (syms_of_coding): Defsym it. Set all elements of
16501 Vcoding_category_table and their symbol values.
16502 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16503 coding-category-XXX, and coding-category-list.
16504 (Fdefine_coding_system_internal): Add category in the plist.
16505
165062008-02-01 Kenichi Handa <handa@m17n.org>
16507
16508 * callproc.c (Fcall_process): Handle carryover correctly.
16509
16510 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16511 (raw_text_coding_system): Check NILP (coding_system).
16512 (coding_inherit_eol_type): Check NILP (coding_system) and
16513 NILP (parent).
16514 (consume_chars): Fix for the case of raw-text.
16515
16516 * process.c (read_process_output): Handle carryover correctly.
16517
165182008-02-01 Dave Love <fx@gnu.org>
16519
16520 * regex.c (re_search_2): Fix last change.
16521
165222008-02-01 Kenichi Handa <handa@m17n.org>
16523
16524 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16525 target_multibyte. Even in a unibyte case, return a converted
16526 multibyte char.
16527 (GET_CHAR_AFTER): New macro.
16528 (PATFETCH): Translate via multibyte char.
16529 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16530 (SETUP_MULTIBYTE_RANGE): New macro.
16531 (regex_compile): Setup compiled code so that its multibyteness
16532 matches that of a target. Fix the handling of "[X-YZ]" using
16533 SETUP_MULTIBYTE_RANGE.
16534 (analyse_first) <charset>: For filling fastmap for all multibyte
16535 characters, don't check by BASE_LEADING_CODE_P.
16536 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16537 the same as RE_MULTIBYTE_P (bufp) now.
16538 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16539 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16540 (TRANSLATE_VIA_MULTIBYTE): New macro.
16541 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16542 It is the same as RE_MULTIBYTE_P (bufp) now.
16543 <exactn>: Translate via multibyte.
16544 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16545 translate it.
16546 <charset, charset_not>: Fetch a character by
16547 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16548 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16549 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16550 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16551 by GET_CHAR_AFTER.
16552 (bcmp_translate): Likewise.
16553
16554 * search.c (compile_pattern): Check the member target_multibyte,
16555 not the member multibyte of buf.
16556
16557 * lread.c (read1): While reading a string, set force_singlebyte
16558 and force_multibyte correctly.
16559
16560 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16561 up of unibyte_to_multibyte_table.
16562
165632008-02-01 Kenichi Handa <handa@m17n.org>
16564
16565 * coding.c (setup_coding_system): If coding has
16566 post-read-conversion or pre-write-conversion, set
16567 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16568 respectively.
16569 (decode_coding_gap): Run post-read-conversion if any.
16570
16571 * fileio.c (Finsert_file_contents): Even if we read into a
16572 unibyte buffer, check if we must decode the result or not.
16573
165742008-02-01 Kenichi Handa <handa@m17n.org>
16575
16576 * coding.c (make_conversion_work_buffer): Change the work buffer
16577 name to the same one as that of Emacs 21.
16578
165792008-02-01 Kenichi Handa <handa@m17n.org>
16580
16581 * coding.h (make_conversion_work_buffer): Adjust prototype.
16582 (code_conversion_restore): Don't extern it.
16583
16584 * coding.c (detected_mask): Delete unused variable.
16585 (decode_coding_iso_2022): Pay attention to the byte sequence of
16586 CTEXT extended segment, and retain those bytes as is.
16587 (decode_coding_ccl): Delete unused variable `valids'.
16588 (setup_coding_system): Delete unused variable `category'.
16589 (consume_chars): Delete unused variable `category'. Make it work
16590 for non-multibyte case.
16591 (make_conversion_work_buffer): Change argument.
16592 (saved_coding): Delete unused variable.
16593 (code_conversion_restore): Don't check saved_coding->destination.
16594 (code_conversion_save): New function.
16595 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16596 instead of record_unwind_protect.
16597 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16598 (detect_coding_system): Delete unused variable `mask'.
16599 (Fdefine_coding_system_internal): Delete unused variable id.
16600
16601 * fileio.c (kill_workbuf_unwind): New function.
16602 (Finsert_file_contents): On replacing, call
16603 make_conversion_work_buffer with correct args, and call
16604 record_unwind_protect with the first arg kill_workbuf_unwind.
16605
16606 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16607
166082008-02-01 Kenichi Handa <handa@m17n.org>
16609
16610 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16611 (fontset_add): Fix for the case that TO is less than TO1.
16612 (Ffontset_info): Don't use fallback fontset on checking the
16613 default fontset.
16614 (dump_fontset): New function for debugging.
16615
16616 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16617 coding_type is Qcharset.
16618
166192008-02-01 Kenichi Handa <handa@m17n.org>
16620
16621 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16622 (map_char_table): Don't inherit the value from the parent on
16623 initializing VAL. Adjust for the above change.
16624
166252008-02-01 Kenichi Handa <handa@m17n.org>
16626
16627 * coding.c (Qsignature, Qendian): Delete these variables.
16628 (syms_of_coding): Don't initialize them.
16629 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16630 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16631 detect_info->found.
16632 (decode_coding_utf_16): Don't detect BOM here.
16633 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16634 is NOT utf_16_without_bom.
16635 (setup_coding_system): For a coding system of type utf-16, check
16636 if the attribute :endian is Qbig or not (not nil or not), and set
16637 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16638 (detect_coding): If coding type is utf-16 and BOM detection is
16639 required, detect it.
16640 (Fdefine_coding_system_internal): For a coding system of type
16641 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16642
166432008-02-01 Kenichi Handa <handa@m17n.org>
16644
16645 * coding.c (coding_set_source): Fix for the case that the current
16646 buffer is different from coding->src_object.
16647 (decode_coding_object): Don't use the conversion work buffer if
16648 DST_OBJECT is a buffer.
16649
166502008-02-01 Dave Love <fx@gnu.org>
16651
16652 * lread.c (read_emacs_mule_char) [len==2]: Index
16653 emacs_mule_charset correctly.
16654
166552008-02-01 Dave Love <fx@gnu.org>
16656
16657 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16658 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16659 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16660 treated specially.)
16661 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16662 (detected_mask): Remove Big5 bits.
16663
166642008-02-01 Kenichi Handa <handa@m17n.org>
16665
16666 The following changes are to make the font rescaling facility
16667 compatible with Emacs 21.
16668
16669 * xfaces.c (Vface_font_rescale_alist): Rename from
16670 Vface_resizing_fonts.
16671 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16672 (font_rescale_ratio): Rename from font_resizing_ratio.
16673 (split_font_name): Set font->rescale_ratio.
16674 (better_font_p): Pay attention to font->rescale_ratio.
16675 (build_scalable_font_name): Likewise. Change RESX, and RESY
16676 fields.
16677 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16678
166792008-02-01 Kenichi Handa <handa@m17n.org>
16680
16681 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16682 (Qutf_16_le): Remove these variables.
16683 (syms_of_coding): Don't DEFSYM them.
16684 (decode_coding_utf_16): Fix handling of BOM.
16685 (encode_coding_utf_16): Fix handling of BOM.
16686
166872008-02-01 Kenichi Handa <handa@m17n.org>
16688
16689 * fileio.c (Finsert_file_contents): On replacing, before decoding
16690 the file into the work buffer, set point of the work buffer to the end.
16691
166922008-02-01 Dave Love <fx@gnu.org>
16693
16694 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16695
166962008-02-01 Dave Love <fx@gnu.org>
16697
16698 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16699 and fix C types.
16700
167012008-02-01 Kenichi Handa <handa@m17n.org>
16702
16703 * xdisp.c (SKIP_GLYPHS): New macro.
16704 (set_cursor_from_row): Pay attention to string display properties.
16705
16706 * category.c (copy_category_entry): Fix for the case that RANGE
16707 is an integer.
16708
16709 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16710
16711 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16712
167132008-02-01 Kenichi Handa <handa@m17n.org>
16714
16715 * charset.c (Fcharset_id_internal): New function.
16716 (syms_of_charset): Defsubr it.
16717
16718 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16719 with the last arg charset_list acquired from coding.
16720 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16721 the attribute coding_attr_ccl_valids.
16722
16723 * coding.h (enum define_coding_ccl_arg_index): Set the first
16724 member coding_arg_ccl_decoder to coding_arg_max.
16725
16726 * ccl.h (ccl_driver): Adjust prototype.
16727
16728 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16729 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16730 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16731 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16732 last arg Qnil.
16733
167342008-02-01 Kenichi Handa <handa@m17n.org>
16735
16736 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16737 call encode_char.
16738
16739 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16740
167412008-02-01 Dave Love <fx@gnu.org>
16742
16743 * composite.c (syms_of_composite): Make composition_hash_table weak.
16744
167452008-02-01 Kenichi Handa <handa@m17n.org>
16746
16747 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16748 (font_name_registry): Don't extern them.
16749 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16750
16751 * fontset.h (Qfontset): Don't extern it.
16752 (new_fontset_from_font_name): Extern it.
16753
16754 * fontset.c: Give 8 extra slots to fontset objects.
16755 (Qfontset_info): New variable.
16756 (syms_of_fontset): Defsym it.
16757 (FONTSET_FALLBACK): New macro.
16758 (fontset_face): Try also the default fontset.
16759 (make_fontset): Realize a fallback fontset from the default fontset.
16760 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16761 using split_font_name_into_vector and build_font_name_from_vector.
16762 (Fset_fontset_font): Access the elements of font_spec by enum
16763 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16764 name by using split_font_name_into_vector.
16765 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16766 generate a proper font name from the fontset name. Update
16767 Vfontset_alias_alist.
16768 (n_auto_fontsets): New variable.
16769 (new_fontset_from_font_name): New function.
16770 (Ffont_info): Store the information about fonts generated from the
16771 default fontset in the first extra slot of the returned char-table.
16772
16773 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16774 (font_name_registry): Delete function.
16775 (split_font_name_into_vector): New function.
16776 (build_font_name_from_vector): New function.
16777 (font_list): The argument REGISTRY is now a list of registry names.
16778 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16779 specifies an explicit font name, return the name as is. Make a
16780 list of registy names.
16781
16782 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16783 of x_new_fontset.
16784 (Fx_create_frame): Don't call x_new_fontset here. Just use
16785 x_list_fonts to check the existence of fonts.
16786
16787 * xterm.h (x_new_fontset): Adjust prototype.
16788
16789 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16790 string. Use new_fontset_from_font_name to create a fontset from a
16791 font name.
16792
167932008-02-01 Kenichi Handa <handa@m17n.org>
16794
16795 * syntax.c (Vfind_word_boundary_function_table): New name for
16796 Vnext_word_boundary_function_table.
16797 (find-word-boundary-function-table): New name for
16798 next-word-boundary-function-table.
16799
168002008-02-01 Dave Love <fx@gnu.org>
16801
16802 * Makefile.in: Fix some dependencies.
16803
16804 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16805 set it to nil before returning.
16806
16807 * composite.c (update_compositions): Fix type error.
16808
16809 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16810
168112008-02-01 Kenichi Handa <handa@m17n.org>
16812
16813 * xterm.c (x_new_font): Optimize for the case that the font is
16814 already set for the frame.
16815
168162008-02-01 Kenichi Handa <handa@m17n.org>
16817
16818 * chartab.c (char_table_ascii): Check if the char table contents
16819 is sub-char-table or not.
16820 (char_table_set, char_table_set_range): Fix argument to
16821 char_table_ascii.
16822
16823 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16824 (detect_coding_utf_8, detect_coding_utf_16)
16825 (detect_coding_emacs_mule, detect_coding_iso_2022)
16826 (detect_coding_sjis, detect_coding_big5)
16827 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16828 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16829 sequence is valid in this coding system. Change callers.
16830 (MAX_ANNOTATION_LENGTH): New macro.
16831 (ADD_ANNOTATION_DATA): New macro.
16832 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16833 ADD_ANNOTATION_DATA. Change the format of annotation data.
16834 (ADD_CHARSET_DATA): New macro.
16835 (emacs_mule_char): New argument ID. Change callers.
16836 (decode_coding_emacs_mule, decode_coding_iso_2022)
16837 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16838 Produce charset annotation data in coding->charbuf.
16839 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16840 to charset annotation data in coding->charbuf.
16841 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16842 coding->common_flags if the coding system is iso-2022 based and
16843 uses designation.
16844 (produce_composition): Adjust for the new annotation data format.
16845 (produce_charset): New function.
16846 (produce_annotation): Handle charset annotation.
16847 (handle_composition_annotation, handle_charset_annotation): New
16848 functions.
16849 (consume_chars): Handle charset annotation. Utilize the above two
16850 functions.
16851 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16852 buffer, get the deleted text as a string and set
16853 coding->src_object to that string.
16854 (detect_coding, detect_coding_system): Use the new struct
16855 coding_detection_info.
16856
16857 * coding.h (struct coding_detection_info): New structure.
16858 (struct coding_system): Adjust prototype of the member `detector'.
16859 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16860
168612008-02-01 Kenichi Handa <handa@m17n.org>
16862
16863 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16864
168652008-02-01 Dave Love <fx@gnu.org>
16866
16867 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16868 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16869 to new local and nullify apropos_accumulate before returning.
16870 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16871
168722008-02-01 Kenichi Handa <handa@m17n.org>
16873
16874 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16875 correctly.
e3eea1fc 16876
aac0c6e3
MR
168772008-02-01 Dave Love <fx@gnu.org>
16878
16879 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16880
168812008-02-01 Kenichi Handa <handa@m17n.org>
16882
16883 The following changes are to make character composition happen
16884 automatically on displaying.
16885
16886 * Makefile.in (lisp, shortlisp): Add composite.elc.
16887
16888 * composite.h (Qauto_composed, Vauto_composition_function)
16889 (Qauto_composition_function): Extern them.
16890
16891 * composite.c (Vcomposition_function_table)
16892 (Qcomposition_function_table): Delete variables.
16893 (Qauto_composed, Vauto_composition_function)
16894 (Qauto_composition_function): New variables.
16895 (run_composition_function): Don't call
16896 compose-chars-after-function.
16897 (update_compositions): Clear `auto-composed' text property.
16898 (compose_chars_in_text): Delete this function.
16899 (syms_of_composite): Staticpro Qauto_composed and
16900 Qauto_composition_function. Declare Vauto_composition_function as
16901 a Lisp variable.
16902
16903 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16904
16905 * xdisp.c (it_props): Add an entry for Qauto_composed.
16906 (handle_auto_composed_prop): New function.
16907
16908 * xselect.c (selection_data_to_lisp_data): Don't call
16909 compose_chars_in_text.
16910
169112008-02-01 Dave Love <fx@gnu.org>
16912
16913 * keyboard.c (read_char): Modify checking around use of
16914 Vkeyboard_translate_table.
16915
16916 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16917 and fix C types.
16918
169192008-02-01 Kenichi Handa <handa@m17n.org>
16920
16921 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16922 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16923 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16924 the case that the last byte is '\r' correctly.
16925 (decode_coding): Flush out the unprocessed data correctly.
16926 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16927
169282008-02-01 Dave Love <fx@gnu.org>
16929
16930 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16931 Add XK_ISO... case.
16932 (xaw_scroll_callback): Revert last change.
16933
169342008-02-01 Kenichi Handa <handa@m17n.org>
16935
16936 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16937
169382008-02-01 Kenichi Handa <handa@m17n.org>
16939
16940 * xfaces.c (Vface_resizing_fonts): New variable.
16941 (struct font_name): New member `resizing_ratio'.
16942 (font_resizing_ratio): New function.
16943 (split_font_name): Set font->resizing_ratio.
16944 (better_font_p): Pay attention to font->resizing_ratio.
16945 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16946 RESX, and RESY fields.
16947 (try_alternative_families): Try scalable fonts if
16948 Vscalable_fonts_allowed is not Qt.
16949 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16950
169512008-02-01 Dave Love <fx@gnu.org>
16952
16953 * xterm.c (xaw_scroll_callback): Cast correctly.
16954
169552008-02-01 Dave Love <fx@gnu.org>
16956
16957 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16958 (lispy_kana_keys): Comment out.
16959 (make_lispy_event) [XK_kana_A]: Comment out.
16960
16961 * xterm.c (xaw_scroll_callback): Cast call_data.
16962 (XTread_socket): Deal with ASCII keysyms.
16963 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16964
169652008-02-01 Dave Love <fx@gnu.org>
16966
16967 * xterm.c (Vx_keysym_table): New.
16968 (syms_of_xterm): Initialize it.
16969 (XTread_socket): Use it.
16970 From head: Eliminate incorrect optimization that tried to avoid
16971 decoding the output of X*LookupString.
16972 (x_get_font_repertory): Delete charset declaration.
16973
169742008-02-01 Kenichi Handa <handa@m17n.org>
16975
16976 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16977 return 0.
16978 (Fdefine_coding_system_internal): Setup
16979 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16980
169812008-02-01 Dave Love <fx@gnu.org>
16982
16983 * coding.c (Fcheck_coding_system): Doc fix.
16984
16985 * editfns.c (Finsert_byte): Return a proper value.
16986
169872008-02-01 Kenichi Handa <handa@m17n.org>
16988
16989 * coding.c (decode_coding): Fix args to translate_chars. Pay
16990 attention to Vstandard_translation_table_for_decode.
16991 (encode_coding): Fix args to translate_chars. Pay attention to
16992 Vstandard_translation_table_for_encode.
16993
16994 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16995 SINGLE_BYTE_CHAR_P.
16996
16997 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16998 not by SINGLE_BYTE_CHAR_P.
16999
17000 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17001 SINGLE_BYTE_CHAR_P.
17002
17003 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17004 SINGLE_BYTE_CHAR_P.
17005
17006 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17007 by SINGLE_BYTE_CHAR_P.
17008
17009 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17010 SINGLE_BYTE_CHAR_P.
17011
170122008-02-01 Dave Love <fx@gnu.org>
17013
17014 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17015
170162008-02-01 Dave Love <fx@gnu.org>
17017
17018 * fns.c (Flanginfo): Fix typo.
17019
17020 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17021
170222008-02-01 Kenichi Handa <handa@m17n.org>
17023
17024 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17025 (detect_coding_emacs_mule, detect_coding_iso_2022)
17026 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17027 incomplete byte sequence. Don't update *mask when correctly detected.
17028 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17029 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17030 (detect_coding, detect_coding_system): Adjust for the changes above.
17031
170322008-02-01 Kenichi Handa <handa@m17n.org>
17033
17034 * character.c (char_string): Rename from
17035 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17036 (string_char): Rename from string_char.
17037
17038 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17039 if C is greater than MAX_3_BYTE_CHAR.
17040 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17041 string_char instead of string_char_with_unification.
17042
170432008-02-01 Dave Love <fx@gnu.org>
17044
17045 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17046
170472008-02-01 Kenichi Handa <handa@m17n.org>
17048
17049 * keymap.c (push_key_description): Pay attention to force_multibyte.
17050
17051 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17052
170532008-02-01 Dave Love <fx@gnu.org>
17054
17055 * charset.c (define_charset_internal): Rename `supprementary'.
17056
17057 * Makefile.in (lisp, shortlisp): Remove latin-N.
17058
170592008-02-01 Dave Love <fx@gnu.org>
17060
17061 * xfns.c (x_window, x_window): Use use_xim.
17062
17063 * xterm.c (use_xim): Initialize.
17064 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17065 (x_term_init): Maybe set use_xim.
17066
17067 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17068
170692008-02-01 Kenichi Handa <handa@m17n.org>
17070
17071 * search.c (search_buffer): Fix case-fold-search of multibyte
17072 characters.
17073 (boyer_moore): Rename the last argument to char_high_bits.
17074
170752008-02-01 Kenichi Handa <handa@m17n.org>
17076
17077 * xdisp.c (display_string): Fix for the case of zero width glyph.
17078
17079 * xfns.c (x_set_font): Change the error message of the case that
17080 x_new_fontset returns Qt.
17081
17082 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17083 (Finternal_set_lisp_face_attribute): Use signal_error for the
17084 error of invalid fontset.
17085
17086 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17087 fontset, return Qt.
17088
170892008-02-01 Dave Love <fx@gnu.org>
17090
17091 * unexelf.c (unexec): Make .got handling not SGI-specific.
17092
17093 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17094
17095 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17096
17097 * keyboard.c (read_key_sequence): Fix type error.
17098
17099 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17100 type error.
17101
17102 * fontset.c (fontset_add): Return Lisp_Object.
17103
171042008-02-01 Dave Love <fx@gnu.org>
17105
17106 * charset.h (charset_ordered_list_tick): Declare extern.
17107
171082008-02-01 Kenichi Handa <handa@m17n.org>
17109
17110 The following changes (and some of 2008-02-01 changes of mine) are
17111 for handling syntax, category, and case conversion for unibyte
17112 characters by converting them to multibyte on the fly. With these
17113 changes, we don't have to setup syntax and case tables for unibyte
17114 characters in each language environment.
17115
17116 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17117 multibyte if necessary.
17118
17119 * bytecode.c (Fbyte_code): Likewise.
17120
17121 * character.h (LEADING_CODE_LATIN_1_MIN)
17122 (LEADING_CODE_LATIN_1_MAX): New macros.
17123 (unibyte_to_multibyte_table): Extern it.
17124 (unibyte_char_to_multibyte): New macro.
17125 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17126 (CHAR_LEADING_CODE): New macro.
17127 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17128
17129 * character.c (unibyte_to_multibyte_table): New variable.
17130 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17131 (multibyte_char_to_unibyte): If C is an eight-bit character,
17132 convert it to the corresponding byte value.
17133
17134 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17135 not 1, signals an error. Update the elements of
17136 unibyte_to_multibyte_table.
17137 (init_charset_once): Initialize unibyte_to_multibyte_table.
17138 (syms_of_charset): Define the charset `iso-8859-1'.
17139
17140 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17141 as is without converting it to unibyte. In a unibyte buffer,
17142 convert C to multibyte before checking the syntax.
17143
17144 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17145
17146 * minibuf.c (Fminibuffer_complete_word): Use the macro
17147 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17148
17149 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17150
17151 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17152 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17153 that is zero, convert an eight-bit char to multibyte.
17154 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17155 non-emacs case.
17156 (PATFETCH): Convert an eight-bit char to multibyte.
17157 (HANDLE_UNIBYTE_RANGE): New macro.
17158 (regex_compile): Setup the compiled pattern for multibyte chars
17159 even if the given regex string is unibyte. Use PATFETCH_RAW
17160 instead of PATFETCH in many places. To handle `charset'
17161 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17162 only for ASCII chars.
17163 (analyse_first) <exactn>: Simplify because the compiled pattern
17164 is multibyte.
17165 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17166 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17167 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17168 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17169 multibyte always 1.
17170 (re_search_2): In emacs, set the locale variable multibyte to 1,
17171 otherwise to 0. New local variable target_multibyte. Check it
17172 to decide the multibyteness of STR1 and STR2. If
17173 target_multibyte is zero, convert unibyte chars to multibyte
17174 before translating and checking fastmap.
17175 (TARGET_CHAR_AND_LENGTH): New macro.
17176 (re_match_2_internal): In emacs, set the locale variable multibyte
17177 to 1, otherwise to 0. New local variable target_multibyte. Check
17178 it to decide the multibyteness of STR1 and STR2. Use
17179 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17180 <charset, charset_not>: If multibyte is nonzero, check fastmap
17181 only for ASCII chars. Call bcmp_translate with
17182 target_multibyte, not with multibyte.
17183 <begline>: Declare the local variable C as `unsigned'.
17184 (bcmp_translate): Change the last arg name to target_multibyte.
17185
17186 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17187 the regexp pattern and the matching target. Set cp->buf.multibyte
17188 to the multibyteness of the regexp pattern. Set
17189 cp->but.target_multibyte to the multibyteness of the matching target.
17190 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17191 FETCH_STRING_CHAR_ADVANCE.
17192 (Freplace_match): Convert unibyte chars to multibyte.
17193
17194 * syntax.c (char_quoted, back_comment, scan_words)
17195 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17196 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17197 unibyte chars to multibyte.
17198 (skip_chars): Delete the arg syntaxp, and move the code for
17199 handling syntaxes to skip_syntaxes. Change callers.
17200 Fix the case that the multibyteness of STRING and the current
17201 buffer doesn't match.
17202 (skip_syntaxes): New function.
17203 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17204 SINGLE_BYTE_CHAR_P.
17205
172062008-02-01 Kenichi Handa <handa@m17n.org>
17207
17208 * xfaces.c (QCfontset): New variable.
17209 (LFACE_FONTSET): New macro.
17210 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17211 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17212 (Finternal_set_lisp_face_attribute)
17213 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17214 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17215 check also LFACE_FONTSET_INDEX.
17216 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17217 attrs[LFACE_FONT_INDEX].
17218 (syms_of_xfaces): Intern and staticpro QCfontset.
17219
17220 * dispextern.h (enum lface_attribute_index): New member
17221 LFACE_FONTSET_INDEX.
17222
17223 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17224
172252008-02-01 Kenichi Handa <handa@m17n.org>
17226
17227 * coding.c (coding_set_destination): Fix coding->destination for
17228 the case converting a region.
17229 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17230 (encode_coding_object): Fix coding->dst_pos and
17231 coding->dst_pos_byte for the case converting a region.
17232
17233 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17234
17235 * character.h (BYTE8_STRING): New macro.
17236
17237 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17238
172392008-02-01 Kenichi Handa <handa@m17n.org>
17240
17241 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17242 characters by octal form.
17243
17244 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17245
17246 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17247 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17248 _fetch_multibyte_char_len.
17249 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17250
17251 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17252
17253 * casefiddle.c (casify_object): Simplify. Handle the case that
17254 the case conversion change the byte length.
17255 (casify_region): Likewise.
17256
17257 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17258
17259 * character.c (_fetch_multibyte_char_len): Delete this variable.
17260 (syms_of_character): Setup Vprintable_chars.
17261
17262 * editfns.c (Fchar_equal): Fix for the unibyte case.
17263 (Finsert_byte): New function.
17264 (syms_of_editfns): Defsubr it.
17265
17266 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17267 of direct code 0x3ffff.
17268
17269 * search.c (Freplace_match): Fix for the unibyte case.
17270
172712008-02-01 Kenichi Handa <handa@m17n.org>
17272
17273 * lread.c (safe_to_load_p): Fix the logic.
17274
17275 * syntax.c (scan_words): Don't treat characters belonging to
17276 different scripts as constituting a word.
17277
17278 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17279
17280 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17281
17282 * emacs.c (main): In the case of --unibyte, instead of aborting on
17283 finding non-empty buffer, make it unibyte.
17284
172852008-02-01 Kenichi Handa <handa@m17n.org>
17286
17287 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17288 to create a fontset.
17289
172902008-02-01 Dave Love <fx@gnu.org>
17291
17292 * character.c (Funibyte_char_to_multibyte): Doc fix.
17293
17294 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17295
172962008-02-01 Kenichi Handa <handa@m17n.org>
17297
17298 * fontset.c (fontset_add): Make the type `int'.
17299 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17300
17301 * character.c (unibyte_char_to_multibyte)
17302 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17303 charset_unibyte, not charset_primary.
17304
17305 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17306
17307 * charset.c (charset_unibyte): Rename from charset_primary.
17308 (Funibyte_charset): Rename from Fprimary_charset.
17309 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17310 (syms_of_charset): Adjust for the above changes.
17311
17312 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17313 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17314 it->multibyte_p is zero.
17315
17316 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17317 Delete extern.
17318
173192008-02-01 Kenichi Handa <handa@m17n.org>
17320
17321 * coding.c (Fdefine_coding_system_internal): Fix category setting
17322 for a coding system of type iso-2022.
17323
173242008-02-01 Kenichi Handa <handa@m17n.org>
17325
17326 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17327
173282008-02-01 Kenichi Handa <handa@m17n.org>
17329
17330 * syntax.c (Vnext_word_boundary_function_table): New variable.
17331 (next-word-boundary-function-table): Declare it as a Lisp variable
17332 in syms_of_syntax.
17333 (scan_words): Call functions in Vnext_word_boundary_function_table
17334 if any.
17335
17336 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17337
17338 * fontset.c (fs_load_font): If fontp->charset is not negative,
17339 return fontp without setting its members.
17340
173412008-02-01 Dave Love <fx@gnu.org>
17342
17343 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17344
17345 * m/sparc.h (HAVE_ALLOCA): Delete.
17346
17347 * s/irix6-5.h: Don't include strings.h.
17348 (bcopy, bzero, bcmp): Don't undef.
17349
17350 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17351
17352 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17353 (TIOCSIGSEND): Don't test IRIX6.
17354 (bcopy, bzero, bcmp): Define conditionally.
17355
173562008-02-01 Kenichi Handa <handa@m17n.org>
17357
17358 * buffer.c (Qas, Qmake, Qto): New variables.
17359 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17360 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17361
17362 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17363 we are inserting a process output into a multibyte buffer.
17364
17365 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17366 multibyte_char_to_unibyte.
17367
17368 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17369 by the primary charset, make it eight-bit char.
17370 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17371
17372 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17373 (charset_8_bit__control, charset_8_bit_graphic)
17374 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17375 (define_charset_internal): New function.
17376 (syms_of_charset): Call define_charset_internal for pre-defined
17377 charsets.
17378
17379 * charset.h (charset_8_bit): Extern it.
17380
17381 * coding.c (make_conversion_work_buffer): Adjust for the change
17382 of Fset_buffer_multibyte.
17383 (encode_coding_raw_text): Increment p0 in the loop.
17384
17385 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17386
17387 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17388 for the change of Fset_buffer_multibyte.
17389
17390 * fns.c (Fstring_to_multibyte): New function.
17391 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17392
173932008-02-01 Dave Love <fx@gnu.org>
17394
17395 * xfns.c (x_put_x_image): Declare args.
17396
17397 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17398 (try_font_list): Declare an arg.
17399
17400 * xdisp.c (message2_nolog, set_message): Declare an arg.
17401
17402 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17403
17404 * syntax.c (scan_sexps_forward): Declare an arg.
17405
17406 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17407 Declare an arg.
17408
17409 * lisp.h (Fnew_fontset): Declare.
17410
17411 * keymap.c (push_key_description): Call CHARACTERP correctly.
17412
17413 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17414 (face_for_char): Delete unused vars.
17415 (Fset_fontset_font): Doc fix. Delete unused vars.
17416
17417 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17418
17419 * composite.c (update_compositions): Declare arg.
17420
17421 * cm.c (calccost, cmgoto): Declare args.
17422
17423 * charset.c: Remove `emacs' conditional. Doc fixes.
17424 (map_char_table_for_charset): Declare.
17425
17426 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17427
17428 * ccl.c: Remove `emacs' conditional.
17429
174302008-02-01 Kenichi Handa <handa@m17n.org>
17431
17432 The following changes are to allow specifying multiple font
17433 patterns for a character range (specified by script or charset).
17434
17435 * Makefile.in (abbrev.o): Depend on syntax.h.
17436 (xfaces.o): Depend on charset.h.
17437
17438 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17439 SINGLE_BYTE_CHAR_P.
17440
17441 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17442
17443 * character.h (Vchar_script_table): Extern it.
17444
17445 * character.c (Vscript_alist): Delete.
17446 (Vchar_script_table, Qchar_script_table): New variable.
17447 (syms_of_character): Declare Vchar_script_table as a lisp variable
17448 and initialize it.
17449
17450 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17451 have property char-table-extra-slots, make no extra slot.
17452
17453 * dispextern.h (struct face): Delete member `charset'.
17454 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17455 SINGLE_BYTE_CHAR_P.
17456 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17457 Add prototypes.
17458 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17459 (generate_ascii_font_name): Rename from generate_ascii_font.
17460
17461 * fontset.h (get_font_repertory_func): New prototype.
17462 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17463 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17464
17465 * fontset.c (Qprepend, Qappend): New variables.
17466 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17467 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17468 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17469 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17470 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17471 (load_font_get_repertory): New functions.
17472 (fontset_set): Delete.
17473 (fontset_face): New arg FACE. Return face ID, not face.
17474 Complete re-write to handle new fontset structure. Change caller.
17475 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17476 (face_for_char): Don't call lookup_face.
17477 (make_fontset_for_ascii_face): New arg FACE.
17478 (fs_load_font): New arg CHARSET_ID. Don't check
17479 Vfont_encoding_alist here.
17480 (find_font_encoding): New function.
17481 (list_fontsets): Use STRINGP, not ! NILP.
17482 (accumulate_script_ranges): New function.
17483 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17484 re-written to handle new fontset structure.
17485 (Ffontset_font): Return a copy of element.
17486 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17487 docstring of font-encoding-alist.
17488
17489 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17490 (Fset_fotset_font): Fix arguments to 5.
17491
17492 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17493
17494 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17495 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17496 (highlight_trailing_whitespace): Adjust for the change of
17497 lookup_named_face.
17498
17499 * xfaces.c: Include charset.h.
17500 (load_face_font): Delete argument C. Change caller.
17501 (generate_ascii_font_name): Rename from generate_ascii_font.
17502 (font_name_registry): New function.
17503 (cache_face): Store ascii faces before non-ascii faces in buckets.
17504 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17505 Lookup only ascii faces.
17506 (lookup_non_ascii_face): New function.
17507 (lookup_named_face): Delete argument C. Change caller.
17508 (lookup_derived_face): Delete argument C. Change caller.
17509 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17510 a string, just call font_list with it.
17511 (choose_face_font): Delete arguments FACE and C. New arg
17512 FONT_SPEC. Change caller.
17513 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17514 Change caller.
17515 (realize_non_ascii_face): New function.
17516 (realize_x_face): Call load_face_font here.
17517 (realize_tty_face): Delete argument C. Change caller.
17518 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17519 get a face ID.
17520 (dump_realized_face): Don't print charset of FACE.
17521
17522 * xfns.c (x_set_font): Always call x_new_fontset and
17523 store_frame_parameter.
17524 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17525 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17526
17527 * xterm.h (x_get_font_repertory): Extern it.
17528
17529 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17530 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17531 it->multibyte_p is zero.
17532 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17533 (x_new_fontset): If FONTSETNAME doesn't match any existing
17534 fontsets, create a new one.
17535 (x_get_font_repertory): New function.
17536
175372008-02-01 Kenichi Handa <handa@m17n.org>
17538
17539 * coding.c (Ffind_coding_systems_region_internal): Detect an
17540 ASCII only string correctly.
17541
17542 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17543 version is 0.
17544
175452008-02-01 Kenichi Handa <handa@m17n.org>
17546
17547 * lread.c: Include "coding.h".
17548 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17549 (load_each_byte, unread_char): New variables.
17550 (readchar_backlog): Delete.
17551 (readchar): Return a character unless load_each_byte is nonzero.
17552 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17553 cons. If unread_char is not -1, simply return it.
17554 (unreadchar): Handle the case that readcharfun is
17555 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17556 (read_multibyte): Delete.
17557 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17558 (read_emacs_mule_char): New functions.
17559 (Fload): Even if the file doesn't have the extension ".elc", if
17560 safe_to_load_p returns a positive version number, assume that the
17561 file contains bytecompiled code. If the version is less than 22,
17562 load the file while decoding multibyte sequences by emacs-mule.
17563 (readevalloop): Don't use readchar_backlog.
17564 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17565 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17566 (read_escape): Delete the arg BYTEREP.
17567 (read1): Set load_each_byte to 1 temporarily while handling
17568 #@NUMBER. Don't call read_multibyte.
17569 (read_vector): Call Fread with a cons. If readcharfun is
17570 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17571 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17572 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17573 and Qload_force_doc_strings.
17574
175752008-02-01 Kenichi Handa <handa@m17n.org>
17576
17577 * xdisp.c (face_before_or_after_it_pos): Call
17578 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17579
175802008-02-01 Kenichi Handa <handa@m17n.org>
17581
17582 * character.h (TRAILING_CODE_P): New macro.
17583 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17584 (string_char_with_unification): Fix prototype.
17585 (Vscript_alist): Extern it.
17586
17587 * character.c (Vscript_alist): New variable.
17588 (string_char_with_unification, str_as_unibyte)
17589 (string_escape_byte8): Add `const' to local variables.
17590 (syms_of_character): Declare script-alist as a Lisp variable.
17591
17592 * charset.h (Vcharset_ordered_list): Extern it.
17593 (charset_ordered_list_tick): Extern it.
17594 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17595 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17596 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17597 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17598 (Funify_charset): Adjust for the change of Funify_charset.
17599
17600 * charset.c (charset_ordered_list_tick): New variable.
17601 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17602 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17603 deunify intead of unify a charset.
17604 (string_xstring_p): Add `const' to local variables.
17605 (find_charsets_in_text): Add `const' to arguments and local variables.
17606 (encode_char): Adjust for the change of Funify_charset. Fix
17607 detecting of invalid code.
17608 (Fset_charset_priority): Increment charset_ordered_list_tick.
17609 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17610 and TO_CODE.
17611
17612 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17613 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17614 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17615 (decode_coding_ccl, consume_chars)
17616 (Ffind_coding_systems_region_internal)
17617 (Fcheck_coding_systems_region): Add `const' to local variables.
17618
17619 * print.c (print_object): Use octal form for printing the
17620 contents of a bool vector.
17621
176222008-02-01 Dave Love <fx@gnu.org>
17623
17624 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17625 <version == 20>: Refuse to load.
17626
176272008-02-01 Dave Love <fx@gnu.org>
17628
17629 * fns.c: Move coding.h.
17630 (Qcodeset, Qdays, Qmonths): New.
17631 (concat): Use CHARACTERP instead of INTEGERP.
17632 (Flocale_codeset): Delete.
17633 (Flanginfo): New function.
17634 (syms_of_fns): Change accordingly.
17635
17636 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17637
176382008-02-01 Dave Love <fx@gnu.org>
17639
17640 * casetab.c (init_casetab_once, init_casetab_once): Fix
17641 CHAR_TABLE_SET call.
17642
17643 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17644
17645 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17646
17647 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17648 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17649 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17650
17651 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17652
17653 * coding.c (ENCODE_DESIGNATION, decode_eol)
17654 (make_conversion_work_buffer, code_conversion_restore)
17655 (Fdefine_coding_system_internal): Convert Lisp types.
17656 (code_conversion_restore): Use EQ, not ==.
17657 (Fencode_coding_string): Fix code_convert_string call.
17658
17659 * coding.h (code_convert_region): Fix prototype.
17660
17661 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17662
17663 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17664 (Ffontset_info): Convert Lisp types.
17665
17666 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17667
17668 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17669
17670 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17671
17672 * chartab.c: Include "...h", not <...h> in some cases.
17673
17674 * callproc.c (Fcall_process): Remove unused variables.
17675
176762008-02-01 Dave Love <fx@gnu.org>
17677
17678 * coding.c (Fset_coding_system_priority): Allow null arg list.
17679
176802008-02-01 Dave Love <fx@gnu.org>
17681
17682 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17683 (Fself_insert_and_exit): Use CHARACTERP.
17684
17685 * callproc.c (Fcall_process): Remove unused vars.
17686
17687 * xterm.c (XTread_socket): Add extra dead keysyms.
17688
17689 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17690
17691 * dispextern.h: Remove prototypes for redraw_frame,
17692 redraw_garbaged_frames.
17693
17694 * cmds.c (Fself_insert_command): Use CHARACTERP.
17695
17696 * chartab.c (make_sub_char_table): Remove unused var.
17697 (Fset_char_table_default, Fmap_char_table): Doc fix.
17698
17699 * keymap.c (access_keymap): Remove generic char code.
17700 (push_key_description): Use CHARACTERP.
17701
177022008-02-01 Dave Love <fx@gnu.org>
17703
17704 * charset.c: Doc fixes.
17705 (Funify_charset): Extra checking.
17706
177072008-02-01 Dave Love <fx@gnu.org>
17708
17709 * lread.c: Remove some unused variables.
17710 (safe_to_load_p): If safe, return the magic number version byte.
17711 (Fload): Maybe use load-with-code-conversion.
17712
177132008-02-01 Kenichi Handa <handa@m17n.org>
17714
17715 * category.c (Fmodify_category_entry): Don't modify the contents
17716 of category_set for characters out of the range. Avoid
17717 unnecessary modification.
17718
17719 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17720 Vchar_unify_table. The default value of the table is now nil.
17721
17722 * character.c (syms_of_character): Setup Vchar_width_table for
17723 eight-bit-control and raw-byte chars.
17724
17725 * charset.h (enum define_charset_arg_index): Delete
17726 charset_arg_parents and add charset_arg_subset and
17727 charset_arg_superset.
17728 (enum charset_attr_index): Delete charset_parents and add
17729 charset_subset and charset_superset.
17730 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17731 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17732 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17733 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17734 (CHARSET_SUPERSET): New macros.
17735 (charset_work): Extern it.
17736 (ENCODE_CHAR): Use charset_work.
17737 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17738 (map_charset_chars): Extern it.
17739
17740 * charset.c (load_charset_map): Set the default value of encoder
17741 and deunifier char-tables to nil.
17742 (map_charset_chars): Change argument. Change callers. Use
17743 map_char_table_for_charset instead of map_char_table.
17744 (Fmap_charset_chars): New optional args from_code and to_code.
17745 (Fdefine_charset_internal): Adjust for the change of
17746 `define-charset' (:parents -> :subset or :superset).
17747 (charset_work): New variable.
17748 (encode_char, syms_of_charset): Adjust for the change of
17749 Fdefine_charset_internal.
17750 (Ffind_charset_string): Setup the vector `charsets' correctly.
17751
17752 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17753 the previous change.
17754 (char_table_ref_and_range): Adjust for the above change.
17755 (map_sub_char_table_for_charset): New function.
17756 (map_char_table_for_charset): New function.
17757
17758 * keymap.c (describe_vector): Handle a char-table directly here.
17759 (describe_char_table): Delete.
17760
17761 * lisp.h (map_charset_chars): Delete.
17762
177632008-02-01 Dave Love <fx@gnu.org>
17764
17765 * fns.c (count_combining): Comment out (unused).
17766 (Flocale_codeset): New.
17767 (syms_of_fns): Defsubr it.
17768
17769 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17770 (size_t): Remove.
17771
177722008-02-01 Dave Love <fx@gnu.org>
17773
17774 * Makefile.in (chartab.o): Depend on charset.h.
17775
177762008-02-01 Kenichi Handa <handa@m17n.org>
17777
17778 * character.c (syms_of_character): Set the default value of
17779 Vprintable_chars to Qnil.
17780
177812008-02-01 Dave Love <fx@gnu.org>
17782
17783 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17784
177852008-02-01 Kenichi Handa <handa@m17n.org>
17786
17787 * charset.c (load_charset_map): Handle the case that from < to
17788 correctly.
17789
17790 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17791 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17792 Pay attention to raw-8-bit chars.
17793
177942008-02-01 Kenichi Handa <handa@m17n.org>
17795
17796 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17797 It is not bytecompiled now.
17798
17799 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17800 (charset_jisx0208): New variables.
17801 (Fdefine_charset_internal): Setup them if appropriate.
17802 (init_charset_once): Initialize them to -1.
17803
17804 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17805 (charset_jisx0208): Extern them.
17806
17807 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17808 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17809 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17810 (setup_iso_safe_charsets): Fix arguments to Fassq.
17811 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17812 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17813 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17814 (encode_coding_iso_2022): Change the 1st arg to
17815 ENCODE_ISO_CHARACTER to a variable.
17816
178172008-02-01 Kenichi Handa <handa@m17n.org>
17818
17819 * charset.h (enum define_charset_arg_index): New enums
17820 charset_arg_min_code and charset_arg_max_code.
17821 (struct charset): New member char_index_offset.
17822
17823 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17824 Take charset->char_index_offset into account.
17825 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17826 args[charset_arg_max_code]. Setup charset.char_index_offset.
17827 (syms_of_charset): Fix args to Fdefine_charset_internal.
17828
178292008-02-01 Dave Love <fx@gnu.org>
17830
17831 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17832
178332008-02-01 Dave Love <fx@gnu.org>
17834
17835 * coding.c: Doc fixes.
17836 (Fcoding_system_aliases): Fix return value.
17837 (Qmac): Remove (duplicated) definition.
17838
178392008-02-01 Dave Love <fx@gnu.org>
17840
362654a6
JB
17841 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17842 New functions.
aac0c6e3
MR
17843
17844 * character.c (Fstring): Doc fix.
17845
17846 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17847
362654a6 17848 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17849 (font-encoding-alist): Doc fix.
17850
178512008-02-01 Dave Love <fx@gnu.org>
17852
17853 * term.c (costs_set): Declare static, non-initialized for pcc.
17854 (encode_terminal_code): Remove unused var.
17855
17856 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17857 for K&R.
17858
17859 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17860
17861 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17862 (suffixes): Move out of make_subsidiaries for K&R.
17863
17864 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17865
17866 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17867
178682008-02-01 Dave Love <fx@gnu.org>
17869
17870 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17871
17872 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17873
178742008-02-01 Yong Lu <lyongu@asia-infonet.com>
17875
17876 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17877
17878 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17879
178802008-02-01 Kenichi Handa <handa@m17n.org>
17881
17882 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17883 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17884
178852008-02-01 Kenichi Handa <handa@m17n.org>
17886
17887 * coding.c (decode_coding_charset): Adjust for the change of
17888 Fdefine_coding_system_internal.
17889 (Fdefine_coding_system_internal): For a coding system of
17890 `charset' type, store a list of charset IDs in
17891 `charset_attr_charset_valids' element of coding attributes.
17892
178932008-02-01 Kenichi Handa <handa@m17n.org>
17894
17895 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17896 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17897 caller. Handle 2-byte and 3-byte charsets correctly.
17898 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17899 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17900 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17901 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17902 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17903 sequence.
17904 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17905 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17906 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17907 and alt&rule composition.
17908 (decode_coding_iso_2022): Handle composition correctly.
17909 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17910
17911 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17912 re-defining a charset. If the charset has :emacs-mule-id, setup
17913 emacs_mule_bytes.
17914 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17915
179162008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17919 (encode_coding_big5, encode_coding_charset): If coding requires safe
17920 encoding, produce a character specified by
17921 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17922
179232008-02-01 Dave Love <fx@gnu.org>
17924
17925 * xterm.c (XSetIMValues): Declare.
17926
17927 * process.c: Conditionally include sys/wait.h, pty.h.
17928
17929 * print.c (print_object): Fix print format for 64-bit systems.
17930
17931 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17932
17933 * buffer.c (emacs_strerror): Declare.
17934
17935 * fontset.c (Fclear_face_cache): Declare.
17936 (accumulate_font_info): Comment-out (unused).
17937 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17938 variables.
17939
17940 * character.h (string_escape_byte8): Declare.
17941
17942 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17943 unused vars.
17944 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17945 (Fmap_charset_chars): Doc fix.
17946
17947 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17948 (Fset_coding_system_priority, Fset_coding_system_priority)
17949 (Fdefine_coding_system_internal): Doc fix.
17950
179512008-02-01 Dave Love <fx@gnu.org>
17952
17953 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17954
179552008-02-01 Kenichi Handa <handa@m17n.org>
17956
17957 * character.c (string_escape_byte8): Make multibyte string with
17958 correct size.
17959
17960 * charset.c (Fmake_char): Delete unnecessary code.
17961
179622008-02-01 Kenichi Handa <handa@m17n.org>
17963
17964 * xfns.c (x_encode_text): Allocate coding.destination here, and
17965 call encode_coding_object with dst_object Qnil.
17966
17967 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17968 multibyte form correctly.
17969
17970 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17971 against Vfont_encoding_alist.
17972
17973 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17974 handling of charset list.
17975 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17976 (decode_coding_object): Move point to coding->dst_pos before
17977 calling post-read-conversion function.
17978 (encode_coding_object): Give correct arguments to
17979 pre-write-conversion. Ignore the return value of
17980 pre-write-conversion function. Pay attention to the case that
17981 pre-write-conversion changes the current buffer. If dst_object is
17982 Qt, even if coding->src_bytes is zero, allocate at least one byte
17983 to coding->destination.
17984
17985 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17986
17987 * charset.c (Fmake_char): Make it more backward compatible.
17988 (Fmap_charset_chars): Fix docstring.
17989
179902008-02-01 Dave Love <fx@gnu.org>
17991
17992 * coding.c: Doc fixes.
17993 (Fdefine_coding_system_alias): Use names, not symbols, in
17994 coding-system-alist.
17995
179962008-02-01 Kenichi Handa <handa@m17n.org>
17997
17998 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17999 of calling free_realized_face.
18000
180012008-02-01 Yong Lu <lyongu@asia-infonet.com>
18002
18003 * charset.c (read_hex): Don't treat SPC as a comment starter.
18004 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18005 (Fdecode_char): Fix typo.
18006
180072008-02-01 Kenichi Handa <handa@m17n.org>
18008
18009 * charset.h (struct charset): New member `code_space_mask'.
18010
18011 * coding.c (coding_set_source): Delete the local variable beg_byte.
18012 (encode_coding_charset, Fdefine_coding_system_internal):
18013 Delete the local variable charset.
18014 (Fdefine_coding_system_internal): Setup
18015 attrs[coding_attr_charset_valids] correctly.
18016
18017 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18018 member to check if CODE is valid or not.
18019 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18020 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18021 is within the range of charset->min_code and carset->max_code.
18022
180232008-02-01 Dave Love <fx@gnu.org>
18024
18025 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18026
18027 * dispextern.h (generate_ascii_font): Fix return type.
18028
18029 * xfaces.c (generate_ascii_font): Fix arg declaration.
18030
18031 * coding.c (coding_inherit_eol_type)
18032 (Fset_terminal_coding_system_internal)
18033 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18034
180352008-02-01 Kenichi Handa <handa@m17n.org>
18036
18037 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18038 multiple charsets correctly.
18039
180402008-02-01 Kenichi Handa <handa@m17n.org>
18041
18042 * search.c (boyer_moore): Fix handling of multibyte character
18043 translation.
18044
18045 * xdisp.c (display_mode_element): When the variable `elt' is
18046 changed, update `this' and `lisp_string'.
18047
180482008-02-01 Kenichi Handa <handa@m17n.org>
18049
18050 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18051
18052 * callproc.c (Fcall_process): Be sure to give the current buffer
18053 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18054
18055 * charset.c (struct charset_map_entries): New struct.
18056 (load_charset_map): Rename from parse_charset_map. New args
18057 entries and n_entries. Change caller.
18058 (load_charset_map_from_file): Rename from load_charset_map.
18059 Change caller. New arg control_flag. Call load_charset_map at
18060 the tail.
18061 (load_charset_map_from_vector): New function.
18062 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18063 (encode_char): If the charset is compact, change a character index
18064 to a code point.
18065
18066 * coding.c (coding_alloc_by_making_gap): Check the case that the
18067 source and destination are the same correctly.
18068 (decode_coding_raw_text): Set coding->consumed_char and
18069 coding->consumed to 0.
18070 (produce_chars): If coding->chars_at_source is nonzero, update
18071 coding->consumed_char and coding->consumed before calling
18072 alloc_destination.
18073 (Fdefine_coding_system_alias): Register ALIAS in
18074 Vcoding_system_alist.
18075 (syms_of_coding): Define `no-conversion' coding system at the tail.
18076
18077 * fileio.c (Finsert_file_contents): Set coding_system instead of
18078 val. If the current buffer is multibyte, always call
18079 decode_coding_gap.
18080
18081 * xfaces.c (try_font_list): Give higher priority to fontset's
18082 family than face's family.
18083
180842008-02-01 Kenichi Handa <handa@m17n.org>
18085
18086 * callproc.c (Fcall_process): Be sure to give the current buffer
18087 to decode_coding_c_string.
18088
18089 * xfaces.c (try_font_list): Give a family specified in a fontset
18090 higher priority than a family specified in a face.
18091
180922008-02-01 Kenichi Handa <handa@m17n.org>
18093
18094 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18095 Fix arguments to insert_from_buffer.
18096
18097 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18098
180992008-02-01 Kenichi Handa <handa@m17n.org>
18100
18101 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18102 (decode_coding_gap): Set coding->dst_multibyte correctly.
18103
181042008-02-01 Kenichi Handa <handa@m17n.org>
18105
18106 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18107 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18108 (encode_coding_utf_16): Substitute coding->default_char for
18109 non-Unicode characters.
18110 (decode_coding): Don't call record_insert here.
18111 (setup_coding_system): Initialize `surrogate' of
18112 coding->spec.utf_16 to 0.
18113 (EMIT_ONE_BYTE): Fix for multibyte case.
18114
18115 * insdel.c (insert_from_gap): Call record_insert.
18116
181172008-02-01 Kenichi Handa <handa@m17n.org>
18118
18119 * casefiddle.c (casify_region): Fix multibyte case.
18120
18121 * character.c (c_string_width): Add return type `int'.
18122 (char_string_with_unification): Delete arg ADVANCED.
18123
18124 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18125 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18126 (CHAR_STRING_ADVANCE): Make it do-while statement.
18127
18128 * chartab.c (sub_char_table_set_range): Optimize for the case
18129 DEPTH == 3. Add workaround code for a GCC optimization bug.
18130
18131 * charset.c (parse_charset_map): Remove an unused variable.
18132
18133 * coding.c: Delete unused variables.
18134
18135 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18136 earlier. If inserted is zero and the coding system doesn't
18137 require flushing, don't call decode_coding_gap.
18138
18139 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18140
181412008-02-01 Kenichi Handa <handa@m17n.org>
18142
18143 The following changes are for using Unicode as an internal
18144 character model, and use UTF-8 format for buffer/string
18145 representation.
18146
18147 * .gdbinit (xchartable): Adjust for the change of char table structure.
18148 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18149
18150 * Makefile.in (obj): Add character.o and chartab.o.
18151 (lisp, shortlisp): Remove utf-8.elc.
18152 (*.o): For many files, change dependency on charset.h to
18153 character.h, and add dependency on character.h.
18154 (character.o, chartab.o): New targets.
18155
18156 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18157 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18158 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18159 of "charset.h".
18160
18161 * dired.c, filelock.c: Include "character.h".
18162
18163 * alloc.c: Include "character.h" instead of "charset.h".
18164 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18165 (syms_of_alloc): Remove defsubr for Smake_char_table.
18166
18167 * buffer.c: Include "character.h" instead of "charset.h", don't
18168 include "coding.h".
18169 (Fset_buffer_multibyte): Adjust for UTF-8.
18170
18171 * buffer.h: EXFUN Fbuffer_live_p.
18172
18173 * callproc.c: Include "character.h" instead of "charset.h".
18174 (Fcall_process): Big change for the new code-conversion APIs.
18175
18176 * casetab.c: Include "character.h" instead of "charset.h".
18177 (set_canon, set_identity, shuffle): Adjust for the new
18178 map_char_table spec.
18179 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18180 accessing the char table structure.
18181
18182 * chartab.c: New file that implements char table.
18183
18184 * category.c: Include "character.h".
18185 (copy_category_entry): New function.
18186 (copy_category_table): Call map_char_table and copy_category_entry.
18187 (Fmake_category_table): Initialize all top-level slots.
18188 (char_category_set): New function.
18189 (modify_lower_category_set): Delete.
18190 (Fmodify_category_entry): Call char_table_ref_and_range.
18191
18192 * category.h (CATEGORY_SET): Just call char_category_set.
18193
18194 * ccl.c: Include "character.h".
18195 (Qccl, Qcclp): New variables.
18196 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18197 it's less than 256.
18198 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18199 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18200 and DST type.
18201 (ccl_driver): Change types of argument, adjust code accordingly.
18202 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18203 ccl_driver.
18204 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18205
18206 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18207 New members src_multibyte, dst_multibyte, consumed, and produced.
18208 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18209 (CODING_SPEC_CCL_PROGRAM): New macro.
18210 (ccl_driver): Update prototype.
18211 (Qccl, Qcclp, Fccl_program_p): Extern them.
18212 (CHECK_CCL_PROGRAM): New macro.
18213
18214 * character.c, character.h, chartab.c: New files.
18215
18216 * charset.c: Mostly re-written. Move character and multibyte sequence
18217 handling codes to character.c.
18218
18219 * charset.h: Mostly re-written. Move character and multibyte sequence
18220 handling codes to character.h.
18221
18222 * coding.c, coding.h: Mostly re-written.
18223
18224 * composite.c: Include "character.h" instead of "charset.h".
18225 (CHAR_WIDTH): Move to character.h.
18226 (HASH_KEY, HASH_VALUE): Delete.
18227
18228 * composite.h (enum composition_method): Change order of enumeration
18229 symbols.
18230
18231 * data.c: Include "character.h" instead of "charset.h".
18232 (Faref): Call CHAR_TABLE_REF for a char table.
18233 (Faset): Call CHAR_TABLE_SET for a char table.
18234
18235 * dispextern.h (free_realized_face, check_face_attribytes)
18236 (generate_ascii_font): Extern them.
18237 (free_realized_multibyte_face): Delete extern.
18238
18239 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18240 table structure.
18241
18242 * editfns.c: Include "character.h" instead of "charset.h".
18243 (Fchar_to_string): Always call CHAR_STRING.
18244
18245 * emacs.c (main): Call init_charset_once, init_charset,
18246 syms_of_chartab, and syms_of_character.
18247
18248 * fileio.c: Include "character.h" instead of "charset.h".
18249 (Finsert_file_contents): Big change for the new code-conversion API.
18250 (choose_write_coding_system, Fwrite_region): Likewise.
18251 (build_annotations_2): Delete.
18252 (e_write): Big change for the new code-conversion API.
18253
18254 * fns.c: Include "character.h" instead of "charset.h".
18255 (copy_sub_char_table): Move to chartab.c.
18256 (Fcopy_sequence): Call copy_char_table for a char table.
18257 (concat): Delete codes calling count_multibyte.
18258 (string_char_to_byte, string_byte_to_char): Adjust for the new
18259 multibyte form.
18260 (internal_equal): Adjust for the change of char table structure.
18261 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18262 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18263 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18264 (char_table_translate, optimize_sub_char_table)
18265 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18266 chartab.c.
18267 (char_table_ref_and_index): Delete.
18268 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18269 (Fmd5): Call preferred_coding_system instead of accessing
18270 Vcoding_category_list. Adjust for the new code-conversion API.
18271 (syms_of_fns): Move defsubr for char table related functions to
18272 chartab.c.
18273
18274 * fontset.c: Mostly re-written.
18275
18276 * fontset.h (struct font_info): Change type of the member encoding_type.
18277 (enum FONT_SPEC_INDEX): New enum.
18278 (fontset_font_pattern, fs_load_font): Update prototype.
18279 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18280
18281 * indent.c: Include "character.h" instead of "charset.h".
18282 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18283
18284 * insdel.c: Include "character.h" instead of "charset.h".
18285 (copy_text): Don't refer to Vnonascii_translation_table.
18286 (insert_from_gap): New function.
18287
18288 * keyboard.c: Include "character.h" instead of "charset.h".
18289 (command_loop_1): Never call direct_output_forward_char before
18290 a non-ASCII character.
18291 (read_char): If Vkeyboard_translate_table is a char table, always
18292 translate a character.
18293
18294 * keymap.c: Include "character.h".
18295 (store_in_keymap): Handle the case that IDX is a cons.
18296 (Fdefine_key): Handle the case that KEY is a cons and the car part
18297 is also a cons (range).
18298 (push_key_description): Adjust for the new character code.
18299 (describe_vector): Call describe_char_table for a char table.
18300 (describe_char_table): New function.
18301
18302 * keymap.h (describe_char_table): Extern it.
18303
18304 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18305 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18306 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18307 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18308 Delete.
18309 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18310 structure.
18311 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18312 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18313 (CHARTAB_SIZE_BITS_3): New macros.
18314 (chartab_size): Extern it.
18315 (struct Lisp_Char_Table): Re-design.
18316 (struct Lisp_Sub_Char_Table): New structure.
18317 (HASH_KEY, HASH_VALUE): Move from fns.c.
18318 (CHARACTERBITS): Define as 22.
18319 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18320 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18321 (GC_SUB_CHAR_TABLE_P): New macro.
18322 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18323 (code_convert_string_norecord): Deleted extern.
18324 (init_character_once, syms_of_character, init_charset)
18325 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18326
18327 * lread.c: Include "character.h".
18328 (read_multibyte): New arg NBYTES.
18329 (read_escape): Change the meaning of returned *BYTEREP.
18330 (to_multibyte): Delete.
18331 (read1): Adjust the handling of char table and string.
18332
18333 * print.c: Include "character.h" instead of "charset.h".
18334 (print_string): Convert 8-bit raw bytes to octal form by
18335 string_escape_byte8.
18336 (print_object): Adjust for the new multibyte form. Print 8-bit
18337 raw bytes always in octal form. Handle sub char table correctly.
18338
18339 * process.c: Include "character.h" instead of "charset.h".
18340 (read_process_output, send_process): Adjust for the new
18341 code-conversion API.
18342
18343 * puresize.h (BASE_PURESIZE): Increase.
18344
18345 * regex.c: Include "character.h" instead of "charset.h".
18346 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18347 (regex_compile): Accept a range whose starting and ending
18348 character have different leading bytes.
18349 (analyse_first): Adjust for the above change.
18350
18351 * search.c: Include "character.h" instead of "charset.h".
18352 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18353 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18354
18355 * syntax.c: Include "character.h" instead of "charset.h".
18356 (syntax_parent_lookup): Delete.
18357 (Fmodify_syntax_entry): Accept a cons as CHAR.
18358 (skip_chars): Adjust for the new multibyte form.
18359 (init_syntax_once): Call char_table_set_range instead of directly
18360 accessing the structure of a char table.
18361
18362 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18363 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18364 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18365 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18366
18367 * term.c: Include "buffer.h" and "character.h".
18368 (encode_terminal_code, write_glyphs): Adjust for the new
18369 code-conversion API.
18370 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18371
18372 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18373
18374 * xdisp.c: Include "character.h".
18375 (get_next_display_element): Adjust for the new multibyte form.
18376 (disp_char_vector): Adjust for the new char table structure.
18377 (decode_mode_spec_coding): Adjust for the new structure of
18378 coding system.
18379 (decode_mode_spec): Adjust for the new code-conversion API.
18380
18381 * xfaces.c: Include "character.h" instead of "charset.h".
18382 (load_face_font): Adjust for the change of choose_face_font and
18383 FS_LOAD_FONT.
18384 (generate_ascii_font): New function.
18385 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18386 (set_font_frame_param): Adjust for the change of choose_face_font.
18387 (free_realized_face): Make it public.
18388 (free_realized_faces_for_fontset): Rename from
18389 free_realized_multibyte_face. Free also faces realized for ASCII.
18390 (choose_face_font): Change arguments. Adjust for the change of
18391 fontset_font_pattern and FS_LOAD_FONT.
18392
18393 * xfns.c: Include "character.h".
18394 (x_encode_text): Adjust for the new code-conversion API.
18395
18396 * xselect.c: Don't include "charset.h".
18397 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18398
18399 * xterm.c: Include "character.h".
18400 (x_encode_char): New argument CHARSET. Change caller.
18401 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18402 Call ENCODE_CHAR instead of SPLIT_CHAR.
18403 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18404 CHAR_WIDTH instead of CHARSET_WIDTH.
18405 (XTread_socket): Adjust for the new code-conversion API.
18406 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18407 (x_load_font): Adjust for the change of struct font.
18408
184092008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18410
18411 * xfaces.c (face_at_buffer_position): Remove unused vars.
18412
184132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18414
18415 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18416 Fix overflow checking.
18417
184182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18419
18420 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18421 Cancel previous change.
18422
184232008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18424
18425 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18426 ccl->eight_bit_control. Fix check for buffer overflow.
18427 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18428 (ccl_driver): Initialize extra_bytes to 0.
18429
184302008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18431
18432 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18433 return it ORed with ctrl_modifier.
18434
184352008-01-29 Miles Bader <miles@gnu.org>
18436
18437 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18438
184392008-01-28 Jason Rumney <jasonr@gnu.org>
18440
18441 * w32.c (stat): Don't double check for networked drive.
18442
184432008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18444
18445 * window.c (run_window_configuration_change_hook): New function.
18446 Code extracted from set_window_buffer. Set the selected frame.
18447 (set_window_buffer): Use it.
18448 * window.h (run_window_configuration_change_hook): Declare.
18449 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18450
18451 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18452
184532008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18454
18455 * Makefile.in: Remove references to unused macros.
18456
184572008-01-26 Eli Zaretskii <eliz@gnu.org>
18458
18459 * w32.c (g_b_init_get_sid_sub_authority)
18460 (g_b_init_get_sid_sub_authority_count): New static variables.
18461 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18462 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18463 (init_user_info): Use them to retrieve uid and gid.
18464 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18465 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18466 st_uid and st_gid of the file.
18467
184682008-01-26 Jason Rumney <jasonr@gnu.org>
18469
18470 * w32.c (logon_network_drive): New function.
18471 (stat): Use it.
18472
184732008-01-26 Chong Yidong <cyd@stupidchicken.com>
18474
18475 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18476 invisible text covered with an ellipsis.
18477
184782008-01-25 Richard Stallman <rms@gnu.org>
18479
18480 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18481 jump back to beginning. Move some other initializations after that.
18482 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18483 New variables.
18484 (syms_of_xdisp): Init them.
18485
18486 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18487
18488 * buffer.c (reset_buffer_local_variables):
18489 Implement `permanent-local-hook'.
18490 (Qpermanent_local_hook): New variable.
18491 (syms_of_buffer): Init and staticpro it.
18492
184932008-01-25 Michael Albinus <michael.albinus@gmx.de>
18494
18495 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18496
184972008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18498
18499 * fns.c (Fclrhash): Return TABLE.
18500
185012008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18502
18503 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18504 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18505 is set even without positional changes.
18506 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18507
18508 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18509
185102008-01-23 Jason Rumney <jasonr@gnu.org>
18511
18512 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18513
18514 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18515 the unicode range available in MULE by locale-coding-system.
18516 Improve dbcs lead byte detection. Set event timestamp and modifiers
18517 earlier.
18518
185192008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18520
18521 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18522 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18523 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18524 when used on child processes.
18525
185262008-01-21 Michael Albinus <michael.albinus@gmx.de>
18527
18528 * dbusbind.c (Fdbus_method_return_internal): Rename from
18529 Fdbus_method_return.
18530 (Fdbus_unregister_object): Move to dbus.el.
18531 (Fdbus_call_method, Fdbus_method_return_internal)
18532 (Fdbus_send_signal): Improve debug messages.
18533
185342008-01-20 Martin Rudalics <rudalics@gmx.at>
18535
18536 * undo.c (undo_inhibit_record_point): New variable.
18537 (syms_of_undo): Initialize it.
18538 (record_point): Don't record point when undo_inhibit_record_point
18539 is set.
18540
185412008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18542
18543 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18544
18545 * xdisp.c (Qauto_hscroll_mode): New var.
18546 (syms_of_xdisp): Initialize it.
18547 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18548 window's buffer.
18549 (hscroll_windows): Don't check automatic_hscrolling_p here.
18550
18551 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18552 vscroll if we're setting window-buffer to the value it already has.
18553
185542008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18555
18556 * m/intel386.h: Remove references to XENIX.
18557
185582008-01-17 Andreas Schwab <schwab@suse.de>
18559
18560 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18561 instead of HAVE_X86_64_LIB64_DIR.
18562 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18563
185642008-01-17 Glenn Morris <rgm@gnu.org>
18565
18566 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18567 to HAVE_X86_64_LIB64_DIR.
18568
185692008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18570
18571 * s/irix3-3.h:
18572 * s/irix4-0.h:
18573 * s/386-ix.h:
18574 * s/domain.h:
18575 * s/hpux9-x11r4.h:
18576 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18577
18578 * sysdep.c: Remove code containing references to symbols defined
18579 by unsupported systems.
18580
185812008-01-16 Glenn Morris <rgm@gnu.org>
18582
18583 * coding.c (select-safe-coding-system-function): Doc fix.
18584
185852008-01-15 Glenn Morris <rgm@gnu.org>
18586
18587 * config.in: Revert 2008-01-13 change: this is a generated file.
18588
185892008-01-13 Tom Tromey <tromey@redhat.com>
18590
18591 * lisp.h: Fix typo.
18592
185932008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18594
18595 * m/sequent-ptx.h:
18596 * m/sequent.h:
18597 * s/ptx.h:
18598 * s/ptx4-2.h:
18599 * s/ptx4.h: Remove files for systems no longer supported.
18600
18601 * callproc.c (Fcall_process): Fix previous change.
18602
186032008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18604
18605 * unexsunos4.c: Remove file, system not supported anymore.
18606
18607 * m/mips.h:
18608 * m/intel386.h:
18609 * callproc.c:
18610 * config.in:
18611 * ecrt0.c:
18612 * emacs.c:
18613 * fileio.c:
18614 * frame.c:
18615 * getpagesize.h:
18616 * keyboard.c:
18617 * lread.c:
18618 * process.c:
18619 * puresize.h:
18620 * sysdep.c:
18621 * systty.h:
18622 * syswait.h:
18623 * unexec.c:
18624 * xdisp.c:
18625 * alloc.c: Remove code containing references to symbols defined by
18626 unsupported systems.
18627
186282008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18629
18630 * coding.c (detect_coding_mask): Fix previous change.
18631
186322008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18633
18634 * coding.c (detect_coding_iso2022): New arg
18635 latin_extra_code_state. Allow Latin extra codes only
18636 when *latin_extra_code_state is nonzero.
18637 (detect_coding_mask): If there is a NULL byte, detect the encoding
18638 as UTF-16 or binary. If Latin extra codes exist, detect the
18639 encoding as ISO-2022 only when there's no other proper encoding is
18640 found.
18641
186422008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18643
18644 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18645 #ifdef MAC_OS.
18646
186472008-01-08 Richard Stallman <rms@gnu.org>
18648
18649 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18650
186512008-01-06 Nick Roberts <nickrob@snap.net.nz>
18652
18653 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18654 menu bar in parentheses.
18655
186562008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18657
18658 * m/7300.h:
18659 * m/acorn.h:
18660 * m/alliant-2800.h:
18661 * m/alliant.h:
18662 * m/alliant1.h:
18663 * m/alliant4.h:
18664 * m/altos.h:
18665 * m/amdahl.h:
18666 * m/apollo.h:
18667 * m/att3b.h:
18668 * m/aviion-intel.h:
18669 * m/aviion.h:
18670 * m/celerity.h:
18671 * m/clipper.h:
18672 * m/cnvrgnt.h:
18673 * m/convex.h:
18674 * m/cydra5.h:
18675 * m/delta88k.h:
18676 * m/dpx2.h:
18677 * m/dual.h:
18678 * m/elxsi.h:
18679 * m/f301.h:
18680 * m/gould-np1.h:
18681 * m/gould.h:
18682 * m/i860.h:
18683 * m/ibmps2-aix.h:
18684 * m/ibmrt-aix.h:
18685 * m/ibmrt.h:
18686 * m/irist.h:
18687 * m/is386.h:
18688 * m/isi-ov.h:
18689 * m/mega68.h:
18690 * m/mg1.h:
18691 * m/news-r6.h:
18692 * m/news-risc.h:
18693 * m/news.h:
18694 * m/nh3000.h:
18695 * m/nh4000.h:
18696 * m/ns16000.h:
18697 * m/ns32000.h:
18698 * m/nu.h:
18699 * m/orion.h:
18700 * m/orion105.h:
18701 * m/paragon.h:
18702 * m/pfa50.h:
18703 * m/plexus.h:
18704 * m/pyramid.h:
18705 * m/pyrmips.h:
18706 * m/sh3el.h:
18707 * m/sps7.h:
18708 * m/sr2k.h:
18709 * m/stride.h:
18710 * m/sun1.h:
18711 * m/sun2.h:
18712 * m/sun3-68881.h:
18713 * m/sun3-fpa.h:
18714 * m/sun3-soft.h:
18715 * m/sun3.h:
18716 * m/sun386.h:
18717 * m/symmetry.h:
18718 * m/tad68k.h:
18719 * m/tahoe.h:
18720 * m/targon31.h:
18721 * m/tek4300.h:
18722 * m/tekxd88.h:
18723 * m/tower32.h:
18724 * m/tower32v3.h:
18725 * m/ustation.h:
18726 * m/wicat.h:
18727 * m/xps100.h:
18728 * s/cxux.h:
18729 * s/cxux7.h:
18730 * s/dgux.h:
18731 * s/dgux4.h:
18732 * s/dgux5-4-3.h:
18733 * s/dgux5-4r2.h:
18734 * s/esix.h:
18735 * s/esix5r4.h:
18736 * s/hiuxmpp.h:
18737 * s/hiuxwe2.h:
18738 * s/iris3-5.h:
18739 * s/iris3-6.h:
18740 * s/isc2-2.h:
18741 * s/isc3-0.h:
18742 * s/isc4-0.h:
18743 * s/isc4-1.h:
18744 * s/newsos5.h:
18745 * s/newsos6.h:
18746 * s/osf1.h:
18747 * s/osf5-0.h:
18748 * s/riscix1-1.h:
18749 * s/riscix12.h:
18750 * s/sco4.h:
18751 * s/sco5.h:
18752 * s/sunos4-0.h:
18753 * s/sunos4-1.h:
18754 * s/sunos413.h:
18755 * s/sunos4shr.h:
18756 * s/umax.h:
18757 * s/unipl5-2.h:
18758 * s/xenix.h:
18759 * cxux-crt0.s:
18760 * unexapollo.c:
18761 * unexconvex.c:
18762 * unexenix.c:
18763 * unexsni.c: Remove files for systems no longer supported.
18764
18765 * m/intel386.h: Remove references to unsupported systems.
18766
18767 * w32.c (get_emacs_configuration): Remove reference to i860.
18768
18769 * sysdep.c: Remove dead code.
18770
187712008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18772
18773 * s/rtu.h:
18774 * m/masscomp.h: Remove files. Platform is obsolete.
18775
187762008-01-04 Michael Albinus <michael.albinus@gmx.de>
18777
18778 * dbusbind.c (Fdbus_method_return): New function.
18779 (xd_read_message): Add the serial number to the event.
18780 (Fdbus_register_method): Activate the function.
18781
187822008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18783
18784 * keyboard.c (read_key_sequence): Fix typo.
18785
187862008-01-03 Michael Albinus <michael.albinus@gmx.de>
18787
18788 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18789 (xd_signature, xd_append_arg): Handle element type detection for
18790 empty arrays.
18791 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18792 SDATA () calls; this must be solved more general.
18793 (Fdbus_register_signal): Use SBYTES instead of strlen.
18794
187952008-01-03 Magnus Henoch <magnus@zemdatav>
18796
18797 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18798 unsigned int for byte values (necessary for big-endian platform).
18799 (Fdbus_call_method): Handle the case of no returned arguments.
18800
188012007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18802
18803 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18804
188052007-12-31 Magnus Henoch <mange@freemail.hu>
18806
18807 * dbusbind.c (xd_signature): Signature of variant is just "v".
18808
188092007-12-30 Michael Albinus <michael.albinus@gmx.de>
18810
18811 * dbusbind.c: Fix several errors and compiler warnings.
18812 Reported by Tom Tromey <tromey@redhat.com>.
18813 (XD_ERROR, XD_DEBUG_MESSAGE)
18814 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18815 (xd_append_arg): Part for basic D-Bus types rewritten.
18816 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18817 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18818 appropriate.
18819 (xd_read_message): Return Qnil. Don't signal an error; it is not
18820 useful during event reading.
18821 (Fdbus_register_signal): Signal an error if the check for
18822 FUNCTIONP fails.
18823 (Fdbus_register_method): New function. The implementation is not
18824 complete, the call of the function signals an error therefore.
18825 (Fdbus_unregister_object): New function, renamed from
18826 Fdbus_unregister_signal. The initial check signals an error, if
18827 the object is not well formed.
18828
188292007-12-30 Richard Stallman <rms@gnu.org>
18830
18831 * textprop.c (get_char_property_and_overlay):
18832 Signal error if POSITION is out of range in a buffer.
18833
188342007-12-29 Martin Rudalics <rudalics@gmx.at>
18835
18836 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18837 because the original parameters are in pure storage now.
18838
188392007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18840
18841 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18842
188432007-12-22 Eli Zaretskii <eliz@gnu.org>
18844
18845 * callint.c (syms_of_callint) <command-history>: Add reference to
18846 history-length in the doc string.
18847
188482007-12-17 Jason Rumney <jasonr@gnu.org>
18849
18850 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18851 before passing as wParam.
18852
188532007-12-22 Michael Albinus <michael.albinus@gmx.de>
18854
18855 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18856 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18857 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18858 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18859 as number.
18860 (Fdbus_call_method): Fix docstring.
18861
188622007-12-21 Michael Albinus <michael.albinus@gmx.de>
18863
18864 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18865 New macros.
18866 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18867 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18868 Simplify.
18869 (xd_signature): New function.
18870 (xd_append_arg): Compute also signatures. Major rewrite.
18871 (xd_retrieve_arg): Make debug messages friendly.
18872 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18873 Check for signatures of arguments.
18874
188752007-12-19 Michael Albinus <michael.albinus@gmx.de>
18876
18877 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18878 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18879 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18880 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18881 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18882 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18883 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18884 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18885 (xd_retrieve_value): Remove. Functionality included in ...
18886 (xd_append_arg): New function.
18887 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18888
188892007-12-16 Michael Albinus <michael.albinus@gmx.de>
18890
18891 * dbusbind.c (top): Include <stdio.h>.
18892 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18893 dbus_message_new_method_call and dbus_message_new_signal.
18894 (Fdbus_register_signal): Rename unique_name to uname.
18895 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18896 non-existing unique name. Fix typos in matching rule. Return an
18897 object which is useful in Fdbus_unregister_signal.
18898 (Fdbus_unregister_signal): Reimplementation, in order to remove
18899 only the corresponding entry.
18900 (Vdbus_registered_functions_table): Change the order of entries.
18901 Apply these changes in xd_read_message and Fdbus_register_signal.
18902
189032007-12-16 Andreas Schwab <schwab@suse.de>
18904
18905 * fileio.c (Finsert_file_contents): Fix overflow check to not
18906 depend on undefined integer overflow.
18907
189082007-12-14 Jason Rumney <jasonr@gnu.org>
18909
18910 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18911 for characters above 127.
18912
189132007-12-13 Jason Rumney <jasonr@gnu.org>
18914
18915 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18916 before dereferencing array.
18917 (lookup_vk_code): Remove zero comparison.
18918
189192007-12-14 Michael Albinus <michael.albinus@gmx.de>
18920
18921 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18922 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18923 Use `unsigned int' instead of `uint'.
18924 (xd_read_message, Fdbus_register_signal): Split expressions into
18925 multiple lines before operators "&&" and "||", according to the
18926 GNU Coding Standards.
18927
189282007-12-14 Eli Zaretskii <eliz@gnu.org>
18929
18930 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18931
189322007-12-12 Juri Linkov <juri@jurta.org>
18933
18934 * buffer.c (Frename_buffer): In interactive spec replace
18935 `read-buffer' with `read-string' that uses `buffer-name-history'
18936 as history, and the current buffer's name as default.
18937
189382007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18939
18940 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18941 manipulating the backtrace manually.
18942 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18943 (struct backtrace, backtrace_list): Remove.
18944 (command_loop_1): Remove dead var `no_direct'.
18945
18946 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18947 preserve non-built-in buffer-local variables.
18948 (Fkill_all_local_variables): Don't re-create&re-set permanent
18949 buffer-local variables.
18950
189512007-12-09 Juri Linkov <juri@jurta.org>
18952
18953 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18954 Lisp code that uses `read-buffer' with current buffer as default.
18955
189562007-12-08 Michael Albinus <michael.albinus@gmx.de>
18957
18958 * dbusbind.c (xd_read_message): Generate an event for every
18959 registered handler. There might be several handlers registered
18960 for the same signal.
18961 (Fdbus_register_signal): Don't overwrite a registration for the
18962 same signal. Add a new registration if handlers are different.
18963 (Vdbus_registered_functions_table): Rework doc string.
18964
189652007-12-07 Michael Albinus <michael.albinus@gmx.de>
18966
18967 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18968 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18969 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18970 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18971 Unify argument lists.
18972 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18973 arguments and hash table keys. Use unique name for service.
18974 (Fdbus_unregister_signal): Remove checks.
18975 (Vdbus_registered_functions_table): Fix doc string.
18976
189772007-12-05 Magnus Henoch <mange@freemail.hu>
18978
18979 * process.c (make_process): Initialize pty_flag to 0.
18980
189812007-12-05 Jason Rumney <jasonr@gnu.org>
18982
18983 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18984 specified XBMs.
18985
189862007-12-05 Richard Stallman <rms@gnu.org>
18987
18988 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18989
189902007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18991
18992 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18993 New variable.
18994 (mac_try_close_socket) [MAC_OSX]: New function.
18995 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18996 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18997
18998 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18999 Use mac_try_close_socket.
19000
190012007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19002
19003 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19004 reloc_base.
19005 (copy_dysymtab): Compute relocation base here.
19006 (rebase_reloc_address) [__ppc64__]: New function.
19007 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19008 changed.
19009
190102007-12-05 Jason Rumney <jasonr@gnu.org>
19011
19012 * w32proc.c (sys_spawnve): Quote args with wildcards.
19013
190142007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19015
19016 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19017 __objc_* sections.
19018 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19019
190202007-12-05 Michael Albinus <michael.albinus@gmx.de>
19021
19022 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19023 Move check for Vdbus_registered_functions_table to
19024 xd_read_queued_messages.
19025 (xd_read_queued_messages): Protect xd_read_message calls by
19026 internal_condition_case_1.
19027
190282007-12-04 Michael Albinus <michael.albinus@gmx.de>
19029
19030 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19031 Qdbus_system_bus and Qdbus_session_bus, respectively.
19032 (Vdbus_intern_symbols): Remove.
19033 (Vdbus_registered_functions_table): New hash table.
19034 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19035 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19036 Rewrite in order to manage registered functions by hash table
19037 Vdbus_registered_functions_table.
19038
190392007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19040
19041 * xterm.c: Update URL to Window Manager Specification in comment.
19042
190432007-12-02 Michael Albinus <michael.albinus@gmx.de>
19044
19045 * config.in (HAVE_DBUS): Add.
19046
19047 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19048 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19049 (obj): Add $(DBUS_OBJ).
19050 (LIBES): Add $(DBUS_LIBS).
19051 (dbusbind.o): New target.
19052
19053 * dbusbind.c: New file.
19054
19055 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19056
19057 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19058 (Qdbus_event): New Lisp symbol.
19059 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19060 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19061 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19062
19063 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19064
190652007-12-01 Richard Stallman <rms@gnu.org>
19066
19067 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19068
190692007-11-30 Jason Rumney <jasonr@gnu.org>
19070
19071 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19072 (w32con_reset_terminal_modes): Clear screen buffer.
19073 (w32_face_attributes): Don't use color indexes that are out of range.
19074 Only reverse the default colors.
19075
19076 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19077 WINDOWSNT.
19078
19079 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19080
190812007-11-29 Jason Rumney <jasonr@gnu.org>
19082
19083 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19084 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19085 if the terminal colors are initialized.
19086 (unspecified_fg, unspecified_bg): Remove unused declarations.
19087
190882007-11-29 Andreas Schwab <schwab@suse.de>
19089
19090 * keyboard.c (apply_modifiers): Fix typo.
19091
190922007-11-29 Richard Stallman <rms@gnu.org>
19093
19094 * keymap.c (Fcurrent_local_map): Doc fix.
19095
190962007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19097
19098 * s/gnu-kfreebsd.h: New file.
19099
191002007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19101
19102 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19103 Don't cast redundantly.
19104
19105 * keyboard.c (KEY_TO_CHAR): New macro.
19106 (parse_modifiers, apply_modifiers): Accept integer arguments.
19107 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19108 for chars and symbol keys.
19109 After doing such remapping, apply function-key-map again.
19110
191112007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19112
19113 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19114 compiled anymore.
19115
191162007-11-26 Andreas Schwab <schwab@suse.de>
19117
19118 * process.c (list_processes_1): Fix indentation level of the
19119 command column.
19120
191212007-11-23 Andreas Schwab <schwab@suse.de>
19122
19123 * editfns.c (Fformat): Handle %c specially since it requires the
19124 argument to be of type int.
19125
191262007-11-23 Markus Triska <markus.triska@gmx.at>
19127
19128 * emacs.c (main): Call init_editfns before init_process, since
19129 init_process sets Vprocess_connection_type depending on OS release.
19130
191312007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19132
19133 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19134 (find_symbol_value): Use do_symval_forwarding.
19135
19136 * data.c (set_internal): Set the value in the `cons-cell' (for
19137 Buffer_Local_values) not only for frame-local variables.
19138
191392007-11-22 Andreas Schwab <schwab@suse.de>
19140
19141 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19142 values to sprintf.
19143 * keymap.c (Fsingle_key_description): Likewise.
19144 * print.c (print_object): Likewise.
19145
191462007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19147
19148 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19149 file for image is nil.
19150
191512007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19152
19153 * term.c: Include stdarg.h.
19154 (fatal): Implement using varargs.
19155 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19156
191572007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19158
19159 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19160 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19161 Update call to buffer_slot_type_mismatch.
19162 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19163 (buffer_slot_type_mismatch): Update.
19164 * buffer.c (buffer_local_types): Remove.
19165 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19166 (defvar_per_buffer): Set the type in the buffer_objfwd.
19167
191682007-11-21 Jason Rumney <jasonr@gnu.org>
19169
19170 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19171 CreateFileMapping returns NULL on failure.
19172
191732007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19174
19175 * search.c (Fset_match_data): Remove the `evaporate' feature.
19176 (unwind_set_match_data): Don't use the `evaporate' feature.
19177
191782007-11-21 Jason Rumney <jasonr@gnu.org>
19179
19180 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19181
19182 * w32console.c (w32con_write_glyphs): Remove unused variables.
19183
191842007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19185
19186 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19187
19188 * s/darwin.h (MULTI_KBOARD): Remove.
19189
19190 * macfns.c (x_create_tip_frame, Fx_create_frame)
19191 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19192
191932007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19194
19195 * buffer.c (Fbuffer_local_value): Remove redundant test.
19196 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19197 than in `current-buffer' to match the comment.
19198 Do the swap using swap_in_global_binding.
19199
19200 * data.c (store_symval_forwarding, set_internal):
19201 * eval.c (specbind): Remove dead code.
19202
19203 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19204 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19205 Since we do not want to see internal Lisp_*fwd objects here.
19206
192072007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19208
19209 * sysdep.c (init_system_name): Use getaddrinfo if available.
19210
19211 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19212 (x_scroll_bar_note_movement): start, end, with, height in struct
19213 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19214
192152007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19216
19217 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19218
192192007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19220
19221 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19222 This undoes Richard's change of 14-Oct-2002.
19223
19224 * alloc.c (allocate_other_vector):
19225 * lisp.h (allocate_other_vector): Remove.
19226
19227 * window.c (struct save_window_data): Move non-lisp data to the end
19228 and make it `int' rather than Lisp_Object.
19229 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19230 Done wrap/unwrap integer values.
19231 (Fset_window_configuration, compare_window_configurations):
19232 Update use of fields to their new types.
19233
19234 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19235 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19236 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19237 (SET_SCROLL_BAR_X_WINDOW): Remove.
19238 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19239 Access the new x_window field directly.
19240 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19241 Don't wrap/unwrap integers into Lisp_Objects.
19242 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19243 (x_scroll_bar_report_motion):
19244 Don't wrap/unwrap integers into Lisp_Objects.
19245 (x_term_init): Use SDATA.
19246 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19247 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19248 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19249 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19250 * xfns.c (x_set_background_color):
19251 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19252 Access the new x_window field directly.
19253
19254 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19255 (allocate_pseudovector): Make non-static.
19256
19257 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19258 (allocate_pseudovector): Declare.
19259 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19260
192612007-11-15 Andreas Schwab <schwab@suse.de>
19262
19263 * editfns.c (Fformat): Correctly format EMACS_INT values.
19264 Also take precision into account when formatting an integer.
19265
19266 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19267
192682007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19269
19270 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19271 (syms_of_keyboard): Defsubr it.
19272
19273 * data.c (swap_in_global_binding): Fix longstanding bug where
19274 store_symval_forwarding was not called with the right second argument,
19275 thus causing objfwd-ing from being dropped.
19276
192772007-11-14 Juanma Barranquero <lekktu@gmail.com>
19278
19279 * macfns.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_backing_store)
19283 (Fx_display_visual_class, Fx_display_save_under):
19284 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19285 (Fx_display_pixel_height, Fx_display_planes)
19286 (Fx_display_color_cells, Fx_server_max_request_size)
19287 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19288 (Fx_display_mm_height, Fx_display_mm_width)
19289 (Fx_display_backing_store, Fx_display_visual_class)
19290 (Fw32_select_font, Fx_display_save_under):
19291 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19292 (Fx_display_pixel_height, Fx_display_planes)
19293 (Fx_display_color_cells, Fx_server_max_request_size)
19294 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19295 (Fx_display_save_under): Fix typos in docstrings.
19296
192972007-11-14 Juanma Barranquero <lekktu@gmail.com>
19298
19299 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19300 corresponding to deleted entries; they are an implementation detail.
19301 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19302 Remove variables.
19303 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19304 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19305 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19306 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19307 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19308 (Fw32_define_rgb_color, Fw32_load_color_file)
19309 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19310 Fix typos in docstrings.
19311 (Fx_server_version): Reflow docstring.
19312 (Fw32_shell_execute): Doc fixes.
19313
193142007-11-13 Juanma Barranquero <lekktu@gmail.com>
19315
19316 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19317 if w32_parse_hot_key returned nil.
19318
193192007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19320
19321 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19322
193232007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19324
aac0c6e3
MR
19325 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19326
19327 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19328
19329 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19330 Remove W32_SCROLL_BAR_CLICK_EVENT.
19331
19332 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19333 Add MULTIMEDIA_KEY_EVENT.
19334
19335 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19336 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19337 (make_lispy_event) [WINDOWSNT]: Use it to translate
19338 MULTIMEDIA_KEY_EVENT.
19339
19340 * w32term.h (WM_APPCOMMAND): Define if not already.
19341 (GET_APPCOMMAND_LPARAM): Likewise.
19342
19343 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19344 WM_APPCOMMAND.
19345
19346 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19347 (syms_of_w32fns): Export and initialize it.
19348 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19349
193502007-11-09 Chong Yidong <cyd@stupidchicken.com>
19351
19352 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19353 twice.
19354
19355 * xdisp.c (handle_face_prop): Fix last change.
19356
193572007-11-09 Richard Stallman <rms@gnu.org>
19358
19359 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19360 not just for after-strings and before-strings.
19361 Call face_for_overlay_string and pass the overlay to it.
19362 (handle_display_prop): Determine whether property came from an overlay.
19363 Pass OVERLAY arg to handle_single_display_spec.
19364 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19365 (load_overlay_strings): Fill in it->string_overlays.
19366 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19367
19368 * xfaces.c (face_for_overlay_string): Function renamed from
19369 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19370
19371 * dispextern.h (struct it): New elt string_overlays.
19372 New elt from_overlay, also in stack.
19373 Rearrange a few elements.
19374 (face_for_overlay_string): Decl renamed from
19375 face_at_buffer_position_no_overlays, and add argument.
19376
193772007-11-09 Richard Stallman <rms@gnu.org>
19378
19379 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19380 to get the base face for an overlay string.
19381
19382 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19383
19384 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19385
19386 * xdisp.c (handle_stop): Move some code out of loop.
19387
193882007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19389
19390 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19391 Fix conversion from Lisp object to ATSUFontID.
19392
193932007-11-09 Jason Rumney <jasonr@gnu.org>
19394
19395 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19396
193972007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19398
19399 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19400 Don't assume regions are aligned to page boundary.
19401 (print_load_command_name): Add LC_UUID if defined.
19402
194032007-11-09 Richard Stallman <rms@gnu.org>
19404
19405 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19406
194072007-11-07 Jason Rumney <jasonr@gnu.org>
19408
19409 * s/windows95.h: Remove.
19410
194112007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19412
19413 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19414 abort with a message on unhandled store_type values.
19415
194162007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19417
19418 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19419 Remove HAVE_X11R5 and HAVE_X11R4.
19420
194212007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19422
19423 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19424
194252007-11-01 Johan Bockgård <bojohan@gnu.org>
19426
19427 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19428 Don't set s->stippled_p here, since it has already been set by
19429 x_set_glyph_string_gc from x_draw_glyph_string.
19430
194312007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19432
19433 * sunfns.c: Remove file.
19434
19435 * m/sun386.h:
19436 * m/sun2.h:
19437 * m/sparc.h: Remove Sun windows code.
19438
194392007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19440
19441 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19442 (init_keyboard): Set current_kboard's window-system to nil.
19443 (tty_read_avail_input): Typo.
19444 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19445
194462007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19447
19448 * s/usg5-4.h:
19449 * s/usg5-3.h:
19450 * s/ptx.h:
19451 * m/is386.h:
19452 * m/ibmps2-aix.h:
19453 * Makefile.in: Remove all mentions of X10.
19454
19455 * dispnew.c (syms_of_display): Don't mention version 10.
19456
194572007-10-28 Juanma Barranquero <lekktu@gmail.com>
19458
19459 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19460 ($(BLD)/abbrev.$(O)): Remove.
19461
194622007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19463
19464 Rewrite abbrev.c in Elisp.
19465 * image.c (Qcount): Don't declare as extern.
19466 (syms_of_image): Initialize and staticpro `Qcount'.
19467 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19468 * emacs.c (main): Don't call syms_of_abbrev.
19469 * Makefile.in (obj): Remove abbrev.o.
19470 (abbrev.o): Remove.
19471 * abbrev.c: Remove.
19472
194732007-10-26 Martin Rudalics <rudalics@gmx.at>
19474
19475 * window.c (window_min_size_2): Don't count header-line.
19476
194772007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19478
19479 * frame.h (struct frame): Move all bit fields after the first bit
19480 field to take advantage of the available space. Group all the
19481 chars together to reduce wasted space due to padding.
19482
194832007-10-26 Juanma Barranquero <lekktu@gmail.com>
19484
19485 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19486
19487 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19488 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19489 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19490 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19491 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19492 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19493 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19494 (last_marked, mark_object_loop_halt): Make static.
19495
19496 * frame.c (syms_of_frame) <delete-frame-functions>:
19497 Fix typo in docstring.
19498
194992007-10-25 Juanma Barranquero <lekktu@gmail.com>
19500
19501 * w32.c (init_environment): Fix tiny memory leak.
19502 (w32_get_resource): Remove unused variable `ok'.
19503
195042007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19505
19506 Make `window-system' into a keyboard-local variable (rather than
19507 frame-local as done originally by multi-tty).
19508
19509 * keyboard.h (struct kboard): Add Vwindow_system.
19510 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19511 (mark_kboards): Mark Vwindow_system.
19512
19513 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19514 (init_display): Don't set the obsolete `window-system' frame-param.
19515
19516 * xterm.c (x_term_init):
19517 * w32term.c (w32_create_terminal):
19518 * term.c (init_tty): Set Vwindow_system.
19519 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19520 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19521
19522 * xfns.c (Fx_create_frame, x_create_tip_frame):
19523 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19524 * macfns.c (Fx_create_frame):
19525 Don't set the obsolete `window-system' frame-param.
19526
19527 * frame.h (Qwindow_system): Remove.
19528 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19529 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19530
195312007-10-24 Richard Stallman <rms@gnu.org>
19532
19533 * frame.c (x_figure_window_size): For fullscreen case,
19534 set USPosition | PPosition without clobbering rest of window_prompting.
19535
19536 * keyboard.c (Fcurrent_idle_time): Doc fix.
19537
19538 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19539
195402007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19541
19542 * process.c (unwind_request_sigio): Only define if __ultrix__.
19543
19544 * callproc.c (child_setup): Remove spurious *.
19545
19546 * lisp.h (Fget_text_property): Declare.
19547 (have_menus_p): Declare it here rather than in sys-dep header files.
19548 * macterm.h (have_menus_p):
19549 * msdos.h (have_menus_p):
19550 * xterm.h (have_menus_p): Remove.
19551
19552 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19553 (Fmake_variable_frame_local): Just check the variable's const-ness
19554 rather than checking nil or t.
19555
195562007-10-22 Jason Rumney <jasonr@gnu.org>
19557
19558 * w32fns.c: Include math.h.
19559 (w32_abort): Declaration moved to nt/config.nt.
19560
19561 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19562 (abort): Redefinition moved to nt/config.nt.
19563
19564 * m/windowsnt.h: Remove.
19565
195662007-10-22 Juanma Barranquero <lekktu@gmail.com>
19567
19568 * emacs.c (Fdump_emacs): Fix typo in message.
19569 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19570 <installation-directory>: Reflow docstring.
19571
195722007-10-22 Juri Linkov <juri@jurta.org>
19573
19574 * minibuf.c: Allow minibuffer default to be a list of default values.
19575 With empty input use the first element of this list as returned default.
19576 (string_to_object)
19577 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19578 (read_minibuf): If defalt is cons, set histstring to its car.
19579 (Fread_string): If default_value is cons, set val to its car.
19580 (Fread_buffer): If def is cons, use its car.
19581 (Fcompleting_read): If defalt is cons, set val to its car.
19582
195832007-10-21 Michael Albinus <michael.albinus@gmx.de>
19584
19585 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19586
195872007-10-20 Juanma Barranquero <lekktu@gmail.com>
19588
19589 * doc.c (Fdocumentation): Check for advice in all cases.
19590
195912007-10-19 Chong Yidong <cyd@stupidchicken.com>
19592
19593 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19594
195952007-10-19 Richard Stallman <rms@gnu.org>
19596
19597 * doc.c (Fdocumentation): Check for and handle an advised function.
19598
195992007-10-19 Juanma Barranquero <lekktu@gmail.com>
19600
19601 * process.c (Fset_process_filter): Doc fix.
19602
196032007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19604
19605 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19606 which caused key-translation-map to applied repeatedly (thus breaking
19607 double-mode).
19608
196092007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19610
19611 * xselect.c (x_own_selection, x_handle_selection_clear)
19612 (x_clear_frame_selections):
19613 * w32menu.c (list_of_panes, list_of_items):
19614 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19615 * textprop.c (validate_plist, interval_has_all_properties)
19616 (interval_has_some_properties, interval_has_some_properties_list)
19617 (add_properties, text_property_list):
19618 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19619 * minibuf.c (Fassoc_string):
19620 * macselect.c (x_own_selection, x_clear_frame_selections)
19621 (Fx_disown_selection_internal):
19622 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19623 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19624
196252007-10-17 Chong Yidong <cyd@stupidchicken.com>
19626
19627 * process.c: Link to libs for calling res_init() if available.
19628 (Fmake_network_process): Call res_init() before getaddrinfo or
19629 gethostbyname, if possible.
19630
196312007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19632
19633 * lread.c (read1): Set pvectype for char_tables.
19634
19635 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19636 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19637 Add type checks.
19638 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19639
19640 * alloc.c (free_misc): Use XMISCTYPE.
19641 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19642
196432007-10-17 Glenn Morris <rgm@gnu.org>
19644
19645 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19646 (syms_of_minibuf): Add Qcompletion_ignore_case.
19647 * dired.c (Qcompletion_ignore_case): Change to external.
19648 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19649 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19650 (Fread_file_name): Use it rather than intern'ing.
19651
19652 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19653 (Fread_coding_system): Ignore case of user input.
19654
196552007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19656
19657 * xdisp.c (handle_display_prop): Ignore display specs after
19658 replacing one when string text is being replaced.
19659 (handle_single_display_spec): Pretend as if characters with display
19660 property haven't been consumed only when buffer text is being replaced.
19661
196622007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19663
19664 * xfns.c (Fx_create_frame, Fx_display_list):
19665 * window.c (window_fixed_size_p, enlarge_window)
19666 (shrink_window_lowest_first):
19667 * macterm.c (init_font_name_table):
19668 * macfns.c (Fx_create_frame, Fx_display_list):
19669 * lread.c (close_load_descs):
19670 * keyboard.c (read_char_x_menu_prompt):
19671 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19672 * coding.c (code_convert_region_unwind): Test the type of an object
19673 rather than just !NILP before extracting data from it.
19674
19675 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19676
19677 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19678 (XMISCANY): New macro.
19679 (XMISCTYPE): Use it.
19680 (struct Lisp_Misc_Any): New type.
19681 (union Lisp_Misc): Use it.
19682 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19683 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19684 (find_symbol_value, set_internal, default_value, Fset_default)
19685 (Fmake_variable_buffer_local, Fmake_local_variable)
19686 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19687 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19688 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19689 * alloc.c (allocate_buffer): Set the size and tag.
19690 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19691 Use XMISCANY.
19692 (die): Follow the GNU convention for error messages.
19693 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19694 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19695 tag any more.
19696 (set_buffer_internal_1):
19697 * frame.c (store_frame_param):
19698 * eval.c (specbind):
19699 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19700
19701 * doc.c (Fsnarf_documentation): Simplify.
19702
197032007-10-14 Juanma Barranquero <lekktu@gmail.com>
19704
19705 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19706 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19707
197082007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19709
19710 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19711
197122007-10-14 Juanma Barranquero <lekktu@gmail.com>
19713
19714 * eval.c (do_autoload): Don't save autoloads.
19715
19716 * data.c (Ffset): Save autoload of the function being set.
19717
197182007-10-07 John Paul Wallington <jpw@pobox.com>
19719
19720 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19721 parameter before setting up faces.
19722
197232007-10-13 Eli Zaretskii <eliz@gnu.org>
19724
19725 * ccl.c (Fregister_code_conversion_map):
19726 * keyboard.c (append_tool_bar_item): Reformat last change.
19727
19728 * lisp.h (eabs): Rename from `abs'. All callers changed.
19729
197302007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19731
19732 * buffer.c (add_overlay_mod_hooklist):
19733 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19734 * fontset.c (make_fontset):
19735 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19736 (append_tool_bar_item):
19737 * macmenu.c (grow_menu_items):
19738 * w32menu.c (grow_menu_items):
19739 * xmenu.c (grow_menu_items): Use larger_vector.
19740
197412007-10-13 Eli Zaretskii <eliz@gnu.org>
19742
19743 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19744 selected frame'' on MSDOS).
19745
197462007-10-12 Martin Rudalics <rudalics@gmx.at>
19747
19748 * frame.c (Qexplicit_name): New variable.
19749 (x_report_frame_params): Report it in parameter alist.
19750 (syms_of_frame): Intern and staticpro it.
19751
197522007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19753
19754 * macfns.c (x_create_tip_frame): Set terminal for frame.
19755
197562007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19757
19758 * frame.c (Qenvironment): Remove.
19759 (syms_of_frame) <Qenvironment>: Don't initialize.
19760 (Fdelete_frame): Don't treat the `environment' param specially.
19761 * frame.h (Qenvironment): Don't declare.
19762 * callproc.c (set_initial_environment): Don't set unused frame param.
19763
19764 * frame.c (Fframe_with_environment): Remove.
19765 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19766
19767 * lisp.h (Fframe_with_environment): Don't declare.
19768
197692007-10-10 Juanma Barranquero <lekktu@gmail.com>
19770
19771 * indent.c (indent_tabs_mode, last_known_column)
19772 (last_known_column_modified): Make static.
19773 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19774
197752007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19776
19777 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19778
197792007-10-09 Jason Rumney <jasonr@gnu.org>
19780
19781 * w32term.c (x_set_window_size): Disable code that attempts to tell
19782 Lisp code about a size change before it actually happens.
19783
197842007-10-09 Richard Stallman <rms@gnu.org>
19785
19786 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19787 return HANDLED_RETURN.
19788
197892007-10-08 Martin Rudalics <rudalics@gmx.at>
19790
19791 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19792 when there's an unread command event.
19793
19794 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19795 window autoselection act appropriately when leaving selected frame.
19796 (syms_of_frame): Initialize focus_follows_mouse.
19797 * frame.h (focus_follows_mouse): Extern it.
19798 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19799 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19800 * msdos.c (dos_rawgetc): Likewise.
19801 * w32term.c (w32_read_socket): Likewise.
19802 * xterm.c (handle_one_xevent): Likewise.
19803 * xdisp.c (syms_of_xdisp): In doc-string of
19804 mouse-autoselect-window mention focus-follows-mouse.
19805
198062007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19807
19808 * macterm.c (mac_load_query_font): Fix missing return value.
19809 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19810 Add BLOCK_INPUT.
19811
198122007-10-08 Richard Stallman <rms@gnu.org>
19813
19814 * xdisp.c (get_window_cursor_type): Implement documented behavior
19815 for cursor-in-non-selected-windows = t.
19816
198172007-10-08 Jason Rumney <jasonr@gnu.org>
19818
19819 * w32.c (w32_get_resource): Always close registry keys.
19820
198212007-10-08 Jason Rumney <jasonr@gnu.org>
19822
19823 * makefile.w32-in (LIBS): Add COMCTL32.
19824
19825 * w32fns.c (globals_of_w32fns): Init common controls.
19826
198272007-10-08 Richard Stallman <rms@gnu.org>
19828
19829 * image.c (our_memory_buffer): Rename from omfib_buffer.
19830
198312007-10-08 Richard Stallman <rms@gnu.org>
19832
19833 * buffer.c (Foverlays_at): Doc fix.
19834
198352007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19836
19837 * fns.c (Fplist_put): Preserve uneven tail data.
19838
198392007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19840
19841 * termhooks.h (enum event_kind): Remove trailing comma.
19842
19843 * frame.h (enum): Remove trailing comma.
19844
198452007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19846
19847 * w32proc.c (delete_child): Don't terminate threads of zombies.
19848
198492007-10-08 Martin Rudalics <rudalics@gmx.at>
19850
19851 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19852
19853 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19854 last-repeatable-command.
19855 (init_kboard): Initialize Vlast_repeatable_command.
19856 (command_loop_1): Set it to real_this_command unless that was
19857 bound to an input event.
19858 (mark_kboards): Mark it.
19859
198602007-10-08 Richard Stallman <rms@gnu.org>
19861
19862 * eval.c (condition-case): Doc fix.
19863
198642007-10-08 Masatake YAMATO <jet@gyve.org>
19865
19866 * xfaces.c (tty_supports_face_attributes_p): Fix code
19867 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19868 was copied and not edited.
19869
198702007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19871
19872 Add new `input-decode-map' keymap and use it for terminal
19873 escape sequences.
19874 * keyboard.h (struct kboard): Add Vinput_decode_map.
19875 Remove Vlocal_key_translation_map.
19876 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19877 (init_kboard): Init input-decode-map.
19878 Replace local-key-translation-map back with key-translation-map.
19879 (syms_of_keyboard): Declare input-decode-map.
19880 Remove local-key-translation-map. Update docstrings.
19881 (mark_kboards): Mark Vinput_decode_map.
19882 Don't mark Vlocal_key_translation_map.
19883 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19884 Replace local-key-translation-map back with key-translation-map.
19885 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19886 Bind in input-decode-map rather than function-key-map.
19887
19888 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19889 This was made redundant by the previous introduction of XSETPVECTYPE.
19890
198912007-10-09 Richard Stallman <rms@gnu.org>
19892
19893 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19894
198952007-09-29 Richard Stallman <rms@gnu.org>
19896
19897 * eval.c (internal_condition_case_2, internal_condition_case_1)
19898 (internal_condition_case): Reenable abort if x_catching_errors ()
19899 to see if that really happens and why.
19900
199012007-10-06 Andreas Schwab <schwab@suse.de>
19902
19903 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19904
199052007-10-04 Juanma Barranquero <lekktu@gmail.com>
19906
19907 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19908
199092007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19910
19911 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19912
199132007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19914
19915 * window.h (struct window):
19916 * window.c (struct save_window_data, struct saved_window):
19917 * termhooks.h (struct terminal):
19918 * process.h (struct Lisp_Process):
19919 * frame.h (struct frame):
19920 * buffer.h (struct buffer):
19921 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19922 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19923 The size field of (pseudo)vectors is now unsigned.
19924 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19925
19926 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19927 Turn `count' into an integer.
19928
19929 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19930 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19931 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19932 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19933 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19934
19935 * alloc.c (allocate_pseudovector): New fun.
19936 (ALLOCATE_PSEUDOVECTOR): New macro.
19937 (allocate_window, allocate_terminal, allocate_frame)
19938 (allocate_process): Use it.
19939 (mark_vectorlike): New function.
19940 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19941 (mark_terminals): Use it.
19942 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19943 (Fmake_byte_code): Use XSETPVECTYPE.
19944
19945 * frame.c (Fframe_parameters): Minor simplification.
19946
19947 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19948
19949 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19950
19951 * buffer.c (Fget_buffer_create, init_buffer_once):
19952 * lread.c (defsubr):
19953 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19954
19955 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19956 defined differently in the m/*.h files.
19957 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19958 (XSETPVECTYPE): New macro.
19959 (XSETPSEUDOVECTOR): Use it.
19960
19961 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19962 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19963
19964 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19965 * lread.c (defvar_per_buffer):
19966 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19967
19968 * window.c (candidate_window_p): Only consider as visible frames that
19969 are on the same terminal.
19970
19971 * m/ibms390x.h (MARKBIT): Remove unused macro.
19972
199732007-10-01 Juanma Barranquero <lekktu@gmail.com>
19974
19975 * lread.c (Fload): Fix typo in docstring.
19976
199772007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19978
19979 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19980 of a non-zero value can't yield zero.
19981
199822007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19983
19984 * term.c (term_clear_mouse_face, term_mouse_highlight)
19985 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19986
19987 * print.c (safe_debug_print): Use XHASH.
19988
19989 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19990 Lisp elements such as tags.
19991 (XHASH): New macro.
19992 (EQ): Use it.
19993 (SREF, SSET, STRING_COPYIN): Use SDATA.
19994 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19995
19996 * alloc.c (mark_terminal): Remove left-over declaration.
19997 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19998 (allocate_vectorlike): Remove type argument. Adjust callers.
19999 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20000 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20001
20002 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20003 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20004 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20005 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20006 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20007 Use them.
20008
20009 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20010 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20011 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20012
200132007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20014
20015 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20016 loaded by default.
20017
200182007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20019
20020 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20021 on this tty.
20022 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20023
20024 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20025 Update all users.
20026 (handle_one_term_event): Use Gpm_DrawPointer.
20027 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20028 Signal errors instead of returning nil. Always return nil.
20029 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20030 Make it a noop if gpm-mouse was not activated.
20031 (syms_of_term): Update names.
20032
200332007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20034
20035 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20036 (init_sys_modes): Check that gpm_tty is the current tty.
20037
20038 * alloc.c (allocate_terminal): Set the vector size to only count the
20039 lisp fields. Initialize those to nil.
20040 (mark_object): Don't treat terminals specially.
20041 (mark_terminal): Remove.
20042 (mark_terminals): Use mark_object instead.
20043
20044 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20045 the GC to the beginning.
20046
20047 * indent.h:
20048 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20049
20050 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20051
200522007-09-25 Jason Rumney <jasonr@gnu.org>
20053
20054 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20055
20056 * w32console.c (create_w32cons_output): Remove.
20057
20058 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20059
20060 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20061 (reset_sys_modes): Use reset_terminal_modes_hook.
20062
200632007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20064
20065 * eval.c (do_autoload): Don't output any message.
20066
200672007-09-24 Juri Linkov <juri@jurta.org>
20068
20069 * emacs.c (standard_args): Change priority of "--no-splash"
20070 from 40 to 3. Add "--no-desktop" with the same priority.
20071
200722007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20073
20074 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20075 and optimize the case where they are all 1.
20076
200772007-09-23 Johannes Weiner <hannes@saeurebad.de>
20078
20079 * lisp.h (abs): Define if not defined.
20080 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20081 Don't define `abs', since it's defined in lisp.h.
20082
200832007-09-22 Eli Zaretskii <eliz@gnu.org>
20084
20085 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20086 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20087 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20088 (init_tty): Use DEV_TTY instead of "/dev/tty".
20089 [WINDOWSNT]: No need to protect from NAME arg being null.
20090
200912007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20092
20093 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20094 up the tty state.
20095
200962007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20097
20098 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20099 (gpm_tty): Change its type.
20100 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20101 (gpm_tty): Change its type and initialize it.
20102 (Fterm_open_connection): Check the frame is indeed a tty.
20103 Use the new gpm_tty.
20104 (Fterm_close_connection): Use the new gpm_tty.
20105 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20106 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20107
201082007-09-21 Juanma Barranquero <lekktu@gmail.com>
20109
20110 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20111 underline_color, to draw strike-through.
20112
201132007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20114
20115 * lisp.h (allocate_terminal): Declare.
20116
20117 * window.c (candidate_window_p): Consider frames that are being placed
20118 by the user as somewhere between visible and iconified.
20119 (window_loop): Prefer windows on the current frame.
20120 (Fselect_window): Move the use of select-frame to the beginning so we
20121 can just delegate all the work (it'll call us back anyway).
20122
20123 * frame.c (Qdisplay_environment_variable):
20124 * frame.h (Qdisplay_environment_variable): Delete.
20125
20126 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20127 of the first arg, since that value may be a union.
20128
20129 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20130 parameter rather than Qdisplay_environment_variable. If all else
20131 fails, look for DISPLAY in initial-environment.
20132
201332007-09-21 Glenn Morris <rgm@gnu.org>
20134
20135 * Makefile.in (emacstool): Remove target.
20136 (lisp, shortlisp): Remove termdev.elc.
20137
201382007-09-21 Markus Triska <markus.triska@gmx.at>
20139
20140 * xterm.c (x_delete_display): Compile session management conditionally.
20141
201422007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20143
20144 * callproc.c (getenv_internal_1): New function.
20145 (getenv_internal): Use it.
20146 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20147
20148 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20149 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20150 (Fset_terminal_parameter): Work with dead terminals as well.
20151 (Fmodify_terminal_parameters): Remove.
20152
20153 * terminal.c (get_terminal): Handle terminals.
20154 Make sure the terminal returned is live.
20155 (create_terminal): Use allocate_terminal.
20156 (mark_terminals): Move to alloc.c.
20157 (delete_terminal): Use terminal->name as liveness status.
20158 NULL out fields after freeing their contents.
20159 Don't deallocate the object.
20160 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20161 rather than an int.
20162 (Fterminal_live_p): Accept non-integer arguments.
20163 (Fterminal_list): Return terminal objects rather than an ints.
20164
20165 * alloc.c (enum mem_type): New member for `terminal' objects.
20166 (allocate_terminal): New function.
20167 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20168 Handle terminals.
20169 (mark_terminal): New fun.
20170 (mark_terminals): Move from terminal.c.
20171
20172 * term.c (get_tty_terminal): Don't treat output_initial specially.
20173 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20174 (delete_tty): Use terminal->name as liveness status.
20175
20176 * termhooks.h (struct terminal): Make it into a pseudovector.
20177 Remove `deleted' replaced by checking `name's nullness.
20178
20179 * print.c (print_object): Handle terminals.
20180
20181 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20182 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20183
20184 * frame.c (make_terminal_frame):
20185 * keyboard.c (tty_read_avail_input):
20186 * w32term.c (x_delete_terminal):
20187 * xfns.c (Fx_create_frame, x_create_tip_frame):
20188 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20189
201902007-09-20 Glenn Morris <rgm@gnu.org>
20191
20192 * process.c (Fmake_network_process): Doc fix.
20193
201942007-09-19 Jason Rumney <jasonr@gnu.org>
20195
20196 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20197
201982007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20199
20200 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20201 Fix a C warning regarding variable constness.
20202
20203 * xterm.c (handle_one_xevent): Fix a C warning.
20204
202052007-09-18 Jason Rumney <jasonr@gnu.org>
20206
20207 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20208
202092007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20210
20211 * gtkutil.c (gdpy_def): New variable.
20212 (xg_initialize): Initialize gdpy_def.
20213 (xg_display_close): If no other display exists, set gdpy_def to a
20214 new connection.
20215
202162007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20217
20218 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20219 when we have no file name for the icon.
20220 (xg_tool_bar_expose_callback): Remove.
20221 (xg_create_tool_bar): Don't connect expose signal to
20222 xg_tool_bar_expose_callback.
20223 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20224
202252007-09-16 Andreas Schwab <schwab@suse.de>
20226
20227 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20228 values instead of zapping them.
20229
202302007-09-14 Glenn Morris <rgm@gnu.org>
20231
20232 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20233 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20234 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20235 scope and rename to omfib_buffer for clarity.
20236 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20237
202382007-09-14 Kenichi Handa <handa@m17n.org>
20239
20240 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20241
202422007-09-13 Jason Rumney <jasonr@gnu.org>
20243
20244 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20245
20246 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20247
20248 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20249 (mac_term_init): Call here instead, passing rif.
20250
202512007-09-13 Glenn Morris <rgm@gnu.org>
20252
20253 * s/hpux.h: No longer define `static' as nothing.
20254
202552007-09-13 Johan Bockgård <bojohan@gnu.org>
20256
20257 * callint.c (Fcall_interactively): Remove unused var `fun'.
20258
202592007-09-12 Romain Francoise <romain@orebokech.com>
20260
20261 * window.c (prefer_window_split_horizontally, display_buffer):
20262 Revert 2007-09-08 change.
20263
202642007-09-12 Glenn Morris <rgm@gnu.org>
20265
20266 * alloca.c: Remove file.
20267 * Makefile.in (alloca): Do not undef.
20268 (allocaobj, alloca.o): Remove.
20269 (otherobj): Remove allocaobj.
20270 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20271 * regex.c (C_ALLOCA): Remove all references and code that was only
20272 used when this was defined.
20273 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20274 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20275 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20276
20277 * Makefile.in (SOURCES, unlock, relock): Delete.
20278
20279 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20280 (menu_grab_callback): All uses changed.
20281
20282 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20283 (x_reply_selection_request): All uses changed.
20284
202852007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20286
20287 * lread.c (load_warn_old_style_backquotes): Change message to look
20288 better when it appears in the middle of byte-compiler messages.
20289
202902007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20291
20292 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20293
20294 * xterm.c (x_create_terminal): Add comment.
20295
20296 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20297
202982007-09-10 Richard Stallman <rms@gnu.org>
20299
20300 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20301
203022007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20303
20304 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20305 (DEFUN): Document `intspec', use it instead of `prompt'.
20306
20307 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20308
20309 * data.c (Finteractive_form): If the interactive specification starts
20310 with a `(', use it as a Lisp form.
20311
20312 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20313 name and file modes.
20314
20315 * callint.c (Fcall_interactively): Comment fixes.
20316
203172007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20318
20319 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20320 and compiled functions.
20321
203222007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20323
20324 * window.c (prefer_window_split_horizontally): New variable.
20325 (display_buffer): Consider splitting window horizontally depending
20326 on prefer_window_split_horizontally.
20327
203282007-09-08 Eli Zaretskii <eliz@gnu.org>
20329
20330 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20331
203322007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20333
20334 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20335
20336 * frame.c (x_set_frame_parameters): Check number is positive before
20337 using XFASTINT.
20338
20339 * window.c (freeze_window_start): Don't presume selected_window holds
20340 a window object.
20341 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20342
203432007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20344
20345 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20346
203472007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20348
20349 * window.c (Vsplit_window_preferred_function): New var.
20350 (Fdisplay_buffer): Use it.
20351 (syms_of_window): Export, and initialize it.
20352
203532007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20354
20355 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20356
203572007-09-06 Glenn Morris <rgm@gnu.org>
20358
20359 * gtkutil.c (menu_grab_callback) <cnt>:
20360 * xselect.c (x_reply_selection_request) <cnt>: Move static
20361 variable to file scope.
20362
203632007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20364
20365 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20366 consistent values of selected_frame and selected_window.
20367
203682007-09-04 Jason Rumney <jasonr@gnu.org>
20369
20370 * w32console.c (initialize_w32_display): Zero unused hooks.
20371
203722007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20373
20374 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20375 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20376
203772007-09-04 Jason Rumney <jasonr@gnu.org>
20378
20379 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20380 in w32console.c. Set up input. Remove XXX comments that have been
20381 confirmed as correct.
20382
20383 * s/ms-w32.h (MULTI_KBOARD): Define.
20384
20385 * w32console.c (one_and_only_w32cons): Remove.
20386 (initialize_w32_display): Take terminal argument.
20387
20388 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20389 initialize_w32_display.
20390 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20391
20392 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20393
20394 * keyboard.c (discard_mouse_events): Discard it.
20395 (make_lispy_event): Translate it to a lisp event.
20396 (lispy_wheel_names): Add wheel-left and right events.
20397 (syms_of_keyboard): Enlarge wheel_syms.
20398
20399 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20400 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20401
20402 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20403
20404 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20405 from WM_MOUSEHWHEEL.
20406 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20407
20408 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20409 terminal.
20410
20411 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20412 keyboard for the terminal.
20413
204142007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20415
20416 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20417 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20418 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20419 and resume-tty-function to resume-tty-hook.
20420 (Fsuspend_tty, Fresume_tty): Use new names.
20421
204222007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20423
20424 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20425 if it starts with "n:".
20426
204272007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20428
20429 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20430
204312007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20432
20433 * frame.h:
20434 * frame.c (Qterm_environment_variable): Remove.
20435 (syms_of_frame): Don't init and staticpro it.
20436
20437 * callproc.c (getenv_internal): Remove special case for $TERM.
20438
20439 * callproc.c (Vinitial_environment): New variable.
20440 (set_initial_environment): Initialize it.
20441 (syms_of_callproc): Declare it.
20442 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20443 TERM under which a process runs is never related to the TERM in which
20444 Emacs is running.
20445
204462007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20447
20448 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20449 * s/darwin.h: ... do it here.
20450
204512007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20452
20453 * lisp.h (set_initial_environment): Rename from set_global_environment.
20454
20455 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20456 removed by mistake on the multi-tty branch.
20457
20458 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20459 (Fmodify_frame_parameters): Return a value.
20460
20461 * image.c (png_load): Comment-out var only used in commented-out code.
20462
20463 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20464 before passing it to mark_object.
20465
20466 * xfaces.c (internal_resolve_face_name): Return a value.
20467 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20468
20469 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20470 (x_icon): Comment-out var only used in commented-out code.
20471
204722007-08-29 Romain Francoise <romain@orebokech.com>
20473
20474 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20475 QUIT hasn't been provided.
20476
204772007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20478
20479 * callproc.c (child_setup, getenv_internal): Use the
20480 display-environment-variable and term-environment-variable frame params.
20481 (set_initial_environment): Initialise Vprocess_environment.
20482
20483 * config.in: Disable multi-keyboard support on a mac.
20484
20485 * frame.c (Qterm_environment_variable)
20486 (Qdisplay_environment_variable): New variables.
20487 (syms_of_frame): Intern and staticpro them.
20488 (Fmake_terminal_frame): Disable output method test.
20489
20490 * frame.h: Declare them here.
20491
20492 * macfns.c (x_set_mouse_color): Get rif from the frame.
20493 (x_set_tool_bar_lines): Don't use updating_frame.
20494 (mac_window): Add 2 new parameters for consistency with other systems.
20495 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20496 frame parameters following what is done in X11 and w32. Don't use
20497 FRAME_MAC_DISPLAY_INFO.
20498 (Fx_open_connection, start_hourglass): Remove window-system check.
20499 (x_create_tip_frame): Get the keyboard from the terminal.
20500
20501 * macmenu.c: Reorder includes.
20502 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20503
20504 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20505 terminal parameter.
20506 (x_clear_frame): Add a frame parameter.
20507 (note_mouse_movement): Get rif from the frame.
20508 (mac_term_init): Initialize the terminal.
20509 (mac_initialize): Make static and move terminal initialization ...
20510 (mac_create_terminal): ... to this new function.
20511
20512 * macterm.h (struct mac_display_info): Add terminal.
20513 (mac_initialize): Delete declaration.
20514
20515 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20516
20517 * sysdep.c: Comment out text after #endif.
20518
20519 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20520 is defined. Better initialize ttys in windows. Use terminal
20521 specific mouse_position_hook.
20522
20523 * termhooks.h (union display_info): Add mac_display_info.
20524
20525 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20526 Set the default minibuffer frame, window_system and the rest of the
20527 frame parameters following what is done in X11.
20528
20529 * w32term.c (w32_initialize): Make static.
20530
20531 * xselect.c (x_handle_selection_clear): Only access
20532 terminal->kboard when MULTI_KBOARD is defined.
20533
20534 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20535 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20536
205372007-08-29 Jason Rumney <jasonr@gnu.org>
20538
20539 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20540 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20541
20542 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20543 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20544
20545 * keyboard.c (restore_kboard_configuration): Only define when
20546 MULTI_KBOARD defined.
20547
20548 * makefile.w32-in: Update dependancies from Makefile.in.
20549 (OBJ1): Add terminal.$(O)
20550
20551 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20552 Don't define function body.
20553 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20554
20555 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20556
20557 * w32.c (request_sigio, unrequest_sigio): Remove.
20558
20559 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20560 (w32con_clear_frame, w32con_clear_end_of_line)
20561 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20562 (w32con_delete_glyphs, w32con_set_terminal_window)
20563 (scroll_line, w32_sys_ring_bell): Add frame arg.
20564 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20565 Add terminal arg.
20566 (PICK_FRAME): Remove.
20567 (w32con_write_glyphs): Use frame specific terminal coding.
20568 (one_and_only_w32cons): New global variable.
20569 (initialize_w32_display): Use it for storing hooks.
20570 (create_w32cons_output): New function.
20571
20572 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20573 arg a frame.
20574
20575 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20576 Set window_system.
20577 (x_set_tool_bar_lines): Don't use updating_frame.
20578 (Fx_create_frame): Set terminal and ref count.
20579 (Fx_open_connection): Remove window-system check.
20580
20581 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20582
20583 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20584 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20585 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20586 Add frame arg.
20587 (x_delete_terminal, w32_create_terminal): New functions.
20588 (w32_term_init): Create a terminal.
20589 (w32_initialize): Move terminal specific initialization to
20590 w32_create_terminal.
20591
20592 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20593 (w32_clear_rect, w32_clear_area): Use background from frame.
20594 (w32_display_info): Add terminal.
20595 (w32_sys_ring_bell, x_delete_display): Declare here.
20596
20597 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20598
20599 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20600
206012007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20602
20603 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20604 Fix get_named_tty calls for the controlling tty.
20605
206062007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20607
194d44e7 20608 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20609
206102007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20611
20612 * term.c (tty_insert_glyphs): Add missing first parameter.
20613
206142007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20615
20616 * buffer.c (Fbuffer_list, Fbury_buffer):
20617 Take frame->buried_buffer_list into account.
20618
20619 * cm.c (current_tty): New variable, for cmputc().
20620 (cmputc): Use it.
20621 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20622 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20623 (cmgoto): Add tty parameter. Pass it on to calccost().
20624 Use emacs_tputs() instead of tputs().
20625
20626 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20627 tputs().
20628 (current_tty): New variable, for cmputc().
20629 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20630
20631 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20632 (internal_condition_case, internal_condition_case_1)
20633 (internal_condition_case_2): Don't abort when x_catching_errors.
20634
20635 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20636 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20637 prevent crashes caused by bogus longjmps in read_char.
20638
20639 * keymap.h (Fset_keymap_parent): Add EXFUN.
20640
20641 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20642 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20643 Remove redundant definition.
20644
20645 * macfns.c (x_set_mouse_color, x_make_gc):
20646 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20647
20648 * w32term.c (x_free_frame_resources):
20649 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20650 (w32_initialize): Use the accessor macros for terminal characteristics.
20651
20652 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20653 Use the accessor macros for terminal characteristics.
20654 * msdos.c (internal_terminal_init): Use the accessor macros for
20655 terminal characteristics.
20656 (ScreenVisualBell, internal_terminal_init):
20657 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20658
20659 * termopts.h (no_redraw_on_reenter): Declare.
20660
20661 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20662 (mark_terminals, mark_ttys): Declare.
20663 (Fgarbage_collect): Call them.
20664 (mark_object): Mark buried_buffer_list.
20665
20666 * prefix-args.c: Include stdlib.h for exit.
20667
20668 * syssignal.h: Add comment.
20669
20670 * indent.c: Include stdio.h.
20671
20672 * window.h (Vinitial_window_system): Declare.
20673 (Vwindow_system): Delete declaration.
20674
20675 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20676
20677 * image.c (lookup_image): Don't initialize `c' until the xasserts
20678 have been run.
20679
20680 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20681 FRAME_FOREGROUND_PIXEL.
20682
20683 * print.c (print_preprocess): Don't lose print_depth levels while
20684 iterating.
20685
20686 * widget.c (update_from_various_frame_slots):
20687 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20688
20689 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20690 frames.
20691 (window_internal_height): Remove bogus make_number call.
20692 (init_window_once): Call make_terminal_frame with two zero parameters.
20693
20694 * fileio.c (Fread_file_name): Update comment.
20695
20696 * callint.c (Fcall_interactively):
20697 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20698 Make sure it is correctly unwound.
20699
20700 * xsmfns.c (x_session_close): New function.
20701
20702 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20703 Delete declarations.
20704
20705 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20706 (x_output): Remove background_pixel and foreground_pixel fields.
20707 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20708 (x_delete_device, x_session_close): Declare.
20709
20710 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20711 (read_filtered_event): Call `read_char' with a local
20712 `wrong_kboard_jmpbuf'.
20713
20714 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20715 Don't call single_kboard_state. Use FRAME_RIF.
20716
20717 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20718 systems.
20719
20720 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20721 (Fframe_with_environment, Fset_input_meta_mode)
20722 (Fset_quit_char): EXFUN.
20723 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20724 (init_sys_modes, reset_sys_modes): Update prototypes.
20725 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20726
20727 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20728 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20729 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20730 Delete declarations.
20731 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20732 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20733 New declarations.
20734
20735 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20736 already does that during init_display(). Call syms_of_keymap
20737 before syms_of_keyboard. Call `syms_of_terminal'.
20738 Call set_initial_environment, not set_process_environment.
20739 (shut_down_emacs): Call reset_all_sys_modes() instead of
20740 reset_sys_modes().
20741
20742 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20743 (internal_resolve_face_name, resolve_face_name_error): New functions.
20744 (resolve_face_name): Protect against loops and errors thrown by Fget.
20745 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20746 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20747
20748 * scroll.c: Replace CURTTY() with local variables throughout the
20749 file (where applicable).
20750 (calculate_scrolling, calculate_direct_scrolling)
20751 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20752 characteristics.
20753
20754 * keymap.c (Vfunction_key_map): Remove.
20755 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20756 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20757 (Vkey_translation_map): Remove.
20758 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20759 (Fdescribe_buffer_bindings)
20760 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20761 Update for terminal-local key-translation-map.
20762
20763 * Makefile.in (callproc.o): Update dependencies.
20764 (lisp, shortlisp): Add termdev.elc.
20765 (obj): Add terminal.o.
20766 (terminal.o): Add dependencies.
20767 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20768 (data.o, fns.o): Add termhooks.h dependency.
20769 (SOME_MACHINE_LISP): Add dnd.elc.
20770 (minibuf.o): Fix typo.
20771 Update dependencies.
20772
20773 * data.c (do_symval_forwarding, store_symval_forwarding)
20774 (find_symbol_value): Use the selected frame's keyboard, not
20775 current_kboard.
20776
20777 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20778 Vwindow_system.
20779
20780 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20781 Fmenu_bar_open.
20782 (syms_of_xmenu): Update defsubr.
20783 (mouse_position_for_popup, Fx_popup_menu)
20784 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20785 (set_frame_menubar, free_frame_menubar)
b97439ce 20786 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20787 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20788 an X frame.
20789
20790 * xselect.c (x_own_selection): Abort if not an X frame.
20791 (some_frame_on_display): Check if it is an X frame.
20792 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20793
20794 * coding.c: Include frame.h and termhooks.h.
20795 (terminal_coding, keyboard_coding): Delete.
20796 (Fset_terminal_coding_system_internal)
20797 (Fset_keyboard_coding_system_internal)
20798 (Fkeyboard_coding_system)
20799 (Fterminal_coding_system): Add a terminal parameter.
20800 Get terminal_coding from the terminal.
20801 (init_coding_once): Don't call setup_coding_system here.
20802
20803 * dispextern.h (set_scroll_region, turn_off_insert)
20804 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20805 (tty_clear_end_of_line, tty_setup_colors)
20806 (delete_tty, updating_frame)
20807 (produce_special_glyphs, produce_glyphs, write_glyphs)
20808 (insert_glyphs): Remove.
20809 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20810 (tty_turn_off_highlight, get_tty_size): Add declaration.
20811 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20812
20813 * frame.h (enum output_method): Add output_initial.
20814 (struct x_output): Delete.
20815 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20816 Access foreground_pixel and background_pixel directly from the frame.
20817 (tty_display): Delete.
20818 (struct frame): Add buried_buffer_list, foreground_pixel,
20819 background_pixel and terminal. Delete kboard.
20820 (union output_data): Add tty.
20821 (FRAME_KBOARD): Get the kboard from the terminal.
20822 (FRAME_INITIAL_P): New macro.
20823 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20824 (Qterm_environment_variable, Qdisplay_environment_variable)
20825 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20826 New declarations.
20827
20828 * termchar.h (tty_output, tty_display_info): New structures.
20829 (tty_list): Declare.
20830 (FRAME_TTY, CURTTY): New macros.
20831 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20832 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20833 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20834 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20835
20836 * callproc.c: Include frame.h and termhooks.h, for terminal
20837 parameters.
20838 (add_env): New function.
20839 (child_setup): Use it.
20840 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20841 (getenv_internal): Fix get_terminal_param call.
20842 (Fgetenv_internal, egetenv): Update doc.
20843 (syms_of_callproc): Initialize Vprocess_environment to nil.
20844 Register and initialize them. Remove obsolete defvars. Update doc
20845 strings.
20846 (child_setup): Handle Vlocal_environment_variables.
20847 (getenv_internal): Add terminal parameter.
20848 Handle Vlocal_environment_variables.
20849 (Fgetenv_internal): Add terminal parameter.
20850 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20851 environment in a frame (not terminal) parameter. Update doc strings.
20852 (set_initial_environment): Rename from set_global_environment.
20853 Store Emacs environment in initial frame parameter.
20854
20855 * xdisp.c (redisplay_internal): Update references to
20856 `previous_terminal_frame'.
20857 (display_mode_line, Fformat_mode_line): Replace calls to
20858 `push_frame_kboard' with `push_kboard'.
20859 (get_glyph_string_clip_rects): Add extra parentheses and
20860 braces to prevent compiler warnings.
20861 (calc_pixel_width_or_height): Add xassert to check that the
20862 frame is alive. Don't call `lookup_image' on a termcap frame.
20863 (message2_nolog, message3_nolog, redisplay_internal)
20864 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20865 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20866 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20867 (Fx_display_pixel_width, Fx_display_pixel_height)
20868 (Fx_display_planes, Fx_display_color_cells)
20869 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20870 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20871 (Fx_display_backing_store, Fx_display_visual_class)
20872 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20873 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20874
20875 * xfns.c (x_set_foreground_color x_set_background_color)
20876 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20877 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20878 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20879 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20880 terminal that is being deleted.
20881 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20882 frame parameter, and make sure it overrides any user-supplied setting.
20883 (Fx_close_connection, Fx_synchronize): Unify argument names with
20884 the rest of the DEFUNs.
20885
20886 * dispnew.c (Fsend_string_to_terminal): Update call to
20887 `get_tty_terminal'.
20888 (Fredraw_frame, Fsend_string_to_terminal)
20889 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20890 FRAME_TERMCAP_P and FRAME_TTY.
20891 (window_change_signal): Don't believe width/height values that are
20892 impossibly small.
20893 (Vinitial_window_system): Rename from Vwindow_system.
20894 (termscript, Wcm, rif): Delete.
20895
20896 * termhooks.h (struct terminal): New struct containing the
20897 previously global text display hooks and new members NAME,
20898 DELETED and PARAM_ALIST.
20899 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20900 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20901 (FRAME_RIF): New macros.
20902 (get_terminal_param, get_device): New declarations.
20903 (termscript): Delete declaration.
20904
20905 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20906 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20907 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20908 FRAME_FOREGROUND_PIXEL.
20909 (x_fully_uncatch_errors): Disable definition.
20910 (x_scroll_bar_expose): Fix reference to foreground pixel.
20911 (XTread_socket): Disable loop on all X displays.
20912 (x_delete_terminal): Don't set terminal->deleted and let
20913 delete_terminal delete the frames on the terminal.
20914 (x_delete_display): Doc update to reflect changes in
20915 delete_terminal.
20916 (x_display_info) <terminal>: Move member earlier in the struct.
20917 (deleting_tty): Remove old variable.
20918 (Fsuspend_tty): Call clear_tty_hooks.
20919 (Fresume_tty, init_tty): Call set_tty_hooks.
20920 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20921 errors on X frames.
20922 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20923 (handle_one_xevent): Initialize `f' to NULL.
20924 (x_delete_terminal, x_create_terminal): New functions.
20925 (XTset_terminal_modes, XTreset_terminal_modes)
20926 (XTread_socket, x_connection_closed, x_term_init)
20927 (x_term_init, x_delete_display): Add terminal parameter.
20928 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20929 X connections.
20930
20931 * frame.c: Include termchar.h.
20932 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20933 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20934 (Qdisplay_environment_variable): New vars.
20935 (Fframep): Deal with output_initial.
20936 (Fframe-live-p): Doc fix.
20937 (Fwindow-system): New function.
20938 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20939 (make_terminal_frame): Don't create frames on a terminal that is
20940 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20941 (store_frame_param): Check for found_for_frame before calling XFRAME.
20942 (Fmake_terminal_frame): Handle NULL tty names correctly.
20943 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20944 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20945 frames to refer to a deleted frame in their 'environment parameter.
20946 (Fframe_with_environment): New function.
20947 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20948 (get_future_frame_param): New function.
20949 (Fmake_terminal_frame): Use it.
20950 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20951
20952 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20953 * sysdep.c (reset_sys_modes): Update for renames.
20954
20955 * keyboard.c (tty_read_avail_input): New function.
20956 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20957 (syms_of_keyboard): Defsubr them.
20958 (Fset_input_meta_mode, Fset_quit_char): New functions.
20959 (Fset_input_mode): Split to above functions.
20960 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20961 parameter. Use it in call to `read_char'.
20962 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20963 Set wrong_kboard_jmpbuf correctly in recursive calls.
20964 Use current_kboard to access Vkeyboard_translate_table.
20965 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20966 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20967 Update longjmp invocations. Remember the original current_kboard,
20968 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20969 changes it. Comment out unnecessary calls to
20970 `record_single_kboard_state' and `any_kboard_state'.
20971 Update recursive calls.
20972 (wrong_kboard_jmpbuf): Remove global variable.
20973 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20974 Handle deleted interrupted_kboards correctly; that is a legal
20975 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20976 and read_char calls. Abort if interrupted_kboard died in read_char.
20977 (any_kboard_state, single_kboard_state)
20978 (push_frame_kboard): Remove function.
20979 (pop_kboard): Switch out of single_kboard mode if the kboard has
20980 been deleted. Remove unused variable. Help debugging by not
20981 changing current_kboard unnecessarily. Set current_kboard to the
20982 kboard of the selected frame when the stored kboard object has
20983 been deleted before pop_kboard.
20984 (temporarily_switch_to_single_kboard): Change first parameter to a
20985 frame pointer. Throw an error when caller wants to change kboards
20986 while in single_kboard mode. Don't push_kboard if we weren't in
20987 single kboard state. Don't pop_kboard if we popped into any
20988 kboard state.
20989 (restore_kboard_configuration): Abort if pop_kboard changed the
20990 kboard in single_kboard mode. Call pop_kboard only after setting
20991 up single_kboard mode.
20992 (Frecursive_edit): Switch to single_kboard mode only in nested
20993 command loops.
20994 (cmd_error, command_loop, command_loop_1, timer_check):
20995 Comment out unnecessary call to `any_kboard_state' and
20996 `record_single_kboard_state'.
20997 (delete_kboard): Exit single_kboard mode if we have just deleted
20998 that kboard. Use FRAME_KBOARD.
20999 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21000 `fatal_error_signal'.
21001 (record_single_kboard_state): Don't push_kboard if we weren't in
21002 single kboard state. Don't pop_kboard if we popped into any
21003 kboard state.
21004 (push_frame_kboard): Rename to push_kboard.
21005 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21006 (read_avail_input): Read input from all terminals.
21007 (mark_kboards): Also mark Vkeyboard_translate_table.
21008 (kbd_buffer_store_event_hold): Simplify condition.
21009 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21010 (Vkeyboard_translate_table): Move to struct kboard.
21011 (init_kboard): Initialize Vkeyboard_translate_table.
21012 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21013 Vkeyboard_translate_table. Update doc strings. Update docs of
21014 local-function-key-map and function-key-map.
21015
21016 * terminal.c: New file.
21017
21018 * term.c: Include errno.h.
21019 (Vring_bell_function, device_list, initial_device)
21020 (next_device_id, ring_bell, update_begin, update_end)
21021 (set_terminal_window, cursor_to, raw_cursor_to)
21022 (clear_to_end, clear_frame, clear_end_of_line)
21023 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21024 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21025 (syms_of_term): Move their initialization to terminal.c.
21026 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21027 (Ftty_display_color_cells)
21028 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21029 (clear_tty_hooks, set_tty_hooks)
21030 (init_tty, maybe_fatal): New functions.
21031 (Ftty_type): Return nil if terminal is not on a tty instead of
21032 throwing an error. Doc update.
21033 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21034 Doc update. Initialize new subrs and variables.
21035 (delete_tty): Use terminal->deleted.
21036 (tty_set_terminal_modes): Rename from set_terminal_modes.
21037 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21038 (set_scroll_region): Rename to `tty_set_scroll_region'.
21039 (turn_on_insert): Rename to `tty_turn_on_insert'.
21040 (turn_off_insert): Rename to `tty_turn_off_insert'.
21041 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21042 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21043 (toggle_highligh): Rename to `tty_toggle_highlight'.
21044 (background_highlight): Rename to `tty_background_highlight'.
21045 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21046 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21047 (tty_set_scroll_region, tty_background_highlight)
21048 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21049 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21050 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21051 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21052 Add static modifier.
21053 (tty_reset_terminal_modes, tty_set_terminal_window)
21054 (tty_set_scroll_region, tty_background_highlight)
21055 (tty_highlight_if_desired, tty_cursor_to)
21056 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21057 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21058 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21059 renames.
21060
210612007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21062
21063 * keyboard.c: Qrtl is new.
21064 (parse_tool_bar_item): Handle :rtl keyword.
21065 (syms_of_keyboard): Intern :rtl keyword.
21066
21067 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21068
21069 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21070 so no Lisp code is executed.
21071 (file_for_image, find_rtl_image): New functions.
21072 (xg_get_image_for_pixmap): Use file_for_image.
21073 (update_frame_tool_bar): If direction is RTL, use RTL image if
21074 defined. Use Gtk stock images if defined.
21075
210762007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21077
21078 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21079 for nonexistent or zero-width glyph in composition glyph.
21080
210812007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21082
21083 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21084
21085 * xdisp.c (Finvisible_p): New function.
21086 (syms_of_xdisp): defsubr it.
21087
210882007-08-24 Juanma Barranquero <lekktu@gmail.com>
21089
21090 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21091 Doc fixes.
21092
210932007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21094
21095 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21096
210972007-08-24 Martin Rudalics <rudalics@gmx.at>
21098
21099 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21100 whether decoding has modified buffer contents.
21101
211022007-08-24 Jason Rumney <jasonr@gnu.org>
21103
21104 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21105 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21106 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21107 (init_svg_functions) [HAVE_NTGUI]: New function.
21108 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21109 (svg_load_image): Use them.
21110 (svg_load_image) [HAVE_NTGUI]: Implement background.
21111
211122007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21113
21114 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21115 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21116 (LIBX): Remove @RSVG_LIBS@.
21117 (LIBES): Add $(RSVG_LIBS).
21118
21119 * image.c (svg_load_image): Blend with specified background if exists.
21120 Use IMAGE_BACKGROUND. Add Mac OS Support.
21121
21122 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21123 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21124 Remove macros.
21125 [MAC_OSX] (socket_callback): Do nothing.
21126 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21127 ReceiveNextEvent.
21128 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21129 socket_callback.
21130 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21131
211322007-08-22 Glenn Morris <rgm@gnu.org>
21133
21134 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21135
211362007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21137
21138 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21139
21140 * image.c: Add support for SVG images. Some additional comments
21141 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21142 (svg_image_p): New function to test for SVG image.
21143 (svg_load): New function to load SVG image.
21144 (svg_load_image): New function, helper for svg_load.
21145 (Qsvg): New Lisp_object.
21146 (svg_keyword_index): New enum.
21147 (svg_format): New static `image_keyword' struct.
21148 (svg_type): New static `image_type' struct.
21149 (librsvg/rsvg.h): Include it.
21150
211512007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21152
21153 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21154
211552007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21156
21157 * lread.c (Qold_style_backquotes): New var.
21158 (syms_of_lread): Init and staticpro it.
21159 (load_warn_old_style_backquotes): New fun.
21160 (Fload): Use them to warn about old style backquotes.
21161 (end_of_file_error, Fload): Remove unused vars.
21162
21163 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21164
21165 * lread.c (Vold_style_backquotes): New var.
21166 (syms_of_lread): Init and export it to Elisp.
21167 (read1): Set it when we find an old-style (back)quote.
21168
211692007-08-22 Jason Rumney <jasonr@gnu.org>
21170
21171 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21172
211732007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21174
21175 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21176
211772007-08-19 Richard Stallman <rms@gnu.org>
21178
21179 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21180
211812007-08-19 Andreas Schwab <schwab@suse.de>
21182
21183 * alloc.c (pure): Round PURESIZE up.
21184
211852007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21186
21187 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21188 active frame.
21189
211902007-08-16 Richard Stallman <rms@gnu.org>
21191
21192 * eval.c (Fcommandp): Add parens to clarify.
21193
21194 * minibuf.c (Fall_completions): Use enum for type of table.
21195
21196 * emacs.c (USAGE2): Improve text.
21197
211982007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21199
21200 * term.c (tty_default_color_capabilities): Declare static
21201 variables in file scope, to avoid HPUX compiler problem.
21202
212032007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21204
21205 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21206 to gtk_toolbar_insert.
21207
212082007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21209
21210 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21211
21212 * insdel.c (reset_var_on_error): New fun.
21213 (signal_before_change, signal_after_change):
21214 Use it to reset (after|before)-change-functions to nil in case of error.
21215 Bind inhibit-modification-hooks to t.
21216 Don't bind (after|before)-change-functions to nil while they run.
21217
212182007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21219
21220 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21221 filling pixmap with stippled background.
21222
212232007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21224
21225 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21226 Don't use invisible frame as parent window for repositioning.
21227
212282007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21229
21230 * print.c (new_backquote_output): Rename from old_backquote_output.
21231 (print): Inverse its logic (according to its name) so as to match the
21232 behavior of new_backquote_flag in lread.c.
21233
212342007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21235
21236 * gmalloc.c (posix_memalign): New function.
21237
21238 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21239 ActivateControl/DeactivateControl here.
21240 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21241 frame-notice-user-settings is non-nil.
21242 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21243 for kEventParamFMFontStyle.
21244 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21245 mac_pass_command_to_system and mac_pass_control_to_system here.
21246 (XTread_socket): Call ActivateControl/DeactivateControl here.
21247 (XTread_socket) [TARGET_API_MAC_CARBON]:
21248 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21249 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21250 for window repositioning.
21251
212522007-08-08 Glenn Morris <rgm@gnu.org>
21253
21254 * Replace `iff' in doc-strings and comments.
21255
212562007-08-07 Chong Yidong <cyd@stupidchicken.com>
21257
21258 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21259
212602007-08-07 Martin Rudalics <rudalics@gmx.at>
21261
21262 * fileio.c (Finsert_file_contents): Run format-decode and
21263 after_insert_file_functions on entire buffer when REPLACE is
21264 non-nil and inhibit modification_hooks and point_motion_hooks.
21265 For consistency, run after_insert_file_functions iff something
21266 got inserted. Move signal_after_change and update_compositions
21267 after code running after_insert_file_functions. Make sure that
21268 undo_list doesn't record intermediate steps of the decoding process.
21269
212702007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21271
21272 * emacs.c (main)
21273 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21274 Call malloc_enable_thread on interactive startup.
21275
21276 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21277 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21278 [USE_PTHREAD]: Conditionalize with it.
21279 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21280 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21281 New functions.
21282
212832007-08-06 Chong Yidong <cyd@stupidchicken.com>
21284
21285 * xdisp.c (redisplay_window): When restoring original buffer
21286 position, make sure it is still valid.
21287
21288 * image.c (png_load): Ignore png-supplied background color.
21289
212902007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21291
21292 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21293 Use kCFAbsoluteTimeIntervalSince1970.
21294
21295 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21296 New variable.
21297 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21298 event loop should be quit.
21299 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21300 Quit dialog event loop if quit_dialog_event_loop is set.
21301
21302 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21303 (Selection): New typedef. Use instead of ScrapRef.
21304 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21305 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21306 (mac_clear_selection): Rename from clear_scrap.
21307 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21308 scrap_has_target_type. All uses changed.
21309 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21310 (mac_selection_has_target_p): New functions.
21311 (mac_put_selection_value): Rename from put_scrap_string.
21312 (mac_get_selection_value): Rename from get_scrap_string.
21313 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21314 (put_scrap_private_timestamp, scrap_has_target_type)
21315 (get_scrap_private_timestamp): Remove functions.
21316 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21317 (x_own_selection, x_get_local_selection):
21318 Use mac_valid_selection_value_p.
21319 (x_own_selection): Don't use put_scrap_private_timestamp.
21320 Record OWNERSHIP-INFO into Vselection_alist instead.
21321 (x_get_local_selection): Don't check type if request is local.
21322 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21323 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21324
213252007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21326
21327 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21328 add comment explaining why.
21329
213302007-08-03 Richard Stallman <rms@gnu.org>
21331
21332 * fileio.c (Fvisited_file_modtime): Use make_time.
21333
213342007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21335
21336 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21337 build.
21338
213392007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21340
21341 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21342
213432007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21344
21345 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21346
213472007-07-30 Richard Stallman <rms@gnu.org>
21348
21349 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21350
213512007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21352
21353 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21354
213552007-07-28 Nick Roberts <nickrob@snap.net.nz>
21356
21357 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21358 remote default-directory.
21359
21360 * buffer.c (mode-line-format): Update doc string.
21361
213622007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21363
21364 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21365 scroll bar gap.
21366 (x_scroll_bar_create): Set bar->fringe_extended_p.
21367 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21368 on frame edge. Check fringe background extension. Don't clear
21369 extended fringe background area.
21370
21371 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21372 (w32_fill_area): Enclose multiple statements with do ... while (0).
21373
21374 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21375 Extend fringe background to scroll bar gap.
21376 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21377 Set bar->fringe_extended_p.
21378 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21379 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21380 background extension. Don't clear extended fringe background area.
21381
21382 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21383 New member fringe_extended_p.
21384
213852007-07-25 Glenn Morris <rgm@gnu.org>
21386
21387 * Relicense all FSF files to GPLv3 or later.
21388
21389 * COPYING: Switch to GPLv3.
21390
213912007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21392
21393 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21394
21395 * data.c (Finteractive_form): Check for the presence of an
21396 `interactive-form' symbol property more thoroughly.
21397
21398 * data.c (Finteractive_form): Use an `interactive-form' property if
21399 present, analogous to the function-documentation property.
21400
214012007-07-24 Jason Rumney <jasonr@gnu.org>
21402
21403 * w32fns.c (x_real_positions): Get real position from OS instead of
21404 calculating it.
21405
214062007-07-23 Jason Rumney <jasonr@gnu.org>
21407
21408 * filelock.c (current_lock_owner): Allow for @ sign in username.
21409
214102007-07-22 Nick Roberts <nickrob@snap.net.nz>
21411
21412 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21413 remote default-directory.
21414
21415 * buffer.c (mode-line-format): Describe above case in doc string.
21416
214172007-07-20 Eli Zaretskii <eliz@gnu.org>
21418
21419 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21420 Define if not defined.
21421
214222007-07-18 Jason Rumney <jasonr@gnu.org>
21423
21424 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21425
214262007-07-18 Richard Stallman <rms@gnu.org>
21427
21428 * data.c (Fsetq_default): Doc fix.
21429
21430 * eval.c (Fsetq): Doc fix.
21431
214322007-07-18 Juanma Barranquero <lekktu@gmail.com>
21433
21434 * coding.c (Ffind_operation_coding_system):
21435 * eval.c (For, Fand): Doc fixes.
21436 Reported by Johan Bockgård.
21437
214382007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21439
21440 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21441
21442 * xterm.h: Declare x_ewmh_activate_frame.
21443
21444 * xterm.c (x_ewmh_activate_frame): New function.
21445 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21446
214472007-07-17 Martin Rudalics <rudalics@gmx.at>
21448
21449 * window.c (Fdisplay_buffer): If largest or LRU window is the
21450 only window, split it even if it is not eligible for splitting.
21451 This restores the original behavior broken by the 2007-07-15
21452 change.
21453
214542007-07-17 Glenn Morris <rgm@gnu.org>
21455
21456 * abbrev.c (abbrev_check_chars): New function.
21457 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21458 Call abbrev_check_chars to check abbrev characters are word
21459 constituents. Doc fix.
21460
214612007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21462
21463 * process.c (Fstart_process, Fmake_network_process)
21464 (read_process_output): Fix up last changes.
21465
214662007-07-16 Eli Zaretskii <eliz@gnu.org>
21467
21468 * makefile.w32-in (clean): Don't delete *~.
21469
214702007-07-16 Andreas Schwab <schwab@suse.de>
21471
21472 * window.c (Fdisplay_buffer): Use NILP.
21473 (Fset_window_scroll_bars): Likewise.
21474
214752007-07-15 Martin Rudalics <rudalics@gmx.at>
21476
21477 * window.c (window_min_size_2): New function.
21478 (window_min_size_1, size_window, Fdisplay_buffer)
21479 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21480 windows without mode- or header-lines when window-min-height is
21481 too small.
21482 (size_window): Reset nodelete_p after testing it, following an
21483 earlier note by Kim F. Storm.
21484 (display_buffer): Do not set split_height_threshold to twice the
21485 value of window_min_height to avoid changing the value of a
21486 customizable variable. Rather explicitly check whether the
21487 height of the window that shall be splitted is at least as large
21488 as split_height_threshold.
21489 (Fwindow_full_width_p): New defun.
21490 (syms_of_window): Defsubr it.
21491
21492 * window.h: Add EXFUN for Fwindow_full_width_p.
21493
214942007-07-14 Jason Rumney <jasonr@gnu.org>
21495
21496 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21497
214982007-07-14 Richard Stallman <rms@gnu.org>
21499
21500 * eval.c (maybe_call_debugger): New function.
21501 (find_handler_clause): Use maybe_call_debugger.
21502 Call it when the handler says `debug'.
21503 Eliminate DEBUGGER_VALUE_PTR.
21504 (Fsignal): Eliminate debugger_value.
21505 (Qdebug): New variable.
21506 (syms_of_eval): Initialize it.
21507
215082007-07-14 Juanma Barranquero <lekktu@gmail.com>
21509
21510 * eval.c (Fprogn):
21511 * keyboard.c (Ftrack_mouse):
21512 * print.c (Fwith_output_to_temp_buffer):
21513 * window.c (Fsave_window_excursion): Doc fix.
21514
215152007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21516
21517 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21518
215192007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21520
21521 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21522 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21523 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21524 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21525 Remove unused encoding_carryover.
21526 * process.c: Adjust all functions accordingly.
21527
215282007-07-12 Richard Stallman <rms@gnu.org>
21529
21530 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21531
215322007-07-11 Jason Rumney <jasonr@gnu.org>
21533
21534 * makefile.w32-in (LIBS): Include OLE32.
21535
21536 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21537 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21538
215392007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21540
21541 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21542 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21543 from a Lisp_Object into a bare pointer.
21544 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21545 Adjust the code correspondingly.
21546
21547 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21548
21549 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21550 (term_show_mouse_face): Remove unused var `j'.
21551 (handle_one_term_event): Remove unused vars `i' and `j'.
21552 Don't cast return value of ttyname since it's not necessary.
21553
215542007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21555
21556 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21557 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21558
21559 * fns.c (map_char_table): Use an array of int for `indices' rather than
21560 an array of Lisp_Objects (which are only ever integers anyway).
21561 (Fmap_char_table): Update caller.
21562 * lisp.h: Update prototype.
21563 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21564 * fontset.c (Ffontset_info):
21565 * casetab.c (set_case_table): Update callers.
21566
21567 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21568
21569 * keymap.c (struct accessible_keymaps_data)
21570 (struct where_is_internal_data): New structures.
21571 (accessible_keymaps_1, where_is_internal_1): Use them to change
21572 interface to adhere to the one used by map_keymap.
21573 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21574 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21575
21576 * keymap.h (map_keymap_function_t): More informative prototype.
21577
215782007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21579
21580 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21581 (looking_at_1): Don't change search_regs and last_thing_searched
21582 if `inhibit-changing-match-data' is non-nil.
21583 (string_match_1, search_buffer, set_search_regs): Likewise.
21584 (syms_of_search): Add Lisp level definition for
21585 `inhibit-changing-match-data' and set it to nil.
21586 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21587 start and end of the match, instead of using values in search_regs.
21588
215892007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21590
21591 * minibuf.c (Fcompleting_read): New value `confirm-only'
21592 for `require-match'.
21593
215942007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21595
21596 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21597 part of the 2007-06-27 change to syms_of_fileio.
21598
215992007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21600
21601 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21602 Check WINDOWP before using XWINDOW. Consolidate return statements.
21603
216042007-06-27 Richard Stallman <rms@gnu.org>
21605
21606 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21607
216082007-06-27 Juanma Barranquero <lekktu@gmail.com>
21609
21610 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21611
216122007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21613
21614 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21615 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21616 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21617 (_free_internal, memalign): Use them.
21618 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21619 Initialize to PTHREAD_MUTEX_INITIALIZER.
21620 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21621 (morecore_nolock): Rename from morecore. All uses changed.
21622 Use only nolock versions of internal allocation functions.
21623 (_malloc_internal_nolock, _realloc_internal_nolock)
21624 (_free_internal_nolock): New functions created from
21625 _malloc_internal, _realloc_internal, and _free_internal.
21626 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21627 Copy hook value to automatic variable before its use.
21628 (memalign): Copy hook value to automatic variable before its use.
21629
216302007-06-26 Kenichi Handa <handa@m17n.org>
21631
21632 * coding.c (Ffind_operation_coding_system): Docstring improved.
21633 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21634
216352007-06-25 David Kastrup <dak@gnu.org>
21636
21637 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21638 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21639 cater for additional parameter.
21640
21641 * keymap.h: Adjust number of parameters to `current-active-maps'.
21642
21643 * doc.c (Fsubstitute_command_keys): Adjust call of
21644 `current-active-maps'.
21645
216462007-06-25 David Kastrup <dak@gnu.org>
21647
21648 * callint.c (Fcall_interactively): Make the parsing of interactive
21649 specs somewhat more readable.
21650
216512007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21652
21653 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21654 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21655 if extended background has already been filled.
21656
216572007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21658
21659 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21660 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21661
21662 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21663 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21664 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21665 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21666 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21667 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21668 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21669 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21670 Run timers during dialog popup.
21671 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21672
216732007-06-21 Jason Rumney <jasonr@gnu.org>
21674
21675 * image.c (convert_mono_to_color_image): Swap fore and background.
21676
216772007-06-20 Jason Rumney <jasonr@gnu.org>
21678
21679 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21680 (w32_free_bdf_font): Unmap memory not handle.
21681
216822007-06-20 Sam Steingold <sds@gnu.org>
21683
21684 * gmalloc.c (__morecore): Fix the declaration to comply with the
21685 definition.
21686
216872007-06-20 Juanma Barranquero <lekktu@gmail.com>
21688
21689 * w32term.c (w32_delete_display): Remove leftover declaration.
21690 (w32_define_cursor, w32_initialize): Make static.
21691
21692 * w32.c (_wsa_errlist): Fix typo in error message.
21693 (init_environment): Ignore any environment variable from the
21694 registry having a null value.
21695
216962007-06-20 Glenn Morris <rgm@gnu.org>
21697
21698 * Makefile.in (LIBGIF): Default to -lgif.
21699
217002007-06-17 Jason Rumney <jasonr@gnu.org>
21701
21702 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21703 unicode strings.
21704
217052007-06-16 Juanma Barranquero <lekktu@gmail.com>
21706
21707 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21708 Fix typo in docstring.
21709
217102007-06-16 Eli Zaretskii <eliz@gnu.org>
21711
21712 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21713 and their keybindings.
21714
217152007-06-15 Chong Yidong <cyd@stupidchicken.com>
21716
21717 * composite.c (update_compositions): Fix last fix.
21718
217192007-06-14 Jason Rumney <jasonr@gnu.org>
21720
21721 * w32.c (get_process_times_fn): New function pointer.
21722 (globals_of_w32): Intialize it if present in kernel32.dll.
21723 (w32_get_internal_run_time): New function.
21724
21725 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21726
217272007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21728
21729 * composite.c (update_compositions): Check the validness of
21730 compositions.
21731
217322007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21733
21734 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21735 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21736
21737 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21738 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21739
21740 * macgui.h (USE_MAC_TOOLBAR): New define.
21741
21742 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21743 Return immediately unless popup is activated.
21744
21745 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21746 background to scroll bar gap.
21747 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21748 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21749 scroll bars on frame edge. Check fringe background extension.
21750 Don't clear extended fringe background area.
21751 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21752 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21753 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21754 [USE_MAC_TOOLBAR]: New macros.
21755 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21756 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21757 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21758 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21759 [USE_MAC_TOOLBAR]: New functions.
21760 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21761 manually if previous repositioning has failed.
21762 (mac_handle_keyboard_event): Use precomputed event kind.
21763 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21764 as tool bar item click. Handle mouse movement over tool bar items.
21765
21766 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21767 toolbar_win_gravity.
21768 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21769 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21770 Add externs.
21771
21772 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21773 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21774
217752007-06-14 Chong Yidong <cyd@stupidchicken.com>
21776
21777 * image.c (search_image_cache): Remove unused variable.
21778
217792007-06-13 Chong Yidong <cyd@stupidchicken.com>
21780
21781 * xfns.c, xmenu.c: Link to xaw3d if available.
21782
217832007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21784
21785 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21786 frame_foreground and frame_background.
21787
21788 * image.c (lookup_image): Save frame foreground and background colors.
21789 (search_image_cache): Check if saved and current frame colors match.
21790
217912007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21792
21793 * regex.c (regex_compile): Remove the `regnum' counter.
21794 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21795
217962007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21797
21798 * term.c: Include intervals.h to declare Fget_text_property.
21799
218002007-06-10 Jason Rumney <jasonr@gnu.org>
21801
21802 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21803
218042007-06-08 Juanma Barranquero <lekktu@gmail.com>
21805
21806 * callint.c (Fcall_interactively):
21807 * editfns.c (Fdelete_and_extract_region):
21808 * fileio.c (Fread_file_name):
21809 * fns.c (Fmapconcat):
21810 * keyboard.c (cmd_error_internal):
21811 * keymap.c (Fkey_description):
21812 * lread.c (openp):
21813 * minibuf.c (read_minibuf):
21814 * search.c (wordify):
21815 * sunfns.c (sel_read):
21816 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21817 * xfns.c (x_default_scroll_bar_color_parameter):
21818 * xmenu.c (menu_help_callback):
21819 * xselect.c (Fx_get_atom_name):
21820 * xterm.c (x_term_init): Use empty_unibyte_string.
21821
218222007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21823
21824 * alloc.c (init_strings): Initialize canonical empty strings.
21825 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21826 canonical empty string when the requested size is 0.
21827
21828 * emacs.c (empty_unibyte_string): Rename from empty_string.
21829 (empty_multibyte_string): New canonical empty string.
21830 (syms_of_emacs): Don't initialize empty_string.
21831
21832 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21833 string, if appropriate.
21834 (empty_unibyte_string, empty_multibyte_string): New externs.
21835 (empty_string): Remove extern.
21836
21837 * lread.c (syms_of_lread): Use empty_unibyte_string.
21838
218392007-06-07 Jason Rumney <jasonr@gnu.org>
21840
21841 * s/ms-w32.h: Don't define HAVE_TZNAME.
21842
21843 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21844
218452007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21846
21847 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21848
21849 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21850 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21851
21852 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21853 Don't call next handler.
21854 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21855 Remove argument. Install handler to application.
21856 (set_frame_menubar): Don't change deep_p.
21857 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21858 FRAME_OUTER_TO_INNER_DIFF_Y.
21859 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21860 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21861 [HAVE_DIALOGS]: New macros.
21862 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21863 Use them.
21864 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21865
21866 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21867 init_service_handler. All callers changed. Return OSStatus value.
21868
21869 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21870 All callers changed so as not to call SetPortWindowPort.
21871 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21872 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21873 mac_draw_string_common.
21874 (mac_draw_image_string_qd): Likewise.
21875 (mac_draw_string_common): Use them. Add INLINE.
21876 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21877 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21878 GetGlobalMouse.
21879 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21880 and FRAME_OUTER_TO_INNER_DIFF_Y.
21881 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21882 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21883 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21884 repositioning window to mac_handle_window_event.
21885 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21886 saving window location to mac_handle_window_event
21887 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21888 (install_menu_target_item_handler): Remove argument in extern.
21889 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21890 Also accept command events.
21891 (do_keystroke): New function created from XTread_socket.
21892 (init_command_handler): Remove functions.
21893 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21894 and save window location by kEventWindowShowing and kEventWindowHiding
21895 handlers here. Don't call next handler for window state change and
21896 focus events.
21897 (mac_handle_application_event, mac_handle_keyboard_event)
21898 [TARGET_API_MAC_CARBON]: New functions.
21899 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21900 kEventWindowShowing and kEventWindowHiding events. Move installation
21901 of mouse, font, text input and menu target item handlers to
21902 install_application_handler.
21903 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21904 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21905 New function.
21906 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21907 Register it.
21908 (XTread_socket) [TARGET_API_MAC_CARBON]:
21909 Consolidate SendEventToEventTarget calls.
21910 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21911 Move application activation handler to mac_handle_application_event.
21912 Move keyboard handler to mac_handle_keyboard_event.
21913 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21914 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21915 init_command_handler. Call install_application_handler.
21916
21917 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21918 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21919
219202007-06-07 Glenn Morris <rgm@gnu.org>
21921
21922 * emacs.c (main): Use `emacs-copyright' in --version output.
21923
219242007-06-06 Chong Yidong <cyd@stupidchicken.com>
21925
21926 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21927
219282007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21929
21930 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21931
21932 * macgui.h: Replace WindowPtr with WindowRef.
21933
21934 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21935 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21936 Replace ControlHandle with ControlRef.
21937 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21938
21939 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21940 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21941 Replace ControlHandle with ControlRef.
21942 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21943 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21944
21945 * macterm.h (struct scroll_bar): Rename member control_handle_low
21946 and control_handle_high to control_ref_low and control_ref_high.
21947 All uses changed.
21948 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21949 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21950 respectively. All uses changed.
21951 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21952 (install_window_handler, remove_window_handler): Replace WindowPtr
21953 with WindowRef in externs.
21954
219552007-06-05 Juanma Barranquero <lekktu@gmail.com>
21956
21957 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21958
219592007-06-03 Nick Roberts <nickrob@snap.net.nz>
21960
21961 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21962
21963 * frame.c (Fmouse_position, Fmouse_pixel_position):
21964 Condition on HAVE_GPM too.
21965
21966 * term.c (term_mouse_highlight): Remove unused variables.
21967 (Fterm_open_connection): Set gpm_zerobased to 1.
21968 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21969 Use zero based co-ordinates.
21970 (handle_one_term_event): Report a drag as mouse movement too.
21971
21972 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21973
219742007-06-03 Chong Yidong <cyd@stupidchicken.com>
21975
21976 * image.c (search_image_cache): New function. Require background
21977 color match if background color is unspecified in the image spec.
21978 (uncache_image, lookup_image): Use it.
21979
219802007-06-01 Juanma Barranquero <lekktu@gmail.com>
21981
21982 * window.c (Fshrink_window): Reflow docstring.
21983
219842007-06-02 Chong Yidong <cyd@stupidchicken.com>
21985
21986 * Version 22.1 released.
21987
219882007-06-01 Richard Stallman <rms@gnu.org>
21989
21990 * xfns.c (x_encode_text): Add GCPRO.
21991
219922007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21993
21994 * xfns.c (x_set_name_internal): Save encoded name before
21995 x_encode_text in case string data is relocated.
21996
219972007-05-31 Richard Stallman <rms@gnu.org>
21998
21999 * buffer.c (syms_of_buffer): Doc fix.
22000
220012007-05-30 Nick Roberts <nickrob@snap.net.nz>
22002
22003 * sysdep.c (init_sys_modes): Add rather than replace with
22004 O_NONBLOCK.
22005
22006 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22007 term_mouse_moveto.
22008
22009 * termhooks.h (term_mouse_moveto): New extern.
22010
22011 * term.c (mouse_face_window): Rename...
22012 (Qmouse_face_window): ...to this.
22013 (term_show_mouse_face, term_clear_mouse_face)
22014 (term_mouse_highlight): Use Qmouse_face_window.
22015 (term_mouse_moveto): New function.
22016 (term_mouse_position): Make it work.
22017 (syms_of_term): Uncomment assignment to mouse_position_hook.
22018 Staticpro Qmouse_face_window.
22019
220202007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22021
22022 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22023 around current_column call.
22024
220252007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22026
22027 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22028 * xdisp.c (next_element_from_buffer):
22029 * window.c (delete_window):
22030 * term.c (term_mouse_highlight):
22031 * msdos.c (getdefdir):
22032 * macterm.c (mac_create_bitmap_from_bitmap_data)
22033 (init_font_name_table):
22034 * fns.c (Fsxhash):
22035 * data.c (Fmake_local_variable):
22036 * ccl.c (ccl_driver): Likewise.
22037
220382007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22039
22040 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22041 Call mac_wakeup_from_rne on window size change.
22042
220432007-05-25 Chong Yidong <cyd@stupidchicken.com>
22044
22045 * image.c (uncache_image): Fix typo.
22046
220472007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22048
22049 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22050
220512007-05-22 Richard Stallman <rms@gnu.org>
22052
22053 * xterm.c (x_connection_closed): Remove NO_RETURN.
22054
220552007-05-22 Martin Rudalics <rudalics@gmx.at>
22056
22057 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22058
220592007-05-21 Chong Yidong <cyd@stupidchicken.com>
22060
22061 * image.c (uncache_image): New function.
22062 (Fimage_refresh): New function.
22063
220642007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22065
22066 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22067
220682007-05-20 Nick Roberts <nickrob@snap.net.nz>
22069
22070 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22071 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22072
220732007-05-20 Nick Roberts <nickrob@snap.net.nz>
22074
22075 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22076 conditional on [HAVE_GPM_H].
22077
220782007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22079
22080 * syntax.c (skip_chars): Update syntax-table only after we checked that
22081 the new location is valid.
22082
220832007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22084
22085 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22086 mac_get_window_bounds.
22087
220882007-05-20 Nick Roberts <nickrob@snap.net.nz>
22089
22090 * Makefile.in (LIBGPM): Allow it to be set from configure.
22091 If set then link Emacs with it.
22092
22093 * config.in: Regenerate.
22094
22095 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22096 New externs.
22097
22098 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22099 Include gpm.h.
22100 (handle_one_term_event, term_gpm): New externs.
22101
22102 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22103 and allow it to be interrupted by SIGIO.
22104
22105 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22106 (wait_reading_process_output): Wait on gpm_fd too.
22107 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22108 (add_gpm_wait_descriptor_called_flag): New variable.
22109 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22110
22111 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22112 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22113 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22114 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22115 (make_lispy_event): Add case GPM_CLICK_EVENT.
22116 (read_avail_input): Handle mouse input.
22117
22118 * term.c (write_glyphs_with_face): New function.
22119 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22120 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22121 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22122 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22123 (last_mouse_x, last_mouse_y): New variables.
22124 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22125 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22126 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22127 (Fterm_close_connection): New functions.
22128 (term_init): Initialise mouse_face_window.
22129
221302007-05-19 Chong Yidong <cyd@stupidchicken.com>
22131
22132 * xdisp.c (redisplay_window): If first window line is a
22133 continuation line, recompute the new window start instead of
22134 recentering.
22135
221362007-05-18 Glenn Morris <rgm@gnu.org>
22137
22138 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22139 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22140
221412007-05-17 Glenn Morris <rgm@gnu.org>
22142
22143 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22144
221452007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22146
22147 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22148 dead key repeat and up events.
22149
221502007-05-14 Chong Yidong <cyd@stupidchicken.com>
22151
22152 * image.c (pbm_load): Check image size for monochrome pbm.
22153
221542007-05-13 Chong Yidong <cyd@stupidchicken.com>
22155
22156 * xterm.c (XTread_socket): Revert last change.
22157
221582007-05-12 Chong Yidong <cyd@stupidchicken.com>
22159
22160 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22161
22162 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22163
221642007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22165
22166 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22167 mixup (YAILOM).
22168
221692007-05-07 Andreas Schwab <schwab@suse.de>
22170
22171 * keymap.c (Flookup_key): Fix typo in last change.
22172
221732007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22174
22175 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22176 mapping for unibyte strings.
22177
221782007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22179
22180 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22181 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22182
221832007-04-29 Richard Stallman <rms@gnu.org>
22184
22185 * insdel.c (replace_range): For undo, record insertion first.
22186
221872007-04-29 Andreas Schwab <schwab@suse.de>
22188
22189 * lisp.h (VECSIZE): Use OFFSETOF.
22190
221912007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22192
22193 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22194 disabled lines.
22195
221962007-04-28 Richard Stallman <rms@gnu.org>
22197
22198 * lread.c (read_escape): In a string, \s is always space.
22199
222002007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22201
22202 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22203
22204 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22205 submenu for menu bar items.
22206
22207See ChangeLog.10 for earlier changes.
22208
22209;; Local Variables:
22210;; coding: utf-8
22211;; add-log-time-zone-rule: t
aac0c6e3
MR
22212;; End:
22213
e3eb1dae 22214 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22215
22216 This file is part of GNU Emacs.
22217
22218 GNU Emacs is free software: you can redistribute it and/or modify
22219 it under the terms of the GNU General Public License as published by
22220 the Free Software Foundation, either version 3 of the License, or
22221 (at your option) any later version.
22222
22223 GNU Emacs is distributed in the hope that it will be useful,
22224 but WITHOUT ANY WARRANTY; without even the implied warranty of
22225 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22226 GNU General Public License for more details.
22227
22228 You should have received a copy of the GNU General Public License
22229 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22230
22231;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40