* xdisp.c (pos_visible_p): Check for invisible text at the correct pos (Bug#4040).
[bpt/emacs.git] / src / ChangeLog
CommitLineData
2f1c6384
CY
12010-01-09 Chong Yidong <cyd@stupidchicken.com>
2
3 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4 position (Bug#4040).
5
d427a9fa
EZ
62010-01-09 Eli Zaretskii <eliz@gnu.org>
7
8 * editfns.c (Ffloat_time): Doc fix.
9
21b9df2f
JD
102010-01-09 Jan Djärv <jan.h.d@swipnet.se>
11
12 * xfns.c (Fx_create_frame): Don't create frame larger than display
13 by default bug#3643.
14
4b00d3b1
YM
152010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16
17 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
18 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
19 windows above internal border.
20
21 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
22 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
23 windows above internal border.
24
25 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
26 tool bar windows specially.
27
28 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
29
30 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
31 specially.
32 (XTflash): Take account of menu bar height.
33
34 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
35 specially.
36
5075d853
JD
372010-01-08 Jan Djärv <jan.h.d@swipnet.se>
38
39 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
40 also be true before we can return early (bug #5339).
41
474217c8
CY
422010-01-06 David Reitter <david.reitter@gmail.com>
43
44 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
45 (Fns_display_usable_bounds): Rewrite, computing bounds properly
46 (Bug#3233).
47
c0e6d47d
JD
482010-01-06 Jan Djärv <jan.h.d@swipnet.se>
49
d0cf45b7
JD
50 * font.c (font_open_entity): Enable chache and call cached_font_ok
51 for the driver if defined.
52 (QCuser_spec): New symbol.
53 (font_spec_from_name): Save name as user-spec.
54 (font_load_for_lface): Keep user-spec instead of name.
55 (font_open_by_name): Save name as user-spec.
56 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 57 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
58
59 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
60 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
61 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
62
63 * font.h (struct font_driver): Add cached_font_ok.
64
c0e6d47d
JD
65 * xterm.c (x_clear_frame): Queue draw for scroll bars.
66
7c583cd8
JD
672010-01-05 Jan Djärv <jan.h.d@swipnet.se>
68
69 * xterm.c (x_new_font): Move code for setting rows/cols before
70 resizing ...
71 (x_set_window_size): ... to here. bug #2568.
72
73 * gtkutil.c (xg_clear_under_internal_border): New function.
74 (xg_frame_resized, xg_frame_set_char_size): Call
75 xg_clear_under_internal_border.
76 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 77
03f77f0a
CY
782010-01-05 Chong Yidong <cyd@stupidchicken.com>
79
80 * keyboard.c (read_key_sequence): Catch keyboard switch after
81 making a new tty frame (Bug#5095).
82
2a1ef5be
KH
832010-01-05 Kenichi Handa <handa@m17n.org>
84
85 * fontset.c (fontset_find_font): Fix getting the frame pointer.
86
e3eb1dae
SM
872010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
88
89 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
90 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
91 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
92
777013f2
MA
932010-01-03 Michael Albinus <michael.albinus@gmx.de>
94
95 * dbusbind.c (xd_add_watch): Improve debug message.
96 (xd_remove_watch): Improve debug message. If DATA is the session
97 bus, unset D-Bus session environment.
98 (Fdbus_init_bus): Pass the bus as argument to
99 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 100
8932b1c2
CY
1012010-01-01 Chong Yidong <cyd@stupidchicken.com>
102
87231e2c
CY
103 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
104
4801c5fa
CY
105 * lread.c (syms_of_lread): Make it clearer that these are the
106 names of loaded files (Bug#5068).
107
8932b1c2
CY
108 * eval.c (run_hook_with_args): Handle the case where the global
109 value has the obsolete single-function form (Bug#5026).
110
11e3c684
CY
1112009-12-27 Chong Yidong <cyd@stupidchicken.com>
112
113 * minibuf.c (Fall_completions): Minor optimization.
114
5b28ce35
EZ
1152009-12-26 Eli Zaretskii <eliz@gnu.org>
116
5ce6e4f4
JB
117 * .gdbinit (pgx): Fix display of composite glyphs.
118 Display cmp.from and cmp.to as well.
119 (pitx): Fix last change.
5b28ce35 120
bcffff46
KH
1212009-12-25 Kenichi Handa <handa@m17n.org>
122
123 * composite.h (composition_adjust_point): Update prototype.
124
125 * composite.c (composition_reseat_it): Don't make a composition
126 spanning over point.
127 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
128 composable characters.
129 (composition_adjust_point): New arg NEW_PT. Callers changed.
130
131 * keyboard.c (command_loop_1): Force redisplay if the last point
132 was within a composition.
133 (adjust_point_for_property): Don't adjust point for automatic
134 composition when called after buffer modification.
135
3f670e9a
EZ
1362009-12-19 Eli Zaretskii <eliz@gnu.org>
137
5ce6e4f4
JB
138 * .gdbinit (pitx): Don't use enum names, use their values.
139 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
140 (pgx): Don't use enum names, use their values.
141 (pitmethod): New helper command.
142 (pitx): Use it to display iteration method.
143 (pgrowit): New command.
144
ad903955
EZ
145 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
146
3f670e9a
EZ
147 Update dependencies in Makefile.in.
148
149 * Makefile.in (alloc.o): Depend on termhooks.h.
150 (atimer.o): Depend on blockinput.h.
151 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
152 and frame.h.
153 (callint.o): Depend on systime.h, coding.h, and composite.h.
154 (callproc.o): Depend on buffer.h.
155 (casefiddle.o): Don't depend on charset.h.
156 (casetab.o): Depend on character.h.
157 (ccl.o): Depend on composite.h.
158 (chartab.o): Depend on ccl.h.
159 (cm.o): Depend on dispextern.h.
160 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
161 (coding.o): Don't depend on $(INTERVALS_H).
162 (composite.o): Don't depend on dispextern.h explicitly (it's in
163 $(INTERVALS_H)). Depend on ccl.h.
164 (data.o): Depend on systime.h, coding.h, composite.h,
165 dispextern.h, font.h, and ccl.h.
166 (dired.o): Depend on composite.h.
167 (dispnew.o): Depend on coding.h. Don't depend explicitly on
168 composite.h (it's in $(INTERVALS_H)).
169 (doc.o): Depend on systime.h, coding.h, and composite.h.
170 (editfns.o): Don't depend explicitly on dispextern.h.
171 (emacs.o): Depend on frame.h and coding.h.
172 (eval.o): Depend on coding.h, composite.h, and xterm.h.
173 (fileio.o): Depend on frame.h and commands.h. Don't depend
174 explicitly on dispextern.h.
175 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
176 composite.h.
177 (fns.o): Don't depend on termhooks.h.
178 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
179 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
180 coding.h, $(INTERVALS_H), window.h, xterm.h.
181 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
182 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
183 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
184 fontset.h, ccl.h, and ftfont.h.
185 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
186 (gtkutil.o): Depend on dispextern.h and composite.h.
187 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
188 termhooks.h, and ccl.h.
189 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
190 (intervals.o): Depend on systime.h and coding.h.
191 (keyboard.o): Depend on composite.h and coding.h.
192 (keymap.o): Depend on coding.h and frame.h.
193 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
194 (macros.o): Depend on systime.h, coding.h, and composite.h.
195 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
196 and atimer.h.
197 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
198 dispextern.h explicitly.
199 (print.o): Depend on termhooks.h, coding.h, and ccl.h. Don't
200 depend explicitly on dispextern.h and composite.h.
201 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
202 (regex.o): Don't depend on charset.h.
203 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
204 (search.o): Don't depend explicitly on composite.h.
205 (sound.o): Depend on atimer.h and systime.h.
206 (syntax.o): Don't depend explicitly on composite.h.
207 (sysdep.o): Depend on coding.h and composite.h.
208 (term.o): Depend on xterm.h and buffer.h.
209 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
210 (textprop.o): Don't depend on dispextern.h explicitly.
211 (undo.o): Depend on dispextern.h.
212 (window.o): Depend on coding.h and termhooks.h. Don't depend on
213 dispextern.h and composite.h explicitly.
214 (xdisp.o): Depend on ccl.h.
215 (xfaces.o): Depend on coding.h and ccl.h.
216 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
217 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
218 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
219 ftfont.h.
220 (xgselect.o): New dependency.
221 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
222 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
223 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
224 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
225 (xsmfns.o): Depend on frame.h and dispextern.h.
226 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
227 sysselect.h.
228
7a6f7fea
AS
2292009-12-19 Andreas Schwab <schwab@linux-m68k.org>
230
231 * font.c (Fclear_font_cache): Pass correct cache argument to
232 font_clear_cache.
233
f4c21026
AS
2342009-12-16 Andreas Schwab <schwab@linux-m68k.org>
235
236 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
237 twice.
238
f7ab0997
CY
2392009-12-15 Chong Yidong <cyd@stupidchicken.com>
240
241 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
242 calling file-remote-p. Reported by Jim Meyering.
243
fa8e045a
MA
2442009-12-15 Michael Albinus <michael.albinus@gmx.de>
245
246 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 247 avoid compiler warnings. (Bug #5217)
fa8e045a 248
a63dba42
KH
2492009-12-14 Kenichi Handa <handa@m17n.org>
250
251 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
252 in 8-bit encoding.
253
5ce6e4f4 2542009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
255
256 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
257 tooltip windows.
258
223e5fc6
JD
2592009-12-13 Jan Djärv <jan.h.d@swipnet.se>
260
36acb2a7
JD
261 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
262 Xatom_net_window_type.
263
264 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
265 Xatom_net_window_type.
266
b8f00677
JD
267 * xterm.c (my_log_handler): New function.
268 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 269 so we can filter out buggy messages. (Bug #5120).
b8f00677 270
e5f0bc9a
JD
271 * xterm.c (xg_scroll_callback): Parameter list changed,
272 use parameter GtkScrollType to determine scroll/line/page.
273 Only allow dragging if a button < 4 is grabbed (bug #5177).
274 (xg_end_scroll_callback): New function.
275 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
276 xg_create_scroll_bar.
277
278 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
279 (scroll_end_callback): Remove.
280 (xg_create_scroll_bar): Add parameter end_callback, bind it to
281 button-release-event. Replace value-changed event with change-value,
282 bug #5177,
283 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
284 bug #5177.
285
286 * gtkutil.h (XG_LAST_SB_DATA): Remove.
287 (xg_create_scroll_bar): Add GCallback end_callback.
288
223e5fc6
JD
289 * xftfont.c (QClcdfilter): New variable.
290 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
291 (syms_of_xftfont): Initialize QClcdfilter.
292
3c055b77
JD
2932009-12-12 Jan Djärv <jan.h.d@swipnet.se>
294
295 * xsettings.c (struct xsettings): Add member seen.
296 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 297 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
298 (apply_xft_settings): Only update Xft settings with what member seen
299 indicates as new.
300
05fe33ff
EZ
3012009-12-12 Eli Zaretskii <eliz@gnu.org>
302
303 * dispextern.h (struct text_pos): Use EMACS_INT;
304 (struct glyph): Use EMACS_INT for charpos.
305 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
306 region_beg_charpos, region_end_charpos,
307 redisplay_end_trigger_charpos, and also for
308 iterator_stack_entry.end_charpos and
309 iterator_stack_entry.stop_charpos.
310
e8d7886a
JD
3112009-12-12 Jan Djärv <jan.h.d@swipnet.se>
312
5ce6e4f4 313 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
314 (xg_create_scroll_bar): Call scroll_end_callback on button release
315 event (bug #5177).
316 (xg_event_is_for_scrollbar): != replaced with ==.
317
d0db2ec8
KH
3182009-12-12 Kenichi Handa <handa@m17n.org>
319
320 * ftfont.c (struct ftfont_info): New member matrix.
321 (ftfont_open): Setup xftfont_info->matrix.
322 (MFLTFontFT): New member matrix.
323 (FLOOR, CEIL, ROUND): New macros.
324 (ftfont_get_metrics): Handle matrix transformation.
325 (ftfont_shape_by_flt): New arg matrix. Callers changed.
326
327 * xftfont.c (struct xftfont_info): New member matrix.
328 (xftfont_open): Setup xftfont_info->matrix.
329
3302009-12-10 Kenichi Handa <handa@m17n.org>
331
332 * xdisp.c (append_space_for_newline): Consider face-remapping.
333
2cc7b62f
AS
3342009-12-09 Andreas Schwab <schwab@linux-m68k.org>
335
b87dd913
AS
336 * xsettings.c: Include "keyboard.h".
337
eba5eb94
AS
338 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
339
2cc7b62f
AS
340 Fix implicit function declarations.
341 * cmds.c: Include "frame.h".
342 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
343 * frame.h: Move declaration of delete_frame outside of
344 HAVE_WINDOW_SYSTEM.
345
a4ef73c8
CY
3462009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
347
348 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
349
350 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
351 GTK builds.
352
944a300c
AS
3532009-12-07 Andreas Schwab <schwab@linux-m68k.org>
354
355 * unexelf.c (unexec): Don't search for .data twice.
356
022eef62
CY
3572009-12-05 Chong Yidong <cyd@stupidchicken.com>
358
426ac949
CY
359 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
360 if push failed.
361 (handle_line_prefix): Set avoid_cursor_p here. Check return value
362 of push_display_prop (Bug#5000).
363
022eef62
CY
364 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
365 value of font_list_entities (Bug#5085).
366
be95bee9
JB
3672009-12-04 Juanma Barranquero <lekktu@gmail.com>
368
369 Fix `string-to-number' to deal consistently with integers and floats.
370 * lread.c (isfloat_string): New argument ignore_trailing to accept all
371 trailing characters, not just whitespace.
372 (read1): Pass new arg 0 to keep old behavior.
373 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
374 trailing chars, as it is already done for integers. Doc fixes.
375 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
376
24c2d7ce
EZ
3772009-12-04 Eli Zaretskii <eliz@gnu.org>
378
379 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete
380 unused enumeration value.
381
7e694795
EZ
3822009-12-03 Eli Zaretskii <eliz@gnu.org>
383
384 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
385
84b31826
SM
3862009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
387
388 * process.c (Fmake_network_process): Fix up the tests for
389 "connectionless socket", so they DTRT for seqpacket sockets as well.
390
f00c449b
SM
3912009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
392
393 * process.c (Qseqpacket): New symbol.
394 (HAVE_SEQPACKET): New macro.
395 (Fmake_network_process): Accept new :type `seqpacket'.
396 (init_process): Add `seqpacket' feature when applicable.
397 (syms_of_process): Initialize Qseqpacket.
398
8096a0ff
YM
3992009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
400
401 * font.c (font_load_for_lface, font_open_by_name): Don't store name
402 if entity is Qnil.
403
3e0de07f
SM
4042009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
405
406 * print.c (print_preprocess): Preprocess the key_and_value table of
407 hashtables, even tho they're "hidden" (bug#5082).
408
abeafb2a
JD
4092009-11-29 Jan Djärv <jan.h.d@swipnet.se>
410
411 * frame.c (frame_make_pointer_invisible)
412 (frame_make_pointer_visible): Declare f before statements.
413
4bf47195
EZ
4142009-11-28 Eli Zaretskii <eliz@gnu.org>
415
416 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
417 omitted dependencies on lisp.h.
418
c525b3f2
JD
4192009-11-27 Jan Djärv <jan.h.d@swipnet.se>
420
ece2d4ed
JD
421 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
422 is NULL.
423
424 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
425
426 * frame.c (frame_make_pointer_invisible)
3e0de07f 427 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
428 frame.
429
c525b3f2
JD
430 * search.c (simple_search): Remove warning by making *p const.
431
2f00e299
DN
4322009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
433
434 * xdisp.c (power_letter): Remove duplicate const.
435
084b049b
JD
4362009-11-25 Jan Djärv <jan.h.d@swipnet.se>
437
a1fadc6f
JD
438 * term.c (delete_tty): Remove check for last terminal (bug#4970).
439
5ce6e4f4 440 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
441 defaults (bug #5025).
442
28259cac
SM
4432009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
444
445 * insdel.c (adjust_markers_for_delete): Move it in the
446 right direction! (bug#4803)
447
e8e14166
YM
4482009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
449
450 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
451
452 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
453
86677b58
GM
4542009-11-24 Glenn Morris <rgm@gnu.org>
455
456 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
457
581e51e8
JD
4582009-11-23 Jan Djärv <jan.h.d@swipnet.se>
459
cfc86c7a
JD
460 * Makefile.in: Must create deps for ecrt0.o in its rule.
461
581e51e8
JD
462 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
463 because that is what Gtk+ font dialog understands.
464
465 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
466 of Fcopy_sequence.
467 (font_open_by_name): Put name given into QCname for font-object returned.
468
469 * frame.c (x_set_font): Save original font name as frame parameter
470 font-parameter.
471
472 * xsettings.c (set_default_xft_settings): New function.
473 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
474 is found.
475
8b264ecb
AS
4762009-11-22 Andreas Schwab <schwab@linux-m68k.org>
477
478 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
479 searching backwards through multibyte buffer.
480
872870b2
JD
4812009-11-21 Jan Djärv <jan.h.d@swipnet.se>
482
483 * xterm.c: #include xgselect.h.
484 (x_initialize): Call xgselect_initialize.
485
486 * xsettings.c (something_changedCB): C++ comments => C comments.
487 (init_gconf): Do not deal with any GLib file descriptors, xg_select
488 does that now.
489
490 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
491 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
492 (scroll_bar_button_cb): Remove.
5ce6e4f4 493 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
494 event.
495 (xg_create_scroll_bar): Don't bind button-press-event and
496 button-release-event.
497
498 * process.c: Include xgselect.h if defined (USE_GTK) ||
499 defined (HAVE_GCONF).
500 (wait_reading_process_output): Call xg_select for the same condition.
501
502 * xgselect.c (xg_select): New function to better integrate with
503 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
504
505 * xgselect.h: New file, declare xg_select, xgselect_initialize.
506
507 * Makefile.in (XOBJ): Add xgselect.o.
508
62a6e103
AS
5092009-11-21 Andreas Schwab <schwab@linux-m68k.org>
510
511 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
512 ignored second argument. All callers changed.
513 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
514 (RE_STRING_CHAR_AND_LENGTH): Likewise.
515 * xdisp.c (string_char_and_length): Likewise.
516
b0ca0f33
DN
5172009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
518
519 * xterm.c (x_new_font):
520 * print.c (print_object):
521 * cmds.c (Fself_insert_command): Move declarations before statements.
522
dd5a6279
CY
5232009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
524
525 * s/cygwin.h: Remove unneeded linker flags.
526
4a8e097d
JD
5272009-11-20 Jan Djärv <jan.h.d@swipnet.se>
528
0d1d0d26
JD
529 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
530
531 * xsettings.h: Declare xsettings_get_system_font.
532
533 * xsettings.c (xsettings_get_system_font): New function.
534 (init_gconf): No use initiating gconf unless we have Xft also.
535 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
536 HAVE_GCONF.
537
4a8e097d
JD
538 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
539 add a blank entry so it doesn't collapse into nothing.
540
8ab1650e
SM
5412009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
542
543 * lread.c (Funintern): Comment out last change.
544
82c602f0
RS
5452009-11-19 Richard Stallman <rms@gnu.org>
546
547 * lread.c (Funintern): Error if symbol is t or nil.
548
87e32266
SM
5492009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
550
551 * insdel.c (make_gap_larger): Don't make as many assumptions about the
552 representation of Lisp integers.
553 Reported by MJ Chan <mjchan.inbox@gmail.com>.
554
1b9ac145
AS
5552009-11-17 Andreas Schwab <schwab@linux-m68k.org>
556
557 * lisp.h: Remove declaration of Ffont_get_system_font.
558 * xfns.c: Move include of "xsettings.h".
559 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
560
dfb3c4c6
JD
5612009-11-17 Jan Djärv <jan.h.d@swipnet.se>
562
87e32266
SM
563 * xsettings.c (something_changedCB, Ffont_get_system_font):
564 Check use_system_font.
dfb3c4c6
JD
565 (syms_of_xsettings): DEFVAR font-use-system-font.
566
9370c1d8
AS
5672009-11-17 Andreas Schwab <schwab@linux-m68k.org>
568
25fe851a
AS
569 * xfns.c (x_default_font_parameter): Remove dead assignment.
570
9370c1d8
AS
571 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
572
637fa988
JD
5732009-11-17 Jan Djärv <jan.h.d@swipnet.se>
574
87e32266 575 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 576 not have FC_LCD_*. #define them if not there.
a6eb20d8 577
87e32266 578 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 579
637fa988
JD
580 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
581
582 * xterm.c (handle_one_xevent): Call xft_settings_event for
583 ClientMessage, PropertyNotify and DestroyNotify.
584 (x_term_init): If we have XFT, get DPI from Xft.dpi.
585 Call xsettings_initialize.
586
587 * xftfont.c (xftfont_fix_match): New function.
588 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
589 Call xftfont_fix_match after XftFontMatch.
590
591 * xfont.c (xfont_driver): Initialize all members.
592
87e32266
SM
593 * xfns.c (x_default_font_parameter):
594 Try font from Ffont_get_system_font.
637fa988
JD
595 Do not get font from x_default_parameter if we got one from
596 Ffont_get_system_font.
87e32266 597 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
598
599 * w32font.c (w32font_driver): Initialize all members.
600
601 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
602
603 * lisp.h: Declare syms_of_xsettings.
604
87e32266
SM
605 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
606 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
607
608 * ftfont.c (ftfont_filter_properties): New function.
609
610 * frame.c (x_set_font): Remove unused variable lval.
611
87e32266 612 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
613
614 * font.c (font_put_extra): Don't return if val is nil, it means
615 boolean option is off.
616 (font_parse_fcname): Collect all extra properties in extra_props
617 and call filter_properties for all drivers with extra_props and
618 font as parameter.
87e32266
SM
619 (font_open_entity): Do not use cache, it does not pick up new
620 fontconfig settings like hinting.
637fa988
JD
621 (font_load_for_lface): If spec had a name in it, store it in entity.
622
623 * emacs.c (main): Call syms_of_xsettings
624
625 * config.in: HAVE_GCONF is new.
626
627 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
628 xsettings.o is new.
629
5a942932
KH
6302009-11-17 Kenichi Handa <handa@m17n.org>
631
632 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
633 back to the default font in case that no suitable font is found.
634
b7c7a4d1
SM
6352009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
636
637 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
638 Suggested by Chad Brown <yandros@mit.edu>.
639 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
640
072f1e39
JD
6412009-11-16 Jan Djärv <jan.h.d@swipnet.se>
642
643 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
644
5d1e70a2
AS
6452009-11-14 Andreas Schwab <schwab@linux-m68k.org>
646
87e32266 647 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 648
a53cfbe5
JD
6492009-11-14 Jan Djärv <jan.h.d@swipnet.se>
650
473a99b7
JD
651 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
652 has a parent.
653
a53cfbe5 654 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 655 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
656
657 * config.in: Generated (AUTO_DEPEND).
658
f04bb9b2
MA
6592009-11-13 Michael Albinus <michael.albinus@gmx.de>
660
b7c7a4d1 661 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
662 Vdbus_registered_functions_table, because it contains also
663 properties. Fix docstring.
b7c7a4d1 664 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 665
8f11f7ec
SM
6662009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
667
668 * alloc.c (mark_object): Don't reprocess marked strings.
669 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
670 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
671
8a605fe8
KH
6722009-11-13 Kenichi Handa <handa@m17n.org>
673
8f11f7ec 674 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
675 semantics of Vword_combining_categories.
676 (Vword_combining_categories): Describe the slight change of the
677 semantics.
678
241c4680
EZ
6792009-11-13 Eli Zaretskii <eliz@gnu.org>
680
681 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
682
683 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
684
5d58e44c
SM
6852009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
686
687 * xdisp.c (syms_of_xdisp): Fix typo in last change.
688
5e13f9d3
JB
6892009-11-12 Juanma Barranquero <lekktu@gmail.com>
690
691 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
692
cf54c754
DR
6932009-11-11 David Reitter <david.reitter@gmail.com>
694
695 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
696 variables to fix 2009-11-09 change.
697
a4ada374
DN
6982009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
699
91433552
DN
700 * process.c (ifflag_def): Make flag_sym constant.
701 (Fnetwork_interface_info): Use a constant pointer.
702 (ifflag_table):
703 * xfns.c (cursor_bits):
704 * xdisp.c (power_letter):
705 * termcap.c (speeds, esctab):
706 * sysdep.c (baud_convert):
707 * keyboard.c (lispy_accent_codes, modifier_names):
708 * image.c (xbm_format, xpm_format, pbm_format, png_format)
709 (jpeg_format, tiff_format, gif_format, svg_format)
710 (interlace_start, interlace_increment, gs_format):
711 * gtkutil.c (separator_names):
712 * fringe.c (swap_nibble):
713 * fns.c (base64_value_to_char, base64_char_to_value):
714 * fileio.c (make_temp_name_tbl):
715 * coding.c (suffixes): Make constant.
716
f4265f6c
DN
717 * frame.c (make_initial_frame):
718 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
719 build_string.
720 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
721
04420943
DN
722 * s/freebsd.h:
723 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
724
0a5d24ae
DN
725 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
726 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
727
a4ada374
DN
728 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
729 * xterm.c (syms_of_xterm):
730 * xfaces.c (syms_of_xfaces):
731 * xdisp.c (syms_of_xdisp):
732 * lread.c (syms_of_lread):
733 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
734 build_string.
91433552 735
a4ada374
DN
736 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
737
af98fc7f
SM
7382009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
739
8ab1650e 740 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 741
e90292a9
JD
7422009-11-10 Jan Djärv <jan.h.d@swipnet.se>
743
744 * keyboard.h: Declare timer_check.
745
746 * keyboard.c (timer_check_2): New function that does what the old
747 timer_check did.
748 (timer_check): Call timer_check_2 until -1 or a non-zero time is
749 returned, i.e. don't return -1 with timers pending.
750
751 * process.c: Remove extern declaration of timer_check.
752
753 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
754 even if timer_check returned -1.
755
af98fc7f
SM
756 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
757 xg_dialog_data.
e90292a9
JD
758 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
759 the event loop.
760 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
761 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
762 Destroy the dialog after xg_dialog_run.
763
045b83c0
SM
7642009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
765
766 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
767
1fb99a3a
JD
7682009-11-10 Jan Djärv <jan.h.d@swipnet.se>
769
770 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
771
04e452cb
JB
7722009-11-09 Juanma Barranquero <lekktu@gmail.com>
773
774 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
775
ef7417fd
SM
7762009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
777
778 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
779 w32menu.c, and nsmenu.m.
780 Simplify the obsolete case where position is nil.
781 (cleanup_popup_menu): New function, moved from nsmenu.m.
782 (struct skp): Remove slot `notreal'.
783 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
784 adjust callers.
785 (single_menu_item): Adjust call to parse_menu_item.
786 (syms_of_menu): Defsubr x-popup-menu.
787 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
788 (keymap_panes): Don't export any more.
789 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
790 (xmenu_show): Declare.
791 * keyboard.c (parse_menu_item): Remove arg `notreal'.
792 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
793 * keyboard.h (parse_menu_item): Update declaration.
794 * xmenu.c (Fx_popup_menu): Remove.
795 (syms_of_xmenu): Don't defsubr x-popup-menu.
796 * w32menu.c (Fx_popup_menu): Remove.
797 (syms_of_w32menu): Don't defsubr x-popup-menu.
798 * nsmenu.m (cleanup_popup_menu): Remove.
799 (ns_menu_show): Rename from ns_popup_menu and remove all the code
800 moved to menu.c's Fx_popup_menu.
801 (Fx_popup_menu): Remove.
802 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
803 menu_items (it's done in menu.c already).
804
424d6179
SM
8052009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
806
807 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
808 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
809
c0df13a6 8102009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
811
812 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 813 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
814 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
815 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
816
2de9f71c
SM
8172009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
818
819 Let integers use up 2 tags to give them one extra bit and thus double
820 their range.
821 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
822 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
823 New macros.
824 (enum Lisp_Type): Use them. Give explicit values.
825 (Lisp_Type_Limit): Remove.
826 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
827 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
828 Pay attention to USE_2_TAGS_FOR_INTS.
829 (INTEGERP): Use LISP_INT_TAG_P.
830 * fns.c (internal_equal): Simplify the default case.
831 (sxhash): Use case_Lisp_Int.
832 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
833 any more.
834 (Ftype_of): Use case_Lisp_Int.
835 (store_symval_forwarding): Take into account the fact that Ints can
836 now have more than one tag.
837 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
838 buffer_slot_type_mismatch):
839 * xfaces.c (face_attr_equal_p):
840 * print.c (print_object):
841 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
842 Use case_Lisp_Int.
843
323637a2
EZ
8442009-11-06 Eli Zaretskii <eliz@gnu.org>
845
7ac65b38
EZ
846 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
847
323637a2
EZ
848 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
849 warning.
850
e511451f
JD
8512009-11-06 Jan Djärv <jan.h.d@swipnet.se>
852
853 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
854
855 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
856
857 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
858 ButtonPressRelease and MotionNotify (bug#4870).
859
5e2327cf
DN
8602009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
861
5adc433e
DN
862 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
863
d67b4f80
DN
864 * xterm.c (syms_of_xterm):
865 * xselect.c (syms_of_xselect):
866 * xmenu.c (syms_of_xmenu):
867 * xfns.c (syms_of_xfns):
868 * xfaces.c (syms_of_xfaces):
869 * xdisp.c (syms_of_xdisp):
870 * window.c (syms_of_window):
871 * w32fns.c (syms_of_w32fns):
872 * undo.c (syms_of_undo):
873 * textprop.c (syms_of_textprop):
874 * terminal.c (syms_of_terminal):
875 * syntax.c (syms_of_syntax):
876 * sound.c (syms_of_sound):
877 * search.c (syms_of_search):
878 * print.c (syms_of_print):
879 * minibuf.c (syms_of_minibuf):
880 * macros.c (syms_of_macros):
881 * keymap.c (syms_of_keymap, initial_define_key)
882 (initial_define_lispy_key):
883 * keyboard.c (syms_of_keyboard):
884 * insdel.c (syms_of_insdel):
885 * image.c (syms_of_image):
886 * fringe.c (syms_of_fringe):
887 * frame.c (syms_of_frame):
888 * fontset.c (syms_of_fontset):
889 * fns.c (syms_of_fns):
890 * fns.c (syms_of_fns):
891 * fileio.c (syms_of_fileio):
892 * fileio.c (syms_of_fileio):
893 * eval.c (syms_of_eval):
894 * doc.c (syms_of_doc):
895 * dispnew.c (syms_of_display):
896 * dired.c (syms_of_dired):
897 * dbusbind.c (syms_of_dbusbind):
898 * data.c (syms_of_data):
899 * composite.c (syms_of_composite):
900 * coding.c (syms_of_coding):
901 * cmds.c (syms_of_cmds):
902 * charset.c (define_charset_internal, syms_of_character):
903 * ccl.c (syms_of_ccl):
904 * category.c (syms_of_category, init_category_once):
905 * casetab.c (syms_of_casetab):
906 * casefiddle.c (syms_of_casefiddle):
907 * callint.c (syms_of_callint):
908 * bytecode.c (syms_of_bytecode):
909 * buffer.c (keys_of_buffer, syms_of_buffer):
910 * alloc.c (syms_of_alloc):
911 * process.c (syms_of_process, init_process):
912 * lread.c (syms_of_lread, init_obarray):
913 * font.c (build_style_table):
914 * emacs.c (syms_of_emacs, main): Replace calls to intern with
915 intern_c_string, calls to make_pure_string with
916 make_pure_c_string. Use pure_cons instead of Fcons.
917
5e2327cf
DN
918 * process.c (socket_options): Make it const.
919 (set_socket_option, init_process): Use a const pointer.
920
921 * lread.c (intern_c_string): New function.
922 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
923 (defvar_int): Uset it. Make the name const char*.
924
925 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
926 (defvar_int): Update prototypes.
927 (DEFUN, EXFUN): Support for prototypes is now required.
928 (intern_c_string): New prototype.
929 (struct Lisp_Subr): Make symbol_name constant.
930
931 * font.c (struct table_entry): Remove unused member. Make NAMES
932 constant.
933 (weight_table, slant_table, width_table): Make constant.
934
935 * emacs.c (struct standard_args): Make name and longname constant.
936
937 * character.h (DEFSYM): Use intern_c_string.
938
a56eaaef
DN
9392009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
940
941 * alloc.c (make_pure_c_string): New function.
942
943 * eval.c (Fautoload): Purecopy all arguments.
944
f6a07420
KH
9452009-11-05 Kenichi Handa <handa@m17n.org>
946
947 * fileio.c (Finsert_file_contents): Be sure set coding-system of
948 the buffer in case of replace.
949
5d28d4b1
DN
9502009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
951
952 * puresize.h (BASE_PURESIZE): Increase to 1620000.
953
b349d111
SM
9542009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
955
d528b1ce
SM
956 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
957 when applicable (bug#4851).
958
b349d111
SM
959 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
960 (P_): Support for prototypes is now required.
961
c38eb027
CY
9622009-10-31 Chong Yidong <cyd@stupidchicken.com>
963
964 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
965 (Bug#4827).
966
0405f8d9
EZ
9672009-10-30 Eli Zaretskii <eliz@gnu.org>
968
d528b1ce 969 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 970
ca0a881a
DN
9712009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
972
973 * puresize.h (BASE_PURESIZE): Increase to 1470000.
974
d528b1ce
SM
975 * lread.c (Fload): Purecopy the file name when building
976 Vpreloaded_file_list.
ca0a881a 977
47e0e0e4
JR
9782009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
979
980 * w32fns.c (syms_of_w32fns): Change default value of
981 w32-scroll-lock-modifier to nil. (Bug#2827)
982
057bce6f
JB
9832009-10-26 Juanma Barranquero <lekktu@gmail.com>
984
782a943e 985 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 986
242bc74c
AS
9872009-10-26 Andreas Schwab <schwab@redhat.com>
988
989 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
990
522d013a
JB
9912009-10-26 Juanma Barranquero <lekktu@gmail.com>
992
993 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
994 For delta < 0, skip check that only makes sense when the mini-window
995 is going to be enlarged. (Bug#4534)
996
18060980
CY
9972009-10-25 Chong Yidong <cyd@stupidchicken.com>
998
999 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1000 string in menu maps (Bug#4471).
1001
fec8f0fe
CY
10022009-10-24 Chong Yidong <cyd@stupidchicken.com>
1003
1004 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1005 FRAME_NS_VIEW on terminal frames (Bug#4765).
1006
10d66ec0
AS
10072009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1008
1cae01f7
AS
1009 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1010 DBUS_TYPE_UINTnn separately to get proper sign extension.
1011
58a12889
AS
1012 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1013 can properly handle unsigned types.
d528b1ce 1014 (make_uid, make_gid): Remove.
58a12889 1015
987c9327
AS
1016 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1017 types again.
1018
522d013a 1019 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1020 (system_process_attributes): Likewise.
1021
905a9ed3
DN
10222009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1023
1024 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1025
1026 * eval.c (Fautoload): Purecopy the filename. Simplify.
1027
1028 * category.c (Fdefine_category): Purecopy docstring.
1029
a599b3e8
AS
10302009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1031
7b792fc9
AS
1032 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1033
a599b3e8
AS
1034 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1035
b35ac83e
CY
10362009-10-23 Chong Yidong <cyd@stupidchicken.com>
1037
1038 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1039 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1040 (Bug#4775).
1041
e8903e00
SM
10422009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1043
1044 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1045 (init_fileio_once):
1046 * lisp.h (init_fileio_once): Remove.
1047 * emacs.c (main): Don't call init_fileio_once.
1048
8f43cbf3
DN
10492009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1050
1051 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1052
26898943
AS
10532009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1054
1055 * doprnt.c (doprnt): Fix overflow check.
1056
5c646d5a
JD
10572009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1058
3132a7ea
JD
1059 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1060
5c646d5a
JD
1061 * xterm.h (x_wait_for_event): Declare it.
1062
1063 * xterm.c (pending_event_wait): New variable.
1064 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1065 see pending_event_wait.eventtype.
1066 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1067 (x_new_font): Call change_frame_size with new rows/columns before we
1068 try to resize the frame.
5c646d5a 1069 (x_wait_for_event): New function.
d528b1ce
SM
1070 (x_set_window_size_1): Don't change gravity unless change_gravity
1071 is set.
5c646d5a
JD
1072 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1073 don't change frame size, instead wait for the ConfigureNotify.
1074 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1075 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1076 (x_initialize): Initialize pending_event_wait.
1077
1078 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1079 size.
1080
1081 * widget.c (EmacsFrameSetValues): Add comment.
1082 (EmacsFrameSetCharSize): Just call x_set_window_size.
1083
1084 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1085 x_wait_for_event.
d528b1ce 1086 (flush_and_sync): Remove again.
5c646d5a
JD
1087 (xg_get_font_name): Suggest monospace if no previous font is known.
1088
e9c1637d
SM
10892009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1090
1091 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1092 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1093
5a72cccb
YM
10942009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1095
1096 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1097 processing pending events when event is filtered for input method.
ab04798f 1098 (Bug#3681)
5a72cccb 1099
2629aa37
JB
11002009-10-20 Juanma Barranquero <lekktu@gmail.com>
1101
1102 * fns.c: Add #endif accidentally removed in previous change.
1103
c3417a74
DN
11042009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1105
1106 * fns.c: Remove code for unsupported system: MAC_OS.
1107 * image.c: Likewise. Include setjmp.h.
1108
9685cef2
JD
11092009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1110
1111 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1112 pixel -1 (bug #4742).
1113
d7306fe6
DN
11142009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1115
019d2c4c
DN
1116 * process.c (create_pty): Remove conditionals for no longer
1117 supported systems: UNIPLUS and RTU.
1118
ee6bacd4
DN
1119 * xterm.c:
1120 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1121
d7306fe6
DN
1122 * alloc.c: Do not define struct catchtag.
1123 * eval.c: Move struct catchtag definition ...
1124 * lisp.h: ... here.
1125
1126 * image.c: Move png.h #include earlier to avoid warnings.
1127
1128 * xterm.c:
1129 * xsmfns.c:
1130 * xselect.c:
1131 * xrdb.c:
1132 * xmenu.c:
1133 * xftfont.c:
1134 * xfont.c:
1135 * xfns.c:
1136 * xfaces.c:
1137 * xdisp.c:
1138 * window.c:
1139 * widget.c:
1140 * w32xfns.c:
1141 * w32uniscribe.c:
1142 * w32term.c:
1143 * w32select.c:
1144 * w32reg.c:
1145 * w32proc.c:
1146 * w32menu.c:
1147 * w32inevt.c:
1148 * w32heap.c:
1149 * w32font.c:
1150 * w32fns.c:
1151 * w32console.c:
1152 * w32.c:
1153 * w16select.c:
1154 * vm-limit.c:
1155 * unexsol.c:
1156 * unexec.c:
1157 * unexcw.c:
1158 * unexaix.c:
1159 * undo.c:
1160 * tparam.c:
1161 * textprop.c:
1162 * terminfo.c:
1163 * terminal.c:
1164 * termcap.c:
1165 * term.c:
1166 * syntax.c:
1167 * sound.c:
1168 * sheap.c:
1169 * search.c:
1170 * scroll.c:
1171 * region-cache.c:
1172 * regex.c:
1173 * ralloc.c:
1174 * process.c:
1175 * print.c:
b024548b
DN
1176 * nsterm.m:
1177 * nsselect.m:
1178 * nsmenu.m:
1179 * nsimage.m:
1180 * nsfont.m:
1181 * nsfns.m:
d7306fe6
DN
1182 * msdos.c:
1183 * minibuf.c:
1184 * menu.c:
1185 * marker.c:
1186 * macros.c:
1187 * keymap.c:
1188 * keyboard.c:
1189 * intervals.c:
1190 * insdel.c:
1191 * indent.c:
1192 * gtkutil.c:
1193 * ftxfont.c:
1194 * ftfont.c:
1195 * fringe.c:
1196 * frame.c:
1197 * fontset.c:
1198 * font.c:
1199 * fns.c:
1200 * floatfns.c:
1201 * filelock.c:
1202 * fileio.c:
1203 * emacs.c:
1204 * editfns.c:
1205 * dosfns.c:
1206 * doprnt.c:
1207 * doc.c:
1208 * dispnew.c:
1209 * dired.c:
1210 * dbusbind.c:
1211 * data.c:
1212 * composite.c:
1213 * coding.c:
1214 * cmds.c:
1215 * cm.c:
1216 * chartab.c:
1217 * charset.c:
1218 * character.c:
1219 * ccl.c:
1220 * category.c:
1221 * casetab.c:
1222 * casefiddle.c:
1223 * callproc.c:
1224 * callint.c:
1225 * bytecode.c:
1226 * buffer.c:
1227 * atimer.c: Include setjmp.h. (Bug#4643)
1228
fd5f21e6
SM
12292009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1230
4c0354d7
SM
1231 Remove leftover table unibyte_to_multibyte_table.
1232 * character.c (unibyte_to_multibyte_table): Remove.
1233 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1234 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1235 * character.h (UNIBYTE_TO_CHAR): New macro.
1236 (MAKE_CHAR_MULTIBYTE): Use it.
1237 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1238 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1239 (message_dolog, set_message_1):
1240 * search.c (Freplace_match):
1241 * editfns.c (Fcompare_buffer_substrings):
1242 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1243 (concat):
1244 * insdel.c (copy_text, count_size_as_multibyte):
1245 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1246 * term.c (produce_glyphs):
1247 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1248 * regex.c (RE_CHAR_TO_MULTIBYTE):
1249 * cmds.c (internal_self_insert):
1250 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1251
fd5f21e6
SM
1252 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1253
4418646e
DN
12542009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1255
1256 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1257
35f5c1d2
JB
12582009-10-16 Juanma Barranquero <lekktu@gmail.com>
1259
1260 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1261
a0cd8f6b
AR
12622009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1263
1264 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1265 still needed under Tiger.
1266
1267 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1268
1269 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1270 __Apple__.
1271
1272 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1273
01a8d3fa
KH
12742009-10-15 Kenichi Handa <handa@m17n.org>
1275
1276 * print.c (print_object): Escape a symbol like "2E10" too.
1277
bf6c75c9 12782009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1279
1280 Cleanups and changes for 64-bit compile under Snow Leopard.
1281 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1282
1283 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1284
c5959062 1285 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1286 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1287 cast argument.
1288 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1289 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1290
1291 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1292
1293 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1294 where appropriate.
1295
1296 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1297 where appropriate.
6e4780c5
JB
1298 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1299 Use stringWithUTF8String.
bf6c75c9
AR
1300 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1301
6e4780c5
JB
1302 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1303 Add formal protocol mention to inheritance.
bf6c75c9
AR
1304 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1305
6e4780c5
JB
1306 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1307 Fix printf format.
bf6c75c9
AR
1308 (ns_query_color): Use CGFloat where appropriate.
1309 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1310 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1311 argument.
1312
3d87f118
AR
1313 * config.in (NS_HAVE_NSINTEGER): Drop.
1314
a95c8102
AR
1315 * dbusbind.c (dbus-method-return-internal)
1316 (dbus-method-error-internal): Use long format in printf, and cast
1317 argument.
1318
1319 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1320 in printf, and cast argument.
1321
6873acca 1322 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1323 cast argument.
1324
9ec6f100
GM
13252009-10-11 Glenn Morris <rgm@gnu.org>
1326
1327 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1328
5be883cd
JD
13292009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1330
1331 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1332 menu bar with a small width so it doesn't enlarge the frame.
1333
d7a39b51
JB
13342009-10-08 Juanma Barranquero <lekktu@gmail.com>
1335
1336 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1337
0c2b6f8e
GM
13382009-10-06 Glenn Morris <rgm@gnu.org>
1339
1340 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1341 SOME_MACHINE_LISP (this enters indirectly via DOC).
1342
e02131a2
EZ
13432009-10-05 Eli Zaretskii <eliz@gnu.org>
1344
1345 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1346
b4744254
EZ
13472009-10-04 Eli Zaretskii <eliz@gnu.org>
1348
1349 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1350 Doc fix.
1351
dbf64827
JB
13522009-10-03 Martin Rudalics <rudalics@gmx.at>
1353
1354 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1355
e9a0aef8
MA
13562009-10-02 Michael Albinus <michael.albinus@gmx.de>
1357
d528b1ce 1358 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1359 used anymore outside fileio.c.
1360
1361 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1362
64eb2b56
JB
13632009-10-01 Juanma Barranquero <lekktu@gmail.com>
1364
1365 * lisp.h (Qdelete_directory_internal):
1366 Declare, instead of Qdelete_directory.
1367
1368 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1369
9d28c33e
SM
13702009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1371
1372 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1373
9d8f3bd9
MA
13742009-10-01 Michael Albinus <michael.albinus@gmx.de>
1375
9d28c33e 1376 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1377 Fdelete_directory. It is not a command anymore. It has no file
1378 name handler.
1379
9694740b
SM
13802009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1381
1382 * xdisp.c (get_next_display_element): Use an enum in last change.
1383
748e162f
KH
13842009-09-28 Kenichi Handa <handa@m17n.org>
1385
9694740b 1386 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1387 unibyte_display_via_language_environment in handling
1388 Vnobreak_char_display.
1389
17efd58d
AR
13902009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1391
1392 * nsterm.h (ns_app_name): New extern variable.
1393
1394 * nsterm.m (ns_app_name): New variable.
1395 (ns_term_init): Set and use it.
1396 (ns_term_shutdown): Use it.
1397
1398 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1399 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1400
1401 * nsfns.m (ns_set_name_iconic, ns_set_name)
1402 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1403 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1404
9694740b
SM
1405 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1406 Remove double-casting in client_data comparison.
31c2d412 1407
3208cb35
YM
14082009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1409
1410 * keyboard.c (make_lispy_event): Remember last wheel direction.
1411 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1412
b7d552d6
GM
14132009-09-26 Glenn Morris <rgm@gnu.org>
1414
1415 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1416 internal.elc. Add term/pc-win.elc.
1417 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1418 term/x-win.elc.
1419 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1420 term/w32-win.elc.
1421 (NS_SUPPORT): New.
1422 (lisp): Add NS_SUPPORT.
1423 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1424
4ff670a8
DR
14252009-09-25 David Reitter <david.reitter@gmail.com>
1426
1427 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1428 on Mac OS X 10.6+ (bug#4513).
1429
feabfb6c
JB
14302009-09-24 Juanma Barranquero <lekktu@gmail.com>
1431
1432 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1433 some parts of Emacs code (like font selection) don't grok them.
1434 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1435
de59072a
AS
14362009-09-24 Andreas Schwab <schwab@redhat.com>
1437
1438 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1439
a489517b
JB
14402009-09-24 Juanma Barranquero <lekktu@gmail.com>
1441
1442 * dired.c (Fdirectory_files): Fix typo in docstring.
1443
0592970c
AR
14442009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1445
1446 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1447 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1448 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1449 under GNUstep.
1450 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1451
1452 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1453 glyph advancement.
1454
48e8a88b
AR
14552009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1456
1457 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1458 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1459
1460 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1461 deleted (bug #4492).
1462
e14f0a78
AR
1463 * nsfont.m (Vns_reg_to_script): New lisp variable.
1464 (syms_of_nsfont): Declare it.
1465 (ns_registry_to_script): New function.
1466 (ns_get_req_script): Call it.
1467 (ns_findfonts): Don't give up on non-unicode registry.
1468
1469 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1470
5b650faa
SM
14712009-09-20 Tom Tromey <tromey@redhat.com>
1472
1473 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1474 batch mode (bug#4228).
1475
a489517b 14762009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1477
1478 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1479 carefully. (Bug #4339)
0bae4e09 1480
fcfe06f3
CY
14812009-09-18 Chong Yidong <cyd@stupidchicken.com>
1482
d798ba87 1483 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1484
31642728
AR
14852009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1486
1487 * emacs.c (inhibit_x_resources): Update doc string for NS.
1488 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1489 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1490
1491 * nsterm.h (ns_no_defaults): Remove.
1492
1493 * nsterm.m (ns_no_defaults): Remove.
1494 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1495 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1496 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1497 don't update the NSWindow itself.
1498 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1499 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1500
1501 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1502 ns_use_qd_smoothing.
1503
1504 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1505 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1506 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1507 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1508
8686ac71
JB
15092009-09-17 Juanma Barranquero <lekktu@gmail.com>
1510
1511 * emacs.c (inhibit_x_resources): New variable.
1512 (main) [HAVE_NS]: Don't process --quick command line option.
1513 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1514
1515 * lisp.h (inhibit_x_resources): Declare it extern.
1516
1517 * w32reg.c (x_get_string_resource):
1518 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1519
e227ba05
EZ
15202009-09-17 Eli Zaretskii <eliz@gnu.org>
1521
362654a6
JB
1522 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1523 Add lisp/term/internal.elc.
e227ba05 1524
742d40e8
SM
15252009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1526
1527 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1528 (bug#4461).
1529
005bd5a2
DN
15302009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1531
1532 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1533
1534 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1535 (OBJECTS_MACHINE): Remove, unused.
1536
f9af9719
SM
15372009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1538
1539 * frame.c (x_get_resource_string): Remove unused.
1540
0307c7d2
JD
15412009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1542
1543 * xterm.c (x_new_font): Call change_frame_size before calling
1544 x_set_window_size, in case frame size won't change.
1545
1546 * frame.c (x_set_font): Remove dead code.
1547
428b13d6
SM
15482009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1549
1550 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1551
5766c380
SM
15522009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1553
1554 * lread.c (Fload): Don't output a message after loading an obsolete
1555 package any more (done in Lisp now).
1556
2fd0161b
CY
15572009-09-12 Chong Yidong <cyd@stupidchicken.com>
1558
1559 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1560
bc5e75b6
SM
15612009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1562
1563 * keymap.c (Fwhere_is_internal): Use nconc2.
1564
c31c985e
AM
15652009-09-11 Alan Mackenzie <acm@muc.de>
1566
1567 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1568 batch mode.
1569
78012bd2
AS
15702009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1571
1572 * xdisp.c (display_mode_element): Detect cycles.
1573
9d889332
SM
15742009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1575
1576 * keymap.c (where_is_internal): Don't erroneously return nil right after
1577 filling the cache.
1578 (where_is_internal_1): Fix up typo.
1579
7ab5d780
GM
15802009-09-11 Glenn Morris <rgm@gnu.org>
1581
1582 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1583 share a common doc-string.
1584
5238a749
SM
15852009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1586
66d77eda
SM
1587 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1588 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1589
5238a749
SM
1590 * keymap.c (QCadvertised_binding): New constant.
1591 (syms_of_keymap): Initialize it.
1592 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1593 if applicable.
1594
19f48442
SM
15952009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1596
50d4ba39
SM
1597 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1598 (parse_menu_item): Streamline since bindings are recomputed all the
1599 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1600 more and don't support lmenu's menu-alias any more either.
1601
a88a5372
SM
1602 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1603 (where_is_internal): Strip it down to only traverse the keymaps.
1604 Move the cache handling from Fwhere_is_internal to here.
1605 (Fwhere_is_internal): Move the handling of remapping and the choice of
1606 the best binding from where_is_internal to here.
1607 Unify the cached/noncached paths, so remapping is also handled
1608 correctly when the cache is used, and so the cache can be used to
1609 speed up remap-handling when applicable.
1610 Give preference to non-remapped bindings.
1611 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1612 non-remapped bindings.
1613 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1614 command remapping.
1615
19f48442
SM
1616 * xdisp.c (display_mode_element): Move list length limit from 50 to
1617 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1618
599498c3 16192009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1620
1621 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1622
f9b7b5ac
SM
16232009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1624
a53af587
JB
1625 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1626 (Bug#4334)
1627
f9b7b5ac
SM
1628 * keymap.c (where_is_internal): Filter out shadowed remappings.
1629 Assume that where_is_internal returns unshadowed bindings to simplify
1630 the code and get rid of the gotos. Use ASIZE.
1631
04f4b72d
JD
16322009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1633
4da146f2
JD
1634 * xterm.c (x_focus_changed): If we get a focusout and pointer
1635 is invisible, make it visible.
1636
04f4b72d
JD
1637 * xterm.h: Remove condition for declaration of
1638 x_*_window_to_frame.
1639
7cef7ce3
SM
16402009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1641
1642 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1643 initial terminal as well.
1644
a54fa5b7
JD
16452009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1646
1647 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1648 x_menubar_window_to_frame.
a54fa5b7
JD
1649
1650 * xterm.c: Remove declarations also in xterm.h
1651 (XTmouse_position): Do not return valid positions
1652 for clicks in the menubar and the toolbar for Gtk+.
1653
1654 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1655 if the widget for the event has the same top level as a frame,
1656 return the frame.
1657 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1658 internal windows, bug #4122.
1659 (x_non_menubar_window_to_frame): Remove.
1660
5a021dd0
GM
16612009-09-02 Glenn Morris <rgm@gnu.org>
1662
1663 * buffer.c (default-major-mode): Move most of the doc from here...
1664 (major-mode): ... to here.
1665
548fe2f3
NR
16662009-08-30 Nick Roberts <nickrob@snap.net.nz>
1667
1668 * process.c (wait_reading_process_output): Keep the descriptor
1669 when pty is used by a non-child process, e.g., in I/O buffer of
1670 GDB this allows inferior to be restarted.
1671
e0840eef
EZ
16722009-08-29 Eli Zaretskii <eliz@gnu.org>
1673
1674 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1675 both branches into one.
1676
82e98df4
SM
16772009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1678
1679 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1680 (main): Use enable-multibyte-characters rather than
1681 default-enable-multibyte-characters. Output a warning message when
1682 running a unibyte session.
1683
890617cb
YM
16842009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1685
1686 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1687 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1688 (copy_data_segment): Also copy __program_vars section.
1689 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1690 (dump_it) [LC_DYLD_INFO]: Use it.
1691
1692 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1693
e7adeadc
EZ
16942009-08-28 Eli Zaretskii <eliz@gnu.org>
1695
1696 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1697 $(SRC)/buildobj.h.
1698 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1699 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1700 $(SRC)/buildobj.h.
1701 (clean): Add buildobj.h.
1702
3ed8bbdc
TZ
17032009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1704
1705 * print.c (print_object): Set escapeflag to 1 when printing
1706 hashtable keys and values.
1707
155a6764
SM
17082009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1709
1710 * lread.c (read_integer): Use doubles (and potentially return a float
1711 number) as we do in string-to-number.
1712 (read1): Use strtol to read integers, signal errors on strtol's
1713 overflow and use floats if strtol's output is too large for
1714 Elisp integers.
1715
877610de
EZ
17162009-08-27 Eli Zaretskii <eliz@gnu.org>
1717
1718 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1719 (make-buildobj-SH): Fix last change.
1720 (SRC): Move to before where it's first used.
1721
ef73e7be
KH
17222009-08-27 Kenichi Handa <handa@m17n.org>
1723
550c8289
KH
1724 * process.c (send_process): Use encode_coding_object instead of
1725 encode_coding_string to perform eol-conversion even if the string
1726 is unibyte.
1727
60afa08d
KH
1728 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1729 character.
1730
ef73e7be 1731 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1732 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1733
7b3a82d7
DN
17342009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1735
5654bf63
DN
1736 * callproc.c (Fcall_process): Remove always true #if.
1737
7b3a82d7
DN
1738 * lisp.h: Replace #if 0 code for checking with text pointing to
1739 the --enable-checking configure flag.
1740
1741 * emacs.c (main): Mention the --enable-profiling configure flag
1742 instead of using CFLAGS.
1743
878bde49
KR
17442009-08-26 Ken Raeburn <raeburn@raeburn.org>
1745
1746 * Makefile.in (buildobj.h): New target.
1747 (doc.o): Depend on it.
1748 (temacs${EXEEXT}): Don't generate buildobj.lst.
1749 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1750 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1751 ($(BLD)/doc.$(O)): Depend on it.
1752 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1753 provided by Eli Zaretskii.)
1754 ($(TEMACS)): Don't generate buildobj.lst.
1755 * doc.c: Include buildobj.h.
1756 (buildobj): New static variable.
1757 (Fsnarf_documentation): Use it, instead of opening and reading
1758 buildobj.lst.
1759
1574224c
MA
17602009-08-25 Michael Albinus <michael.albinus@gmx.de>
1761
1762 * dbusbind.c (Fdbus_call_method)
1763 (Fdbus_call_method_asynchronously): Use English numeric format for
1764 timeout values in doc string.
1765
d9da2f45
KH
17662009-08-25 Kenichi Handa <handa@m17n.org>
1767
ef73e7be
KH
1768 * alloc.c (mark_char_table): New function.
1769 (mark_object): Use mark_char_table for a char-table.
1770
d9da2f45
KH
1771 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1772 (CHAR_TABLE_REF): Use it.
1773
c8edcc01
KR
17742009-08-23 Ken Raeburn <raeburn@raeburn.org>
1775
1776 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1777 before invoking the newly build emacs to check for load-path
1778 shadowing.
1779
7763401b
GM
17802009-08-22 Glenn Morris <rgm@gnu.org>
1781
1782 * Makefile.in (bootstrap_exe): New variable.
1783 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1784 Use ${bootstrap_exe}.
1785
729eadda
EZ
17862009-08-22 Eli Zaretskii <eliz@gnu.org>
1787
1788 * coding.h (encode_coding_string): Don't encode unibyte strings.
1789 (Bug#4047)
1790
eb4c6ace
MA
17912009-08-22 Michael Albinus <michael.albinus@gmx.de>
1792
1793 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1794
1795 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1796 intended as hotfix only.
1797 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1798
36e34d1b
AR
17992009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1800
1801 * nsterm.m (ns_get_color): Update documentation properly for last
1802 change, and clean up loose ends in the code left by it. Fix
1803 longstanding bug with 16-bit hex parsing, and add support for
1804 yet another X11 format (rgb:r/g/b) for compatibility.
1805 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1806 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1807
f983eb8a
SM
18082009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1809
1810 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1811
3f56d3c6
MA
18122009-08-20 Michael Albinus <michael.albinus@gmx.de>
1813
1814 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1815 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1816 (xd_initialize, xd_pending_messages): Check, whether
1817 $DBUS_SESSION_BUS_ADDRESS is set.
1818
fb641d68
YM
18192009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1820
1821 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1822
1823 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1824
cf59a374
GM
18252009-08-20 Glenn Morris <rgm@gnu.org>
1826
1827 * emacs.c (system-type): Doc fix.
1828
1373f3be
SM
18292009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1830
1831 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1832 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1833
058ed861
MA
18342009-08-18 Michael Albinus <michael.albinus@gmx.de>
1835
1373f3be
SM
1836 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1837 New functions.
058ed861
MA
1838 (xd_initialize): Revert change from 2009-08-16.
1839
563a866e 18402009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1841
1842 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1843 font-group vector, return nil.
5fc05db0 1844
e42bdf01
CY
18452009-08-17 Chong Yidong <cyd@stupidchicken.com>
1846
1847 * process.c (status_notify): Don't perform redisplay.
1848 (Fdelete_process, list_processes_1, process_send_signal):
1849 Expliticly perform redisplay.
1850 (wait_reading_process_output): Always check process status, but
1851 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1852
4230ab74
KR
18532009-08-17 Ken Raeburn <raeburn@raeburn.org>
1854
1373f3be 1855 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1856 (XFLOAT_INIT): New macro for storing a float value.
1857 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1858 * fns.c (sxhash): Copy out the value of a float in order to
1859 examine its bytes.
1860 * dbusbind.c (xd_append_arg): Likewise.
1861
4230ab74
KR
1862 * emacs.c (main): Don't call syms_of_data twice.
1863
a0645cdd
MA
18642009-08-16 Michael Albinus <michael.albinus@gmx.de>
1865
1866 * dbusbind.c (xd_initialize): Add connection file descriptor to
1867 input_wait_mask, in order to let select() detect, whether a new
1868 message has been arrived.
ca4f31ea 1869 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1870
485db0ba
MA
18712009-08-15 Michael Albinus <michael.albinus@gmx.de>
1872
1373f3be
SM
1873 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1874 New functions.
485db0ba
MA
1875
1876 * lisp.h (xd_pending_messages): Declare.
1877
1878 * keyboard.c (readable_events): Call xd_pending_messages.
1879
b5b98ff4
CY
18802009-08-15 Chong Yidong <cyd@stupidchicken.com>
1881
1373f3be 1882 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1883
f8354c6e
CY
1884 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1885
b5b98ff4
CY
1886 * buffer.c (set_buffer_internal_1)
1887 (swap_out_buffer_local_variables): Check for unbound local
1888 variables (Bug#4138).
1889
8b9fc636
EZ
18902009-08-14 Eli Zaretskii <eliz@gnu.org>
1891
1892 * process.c (create_pty): Fix last change.
1893
ce959360
CY
18942009-08-13 Chong Yidong <cyd@stupidchicken.com>
1895
1896 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1897 (xbm_load_image): Caller changed.
64b807c9 1898 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1899
c7baf7e9
NR
19002009-08-13 Nick Roberts <nickrob@snap.net.nz>
1901
1902 * process.c (create_pty): New function.
1903 (Fstart_process): Use it to allow Emacs to just associate a pty
1904 with the buffer. See associated change in gdb-mi.el.
1905 (list_processes_1): Deal with no program name.
1906 (start_process_unwind): Use pid == -2 to mean no process.
1907
1ac9108a
SM
19082009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1909
1910 * cmds.c (nonundocount): New global variable.
1911 (keys_of_cmds): Initialize it.
1912 (Fself_insert_command): Use it to combine upto 20 sequential chars
1913 into a single undo entry, just like the Qself_insert_command code in
1914 keyboard.c does.
1915 Call frame_make_pointer_invisible, also like the Qself_insert_command
1916 code in keyboard.c does.
1917 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1918 than its own local replacement for it.
1919
e267324c
KR
19202009-08-10 Ken Raeburn <raeburn@raeburn.org>
1921
1ac9108a 1922 * fns.c (concat): Don't re-set string length to its current value.
77437343 1923
1ac9108a
SM
1924 * coding.h (decode_coding_string, encode_coding_string):
1925 Use SBYTES macro.
f0bed503 1926
1ac9108a 1927 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1928 (doprnt): Merge with doprnt1, discarding lispstrings code.
1929 * lisp.h (doprnt_lisp): Don't declare.
1930
416e006d
JL
19312009-08-07 Juri Linkov <juri@jurta.org>
1932
1933 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1934
6f7d5780
DN
19352009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1936
1937 * print.c (syms_of_print): Undo previous change.
1938
f19a0f5b
TZ
19392009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1940
1941 * lread.c (read1, syms_of_lread): Read hashtables back from the
1942 readable format.
1943
1944 * print.c (print_preprocess, print_object): Print hashtables fully
1945 and readably.
1946 (syms_of_print): Provide 'hashtable-print-readable.
1947
b9173dc2
AR
19482009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1949
1950 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1951 no family set.
1952 (nsfont_open): Handle case when entity has no family.
1953
1586503c
AR
19542009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1955
1956 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1957 element, not a list, for match case.
1958
087048cd
KH
19592009-07-28 Kenichi Handa <handa@m17n.org>
1960
1961 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1962 rigidly.
1963
1964 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1965 font_parse_xlfd. Check font properties more rigidly.
1966
780c2506
DN
19672009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1968
31fd7c5c
JB
1969 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1970 bsd-common.h.
780c2506 1971
a8c0cc18
KH
19722009-07-27 Kenichi Handa <handa@m17n.org>
1973
1974 * xfaces.c (face_with_height): Call font_clear_prop.
1975
4fbe2306
CY
19762009-07-26 Chong Yidong <cyd@stupidchicken.com>
1977
111d9af3
CY
1978 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1979
1980 * xterm.c (x_term_init): Use Qx.
1981
4fbe2306
CY
1982 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1983
1ac9108a 1984 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1985 (ns_get_color): Revert 2009-07-16 change.
1986
beb0b7f9
EZ
19872009-07-25 Eli Zaretskii <eliz@gnu.org>
1988
1989 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1990 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1991
2baf5e76
KR
19922009-07-25 Ken Raeburn <raeburn@raeburn.org>
1993
1ac9108a
SM
1994 * coding.h (decode_coding_string, encode_coding_string):
1995 Use SCHARS macro.
8890e5f5 1996
2baf5e76 1997 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1998 (load_depth): Delete.
2baf5e76
KR
1999 (Qload_in_progress): New variable.
2000 (load_unwind): Don't reference load_depth or load_in_progress.
2001 (Fload): Likewise; specbind Qload_in_progress instead.
2002 (init_lread): Don't initialize load_depth.
2003 (syms_of_lread): Initialize and protect Qload_in_progress.
2004
1395c6f5
AR
20052009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2006
2007 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2008
4e2f36cf
AR
20092009-07-23 Yavor Doganov <yavor@gnu.org>
2010
2011 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2012
5dd9a6f7
AR
20132009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2014
2015 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2016 Bugs 3792, 3720, 2402.
2017 (ns_lookup_indexed_color): Check for bad index.
2018 (ns_index_color): Init unused slot to 0.
2019 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2020 Bug 3714, possibly 3082.
5dd9a6f7 2021
c902b920
JR
20222009-07-22 Jason Rumney <jasonr@gnu.org>
2023
1ac9108a
SM
2024 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2025 Position IME window at cursor (Bug#2570).
c902b920
JR
2026 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2027 (globals_of_w32fns): Dynamically load functions required above.
2028
2029 * w32term.c (w32_draw_window_cursor): Send message to reposition
2030 any IME window.
2031
090101cf
CY
20322009-07-21 Chong Yidong <cyd@stupidchicken.com>
2033
2034 * fileio.c: Revert 2009-07-16 changes.
2035 (Vauto_save_include_big_deletions): New variable.
2036 (Fdo_auto_save): Disable auto-save only if
2037 auto-save-include-big-deletions is nil.
2038
e6583e3d
CY
20392009-07-21 Chong Yidong <cyd@stupidchicken.com>
2040
2041 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2042 the overflowed pixels into account (Bug#3879).
2043
ece435a5
KR
20442009-07-21 Ken Raeburn <raeburn@raeburn.org>
2045
2046 * lread.c (load_depth): New variable.
2047 (Fload, load_unwind, init_lread): Set it to the load recursion
2048 depth; set load_in_progress as a simple boolean based on the
2049 current load_depth. (Bug#3892)
2050
40b2d973
AR
20512009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2052
2053 * nsfont.m (ns_has_attribute): Remove.
2054 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2055
10be7e0d
JL
20562009-07-18 Juri Linkov <juri@jurta.org>
2057
2058 * process.c (Fset_process_query_on_exit_flag): Mention killing
2059 a buffer in docstring.
2060
fa055055
KH
20612009-07-17 Kenichi Handa <handa@m17n.org>
2062
2063 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2064
042f7b69
YM
20652009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2066
2067 * nsfns.m (Fns_set_alpha): Remove function.
2068 (syms_of_nsfns): Don't defsubr it.
2069
2070 * nsterm.m (ns_get_color): Remove incompatible color formats.
2071 (ns_color_to_lisp): Generate #rrggbb color format string.
2072
4be941e3
RS
20732009-07-16 Richard Stallman <rms@gnu.org>
2074
2075 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2076 (Fset_buffer_auto_saved): Handle save_length = -2.
2077
4e6b227d
CY
20782009-07-16 Chong Yidong <cyd@stupidchicken.com>
2079
2080 * xterm.c (Qx_gtk_map_stock): New var.
2081
2082 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2083 of calling intern each time.
2084
a1856973
YM
20852009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2086
2087 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2088 does tiling.
2089
2090 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2091
497e54d8
KH
20922009-07-14 Kenichi Handa <handa@m17n.org>
2093
72d36834
KH
2094 * font.c (font_vconcat_entity_vectors): New function.
2095 (struct font_sort_data): New member font_driver_preference.
2096 (font_compare): Check font_driver_preference.
2097 (font_sort_entities): The format of the first argument changed.
2098 (font_delete_unmatched): Likewise.
2099 (font_list_entities): The return type changed.
2100 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2101 (font_find_for_lface): Adjuste for the above changes.
2102 Don't suppress the checking of C even if the repertory supports it.
2103 (Flist_fonts): Adjust for the above changes.
72d36834 2104
1ac9108a
SM
2105 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2106 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2107 Reject a font who has adstyle property that is different from a
2108 langname derived from registry property.
1ac9108a 2109 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2110
b6046155
EZ
21112009-07-13 Eli Zaretskii <eliz@gnu.org>
2112
2113 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2114 local copy of dirfilename.
2115
fb6b6049
KH
21162009-07-13 Kenichi Handa <handa@m17n.org>
2117
e2402a5e
KH
2118 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2119 against max_char.
2120
fb6b6049
KH
2121 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2122 calling XSYMBOL (sym).
2123
65156807
EZ
21242009-07-11 Eli Zaretskii <eliz@gnu.org>
2125
1ac9108a
SM
2126 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2127 New function.
2128 (directory_files_internal) [WINDOWSNT]:
2129 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2130 the filesystem of the directory is fast or slow.
2131
2132 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2133 file name.
2134 (is_slow_fs): New function.
2135 (stat): Use it to determine whether to issue more system calls to
2136 get accurate file attributes, when w32-get-true-file-attributes is
2137 `local'.
2138
e0ab5fcf
JD
21392009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2140
2141 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2142 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2143 parameter font-parameter as default to the font dialog.
2144
784ceded
KH
21452009-07-10 Kenichi Handa <handa@m17n.org>
2146
2147 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2148
fb8edc0b
EZ
21492009-07-09 Eli Zaretskii <eliz@gnu.org>
2150
1ac9108a 2151 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2152
fb8edc0b
EZ
2153 * w32.c (stat): Treat UNC file names as residing on remote
2154 drives. (Bug#3542)
2155
635c75b1
KH
21562009-07-09 Kenichi Handa <handa@m17n.org>
2157
2158 * fontset.c (fontset_find_font): Fix previous change.
2159
c1d5ce94
MA
21602009-07-08 Michael Albinus <michael.albinus@gmx.de>
2161
2162 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2163 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2164 error flag.
2165
edb61b39
KH
21662009-07-08 Kenichi Handa <handa@m17n.org>
2167
374bf7e4
KH
2168 * fontset.c (fontset_find_font): Fix the logic of handling
2169 charset_matched.
2170 (font_for_char): Delete unused var.
2171 (generate_ascii_font_name): Delete it.
2172
edb61b39
KH
2173 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2174
2175 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2176 (encode_coding_sjis): Fix the code range check.
2177
0f3f018c
CY
21782009-07-07 Chong Yidong <cyd@stupidchicken.com>
2179
2180 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2181 (Fexpand_file_name): Copy string data properly (Bug#3772).
2182
fcaf6f3a
JD
21832009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2184
2185 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2186 first MapNotify.
2187
6809ca75
KH
21882009-07-07 Kenichi Handa <handa@m17n.org>
2189
2190 * character.h (unibyte_has_multibyte_table): Delete extern.
2191 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2192
2193 * charset.c (Fset_charset_priority): Update charset_unibyte.
2194 (syms_of_charset): Initialize charset_unibyte.
2195
2196 * character.c (unibyte_has_multibyte_table): Delete it.
2197 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2198 charset_unibyte.
2199 (multibyte_char_to_unibyte_safe): Likewise.
2200 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2201
1ac9108a 2202 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2203 (x_produce_glyphs): Likewise.
2204
2205 * .gdbinit (xcharset): Fix the treating $arg0.
2206
ad9e2d54
EZ
22072009-07-04 Eli Zaretskii <eliz@gnu.org>
2208
2209 Emulation of `getloadavg' on MS-Windows.
2210 * w32.c: Include float.h
2211 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2212 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2213 (get_native_system_info, get_system_times): New functions.
2214 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2215 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2216 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2217 g_b_init_get_system_times, and num_of_processors.
2218
0a3472c7
JR
22192009-07-03 Jason Rumney <jasonr@gnu.org>
2220
2221 * w32term.c (w32_initialize): Use standard types.
2222
80904120
EZ
22232009-07-03 Eli Zaretskii <eliz@gnu.org>
2224
2225 * dired.c (Ffile_attributes): Decode user and group names by the
2226 locale's encoding. (Bug#3443)
2227
6978862d
DN
22282009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2229
f8d23104
DN
2230 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2231 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2232
2233 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2234
2235 * term.c (init_tty): Remove spurious #ifdef.
2236
6978862d
DN
2237 * m/mips.h: Mention this file is also used for netbsd.
2238 * m/pmax.h: Remove file.
2239
e044e4fc
JD
22402009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2241
2242 * xterm.h (struct x_display_info): Add invisible_cursor.
2243 (struct x_output): Add current_cursor.
2244
2245 * xterm.c (XTtoggle_invisible_pointer): New function.
2246 (x_define_frame_cursor): Don't define cursor if invisible or the
2247 same as before. Set current_cursor.
2248 (x_create_terminal): Set toggle_invisible_pointer_hook.
2249
2250 * xfns.c (make_invisible_cursor): New function.
2251 (x_set_mouse_color): Call make_invisible_cursor.
2252 Set current_cursor.
2253 (x_window): Set current_cursor.
2254
2255 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2256
2257 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2258 inserting a character.
2259 (read_avail_input): Call frame_make_pointer_visible.
2260
2261 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2262 (frame_make_pointer_invisible, frame_make_pointer_visible):
2263 New functions.
e044e4fc
JD
2264 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2265
2266 * frame.h: Declare frame_make_pointer_invisible and
2267 frame_make_pointer_visible.
2268 (struct frame): Add pointer_invisible.
2269
574c8efa
JD
22702009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2271
7b507248
JD
2272 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2273 frame isn't visible.
2274 (xg_frame_resized): If width/height is -1, get size of window
2275 from X server.
2276
2277 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2278 for MapNotify.
2279
835bdaa7 2280 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2281 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2282 (flush_and_sync): Reintroduce.
574c8efa 2283
3f1c6666 22842009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2285
31fd7c5c 2286 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2287
2288 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2289 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2290
2291 * frame.h: Declare Qsticky.
2292
cad9ef74
JD
2293 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2294
2295 * nsfns.m (ns_frame_parm_handlers): Ditto.
2296
2297 * frame.c: Declare Qsticky.
2298 (frame_parms): Add sticky.
2299
2300 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2301
2302 * xterm.h: Declare x_set_sticky.
2303
2304 * xterm.c (x_set_sticky): New function.
2305
69b16610
JD
2306 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2307 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2308 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2309
2310 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2311
2312 * frame.c: Qmaximized is new.
2313 (x_set_frame_parameters): Do not handle fullscreen specially.
2314 Only set width and height if explicitly set.
2315 (x_set_fullscreen): Handle Qmaximized.
2316 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2317 (syms_of_frame): Initialize Qmaximized.
2318
1ac9108a
SM
2319 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2320 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2321
2322 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2323 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2324 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2325 set gravity to NorthWestGravity when USE_GTK.
2326 (set_wm_state): New function.
31fd7c5c 2327 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2328 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2329 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2330 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2331 to x_real_positions and x_fullscreen_adjust.
2332
2333 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2334 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2335 flush_and_sync.
2336 (xg_height_changed): New function.
2337 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2338 and gtk_window_set_policy. Set frame gravity after parsing the
2339 geometry string.
3f1c6666
JD
2340 (xg_update_frame_menubar, free_frame_menubar)
2341 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2342 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2343 Remove calls to xg_frame_set_char_size.
2344
fd503d99
KH
23452009-07-01 Kenichi Handa <handa@m17n.org>
2346
2347 * keyboard.c (decode_keyboard_code): New function.
2348 (tty_read_avail_input): Decode the input bytes if necessary.
2349
1ac9108a
SM
2350 * coding.c (setup_coding_system):
2351 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2352 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2353 use Qno_conversion.
2354
24ed93fb
YM
23552009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2356
2357 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2358
99061dfc
CY
23592009-06-30 Chong Yidong <cyd@stupidchicken.com>
2360
1ac9108a 2361 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2362
ff90fbde
JR
23632009-06-30 Jason Rumney <jasonr@gnu.org>
2364
2365 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2366 is already loaded.
2367 Set user model ID if supported (bug#1849).
2368
5f445726
JM
23692009-06-29 Jim Meyering <meyering@redhat.com>
2370
2371 Remove useless if-before-xfree test.
2372 * nsfont.m (nsfont_close): Remove useless test.
2373 * term.c (delete_tty): Likewise.
2374 * w32.c (system_process_attributes): Likewise.
2375 * w32font.c (w32font_close): Likewise.
2376 * xfaces.c (x_free_gc): Likewise.
2377 * xselect.c (buffer): Likewise.
2378
b9607587
AS
23792009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2380
2381 * process.c (send_process): Keep decoded string in a local
2382 variable and protect it from GC. (Bug#3521)
2383
89ba96f4
EZ
23842009-06-28 Eli Zaretskii <eliz@gnu.org>
2385
2386 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2387 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2388
098a1589
CY
23892009-06-28 Chong Yidong <cyd@stupidchicken.com>
2390
485422be
CY
2391 * xdisp.c (start_display, handle_face_prop)
2392 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2393 (redisplay_window, try_window_id, produce_image_glyph):
2394 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2395
098a1589
CY
2396 * xterm.c (x_update_window_begin, x_new_focus_frame)
2397 (x_scroll_bar_handle_click, handle_one_xevent)
2398 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2399 (x_make_frame_visible, x_make_frame_invisible)
2400 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2401 code chunks that are now obsolete.
2402
78c38319
MA
24032009-06-28 Michael Albinus <michael.albinus@gmx.de>
2404
2405 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2406 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2407 for hours, when optimzation is enabled.
2408 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2409 (xd_read_message): Make them static.
2410
4189ed40
CY
24112009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2412
2413 * term.c (turn_on_face): Allow simultaneously bold and dim
2414 terminal faces (Bug#3530).
2415
cd9b5e16
CY
24162009-06-27 Chong Yidong <cyd@stupidchicken.com>
2417
4e23bedb
CY
2418 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2419
cd9b5e16
CY
2420 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2421 truncation glyphs (Bug#3686).
2422
07cc3c35
GM
24232009-06-27 Glenn Morris <rgm@gnu.org>
2424
2425 * m/pmax.h: Restore file, with only netbsd portions.
2426
31fd7c5c 24272009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2428
cd9b5e16 2429 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2430
42d4a64f
KH
24312009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2432
2433 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2434 the arg FORCE_SYMBOL.
2435
930fe55b 24362009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2437
2438 * fontset.c (fontset_find_font): When a usable rfont_def is found
2439 in a fallback font-group, make it the first element of the group.
2440
57ebc3fd
CY
24412009-06-24 Chong Yidong <cyd@stupidchicken.com>
2442
2443 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2444
f084f942
KH
24452009-06-24 Kenichi Handa <handa@m17n.org>
2446
2447 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2448 set for C.
2449 (fontset_font): Record the availability of a font for C both in
2450 the realized fontsets of the current one and the default one.
2451
2f686c87
DN
24522009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2453
2454 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2455 conditional, it is always defined on AIX.
2456
666e158e
MB
24572009-06-23 Miles Bader <miles@gnu.org>
2458
2459 * window.c (Vrecenter_redisplay): New variable.
2460 (syms_of_window): Initialize it.
2461 (Qtty): New extern declaration.
2462 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2463
c6da7cd2
JM
24642009-06-23 Jim Meyering <meyering@redhat.com>
2465
1ac9108a
SM
2466 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2467 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2468 pointer dereferences are guaranteed to be valid.
c6da7cd2 2469
678dca3d
KH
24702009-06-23 Kenichi Handa <handa@m17n.org>
2471
74d75424
KH
2472 * emacs.c (main): Call init_font ().
2473
2474 * font.h (Vfont_log): Extern it.
2475 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2476
2477 * font.c (font_sort_entities, font_list_entities)
2478 (font_matching_entity, font_open_entity)
2479 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2480 (Vfont_log): Delete static.
2481 (font_log_env_checked): Delete this variable.
2482 (font_add_log): Don't check font_log_env_checked.
2483 (font_deferred_log): Check Vfont_log.
2484 (init_font): New function.
2485
678dca3d
KH
2486 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2487
2488 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2489
2490 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2491
2492 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2493
2494 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2495 (face_for_char): Don't call font_deferred_log here.
2496 (font_for_char): Likewise.
2497
8a668709
CY
24982009-06-22 Chong Yidong <cyd@stupidchicken.com>
2499
9a01ee33
CY
2500 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2501 rather than its background_width for drawing the overline and
2502 underline (Bug#489).
2503
2504 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2505 rather than its background_width for drawing the overline and
2506 underline (Bug#489).
ec7c9926
CY
2507 (xg_default_icon_file): New variable.
2508 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2509 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2510
8a668709
CY
2511 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2512 (load_overlay_strings): Remove externs.
2513 (fast_find_position): Function deleted.
2514 (mouse_face_from_buffer_pos): New function, based on
2515 fast_find_position. Correctly handle before-strings,
2516 display-strings, and after-strings (Bug#1220).
2517 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2518
4d4c02d8
CY
25192009-06-21 Chong Yidong <cyd@stupidchicken.com>
2520
1ac9108a 2521 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2522 (move_it_in_display_line_to, move_it_in_display_line_to)
2523 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2524
70243478
CY
25252009-06-21 Chong Yidong <cyd@stupidchicken.com>
2526
2527 * Branch for 23.1.
2528
13087e59
JR
25292009-06-21 Jason Rumney <jasonr@gnu.org>
2530
2531 * w32term.c (keyboard_codepage): New static variable.
2532 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2533 (w32_read_socket) [WM_CHAR]: Use it to decode character
2534 input (bug#3237).
2535 (w32_initialize): Initialize it.
2536 (codepage_for_locale): New function.
2537
4735b74e
KR
25382009-06-20 Ken Raeburn <raeburn@raeburn.org>
2539
2540 * process.c (status_message): Pass Faset index argument as a lisp
2541 object, so as to work with USE_LISP_UNION_TYPE.
2542
0e727afa
YM
25432009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2544
2545 * coding.c (Ffind_coding_systems_region_internal):
2546 Cache checked characters.
2547
cf299835
KH
25482009-06-18 Kenichi Handa <handa@m17n.org>
2549
1ac9108a 2550 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2551
90f20d94
AS
25522009-06-18 Andreas Schwab <aschwab@redhat.com>
2553
2554 * xdisp.c (redisplay_internal): Check that the frame is still
2555 live after redisplay of its windows.
2556 (redisplay_windows): Check that the window is still live.
2557
7f1faf1c
KH
25582009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2559
2560 * coding.c (detect_coding_utf_16): Fix previous change.
2561
cc13543e
KH
25622009-06-16 Kenichi Handa <handa@m17n.org>
2563
2564 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2565 UTF-16 by checking the dispersion of Eth and Oth bytes.
2566
977b85f4
AS
25672009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2568
2569 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2570
66bd43d1
KH
25712009-06-15 Kenichi Handa <handa@m17n.org>
2572
2573 * process.c (status_message): Fix previous change. Be sure to
2574 decode a localized string.
2575
cb5ca9c5
YM
25762009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2577
2578 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2579 add comment explaining why.
2580
ec7709ba 25812009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2582
ec7709ba 2583 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2584
4b7f335c
AR
25852009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2586
2587 * nsfont.m (ns_attribute_value): Remove.
2588 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2589 (ns_has_attribute): Shrink the normal range.
2590 (ns_findfonts): Don't worry about requested spec in determining
2591 need for synthItal.
e41820ee 2592 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2593
73b26103
SZ
25942009-06-14 Seiji Zenitani <zenitani@mac.com>
2595
2596 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2597
5753e4da
KH
25982009-06-11 Kenichi Handa <handa@m17n.org>
2599
2600 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2601 overhang for the static composition case.
2602
3561b671
KH
26032009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2604
5753e4da
KH
2605 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2606 overhang for the automatic composition case.
2607
3561b671
KH
2608 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2609 composition case.
2610
852bbd41
CY
26112009-06-10 Chong Yidong <cyd@stupidchicken.com>
2612
2613 * xdisp.c (get_next_display_element): When handling wrap-prefix
2614 and line-prefix, treat \n as a control character (bug#3502).
2615
9903d1e6
KH
26162009-06-10 Kenichi Handa <handa@m17n.org>
2617
2618 * font.c (font_parse_family_registry): Fix for one-char foundry.
2619 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2620
0bcbaaaa
CY
26212009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2622
2623 * process.c (status_message): Fix handling of multibyte signal
2624 string (Bug#3499).
2625
40aa3f13
JM
26262009-06-09 Jim Meyering <meyering@redhat.com>
2627
1f80c7e2
CY
2628 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2629 color name is missing.
40aa3f13 2630
72d51285
KH
26312009-06-09 Kenichi Handa <handa@m17n.org>
2632
2633 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2634 FROM-CODE and TO-CODE are codepoints of CHARSET.
2635
c1d04d84
AR
26362009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2637
2638 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2639
26402009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2641
2642 Changes to support :script/:lang/:otf in NS font driver.
2643 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2644 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2645 indicate not part of font driver interface, and change callers.
2646 (ns_get_family): Remove pointless null check.
2647 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2648 ns_spec_to_descriptor, ns_descriptor_to_entity.
2649 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2650 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2651 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2652 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2653 (ns_get_req_script, ns_accumulate_script_ranges)
2654 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2655 New functions.
2656 (nsfont_list, nsfont_match): Use ns_findfonts.
2657 (nsfont_open): Use font descriptor instead of traits.
2658 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2659 (dump_glyphstring): Rename to ns_dump_glyphstring.
2660
c7eb9816
AR
2661 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2662
c1d04d84
AR
2663 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2664
2665 * fontset.c (fontset_from_font): Remove NS-specific code.
2666
ec7709ba 26672009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2668
2669 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2670 nonactive windows.
2671
31fd7c5c 26722009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2673
1ac9108a 2674 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2675
68852c13 26762009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2677
2678 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2679
6756cd1d
CY
26802009-06-07 Chong Yidong <cyd@stupidchicken.com>
2681
2682 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2683 account for the overflowing of newlines into the last glyph on the
2684 display line (Bug#3482).
2685
28bf482a
DR
26862009-06-05 David Reitter <david.reitter@gmail.com>
2687
ec7709ba
JB
2688 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2689 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2690 Fns_selection_exists_p, Fns_selection_owner_p.
2691
fdb55376
JR
26922009-06-03 Jason Rumney <jasonr@gnu.org>
2693
2694 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2695 available. (Bug#3379)
2696
05129fbe
KH
26972009-05-29 Kenichi Handa <handa@m17n.org>
2698
1ac9108a
SM
2699 * coding.c (get_translation_table):
2700 Check Venable_character_translation.
05129fbe 2701
ec7709ba 27022009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2703
ec7709ba
JB
2704 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2705 (x_make_frame_visible): Move frame to front rather than calling
15891144 2706 ns_raise_frame().
ec7709ba 2707 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2708 isn't key window.
ec7709ba 2709 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2710 drawRect may be called by NSView even if the frame is hidden.
2711
ec7709ba
JB
2712 * nsfns.m (Fx_create_frame): Follow other ports in
2713 determining visibility; default to t. Ensure async_visible is set.
15891144 2714
21f73755
EZ
27152009-05-23 Eli Zaretskii <eliz@gnu.org>
2716
2717 * dired.c (Ffile_attributes): Doc fix.
2718
34001e41
CY
27192009-05-22 Chong Yidong <cyd@stupidchicken.com>
2720
2721 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2722
46306a17
SM
27232009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2724
2725 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2726 and xfont_scratch_props.
2727 (syms_of_xfont): Do it here instead.
2728 (xfont_find_ccl_program): Delete, unused.
2729 (xfont_open): Delete unused var `i'.
2730
ef6e0694
KH
27312009-05-21 Kenichi Handa <handa@m17n.org>
2732
2733 * fontset.c (Qlatin): Don't make it static.
2734
46306a17
SM
2735 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2736 New functions.
ef6e0694
KH
2737 (xfont_scripts_cache, xfont_scratch_props): New variables.
2738 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2739 (xfont_list_pattern): Argument changed. Callers changed.
2740 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2741 (xfont_list): Don't reject a font spec with :script property.
2742 (xfont_has_char): Fix setting of encoding.
2743 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2744 xfont_scratch_props.
2745
27462009-05-19 Kenichi Handa <handa@m17n.org>
2747
46306a17 2748 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2749 Callers changed.
2750
27512009-05-18 Kenichi Handa <handa@m17n.org>
2752
2753 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2754
ac71ced7
SM
27552009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2756
2757 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2758 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2759
1c6d1051
YM
27602009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2761
2762 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2763 (x_delete_terminal): Dissociate resource database from display and
2764 then call XrmDestroyDatabase before closing display.
2765
9b9b779c
AR
27662009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2767
2768 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2769 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2770 whether selected frame is viable before raising it (based on patch
2771 by David Reitter), and improve commentary.
2772 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2773
cccd42d5
KH
27742009-05-15 Kenichi Handa <handa@m17n.org>
2775
2776 * font.c (Ffont_spec): Check arguments.
2777
337fbd17
CY
27782009-05-14 Chong Yidong <cyd@stupidchicken.com>
2779
2780 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2781 weight when testing attributes (Bug#3282).
2782
47a6002f
JD
27832009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2784
2785 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2786 what we expect to get in the next ConfigureNotify event.
2787
9cb363db
YM
2788 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2789 before Xft one (Bug#1696).
2790
b9126609
CY
27912009-05-07 David Reitter <david.reitter@gmail.com>
2792
2793 * nsfns.m (Fx_display_planes): Compute bitplanes using
2794 NSBitsPerPixelFromDepth (Bug#3207).
2795
27a69fd9
CY
27962009-05-10 Chong Yidong <cyd@stupidchicken.com>
2797
2798 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2799
00f37552
TTN
28002009-05-10 Ulrich Mueller <ulm@gentoo.org>
2801
2802 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2803
2d82a920
DR
28042009-05-07 David Reitter <david.reitter@gmail.com>
2805
ec7709ba
JB
2806 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2807 Respect mouse face background.
2d82a920 2808
46b0d52d
DR
28092009-05-07 David Reitter <david.reitter@gmail.com>
2810
ec7709ba
JB
2811 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2812 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2813 in ns_update_begin and ns_update_end.
2814
ce1b23bb
SM
28152009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2816
5996e1b7
SM
2817 * nsfns.m (ns_get_screen): Rewrite.
2818 Don't presume selected-frame is of type `ns'.
2819
ba98e3a0
SM
2820 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2821 all drivers.
2822
ce1b23bb
SM
2823 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2824
bcda200f
YM
28252009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2826
2827 * keyboard.h (add_user_signal): Fix typo in extern.
2828
2829 * lisp.h (add_user_signal): Remove extern.
2830
2831 * unexelf.c (unexec): Consider a section to precede the .bss section
2832 if its addresses overlap that of .bss.
2833 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2834 instead of dumping process.
2835
864660a2
SM
28362009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2837
2838 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2839
50da4e56
SM
28402009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2841
2842 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2843
51520a1a
DN
28442009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2845
2846 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2847 any statements.
2848
409ea3a1
AS
28492009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2850
59c4c60f
AS
2851 * process.c (read_process_output): Make sure the current buffer is
2852 always restored.
2853
409ea3a1
AS
2854 * coding.c (record_conversion_result): Don't modify
2855 Vlast_code_conversion_error for successful result.
2856 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2857
56f00ed2
KH
28582009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2859
2860 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2861 (load_charset_map): Remove unnecessary code.
56f00ed2 2862
4491c9d2
DR
28632009-04-30 David Reitter <david.reitter@gmail.com>
2864
35f5b128 2865 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2866 through f24.
2867
6970f632
CY
28682009-04-30 Chong Yidong <cyd@stupidchicken.com>
2869
2870 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2871
2872 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2873 face_at_buffer_position.
2874 (face_before_or_after_it_pos, get_next_display_element)
2875 (note_mouse_highlight): Update face_at_buffer_position call.
2876
2877 * term.c (term_mouse_highlight):
2878 * msdos.c (IT_note_mouse_highlight):
2879 * fontset.c (Finternal_char_font):
35f5b128 2880 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2881
2882 * dispextern.h (face_at_buffer_position): Update prototype.
2883
0c616f63
KH
28842009-04-30 Kenichi Handa <handa@m17n.org>
2885
35f5b128 2886 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2887
ad3aaf33
AS
28882009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2889
2890 * callproc.c (Fcall_process): Fix GC protection. Make sure
2891 current buffer is always restored.
2892
c3c963a0
YM
28932009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2894
2895 * atimer.c (init_atimer): Also clear stopped_atimers.
2896
2897 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2898
7e3386cb
YM
2899 * process.c (create_process): Clean up merger residues of
2900 2008-07-17 change.
2901
91f68422
CY
29022009-04-29 Ulrich Mueller <ulm@gentoo.org>
2903
2904 * lread.c (Vread_circle): New variable.
2905 (read1): Disable recursive read if Vread_circle is nil.
2906
24b34550
KH
29072009-04-29 Kenichi Handa <handa@m17n.org>
2908
2909 * fontset.h (set_default_ascii_font): Delete extern.
2910
2911 * fontset.c (set_default_ascii_font): Delete this unused function.
2912
2913 * frame.c (x_set_font): When ARG is a font-object, check if the
2914 font-object matches with the ASCII font-spec of the frame's
9c358bda 2915 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2916
77bf07e1
AS
29172009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2918
2919 * fns.c (Flocale_info): Protect vector from GC during decoding.
2920
2921 * process.c (Fstart_process): Protect argv strings from GC during
2922 encoding.
2923
2c55aacf
AS
29242009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2925
2926 * sysdep.c: Include <ctype.h>.
2927
b892d3c9
DR
29282009-04-27 David Reitter <david.reitter@gmail.com>
2929
35f5b128 2930 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2931 Remove commented-out code.
2932
9d0644c4
JB
29332009-04-26 Johan Bockgård <bojohan@gnu.org>
2934
2935 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2936
b7053016
JR
29372009-04-25 Jason Rumney <jasonr@gnu.org>
2938
2939 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2940
4e8231f3
YM
29412009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2942
2943 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2944 Swap bytes in short integer if fringe bitmap width > 8.
2945
493dcf2c
KH
29462009-04-23 Kenichi Handa <handa@m17n.org>
2947
2948 * xfaces.c (Fx_list_fonts): If a font size is specified in
2949 PATTERN, set it in returned scalable fonts.
2950
401e9e57
CY
29512009-04-22 Chong Yidong <cyd@stupidchicken.com>
2952
708e05dc
CY
2953 * keyboard.c (Fset_input_meta_mode): Doc fix.
2954
2955 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2956
1ac9108a 2957 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2958
2959 * coding.c (Fterminal_coding_system): Doc fix.
2960
2961 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2962 (Fx_display_pixel_height, Fx_display_planes)
2963 (Fx_display_color_cells, Fx_server_max_request_size)
2964 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2965 (Fx_display_mm_height, Fx_display_mm_width)
2966 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2967 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2968 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2969 (check_x_display_info): Handle terminal objects instead of
2970 terminal ids.
2971
401e9e57
CY
2972 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2973 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2974 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2975 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2976
df80c7f0
KH
29772009-04-21 Kenichi Handa <handa@m17n.org>
2978
5a8f12af 2979 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2980 (font_score): Check AVGWIDTH too.
908567ef 2981
df80c7f0
KH
2982 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2983 worst case.
1ac9108a
SM
2984 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2985 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2986
705af33f
JR
29872009-04-19 Jason Rumney <jasonr@gnu.org>
2988
2989 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2990 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2991
2992 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2993 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2994 get_phys_cursor_geometry.
2995
b71ac3dd 2996 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2997 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2998 using get_phys_cursor_geometry.
2999
3000 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3001 correctly calculated.
3002
dc2933eb
JD
30032009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3004
1ac9108a
SM
3005 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3006 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3007 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3008 is deprecated.
3009
973e7849
AS
30102009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3011
3012 * font.c (font_put_frame_data): Use xfree instead of free.
3013
314d66f4
JB
30142009-04-17 Juanma Barranquero <lekktu@gmail.com>
3015
3016 * w32font.c (Qja, Qko): Remove declarations.
3017 (syms_of_w32font): Don't DEFSYM them.
3018
cf702558
CY
30192009-04-17 Chong Yidong <cyd@stupidchicken.com>
3020
3021 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3022
3023 * font.h (Qja, Qko): Extern them.
3024
3025 * ftfont.c (Qja, Qko): Remove declarations.
3026
3027 * xfont.c (Qja, Qko): Remove declarations.
3028
b50504f5
KH
30292009-04-17 Kenichi Handa <handa@m17n.org>
3030
bde25748
KH
3031 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3032 string from a vector to handle Latin-1 characters correctly.
3033
b50504f5
KH
3034 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3035 entity even if the cache hits.
3036
f4646fff
AS
30372009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3038
3039 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3040 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3041
e7deaab0
AS
3042 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3043 * lisp.h: Adjust prototypes.
3044
0a0e7d49
CY
30452009-04-16 Chong Yidong <cyd@stupidchicken.com>
3046
3047 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3048 change (Bug#3003).
3049
3c908a57
KH
30502009-04-16 Kenichi Handa <handa@m17n.org>
3051
1ac9108a 3052 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3053
3054 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3055 adstyle.
3056
3057 * ftfont.c (Qja, Qko): Don't make them static.
3058 (enum ftfont_cache_for): New enum.
3059 (fc_charset_table): Undo the previous change.
3060 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3061 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3062 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3063 non-scarable font, try to get AVERAGE_WIDTH.
3064 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3065 Change ft_face_cache from a list of a hash-table. Don't check
3066 `ja' and `ko' adstyle here.
3067 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3068 FTFONT_CACHE_FOR_CHARET.
3069 (ftfont_get_charset): Undo the previous change.
1ac9108a 3070 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3071 (ftfont_close): Likewise.
3072 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3073
3074 * font.c (font_sort_entites): Change the meaning of the arg
3075 BEST-ONLY. Don't optimize for VEC of lenght 1.
3076 (font_select_entity): Just return the value of font_sort_entites.
3077
3078 * xfaces.c (merge_face_vectors): Reflect font properties in
3079 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3080 font_clear_prop if a face attribute doesn't change.
3081
3c908a57
KH
3082 * charset.h (charset_ksc5601): Extern it.
3083
3084 * charset.c (charset_ksc5601): New variable.
3085 (Fdefine_charset_internal): Set charset_ksc5601.
3086 (init_charset_once): Initialize charset_ksc5601 to -1.
3087
d65859c3
DN
30882009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3089
3090 * fileio.c (history_delete_duplicates): Remove unused declaration.
3091
3092 * callint.c (history_delete_duplicates): New declaration.
3093 (Fcall_interactively): Remove command history duplicates when
3094 history_delete_duplicates is true.
3095
3ba010e5
EZ
30962009-04-14 Eli Zaretskii <eliz@gnu.org>
3097
3098 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3099
06f19b91
KH
31002009-04-14 Kenichi Handa <handa@m17n.org>
3101
3102 * font.c (Ffont_info): Fix docstring. Fix the second element of
3103 the returned value (bug#2949).
3104
2cce8bfc
CY
31052009-04-14 Chong Yidong <cyd@stupidchicken.com>
3106
3107 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3108
d156542d
KH
31092009-04-14 Kenichi Handa <handa@m17n.org>
3110
3111 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3112 encoding charset is ascii_compatible.
3113
3114 * charset.c (Fdefine_charset_internal): Make charset
3115 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3116 code_offset is 0, and covers all ASCII characters.
3117
86fa089e
SM
31182009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3119
3120 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3121 (ns_string_to_pasteboard_internal):
3122 * nsmenu.m (process_dialog):
3123 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3124 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3125 * lisp.h (Fx_load_color_file): Declare.
3126
a8a3728b
KH
31272009-04-13 Kenichi Handa <handa@m17n.org>
3128
1ac9108a 3129 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3130 (font_select_entity): Suppress the code to optimize for the same
3131 kind of fonts.
3132 (font_load_for_lface): Get a font that supports at least ASCII
3133 characters.
3134
3135 * ftfont.c (Qja, Qko): New variables.
3136 (fc_charset_table): Delete uniquifier data for iso8859-1.
3137 (ftfont_get_latin1_charset): New function.
3138 (get_adstyle_property): New function.
3139 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3140 bitmap fonts.
3141 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3142 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3143 `ko' or `ja'.
3144 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3145 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3146 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3147 property.
3148 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3149 (syms_of_ftfont): DEFSYM Qja and Qko.
3150
483670b5
KH
31512009-04-09 Kenichi Handa <handa@m17n.org>
3152
12b55765
KH
3153 * charset.c (map_charset_chars): For a charset of `superset'
3154 method, fix calculation of code range.
3155
483670b5
KH
3156 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3157 from the list of extra properties.
3158 (font_clear_prop): Be sure to delete `:name' font property.
3159
57d3b93b
KH
31602009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3161
b4b2c2ca
YM
3162 * dispnew.c (redraw_overlapping_rows): Fix detection of
3163 overlapping for topmost and bottommost rows.
3164
1ac9108a 3165 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3166
472c3609
JR
31672009-04-06 Jason Rumney <jasonr@gnu.org>
3168
3169 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3170
ab193662
KH
31712009-04-06 Kenichi Handa <handa@m17n.org>
3172
3173 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3174
3175 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3176
0c26f026
KH
31772009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3178
3179 * ftfont.c (ftfont_open): Fix checking of the return value of
3180 FT_Load_Char. Fix setting font->underline_thickness.
3181
e173bbce
CY
31822009-04-04 Chong Yidong <cyd@stupidchicken.com>
3183
3184 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3185 (Fterminal_parameters, Fterminal_parameter)
3186 (Fset_terminal_parameter): In doc string, refer to terminal
3187 objects rather than terminal ids.
3188
693a2698
EZ
31892009-04-04 Eli Zaretskii <eliz@gnu.org>
3190
3191 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3192 ret_lim_data. (Bug#2867)
3193
d5221487
CY
31942009-04-03 Chong Yidong <cyd@stupidchicken.com>
3195
3196 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3197 so they don't get wider than the window, matching 2006-01-23
3198 change to the partner function in xdisp.c (Bug#2800).
3199
223509a3
KH
32002009-04-03 Kenichi Handa <handa@m17n.org>
3201
3202 * print.c (print_object): Make each lowest sub_char_table start a
3203 new line (Bug#2866).
3204
74fcd0b1
KH
32052009-04-02 Kenichi Handa <handa@m17n.org>
3206
3207 * fontset.c (fontset_font): Record no-font when a fontset
3208 explicitly tells not to try another font-specs.
3209
c542407d
SM
32102009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3211
3212 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3213
e3869731
KH
32142009-03-30 Kenichi Handa <handa@m17n.org>
3215
d8d2f142
KH
3216 * fontset.c (fontset_from_font): Specify only registry in a
3217 font-spec for all characters supported by that registry.
3218
e3869731
KH
3219 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3220 even if HAVE_M17N_FLT is not defined.
3221
5da5f805
CY
32222009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3223
3224 * ftfont.c: Conditionalize prototyping and use of
3225 ftfont_variation_glyphs.
3226
ab226c50
SM
32272009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3228
9628fed7
SM
3229 * frame.c (delete_frame): Work around compiler bug.
3230
3231 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3232 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3233 Some more EMACS_INT.
3234 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3235
3236 * xdisp.c (dump_glyph): Fix typo.
3237
ae19ba7c
SM
3238 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3239 (adjust_markers_gap_motion, adjust_markers_for_delete)
3240 (adjust_markers_for_insert, adjust_point)
3241 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3242 (make_gap, copy_text, count_size_as_multibyte, insert)
3243 (insert_and_inherit, insert_before_markers)
3244 (insert_before_markers_and_inherit, insert_1)
3245 (count_combining_before, count_combining_after, insert_1_both)
3246 (insert_from_string, insert_from_string_before_markers)
3247 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3248 (insert_from_buffer_1, adjust_after_replace)
3249 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3250 (replace_range_2, del_range, del_range_1, del_range_byte)
3251 (del_range_both, del_range_2, modify_region)
3252 (prepare_to_modify_buffer, signal_before_change)
3253 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3254 for buffer positions and sizes.
3255 * lisp.h: Adjust prototypes accordingly.
3256
3257 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3258 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3259 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3260
ab226c50
SM
3261 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3262
46dfb8fb
JD
32632009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3264
3265 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3266 lines and columns so we keep the same pixel height and width.
3267
3268 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3269 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3270 (x_handle_net_wm_state): New function to update frame parameter
3271 fullscreen.
3272 (x_term_init): Initialize atoms for _NET_WM_STATE.
3273
3274 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3275
d347e494
SM
32762009-03-27 Kevin Ryde <user42@zip.com.au>
3277
3278 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3279 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3280 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3281 (Fgpm_mouse_stop): Pass that new parameter.
3282 * termhooks.h (close_gpm): Adjust prototype.
3283
84db11d6
SM
32842009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3285
c95a5008
SM
3286 * lisp.h (Fx_focus_frame): Declare.
3287
84db11d6
SM
3288 * callint.c (Fcall_interactively): For '^' just delegate the work to
3289 handle-shift-selection.
3290 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3291
0a1958d6
CY
32922009-03-24 Chong Yidong <cyd@stupidchicken.com>
3293
0bfdff23
CY
3294 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3295
0a1958d6
CY
3296 * data.c (Qinteractive_form): New variable.
3297 (Finteractive_form): Use it.
3298
3299 * eval.c (Fcommandp): Use Qinteractive_form.
3300
58aec0d6
JR
33012009-03-24 Jason Rumney <jasonr@gnu.org>
3302
3303 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3304 Calculate total size precisely. Decode environment variables
3305 before substituting. (Bug#38)
3306
553dd618
KH
33072009-03-24 Kenichi Handa <handa@m17n.org>
3308
3309 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3310 encoding (Bug#2722).
553dd618 3311
c39ea606
JD
33122009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3313
3314 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3315 that gdpy is set.
3316
bc9b2b5e
AM
33172009-03-22 Alan Mackenzie <acm@muc.de>
3318
3319 * callint.c (Finteractive): Clarify the doc string - even
3320 promptless elements need \n separators.
3321
9f995a76
JR
33222009-03-22 Jason Rumney <jasonr@gnu.org>
3323
3324 * w32term.c (syms_of_w32term): Doc fix for
3325 x-use-underline-position-properties.
3326
22749e9a
EZ
33272009-03-21 Eli Zaretskii <eliz@gnu.org>
3328
3329 * w32.c (getpwuid): Change argument type to unsigned.
3330 (struct w32_id): Change type of `rid' member to unsigned.
3331 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3332 argument ID to unsigned. All callers changed.
3333 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3334
e00553bf
EZ
33352009-03-20 Eli Zaretskii <eliz@gnu.org>
3336
3337 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3338 negative, produce a float value.
3339
3340 * dired.c (make_uid, make_gid): New functions.
3341 (Ffile_attributes): Use them to avoid negative UID and GID.
3342
f761d6b6
JB
33432009-03-20 Juanma Barranquero <lekktu@gmail.com>
3344
3345 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3346 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3347 Fix typos in docstrings.
3348
d507f8d7
KH
33492009-03-19 Kenichi Handa <handa@m17n.org>
3350
3351 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3352 changed, use font_load_for_lface to get a new font object.
3353 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3354
3355 * frame.c (x_set_font): Handle the case that ARG is a cons.
3356
c68845e0
GM
33572009-03-19 Glenn Morris <rgm@gnu.org>
3358
3359 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3360
bfa49dd1
CY
33612009-03-19 Chong Yidong <cyd@stupidchicken.com>
3362
3363 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3364
8458d4c1
KH
33652009-03-19 Kenichi Handa <handa@m17n.org>
3366
3367 * charset.c (load_charset_map_from_file): When a mapfile can't be
3368 loaded, signal an error.
3369
78e7d1fe
EZ
33702009-03-18 Eli Zaretskii <eliz@gnu.org>
3371
3372 * dired.c (Ffile_attributes): Make sure UID and GID are always
3373 positive, even if the value is too large for a positive EMACS_INT.
3374 Doc fix.
3375
3376 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3377
5da9fdfa
YM
33782009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3379
3380 * xmenu.c (xdialog_show): Move Fredisplay call ...
3381 (Fx_popup_dialog): ... here.
3382
7519c40d
SM
33832009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3384
3385 * dired.c (file_name_completion): Disable the first optimization just
3386 installed, since it is not implemented correctly.
3387
2cd298e2
SM
33882009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3389
3390 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3391 only if the entry can affect bestmatch.
2cd298e2
SM
3392 Stop the search early, as Ftry_completion already does.
3393
48d37adf
CY
33942009-03-17 Chong Yidong <cyd@stupidchicken.com>
3395
e10c9c93 3396 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3397
9286b16a
CY
33982009-03-15 Chong Yidong <cyd@stupidchicken.com>
3399
3400 * keyboard.c (parse_menu_item): Don't display remappings as menu
3401 equivalent bindings (Bug#788).
3402
f7b146dc
JR
34032009-03-15 Jason Rumney <jasonr@gnu.org>
3404
3405 * w32term.h (WM_EMACS_PAINT): New message.
3406 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3407 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3408 before passing to lisp thread. (Bug#950)
3409
f761d6b6 34102009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3411
d93f9575
CY
3412 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3413 variable as it was never reset.
3414 (ns_term_init): Remove initialization of Lisp-settable defaults
3415 and ns_expand_space.
3416 (-setPanelFromDefaultValues): Remove ns_expand_space.
3417 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3418 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3419 i.e. no additional spacing, similar to Carbon port.
3420
d93f9575
CY
3421 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3422 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3423
305018ec
JD
34242009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3425
3426 * sound.c (alsa_configure): Remove call to deprecated
3427 snd_pcm_sw_params_set_xfer_align.
3428
f761d6b6 34292009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3430
3431 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3432 after clicking in a detached tool bar.
3433 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3434
46e722a9
SM
34352009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3436
348db3dd
SM
3437 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3438 int/Lisp_Object mixup).
46e722a9 3439
a3d16f39
KH
34402009-03-13 Kenichi Handa <handa@m17n.org>
3441
3442 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3443 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3444 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3445 (set_fontset_font): Change ARG to a vector. Handle range_list in
3446 ARG correctly.
3447 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3448 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3449 the above change.
3450 (fontset_from_font): Fix previous change.
fe24f56a 3451 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3452 entry. If FONTSET is the default fontset, don't set the extra
3453 slot of the returning char-table.
3454
b066e6b6
JB
34552009-03-12 Juanma Barranquero <lekktu@gmail.com>
3456
3457 * nsfns.m (Fx_close_connection): Doc fix.
3458 (Fns_do_applescript): Reflow docstring.
3459 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3460 (Fx_display_pixel_width, Fx_display_pixel_height)
3461 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3462 Fix typos in docstrings.
3463 (Fns_set_alpha): Fix typos in error messages.
3464
d472514e 34652009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3466
d472514e 3467 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3468 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3469 were used for such events.
3470
d472514e
JB
3471 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3472 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3473
d472514e 3474 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3475 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3476
fb930676
KH
34772009-03-11 Kenichi Handa <handa@m17n.org>
3478
ff85581a
KH
3479 * font.h (font_open_by_spec): Extern it.
3480
c50b7e98
KH
3481 * font.c (font_open_by_spec): New function.
3482 (font_open_by_name): Use font_open_by_spec.
3483
fb930676
KH
3484 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3485 fontset of the frame.
3486
3487 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3488 modify the default font of frames that use this fontset.
3489 (num_auto_fontsets): New variable.
3490 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3491 name. Be sure to set FONTSET_ASCII to the correct font name.
3492 (update_auto_fontset_alist): New function.
3493
df4e8455
JB
34942009-03-11 Juanma Barranquero <lekktu@gmail.com>
3495
3496 * makefile.w32-in: Update dependencies.
3497
0a375797
AR
34982009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3499
3500 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3501
61313fa3
SM
35022009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3503
3504 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3505
b55103fb
CY
35062009-03-10 Chong Yidong <cyd@stupidchicken.com>
3507
3508 * lread.c (Feval_buffer): Doc fix.
3509
dde2559c
KH
35102009-03-09 Kenichi Handa <handa@m17n.org>
3511
3512 * charset.c (Qfile_name_handler_alist): Extern it.
3513 (load_charset_map_from_file): Temporarily bind
3514 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3515
df4e8455 35162009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3517
47f588bb
GM
3518 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3519 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3520
4ddf94bd
AR
35212009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3522
4c9bdfc2
AR
3523 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3524 (x_set_window_size): Change back to calculated method of setting
3525 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3526 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3527 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3528
fe41ae9e
AR
3529 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3530
4c9bdfc2
AR
3531 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3532 accelerator in parens under GNUstep.
3533
825d0875
KH
35342009-03-06 Kenichi Handa <handa@m17n.org>
3535
3536 These changes are to detect incorrect composition sequence without
f3b3be74 3537 looking ahead the source. (Bug#2370)
825d0875
KH
3538
3539 * coding.h: Include "composite.h".
3540 (enum compisition_state): New enum.
3541 (struct compisition_status): New struct.
3542 (struct iso_2022_spec): New member cmp_status.
3543 (struct emacs_mule_spec): New struct.
3544 (struct coding_system): New members ctext_extended_segment_len and
3545 embedded_utf_8. Change the union member
3546 spec.emacs_mule_full_support to spec.emacs_mule.
3547
3548 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3549 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3550 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3551 (ADD_COMPOSITION_DATA): New arg nbytes.
3552 (emacs_mule_char): New arg cmp_status.
3553 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3554 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3555 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3556 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3557 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3558 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3559 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3560 (EMACS_MULE_COMPOSITION_END): New macro.
3561 (emacs_mule_finish_composition): New function.
3562 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3563 (decode_coding_emacs_mule): Avoid long looking ahead while
3564 handling composition.
3565 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3566 (ENCODE_COMPOSITION_RULE): New macro.
3567 (finish_composition): New function.
3568 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3569 (DECODE_COMPOSITION_START): New implementation.
3570 (DECODE_COMPOSITION_END): Likewise.
3571 (STORE_COMPOSITION_RULE): New macro.
3572 (decode_coding_iso_2022): Avoid long looking ahead while handling
3573 composition, CTEXT extended segment, and embedded UTF-8.
3574 (setup_coding_system): For a coding of type iso-2022, reset
3575 CODING_ISO_EXTSEGMENT_LEN (coding) and
3576 CODING_ISO_EMBEDDED_UTF_8 (coding).
3577 (get_translation): Delete arguments last_block, from_nchars,
3578 to_nchars. Callers changed.
3579 (produce_chars): Don't modify charbuf. Adjusted for the change of
3580 get_translation.
98a326f7 3581 (produce_composition): Adjust for the new annotation sequence.
825d0875 3582 (handle_composition_annotation): Likewise.
98a326f7 3583 (consume_chars): Adjust for the change of get_translation.
825d0875 3584
ccbc4452
AR
35852009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3586
4ddf94bd 3587 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3588
988a7ddb
KH
35892009-03-05 Kenichi Handa <handa@m17n.org>
3590
3591 * font.c (font_select_entity): New function.
3592 (font_find_for_lface): Use font_select_entity to select a font.
3593
3594 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3595 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3596 font with C restriction.
3597
98a326f7 35982009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3599
be1bce46 3600 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3601
10ea2b82
JR
36022009-03-04 Jason Rumney <jasonr@gnu.org>
3603
2c93b248 3604 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3605 characters that have already been read. (Bug#2569)
2c93b248 3606
10ea2b82
JR
3607 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3608 Log an error message if check_image_size failed.
3609 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3610 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3611
71a0c011
EZ
36122009-03-02 Eli Zaretskii <eliz@gnu.org>
3613
3614 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3615 when decoding process output.
3616
2f63bba8
RS
36172009-03-01 Richard M Stallman <rms@gnu.org>
3618
3619 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3620
3621 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3622
0a9564cb
EZ
36232009-02-28 Eli Zaretskii <eliz@gnu.org>
3624
3625 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3626 (decode_coding_emacs_mule, decode_coding_iso_2022)
3627 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3628 (decode_coding_raw_text, decode_coding_charset)
3629 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3630 Honor inhibit-eol-conversion. (Bug #2186)
3631
449148b3
JR
36322009-02-28 Jason Rumney <jasonr@gnu.org>
3633
3634 * coding.c (detect_coding_charset): If not checking latin extra,
3635 fail on characters between 0x80 and 0xA0. (Bug#2354)
3636
a4aee864
EZ
36372009-02-28 Eli Zaretskii <eliz@gnu.org>
3638
3639 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3640 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3641
d88bee5a
GM
36422009-02-27 Glenn Morris <rgm@gnu.org>
3643
3644 * callint.c (Finteractive): Doc fix.
3645
a808f22d
KH
36462009-02-27 Kenichi Handa <handa@m17n.org>
3647
3648 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3649
caf8d60c
CY
36502009-02-27 Chong Yidong <cyd@stupidchicken.com>
3651
3652 * font.c (font_style_to_value): Set value for unknown symbols to
3653 100 instead of 255.
b61137ea
CY
3654 (weight_table, slant_table, width_table): Treat "unspecified" as
3655 the default value.
caf8d60c 3656
1a0de25c
JB
36572009-02-26 Juanma Barranquero <lekktu@gmail.com>
3658
3659 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3660
8fc45744
JB
36612009-02-25 Juanma Barranquero <lekktu@gmail.com>
3662
107bd7d1
JB
3663 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3664 error as soon as a recursive load is detected.
8fc45744 3665
f097e223
AR
36662009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3667
3668 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3669 before caching.
3670
8810a12f
KH
36712009-02-24 Kenichi Handa <handa@m17n.org>
3672
3673 * fontset.c (fontset_find_font): Fix the condition for checking
3674 unavailable font.
3675
2c7d1565
GM
36762009-02-24 Glenn Morris <rgm@gnu.org>
3677
3678 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3679 whitespace that confuses documentation.
3680
a20878b6
MB
36812009-02-23 Miles Bader <miles@gnu.org>
3682
3683 * process.c (Flist_system_processes, Fprocess_attributes)
3684 (syms_of_process): Rename `system-process-attributes' to
3685 `process-attributes'.
3686
b3b58c01
AS
36872009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3688
1b3b981b
AS
3689 * coding.h (struct coding_system): Make safe_charsets a pointer to
3690 unsigned char.
3691 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3692 being 255.
3693 (SAFE_CHARSET_P): Likewise.
3694 (setup_iso_safe_charsets): Properly setup safe_charsets.
3695 (Fdefine_coding_system_internal): Likewise.
3696 (setup_coding_system): Likewise. Remove unneeded casts.
3697 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3698 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3699 unneeded casts.
3700
b3b58c01
AS
3701 * insdel.c (del_range_2): Don't modify gap contents when called
3702 from decode_coding_object. (Bug#1809)
3703
0b6f228c
CY
37042009-02-21 Chong Yidong <cyd@stupidchicken.com>
3705
3706 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3707 Qfont_object.
3708 (Ftype_of): Recognize font objects.
3709
3710 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3711
3712 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3713 moved to data.c.
3714
52f8870b
AR
37152009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3716
3717 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3718 async_iconified. Based on a patch by Christian Lynbech
3719 <christian.lynbech@tieto.com>.
3720 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3721
7087d5e9
GM
37222009-02-20 Glenn Morris <rgm@gnu.org>
3723
3724 * syntax.c (Fskip_chars_forward): Fix doc typo.
3725
41d2ceef
CY
37262009-02-20 Chong Yidong <cyd@stupidchicken.com>
3727
3728 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3729
1a3b7ca6
CY
37302009-02-19 Chong Yidong <cyd@stupidchicken.com>
3731
3732 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3733
73cce38d
KH
37342009-02-19 Kenichi Handa <handa@m17n.org>
3735
3736 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3737 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3738
a51092ee
DN
37392009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3740
3741 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3742
c423ecca
KH
37432009-02-18 Kenichi Handa <handa@m17n.org>
3744
3745 * font.c (font_check_otf_features): Fix handling of `nil' element.
3746 (Ffont_spec): Describe :lang and :otf in the docstring.
3747
4c1958f4
AS
37482009-02-16 Andreas Schwab <schwab@suse.de>
3749
3750 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3751 string.
3752
5704f39a
KH
37532009-02-16 Kenichi Handa <handa@m17n.org>
3754
3755 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3756 (Bug#1723)
5704f39a 3757
8f0085aa
CY
37582009-02-14 Chong Yidong <cyd@stupidchicken.com>
3759
a057d86a 3760 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3761
3762 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3763 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3764
aff01dd9
EZ
37652009-02-14 Eli Zaretskii <eliz@gnu.org>
3766
3767 * msdos.c (MAX_SCREEN_BUF): New macro.
3768 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3769 Encode the entire run of glyphs sharing the same face, instead of
3770 doing that one glyph at a time (fixes a bug with displaying
3771 double-size characters).
3772
ba301db3
AR
37732009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3774
3775 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3776
3777 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3778 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3779 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3780
3781 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3782 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3783
51d861de
SM
37842009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3785
3786 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3787 invisible areas.
3788
7fed8996
JR
37892009-02-12 Jason Rumney <jasonr@gnu.org>
3790
631ea4fb
JR
3791 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3792 (add_font_entity_to_list): Call check_face_name even when family
3793 is unspecified.
3794
cb4a3e42
JR
3795 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3796 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3797 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3798
7fed8996 3799 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3800 raster fonts. (Bug#2219)
7fed8996 3801
895416e3
KH
38022009-02-12 Kenichi Handa <handa@m17n.org>
3803
3804 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3805 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3806 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3807 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3808 (find_automatic_composition): While looking forward and backward,
3809 check static composition. Fix where to stop looking forward.
3810 (composition_adjust_point): Fix checking of static composition.
3811 (Fcomposition_get_gstring): Pay attention to
1dacf998 3812 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3813
3814 * lisp.h (fast_looking_at): Extern it.
3815
3816 * search.c (fast_looking_at): New function.
3817
51d861de 3818 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3819 <struct glyph>.u.cmp.to.
3820 (append_composite_glyph): Likewise.
3821
51d861de 3822 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3823 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3824 composition.
51d861de 3825 (append_composite_glyph): Adjust for the change of
895416e3
KH
3826 <strcut glyph>.u.cmp.to.
3827
8510724d
JB
38282009-02-11 Juanma Barranquero <lekktu@gmail.com>
3829
3830 * casetab.c (init_casetab_once):
3831 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3832 * font.c (font_update_lface):
3833 * fontset.c (Fnew_fontset):
3834 * ftfont.c (ftfont_drive_otf):
3835 * xfont.c (xfont_open):
3836 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3837
294fa707
SM
38382009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3839
3840 * fileio.c (Fwrite_region): !NILP -> CONSP.
3841
b5bfebec
AS
38422009-02-10 Andreas Schwab <schwab@suse.de>
3843
3844 * process.c (send_process): Properly relocate pointer into data
adab88bd 3845 when using encoded data. (Bug#2272)
b5bfebec 3846
cb84a2be
KH
38472009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3848
3849 * coding.c (detect_coding_charset): Fix previous change.
3850
89e09428
JR
38512009-02-08 Jason Rumney <jasonr@gnu.org>
3852
3853 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3854 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3855
4470a277
AS
38562009-02-07 Andreas Schwab <schwab@suse.de>
3857
3858 * unexelf.c (unexec): Fix error message.
3859
3175b12a
AR
38602009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3861
3862 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3863 when modal window is active. (Bug #2152)
3175b12a
AR
3864 (applicationShouldTerminate:): Remove now-unneeded while loop
3865 around NSRunAlertPanel.
3866
3867 * nsmenu.m (popupSession): New file-global variable.
3868 (pop_down_menu): End the popupSession before closing dialog.
3869 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3870 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3871 don't query NSApp for events (just sleep instead).
3872
8434d0b8
EZ
38732009-02-07 Eli Zaretskii <eliz@gnu.org>
3874
51d861de
SM
3875 * coding.c (syms_of_coding) <translation-table-for-input>:
3876 Modify doc string to discourage use for character code unification.
8434d0b8 3877
aa82edfd
CY
38782009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3879
3880 * atimer.c (run_timers): Update pending_atimers.
3881
2d283c7c
CY
38822009-02-06 Chong Yidong <cyd@stupidchicken.com>
3883
eb306cab
CY
3884 * image.c (svg_load_image): Fix last change.
3885
2d283c7c
CY
3886 * xfns.c (Fx_create_frame): Signal an error if no font is
3887 found (Bug#2147).
3888
4d8e170e
JB
38892009-02-05 Juanma Barranquero <lekktu@gmail.com>
3890
3891 * character.c (syms_of_character) <script-representative-chars>:
3892 Fix typo in docstring.
3893
c96169a0
AR
38942009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3895
3896 * nsmenu.m (pop_down_menu): New function.
3897 (ns_popup_dialog): Call it on unwind.
3898 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3899 call timer_check() (Bug#2154).
3900 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3901 handling_signal is set.
3902 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3903
31fd7c5c 3904 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3905
3906 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3907
3908 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3909
51d861de
SM
3910 * keyboard.c (poll_for_input_1, handle_async_input):
3911 Set handling_signal under HAVE_NS.
c96169a0 3912
aacd8ba1
GM
39132009-02-04 Glenn Morris <rgm@gnu.org>
3914
3915 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3916
4cb75c4b
KH
39172009-02-04 Kenichi Handa <handa@m17n.org>
3918
3919 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3920
3921 * charset.c (Fchar_charset): New optional arg restriction.
3922
3923 * coding.h (coding_system_charset_list): Extern it.
3924
3925 * coding.c (coding_system_charset_list): New function.
3926
3927 * composite.c: Include coding.h and termhooks.h.
3928 (composition_gstring_p): Fix for the terminal case.
3929 (composition_gstring_width): Likewise.
3930 (fill_gstring_body): Likewise.
3931 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3932 the frame.
3933 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3934 is within a composition.
867d4bb3 3935 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3936
3937 * term.c (encode_terminal_code): Fix handling of composition.
3938 (produce_composite_glyph): For static composition, get pixel_width
3939 from struct composition.
3940
826ba17e
AS
39412009-02-02 Andreas Schwab <schwab@suse.de>
3942
3943 * unexelf.c (unexec): Handle unaligned bss offset.
3944
8ad093db
AR
39452009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3946
3947 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3948 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3949
8ad093db
AR
3950 * keyboard.c (handle_interrupt): Don't call
3951 quit_throw_to_read_char() under NS.
d0a76a6e 3952
8ad093db
AR
3953 * blockinput.h: Remove NS-specific code.
3954
4d18a7a2
DN
39552009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3956
db878925
DN
3957 * dispnew.c (window_change_signal): Don't try to get the size of a
3958 suspended tty frame.
3959 * term.c (Fresume_tty): Resize if the size has changed while the
3960 tty was suspended.
3961
4d18a7a2
DN
3962 * alloc.c (mark_stack): Properly conditionalize previous change.
3963
8984df7c
JB
39642009-01-30 Juanma Barranquero <lekktu@gmail.com>
3965
3966 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3967 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3968 Remove; this code is not used on Windows.
3969
75f4f1ac
EZ
39702009-01-30 Eli Zaretskii <eliz@gnu.org>
3971
3972 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3973 EOLs that also has stray ^M characters.
3974
07a1e794
JB
39752009-01-30 Juanma Barranquero <lekktu@gmail.com>
3976
3977 * atimer.c (run_timers, alarm_signal_handler):
3978 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3979 * w32inevt.c (w32_console_read_socket):
3980 * w32term.c (w32_read_socket):
3981 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3982
a8b11cc9
CY
39832009-01-30 Chong Yidong <cyd@stupidchicken.com>
3984
3985 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3986 Initialize it as a relative filename pattern.
3987 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3988 (Fcall_process_region): Simplify temp file creation using
3989 temporary-file-directory.
3990
c279587b
EZ
39912009-01-29 Eli Zaretskii <eliz@gnu.org>
3992
3993 * msdos.c: Rename pending_signals to msdos_pending_signals.
3994 (sig_suspender, sigprocmask): Adjust.
3995
a8fe3242
CY
39962009-01-29 Chong Yidong <cyd@stupidchicken.com>
3997
3998 * keyboard.c (pending_signals): New var.
3999 (poll_for_input, input_available_signal, init_keyboard): Set it.
4000 (process_pending_signals): New function.
4001
4002 * lisp.h (QUIT): Check pending_signals instead of
4003 interrupt_input_pending. Use process_pending_signals.
4004
51d861de 4005 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4006
51d861de 4007 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4008
4009 * sysdep.c (emacs_write): Use process_pending_signals.
4010
4011 * xterm.c (XTread_socket): Update pending_signals.
4012
4013 * w32term.c (w32_read_socket): Update pending_signals.
4014
4015 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4016
6570a1c4
KH
40172009-01-29 Kenichi Handa <handa@m17n.org>
4018
4019 * xftfont.c (xftfont_has_char): New function.
4020 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4021
d72a4afa
AR
40222009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4023
4024 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4025 under GNUstep.
4026 (ns_query_color): New declaration.
4027
4028 * nsterm.m (ns_confirm_quit): New variable.
4029 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4030 (EmacsApp-applicationShouldTerminate:): Use it.
4031 (EmacsPrefsController): Let user set it.
4032 (ns_query_color): New function.
4033 (ns_defined_color): Use it.
4034 (ns_initialize): Drop.
4035 (ns_term_init): Add two lines from ns_initialize(), and set
4036 input_interrupt_mode to nil.
4037
4038 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4039 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4040
9fe78804
KH
40412009-01-28 Kenichi Handa <handa@m17n.org>
4042
4043 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4044 (fontset_get_font_group): Remember that no font-group is specified
4045 for C.
9fe78804 4046
fa57de36
CY
40472009-01-27 Chong Yidong <cyd@stupidchicken.com>
4048
930600e9
CY
4049 * fns.c (concat): Check for string overflow (bug#1787).
4050
fa57de36
CY
4051 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4052 Quadruple undo limits (bug#1501).
4053
7179ce7b
KH
40542009-01-27 Kenichi Handa <handa@m17n.org>
4055
4056 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4057 directly use GT_Get_Char_index.
4058
4059 * xftfont.c (struct xftfont_info): New member `index'.
4060
4061 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4062 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4063
5be8fcc0
CY
40642009-01-26 Kenichi Handa <handa@m17n.org>
4065
4066 * fontset.c (fontset_find_font): Fix handling of non-cons return
4067 value of fontset_get_font_group.
4068 (fontset_font): Revert last change.
4069
19ae3e61
JR
40702009-01-26 Jason Rumney <jasonr@gnu.org>
4071
4072 * w32font.c (w32font_list_internal): Return quickly if registry is
4073 unknown. Simplify final return.
4074 (add_font_entity_to_list): Break complex logic down into more
4075 manageable chunks. Move unknown registry check to
4076 w32font_list_internal.
4077
8612b71a
AR
40782009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4079
4080 Changes to remove Feval calls from GUI under NS.
4081
d8038940
JB
4082 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4083 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4084 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4085
4086 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4087 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4088 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4089 instead of NON_ASCII_KEYSTROKE_EVENT.
4090 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4091 (EmacsApp-applicationShouldTerminate:): Query user.
4092 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4093 instead of Feval.
4094
4095 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4096
4097 * keyboard.c (kbd_buffer_get_event): Check for it.
4098 (keys_of_keyboard): Define lispy keys for
4099 ns-put/unput-working-text.
4100
4101 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4102 versions.
4103 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4104
6288ae55
CY
41052009-01-25 Chong Yidong <cyd@stupidchicken.com>
4106
4107 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4108 setting current_buffer directly. (Bug#2044)
6288ae55 4109
289e7f8f
CY
41102009-01-24 Chong Yidong <cyd@stupidchicken.com>
4111
5ce87308 4112 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4113 any work. (Bug#1952, bug#1990).
5ce87308 4114
64cc3cf6 4115 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4116
b3243e6f
AR
41172009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4118
4119 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4120 (ns_no_defaults): New declaration.
4121 (main): Use it.
e0d2e69a 4122
d900b2af 4123 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4124
d900b2af 4125 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4126
d900b2af
AR
4127 * nsterm.m (ns_no_defaults): New variable.
4128 (ns_initialize): Don't read defaults when ns_no_defaults.
4129 (EmacsView-readSelectionFromPasteboard:)
4130 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4131 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4132 (ns_dumpglyphs_stretch): New function.
4133 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4134 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4135
e0d2e69a
AR
4136 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4137
3ac71f5d
CY
41382009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4139
4140 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4141 call for Sparc64.
4142
3fe53a83
AR
41432009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4144
4145 * nsfns.m:
4146 * nsgui.h:
4147 * nsmenu.m:
4148 * nsselect.m:
4149 * nsterm.h:
4150 * nsterm.m: Remove '23' comments that indicated code added during
4151 update from emacs-20 -> emacs-23.
4152
10f87c6f 41532009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4154
4155 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4156 ns_alternate_modifier. (Bug#1217)
a3b53a85 4157
c7cef62d
AR
4158 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4159 Display all shortcuts, including those w/o super modifier.
4160
575fb8bd
AR
4161 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4162
918b848b
CY
41632009-01-22 Chong Yidong <cyd@stupidchicken.com>
4164
4165 * fileio.c (Vwrite_region_post_annotation_function)
4166 (Vwrite_region_annotation_buffers): New vars.
4167 (build_annotations_unwind): Just reset
4168 Vwrite_region_annotation_buffers.
4169 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4170 Call write-region-post-annotation-function.
4171 (build_annotations): Add to Vwrite_region_annotation_buffers if
4172 buffer changes.
4173
a39e2539
AR
41742009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4175
4176 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4177 Tiger.
51d861de
SM
4178 * nsfns.m (ns_do_applescript):
4179 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4180
35ed44db
AR
41812009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4182
4183 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4184
cbe0b5bf
AR
41852009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4186
4187 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4188
6049d3a0
AR
4189 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4190
4191 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4192 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4193 handle Ctrl-tab. (Bug#1841)
4194 (ns_get_color): Use unsigned long long for scanned hex string value.
4195 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4196 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4197 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4198 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4199 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4200 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4201 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4202
d3810c21 4203 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4204 DPI. (Bug#1316)
d3810c21
AR
4205 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4206 values in onTiger section.
4c7077c3 4207
e301e634
CY
42082009-01-19 Chong Yidong <cyd@stupidchicken.com>
4209
7f82490b
CY
4210 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4211 Check return value of font_spec_from_name.
64cc3cf6 4212 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4213
4214 * font.c (font_spec_from_name): Return Qnil if font name could not
4215 be parsed.
4216 (font_parse_name): Treat a `?' character as part of an XLFD.
4217
e301e634
CY
4218 * fns.c (Fsubstring): Doc fix.
4219
1c0db158
KH
42202009-01-19 Kenichi Handa <handa@m17n.org>
4221
51d861de 4222 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4223 (ftfont_list): Likewise.
4224
acf20901
JB
42252009-01-18 Juanma Barranquero <lekktu@gmail.com>
4226
fff4e459
JB
4227 * dbusbind.c (Fdbus_register_signal):
4228 * process.c (conv_sockaddr_to_lisp):
4229 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4230
acf20901
JB
4231 * callproc.c (Fgetenv_internal): Doc fix.
4232
e7abcdfb
CY
42332009-01-16 Chong Yidong <cyd@stupidchicken.com>
4234
4235 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4236 it is not even used.
4237
b60861e6
GM
42382009-01-16 Glenn Morris <rgm@gnu.org>
4239
4240 * font.c (Ffont_variation_glyphs): Silence compiler.
4241
8db52afe
JB
42422009-01-15 Juanma Barranquero <lekktu@gmail.com>
4243
4244 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4245 Reported by David Robinow <drobinow@gmail.com>.
4246
4cddb209
KH
42472009-01-15 Kenichi Handa <handa@m17n.org>
4248
51d861de 4249 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4250
f247f67b
JR
42512009-01-14 Jason Rumney <jasonr@gnu.org>
4252
4253 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4254 never a fontset. (Bug#1562)
f247f67b 4255
f56a4450
KH
42562009-01-14 Kenichi Handa <handa@m17n.org>
4257
4258 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4259 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4260
4e99855e
CY
42612009-01-13 Chong Yidong <cyd@stupidchicken.com>
4262
4263 * font.c (font_clear_prop): If clearing the family, clear the font
4264 width index too.
4265
fff4e459 4266 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4267
24f01470
JB
42682009-01-12 Juanma Barranquero <lekktu@gmail.com>
4269
4270 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4271 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4272 functions, use sizeof.
4273
a41240a3
MR
42742009-01-12 Martin Rudalics <rudalics@gmx.at>
4275
4276 * keyboard.c (read_char): Fix case where last_nonmenu_event
4277 returned a bad value with submenus. (Bug#447)
4278
944636b8
CY
42792009-01-12 Chong Yidong <cyd@stupidchicken.com>
4280
4281 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4282 family, clear the font width index too.
4283
0dad7c6f
JR
42842009-01-11 Jason Rumney <jasonr@gnu.org>
4285
4286 * keyboard.c (cmd_error_internal): Exit when errors occur before
4287 frame creation and not in daemon mode. (Bug#1836)
4288
7c2363af
CY
42892009-01-10 Chong Yidong <cyd@stupidchicken.com>
4290
4291 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4292 of a display vector, backtrack.
4293 (try_window_reusing_current_matrix): Check glyph type before
4294 referencing charpos member.
4295
97b1b294
EZ
42962009-01-10 Eli Zaretskii <eliz@gnu.org>
4297
4298 Fix Bug #876:
4299
4300 * coding.c (inhibit_null_byte_detection): New variable.
4301 (detect_coding, detect_coding_system): Don't pay attention to null
4302 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4303 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4304 <inhibit-iso-escape-detection>: Doc fix.
4305
4624b6e3
JR
43062009-01-09 Jason Rumney <jasonr@gnu.org>
4307
4308 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4309 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4310 Only report Unicode Plane 2 fonts as unicode-sip.
4311
323b840c
CY
43122009-01-09 Chong Yidong <cyd@stupidchicken.com>
4313
51d861de
SM
4314 * xfaces.c (Fx_font_family_list): Delete function.
4315 Move compatibility version to faces.el.
323b840c 4316
51d861de 4317 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4318
eba7400d
MR
43192009-01-09 Martin Rudalics <rudalics@gmx.at>
4320
4321 * frame.c (x_set_frame_parameters): Remember requested value for
4322 fullscreen before it's reset by the parameter handler.
4323
4b09796d
GM
43242009-01-09 Glenn Morris <rgm@gnu.org>
4325
4326 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4327 (last_command_event): ... and update all users.
4b09796d
GM
4328 (last_input_char): For clarity, rename to...
4329 (last_input_event): ... and update all users.
4330 (last-command-char, last-input-char): Move to subr.el as aliases.
4331 * cmds.c, commands.h: Update for last_command_char rename.
4332
14ccea62
CY
43332009-01-08 Chong Yidong <cyd@stupidchicken.com>
4334
51d861de 4335 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4336
5f004711
JR
43372009-01-08 Jason Rumney <jasonr@gnu.org>
4338
4339 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4340 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4341 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4342 Don't declare.
fff4e459 4343 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4344 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4345
b71f6f73
KH
43462009-01-07 Kenichi Handa <handa@m17n.org>
4347
50b06221 4348 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4349 remember the coding system used for decoding in
50b06221
KH
4350 coding_system (Bug#1039).
4351
b71f6f73 4352 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4353 breaking the loop. (Bug#870)
b71f6f73
KH
4354 (decode_coding_utf_16, decode_coding_emacs_mule)
4355 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4356 (decode_coding_charset): Likewise.
4357
56f668f7
MR
43582009-01-05 Martin Rudalics <rudalics@gmx.at>
4359
4360 * frame.c (x_set_frame_parameters): Make sure height (width) get
4361 applied when fullwidth (fullheight) is set. (Bug#1522)
4362
5da9424d
JB
43632009-01-04 Juanma Barranquero <lekktu@gmail.com>
4364
4365 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4366 (utc_base): Declare as ULONGLONG, not long double.
4367 (convert_time_raw): Delete.
4368 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4369 (initialize_utc_base): New function.
4370 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4371 (convert_from_time_t): Use initialize_utc_base; compute result with
4372 64-bit arithmetic.
4373 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4374
c4605e09
EZ
43752009-01-03 Eli Zaretskii <eliz@gnu.org>
4376
9acef61c 4377 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4378 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4379 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4380 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4381 [!subprocesses]: Define.
4382 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4383 (Flist_system_processes, Fsystem_process_attributes)
4384 [!subprocesses]: Call list_system_processes and
4385 system_process_attributes instead of returning Qnil.
4386
9acef61c
JB
4387 * dosfns.c (system_process_attributes, list_system_processes):
4388 New functions.
c4605e09
EZ
4389
4390 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4391
4392 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4393 Don't use the default (no-op) implementation.
4394
8b7d0a16
JR
43952009-01-03 Jason Rumney <jasonr@gnu.org>
4396
a6d46bc1
JR
4397 * keyboard.c (parse_modifiers_uncached): Wheel events are
4398 clicks (bug#687).
4399
8b7d0a16
JR
4400 * w32term.c (x_query_colors, x_query_color): New functions.
4401
4402 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4403 (svg_load_image): Cast returned pointers from dynamically loaded
4404 functions. Eliminate W32 specific code.
4405
bfe11752
DN
44062009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4407
89e2438a
DN
4408 * nsfns.m (x_set_foreground_color, x_set_background_color)
4409 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4410 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4411 x_ prefix instead of ns_. Update references.
4412 (syms_of_nsfns): Add a FIXME comment.
4413
4414 * nsterm.m (x_set_cursor_type): New prototype.
4415 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4416
bfe11752
DN
4417 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4418 for Solaris instead of incorrectly providing Qutime and Qcutime.
4419
031da700
EZ
44202009-01-02 Eli Zaretskii <eliz@gnu.org>
4421
4422 * w32.c (process_times): Compute sum of utime and stime.
4423 (system_process_attributes): Add Qtime to the alist.
4424
4425 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4426 and add them to the alist.
4427
4428 * process.c (top level) <Qtime, Qctime>: New variables.
4429 (syms_of_process): staticpro them.
4430 (Fsystem_process_attributes): Add their documentation to the doc
4431 string.
4432
4433 * process.h: Declare Qtime and Qctime.
4434
df23bf08
JR
44352009-01-02 Jason Rumney <jasonr@gnu.org>
4436
9acef61c 4437 * image.c (Qgobject): New symbol.
df23bf08
JR
4438 (syms_of_image): Initialize it.
4439 (init_svg_functions): Load some functions from gobject library.
4440
5bbdf7aa
DN
44412009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4442
4443 * frame.c (make_terminal_frame): Remove redundant code and useless
4444 block.
4445
63136da6
AS
44462009-01-01 Andreas Schwab <schwab@suse.de>
4447
4448 * process.c (conv_sockaddr_to_lisp): Add workaround for
4449 getsockname bug on BSD.
4450
9ef69046
CY
44512009-01-01 Chong Yidong <cyd@stupidchicken.com>
4452
d6fafbe0
CY
4453 * xfns.c (x_create_tip_frame): Set border width of the X window.
4454
51d861de 4455 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4456
f9c34147
JR
44572009-01-01 Jason Rumney <jasonr@gnu.org>
4458
9acef61c 4459 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4460 Don't block input, as per earlier xterm.c changes.
4461
f5497e45
AR
44622008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4463
4464 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4465 (ns_appkit_version_int): New function.
4466 (x-server-version): Use ns_appkit_version_int and follow 21+
4467 convention of returning 3 integers.
4468
c19cab20
KH
44692008-12-30 Kenichi Handa <handa@m17n.org>
4470
4471 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4472 (CHAR_SURROGATE_PAIR_P): New macro.
4473
4474 * font.h (struct font_driver): New member get_variation_glyphs.
4475
9acef61c 4476 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4477 (Ffont_variation_glyphs): New function.
4478 (syms_of_font): Defsubr it.
4479
4480 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4481 ftfont_variation_glyphs.
4482 (setup_otf_gstring): New function.
4483 (ftfont_drive_otf): Use it.
4484 (ftfont_shape_by_flt): Handle variation selector.
4485 (ftfont_variation_glyphs): New function.
4486
28cd591f
MR
44872008-12-30 Martin Rudalics <rudalics@gmx.at>
4488
4489 * frame.c (Vemacs_iconified): Remove.
4490
7f714baf
JR
44912008-12-30 Jason Rumney <jasonr@gnu.org>
4492
4493 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4494 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4495
9d2d22ab
CY
44962008-12-30 Chong Yidong <cyd@stupidchicken.com>
4497
4498 * indent.c (Fvertical_motion): Don't advance iterator if we have
4499 reseated to the desired position.
4500
4501 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4502 checking for pos match.
4503
545312c2
KH
45042008-12-30 Kenichi Handa <handa@m17n.org>
4505
1ede3eb6
KH
4506 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4507 just get the low 8-bit of the code.
4508
545312c2
KH
4509 * font.c (font_intern_prop): Validate str as multibyte.
4510
bd7bbf29
DN
45112008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4512
31e0750e
DN
4513 * dispextern.h (struct face): Move lface and hash from the middle
4514 of bitfields.
4515
bd7bbf29
DN
4516 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4517
b5672e7c
DN
45182008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4519
4520 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4521 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4522 instead of intervals.h.
4523
d704470f
AS
45242008-12-26 Andreas Schwab <schwab@suse.de>
4525
4526 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4527 cons.
4528
54b33868
MR
45292008-12-26 Martin Rudalics <rudalics@gmx.at>
4530
4531 * textprop.c (Qminibuffer_prompt): New variable.
4532 (syms_of_textprop): Initialize it.
4533 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4534 in minibuffer-prompt face. (Bug#1662)
4535
40b615d6
JR
45362008-12-25 Jason Rumney <jasonr@gnu.org>
4537
4538 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4539
baae5c2d
JR
45402008-12-24 Jason Rumney <jasonr@gnu.org>
4541
4542 * ralloc.c (r_alloc_reset_variable): New function.
4543
4544 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4545 record of what points where. (Bug#716)
baae5c2d 4546
a9051c88
DN
45472008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4548
4549 * minibuf.c (read_minibuf): Follow the non-interactive case when
4550 running as a daemon, before detaching.
4551
8b146312
AS
45522008-12-22 Andreas Schwab <schwab@suse.de>
4553
4554 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4555 * gtkutil.c (free_widget_value): Use xfree instead of free.
4556
56f2de10
MR
45572008-12-22 Martin Rudalics <rudalics@gmx.at>
4558
4559 * frame.c (delete_frame): New function derived from
4560 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4561 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4562 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4563 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4564 * frame.h: Extern delete_frame.
4565 * window.c (window_loop):
4566 * terminal.c (delete_terminal):
4567 * xterm.c (x_connection_closed):
4568 * xfns.c (Fx_hide_tip):
9acef61c 4569 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4570
1fc200d6
JR
45712008-12-21 Jason Rumney <jasonr@gnu.org>
4572
4573 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4574 when character maps to .notdef character.
4575
5e252df2
SM
45762008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4577
4578 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4579
99b72cc4
JR
45802008-12-20 Jason Rumney <jasonr@gnu.org>
4581
4582 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4583 a graphical frame on Windows. (Bug#1325)
99b72cc4 4584
acc49a52
JD
45852008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4586
4587 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4588
6ea15123
CY
45892008-12-20 Chong Yidong <cyd@stupidchicken.com>
4590
4591 * minibuf.c (Fread_buffer): Doc fix.
4592
b2dab6c8
JR
45932008-12-20 Jason Rumney <jasonr@gnu.org>
4594
54ea0c87 4595 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4596 server name in UNC paths. (Bug#719)
54ea0c87 4597
b2dab6c8 4598 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4599 charbuf. (Bug#1035)
b2dab6c8 4600
6d1921be
DN
46012008-12-19 Daniel Engeler <engeler@gmail.com>
4602
4603 * sysdep.c (serial_configure): Fix typo.
4604
53934c98
DN
46052008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4606
4607 * sysdep.c: Include alloca.h.
f4f634e8
DN
4608 (system_process_attributes): Add implementation for Solaris.
4609
4610 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4611
06e111a6
DN
46122008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4613
4614 Reorganize implementation of Flist_system_processes and
4615 Fsystem_process_attributes. No functional changes.
4616 * process.c: Don't #include pwd.h, grp.h and limits.h.
4617 (Flist_system_processes): Just call list_system_processes.
4618 (Fsystem_process_attributes): Just call system_process_attributes.
4619 (procfs_list_system_processes, time_from_jiffies)
4620 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4621 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4622
4623 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4624 (list_system_processes): Rename from
4625 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4626 Provide a do nothing implementation.
4627 (system_process_attributes): Rename from
4628 procfs_list_system_processes.
4629 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4630 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4631
4632 * w32.c (list_system_processes): Rename from
4633 w32_list_system_processes.
4634 (system_process_attributes): Rename from
4635 w32_system_process_attributes.
4636
4637 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4638
4639 * process.h (w32_list_system_processes)
4640 (w32_system_process_attributes): Remove.
362654a6
JB
4641 (list_system_processes, system_process_attributes):
4642 New prototypes.
06e111a6 4643
6a705b23
KH
46442008-12-19 Kenichi Handa <handa@m17n.org>
4645
4646 * xfont.c (xfont_decode_coding_xlfd): New function.
4647 (xfont_encode_coding_xlfd): New function.
4648 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4649 (xfont_list): Decode and encode XLFD by iso-8859-1.
4650 (xfont_match): Likewise.
4651 (xfont_list_family): Likewise.
4652 (xfont_open): Likewise.
4653
d66c0241 4654 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4655 names are utf-8.
4656
d66c0241 4657 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4658 names are utf-8.
4659
5a130941
JD
46602008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4661
4662 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4663 changed.
bfd20325
JD
4664 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4665 clicked on a detached tool bar button.
5a130941 4666
fd95644b
DN
46672008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4668
4669 * emacs.c (main): Print and error and exit when no data is read
4670 from the pipe.
4671
e6eee6ae
JR
46722008-12-17 Jason Rumney <jasonr@gnu.org>
4673
4674 * w32font.c (w32font_has_char): Always return -1.
4675
a35dd56b
KH
46762008-12-16 Kenichi Handa <handa@m17n.org>
4677
4678 * font.c (font_open_entity): Fix previous change.
4679
0e3635c2
DN
46802008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4681
4682 * process.c: Include <limits.h>.
4683
d4835507 46842008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4685
4686 * font.c (font_update_drivers): Fix mistake in reconstructing the
4687 driver list.
4688
46892008-12-16 Chong Yidong <cyd@stupidchicken.com>
4690
4691 * font.c (font_clear_cache): Fix format of font cache data.
4692
e2cbc401
CY
46932008-12-15 Chong Yidong <cyd@stupidchicken.com>
4694
4695 * xftfont.c (xftfont_open): Free Xft font pattern if
4696 XftFontOpenPattern fails.
4697
4698 * xterm.c (x_free_frame_resources): Remove extraneous call to
4699 free_frame_faces.
4700
b131d535
CY
47012008-12-13 Chong Yidong <cyd@stupidchicken.com>
4702
4703 * xterm.c (x_delete_display): Move xim_close_dpy call to
4704 x_delete_terminal.
4705 (x_delete_terminal): Call xim_close_dpy.
4706
e6df5336
JR
47072008-12-13 Jason Rumney <jasonr@gnu.org>
4708
4709 * w32font.c (intern_font_name): New function.
4710 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4711 (w32font_open_internal, Fx_select_font): Decode font name.
4712 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4713
4714 * w32font.h (intern_font_name): Declare new function.
4715
4716 * w32uniscribe.c (add_opentype_font_name_to_list):
4717 Use intern_font_name.
4718
20d68145
CY
47192008-12-13 Chong Yidong <cyd@stupidchicken.com>
4720
9f2554de
CY
4721 * frame.c (Fdelete_frame): Call free_font_driver_list.
4722
3d9bec9a
CY
4723 * font.c (free_font_driver_list): Implement missing function.
4724
20d68145
CY
4725 * w32term.c (w32_term_init): Don't initialize the image cache
4726 here; it will be done in init_frame_faces.
4727
4728 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4729 (struct x_display_info): Remove unused member null_pixel. New
4730 member xim_callback_data.
4731
4732 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4733 (xim_initialize): Save pointer to callback function data.
4734 (xim_close_dpy): Free callback function data. Call XCloseIM,
4735 reverting 2008-11-04 change by David Smith.
4736 (x_term_init): Don't initialize the image cache here; it will be
4737 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4738 (x_delete_display): Free x_dnd_atoms member.
4739
96f9306b
KH
47402008-12-13 Kenichi Handa <handa@m17n.org>
4741
6dec9044
JB
4742 * font.c (font_rescale_ratio): Moved from xfaces.c.
4743 Argument type changed. Handle a font-spec too.
96f9306b 4744 (font_score): Check Vface_font_rescale_alist.
6dec9044 4745 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4746
4747 * xfaces.c (font_rescale_ratio): Moved to font.c.
4748
8d5b4964
CY
47492008-12-13 Chong Yidong <cyd@stupidchicken.com>
4750
4751 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4752
e6df5336
JR
47532008-12-12 Jason Rumney <jasonr@gnu.org>
4754
4755 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4756 Vwindow_system_version to the real w32 major version.
4757
97c6058a
DN
47582008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4759
4760 * term.c (init_tty): Move setting the terminal name before the
4761 potential user: maybe_fatal.
4762
ec4e88d7
CY
47632008-12-11 Chong Yidong <cyd@stupidchicken.com>
4764
d4835507
JB
4765 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4766 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4767
b4233ec9
JR
47682008-12-11 Jason Rumney <jasonr@gnu.org>
4769
8ec71e23 4770 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4771 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4772
b4233ec9 4773 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4774 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4775
011a0143
JB
47762008-12-11 Juanma Barranquero <lekktu@gmail.com>
4777
4778 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4779
3c309f34
JB
47802008-12-11 Juanma Barranquero <lekktu@gmail.com>
4781
4782 * process.c (Fsystem_process_attributes, syms_of_process):
4783 Fix typo in name of Ssystem_process_attributes.
4784 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4785
fedc6ab5
JB
47862008-12-11 Juanma Barranquero <lekktu@gmail.com>
4787
4788 * syntax.c (Fmodify_syntax_entry): Doc fix.
4789
ba3de0e8
JB
47902008-12-10 Juanma Barranquero <lekktu@gmail.com>
4791
4792 * font.c (Ffont_spec): Move usage to end of docstring.
4793
174f1c74
JR
47942008-12-10 Jason Rumney <jasonr@gnu.org>
4795
4796 * w32font.c (Qcham): New symbol.
4797 (font_supported_scripts): Add cham, and comments for other new
4798 scripts in bitfield from OpenType spec.
9d32f818
JR
4799 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4800 contain characters beyond the bmp.
174f1c74 4801
7b649478
KH
48022008-12-10 Kenichi Handa <handa@m17n.org>
4803
4804 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4805 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4806 Qunicode_sip.
4807
2133e2d1
JB
48082008-12-10 Juanma Barranquero <lekktu@gmail.com>
4809
4810 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4811 (Fcoding_system_put): Use QCdefault_char.
4812 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4813
9af886ee
CY
48142008-12-09 Chong Yidong <cyd@stupidchicken.com>
4815
74d819eb
CY
4816 * xftfont.c (syms_of_xftfont): Fix typo.
4817
4ccfa1c0 4818 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4819
7c19d3ae
DN
48202008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4821
4822 * emacs.c (main): Close daemon_pipe on exec.
4823
567826bb
CY
48242008-12-08 Chong Yidong <cyd@stupidchicken.com>
4825
4826 * termchar.h (struct tty): New members termcap_term_buffer and
4827 termcap_strings_buffer.
4828
4829 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4830 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4831 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4832 All callers changed.
4833 (init_tty): Store termcap data and string buffers in new struct
4834 tty members termcap_term_buffer and termcap_strings_buffer.
4835 (delete_tty): Free them.
4ccfa1c0 4836 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4837
aa96c42b
SZ
48382008-12-07 Seiji Zenitani <zenitani@mac.com>
4839
4840 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4841 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4842
b7e1d896
CY
48432008-12-06 Chong Yidong <cyd@stupidchicken.com>
4844
4845 * coding.c (make_conversion_work_buffer): Disable buffer
4846 modification hooks in the work buffer.
4847
b5ec91a5
EZ
48482008-12-05 Eli Zaretskii <eliz@gnu.org>
4849
4850 * process.c (procfs_system_process_attributes): If `nread' has a
4851 negative value, assign zero to it.
4852
a5d2a52b
CY
48532008-12-05 Chong Yidong <cyd@stupidchicken.com>
4854
68c5540b 4855 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4856
7bf1bb21
KH
48572008-12-05 Kenichi Handa <handa@m17n.org>
4858
4859 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4860 second character is a combining character.
4861
2fdc7d00
EZ
48622008-12-05 Eli Zaretskii <eliz@gnu.org>
4863
4864 * process.c (procfs_system_process_attributes): Don't use cmd,
4865 cmdsize, and q without initializing them first.
4866
bf6bfba8
JR
48672008-12-04 Jason Rumney <jasonr@gnu.org>
4868
4869 * w32font.c (w32font_draw): Initialize orig_clip before getting
4870 it, and delete it when finished.
4871
a3b1a468
DN
48722008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4873
4874 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4875 case when running as a daemon before detaching.
4876
8b8be8eb
JB
48772008-12-03 Juanma Barranquero <lekktu@gmail.com>
4878
805f2638 4879 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4880
b1bde622
KH
48812008-12-03 Kenichi Handa <handa@m17n.org>
4882
e500c47d
KH
4883 * font.c (font_at): Set `multibyte' at first.
4884
ca516334
KH
4885 * coding.c (decode_coding_charset): Check type of an element of
4886 vector VALIDS.
7bf1bb21 4887 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4888
4ccfa1c0 4889 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4890 (font_for_char): Likewise.
4891
1e5ecd37
CY
48922008-12-03 Chong Yidong <cyd@stupidchicken.com>
4893
d5b01609 4894 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4895 (font_update_lface): Handle fonts with corrupted size specs,
4896 i.e. non-int and non-float.
d5b01609 4897
11e3a6e4 4898 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4899 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4900 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4901
ab06788b
CY
4902 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4903
1e5ecd37 4904 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4905 underline_minimum_offset for underline position.
1e5ecd37 4906
63c125ab
DN
49072008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4908
4909 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4910
4911 * character.c (c_string_width): Specify the type for LEN.
4912
3a8406e1
KH
49132008-12-03 Kenichi Handa <handa@m17n.org>
4914
4ccfa1c0 4915 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4916 (decode_coding_utf_8): Likewise.
4ccfa1c0 4917 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4918 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4919
651df7d9
CY
49202008-12-02 Chong Yidong <cyd@stupidchicken.com>
4921
4922 * keyboard.c (make_lispy_position): Only use PT if the selected
4923 window is current.
4924
1f625c6c
AS
49252008-12-02 Andreas Schwab <schwab@suse.de>
4926
f7741ce9
AS
4927 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4928
1f625c6c
AS
4929 * doprnt.c (doprnt1): Fix size of charbuf.
4930
92bc2678
CY
49312008-12-02 Chong Yidong <cyd@stupidchicken.com>
4932
4933 * keyboard.c (timer_check): Revert last change.
4934
93b9e8cc
JB
49352008-12-02 Juanma Barranquero <lekktu@gmail.com>
4936
4937 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4938
fd7a37d5
JB
49392008-12-01 Juanma Barranquero <lekktu@gmail.com>
4940
4941 * makefile.w32-in: Update dependencies.
4942 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4943
c115043b
AS
49442008-12-01 Andreas Schwab <schwab@suse.de>
4945
4946 * font.c (register_font_driver): Use xmalloc.
4947 (font_put_frame_data): Likewise.
4948
f5668d2a
CY
49492008-12-01 Chong Yidong <cyd@stupidchicken.com>
4950
860d96be
CY
4951 * xfaces.c (realize_x_face): Make abort condition clearer.
4952
f5668d2a
CY
4953 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4954
379c17e7
CY
49552008-11-30 Chong Yidong <cyd@stupidchicken.com>
4956
4957 * keyboard.c (timer_check): After a timer runs, ensure that the
4958 selected window's buffer is current.
4959
35f36d65
JB
49602008-11-30 Juanma Barranquero <lekktu@gmail.com>
4961
f952c61c
JB
4962 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4963 It was accidentally restored by the Unicode merge.
4964
35f36d65
JB
4965 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4966
b23077df
JB
49672008-11-29 Juanma Barranquero <lekktu@gmail.com>
4968
4969 * w32proc.c: Include "coding.h".
4970 (Fw32_short_file_name): Encode filename passed to Windows API.
4971 (Fw32_long_file_name): Encode filename passed to Windows API and
4972 decode back the result. (Bug#1433)
4973
b8ebe9dd
KH
49742008-11-29 Kenichi Handa <handa@m17n.org>
4975
8cc53f96
KH
4976 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4977 not before accessing it.
4978
b8ebe9dd
KH
4979 * charset.c (Fdefine_charset_internal): After calculating
4980 min_char, max_char, and fastmap, copy the charset structure again.
4981 (encode_char): Fix the previous change.
4982
59bc82c0
SZ
49832008-11-28 Seiji Zenitani <zenitani@mac.com>
4984
4985 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4986
4987 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4988
4989 * nsterm.m (x_set_frame_alpha): New function.
4990
32247e3d
EZ
49912008-11-27 Eli Zaretskii <eliz@gnu.org>
4992
4993 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4994
b003e5ff
JB
49952008-11-27 Juanma Barranquero <lekktu@gmail.com>
4996
4997 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4998 pointer to check_face_name.
4999
708550f5
KH
50002008-11-27 Kenichi Handa <handa@m17n.org>
5001
5002 * category.h (SET_CATEGORY_SET): Call set_category_set.
5003 (set_category_set): Extern it.
5004
5005 * category.c (hash_get_category_set): New function.
5006 (Fmodify_category_entry): Adjusted for the change of
5007 char_table_ref_and_range. Call hash_get_category_set to get a
5008 category set to store in the table.
5009
5010 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5011 Funify_charset.
5012
2ae37cf0 5013 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5014 (DECODE_CHAR): Check if the decoder vector is ready.
5015 (ENCODE_CHAR): Check if the encoder char-table is ready.
5016 (maybe_unify_char): Extern it.
5017
5018 * charset.c (Vchar_unified_charset_table): Delete it.
5019 (inhibit_load_charset_map): New variable.
5020 (temp_charset_work): New variable.
5021 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5022 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5023 New macros.
5024 (load_charset_map): Meaning of control_flag changed. If
5025 inhibit_load_charset_map is nonzero, setup a table in
5026 temp_charset_work.
5027 (load_charset): New argument control_flag.
5028 (map_charset_for_dump): New function.
5029 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5030 map_charset_for_dump.
5031 (Fdefine_charset_internal): If the charset method is MAP, load
5032 mapping tables by calling load_charset.
5033 (Funify_charset): Don't load a mapping table but directly set
5034 Vchar_unify_table.
5035 (maybe_unify_char): New function.
5036 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5037 Handle the case of inhibit_load_charset_map being nonzero.
5038 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5039 Handle the case of inhibit_load_charset_map being nonzero.
5040 (Fclear_charset_maps): Just free temp_charset_work.
5041 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5042 variable.
5043
5044 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5045 change of char_table_ref_and_range.
5046 (char_table_ref_and_range): Change the meaning of argument FROM
5047 and TO. Now the caller must provide initial values for *FROM
5048 and *TO.
5049
5050 * fontset.c (fontset_add): Adjusted for the change of
5051 char_table_ref_and_range.
5052 (fontset_get_font_group): Likewise.
5053 (Ffontset_info): Likewise.
5054
5055 * keymap.c (describe_vector): Adjusted for the change of
5056 char_table_ref_and_range. For char-table, put boundary between
5057 non-ASCII and 8-bit characters.
5058
5059 * print.c (print_object): For bool-vector, delete unnecessary
5060 check of ASCII_BYTE_P.
5061
9196133b
JR
50622008-11-26 Jason Rumney <jasonr@gnu.org>
5063
5064 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5065 leading in font height. (Bug#879)
9196133b 5066
9f688acf
GM
50672008-11-26 Glenn Morris <rgm@gnu.org>
5068
5069 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5070 redefinition with ifdef. (Bug#1383)
5071
90d19aff
AR
50722008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5073
5074 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5075
4ccfa1c0 50762008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5077
5078 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5079 New EmacsView methods.
5080 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5081 Fixes bug #1048,1357,1414.
5082
50832008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5084
5085 Fix bug #1362.
5086 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5087 is not an indexed color.
5088 * nsterm.m (free_indexed_color): Add argument checking.
5089 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5090
e7d5ecb3
CY
50912008-11-24 Chong Yidong <cyd@stupidchicken.com>
5092
5093 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5094 Document confirm-after-completion value for
5095 minibuffer-completion-confirm.
5096
c285743c
JR
50972008-11-24 Jason Rumney <jasonr@gnu.org>
5098
5099 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5100 warning.
5101
b0857706
JR
51022008-11-23 Jason Rumney <jasonr@gnu.org>
5103
5104 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5105 restored before returning.
5106
5107 * w32font.c (check_face_name): New function.
5108 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5109 fonts. (Bug#642)
b0857706 5110
ee50ff07
MR
51112008-11-22 Martin Rudalics <rudalics@gmx.at>
5112
5113 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5114 confirm-nonexistent-file-or-buffer in doc-string.
5115
b8ff72fa
SM
51162008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5117
5118 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5119 Fix copy/paste typo. Add checks.
5120
cee53ed4
KH
51212008-11-21 Kenichi Handa <handa@m17n.org>
5122
5123 * coding.c (detect_coding_iso_2022): Reject invalid composition
5124 sequence.
5125 (DECODE_COMPOSITION_START): If the current source is the last
5126 block, and the current composition doesn't end, regard this
5127 sequence as invalid.
5128 (decode_coding_iso_2022): Handle invalid composition sequence.
5129
f6ef1e65
MR
51302008-11-20 Martin Rudalics <rudalics@gmx.at>
5131
5132 * window.c (coordinates_in_window): Don't return
5133 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5134 line when the window is not the rightmost one. (Bug#1372)
5135
e08b1705
MR
51362008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5137
5138 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5139
ad98e89f
EZ
51402008-11-15 Eli Zaretskii <eliz@gnu.org>
5141
5142 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5143 and bright_bg if noninteractive is non-zero.
5144
fb098a4b
CY
51452008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5146
5147 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5148 x_draw_glyph_string_background.
5149
5150 * w32term.c (x_draw_glyph_string): Likewise.
5151
ce952b6e
CY
51522008-11-15 Chong Yidong <cyd@stupidchicken.com>
5153
5154 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5155 the next glyph string once past the overhang width.
5156
5157 * nsterm.m (ns_draw_glyph_string): Likewise.
5158
5159 * w32term.c (x_draw_glyph_string): Likewise.
5160
26ea7079
CY
51612008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5162
5163 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5164 double file close.
5165
1c33c906
MR
51662008-11-14 Martin Rudalics <rudalics@gmx.at>
5167
5168 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5169 dedicated status of window before attempting to display another
5170 buffer in it.
5171
8fc29035
JB
51722008-11-14 Juanma Barranquero <lekktu@gmail.com>
5173
5174 * msdos.c (Fmsdos_long_file_names):
5175 (syms_of_msdos) <dos-unsupported-char-glyph>:
5176 * dosfns.c (Fint86): Fix typos in docstrings.
5177
55fb4286
EZ
51782008-11-14 Eli Zaretskii <eliz@gnu.org>
5179
5180 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5181
3fda0315
KY
51822008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5183
5184 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5185
7e849c17
CY
51862008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5187
5188 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5189
5190 * frame.h: Negative alpha means "don't touch".
5191
5192 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5193
5194 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5195
b9fd67bd
DN
51962008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5197
5198 * hftctl.c:
5199 * chpdef.h:
5200 * acldef.h: Remove files used only for systems no longer supported.
5201
5202 * Makefile.in: Fix .o alphabetical ordering.
5203 (hftctl.o): Remove dependency, file removed.
5204 (keymap.o, print.o): Depend on charset.h.
5205
d5998e03
KH
52062008-11-10 Kenichi Handa <handa@m17n.org>
5207
2ae37cf0 5208 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5209
be70e183
CY
52102008-11-08 Chong Yidong <cyd@stupidchicken.com>
5211
5212 * dired.c (file_name_completion): If completion_ignore_case is
5213 enabled, ignore case when checking completion-regexp-list.
5214
7cf94eac
EZ
52152008-11-08 Eli Zaretskii <eliz@gnu.org>
5216
5217 * vm-limit.c (get_lim_data): Fix last change.
5218
ee107a89
KH
52192008-11-08 Kenichi Handa <handa@m17n.org>
5220
5221 * character.c (Fget_byte): New function.
5222 (syms_of_character): Defsubr Fget_byte.
5223
5fd15622
CY
52242008-11-07 Chong Yidong <cyd@stupidchicken.com>
5225
5226 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5227 cursor position is valid after scrolling.
5228
13d62fad
JB
52292008-11-06 Juanma Barranquero <lekktu@gmail.com>
5230
5231 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5232
a1dd2936
GM
52332008-11-06 Glenn Morris <rgm@gnu.org>
5234
5235 * xterm.c (handle_one_xevent): Don't let popup menus cause
5236 mouse-autoselect-window related window switching. (Bug#1261)
5237
860cd236
CY
52382008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5239
5240 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5241
653a3150
AS
52422008-11-04 Andreas Schwab <schwab@suse.de>
5243
5244 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5245
870f5cac
CY
52462008-11-03 Chong Yidong <cyd@stupidchicken.com>
5247
5248 * xfns.c (Fx_wm_set_size_hint): New function.
5249
1e02f3cb
MR
52502008-11-03 Martin Rudalics <rudalics@gmx.at>
5251
5252 * textprop.c (Fprevious_single_char_property_change): Return 0
5253 when there's no change in a string. (Bug#1301)
5254
e630dfc6
MR
52552008-11-02 Martin Rudalics <rudalics@gmx.at>
5256
5257 * frame.c (do_switch_frame): New argument NORECORD passed to
5258 Fselect_window.
5259 (Fselect_frame): New argument NORECORD passed to
5260 do_switch_frame.
5261 (Fset_frame_selected_window): New argument NORECORD passed to
5262 Fselect_frame.
5263 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5264 in call of do_switch_frame.
5265 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5266 Handle NORECORD argument in call of Fselect_frame.
5267 * lisp.h (do_switch_frame, Fselect_frame)
5268 (Fset_frame_selected_window): Adjust declarations.
5269 * window.c (select_frame_norecord): New function.
5270 (run_window_configuration_change_hook): Use it and call
5271 Fselect_frame with NORECORD set.
5272 (Fselect_window): Pass NORECORD to Fselect_frame.
5273 (Fset_window_configuration): Handle NORECORD argument in call of
5274 do_switch_frame.
5275 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5276 Fset_frame_selected_window.
5277 * keyboard.c (command_loop_1): Handle NORECORD in call of
5278 Fselect_frame (currently ifdefd).
5279
9020b223
GM
52802008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5281
5282 * emacs.c (USAGE2): Untabify.
5283
793ffee8
SM
52842008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5285
5286 * composite.c (fill_gstring_header): Fix copy/paste typo.
5287
ab6d1131
MR
52882008-10-31 Martin Rudalics <rudalics@gmx.at>
5289
5290 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5291 (Fother_window): Rename argument and rewrite doc-string.
5292 (select_window_norecord): Fix return value. (Bug#1276)
5293
601a9cf1
JB
52942008-10-30 Juanma Barranquero <lekktu@gmail.com>
5295
5296 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5297 new frames overriding foreground for tooltips. Based on similar patch
5298 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5299
813b0652
CY
53002008-10-29 Chong Yidong <cyd@stupidchicken.com>
5301
5302 * emacs.c (Fdaemon_initialized): Initialize nfd.
5303
4414f58f
MR
53042008-10-29 Martin Rudalics <rudalics@gmx.at>
5305
5306 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5307 (Fwindow_text_height): Clarify doc-strings.
5308 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5309 doc-string of window-scroll-functions.
5310
ecdcaa09
RS
53112008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5312
5313 * category.c (syms_of_category): Fix typo in docstring.
5314
23fe745a
JB
53152008-10-28 Juanma Barranquero <lekktu@gmail.com>
5316
5317 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5318 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5319 Fix typos in docstrings.
5320
ff808935
DN
53212008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5322
5323 * emacs.c (daemon_pipe): Make non-static.
5324 (IS_DAEMON): Move definition ...
5325 * lisp.h (IS_DAEMON): ... here.
5326 (daemon_pipe): Declare.
5327 (is_daemon): Remove.
5328 * dispnew.c (init_display): Use IS_DAEMON.
5329
fc012771
SM
53302008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5331
5332 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5333 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5334
5335 * emacs.c (is_daemon): Remove.
5336 (main): Don't set is_daemon.
5337 (IS_DAEMON): New macro.
5338 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5339 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5340 parent exits.
5341 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5342
d8bdbe6f
CY
53432008-10-27 Chong Yidong <cyd@stupidchicken.com>
5344
d1a072bf
CY
5345 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5346 over-sized glyph, draw it with the default glyph width.
5347
e2e325aa
CY
5348 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5349 glyph, draw it with the default glyph width.
5350
5351 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5352 glyph, draw it with the default glyph width.
5353
d8bdbe6f
CY
5354 * xdisp.c (try_scrolling): When computing the distance from the
5355 scroll margin to PT, try moving some distance past the window
5356 bottom before giving up.
5357
7bfac547
MR
53582008-10-27 Martin Rudalics <rudalics@gmx.at>
5359
5360 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5361 (Fset_window_buffer): Explain in doc-string that a window can be
5362 "strongly" dedicated to its buffer.
5363
4ff029f6
DN
53642008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5365
5366 * emacs.c (daemon_name): New variable.
5367 (main): Deal with --daemon=SERVER_NAME.
5368 (Fdaemonp): Return a name if one was passed to --daemon.
5369
5790ef40
DN
53702008-10-26 Romain Francoise <romain@orebokech.com>
5371
f9bd0df9 5372 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5373 (main): Create a pipe before forking, make the parent exit only after
5374 the child has closed its end of the pipe. Move closing the
5375 descriptors ...
5376 (Fdaemon_initialized): ... here. New function.
5377
f5385255
SM
53782008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5379
4d632321
SM
5380 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5381 the previous unoptimized table.
5382
f5385255
SM
5383 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5384 the distinction between non-nil and non-t value of `dedicated'.
5385
6c56a0f3
CY
53862008-10-25 Chong Yidong <cyd@stupidchicken.com>
5387
5388 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5389 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5390
fec89261
MR
53912008-10-25 Martin Rudalics <rudalics@gmx.at>
5392
5393 * window.c (Fget_buffer_window, Fdelete_windows_on)
5394 (Freplace_buffer_in_windows): Make buffer argument optional and
5395 rename to buffer_or_name.
5396
34fcddd0
CY
53972008-10-24 Chong Yidong <cyd@stupidchicken.com>
5398
f5385255
SM
5399 * xdisp.c (handle_single_display_spec, handle_display_prop):
5400 Undo 2005-05-16 change.
34fcddd0
CY
5401 (handle_stop): Pop iterator if it's loaded with an empty string.
5402 (get_overlay_strings_1): Don't save iterator if it's loaded with
5403 an empty string (bug#1201).
5404
064766f2
KH
54052008-10-24 Kenichi Handa <handa@m17n.org>
5406
5407 * ftfont.c (ftfont_otf_features): Fix previous change.
5408 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5409 calling ftfont_otf_features.
5410
f9bd0df9 54112008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5412
5413 * font.c (font_match_p): Fix for the case that a vector of
5414 characters is in script-representative-chars.
5415
1dae9197
MA
54162008-10-24 Michael Albinus <michael.albinus@gmx.de>
5417
5418 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5419 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5420 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5421 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5422 macro. (Bug#1186)
1dae9197 5423
f9bd0df9 54242008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5425
5426 * s/sol2-10.h: New file.
5427
878a4584
JB
54282008-10-23 Juanma Barranquero <lekktu@gmail.com>
5429
5430 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5431 poor beast has survived 9+ years and the jump from xterm.c!).
5432
cd265ca6
MR
54332008-10-23 Martin Rudalics <rudalics@gmx.at>
5434
5435 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5436 Reword doc-string.
f5385255 5437 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5438
472a4dc9
JB
54392008-10-23 Juanma Barranquero <lekktu@gmail.com>
5440
5441 * character.c (syms_of_character) <script-representative-chars>:
5442 <unicode-category-table>: Doc fixes.
5443
159bd5a2
NF
54442008-10-23 Noah Friedman <friedman@splode.com>
5445
5446 * coding.c (make_conversion_work_buffer): Check that
5447 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5448 Fget_buffer_create.
5449
49f9c344
KH
54502008-10-23 Kenichi Handa <handa@m17n.org>
5451
5452 * font.c (font_add_log): Check the values of extra properties.
5453
12bb3111
MR
54542008-10-22 Martin Rudalics <rudalics@gmx.at>
5455
5456 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5457 Reword doc-string.
5458 (Fset_window_parameter): Use NILP.
5459 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5460 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5461
bbeb4e99
JB
54622008-10-22 Juanma Barranquero <lekktu@gmail.com>
5463
5464 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5465
54662008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5467
5468 * nsfns.m (ns_appkit_version): New function.
5469 (x-server-version): Use it.
5470 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5471 (x-server-vendor): Don't check_ns().
5472
5473 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5474
a9b555d3
JB
54752008-10-22 Juanma Barranquero <lekktu@gmail.com>
5476
5477 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5478 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5479
4626499f
KH
54802008-10-22 Kenichi Handa <handa@m17n.org>
5481
e3681952
KH
5482 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5483 scripts.
5484
4626499f
KH
5485 * category.c (word_boundary_p): Check scripts instead of charset.
5486 Handle nil value in word-separating-categories and
5487 word-combining-categories.
5488 (syms_of_category): Fix docstrings of word-separating-categories
5489 and word-combining-categories.
5490
1560f91a
EZ
54912008-10-21 Eli Zaretskii <eliz@gnu.org>
5492
5493 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5494 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5495
f4668441
MR
54962008-10-21 Martin Rudalics <rudalics@gmx.at>
5497
5498 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5499 Rename arg "buffer" to "buffer_or_name".
5500 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5501 it optional.
5502 (no_switch_window): Remove since the return value is not used.
a9b555d3 5503 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5504 Consider window as dedicated when Fwindow_dedicated_p returns a
5505 non-nil value.
5506 * lisp.h: Remove prototype for no_switch_window.
5507
fd75ddb2
JD
55082008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5509
5510 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5511 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5512
07295713
KH
55132008-10-21 Kenichi Handa <handa@m17n.org>
5514
5515 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5516 check Vlatin_extra_code_table.
5517
712adc82
EZ
55182008-10-20 Eli Zaretskii <eliz@gnu.org>
5519
5520 * fileio.c (Fset_file_modes): Doc fix.
5521
f549eb0b
MA
55222008-10-19 Michael Albinus <michael.albinus@gmx.de>
5523
5524 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5525 in arrays.
5526
aac0c6e3
MR
55272008-10-19 Martin Rudalics <rudalics@gmx.at>
5528
5529 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5530 Mention kill-buffer in doc-string.
5531 (Fset_window_buffer): Reinsert tem check removed in last commit.
5532 (Fenlarge_window, Fshrink_window): Have argument names and
5533 doc-string follow Elisp manual more closely.
5534
55352008-10-18 Eli Zaretskii <eliz@gnu.org>
5536
5537 * fileio.c (Fset_file_modes): Doc fix.
5538
55392008-10-18 Martin Rudalics <rudalics@gmx.at>
5540
5541 * window.c (Fwindow_width, Fset_window_start)
5542 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5543 (Fdelete_windows_on, Freplace_buffer_in_windows):
5544 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5545 (Fwindow_dedicated_p): Make window argument optional.
5546 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5547 (Fset_window_buffer): Respect any non-nil dedicated value for
5548 window. Rename "buffer" argument to "buffer_or_name".
5549
55502008-10-18 Ulrich Mueller <ulm@gentoo.org>
5551
5552 * m/sh3.h: New file, machine description for SuperH.
5553
55542008-10-17 Martin Rudalics <rudalics@gmx.at>
5555
5556 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5557
55582008-10-17 Kenichi Handa <handa@m17n.org>
5559
5560 * ftfont.c (ftfont_otf_features): Fix indexing
5561 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5562
55632008-10-16 Magnus Henoch <mange@freemail.hu>
5564
5565 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5566 (Fdbus_call_method_asynchronously): Ditto.
5567 This change makes C-h f display the argument list.
5568
55692008-10-16 Chong Yidong <cyd@stupidchicken.com>
5570
5571 * fileio.c (Fexpand_file_name): Doc fix.
5572
5573 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5574 of :foreground and :background equivalent to unspecified (20.x
5575 compatibility).
5576
55772008-10-15 Eli Zaretskii <eliz@gnu.org>
5578
5579 * buffer.c (syms_of_buffer): Doc fix.
5580
55812008-10-14 Kenichi Handa <handa@m17n.org>
5582
5583 * font.c (font_clear_prop): When clearing font width, clear the
5584 average width field too.
5585
55862008-10-12 Andreas Schwab <schwab@suse.de>
5587
5588 * ftfont.c (ftfont_shape_by_flt): Make static.
5589 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5590
5591 * font.c: Don't include <m17n-flt.h>.
5592
55932008-10-10 Eli Zaretskii <eliz@gnu.org>
5594
5595 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5596
55972008-10-09 Eli Zaretskii <eliz@gnu.org>
5598
5599 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5600 away code.
5601
56022008-10-09 Chong Yidong <cyd@stupidchicken.com>
5603
5604 * dispnew.c (update_text_area): Avoid looping due to large glyph
5605 overhangs (bug#1070).
5606
56072008-10-09 Kenichi Handa <handa@m17n.org>
5608
5609 * fontset.c (face_for_char): If face->fontset is negative, just
5610 return ascii_face.
5611
f5385255
SM
5612 * font.c (font_delete_unmatched): Fix previous change.
5613 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5614
56152008-10-09 Martin Rudalics <rudalics@gmx.at>
5616
5617 * frame.c (Fraise_frame): On text-only terminals select frame in
5618 order to make it visible. (Bug#1061)
5619
56202008-10-08 Chong Yidong <cyd@stupidchicken.com>
5621
5622 * fontset.c (fontset_find_font): Check frame validity.
5623
56242008-10-07 Chong Yidong <cyd@stupidchicken.com>
5625
a9b555d3 5626 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5627 (xg_display_close): Allow Emacs to close all displays (bug#985).
5628
56292008-10-06 Andreas Schwab <schwab@suse.de>
5630
f5385255 5631 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5632
56332008-10-06 Chong Yidong <cyd@stupidchicken.com>
5634
f5385255 5635 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5636
a9b555d3 5637 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5638
5639 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5640 during initialization.
5641
56422008-10-04 Eli Zaretskii <eliz@gnu.org>
5643
5644 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5645 whole thing on MSDOS frames as well as on a TTY.
5646
5647 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5648 well as for TTY.
5649 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5650 well as on a TTY.
5651
5652 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5653 as well as for TTY.
5654
5655 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5656
5657 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5658 MSDOS frames as well.
5659
56602008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5661
5662 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5663 correct arguments.
b71ac3dd 5664 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5665
56662008-10-03 Glenn Morris <rgm@gnu.org>
5667
5668 * emacs.c (USAGE1): Add --daemon.
5669
56702008-10-02 Eli Zaretskii <eliz@gnu.org>
5671
5672 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5673 100, so it's in percents as advertised.
5674
56752008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5676
5677 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5678 (ns_output.current_cursor, ns_output.desired_cursor)
5679 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5680 (FRAME_NEW_CURSOR_COLOR): Remove.
5681
5682 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5683 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5684 enumeration (HOLLOW_BOX_CURSOR, etc.).
5685
5686 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5687 (draw_window_cursor): Simplify code.
f5385255
SM
5688 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5689 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5690 updates manually.
a9b555d3
JB
5691 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5692 Use core Emacs cursor types.
aac0c6e3 5693
b8ff72fa 5694 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5695
56962008-10-02 Martin Rudalics <rudalics@gmx.at>
5697
5698 * process.c (Faccept_process_output): Fix doc-string.
5699
57002008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5701
5702 * gmalloc.c (__sbrk): Also define for uClibc.
5703
5704 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5705 for uClibc.
5706
57072008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5708
5709 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5710 styles.
5711 (nsfont_open): Reenable the cache.
5712
57132008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5714
5715 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5716 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5717
57182008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5719
5720 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5721 a suspended terminal.
5722
57232008-09-30 Michael Albinus <michael.albinus@gmx.de>
5724
5725 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5726
57272008-09-30 Eli Zaretskii <eliz@gnu.org>
5728
5729 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5730
57312008-09-30 Chong Yidong <cyd@stupidchicken.com>
5732
5733 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5734 in a continued line coincides with a line beginning.
5735
57362008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5737
5738 * nsfont.m (nsfont_trait_distance): Fix bug.
5739 (nsfont_list): Return a list rather than a vector (syncs with Handa
5740 changes of 2008-05-14).
5741 (nsfont_open): Improve logging.
5742
57432008-09-29 Andreas Schwab <schwab@suse.de>
5744
5745 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5746
57472008-09-28 Martin Rudalics <rudalics@gmx.at>
5748
5749 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5750 name as char-resolve-modifiers.
5751 Reported by: Markus Triska <markus.triska@gmx.at>
5752
57532008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5754
5755 * dispnew.c (init_display): Return earlier when running as a daemon.
5756
57572008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5758
5759 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5760
57612008-09-27 Eli Zaretskii <eliz@gnu.org>
5762
5763 * composite.c (Fcomposition_get_gstring)
5764 (Fcompose_region_internal, Fcompose_string_internal)
5765 (Ffind_composition_internal): Doc fix.
5766 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5767 (syms_of_composite) <auto-composition-function>: Doc fix.
5768 (syms_of_composite) <composition-function-table>: Doc fix.
5769
57702008-09-25 Chong Yidong <cyd@stupidchicken.com>
5771
5772 * search.c (wordify): New argument for lax word-ends.
5773 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5774
57752008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5776
5777 * lisp.h (is_daemon): Declare.
5778 * dispnew.c (init_display): Do not try to initialize the terminal
5779 when running as a daemon.
5780
57812008-09-22 Chong Yidong <cyd@stupidchicken.com>
5782
5783 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5784 x_display_pixel_height.
5785
57862008-09-22 Martin Rudalics <rudalics@gmx.at>
5787
5788 * undo.c (record_point): Don't call Fundo_boundary for first
5789 change. (Bug#731)
5790
57912008-09-22 Juanma Barranquero <lekktu@gmail.com>
5792
5793 * emacs.c (Fdaemonp): Doc fix.
5794
57952008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5796
5797 * emacs.c (main): Place #ifdef in the proper place.
5798
57992008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5800
5801 * emacs.c (standard_args): Add --daemon.
5802 (main): Disconnect from the terminal when --daemon is passed.
5803 (is_daemon): New variable.
5804 (Fdaemonp): New function.
5805 (syms_of_emacs): Defsubr it.
5806
58072008-09-20 Chong Yidong <cyd@stupidchicken.com>
5808
5809 * xdisp.c (get_next_display_element): Handle string display
5810 correctly when checking for the end of a box run.
5811
58122008-09-20 Glenn Morris <rgm@gnu.org>
5813
5814 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5815 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5816 (Frename_file): Avoid copying to trash if a rename involves
5817 a delete. (Bug#964).
5818
58192008-09-20 Eli Zaretskii <eliz@gnu.org>
5820
5821 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5822 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5823 frames as well as termcap frames.
5824 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5825 get_named_tty.
5826
58272008-09-19 Eli Zaretskii <eliz@gnu.org>
5828
5829 * process.c (procfs_system_process_attributes): Fix cmdline in
5830 case /proc/PID/cmdline is empty.
5831
5832 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5833 x_display_pixel_height.
5834
58352008-09-19 Juanma Barranquero <lekktu@gmail.com>
5836
5837 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5838
5839 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5840 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5841
58422008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5843
5844 * dispextern.h (struct it): Move line_wrap away from the middle of
5845 bitfields. Move voffset in struct iterator_stack_entry after the
5846 bitfields. Move tab_width near after another short.
5847
58482008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5849
5850 * frame.h (struct frame): Move alpha from the middle of bitfields.
5851
5852 * window.h (struct window): Move frozen_window_start_p after the
5853 rest of the bitfields to reduce padding.
5854
58552008-09-18 Chong Yidong <cyd@stupidchicken.com>
5856
5857 * xterm.h (x_display_info): Remove `height' and `width' members.
5858
5859 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5860
5861 * w32term.h (w32_display_info): Remove `height', `width',
5862 `height_in', and `width_in' members.
5863
b8ff72fa
SM
5864 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5865 New functions.
aac0c6e3
MR
5866 (x_calc_absolute_position): Use them.
5867 (x_term_init): Omit removed `height' and `width' members.
5868
b8ff72fa
SM
5869 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5870 New functions.
aac0c6e3
MR
5871 (w32_read_socket, x_calc_absolute_position): Use them.
5872 (w32_initialize_display_info, w32_term_init): Omit removed members
5873 of w32_display_info.
5874
b8ff72fa
SM
5875 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5876 New functions.
5877 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5878
b8ff72fa
SM
5879 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5880 New functions.
aac0c6e3
MR
5881 (x_calc_absolute_position): Use them.
5882 (x_term_init): Omit removed `height' and `width' members.
5883
5884 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5885 (compute_tip_xy):
5886 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5887 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5888 x_display_pixel_width.
5889
58902008-09-18 Kenichi Handa <handa@m17n.org>
5891
5892 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5893 (composition_compute_stop_pos): Fix handling of static composition.
5894 (Fcomposition_get_gstring): Check FROM and TO at first.
5895
58962008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5897
46e722a9 5898 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5899 mixup (YAILOM).
5900
59012008-09-17 Chong Yidong <cyd@stupidchicken.com>
5902
5903 * indent.c (Fvertical_motion): Use position reported by iterator
5904 instead of PT for determining screen motion (bug#943).
5905
59062008-09-17 Romain Francoise <romain@orebokech.com>
5907
5908 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5909
59102008-09-17 Kenichi Handa <handa@m17n.org>
5911
5912 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5913
5914 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5915 if necessary.
5916
59172008-09-16 Kenichi Handa <handa@m17n.org>
5918
5919 * coding.c (make_conversion_work_buffer): Avoid calling
5920 Fget_buffer_create if it is not necessary.
5921
59222008-09-15 Martin Rudalics <rudalics@gmx.at>
5923
5924 * window.c (Fselect_window): Don't update window_select_count and
5925 use_time when norecord is not nil.
5926
59272008-09-14 Kenichi Handa <handa@m17n.org>
5928
5929 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5930 specpdl_ptr.
5931
59322008-09-12 Kenichi Handa <handa@m17n.org>
5933
5934 * indent.c (scan_for_column): Don't handle automatic composition
5935 if the current buffer is not associated with a window.
5936
5937 * composite.c (composition_reseat_it): If the current buffer is
5938 not associated with a window, ignore the automatic composition.
5939 (find_automatic_composition): Likewise.
5940
59412008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5942
5943 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5944 (Fgpm_mouse_stop): Use it.
5945 * termhooks.h (close_gpm): Declare.
5946 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5947 connection if Gpm_GetEvent fails.
5948
5949 * window.c (set_window_buffer): Always preserve current-buffer.
5950
59512008-09-12 Glenn Morris <rgm@gnu.org>
5952
5953 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5954
59552008-09-11 Glenn Morris <rgm@gnu.org>
5956
5957 * charset.c (charset-map-path): Doc fix.
5958
59592008-09-10 Kenichi Handa <handa@m17n.org>
5960
5961 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5962
5963 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5964 compose a grapheme cluster with the preceding base glyph.
5965
5966 * composite.c (composition_compute_stop_pos): Fix previous change.
5967 Reset cmp_it->id to -1 at first.
5968
59692008-09-10 Glenn Morris <rgm@gnu.org>
5970
5971 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5972
59732008-09-09 Chong Yidong <cyd@stupidchicken.com>
5974
5975 * keyboard.c (read_key_sequence): Reapply translation maps when
5976 switching keyboards.
5977
59782008-09-09 Kenichi Handa <handa@m17n.org>
5979
5980 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5981 characters.
5982
5983 * composite.c (FORWARD_CHAR): Fix calculation
5984 of (POSITION).pos_byte.
5985 (composition_compute_stop_pos): Limit the search of composition to
5986 at most 500 characters ahead. If we reach the limit or find a
5987 newline, set cmp_it->ch to -2 and return 0.
5988 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5989
59902008-09-08 Kenichi Handa <handa@m17n.org>
5991
5992 * indent.c (Fvertical_motion): Be sure to set
5993 it_overshoot_expected if it.cmp_it.id is non-negative.
5994
59952008-09-07 Andreas Schwab <schwab@suse.de>
5996
5997 * callproc.c (Fcall_process): Don't hold references to string data
5998 across garbage collection. Move initialisation of new_argv down
5999 to avoid compiler bug.
6000
60012008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6002
6003 * process.c (Fsystem_process_attributes): Doc fix.
6004
60052008-09-07 Chong Yidong <cyd@stupidchicken.com>
6006
6007 * callproc.c (Fcall_process): Canonicalize current directory name.
6008
6009 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6010 iterator advances to the next line if the current line ends in a
6011 continued tab.
6012
60132008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6014
6015 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6016 member to point to cmp_from.
6017
6018 * xdisp.c: Doc fix for references to gidx data member.
6019
60202008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6021
6022 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6023
60242008-09-07 Kenichi Handa <handa@m17n.org>
6025
6026 * composite.c (FORWARD_CHAR): Check STOP after
6027 incrementing (POSITION).pos.
6028
60292008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6030
6031 * process.c (Fsystem_process_attributes): Doc fix.
6032
60332008-09-06 Chong Yidong <cyd@stupidchicken.com>
6034
6035 * keyboard.c (Ftop_level): Doc fix.
6036
60372008-09-06 Eli Zaretskii <eliz@gnu.org>
6038
6039 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6040 minibuffer, don't let lower part of menu invade the echo area.
6041
6042 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6043 "char *q" to access menu text and advance through it. Revert the
6044 change that displayed ">" instead of ASCII character 0x10.
6045
60462008-09-05 Eli Zaretskii <eliz@gnu.org>
6047
6048 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6049 toggle boxes and radio buttons on MS-DOS as well.
6050
60512008-09-05 Kenichi Handa <handa@m17n.org>
6052
6053 * composite.c (autocmp_chars): Check lookback count.
6054 (composition_compute_stop_pos): Set cmp_it->lookback.
6055 (composition_reseat_it): Check lookback count.
6056 (struct position_record): New struct.
6057 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6058 (find_automatic_composition): New function.
6059 (composition_adjust_point): Use find_automatic_composition.
6060
6061 * dispextern.h (struct composition_it): New member lookback.
6062
60632008-09-02 Chong Yidong <cyd@stupidchicken.com>
6064
6065 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6066 if moving by a single line.
6067
60682008-09-02 Andreas Schwab <schwab@suse.de>
6069
6070 * xterm.c (x_delete_display): Fix merge error.
6071
6072 * fileio.c (Fexpand_file_name): Remove unused variables.
6073
60742008-09-02 Eli Zaretskii <eliz@gnu.org>
6075
6076 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6077 storage on all platforms, not just on DOS_NT.
6078
60792008-09-02 Jason Rumney <jasonr@gnu.org>
6080
b8ff72fa
SM
6081 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6082 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6083
60842008-09-01 Chong Yidong <cyd@stupidchicken.com>
6085
6086 * xfaces.c (Finternal_set_alternative_font_family_alist)
6087 (Finternal_set_alternative_font_registry_alist): Properly copy
6088 entire alist structure.
6089
60902008-09-01 Kenichi Handa <handa@m17n.org>
6091
d66c0241 6092 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6093 representative chars of the script is a vector.
d66c0241
JB
6094 (ftfont_list): Handle the case where the representative chars of
6095 the script is a vector.
aac0c6e3
MR
6096
6097 * character.c (syms_of_character): Docstring of
6098 script-representative-chars fixed.
6099
61002008-08-31 Eli Zaretskii <eliz@gnu.org>
6101
6102 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6103 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6104 the menu. Allocate larger buffer for `text', to account for
6105 possible ^C characters.
6106
61072008-08-31 Martin Rudalics <rudalics@gmx.at>
6108
6109 * xdisp.c (prepare_menu_bars): Don't call
6110 Vwindow_size_change_functions with arg Qt.
6111
61122008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6113
6114 * font.h (font_range):
6115 * fileio.c (report_file_error):
46e722a9
SM
6116 * composite.c (composition_update_it): Yet another int/Lisp_Object
6117 mixup (YAILOM).
aac0c6e3
MR
6118
61192008-08-30 Glenn Morris <rgm@gnu.org>
6120
6121 * data.c (Fmake_variable_frame_local): Doc fix.
6122
6123 * frame.c (Fmodify_frame_parameters): Doc fix.
6124
61252008-08-30 Eli Zaretskii <eliz@gnu.org>
6126
6127 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6128 needed by GetTokenInformation.
6129 (w32_system_process_attributes): Check return values of all system
6130 APIs.
6131
6132 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6133 only when the state changes.
6134 (IT_update_begin, IT_update_end): Add termscript trace.
6135
6136 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6137 clipboard is unavailable. Set dst to NULL if it doesn't point to
6138 malloc'ed data.
6139 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6140 passing random values to xfree.
6141
6142 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6143 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6144
61452008-08-29 Jason Rumney <jasonr@gnu.org>
6146
6147 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6148
61492008-08-29 Eli Zaretskii <eliz@gnu.org>
6150
6151 * composite.c (fill_gstring_body): Avoid compiler warnings.
6152
6153 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6154 LGLYPH_SET_CODE to avoid compiler warnings.
6155
2ae37cf0 6156 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6157
6158 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6159
6160 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6161 LGLYPH_SET_CODE.
6162
61632008-08-29 Kenichi Handa <handa@m17n.org>
6164
6165 * fileio.c (report_file_error): Don't downcase the first character
6166 of errstring if it is still unibyte.
6167
61682008-08-29 Kenichi Handa <handa@m17n.org>
6169
6170 These changes are to re-implement the automatic composition so
6171 that it doesn't use text properties.
6172
6173 * Makefile.in (ftfont.o): Depend on composite.h.
6174 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6175
6176 * character.h (Vunicode_category_table): Extern it.
6177
6178 * character.c (Vunicode_category_table): New variable.
6179 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6180
6181 * chartab.c (optimize_sub_char_table): Perform more greedy
6182 optimization.
6183
b8ff72fa
SM
6184 * composite.h (enum composition_method):
6185 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6186 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6187 (Vcomposition_function_table): Extern it.
6188 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6189 (composition_gstring_put_cache, composition_gstring_from_id)
6190 (composition_gstring_p, composition_gstring_width)
6191 (composition_compute_stop_pos, composition_reseat_it)
6192 (composition_update_it, composition_adjust_point): Extern them.
6193 (Fcomposition_get_gstring): EXFUN it.
6194
d66c0241 6195 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6196 (Vcomposition_function_table)
6197 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6198 (gstring_hash_table, gstring_work, gstring_work_headers):
6199 New variables.
aac0c6e3
MR
6200 (gstring_lookup_cache, composition_gstring_put_cache)
6201 (composition_gstring_from_id, composition_gstring_p)
6202 (composition_gstring_width, fill_gstring_header)
6203 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6204 (composition_reseat_it, composition_update_it)
b8ff72fa 6205 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6206 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6207 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6208 Defsubr compostion_get_gstring.
6209
6210 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6211 cmp_id.
6212 (struct glyph_string): Delete the member gidx. New members
6213 cmp_id, cmp_from, and cmp_to.
6214 (enum it_method): Delete GET_FROM_COMPOSITION.
6215 (struct composition_it): New struct.
6216 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6217 Delete c, len, cmp_id, cmp_len in u.comp.
6218
6219 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6220 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6221 (enum lglyph_indices): Likewise.
b8ff72fa 6222 (font_range): Adjust extern.
aac0c6e3
MR
6223 (font_fill_lglyph_metrics): Extern it.
6224
6225 * font.c (QCf): New variable.
6226 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6227 (font_prepare_composition): Delete this function.
6228 (font_range): Type and arguments changed.
6229 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6230 (font_fill_lglyph_metrics): New function.
b8ff72fa 6231 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6232 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6233 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6234 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6235
6236 * fontset.h (font_for_char): Extern it.
6237
6238 * fontset.c (font_for_char): New function.
6239
6240 * ftfont.c: Include composite.h.
6241 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6242 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6243
6244 * indent.c: Include composite.h and dispextern.h.
6245 (check_composition): Delete this function.
6246 (scan_for_column): Handle composition by
6247 composition_compute_stop_pos, composition_reseat_it, and
6248 composition_update_it.
6249 (compute_motion): Likewise.
6250 (Fvertical_motion): Fix checking of composition.
6251
6252 * keyboard.c (adjust_point_for_property): Check composition by
6253 composition_adjust_point.
6254
b8ff72fa 6255 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6256 struct glyph_string.
6257
b8ff72fa
SM
6258 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6259 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6260 struct glyph.
6261 (produce_composite_glyph): Likewise.
6262
b8ff72fa
SM
6263 * w32term.c (x_draw_composite_glyph_string_foreground):
6264 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6265 (x_draw_glyph_string): Likewise.
6266
6267 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6268 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6269
6270 * xdisp.c: Include font.h.
6271 (it_props): Delete the entry for Qauto_composed.
6272 (init_iterator): Initialize it->cmp_it.id to -1.
6273 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6274 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6275 (handle_auto_composed_prop): Delete it.
6276 (handle_composition_prop): Handle only static composition.
6277 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6278 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6279 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6280 (pop_it): Likewise.
6281 (get_next_element): Delete next_element_from_composition.
6282 (CHAR_COMPOSED_P): New macro.
6283 (get_next_display_element): For automatic composition, get a face
6284 from the font in the glyph-string.
6285 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6286 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6287 (next_element_from_string): Check if the character at the current
6288 position is composed by CHAR_COMPOSED_P.
6289 (next_element_from_buffer): Likewise.
d66c0241
JB
6290 (next_element_from_composition): Adjust for the change of struct it.
6291 Update it->cmp_it.
b8ff72fa
SM
6292 (dump_glyph): Adjust for the change of struct glyph.
6293 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6294 it and struct glyph. Don't handle automatic composition here.
6295 (fill_gstring_glyph_string): New function.
6296 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6297 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6298 (BUILD_GSTRING_GLYPH_STRING): New macro.
6299 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6300 automatic composition.
b8ff72fa 6301 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6302 struct glyph.
b8ff72fa 6303 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6304
b8ff72fa 6305 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6306 the change of struct glyph_string.
6307 (x_draw_glyph_string): Likewise.
6308
63092008-08-29 Glenn Morris <rgm@gnu.org>
6310
6311 * buffer.c (word-wrap): Doc fix.
6312 * xdisp.c (truncate-partial-width-windows): Doc fix.
6313 Increase default to 50.
6314
63152008-08-29 Chong Yidong <cyd@stupidchicken.com>
6316
6317 * xdisp.c (update_tool_bar_unwind): New function.
6318 (update_tool_bar): Temporarily set selected frame before building
6319 tool-bar items.
6320
63212008-08-28 Michael Albinus <michael.albinus@gmx.de>
6322
6323 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6324 snprintf, respectively.
6325 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6326
63272008-08-28 Chong Yidong <cyd@stupidchicken.com>
6328
6329 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6330 LDFLAGS to GNUstep CC invocation.
6331
63322008-08-27 Chong Yidong <cyd@stupidchicken.com>
6333
6334 * indent.c (Fvertical_motion): Revert last change. Handle the
6335 general case where we are moving forward, and PT spans multiple
6336 screen lines.
6337
6338 * eval.c (find_handler_clause): Temporarily increase
6339 max-lisp-eval-depth while printing the backtrace buffer, to
6340 guarantee that help-mode code can run.
6341
63422008-08-27 Eli Zaretskii <eliz@gnu.org>
6343
6344 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6345 colors under -rv.
6346 (IT_set_frame_parameters): Don't swap foreground and background
6347 colors if `(reverse . t)' is present in the frame properties.
6348 (internal_terminal_init): Call init_frame_faces only for the
6349 initial frame.
6350
63512008-08-27 Andreas Schwab <schwab@suse.de>
6352
6353 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6354
63552008-08-27 Andreas Schwab <schwab@suse.de>
6356
6357 * search.c (search_buffer): Set char_base to zero only at the end.
6358
63592008-08-27 Kenichi Handa <handa@m17n.org>
6360
b8ff72fa 6361 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6362
63632008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6364
6365 * xterm.c (x_term_init): Temporarily hide the partially
6366 initialized terminal while calling vendor-specific-keysyms.
6367
63682008-08-26 Eli Zaretskii <eliz@gnu.org>
6369
6370 * msdos.c (internal_terminal_init): Most initializations done only
6371 once, especially initial_screen_colors[] and termscript open.
6372
63732008-08-26 Chong Yidong <cyd@stupidchicken.com>
6374
6375 * eval.c (Fcondition_case): Doc fix.
6376
6377 * widgetprv.h (EmacsFramePart): Change font member to the new font
6378 struct.
6379
6380 * widget.c: Include character.h and font.h for XSETFONT.
6381 (setup_frame_gcs): Compute X font id from font struct, just once.
6382
63832008-08-26 Eli Zaretskii <eliz@gnu.org>
6384
6385 * term.c (get_named_tty): Fix last change.
6386
63872008-08-26 Chong Yidong <cyd@stupidchicken.com>
6388
6389 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6390 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6391
63922008-08-25 Eli Zaretskii <eliz@gnu.org>
6393
6394 * frame.c (do_switch_frame): Mark previously displayed frame as
6395 obscured for FRAME_MSDOS_P frames as well.
6396
63972008-08-24 Eli Zaretskii <eliz@gnu.org>
6398
6399 * frame.c (make_terminal_frame): Initialize f->terminal,
6400 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6401 Set the top frame to newly created frame.
6402 (Fmake_terminal_frame): Reuse the_only_display_info.
6403
6404 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6405 estimating available memory.
6406
b97439ce 64072008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6408
6409 * nsterm.m (ns_draw_window_cursor): Don't call
6410 NSDisableScreenUpdates and NSEnableScreenUpdates on
6411 non-NS_IMPL_COCOA systems.
6412
64132008-08-23 Andreas Schwab <schwab@suse.de>
6414
6415 * process.c (procfs_system_process_attributes): Fix use of
6416 uninitialized variables.
6417
64182008-08-23 Eli Zaretskii <eliz@gnu.org>
6419
6420 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6421
6422 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6423 calling tty-set-up-initial-frame-faces.
6424
b8ff72fa
SM
6425 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6426 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6427
6428 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6429 addition to output_termcap.
6430
6431 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6432
6433 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6434 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6435 highlight.
6436
6437 * process.c [!subprocesses]: Define QCname.
6438 (syms_of_process): Intern and staticpro it.
6439
6440 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6441 Adjust for changes in encoding/decoding routines.
6442 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6443 encode_coding and decode_coding.
6444
b8ff72fa 6445 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6446
6447 * dosfns.c: Include frame.h before termhooks.h.
6448 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6449 variable termscript.
6450
6451 * s/msdos.h (USER_FULL_NAME): Define.
6452 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6453
6454 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6455 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6456 pw->pw_gecos.
6457
6458 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6459 SELECTED_FRAME as additional (1st) argument.
6460 (tty_read_avail_input): Handle output_msdos_raw in
6461 addition to output_termcap.
6462
6463 * msdos.c: Include frame.h before termhooks.h.
6464 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6465 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6466 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6467 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6468 (IT_set_terminal_modes, IT_reset_terminal_modes)
6469 (IT_set_frame_parameters): Use tty->termscript instead of a global
6470 variable termscript.
6471 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6472 global variable terminal_coding. Don't refer to
6473 Vnonascii_translation_table.
6474 (internal_terminal_init): Set Vwindow_system in current_kboard.
6475 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6476 Announce date and time of session start, if termscript is open.
6477 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6478 term.c:init_tty). Open termscript only of not already open.
6479 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6480 here instead of dos_ttraw. Don't initialize display if this is an
6481 initial tty. Don't set FRAME_FONT.
6482 (Vwindow_system_version): Bump to 23.
6483 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6484 is available, set up mouse_position_hook.
6485 (dos_ttraw, IT_set_terminal_modes): If called with initial
6486 terminal, do nothing.
6487 (IT_set_frame_parameters): Handle the Qtty_type frame
6488 parameter by calling internal_terminal_init.
6489 (dos_set_window_size, show_mouse_face)
6490 (clear_mouse_face, IT_note_mode_line_highlight)
6491 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6492 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6493 (initialize_msdos_display): New function.
6494 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6495 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6496 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6497 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6498 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6499 (request_sigio, unrequest_sigio): Don't define, now defined on
6500 sysdep.c.
6501 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6502
6503 * term.c [MSDOS]: Include msdos.h.
6504 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6505 conditional to DOS_NT. Allow only one call to this function in a
6506 session. Don't allocate a new struct tty_display_info; instead,
6507 reuse the_only_display_info. Call get_tty_size to get screen
6508 dimensions. Call init_baud_rate to set bad_rate.
6509 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6510 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6511 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6512 (get_tty_terminal, get_named_tty, Ftty_type)
6513 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6514 output_termcap.
b8ff72fa
SM
6515 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6516 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6517 only when subprocesses are supported.
aac0c6e3
MR
6518
6519 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6520 f->output_data.x.
6521 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6522 terminal devices.
6523
5582fbc7 6524 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6525 x_output.
6526 (FRAME_FONT): Use output_data.tty.
6527 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6528 (struct x_display_info): Rename from display_info. Update all users in
6529 msdos.c.
aac0c6e3 6530 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6531 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6532 (dos_ttraw): Update prototype.
6533
6534 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6535 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6536
65372008-08-23 Jason Rumney <jasonr@gnu.org>
6538
6539 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6540 (fn_TIFFSetDirectory): New library function used.
6541 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6542 (tiff_load): Use :index to select among multiple images. Set count
6543 property when multiple images exist.
6544 (gif_format): Use :index, not :image.
6545
65462008-08-23 Chong Yidong <cyd@stupidchicken.com>
6547
6548 * xdisp.c (try_scrolling): Check INT_MAX instead of
6549 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6550 to obtain INT_MAX.
6551
65522008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6553
6554 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6555
65562008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6557
6558 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6559 GNUstep library location.
6560
65612008-08-21 Chong Yidong <cyd@stupidchicken.com>
6562
6563 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6564 before using it.
6565
6566 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6567
65682008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6569
6570 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6571 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6572 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6573 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6574 (EmacsApp-cursor_blink_handler): Remove declaration.
6575 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6576 match 01 Feb 2008 changes in xterm.c.
6577 (ns_read_socket): Add cast to avoid warning.
6578 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6579 GNUstep.
6580
65812008-08-20 Chong Yidong <cyd@stupidchicken.com>
6582
6583 * xselect.c (x_get_foreign_selection): Return nil if desired
6584 selection could not be obtained, instead of signalling an error.
6585
65862008-08-20 David Reitter <david.reitter@gmail.com>
6587
6588 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6589 * nsterm.m: Remove ns-specific code for cursor blinking.
6590 (ns_draw_window_cursor): Clear cursor properly rather than
6591 redrawing the area. Respect width of bar cursors.
6592 These changes enable the use of generic blink-cursor-mode and
6593 generic cursor types in NS and support smooth cursor movements (do
6594 not blink off after command).
6595 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6596 Nextstep, too.
6597
65982008-08-19 Kenichi Handa <handa@m17n.org>
6599
6600 * font.c (Vfont_log_deferred): New variable.
6601 (font_add_log): Check Vfont_log_deferred.
6602 (font_deferred_log): New function.
6603
6604 * font.h (font_deferred_log): Extern it.
6605
6606 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6607 for sorting.
6608 (face_for_char): Use deferred log.
6609
66102008-08-18 Kenichi Handa <handa@m17n.org>
6611
6612 * fontset.c (face_for_char): Add font log.
6613
6614 * font.c (font_add_log): Add the font properties :script, :lang,
6615 and :otf in the log.
6616
66172008-08-17 Chong Yidong <cyd@stupidchicken.com>
6618
6619 * xdisp.c: Remove dead code.
6620 (handle_invisible_prop, next_overlay_string): Defer call to
6621 setup_for_ellipsis.
6622 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6623
66242008-08-15 Chong Yidong <cyd@stupidchicken.com>
6625
6626 * xfaces.c (lookup_derived_face): Properly handle possible zero
6627 return value of get_lface_attributes.
6628 (merge_faces): Don't tell lookup_derived_face to signal an error
6629 if face is not found.
6630
6631 * dired.c (Fdirectory_files): Doc fix.
6632
6633 * process.c (make_process): Initialize kill_without_query struct
6634 member.
6635
66362008-08-15 Eli Zaretskii <eliz@gnu.org>
6637
6638 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6639 Alternative calculation of totphys for Visual Studio 6.
6640
6641 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6642
6643 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6644 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6645 All users changed.
6646 (stat): Only root directory passed to GetDriveType. Allow RAM
6647 disk as well as local fixed disk when w32-get-true-file-attributes
6648 is set to `local'.
6649 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6650 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6651 (w32_cached_id, w32_add_to_cache): New functions.
6652 (get_name_and_id): Look account names in the cache before calling
6653 lookup_account_sid.
6654 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6655 New initialization flags.
6656 (globals_of_w32): Initialize them to zero.
6657 (w32_system_process_attributes): Use w32_cached_id and
6658 w32_add_to_cache.
6659
66602008-08-14 Lawrence Mitchell <wence@gmx.li>
6661
6662 * lread.c (Fread_char, Fread_char_exclusive): If no character
6663 event is read before timeout is reached, return nil, rather than
6664 converting to a number.
6665
66662008-08-14 Chong Yidong <cyd@stupidchicken.com>
6667
6668 * fns.c (use_dialog_box): Doc fix.
6669
6670 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6671 on OS X.
6672
66732008-08-13 Chong Yidong <cyd@stupidchicken.com>
6674
6675 * frame.c (Qns_parse_geometry): New var.
6676 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6677
66782008-08-11 Chong Yidong <cyd@stupidchicken.com>
6679
6680 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6681 space character in calculating tabs.
6682
66832008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6684
6685 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6686
66872008-08-10 Glenn Morris <rgm@gnu.org>
6688
6689 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6690 silence gcc "limited range of data type" warnings in some
6691 make_fixnum_or_float calls.
6692
66932008-08-09 Eli Zaretskii <eliz@gnu.org>
6694
6695 * w32.c (w32_system_process_attributes): If the process does not
6696 exist, return nil.
6697
6698 * w32.c: Include thelp32.h, psapi.h and coding.h.
6699 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6700 declarations.
6701 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6702 (Process32Next_Proc): New typedefs.
6703 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6704 (g_b_init_process32_next, g_b_init_open_thread_token)
6705 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6706 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6707 (g_b_init_get_process_working_set_size)
6708 (g_b_init_global_memory_status_ex): New static variables.
6709 (globals_of_w32): Initialize them.
6710 (create_toolhelp32_snapshot, process32_first, process32_next)
6711 (open_thread_token, impersonate_self, revert_to_self)
6712 (get_process_memory_info, get_process_working_set_size)
6713 (global_memory_status, global_memory_status_ex): New wrapper
6714 functions.
6715 (w32_list_system_processes, w32_system_process_attributes)
6716 (enable_privilege, restore_privilege, ltime, process_times):
6717 New functions.
6718 (convert_time_raw): New function.
6719 (convert_time): Remove conversion of FILETIME into time in 100
6720 nsec units, call convert_time_raw instead.
6721
6722 * process.h (w32_list_system_processes, w32_system_process_attributes):
6723 Add prototypes.
6724 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6725 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6726 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6727 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6728
6729 * process.c (Fsystem_process_attributes): Doc fix.
6730
67312008-08-08 Chong Yidong <cyd@stupidchicken.com>
6732
6733 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6734 a continued multi-char glyph; if so, advance to the actual glyph.
6735
67362008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6737
6738 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6739
6740 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6741 (.m.o): Use it.
6742 * config.in: Regenerate.
6743
67442008-08-07 Chong Yidong <cyd@stupidchicken.com>
6745
6746 * xdisp.c (redisplay_window): Revert last change.
6747 (try_window): Check bottom scroll margin too.
6748
67492008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6750
6751 * config.in: Regenerate.
6752
6753 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6754 -list-load-path-shadows'.
6755 (nsgui.h): Reduce number of things depending on it.
6756
67572008-08-06 Chong Yidong <cyd@stupidchicken.com>
6758
6759 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6760 instead of window-end which does the wrong thing at eob.
6761 (try_cursor_movement): Minor optimization.
6762 (redisplay_window): If scroll margin is defined, don't assume
6763 window doesn't need scrolling.
6764
67652008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6766
6767 * config.in: Regenerate.
6768
6769 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6770 (mostlyclean): Don't delete *.d under NS.
6771
6772 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6773
67742008-08-06 Kenichi Handa <handa@m17n.org>
6775
6776 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6777
67782008-08-06 Andreas Schwab <schwab@suse.de>
6779
6780 * config.in: Regenerate.
6781
67822008-08-05 Chong Yidong <cyd@stupidchicken.com>
6783
6784 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6785 forcing a window start.
6786
6787 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6788 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6789
67902008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6791
6792 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6793 argument.
6794
67952008-08-05 Juanma Barranquero <lekktu@gmail.com>
6796
6797 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6798 <scroll-down-aggressively, before-change-functions>:
6799 <after-change-functions>: Reflow docstrings.
6800
68012008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6802 Ken Raeburn <raeburn@gnu.org>
6803
6804 Dock menu customization, based on a patch by Ken Raeburn, plus some
6805 other fixes.
6806 * nsmenu.m (dockMenu): New variable.
6807 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6808
6809 * nsterm.h (dockMenu): Declare.
6810
6811 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6812 (ns_term_init): Initialize dockMenu.
6813 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6814 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6815 left.
6816
6817 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6818
68192008-08-04 Chong Yidong <cyd@stupidchicken.com>
6820
6821 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6822
6823 * config.in: Regenerate.
6824
68252008-08-04 Seiji Zenitani <zenitani@mac.com>
6826
6827 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6828
68292008-08-04 Chong Yidong <cyd@stupidchicken.com>
6830
6831 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6832
68332008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6834
6835 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6836
6837 * keyboard.h: Comment an #endif.
6838
6839 * lisp.h (have_menus_p): Adjust comment.
6840
6841 * menu.c (find_and_return_menu_selection): Fix comparison with
6842 client_data.
6843
6844 * nsmenu.m (popup_activated_flag): New variable.
6845 (popup_activated): New function.
6846 (menu-or-popup-active-p): New exported lisp definition.
6847 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6848 when popup done.
6849 (ns_popup_dialog): Set popup_activated_flag.
6850
6851 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6852 version for GNUstep (handled by conditional typedef in nsterm.m).
6853 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6854 in rgb.txt).
6855
6856 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6857
6858 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6859
6860 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6861
6862 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6863 shortcircuit if popup_activated like GTK and X toolkit.
6864
6865 * m/inter386.h: Change DARWIN to DARWIN_OS.
6866
6867 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6868 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6869 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6870 comment on NO_SOCK_SIGIO.
6871
68722008-08-03 Chong Yidong <cyd@stupidchicken.com>
6873
6874 * nsterm.m (windowDidResize): Remove stopModal call.
6875
68762008-08-03 Andreas Schwab <schwab@suse.de>
6877
6878 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6879 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6880
68812008-08-02 Chong Yidong <cyd@stupidchicken.com>
6882
6883 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6884 Don't use uninitialized pointer variable when using getrlimit.
6885
68862008-08-02 Jason Rumney <jasonr@gnu.org>
6887
6888 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6889
68902008-08-02 Eli Zaretskii <eliz@gnu.org>
6891
6892 * alloc.c (NSTATICS): Bump to 0x640.
6893
6894 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6895
6896 * lisp.h: Add prototype for directory_files_internal.
6897
6898 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6899 New functions.
6900 (syms_of_process): Defsubr them. Add initializations for various
6901 Q* symbols used in procfs_system_process_attributes.
6902 (procfs_list_system_processes, procfs_system_process_attributes)
6903 [HAVE_PROCFS]: New functions.
6904 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6905 (procfs_get_total_memory): New functions.
6906
69072008-08-01 Juanma Barranquero <lekktu@gmail.com>
6908
6909 * xfaces.c (Fx_load_color_file): Fix previous change;
6910 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6911
69122008-08-01 Michael Albinus <michael.albinus@gmx.de>
6913
6914 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6915
69162008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6917
6918 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6919
69202008-08-01 Chong Yidong <cyd@stupidchicken.com>
6921
6922 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6923
6924 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6925 define NSApplicationDelegateReplySuccess.
6926 (EmacsView -converstationIdentifier): Use long instead of
6927 NSInteger for GNUstep, since it doesn't have NSInteger.
6928
6929 * xmenu.c: Revert last change.
6930
6931 * keyboard.h: Fix last change.
6932
69332008-08-01 Juanma Barranquero <lekktu@gmail.com>
6934
6935 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6936 on Windows.
6937
69382008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6939
6940 Warning clearing and clean-up in NS port.
6941 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6942 Add prototypes.
6943 * nsgui.h (FACE_DEFAULT): Remove, unused.
6944 (XGCValues): Change colors to unsigned long.
6945 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6946 nsterm.m.
6947 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6948 (ns_list_fonts): Remove, unused.
6949 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6950 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6951 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6952 (nsfont_draw): Compare face colors to 0, not nil.
6953 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6954 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6955 (-addSubmenuWithTitle:): Use NSMenuItem class.
6956 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6957 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6958 (ns_clip_to_row): Make gc arg a BOOL.
6959 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6960 ns_clip_to_row() call.
6961 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6962 used). Cast FRAME_FONT assignments.
6963 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6964 (ns_string_to_lispmod): Change arg to const char.
6965 (ns_term_init): Use NSMenuItem class.
6966 (EmacsApp -openFile:): Move to different section of file.
6967 (EmacsApp -application:openFiles:): Don't return a value, call
6968 -replyToOpenOrPrint:.
6969 (EmacsView -keyDown:): Fix up cast.
6970 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6971 (EmacsView -menuDown:): Cast tag in call to
6972 find_and_call_menu_selection().
6973 (ns_list_fonts): Remove, unused.
6974 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6975 (ns_fontname_to_xlfd): Make static.
6976 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6977 Remove prototypes (now in keyboard.h).
6978 (next_menubar_widget_id): Remove, unused.
6979 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6980 Remove prototypes (now in keyboard.h).
6981 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6982
69832008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6984
6985 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6986 (floatfns.o): Depend on syssignal.h.
6987 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6988
6989 * systty.h: Fix previous change that removed BSD_TERMIOS.
6990 Add comments to #ifdefs.
6991
69922008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6993
6994 * w32fns.c (w32-load-color-file): Remove.
6995 (x-open-connection): Use renamed Fx_load_color_file.
6996 * xfaces.c (x-load-color-file): Add.
6997 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6998 Emacs.clr.
6999 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7000
70012008-07-31 Michael Albinus <michael.albinus@gmx.de>
7002
7003 * dbusbind.c (Fdbus_call_method_asynchronously)
7004 (Fdbus_method_error_internal): New defuns.
7005 (xd_read_message): Handle also reply messages.
7006 (Vdbus_registered_functions_table): Extend docstring.
7007
70082008-07-31 Juanma Barranquero <lekktu@gmail.com>
7009
7010 * keyboard.c (gobble_input): Fix previous change.
7011
70122008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7013
7014 * bitmaps/README:
7015 * xfns.c:
7016 * termcap.c:
7017 * term.c:
7018 * syswait.h:
7019 * systty.h:
7020 * systime.h:
7021 * syssignal.h:
7022 * sysdep.c:
7023 * process.h:
7024 * process.c:
7025 * print.c:
7026 * ndir.h:
7027 * lread.c:
7028 * keyboard.c:
7029 * getpagesize.h:
7030 * floatfns.c:
7031 * fileio.c:
7032 * emacs.c:
7033 * doc.c:
7034 * dispnew.c:
7035 * dired.c:
7036 * data.c:
7037 * callproc.c:
7038 * buffer.c:
7039 * README:
7040 * Makefile.in:
7041 * s/template.h:
7042 * s/msdos.h:
7043 * m/vax.h: Remove VMS support.
7044 * s/vms.h:
7045 * vlimit.h:
7046 * uaf.h:
7047 * temacs.opt:
7048 * param.h:
7049 * ioctl.h: Remove file.
7050
70512008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7052
7053 * s/ms-w32.h (MULTI_KBOARD): Remove.
7054 * xterm.c:
7055 * xselect.c:
7056 * xfns.c:
7057 * window.c:
7058 * w32term.c:
7059 * w32fns.c:
7060 * terminal.c:
7061 * termhooks.h:
7062 * term.c:
7063 * sysdep.c:
7064 * keyboard.h:
7065 * keyboard.c:
7066 * frame.h:
7067 * frame.c:
7068 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7069 * config.in: Regenerate.
7070
70712008-07-30 Jason Rumney <jasonr@gnu.org>
7072
7073 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7074
7075 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7076 (w32font_open_internal): Get unicode version of textmetrics.
7077 Don't enable or disable glyph indices here.
7078 (w32font_open): Disable use of glyph indices.
7079
7080 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7081
70822008-07-30 Chong Yidong <cyd@stupidchicken.com>
7083
7084 * minibuf.c (Vread_buffer_function): Doc fix.
7085
70862008-07-30 John Paul Wallington <jpw@pobox.com>
7087
7088 * minibuf.c (read_buffer_completion_ignore_case): New var.
7089 (Fread_buffer): Use it.
7090
70912008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7092
7093 * systty.h (sensemode): Remove empty #if. Remove reference to
7094 BSD_TERMIOS, unused.
7095
7096 * sysdep.c: Remove reference to DGUX.
7097 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7098
7099 * config.in: Regenerate.
7100
71012008-07-30 Jason Rumney <jasonr@gnu.org>
7102
7103 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7104
71052008-07-29 Jason Rumney <jasonr@gnu.org>
7106
7107 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7108 is populated.
7109 (uniscribe_encode_char): Always use uniscribe.
7110 Avoid using context if cache is populated.
7111
71122008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7113
7114 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7115 open menu.
7116
7117 * gtkutil.c (menu_nav_ended): Remove.
7118 (create_menus): Remove signal connect for menu_nav_ended.
7119
71202008-07-28 Chong Yidong <cyd@stupidchicken.com>
7121
7122 * xdisp.c (redisplay_window): Check return value of
7123 compute_window_start_on_continuation_line before forcing a window
7124 start.
7125
71262008-07-28 Jason Rumney <jasonr@gnu.org>
7127
7128 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7129
7130 * w32term.c (w32_enable_unicode_output, cleartype_active):
7131 Remove obsolete display options.
7132 (x_draw_glyph_string_background): Don't use old cleartype_active
7133 workaround.
7134 (w32_initialize): Remove cleartype_active initialization.
7135 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7136
71372008-07-28 Andreas Schwab <schwab@suse.de>
7138
7139 * lisp.h (init_weak_hash_tables, syms_of_font)
7140 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7141 (remove_hash_entry): Don't declare.
7142 * eval.c (maybe_call_debugger): Make static and move before use.
7143 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7144 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7145 * xterm.h (x_set_frame_alpha): Declare.
7146
71472008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7148
7149 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7150 (create_menus): Connect selection-done to menu_nav_ended.
7151
71522008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7153
7154 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7155 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7156 parameter with read of 'alpha' one.
7157 (Qns_frame_parameter): Remove.
5582fbc7 7158 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7159 (next-selection-coding-system, Vselection_coding_system)
7160 (Vnext_selection_coding_system): Drop.
7161
71622008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7163
7164 * nsfns.m (do-applescript, do_applescript): Rename to
7165 ns-do-applescript, ns_do_applescript, and move within file.
7166
71672008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7168
7169 Remove support for Mac Carbon.
7170 * mactoolbox.c:
7171 * macterm.h:
7172 * macterm.c:
7173 * macselect.c:
7174 * macmenu.c:
7175 * macgui.h:
7176 * macfns.c:
7177 * mac.c: Remove file.
7178 * s/darwin.h:
7179 * m/intel386.h:
7180 * xfaces.c:
7181 * xdisp.c:
7182 * window.c:
7183 * tparam.c:
7184 * termhooks.h:
7185 * termcap.c:
7186 * term.c:
7187 * syssignal.h:
7188 * sysselect.h:
7189 * sysdep.c:
7190 * process.c:
7191 * lread.c:
7192 * lisp.h:
7193 * keyboard.c:
7194 * image.c:
7195 * fringe.c:
7196 * frame.h:
7197 * frame.c:
7198 * fontset.c:
7199 * font.h:
7200 * font.c:
7201 * fns.c:
7202 * fileio.c:
7203 * emacs.c:
7204 * dispnew.c:
7205 * dispextern.h:
7206 * config.in:
7207 * atimer.c:
2ae37cf0 7208 * Makefile.in: Remove code for Carbon.
aac0c6e3 7209
f0131492 72102008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7211
7212 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7213
72142008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7215
7216 * macterm.h (kCGBitmapByteOrder32Host): New define for
7217 non-universal SDKs.
7218
7219 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7220 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7221
7222 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7223 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7224
72252008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7226
7227 * w32inevt.c: Include dispextern.h.
7228
72292008-07-26 Andreas Schwab <schwab@suse.de>
7230
7231 * print.c (print_object): Fix off-by-one in last change.
7232
72332008-07-25 Juanma Barranquero <lekktu@gmail.com>
7234
7235 * term.c (syms_of_term): Don't initialize default_orig_pair,
7236 default_set_foreground and default_set_background on Windows.
7237
72382008-07-25 Jason Rumney <jasonr@gnu.org>
7239
7240 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7241 ScriptItemize. Clean up return value checking. Remove unused
7242 variables.
7243 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7244 shaping engine.
7245
7246 * w32font.c (w32font_has_char): Handle the case where we can't
7247 determine the script for a character.
7248
72492008-07-25 Chong Yidong <cyd@stupidchicken.com>
7250
7251 * term.c (syms_of_term): Initialize default_orig_pair,
7252 default_set_foreground, and default_set_background.
7253
7254 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7255 clash (bug#86).
7256 (getloadavg): Callers changed.
7257
7258 * image.c (svg_load_image): Fix last change.
7259 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7260 image size is valid. Use g_object_unref instead of deprecated
7261 rsvg_handle_free to free rsvg handle.
7262 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7263
72642008-07-25 Jason Rumney <jasonr@gnu.org>
7265
7266 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7267 surrogates before looking up glyph index.
7268 (w32font_text_extents): Encode as surrogates if falling back to
7269 functions that need UTF-16 wide chars.
7270
7271 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7272 BMP as surrogates before looking up glyph index.
7273
72742008-07-25 Chong Yidong <cyd@stupidchicken.com>
7275
7276 * image.c (svg_load_image): Check for failure in return value of
7277 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7278
72792008-07-25 Jason Rumney <jasonr@gnu.org>
7280
7281 * w32font.c (Fx_select_font): Reverse sense of second arg.
7282
72832008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7284
7285 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7286 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7287
7288 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7289 (PURESIZE): Use it.
7290
72912008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7292
7293 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7294 * m/alpha.h (TEXT_END):
7295 * m/ibmrs6000.h (TEXT_END):
7296 * m/macppc.h (TEXT_END):
7297 * s/darwin.h (TEXT_END):
7298 * s/msdos.h (TEXT_END): Remove, unused.
7299 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7300 * s/cygwin.h: Remove comment.
7301
7302 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7303 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7304 * m/intel386.h (DOT_GLOBAL_START):
7305 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7306 (USG): Remove, file not used on USG platforms.
7307
7308 * Makefile.in (HAVE_X11): Remove empty #else.
7309
73102008-07-24 Andreas Schwab <schwab@suse.de>
7311
7312 * fileio.c (Finsert_file_contents): Properly adjust undo list
7313 after format conversion.
7314
73152008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7316
7317 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7318 (menu_nav_ended): Remove.
7319 (create_menus): Remove signal connect for menu_nav_ended.
7320 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7321 create_menus.
7322 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7323
73242008-07-23 Jason Rumney <jasonr@gnu.org>
7325
7326 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7327 with opened font.
7328 (w32font_open): Set font type to gdi.
7329
7330 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7331
73322008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7333
7334 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7335 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7336 defines it.
7337 * unexec.c (ADDR_CORRECT): Define unconditionally.
7338
7339 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7340
7341 * unexec.c: Remove code depending on !COFF and USG, the file is
7342 not used for such systems.
7343
7344 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7345 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7346 (LD_SWITCH_SYSTEM_1): Remove, update users.
7347
7348 * s/darwin.h (DATA_END):
7349 * m/intel386.h (DATA_END):
7350 * m/ibmrs6000.h (DATA_END):
7351 * m/alpha.h (DATA_END): Remove, unused.
7352
7353 * config.in: Regenerate.
7354 * s/ms-w32.h (subprocesses): Define unconditionally.
7355 * s/template.h (subprocesses): Update comment.
7356 * s/vms.h (subprocesses):
7357 * s/usg5-4.h (subprocesses):
7358 * s/hpux10-20.h (subprocesses):
7359 * s/gnu-linux.h (subprocesses):
7360 * s/cygwin.h (subprocesses):
7361 * s/bsd-common.h (subprocesses):
7362 * s/aix4-2.h (subprocesses):
7363 * s/darwin.h (subprocesses): Do not define, defined by default now.
7364
7365 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7366 Remove all references.
7367 (temacs): Add GNUstep specific ld flags.
7368
7369 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7370 similarly to what X does.
7371
73722008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7373
7374 * nsfns.m (x-list-fonts): Remove.
7375 (syms_of_nsfns): Drop the x-list-fonts declaration.
7376 * nsterm.m: Get rid of remaining "//" comments.
7377
73782008-07-22 Chong Yidong <cyd@stupidchicken.com>
7379
7380 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7381
7382 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7383 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7384 (Fns_own_selection_internal, Fx_disown_selection_internal)
7385 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7386
7387 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7388 ... */' style of docstrings. Doc fixes.
7389
73902008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7391
7392 * terminfo.c (UP, BC, PC): Undo previous change.
7393
7394 * nsfns.m: Rename ns prefixed functions/variables to the
7395 corresponding x versions. Update references.
7396
73972008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7398
7399 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7400
74012008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7402
7403 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7404 Remove forwarding functions.
7405 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7406 non-static.
7407 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7408 non-static.
7409 (ns_frame_parm_handlers): Use the new names.
7410 (syms_of_nsfns): Move to the end of file.
7411
7412 * nsterm.m (syms_of_nsterm): Move to the end of file.
7413
7414 * dispnew.c (init_display): Remove code for X10.
7415
74162008-07-22 Jason Rumney <jasonr@gnu.org>
7417
7418 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7419 bare drive.
7420
74212008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7422
7423 * nsterm.m (syms_of_nsterm): Remove debugging println.
7424
74252008-07-22 David Reitter <david.reitter@gmail.com>
7426
7427 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7428 Carbon implementation of the same functionality: execute arbitrary
7429 AppleScript code.
7430
74312008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7432
7433 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7434 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7435 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7436 (Fx_display_mm_height, Fx_display_mm_width)
7437 (Fx_display_backing_store, Fx_display_visual_class)
7438 (Fx_display_save_under, Fx_open_connection)
7439 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7440 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7441 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7442 (Fx_display_pixel_width, Fx_display_pixel_height)
7443 (Fx_display_usable_bounds, Fx_display_planes)
7444 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7445 ... */' style of docstrings.
7446
74472008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7448
7449 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7450 on this platform.
7451 (mips):
7452 * m/iris4d.h (mips): Do not define.
7453 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7454
7455 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7456
7457 * image.c:
7458 * nsfns.m:
7459 * nsselect.m:
7460 * nsterm.h:
7461 * nsterm.m: Rename ns prefixed functions/variables to the
7462 corresponding x versions. Update references.
7463
7464 * m/ibms390x.h (NO_REMAP): Do not undefine.
7465
7466 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7467
74682008-07-21 Chong Yidong <cyd@stupidchicken.com>
7469
7470 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7471 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7472 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7473 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7474 (Fns_display_mm_height, Fns_display_mm_width)
7475 (Fns_display_backing_store, Fns_display_visual_class)
7476 (Fns_display_save_under, Fns_open_connection)
7477 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7478 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7479 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7480 (Fns_display_pixel_width, Fns_display_pixel_height)
7481 (Fns_display_usable_bounds, Fx_display_planes)
7482 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7483
74842008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7485
7486 * print.c (print_object): Check print_depth before searching for
7487 circularities.
7488
74892008-07-21 Michael Albinus <michael.albinus@gmx.de>
7490
7491 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7492 only sprintf.
7493
74942008-07-21 Kenichi Handa <handa@m17n.org>
7495
7496 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7497
74982008-07-20 Andreas Schwab <schwab@suse.de>
7499
7500 * syntax.c (find_start_pos, find_start_value)
7501 (find_start_value_byte, find_start_begv, find_defun_start)
7502 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7503
75042008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7505
7506 * s/sol2-3.h: Insert contents of s/sol2.h.
7507 (LD_SWITCH_SYSTEM): Remove redundant definition.
7508 * s/sol2.h: Remove, unused.
7509
75102008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7511
7512 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7513
75142008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7515
7516 * Makefile.in (ns_appdir): Fix typo in find command.
7517
75182008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7519
7520 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7521
7522 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7523 added not supported anymore.
7524
7525 * s/usg5-4-2.h (LIBS_SYSTEM):
7526 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7527
7528 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7529 * s/lynxos.h (GETPGRP_NO_ARG):
7530 * s/hpux10-20.h (NO_SIOCTL_H):
7531 * s/gnu.h (GETPGRP_NO_ARG):
7532 * s/gnu-linux.h (NO_SIOCTL_H):
7533 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7534 * s/cygwin.h (GETPGRP_NO_ARG):
7535 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7536 (C_DEBUG_SWITCH): Remove duplicate definition.
7537
7538 * m/ibms390.h: Remove boilerplate comments.
7539
7540 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7541
7542 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7543 (wait_reading_process_output): Remove code for SunOS, platform not
7544 supported anymore. Use SOLARIS2 instead of sun.
7545
75462008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7547
7548 * font.c (font_open_by_name): Under NS, default lface height to zero.
7549 (font_open_for_lface): Under NS, set size based on frame fontsize.
7550 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7551 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7552
75532008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7554
7555 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7556 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7557 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7558 YES/NO.
7559 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7560 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7561 * Makefile.in (clean): Clear out build destination dir.
7562
75632008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7564
7565 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7566 xterm, xselect.
7567 * lisp.h: Remove declaration of hash_remove.
7568 * nsgui.h: Remove redefinitions of hash_remove.
7569 * fns.c (hash_remove): Rename to hash_remove_from_table.
7570
75712008-07-19 Seiji Zenitani <zenitani@mac.com>
7572
7573 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7574 strdup() the family UTF8String before modifying it.
7575
75762008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7577
7578 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7579 NS_FACE_BACKGROUND with 0 instead of nil.
7580 * nsfont.m (nsfont_draw): Same.
7581
75822008-07-19 Chong Yidong <cyd@stupidchicken.com>
7583
7584 * nsfns.m (ns_set_background_color): Fix crash.
7585
75862008-07-18 Chong Yidong <cyd@stupidchicken.com>
7587
7588 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7589
75902008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7591
7592 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7593
75942008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7595
7596 * gtkutil.c: Include <config.h> instead of "config.h".
7597
7598 * lisp.h (Foverlay_buffer): Add EXFUN.
7599
7600 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7601 child process to complete child_setup. Undo 2005-09-21 change.
7602
7603 * s/darwin.h: Mention setsid after vfork.
7604
76052008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7606
7607 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7608 Depend on macgui.h.
7609
7610 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7611 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7612
7613 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7614 and f19.
7615 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7616
7617 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7618 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7619 Remove enumerators.
7620
7621 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7622 Check if FACE_FROM_ID returns NULL.
7623
76242008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7625
7626 * w32inevt.c (change_frame_size): Remove extern declaration.
7627 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7628 change_frame_size.
7629
76302008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7631
7632 * getloadavg.c: Revert last change (2008-07-15).
7633
76342008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7635
7636 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7637 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7638 from configure.
7639
76402008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7641
7642 * s/sol2.h:
7643 * s/sol2-4.h: Reorganize conditionals.
7644
7645 * ecrt0.c: Remove code depending on m68000, not used anymore.
7646
7647 * fns.c (hash_remove): Make static.
7648 * lisp.h (hash_remove): Don't prototype.
7649
7650 * m/ibmrs6000.h:
7651 * m/ibms390x.h:
7652 * m/macppc.h: Remove boilerplate comments.
7653
7654 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7655 Solaris, which does not need them.
7656
7657 * m/vax.h: Remove comments about unsupported systems.
7658
7659 * s/darwin.h: Reorganize ifdefs.
7660
76612008-07-17 Andreas Schwab <schwab@suse.de>
7662
7663 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7664
76652008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7666
7667 Use SDATA. Follow coding convention of placing operators at
7668 beginning of next line rather than end of previous line, and placing
7669 spaces around infix operators.
7670
7671 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7672 in case it was defined already.
7673 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7674 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7675 ns_default.
7676 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7677 Lisp_Objects.
7678 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7679 (ns_defined_color, ns_color_to_lisp): Declare.
7680 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7681 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7682 it's accepted even with USE_LISP_UNION_TYPE.
7683 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7684 (update_frame_tool_bar): Remove apparently obsolete tests for
7685 non-integerness of f->tool_bar_lines.
7686 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7687 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7688 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7689 (nsfont_open): Don't confuse NULL for Qnil.
7690 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7691 * menu.h (find_and_call_menu_selection):
7692 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7693 (find_and_return_menu_selection): Always return something.
7694 * frame.h: Include dispextern.h for Display_Info.
7695 (display_x_get_resource): Declare.
7696
76972008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7698
7699 * syntax.c: Remove stdio.h include accidentally introduced in
7700 Emacs.app commit.
7701 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7702 NS_IMPL_COCOA.
7703 * keyboard.c (handle_async_input, input_available_signal): Remove
7704 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7705
77062008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7707
7708 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7709 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7710 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7711 Use SDATA.
7712
7713 * keymap.c: Remove all NS-specific code.
7714 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7715 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7716 where_is_preferred_modifier, return a different value depending on how
7717 preferred is the binding.
7718 (where_is_internal): Adjust accordingly.
7719 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7720 Adjust to new preferred_sequence_p.
7721 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7722 * keyboard.c (parse_solitary_modifier): Not static any more.
7723 * keyboard.h (parse_solitary_modifier): Declare.
7724
77252008-07-16 Andreas Schwab <schwab@suse.de>
7726
7727 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7728 of easymenu.
7729
77302008-07-16 Chong Yidong <cyd@stupidchicken.com>
7731
7732 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7733 that we don't move off the line.
7734
77352008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7736
7737 * keyboard.c (Qsuper): Remove.
7738 (parse_menu_item): Don't call where_is_internal specially for NS.
7739
77402008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7741
7742 * s/gnu-linux.h: Remove boilerplate comments.
7743
7744 * m/alpha.h (__ELF__): Consolidate conditions.
7745
7746 * m/m68k.h (linux): Use GNU_LINUX instead.
7747 Remove boilerplate comments.
7748
7749 * m/intel386.h: Undo refactoring from previous change.
7750 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7751 too, remove dead code.
7752 (linux): Use GNU_LINUX instead.
7753
77542008-07-16 Jason Rumney <jasonr@gnu.org>
7755
7756 * w32gui.h: Repeat 26 June changes lost by last change.
7757
77582008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7759
7760 * systty.h: Remove code for Aix on 386, unsupported platform.
7761
7762 * s/ms-w32.h: Remove boilerplate comments.
7763 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7764
7765 * s/gnu-linux.h (TERM): Remove support.
7766 (HAVE_SYSVIPC): Remove, unused.
7767 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7768 for this system.
7769
7770 * process.c: Remove support for IRIS, unused.
7771 Remove support for TERM, not relevant anymore.
7772
7773 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7774 used with the definition.
7775
7776 * s/aix4-2.h (static): Do not undef.
7777
7778 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7779 only used on Aix.
7780 (HAVE_SYSVIPC): Remove, unused.
7781
7782 * m/hp800.h (CANNOT_DUMP): Do not undef.
7783
7784 * m/alpha.h: Fix comment.
7785
7786 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7787 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7788 used by this configuration.
7789 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7790 * unexec.c: Remove code depending on HPUX and
7791 USG_SHARED_LIBRARIES, not used with this file. Remove code
7792 depending on IRIS, unused. Remove if 0-ed code.
7793
7794 * s/template.h: Remove comments about static.
7795
7796 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7797 Remove if 0-ed code.
7798 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7799 were the same as the default.
7800 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7801 Remove boilerplate comments.
7802 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7803 (HAVE_SYSVIPC): Remove, unused.
7804 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7805
7806 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7807 Remove boilerplate comments.
7808 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7809 Remove boilerplate comments.
7810 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7811 Remove boilerplate comments.
7812 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7813
7814 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7815 USG systems which do not use DATA_SEG_BITS.
7816 Refactor code. Remove boilerplate comments.
7817
7818 * m/ibms390.h:
7819 * m/m68k.h:
7820 * s/bsd-common.h:
7821 * s/cygwin.h:
7822 * s/darwin.h:
7823 * s/freebsd.h:
7824 * s/gnu.h:
7825 * s/msdos.h: Remove boilerplate comments.
7826
7827 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7828 do not use this file.
aac0c6e3
MR
7829 (IRIS_4D): Remove, unused.
7830
7831 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7832 do not use this file.
aac0c6e3
MR
7833 (SIGN_EXTEND_CHAR):
7834 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7835 * unexmips.c: Remove file, unused.
7836
7837 * editfns.c (Fuser_full_name): Replace the only use of
7838 USER_FULL_NAME with its value.
7839 * config.in: Regenerate.
7840
78412008-07-16 David Reitter <david.reitter@gmail.com>
7842
7843 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7844 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7845
78462008-07-16 Glenn Morris <rgm@gnu.org>
7847
7848 * emacs.c (system-type): Doc fix.
7849
78502008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7851
7852 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7853 If the cache doesn't work, let's fix it, rather than work around it.
7854
78552008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7856
7857 * Makefile.in: Correct additions for nsfont.o in last commit.
7858 * nsfont.m: New file (forgot last commit).
7859
78602008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7861
7862 * callproc.c (set_initial_environment): Initialize
7863 Vprocess_environment under CANNOT_DUMP (fixes crash when
7864 batch-compiling for bootstrap).
7865
78662008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7867 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7868
7869 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7870 fix crash due to different init order.
7871
78722008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7873
7874 Changes and additions for NeXTstep windowing system (Cocoa and
7875 GNUstep) support.
7876
7877 * Makefile.in:
7878 * config.in: Support defines and build commands for NS port.
7879 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7880 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7881 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7882 windowing.
7883 (struct face): Add synth_ital field.
7884 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7885 (init_display): Initialize Vinitial_window_system to "ns" when so
7886 compiled.
7887 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7888 (display_arg): Use under NS.
7889 (main): Under NS, allocate autorelease pool and handle command line
7890 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7891 (standard_args): Add NS-specific args.
7892 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7893 * font.c (DEFAULT_ENCODING): New variable.
7894 (font_find_for_lface): Use it.
7895 (syms_of_font): Load syms_of_nsfont under NS.
7896 * font.h: Declare nsfont_driver when compiled under NS.
7897 * fontset.c: When compiling under NS, include nsterm.h.
7898 (fontset_from_font): Autoconstruct fontset under NS.
7899 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7900 symbol, document and use it.
7901 (do_switch_frame): When for_deletion under Cocoa, add
7902 Fraise_frame(Qnil).
7903 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7904 (x_get_arg): Allow "yes" and "no" as boolean values.
7905 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7906 Qright under Cocoa.
7907 (focus-follows-mouse): Default to 0 under NS.
7908 * frame.h (enum output_method): Add output_ns.
7909 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7910 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7911 (FRAME_WINDOW_P): NS-specific definition.
7912 * fringe.c (max_used_fringe_bitmap): Make public.
7913 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7914 (getloadavg): Use NeXT code under descendant OS's.
7915 * image.c (includes and header section, x_create_bitmap_from_data)
7916 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7917 (image_background_transparent, x_clear_image_1)
7918 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7919 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7920 (x_to_xcolors, x_from_xcolors, x_disable_image)
7921 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7922 other GUIs, including XPM support using code originally written for
7923 Carbon GUI.
7924 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7925 using NS API.
7926 (image_ascent): Use font metrics macros instead of direct struct field
7927 access.
7928 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7929 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7930 Also, handle NS as GTK for menu bar purposes.
7931 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7932 toolkit where they differ.
7933 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7934 use cachelist, still needed under NS.
7935 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7936 (struct widget_value): Define it here for menu.c.
7937 * keymap.c (includes): Include modifier internals.
7938 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7939 NS.
7940 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7941 support for preferring sequences using certain modifiers, specified by
7942 the FIRSTONLY argument.
7943 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7944 under NS GNUstep implementation.
7945 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7946 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7947 * menu.c: Include nsterm.h under NS.
7948 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7949 (free_menubar_widget_tree_value, update_submenu_strings)
7950 (find_and_call_menu_selection): Treat NS as X and NT.
7951 (find_and_return_menu_selection): New function, used for popup menus.
7952 * nsgui.h:
7953 * nsterm.h:
7954 * nsfns.m:
7955 * nsimage.m:
7956 * nsmenu.m:
7957 * nsselect.m:
7958 * nsterm.m: New files.
7959 * process.c (wait_reading_process_output): Under NS, call ns_select()
7960 instead of plain select().
7961 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7962 beginning of buffer.
7963 * sysselect.h (init_process): Rename when compiling under Cocoa to
7964 avoid name conflict.
7965 * termhooks.h (display_info): Add ns_display_info to union.
7966 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7967 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7968 COCOA environment.
7969 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7970 unexec() signature. (Note, this will dump, but the resulting file
7971 crashes; unexosx is used instead; keeping around for reference and
7972 possible aid in getting dump working under GNUstep.)
7973 * w32gui.h (button_type, widget_value): Remove definitions (now in
7974 keyboard.h).
7975 * window.c: Include nsterm.h when compiling under NS.
7976 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7977 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7978 other GUI windowing systems.
7979 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7980 GTK.
7981 (x_consider_frame_title): Under NS, set icon type and frame
7982 modified-state indicator; use ns_set_name_as_filename() when using
7983 formatted title.
7984 (update_window_cursor): Make public when compiling under NS.
7985 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7986 (hourglass_atimer, Vhourglass_delay
7987 * xfaces.c (header section, init_frame_faces, clear_font_table)
7988 (defined_color, unload_color, x_face_list_fonts)
7989 (prepare_face_for_display): Add NS support parallel to other GUIs.
7990 Emulate GCs like other non-X GUIs.
7991 (split_font_name): Don't lowercase font name under NS.
7992 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7993 under NS.
7994 * s/darwin.h: Add support for compilation under NS.
7995
79962008-07-15 Jason Rumney <jasonr@gnu.org>
7997
7998 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7999 (w32_show_hourglass): Rename from show_hourglass.
8000 (w32_hide_hourglass): Rename from hide_hourglass.
8001 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8002 (Vhourglass_delay): Declare extern.
8003 (hourglass_started): Remove.
8004
8005 * xdisp.c (Vhourglass_delay): Remove static.
8006 (hourglass_started, start_hourglass, cancel_hourglass):
8007 Don't include these versions on WINDOWSNT.
8008
80092008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8010
8011 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8012 variables (formerly in xfns.c).
8013 (show_hourglass, hide_hourglass): New prototypes (same).
8014 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8015 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8016 in xfns.c).
8017 (syms_of_xdisp): Declare/initialize display-hourglass,
8018 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8019 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8020 formerly in xfns.c.
8021 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8022 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8023 (start_hourglass, cancel_hourglass): Remove.
8024 (show_hourglass, hide_hourglass): Remove prototypes and static
8025 modifiers.
8026 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8027 hourglass_atimer, hourglass_shown_p declaration/initialization.
8028 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8029 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8030 (start_hourglass, cancel_hourglass): Remove.
8031 (show_hourglass, hide_hourglass): Remove prototypes and static
8032 modifiers.
8033 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8034 hourglass_atimer, hourglass_shown_p declaration/initialization.
8035 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8036 (DEFAULT_HOURGLASS_DELAY): Remove.
8037 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8038 hourglass_shown_p declaration/initialization.
8039
80402008-07-14 Jason Rumney <jasonr@gnu.org>
8041
8042 * w32fns.c (w32_get_arg): Remove wrapper function.
8043 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8044 directly.
8045 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8046
80472008-07-14 Kenichi Handa <handa@m17n.org>
8048
8049 * xfont.c (xfont_open): Add workaround for X's bug.
8050
80512008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8052
8053 * fontset.c: Include <stdio.h> unconditionally.
8054
80552008-07-13 Michael Albinus <michael.albinus@gmx.de>
8056
8057 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8058 for filtering.
8059
80602008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8061
8062 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8063
8064 * m/macppc.h:
8065 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8066
8067 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8068 (SPECIAL_EMACS_INT):
8069 * m/ia64.h (SPECIAL_EMACS_INT):
8070 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8071 * s/gnu.h (NLIST_STRUCT):
8072 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8073 * s/gnu-linux.h (LINUX):
8074 * s/msdos.h (HAVE_FACES):
8075 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8076
8077 * systty.h:
8078 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8079 anymore.
8080
80812008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8082
8083 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8084 always defined as int.
8085
8086 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8087 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8088 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8089 * s/freebsd.h (HAVE_WAIT_HEADER):
8090 * s/bsd-common.h (HAVE_UNION_WAIT):
8091 * s/aix4-2.h (HAVE_WAIT_HEADER):
8092 * m/mips.h (HAVE_UNION_WAIT):
8093 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8094 (COFF, static): Do not define, they are undefined later in the file.
8095
8096 * process.c (update_status): Don't use a union.
8097 (status_convert):
8098 (sigchld_handler): Use int instead of WAITTYPE.
8099
81002008-07-12 Chong Yidong <cyd@stupidchicken.com>
8101
8102 * indent.c (Fvertical_motion): Restore hscroll before moving to
8103 goal column.
8104
81052008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8106
8107 * lisp.h: Remove left over code.
8108
81092008-07-11 Andreas Schwab <schwab@suse.de>
8110
8111 * lisp.h: Fix logic in last change.
8112
8113 * menu.h: New file.
8114 * menu.c: Include it.
8115 * xmenu.c: Likewise.
8116 * Makefile.in: Update dependencies.
8117
81182008-07-11 Kenichi Handa <handa@m17n.org>
8119
8120 * fontset.c (fontset_from_font): Cancel the previous change.
8121
81222008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8123
8124 * lisp.h:
8125 * w32heap.c:
8126 * emacs.c:
8127 * alloc.c: Replace all references of NO_UNION_TYPE with
8128 USE_LISP_UNION_TYPE.
8129
8130 * m/xtensa.h (NO_UNION_TYPE):
8131 * m/vax.h (NO_UNION_TYPE):
8132 * m/template.h (NO_UNION_TYPE):
8133 * m/sparc.h (NO_UNION_TYPE):
8134 * m/mips.h (NO_UNION_TYPE):
8135 * m/macppc.h (NO_UNION_TYPE):
8136 * m/m68k.h (NO_UNION_TYPE):
8137 * m/iris4d.h (NO_UNION_TYPE):
8138 * m/intel386.h (NO_UNION_TYPE):
8139 * m/ibms390x.h (NO_UNION_TYPE):
8140 * m/ibms390.h (NO_UNION_TYPE):
8141 * m/ibmrs6000.h (NO_UNION_TYPE):
8142 * m/ia64.h (NO_UNION_TYPE):
8143 * m/hp800.h (NO_UNION_TYPE):
8144 * m/arm.h (NO_UNION_TYPE):
8145 * m/amdx86-64.h (NO_UNION_TYPE):
8146 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8147 defining it the same.
8148
81492008-07-10 Chong Yidong <cyd@stupidchicken.com>
8150
8151 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8152
81532008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8154
8155 * fileio.c:
8156 * sysdep.c
8157 * systty.h:
8158 * m/ibmrs6000.h:
8159 * m/iris4d.h:
8160 * s/aix4-2.h:
8161 * s/freebsd.h:
8162 * s/gnu-linux.h:
8163 * s/hpux10-20.h:
8164 * s/hpux11.h:
8165 * s/netbsd.h:
8166 * s/sol2-3.h:
8167 * s/sol2-4.h:
8168 * s/sol2.h:
8169 * s/usg5-4.h:
8170 * s/vms.h: Remove references to unused variables.
8171
81722008-07-10 Andreas Schwab <schwab@suse.de>
8173
8174 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8175 pattern before matching the generic family.
8176
81772008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8178
8179 * unexec.c:
8180 * s/vms.h:
8181 * s/usg5-4-2.h:
8182 * s/sol2-5.h:
8183 * s/freebsd.h:
8184 * s/darwin.h: Remove dead code.
8185
8186 * m/template.h:
8187 * m/sparc.h:
8188 * m/mips.h:
8189 * m/m68k.h:
8190 * m/iris4d.h:
8191 * m/intel386.h:
8192 * m/ibms390x.h:
8193 * m/ibms390.h:
8194 * m/ia64.h:
8195 * m/hp800.h:
8196 * m/arm.h:
8197 * m/amdx86-64.h: Remove dead code and references to unused
8198 and compiler defined symbols.
8199
8200 * unexmips.c:
8201 * unexelf.c: Remove references to desupported systems.
8202
8203 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8204
8205 * m/powermac.h: Remove boilerplate comments.
8206 (NO_REMAP): Remove unused definition.
8207
8208 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8209 define them.
8210
82112008-07-10 Kenichi Handa <handa@m17n.org>
8212
8213 * xfont.c (xfont_open): Log the reason of failure.
8214
82152008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8216
8217 * fontset.c (fontset_get_font_group):
8218 * font.c (font_check_otf): Specify argument types.
8219
82202008-07-09 Kenichi Handa <handa@m17n.org>
8221
8222 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8223 non-ASCII char is found.
8224
8225 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8226 (reorder_font_vector): Change the arg preferred_family to font.
8227 Prefer the spec matching with font.
8228 (fontset_get_font_group): New function.
8229 (fontset_find_font): Change the format of an element of a realized
8230 fontset. Use fontset_get_font_group.
8231 (fontset_font): Try the current fontset, the default fontset, the
8232 fallbacks of the current fontset, and the fallbacks of the default
8233 fontset in this order.
8234 (face_for_char): Delete the shortcut to use the current font.
8235 (fontset_from_font): Don't set fonts for Latin in the fontset.
8236
8237 * font.h (font_make_object, font_match_p): Adjust prototypes.
8238
8239 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8240
8241 * font.c (font_make_object): New arg entity and pixelsize.
8242 (font_check_otf_features, font_check_otf): New functions.
8243 (font_match_p): Check :lang, :script, and :otf properties.
8244
8245 * xfont.c (xfont_open): Adjust it for the change of
8246 font_make_object.
8247 (xfont_text_extents): Fix initial setting of metrics.
8248
8249 * ftfont.c (struct ftfont_info): New member index, delete member
8250 fc_charset_idx. Make the member order compatible with struct
8251 xftfont_info.
8252 (fc_charset_table): Change charset names to registry names.
8253 (ftfont_pattern_entity): Delete the args registry and
8254 fc_charset_idx. Change the value of :font-entity property
8255 to (FONTNAME . INDEX). Always set :registry property to
8256 `iso10646-1'.
8257 (struct ftfont_cache_data): New struct.
8258 (ftfont_lookup_cache): New arg for_face.
8259 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8260 (ftfont_driver): Set the member otf_capability.
8261 (ftfont_get_charset): Adjust it for the change of
8262 fc_charset_table.
8263 (OTF_TAG_SYM): New macro.
8264 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8265 for the change of fc_charset_table.
8266 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8267 ftfont_pattern_entity. Add FC_INDEX to objset.
8268 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8269 and ftfont_pattern_entity.
8270 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8271 font_make_object, struct ftfont_info.
8272 (ftfont_has_char): Use ftfont_get_fc_charset.
8273 (ftfont_otf_features, ftfont_otf_capability): New functions.
8274 (ftfont_shape): Use ftfont_get_otf.
8275 (ftfont_text_extents): Fix initial setting of metrics.
8276
8277 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8278 member order compatible with struct ftfont_info.
8279 (xftfont_open): Add FC_CHARSET to the pattern. Set
8280 xftfont_info->ft_size. Don't unlock the face. Check BDF
8281 properties if appropriate.
8282 (xftfont_close): Unlock the face.
8283 (xftfont_anchor_point, xftfont_shape): Deleted.
8284 (syms_of_xftfont): Don't set members anchor_point and shape of
8285 xftfont_driver.
8286
8287 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8288 font_make_object.
8289
8290 * w32font.c (w32font_open): Adjust it for the change of
8291 font_make_object.
8292 (w32font_open_internal): Don't set properties of font_object here.
8293
82942008-07-08 Chong Yidong <cyd@stupidchicken.com>
8295
8296 * macfns.c (x_create_tip_frame):
8297 * w32fns.c (x_create_tip_frame):
8298 * xfns.c (x_create_tip_frame): Pass parameter argument to
8299 face-set-after-frame-default.
8300
8301 * xfaces.c (Finternal_merge_in_global_face): Save merged
8302 attributes for the default face back into the face vector.
8303
83042008-07-08 Andreas Schwab <schwab@suse.de>
8305
8306 * fontset.h: Declare fontset_from_font. Don't declare
8307 new_fontset_from_font and fontset_from_font_name.
8308 * xterm.c: Include "fontset.h".
8309 * Makefile.in (xterm.o): Update dependencies.
8310
83112008-07-08 Glenn Morris <rgm@gnu.org>
8312
8313 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8314 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8315
83162008-07-07 Chong Yidong <cyd@stupidchicken.com>
8317
8318 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8319 (x_set_frame_parameters): Don't bind it.
8320
83212008-07-07 Juanma Barranquero <lekktu@gmail.com>
8322
8323 * w32fns.c (map_w32_filename): Declare extern.
8324
83252008-07-07 Jason Rumney <jasonr@gnu.org>
8326
8327 * w32term.c (WS_EX_LAYERED): Define if not already.
8328
83292008-07-06 Chong Yidong <cyd@stupidchicken.com>
8330
8331 * xfaces.c (set_font_frame_param): Don't try to set the font
8332 parameter if it is still unspecified in the lface.
8333
83342008-07-05 Chong Yidong <cyd@stupidchicken.com>
8335
8336 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8337 face if it didn't already exist.
8338
8339 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8340
83412008-07-05 Andreas Schwab <schwab@suse.de>
8342
8343 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8344
83452008-07-05 Chong Yidong <cyd@stupidchicken.com>
8346
8347 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8348 word-wrapping.
8349 (IT_DISPLAYING_WHITESPACE): New macro.
8350 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8351 when word-wrapping. Simplify word-wrapping logic. Use correct
8352 pixel positions when saving copies of the iterator.
8353 (display_line): Use proper wrap point if the last character on a
8354 line was preceded by whitespace.
8355
83562008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8357
8358 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8359
83602008-07-04 Kenichi Handa <handa@m17n.org>
8361
8362 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8363
8364 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8365
83662008-07-02 Jason Rumney <jasonr@gnu.org>
8367
8368 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8369 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8370
8371 * xdisp.c (next_element_from_display_vector): Move assignment out
8372 of if statement.
8373
83742008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8375
8376 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8377
8378 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8379 (syms_of_fileio): Initialize and export them.
8380 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8381
8382 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8383 (Fsystem_move_file_to_trash): New function.
8384 (syms_of_w32fns): Export it to lisp.
8385
83862008-07-01 Jason Rumney <jasonr@gnu.org>
8387
8388 * w32font.c (w32font_text_extents): Don't count overhang as part
8389 of width.
8390
83912008-06-30 Miles Bader <miles@gnu.org>
8392
8393 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8394 Add `avoid_cursor_p' field.
8395
8396 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8397 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8398 (append_glyph, append_composite_glyph, produce_image_glyph)
8399 (append_stretch_glyph): Initialize avoid_cursor_p.
8400 (get_it_property): Rename from `get_line_height_property'.
8401 (x_produce_glyphs): Use get_it_property.
8402 (handle_line_prefix, push_display_prop): New functions.
8403 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8404 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8405 New variables.
8406 (syms_of_xdisp): Initialize them.
8407
84082008-06-30 Kenichi Handa <handa@m17n.org>
8409
8410 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8411 XftDefaultSubstitute (they are called in XftFontMatch).
8412 (xftfont_open): Fix args to ftfont_font_format.
8413
8414 * ftfont.c (fc_charset_table): New member lang.
8415 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8416 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8417 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8418 (ftfont_open): Fix args to ftfont_font_format.
8419 (ftfont_font_format): New arg filename.
8420
84212008-06-30 Chong Yidong <cyd@stupidchicken.com>
8422
8423 * xfaces.c (Finternal_merge_in_global_face): If default face was
8424 modified, realize it again. Update the font face attribute.
8425
84262008-06-29 Jason Rumney <jasonr@gnu.org>
8427
8428 * w32term.c (x_set_frame_alpha): Fix logic.
8429
84302008-06-29 Kenichi Handa <handa@m17n.org>
8431
8432 * fontset.c (Finternal_char_font): Return font-object instead of
8433 font-name.
8434
8435 * composite.c (get_composition_id): Fix the width calculation for TAB.
8436
84372008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8438
8439 * indent.c (Fvertical_motion): Properly handle float column arg.
8440
84412008-06-28 Jason Rumney <jasonr@gnu.org>
8442
8443 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8444 (pfnSetLayeredWindowAttributes): New function pointer.
8445 (w32_initialize): Initialize it when supported.
8446 (x_set_frame_alpha): New function.
8447
8448 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8449 (w32_frame_parm_handlers): Set alpha handler.
8450
8451 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8452
84532008-06-27 Jason Rumney <jasonr@gnu.org>
8454
8455 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8456 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8457 (w32_to_x_charset, x_to_w32_charset)
8458 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8459 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8460 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8461 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8462 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8463 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8464 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8465 (Qw32_charset_unicode): Remove.
8466 (syms_of_w32fns): Update for above changes.
8467
8468 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8469 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8470 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8471 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8472 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8473 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8474 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8475 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8476 (syms_of_w32font): Update for above changes.
8477
84782008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8479
8480 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8481 removed #if.
8482 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8483
84842008-06-26 Juanma Barranquero <lekktu@gmail.com>
8485 Eli Zaretskii <eliz@gnu.org>
8486
8487 * makefile.w32-in (LOCAL_FLAGS):
8488 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8489
8490 * sysdep.c (_spawnlp, _getpid):
8491 Declare with explicit _cdecl instead of _CRTAPI1.
8492
8493 * editfns.c (Fget_internal_run_time):
8494 Check for WINDOWSNT with #ifdef, not #if.
8495
84962008-06-26 Jason Rumney <jasonr@gnu.org>
8497
8498 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8499
8500 * w32term.c (x_draw_glyph_string_foreground)
8501 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8502 Use FONT_HANDLE macro.
8503 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8504
8505 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8506 (uniscribe_encode_char): Use FONT_HANDLE macro.
8507
8508 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8509 (w32font_text_extents): Use precast w32_font.
8510 (w32font_close): Free cached metrics.
8511 (w32font_open_internal): Allocate space for name on stack.
8512
85132008-06-26 Chong Yidong <cyd@stupidchicken.com>
8514
8515 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8516
85172008-06-26 Jason Rumney <jasonr@gnu.org>
8518
8519 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8520 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8521
85222008-06-26 Juanma Barranquero <lekktu@gmail.com>
8523
8524 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8525
85262008-06-26 Jason Rumney <jasonr@gnu.org>
8527
8528 * w32bdf.c, w32bdf.h: Remove obsolete files.
8529
8530 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8531
8532 * w32gui.h: Don't include w32bdf.h.
8533 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8534 Remove obsolete font support.
8535
8536 * w32font.h (struct w32font_info): Remove compat_w32_font.
8537 Add hfont member.
8538 (FONT_COMPAT): Remove obsolete macro.
8539
8540 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8541 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8542 (w32font_open_internal): Remove compat code. Set new hfont member.
8543 (Fx_select_font): Use new hfont member.
8544
8545 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8546 (uniscribe_encode_char): Use new hfont member.
8547
8548 * w32term.c (x_draw_glyph_string_foreground)
8549 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8550 (x_draw_glyph_string): Use metrics in w32font_info.
8551
85522008-06-26 Kenichi Handa <handa@m17n.org>
8553
8554 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8555
85562008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8557
8558 * unexnext.c:
8559 * m/ews4800.h:
8560 * m/hp9000s300.h:
8561 * m/ibm370aix.h:
8562 * m/mips-siemens.h:
8563 * m/ncr386.h:
8564 * m/next.h:
8565 * m/pmax.h:
8566 * m/powerpcle.h:
8567 * m/tandem-s2.h:
8568 * s/386bsd.h:
8569 * s/bsd386.h:
8570 * s/bsd4-1.h:
8571 * s/bsd4-2.h:
8572 * s/bsdos2-1.h:
8573 * s/bsdos2.h:
8574 * s/bsdos3.h:
8575 * s/bsdos4.h:
8576 * s/nextstep.h:
8577 * s/ultrix4-3.h:
8578 * s/usg5-0.h:
8579 * s/usg5-2-2.h:
8580 * s/usg5-2.h:
8581 * s/usg5-4-3.h:
8582 * s/ux4800.h:
8583 * s/uxpds.h:
8584 * s/uxpv.h: Remove support for obsolete systems.
8585 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8586 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8587 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8588 Remove, insert contents in s/aix4-2.h.
8589 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8590 * s/bsd4-3.h: Rename to ...
8591 * s/bsd-common.h: ... this.
8592 * data.c:
8593 * doc.c:
8594 * ecrt0.c:
8595 * emacs.c:
8596 * fileio.c:
8597 * floatfns.c:
8598 * keyboard.c:
8599 * mem-limits.h:
8600 * print.c:
8601 * process.c:
8602 * sysdep.c:
8603 * syssignal.h:
8604 * systty.h:
8605 * syswait.h:
8606 * term.c:
8607 * unexec.c:
8608 * unexelf.c:
8609 * unexhp9k800.c:
8610 * m/hp800.h:
8611 * m/ibmrs6000.h:
8612 * m/mips.h:
8613 * m/vax.h:
8614 * s/darwin.h:
8615 * s/freebsd.h:
8616 * s/gnu.h:
8617 * s/ms-w32.h:
8618 * s/msdos.h:
8619 * s/netbsd.h:
8620 * s/template.h: Remove references to obsolete variables.
8621
8622 * Makefile.in: Add dependencies for all unexec files.
8623 (admindir): Remove unused variable.
8624 (UNEXEC_SRC): Remove references.
8625
86262008-06-25 Chong Yidong <cyd@stupidchicken.com>
8627
8628 * xfns.c (x_default_font_parameter): If Xft is available, first
8629 try Monospace-12 for the default font.
8630
86312008-06-25 Jason Rumney <jasonr@gnu.org>
8632
8633 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8634
86352008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8636
8637 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8638
8639 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8640
86412008-06-25 Juanma Barranquero <lekktu@gmail.com>
8642
8643 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8644 <scroll-conservatively>: Fix typo in docstring.
8645
8646 * xselect.c (Fx_send_client_event): Doc fix.
8647
86482008-06-25 Kenichi Handa <handa@m17n.org>
8649
8650 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8651
8652 * font.c (font_parse_fcname): Remove unused variables.
8653 (font_sort_entites): Delete the arg SPEC. Caller changed.
8654 Fix for the case of ! best_only.
8655 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8656
8657 * lisp.h (Fstring_to_unibyte): EXFUN it.
8658
8659 * character.h (str_to_unibyte): Extern it.
8660
8661 * character.c (str_to_unibyte): New function.
8662
8663 * fns.c (Fstring_to_unibyte): New function.
8664 (syms_of_fns): Defsubr it.
8665
86662008-06-24 Kenichi Handa <handa@m17n.org>
8667
8668 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8669 DPI too.
8670 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8671
86722008-06-24 Andreas Schwab <schwab@suse.de>
8673
8674 * Makefile.in (${lispsource}loaddefs.el): Rename from
8675 ../lisp/loaddefs.el.
8676 (bootstrap-clean): Do what distclean does but don't remove
8677 Makefile.
8678 (distclean): Depend on bootstrap-clean and remove Makefile.
8679
86802008-06-24 Chong Yidong <cyd@stupidchicken.com>
8681
8682 * buffer.h (struct buffer): New member word_wrap.
8683
8684 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8685 word-wrap.
8686 (init_buffer_once): Initialize them.
8687
8688 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8689 line_wrap enum possessing three possible values.
8690
8691 * termopts.h: Replace truncate_partial_width_windows with
8692 Vtruncate_partial_width_windows.
8693
8694 * dispnew.c (direct_output_for_insert): Avoid direct output when
8695 inserting a space with word wrap on.
8696
8697 * indent.c (compute_motion): Obey integer values of
8698 truncate-partial-width-windows.
8699
8700 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8701 replacing truncate_partial_width_windows.
8702 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8703 truncate only if the window width is below that integer.
8704 (start_display, resize_mini_window, produce_stretch_glyph)
8705 (display_string, move_it_in_display_line_to): Use line_wrap.
8706 (back_to_previous_visible_line_start, reseat_1): Reset
8707 string_from_display_prop_p.
8708 (display_line): Extend default face to end of line when wrapping.
8709
87102008-06-24 Kim F. Storm <storm@cua.dk>
8711
8712 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8713 to wrap continued lines at word boundaries.
8714
87152008-06-24 Jason Rumney <jasonr@gnu.org>
8716
8717 * font.c (Ffont_face_attributes): Multiply pixel size before point
8718 conversion to avoid multiplying rounding error.
8719
87202008-06-23 Jason Rumney <jasonr@gnu.org>
8721
8722 * w32term.c (x_draw_glyph_string_background)
8723 (x_draw_glyph_string): Remove old bdf font code.
8724
8725 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8726
87272008-06-22 Kenichi Handa <handa@m17n.org>
8728
8729 * font.c (font_find_for_lface): Try the adstyle specified in
8730 the property of LFACE_FONT of LFACE (if any).
8731
87322008-06-21 Seiji Zenitani <zenitani@mac.com>
8733 Ryo Yoshitake <ryo@shiftmode.net>
8734
8735 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8736
87372008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8738
8739 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8740 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8741 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8742 (witness-emacs): Remove.
8743 (lisp, shortlisp): Move loaddefs.el earlier.
8744 (mostlyclean): Forget about witness-emacs.
8745
87462008-06-22 Glenn Morris <rgm@gnu.org>
8747
8748 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8749 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8750
87512008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8752
8753 * Makefile.in (PRECOMP): Remove.
8754 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8755 (witness-emacs): Run `compile-first'.
8756 (.el.elc): Use the new compile-onefile target.
8757
87582008-06-21 Kenichi Handa <handa@m17n.org>
8759
8760 * xftfont.c (xftfont_open): Handle QCembolden only when
8761 FC_EMBOLDEN is defined.
8762
87632008-06-21 Andreas Schwab <schwab@suse.de>
8764
8765 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8766 (.el.elc): Likewise.
8767
87682008-06-21 Miles Bader <miles@gnu.org>
8769
8770 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8771 build dir, not the lisp source dir.
8772
87732008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8774
8775 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8776 (bootstrapclean): Remove.
8777 (.el.elc): New rule.
8778 (PRECOMP): New var.
8779 (../lisp/subdirs.el): Remove.
8780 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8781 (witness-emacs): New target.
8782 (mostlyclean): Remove witness-emacs as well.
8783 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8784 Add witness-emacs dependency.
8785
87862008-06-20 Chong Yidong <cyd@stupidchicken.com>
8787
8788 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8789 defined by the font.
8790
87912008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8792
8793 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8794 (bootstrap-clean): New target that keeps TAGS around.
8795 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8796 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8797
87982008-06-20 Jason Rumney <jasonr@gnu.org>
8799
8800 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8801 Remove obsolete font code.
8802
8803 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8804 to determine language support.
8805
88062008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8807
8808 * sysdep.c (cfsetspeed): New fun extracted from the code.
8809 (cfmakeraw): Move before first use.
8810
88112008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8812
8813 * sysdep.c (cfmakeraw): Provide fallback implementation.
8814 (serial_configure): Provide fallback implementation of cfsetspeed.
8815
88162008-06-20 Kenichi Handa <handa@m17n.org>
8817
8818 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8819 the pattern.
8820
8821 * fontset.c (fontset_from_font): Copy font_spec before changing
8822 the elements.
8823
8824 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8825
88262008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8827
8828 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8829 for explicit `font' parameters.
8830
8831 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8832
88332008-06-19 Kenichi Handa <handa@m17n.org>
8834
8835 * frame.c: Include <ctype.h>.
8836 (x_set_font_backend): Allow spacing characters in the X resource
8837 for FontBackend.
8838
88392008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8840
8841 * w32fns.c, xfns.c (Qfont_param): New var.
8842 (syms_of_w32fns): Initialize it.
8843 (x_default_font_parameter): Record explicit `font' into
8844 `font-parameter'.
8845
88462008-06-18 Kenichi Handa <handa@m17n.org>
8847
8848 * font.c (font_parse_xlfd): Fix previous change.
8849 (font_parse_fcname): Don't use :fc-unknown-spec.
8850 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8851 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8852 (font_add_log): Prepend the driver name to the resulting fonts.
8853
8854 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8855 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8856 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8857
8858 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8859 (QCembolden): New variables.
8860 (syms_of_xftfont): DEFSYM them.
8861 (xftfont_open): Call XftFontMatch. Don't trust the result of
8862 XftTextExtents8 if the pixel_size is less than 5.
8863
88642008-06-18 Andreas Schwab <schwab@suse.de>
8865
8866 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8867 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8868
88692008-06-18 Jason Rumney <jasonr@gnu.org>
8870
8871 * w32font.c (w32font_list, w32font_match): Add logging.
8872
8873 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8874
88752008-06-17 Chong Yidong <cyd@stupidchicken.com>
8876
8877 * font.c (font_parse_fcname): Store divider characters for
8878 unknown-spec list. For known key symbols, intern using correct
8879 symbol name.
8880
88812008-06-17 Kenichi Handa <handa@m17n.org>
8882
8883 * xfaces.c (realize_default_face): If the frame is not on window
8884 system, set the fontset of face to nil.
8885
88862008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8887
8888 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8889
88902008-06-16 Juanma Barranquero <lekktu@gmail.com>
8891
8892 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8893 (build_font_name_from_vector): Delete externs.
8894
8895 * xfaces.c (struct font_name): Don't declare.
8896
88972008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8898
8899 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8900
89012008-06-16 Chong Yidong <cyd@stupidchicken.com>
8902
8903 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8904
89052008-06-16 Juanma Barranquero <lekktu@gmail.com>
8906
8907 * font.c (Ffont_spec): Fix usage in docstring.
8908 (Ffont_face_attributes): Doc fix.
8909
89102008-06-16 Andreas Schwab <schwab@suse.de>
8911
8912 * font.c (Ffont_face_attributes): Fix definition.
8913
89142008-06-16 Jason Rumney <jasonr@gnu.org>
8915
8916 * font.h (font_style_symbolic_from_value): Remove.
8917
8918 * font.c (font_style_symbolic_from_value): Remove.
8919 (font_style_symbolic): Revert to pre 2008-06-13 version.
8920
8921 * w32font.c (w32_to_fc_weight): New function.
8922 (w32font_full_name, logfont_to_fcname): Use it.
8923
89242008-06-16 Kenichi Handa <handa@m17n.org>
8925
8926 * font.c (font_check_object): Delete it.
8927 (font_clear_cache): Check if a font-object is alive.
8928 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8929 font-object to nil.
8930 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8931 (font_at): Don't call font_check_object.
8932 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8933
89342008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8935
8936 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8937
89382008-06-16 Chong Yidong <cyd@stupidchicken.com>
8939
8940 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8941
89422008-06-15 Chong Yidong <cyd@stupidchicken.com>
8943
8944 * font.c (font_parse_fcname): Only one decimal point.
8945 (font_unparse_fcname): Handle data in family and foundry indices
8946 as symbols, not strings.
8947 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8948
8949 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8950
8951 * font.h (font_unparse_gtkname): Add prototype.
8952
89532008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8954
8955 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8956
89572008-06-15 Andreas Schwab <schwab@suse.de>
8958
8959 * font.c (font_update_drivers): Fix crash when no drivers match.
8960
89612008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8962
8963 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8964 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8965
89662008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8967
8968 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8969
89702008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8971
8972 * process.c (Fserial_process_configure, Fprocess_send_eof):
8973 Use EQ to compare Lisp_Objects.
8974
89752008-06-13 Jason Rumney <jasonr@gnu.org>
8976
8977 * w32fns.c (Fw32_select_font): Remove old font API function.
8978
8979 * w32font.c (logfont_to_fcname): New function.
8980 (Fx_select_font): New font dialog function compatible with
8981 GTK/fontconfig version.
8982
8983 * font.c (font_style_symbolic_from_value): New function.
8984 (font_style_symbolic): Use it.
8985
8986 * font.h (font_style_symbolic_from_value): Declare new function.
8987
89882008-06-13 Juanma Barranquero <lekktu@gmail.com>
8989
8990 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8991 <font-width-table>: Fix typos in docstrings.
8992
89932008-06-13 Daniel Engeler <engeler@gmail.com>
8994
8995 These changes add serial port access.
8996 * process.c: Add HAVE_SERIAL.
8997 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8998 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8999 (list_processes_1, select_wrapper, Fstop_process)
9000 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9001 (status_notify): Modify to handle serial processes.
9002 [HAVE_SERIAL] (Fserial_process_configure)
9003 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9004 New functions.
9005 * process.h (struct Lisp_Process): Add `type'.
9006 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9007 New functions.
9008 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9009 serial ports.
b71ac3dd 9010 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9011 * w32.h: Add FILE_SERIAL.
9012 (struct _child_process): Add ovl_read, ovl_write.
9013
90142008-06-13 Kenichi Handa <handa@m17n.org>
9015
9016 * dispextern.h (enum lface_attribute_index): New member
9017 LFACE_FOUNDRY_INDEX.
9018
9019 * font.c (font_score): Delete arg alternate_families. Check only
9020 weight, slant, width, and size. Ignore the difference of alias
9021 style symbols.
9022 (font_sort_entites): Adjust for the above change. Reflect the
9023 order of font-driver to scores.
9024 (font_list_entities): Don't check alternate_familes here.
9025 (font_clear_prop): Handle foundry.
9026 (font_update_lface): Don't parse "foundry-family" form here.
9027 Handle FONT_FOUNDRY_INDEX.
9028 (font_find_for_lface): Likewise. Handle alternate families here.
9029 If registry is nil, try iso8859-1 and ascii-0.
9030 (font_open_for_lface): Pay attention to size in ENTITY.
9031 (font_open_by_name): Simplify by calling font_load_for_lface.
9032 (free_font_driver_list): Delete it.
9033 (font_update_drivers): Preserve the order of backends.
9034 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9035 of font_score and font_sort_entites.
9036 (font_update_sort_order): Likewise.
9037
9038 * xfaces.c (LFACE_FOUNDRY): New macro.
9039 (check_lface_attrs): Check foundry.
9040 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9041 (merge_face_vectors): Check foundry.
9042 (merge_face_ref): Likewise.
9043 (Finternal_set_lisp_face_attribute): Likewise.
9044 (x_update_menu_appearance): Likewise.
9045 (Finternal_get_lisp_face_attribute): Likewise.
9046 (lface_hash): Likewise.
9047 (lface_same_font_attributes_p): Likewise.
9048 (x_supports_face_attributes_p): Likewise.
9049 (tty_supports_face_attributes_p): Likewise.
9050 (Finternal_set_alternative_font_family_alist): Intern strings.
9051 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9052 (realize_default_face): Set LFACE_FOUNDRY (lface).
9053
9054 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9055 font-driver at first.
9056
9057 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9058
90592008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9060
9061 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9062
90632008-06-12 Jim Meyering <meyering@redhat.com>
9064
9065 Make unexec_free handle NULL the same way free does.
9066 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9067
90682008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9069
9070 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9071 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9072 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9073 (WEAK_ALIAS): Simplify.
9074 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9075 when searching a unibyte buffer.
9076
90772008-06-12 Chong Yidong <cyd@stupidchicken.com>
9078
9079 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9080
90812008-06-12 Juanma Barranquero <lekktu@gmail.com>
9082
9083 * w32font.c: Include ctype.h.
9084
90852008-06-11 Jason Rumney <jasonr@gnu.org>
9086
9087 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9088 misreported as space.
9089 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9090 as aliases for registry iso10646-1.
9091
90922008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9093
9094 * buffer.c (clone_per_buffer_values): Skip `name'.
9095
90962008-06-11 Chong Yidong <cyd@stupidchicken.com>
9097
9098 * font.c (font_parse_fcname): Fix last change; accept decimal
9099 points in font size.
9100
91012008-06-10 Jason Rumney <jasonr@gnu.org>
9102
9103 * w32uniscribe.c (add_opentype_font_name_to_list):
9104 Skip non unicode fonts.
9105
91062008-06-10 Chong Yidong <cyd@stupidchicken.com>
9107
9108 * xfns.c (Fx_font_dialog): New function.
9109
9110 * gtkutil.c (xg_dialog_response_cb): Rename from
9111 xg_file_response_callback.
9112 (pop_down_dialog): Rename from pop_down_file_dialog.
9113 (xg_get_file_name): Callers changed.
9114 (xg_get_font_name): New function.
9115
9116 * gtkutil.h (xg_get_font_name): Insert prototype.
9117
91182008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9119
9120 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9121 x_underline_minimum_display_offset.
9122 (syms_of_xdisp): Declare it here rather than in xterm.c.
9123 * dispextern.h (underline_minimum_offset): Declare it.
9124 * w32term.c (x_draw_glyph_string): Use it.
9125 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9126 (syms_of_xterm): Don't declare it any more.
9127 (x_draw_glyph_string): Adjust to the new name.
9128
91292008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
9130
9131 * xterm.c (x_underline_minimum_display_offset): New var.
9132 (x_draw_glyph_string): Use it.
9133 (syms_of_xterm): Declare it.
9134
91352008-06-10 Chong Yidong <cyd@stupidchicken.com>
9136
9137 * font.c (font_parse_fcname): Accept GTK-style font names too.
9138
91392008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9140
9141 * dired.c (file_name_completion): Don't return t if the match is exact
9142 but with different capitalization.
9143 * minibuf.c (Ftry_completion): Simplify.
9144
9145 * window.c (Vwindow_point_insertion_type): New var.
9146 (set_window_buffer): Use it.
9147 (syms_of_window): Init and export it to Lisp.
9148
91492008-06-10 Kenichi Handa <handa@m17n.org>
9150
9151 * font.h (font_intern_prop): Prototype adjusted.
9152
9153 * font.c (font_intern_prop): New arg force_symbol.
9154 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9155 Adjust for the change of font_intern_prop.
9156
9157 * ftfont.c (ftfont_pattern_entity):
9158 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9159 (w32_registry):
9160 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9161 the change of font_intern_prop.
9162
91632008-06-09 Juanma Barranquero <lekktu@gmail.com>
9164
9165 * w32menu.c (digest_single_submenu): Declare extern.
9166
91672008-06-09 Jason Rumney <jasonr@gnu.org>
9168
9169 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9170
9171 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9172 (parse_single_submenu): Remove.
9173 (digest_single_submenu): Remove.
9174 (syms_of_w32menu): Don't initialise variables that have moved
9175 to menu.c.
9176 (set_frame_menubar): Sync with version in xmenu.c.
9177 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9178
9179 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9180 Make static again.
9181
91822008-06-09 Jason Rumney <jasonr@gnu.org>
9183
9184 Changes to w32 files related to the move of common menu code
9185 to menu.c on 2008-06-08 by Chong Yidong.
9186
9187 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9188 defs to w32gui.h.
9189 (single_keymap_panes, push_menu_item, push_menu_pane):
9190 Make globally visible.
9191
9192 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9193 (local_free, malloc_widget_value, free_widget_value)
9194 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9195 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9196 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9197 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9198 (menu_items, menu_items_allocated, menu_items_used)
9199 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9200 (init_menu_items, finish_menu_items, discard_menu_items)
9201 (grow_menu_items, push_submenu_start, push_submenu_end)
9202 (push_left_right_boundary, push_menu_pane, push_menu_item)
9203 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9204 (free_menubar_widget_tree_value, parse_single_submenu)
9205 (update_submenu_strings): Remove functions.
9206 (xmalloc_widget_value): Remove and declare extern.
9207
9208 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9209 (OBJ1): Build it.
9210
9211 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9212 (local_heap, local_alloc, local_free, malloc_widget_value)
9213 (free_widget_value): Define here.
9214
92152008-06-09 Kenichi Handa <handa@m17n.org>
9216
9217 * font.h (Qascii_0): Extern it.
9218
9219 * font.c (Qascii_0): New variable.
9220 (syms_of_font): DEFSYM it.
9221 (font_open_by_name): If the registry "iso8859-1" fails, try also
9222 "ascii-0".
9223
9224 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9225
92262008-06-08 Kenichi Handa <handa@m17n.org>
9227
9228 * .gdbinit (xfont): New command.
9229
92302008-06-08 Andreas Schwab <schwab@suse.de>
9231
9232 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9233 * Makefile.in (menu.o): Update dependencies.
9234
9235 * Makefile.in (obj): Always add menu.o.
9236 * emacs.c (main): Always call syms_of_menu.
9237 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9238
92392008-06-08 Chong Yidong <cyd@stupidchicken.com>
9240
9241 * Makefile.in: Compile menu.c.
9242
9243 * lisp.h: Declare syms_of_menu.
9244
9245 * emacs.c (main): Call syms_of_menu.
9246
9247 * keyboard.h: Relocate platform-independent menu definitions from
9248 xmenu.c.
9249
9250 * menu.c: New file. Relocate platform-independent menu
9251 definitions from xmenu.c. Suggested by Adrian Robert.
9252
9253 * xmenu.c: Remove platform-independent menu definitions.
9254 (menu_items menu_items_inuse, menu_items_allocated)
9255 (menu_items_used, menu_items_n_panes)
9256 (menu_items_submenu_depth): Move to keyboard.h.
9257 (init_menu_items, finish_menu_items, unuse_menu_items)
9258 (discard_menu_items, restore_menu_items, save_menu_items)
9259 (grow_menu_items, push_submenu_start, push_submenu_end)
9260 (push_left_right_boundary, push_menu_pane, push_menu_item)
9261 (keymap_panes, single_keymap_panes, single_menu_item)
9262 (list_of_panes, list_of_items, find_and_call_menu_selection)
9263 (xmalloc_widget_value, free_menubar_widget_value_tree)
9264 (parse_single_submenu, digest_single_submenu)
9265 (update_submenu_strings): Move to menu.c.
9266
92672008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9268
9269 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9270
92712008-06-06 Miles Bader <miles@gnu.org>
9272
9273 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9274 face, not frame default.
9275
92762008-06-05 Martin Rudalics <rudalics@gmx.at>
9277
9278 * window.c (pop_up_windows, pop_up_frames)
9279 (display_buffer_reuse_frames, Vpop_up_frame_function)
9280 (Vdisplay_buffer_function, Veven_window_heights)
9281 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9282 (Vspecial_display_function, Vsame_window_buffer_names)
9283 (Vsame_window_regexps, split_height_threshold)
9284 (Vsplit_window_preferred_function): Move those vars to window.el.
9285 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9286 (Fdisplay_buffer): Move those functions to window.el.
9287 (syms_of_window): Remove corresponding declarations.
9288 (display_buffer): New function.
9289 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9290 * dispnew.c (Flast_nonminibuf_frame): New function.
9291 * buffer.c (Fpop_to_buffer): Move to window.el.
9292
92932008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9294
9295 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9296
92972008-06-05 Kenichi Handa <handa@m17n.org>
9298
9299 * coding.c (detect_coding): Fix previous change.
9300 (detect_coding_system): Likewise.
9301
93022008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9303
9304 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9305
9306 * keymap.c (Vminibuffer_local_filename_must_match_map):
9307 Rename from Vminibuffer_local_must_match_filename_map.
9308 (syms_of_keymap):
9309 * minibuf.c (Fcompleting_read): Adjust accordingly.
9310 * commands.h: Rename declaration as well.
9311
93122008-06-05 Kenichi Handa <handa@m17n.org>
9313
9314 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9315 family name.
9316 (Ffont_put): Likewise.
9317
9318 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9319 current font-spec.
9320
9321 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9322 is unspecified.
9323
9324 * xfaces.c (realize_x_face): If the font-related face attributes
9325 are the same as those of default face, realize a new fontset from
9326 default->fontset.
9327 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9328
93292008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9330
9331 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9332 (move_it_in_display_line): New wrapper.
9333
9334 * window.c (window_scroll_pixel_based_preserve_x)
9335 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9336 (window_scroll_pixel_based, window_scroll_line_based):
9337 Use them to preserve column positions.
9338 (syms_of_window): Initialize them.
9339
9340 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9341 (HPOS . VPOS) pair.
9342
9343 * dispextern.h (move_it_in_display_line): Declare.
9344
93452008-06-05 Juanma Barranquero <lekktu@gmail.com>
9346
9347 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9348 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9349 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9350
93512008-06-04 Juanma Barranquero <lekktu@gmail.com>
9352
9353 * window.c (Fset_window_parameter): Doc fix.
9354 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9355
93562008-06-04 Joakim Verona <joakim@verona.se>
9357
9358 * window.h (struct window): Add new member window_parameters.
9359
9360 * window.c (Fwindow_parameters, Fwindow_parameter)
9361 (Fset_window_parameter): New defuns.
9362 (syms_of_window): Defsubr the new defuns.
9363 (make_window): Initialize window_parameters to nil.
9364
93652008-06-04 John Paul Wallington <jpw@pobox.com>
9366
9367 * eval.c (Fdefmacro): Doc fix.
9368
93692008-06-04 Kenichi Handa <handa@m17n.org>
9370
9371 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9372 Be sure to call setup_coding_system when we find a proper coding system.
9373 (detect_coding_system): Fix handling of coding->head_ascii.
9374
93752008-06-03 Andreas Schwab <schwab@suse.de>
9376
9377 * font.c (font_prop_validate_spacing): Fix last change.
9378
93792008-06-03 Kenichi Handa <handa@m17n.org>
9380
9381 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9382 (font_parse_fcname): Fix handling of unknown key.
9383
9384 * xfont.c (xfont_list): Try an alias.
9385
9386 * charset.c (char_charset): Return NULL if the arg charset_list is
9387 specified and C doesn't belong to any of them.
9388
93892008-06-02 Chip Coldwell <coldwell@redhat.com>
9390
9391 * font.c (font_pixel_size): Don't take cdr of an integer.
9392
93932008-06-02 Jim Meyering <meyering@redhat.com>
9394
9395 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9396 * alloc.c (xfree): Return right away for a NULL arg.
9397 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9398 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9399 * mac.c (create_apple_event_from_event_ref): Likewise.
9400 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9401 Likewise.
9402 * doprnt.c (doprnt1): Likewise.
9403 * frame.c (frame): Likewise.
9404 * keyboard.c (wipe_kboard): Likewise.
9405 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9406 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9407 * term.c (tty_default_color_capabilities, maybe_fatal)
9408 (delete_tty): Likewise.
9409 * w16select.c (string): Likewise.
9410 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9411 * w32bdf.c (w32_free_bdf_font): Likewise.
9412 * w32fns.c (w32_unload_font): Likewise.
9413 * w32font.c (w32font_close): Likewise.
9414 * window.c (size_window): Likewise.
9415 * xselect.c (receive_incremental_selection): Likewise.
9416 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9417 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9418 * w32.c (stat): Likewise.
9419
9420 Remove useless if-before-free tests.
9421 * editfns.c (Fset_time_zone_rule): Likewise.
9422 * lread.c (nosuffix): Likewise.
9423 * ralloc.c (get_bloc): Likewise.
9424 * regex.c (reg_free): Likewise.
9425 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9426 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9427 * xsmfns.c (smc_save_yourself_CB): Likewise.
9428
94292008-06-02 Kenichi Handa <handa@m17n.org>
9430
9431 * font.c (font_find_for_lface): Handle float font size.
9432 (font_open_for_lface): Likewise.
9433
9434 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9435 comparing the properties.
9436
94372008-06-01 Jason Rumney <jasonr@gnu.org>
9438
9439 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9440 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9441 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9442 Don't add empty script list.
9443 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9444
94452008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9446
9447 * Makefile.in (dot, dotdot): Remove, update users.
9448 ".." has been used elsewhere in the file for a long time.
9449 (LIBXT_STATIC): Remove conditional based on unused variable.
9450
94512008-06-01 Miles Bader <miles@gnu.org>
9452
9453 * xfaces.c (Vface_remapping_alist): New variable.
9454 (syms_of_xfaces): Initialize it.
9455 (enum named_merge_point_kind): New type.
9456 (struct named_merge_point): Add `named_merge_point_kind' field.
9457 (push_named_merge_point): Make cycle detection respect different
9458 named-merge-point kinds.
9459 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9460 Remove face-name alias resolution.
9461 (lface_from_face_name): New definition using
9462 `lface_from_face_name_no_resolve'.
9463 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9464 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9465 (get_lface_attributes): New definition that layers face-remapping on
9466 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9467 (lookup_basic_face): New function.
9468 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9469 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9470 `get_lface_attributes'.
9471 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9472 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9473 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9474
9475 * xdisp.c (init_iterator): Pass base_face_id through
9476 `lookup_basic_face' when we actually use it as a face-id.
9477 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9478 DEFAULT_FACE_ID.
9479
9480 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9481 lookup the initial face-id.
9482
9483 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9484
94852008-06-01 Juanma Barranquero <lekktu@gmail.com>
9486
9487 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9488 (Fremove_text_properties): Fix typos in docstrings.
9489
94902008-05-31 Kenichi Handa <handa@m17n.org>
9491
9492 * font.c (font_list_entities): Fix the car part of data to be
9493 stored in the cache.
9494
9495 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9496
94972008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9498
9499 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9500 Add a `test' argument so another predicate than `equal' can be used.
9501 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9502 (map_char_table): Remove unused vars `c' and `i'.
9503 * lisp.h (Foptimize_char_table): Adjust declaration.
9504 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9505
95062008-05-30 Kenichi Handa <handa@m17n.org>
9507
9508 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9509 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9510 defined.
9511
95122008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9513
9514 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9515 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9516 frame-local settings for the same variable.
9517
95182008-05-30 Kenichi Handa <handa@m17n.org>
9519
9520 * fontset.c (Ffont_info): Move to font.c.
9521 (syms_of_fontset): Delete defsubr of Sfont_info.
9522
9523 * font.c (font_style_to_value, font_score): Delete casting of the
9524 args to xstcasecmp.
9525 (register_font_driver): Increment num_font_drivers only when
9526 registering the driver globally.
9527 (Ffont_info): Move from fontset.c. Handle a font object too.
9528 (syms_of_font): Defsubr Sfont_info.
9529
95302008-05-29 Kenichi Handa <handa@m17n.org>
9531
9532 * coding.h (enum define_coding_utf8_arg_index): New enum.
9533 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9534 coding_attr_utf_bom.
9535 (enum utf_bom_type): Rename from utf_16_bom_type.
9536 (struct utf_16_spec): Adjust for the above change.
9537 (struct coding_system): Add utf_8_bom in `spec' union.
9538
9539 * coding.c (CODING_UTF_8_BOM): New macro.
9540 (enum coding_category): Delete coding_category_utf_8, add
9541 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9542 coding_category_utf_8_sig.
9543 (CATEGORY_MASK_UTF_8): Delete it.
9544 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9545 (CATEGORY_MASK_UTF_8_SIG): New macros.
9546 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9547 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9548 CATEGORY_MASK_UTF_8_SIG.
9549 (CATEGORY_MASK_UTF_8): New macro.
9550 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9551 (detect_coding_utf_8): Check BOM.
9552 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9553 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9554 (encode_coding_utf_16): Likewise.
9555 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9556 (detect_coding, detect_coding_system): Handle utf-8-auto.
9557 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9558 (syms_of_coding): Fix setting up of Vcoding_category_table.
9559
95602008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9561
9562 * process.c (Faccept_process_output): If `millisec' is non-nil,
9563 `seconds' default to 0.
9564 (wait_reading_process_output): Also return non-nil if we read output
9565 from a non-running process.
9566
95672008-05-29 Jason Rumney <jasonr@gnu.org>
9568
9569 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9570 `raster' specified.
9571 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9572 in the uniscribe backend, but disallow any font that has no
9573 unicode subrange support.
9574
95752008-05-29 Juanma Barranquero <lekktu@gmail.com>
9576
9577 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9578 Fix typos in docstrings.
9579
95802008-05-29 Kenichi Handa <handa@m17n.org>
9581
9582 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9583 (Fx_family_fonts): Set frame correctly.
9584
95852008-05-28 Jason Rumney <jasonr@gnu.org>
9586
9587 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9588
95892008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9590
9591 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9592 calling build_annotations.
9593
95942008-05-28 Juanma Barranquero <lekktu@gmail.com>
9595
9596 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9597 (Fencode_coding_string):
9598 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9599 <latin-extra-code-table>: Fix typos in docstrings.
9600 (syms_of_coding) <coding-system-alist>: Doc fix.
9601 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9602
96032008-05-28 Kenichi Handa <handa@m17n.org>
9604
9605 * fontset.c (Ffont_info): Don't call font_close_object.
9606
9607 * font.c (font_parse_family_registry): Use Ffont_put to validate
9608 foundry and family.
9609 (font_delete_unmatched): Don't check spacing.
9610 (font_list_entities): Add spacing to the spec to list fonts.
9611
9612 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9613 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9614
9615 * coding.c (encode_coding_raw_text): Fix previous change.
9616 (encode_coding_object): When the dst_object is a buffer and is
9617 different from src_object, move gap to PT.
9618
96192008-05-27 Chong Yidong <cyd@stupidchicken.com>
9620
9621 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9622
96232008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9624
9625 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9626 all branches. Compute it differently.
9627
9628 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9629
96302008-05-27 Juanma Barranquero <lekktu@gmail.com>
9631
9632 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9633 into "else if () ... else ...".
9634
96352008-05-27 Jason Rumney <jasonr@gnu.org>
9636
9637 * w32font.c (w32font_open_internal): Determine if glyph indices
9638 are likely to work here.
9639
96402008-05-27 Chong Yidong <cyd@stupidchicken.com>
9641
9642 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9643 draw overlap glyphs with appropriate highlighting.
9644
96452008-05-27 Kenichi Handa <handa@m17n.org>
9646
9647 * xfont.c (xfont_open): Fix calculation of font->average_width.
9648
96492008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9650
9651 * casefiddle.c (casify_object): Try to guess better whether the
9652 argument is a byte or a char.
9653
96542008-05-26 Andreas Schwab <schwab@suse.de>
9655
9656 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9657 Always send multiples of format size.
9658
9659 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9660
96612008-05-26 Jason Rumney <jasonr@gnu.org>
9662
9663 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9664 (compute_metrics): Don't set failure if we just cleared the cache.
9665 (w32_weight_table): Remove unused variable.
9666 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9667 backwards compatibility.
9668
96692008-05-25 Kenichi Handa <handa@m17n.org>
9670
9671 * w32term.c (x_draw_glyph_string):
9672 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9673
9674 * xfaces.c: Delete unused function prototypes.
9675 (xstrlwr, font_frame): Delete them.
9676 (clear_face_cache): Delete unused variable.
9677
9678 * xftfont.c (xftfont_open): Delete unused variable.
9679 If underline_thickness is not 1, adjust underline_position.
9680
9681 * ftxfont.c (ftxfont_open): Delete unused variable.
9682
9683 * fontset.c (face_for_char): Optimize for the case of no charset
9684 property.
9685
9686 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9687 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9688 (otf_open, font_otf_capability, generate_otf_features)
9689 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9690 Comment out by surrounding "#if 0" and "#endif" for the moment.
9691 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9692 (syms_of_font): Codes for accessing above commented out.
9693
96942008-05-24 Eli Zaretskii <eliz@gnu.org>
9695
9696 * w32proc.c: Include dispextern.h.
9697
9698 * w32.c: Include dispextern.h.
9699
97002008-05-23 Juanma Barranquero <lekktu@gmail.com>
9701
9702 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9703 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9704 Fix typos in docstrings.
9705
97062008-05-23 Jason Rumney <jasonr@gnu.org>
9707
9708 * xsmfns.c: Remove includes that are already included by config.h.
9709
97102008-05-23 Kenichi Handa <handa@m17n.org>
9711
9712 * charset.c (Qemacs, charset_emacs): New variables.
9713 (char_charset): Fix for non-Unicode characters.
9714 (syms_of_charset): Define charset_emacs.
9715
9716 * w32term.c (x_draw_glyph_string): Be sure to update
9717 s->underline_thickness and s->underline_position. Be sure to draw
9718 underline within the current line area.
9719
9720 * xterm.c (x_draw_glyph_string): Be sure to update
9721 s->underline_thickness and s->underline_position. Be sure to draw
9722 underline within the current line area.
9723
9724 * fontset.c: Delete unused variables and add casting for char *
9725 throughout the file.
9726 (fontset_font): Try the fallback fonts of the current fontset
9727 before consulting the default fontset.
9728
9729 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9730
9731 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9732
97332008-05-22 Jason Rumney <jasonr@gnu.org>
9734
9735 * font.c: Don't include strings.h.
9736
9737 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9738
9739 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9740 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9741 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9742 to call xstrcasecmp.
9743
9744 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9745
9746 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9747
9748 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9749
9750 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9751
97522008-05-22 Kenichi Handa <handa@m17n.org>
9753
9754 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9755
9756 * font.c (font_prop_validate_style): Adjust for the format
9757 change of font_style_table.
9758
9759 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9760 two args.
9761
9762 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9763 two args.
9764
97652008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9766
9767 * minibuf.c (keys_of_minibuf): Delete.
9768 * lisp.h (keys_of_minibuf): Delete.
9769 * emacs.c (main): Don't call keys_of_minibuf.
9770
97712008-05-22 Kenichi Handa <handa@m17n.org>
9772
9773 * ftfont.c (ftfont_resolve_generic_family): Rename from
9774 ftfont_list_generic_family. Return a single family for each
9775 generic family.
9776 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9777 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9778 Call font_add_log.
9779 (ftfont_match): Call font_add_log.
9780
9781 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9782 (FONT_DEBUG): Define it.
9783 (font_add_log): Extern it.
9784 (font_assert): Rename from xassert.
9785
9786 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9787 (xfont_list_family): Call font_add_log.
9788 (xfont_match): Likewise.
9789 (memq_no_quit): Delete.
9790
9791 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9792 call of Ffont_xlfd_name.
9793
9794 * xfaces.c (struct table_entry, slant_table, weight_table)
9795 (swidth_table): Move to font.c.
9796
9797 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9798 xassert are changed to font_assert. Delete many unused variables.
9799 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9800 New variables.
9801 (struct table_entry): Move from xfaces.c and modified.
9802 (weight_table, slant_table, width_table): Move from xfaces.c and
9803 contents adjusted for the change of struct table_entry.
9804 (font_style_to_value, font_style_symbolic): Adjust for the
9805 format change of font_style_table.
9806 (font_parse_family_registry): Don't overwrite existing foundry and
9807 family of font_spec.
9808 (font_score): Fix calculation of diff for sizes.
9809 (font_sort_entites): Call font_add_log.
9810 (font_delete_unmatched): Return a newly created list.
9811 (font_list_entities): Fix previous change. Call font_add_log.
9812 (font_matching_entity, font_open_entity, font_close_entity):
9813 Call font_add_log.
9814 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9815 (Finternal_set_font_style_table): Delete.
9816 (BUILD_STYLE_TABLE): New macro.
9817 (build_style_table): New function.
9818 (Vfont_log, font_log_env_checked): New variables.
9819 (font_add_log): New function.
9820 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9821 Declare Lisp variables "font-weight-table", "font-slant-table",
9822 "font-width-table", and "font-log". Initialize font_style_table.
9823
98242008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9825
9826 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9827
98282008-05-21 Seiji Zenitani <zenitani@mac.com>
9829 Ryo Yoshitake <ryo@shiftmode.net>
9830
9831 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9832 (Vframe_alpha_lower_limit): New variable.
9833 (x_set_alpha): New function.
9834
9835 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9836
9837 * xfns.c (x-create-frame, Qalpha):
9838 Initialize the frame parameter `alpha'.
9839 * xterm.c (OPAQUE, OPACITY): New.
9840 (x_set_frame_alpha): New function.
9841 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9842
9843 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9844 * w32fns.c (w32_frame_parm_handlers): Likewise.
9845
98462008-05-20 Jason Rumney <jasonr@gnu.org>
9847
9848 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9849 truetype fonts to opentype list.
9850
98512008-05-20 Juanma Barranquero <lekktu@gmail.com>
9852
9853 * fontset.c (Ffontset_info): Doc fix.
9854 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9855 <ignore-relative-composition>: Fix typos in docstrings.
9856
9857 * font.c (syms-of-font) <font-encoding-alist>:
9858 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9859 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9860 (Ffont_otf_alternates): Doc fixes.
9861
98622008-05-20 Kenichi Handa <handa@m17n.org>
9863
9864 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9865 font.h through out the file.
9866 (FONT_DRIVERS): Rename from FONTOBJ.
9867 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9868 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9869
9870 * emacs.c (main): Call syms_of_font unconditionally.
9871
9872 * font.h (find_font_encoding): Extern it.
9873
9874 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9875 fontset.c.
9876 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9877 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9878 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9879 only when HAVE_WINDOW_SYSTEM is defined.
9880 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9881 when HAVE_WINDOW_SYSTEM is defined.
9882
9883 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9884 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9885
9886 * xfaces.c: Include font.h unconditionally.
9887 (merge_face_ref, merge_face_vectors)
9888 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9889
98902008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9891
9892 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9893 indirect_variable.
9894 * eval.c (lisp_indirect_variable): New fun.
9895 (Fuser_variable_p): Use it.
9896
98972008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9898
9899 * lisp.h (indirect_variable):
9900 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9901 Use Lisp_Symbol pointers rather than Lisp_Object.
9902 Adjust callers.
9903 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9904 To this end, change calling-convention.
9905
9906 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9907 if some non-hidden buffers are selected by string&pred.
9908
99092008-05-19 Chong Yidong <cyd@stupidchicken.com>
9910
9911 * process.c (wait_reading_process_output): Always check status
9912 when in batch mode.
9913
99142008-05-19 Kenichi Handa <handa@m17n.org>
9915
9916 * font.c (font_list_entities): Fix handling of cache.
9917 (font_matching_entity): Likewise.
9918
9919 * ftfont.c (cs_iso8859_1): Delete.
9920 (ft_face_cache): New variable.
9921 (struct ftfont_info): New member fc_charset_idx.
9922 (ftfont_build_basic_charsets): Delete.
9923 (fc_charset_table): New variable.
9924 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9925 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9926 Callers changed.
9927 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9928 (ftfont_spec_pattern): New argument fc_charset_idx.
9929 Check registry more rigidly. Change callers.
9930 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9931 change of :font-entity property of the font.
9932
9933 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9934 property of the font.
9935
99362008-05-18 Juanma Barranquero <lekktu@gmail.com>
9937
9938 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9939 (Funencodable_char_position, Fcheck_coding_systems_region)
9940 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9941 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9942 (Ffind_operation_coding_system, Fset_coding_system_priority)
9943 (Fcoding_system_eol_type): Doc fixes.
9944
99452008-05-17 Glenn Morris <rgm@gnu.org>
9946
9947 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9948
99492008-05-16 Eli Zaretskii <eliz@gnu.org>
9950
9951 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9952 and st_gid.
9953
9954 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9955 HAVE_WINDOW_SYSTEM is not defined.
9956
9957 * xfaces.c (merge_face_ref, merge_face_vectors)
9958 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9959 HAVE_WINDOW_SYSTEM is defined.
9960 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9961
99622008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9963
9964 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9965
99662008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9967
9968 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9969
99702008-05-15 Kenichi Handa <handa@m17n.org>
9971
9972 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9973 preference.
9974
99752008-05-15 Glenn Morris <rgm@gnu.org>
9976
9977 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9978
99792008-05-15 Chong Yidong <cyd@stupidchicken.com>
9980
9981 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9982 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9983
9984 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9985
99862008-05-15 Kenichi Handa <handa@m17n.org>
9987
9988 * ftfont.c (ftfont_list): Downcase family name to check generic
9989 families.
9990
9991 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9992 font-spec for QCfont value.
9993
9994 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9995 buffer. Check the return value of it.
9996
99972008-05-14 Jason Rumney <jasonr@gnu.org>
9998
9999 * w32term.c (w32_get_glyph_overhangs): Remove.
10000 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10001
100022008-05-14 Kenichi Handa <handa@m17n.org>
10003
10004 * font.c (font_prop_validate): Make nil a valid value.
10005 (font_clear_cache): Check if the cached vector of entities is nil
10006 or not.
10007
100082008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10009
10010 * emacs.c (main_thread): Conditionalize on
10011 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10012 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10013
10014 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10015 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10016 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10017
100182008-05-14 Kenichi Handa <handa@m17n.org>
10019
10020 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10021 has no corresponding coding system.
10022
100232008-05-14 Jason Rumney <jasonr@gnu.org>
10024
10025 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10026
10027 * w32font.h (w32font_open_internal): Update declaration.
10028
10029 * w32font.c (w32font_open_internal): Change last argument from
10030 w32font_info struct to font object. Fill in font object from
10031 font_entity. Get Outline metrics if possible. Use them to
10032 calculate underline position and thickness. Use xlfd name as name
10033 property. Don't set codepage.
10034 (w32font_open): Pass font_object to w32font_open_internal. Don't
10035 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10036 (w32font_draw): Use s->font.
10037 (clear_cached_metrics): Don't clear non-existent blocks.
10038
10039 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10040 font was not found.
10041 (x_draw_glyph_string): Use underline position and thickness from font.
10042
10043 * w32uniscribe.c (uniscribe_open): Pass font_object to
10044 w32font_open_internal.
10045
100462008-05-14 Kenichi Handa <handa@m17n.org>
10047
10048 These changes are to delete all legacy font-handling codes, and
10049 make Emacs use only font-backends.
10050
10051 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10052 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10053
10054 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10055
10056 * charset.h (Vcharset_non_preferred_head)
10057 (Vcurrent_iso639_language): Extern them.
10058
10059 * charset.c (Vcharset_non_preferred_head): New variable.
10060 (Vcurrent_iso639_language): New variable.
10061 (syms_of_charset): Declare it as a Lisp variable.
10062 (char_charset): Don't check non preferred charsets. As a last
10063 resort, return charset_unicode.
10064 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10065
10066 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10067 conditionals. Don't check enable_font_backend. Delete all codes
10068 used only when USE_FONT_BACKEND is not defined.
10069
10070 * dispextern.h (struct glyph_string): Change type of `font' to
10071 `struct font *'.
10072 (struct glyph_string): New member underline_position and
10073 underline_thickness.
10074 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10075 (struct face): Change type of `font' to `struct font *'. Remove
10076 members `font_name', `font_info_id'.
10077 (per_char_metric, encode_char): Delete externs.
10078 (calc_pixel_width_or_height): Adjust the prototype.
10079
10080 * emacs.c (enable_font_backend): Delete extern.
10081 (main): Don't set enable_font_backend. Don't check the command
10082 line argument "-disable-font-backend".
10083
10084 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10085 (enum font_property_index): New members FONT_DPI_INDEX,
10086 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10087 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10088 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10089 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10090 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10091 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10092 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10093 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10094 (struct font_spec, struct font_entity): New structs.
10095 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10096 (struct font): Many members from old "struct font_info" moved to
10097 here. Members font and entity deleted.
10098 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10099 the new font-related objects.
10100 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10101 (CHECK_FONT_GET_OBJECT): Likewise.
10102 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10103 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10104 (struct font_driver): New members case_sensitive anc check. Type
10105 of the member list and open changed.
10106 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10107 (font_symbolic_width, font_find_object, font_get_spec)
10108 (font_set_lface_from_name): Delete extern.
10109 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10110
10111 * font.c: Include <strings.h>.
10112 (enable_font_backend): Delete it.
10113 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10114 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10115 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10116 (null_string): Delete it.
10117 (null_vector): Make it static.
10118 (font_family_alist): Delete it.
10119 (Qnormal): Extern it.
10120 (QCextra, QClanguage): Delete it.
10121 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10122 (font_make_spec, font_make_entity, font_make_object)
10123 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10124 the string. Callers changed.
10125 (font_pixel_size): Adjusted for the format change of font-related
10126 objects.
10127 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10128 (font_style_to_value, font_style_symbolic): New function.
10129 (build_font_family_alist): Delete it.
10130 (font_registry_charsets): Use Fassoc_string instead of
10131 assq_no_quit.
10132 (font_prop_validate_symbol): Don't return null_string.
10133 (font_prop_validate_style): Adjusted for the change of
10134 style-related values in a font vector.
10135 (font_property_table): Delete entries for QClanguage and
10136 QCantialias, add entries for QCavgwidth.
10137 (get_font_prop_index): Delete the 2nd argument FROM.
10138 (font_prop_validate): Arguments changed.
10139 (font_put_extra): Adjusted for the change of font-related objects.
10140 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10141 (font_parse_fcname, font_unparse_fcname)
10142 (font_prepare_composition): Likewise.
10143 (font_parse_family_registry): Renamed from font_merge_old_spec.
10144 (otf_open): Delete the 1st arg entity.
10145 (font_otf_capability): Adjusted for the above change.
10146 (font_score): New arg alternate_families. Adjusted for the change
10147 of font-related objects.
10148 (font_sort_entites): New arg best_only.
10149 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10150 Delete them.
10151 (font_match_p): Check alternate families.
10152 (font_find_object): Delete it.
10153 (font_check_object): New function.
10154 (font_clear_cache): Adjusted for the change of font-related objects.
10155 (font_delete_unmatched): New arg.
10156 (font_list_entities): Call font_driver->list with a spec that
10157 doesn't specify style-related properties.
10158 (font_matching_entity): Arguments changed. Caller changed.
10159 (font_open_entity): Adjusted for the change of font-related objects.
10160 (font_close_object, font_has_char, font_encode_char)
10161 (font_get_name, font_get_spec): Likewise.
10162 (font_spec_from_name, font_clear_prop, font_update_lface):
10163 New functions.
10164 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10165 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10166 (font_at): Adjusted for the change of font-related objects.
10167 (font_range): New function.
10168 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10169 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10170 (Fcopy_font_spec, Fmerge_font_spec): New function.
10171 (Ffont_family_list): Renamed from list-families.
10172 (Finternal_set_font_style_table): Arguments changed.
10173 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10174 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10175 change of font-related objects.
10176 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10177
10178 * fontset.h (struct font_info): Delete it. Most members go to
10179 struct font.
10180 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10181 (enum FONT_SPEC_INDEX): Delete it.
10182 (font_info, list_fonts_func, load_font_func, query_font_func)
10183 (set_frame_fontset_func, find_ccl_program_func)
10184 (get_font_repertory_func, new_fontset_from_font_name): Delete
10185 externs.
10186 (fontset_from_font_name): Extern it.
10187 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10188 (FONT_INFO_FROM_FACE): Deleted.
10189 (face_for_font): Adjust prototype.
10190
10191 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10192 conditionals. Don't check enable_font_backend. Delete all codes
10193 used only when USE_FONT_BACKEND is not defined.
10194 (get_font_info_func, list_font_func, load_font_func)
10195 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10196 (get_font_repertory_func): Delete them.
10197 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10198 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10199 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10200 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10201 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10202 (fontset_compare_rfontdef): New function.
10203 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10204 rfont-defs by qsort. Adjusted for the change of font-group vector.
10205 (load_font_get_repertory): Deleted.
10206 (fontset_find_font): Use new macros to ref/set elements of
10207 font-def and rfont-def.
10208 (fontset_font): Fix the timing of remembering that no font for C.
10209 (free_face_fontset): Do nothing if the face has no fontset.
10210 (face_suitable_for_char_p): Use new macros to ref/set elements of
10211 rfont-def.
10212 (face_for_char): Likewise. Call face_for_char with font_object.
10213 (fs_load_font): Delete. Delete #pragma surrounding it.
10214 (fs_query_fontset): Use strcasecmp instead of strcmp.
10215 (generate_ascii_font_name): Adjusted for the format change of
10216 font-spec.
10217 (Fset_fontset_font): Likewise. Use new macros to set elements of
10218 font-def.
10219 (Fnew_fontset): Use font_unparse_xlfd to generate
10220 FONTSET_ASCII (fontset).
10221 (new_fontset_from_font_name): Deleted.
10222 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10223 a fontset is already created for the font. FIx updating of
10224 Vfontset_alias_alist.
10225 (fontset_ascii_font): Deleted.
10226 (Ffont_info): Adjusted for the format change of font-spec.
10227 (Finternal_char_font): Likewise.
10228 (Ffontset_info): Likewise.
10229 (syms_of_fontset): Don't check load_font_func.
10230
10231 * fns.c (internal_equal): Handle PREV_FONT.
10232
10233 * frame.h: Delete USE_FONT_BACKEND conditional.
10234
10235 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10236 conditionals. Don't check enable_font_backend. Delete all codes
10237 used only when USE_FONT_BACKEND is not defined.
10238 (x_set_font): Call x_new_font, not x_new_fontset2.
10239 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10240 already set for the frame.
10241
10242 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10243 a font-entity by font_make_entity. Use font_intern_prop instead
10244 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10245 font property. If a font is scalable, set avgwidth property to 0.
10246 Set font-entity property by font_put_extra.
10247 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10248 (ffont_driver): Adjusted for the change of struct font_driver.
10249 (ftfont_spec_pattern): New function.
10250 (ftfont_list): Return a list, not vector.
10251 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10252 (ftfont_list_family): Don't downcase names.
10253 (ftfont_free_entity): Deleted.
10254 (ftfont_open): Return a font-object. Adjusted for the change of
10255 struct font. Get underline_thickness and underline_position from
10256 font property. Don't update dpyinfo->smallest_font_height and
10257 dpyinfo->smallest_char_width.
10258 (ftfont_close): Don't free `struct font'.
10259 (ftfont_has_char): Adjusted for the format change of font-entity.
10260 (ftfont_encode_char, ftfont_text_extents): Likewise.
10261
10262 * ftxfont.c (ftxfont_list): Return a list, not vector.
10263 (ftxfont_open): Return a font-object. Adjusted for the change of
10264 struct font. Get underline_thickness and underline_position from
10265 font property. Don't update dpyinfo->smallest_font_height and
10266 dpyinfo->smallest_char_width.
10267 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10268 (ftxfont_draw): Adjusted for the change of struct font.
10269
10270 * image.c (image_ascent): Don't include "charset.h". Include
10271 "character.h" and "font.h".
10272
10273 * lisp.h (enum pvec_type): New member PREV_FONT.
10274 (Fassoc_string): EXFUN it.
10275
10276 * print.c: Include font.h.
10277 (print_object): Handle font-related objects.
10278
10279 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10280 conditionals. Don't check enable_font_backend. Delete all codes
10281 used only when USE_FONT_BACKEND is not defined.
10282 (handle_auto_composed_prop): Do nothing if it->f is not on a
10283 window system. Check how many following characters can be
10284 displayed by the same font.
10285 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10286 'struct font *'.
10287 (get_char_face_and_encoding): Assign the whole encoding task to
10288 the `encode-char' method of a font driver.
10289 (fill_composite_glyph_string): Adjusted for the change of `struct
10290 face' and `struct glyph_string'.
10291 (fill_glyph_string): Likewise.
10292 (get_per_char_metric): Arguments changed.
10293 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10294 and `struct glyph_string'.
10295 (produce_stretch_glyph, calc_line_height_property)
10296 (x_produce_glyphs): Likewise.
10297
10298 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10299 conditionals. Don't check enable_font_backend. Delete all codes
10300 used only when USE_FONT_BACKEND is not defined. Use
10301 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10302 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10303 (Qp): Extern them.
10304 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10305 Deleted.
10306 (struct font_name): Deleted.
10307 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10308 (compare_fonts_by_sort_order): New function.
10309 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10310 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10311 Deleted.
10312 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10313 compare_fonts_by_sort_order.
10314 (Fx_font_family_list): Call Ffont_family_list.
10315 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10316 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10317 (face_symbolic_slant, face_symbolic_swidth)
10318 (split_font_name_into_vector, build_font_name_from_vector)
10319 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10320 (font_rescale_ratio, split_font_name, build_font_name)
10321 (free_font_names, sort_fonts, x_face_list_fonts)
10322 (face_font_available_p, sorted_font_list, cmp_font_names)
10323 (font_list_1, concat_font_list, font_list, remove_duplicates):
10324 Deleted.
10325 (Fx_list_fonts): Use Ffont_list.
10326 (LFACE_AVGWIDTH): Deleted.
10327 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10328 by FONTP.
10329 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10330 (set_lface_from_font_name): Delete it.
10331 (set_lface_from_font): Renamed from
10332 set_lface_from_font_and_fontset. Caller changed. Don't set
10333 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10334 for face.
10335 (merge_face_vectors): Copy font-spec if necessary.
10336 Clear properties of the font-spec if necessary.
10337 (merge_face_ref): Clear properties of the font-spec if necessary.
10338 (Finternal_set_lisp_face_attribute): Likewise.
10339 (set_font_frame_param): Use font_load_for_lface to load a
10340 font-object, and call Fmodify_frame_parameters with it.
10341 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10342 font name by Ffont_xlfd_name.
10343 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10344 QCslant, and QCwidth.
10345 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10346 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10347 Compare fonts by EQ.
10348 (lookup_non_ascii_face): Deleted.
10349 (face_for_font): The 2nd argument changed.
10350 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10351 Check atomic font properties by case insensitive.
10352 (realize_non_ascii_face): Set face->overstrike correctly.
10353 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10354 (dump_realized_face): Get font name from
10355 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10356
10357 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10358 conditionals. Don't check enable_font_backend. Delete all codes
10359 used only when USE_FONT_BACKEND is not defined.
10360 (xic_create_xfontset): Original code deleted and renamed from
10361 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10362 (x_make_gc): Don't set GCFont in GCs.
10363 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10364 opened by "fixed".
10365 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10366 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10367 get_font_repertory_func.
10368
10369 * xfont.c: Include <stdlib.h> and "ccl.h".
10370 (struct xfont_info): New structure.
10371 (xfont_query_font): Deleted.
10372 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10373 moved from xterm.c.
10374 (xfont_driver): Adjusted for the change of struct font_driver.
10375 (compare_font_names): New function.
10376 (xfont_list_pattern): Sort font names case insensitively. Make
10377 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10378 (xfont_list): Return a list, not vector.
10379 (xfont_match): If the font doesn't have QCname property, generate
10380 a name from the other font properties.
10381 (xfont_open): Return a font-object. Adjusted for the change of
10382 struct font. Get underline_thickness and underline_position from
10383 font property. Don't update dpyinfo->smallest_font_height and
10384 dpyinfo->smallest_char_width.
10385 (xfont_close): Don't free struct font.
10386 (xfont_prepare_face): Adjusted for the change of struct font.
10387 (xfont_done_face): Deleted.
10388 (xfont_has_char): Adjusted for the change of struct font.
10389 (xfont_encode_char, xfont_draw): Likewise.
10390 (xfont_check): New function.
10391
10392 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10393 callback function.
10394 (xftfont_match): Adjusted for the format change of font-entity.
10395 (xftfont_open): Adjusted for the format change of font-entity and
10396 font-object. Adjusted for the change of struct font. Return a
10397 font-object. Don't update dpyinfo->smallest_font_height and
10398 dpyinfo->smallest_char_width.
10399 (xftfont_close): Block input while calling XftFontClose.
10400 (xftfont_prepare_face): Don't block input while calling
10401 xftfont_get_colors. Adjusted for the change of struct font.
10402 (xftfont_shape): Return value of error case fixed.
10403
10404 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10405
10406 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10407 conditionals.
10408 (FONT_WIDTH): Return (f)->max_width.
10409 (struct x_display_info): Delete member `font'.
10410 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10411 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10412 (struct x_output): Change type of `font' to `struct font *'.
10413
10414 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10415 conditionals. Don't check enable_font_backend. Delete all codes
10416 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10417 (x_per_char_metric, x_encode_char): Deleted.
10418 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10419 (x_compute_glyph_string_overhangs): Adjusted for the change of
10420 `struct face'.
10421 (x_draw_glyph_string_foreground)
10422 (x_draw_composite_glyph_string_foreground): Likewise.
10423 (x_draw_glyph_string): Likewise. Use font->underline_position and
10424 font->underline_thickness.
10425 (x_new_font): Renamed from x_new_fontset2.
10426 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10427 (x_check_font): Call `check' method of a font driver.
10428 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10429 (x_query_font, x_get_font_repertory): Deleted.
10430 (x_find_ccl_program): Renamed and moved to xfont.c.
10431 (x_redisplay_interface): Adjusted for the change of `struct
10432 redisplay_interface'.
10433
10434 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10435 conditionals. Don't check enable_font_backend. Delete all codes
10436 used only when USE_FONT_BACKEND is not defined. Surround non-used
10437 code by "#ifdef OLD_FONT" and "endif".
10438 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10439
10440 * w32font.h (struct w32font_info): New member.
10441 (FONT_COMPAT): New macro.
10442 (w32font_open_internal): Prototype adjusted.
10443
10444 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10445 OLD_FONT" and "endif".
10446
10447 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10448 conditionals. Don't check enable_font_backend. Delete all codes
10449 used only when USE_FONT_BACKEND is not defined.
10450 (w32font_open): Return a font-object. Make a font-object by
10451 font_make_object. Adjusted for the change of struct w32font_info.
10452 (w32font_close): Don't free struct font. Adjusted for the change
10453 of struct w32font_info.
10454 (w32font_encode_char, w32font_text_extents, w32font_draw):
10455 Adjusted for the change of struct w32font_info.
10456 (w32font_draw): Likewise.
10457 (w32font_list_internal): Return a list, not vector.
10458 (w32font_open_internal): Change the 4th arg to font-object.
10459 Adjusted for the change of struct w32font_info and font-object format.
10460 (add_font_name_to_list): Don't downcase names.
10461 (w32_enumfont_pattern_entity): Make a font-entity by
10462 font_make_entity. Adjusted for the format change of font-entity.
10463 Use FONT_SET_STYLE to set a style-related font property. If a
10464 font is scalable, set avgwidth property to 0. Set font-entity
10465 property by font_put_extra.
10466 (font_matches_spec): Adjusted for the format change of font-entity.
10467 (w32_weight_table, w32_decode_weight): New variables.
10468 (w32_encode_weight): New function.
10469 (fill_in_logfont): Adjusted for the format change of font-spec.
10470 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10471 weight value.
10472 (w32font_driver): Adjusted for the change of struct font_driver.
10473
10474 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10475 conditionals. Don't check enable_font_backend. Surround non-used
10476 code by "#ifdef OLD_FONT" and "endif".
10477 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10478 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10479
10480 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10481 conditionals. Don't check enable_font_backend. Delete all codes
10482 used only when USE_FONT_BACKEND is not defined. Surround non-used
10483 code by "#ifdef OLD_FONT" and "endif".
10484
10485 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10486 (uniscribe_open): Return value changed to font-object.
10487 Adjusted for the format change of font-object.
10488 (uniscribe_otf_capability): Adjusted for the change of struct font.
10489 (add_opentype_font_name_to_list): Don't downcase names.
10490 (uniscribe_font_driver): Adjusted for the change of struct
10491 font_driver.
10492
104932008-05-13 Chong Yidong <cyd@stupidchicken.com>
10494
10495 * dispnew.c (update_frame_1): Check if tty output is still valid
10496 before flushing it.
10497
104982008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10499
10500 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10501 to Gtk+ menus.
10502
105032008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10504
10505 * dired.c (file_name_completion): Tweak the code so as to always do it
10506 in a single pass. Tighten the scope of some variables.
10507
10508 * dired.c (Qdefault_directory): New var.
10509 (file_name_completion): Use it instead of Fexpand_file_name.
10510 (syms_of_dired): Initialize it.
10511
105122008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10513
10514 * fileio.c (double_dollars): Remove dead code.
10515
105162008-05-10 Eli Zaretskii <eliz@gnu.org>
10517
10518 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10519 Mention w32-get-true-file-attributes in doc string.
10520
10521 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10522
105232008-05-09 Glenn Morris <rgm@gnu.org>
10524
10525 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10526 2008-04-23.
10527
105282008-05-09 Eli Zaretskii <eliz@gnu.org>
10529
10530 Support for reporting owner and group of each file on MS-Windows:
10531 * dired.c (stat_uname, stat_gname): New functions, with special
10532 implementation for w32.
10533 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10534
10535 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10536 (dflt_group_name): New static variable.
10537 (dflt_group): Rename from the_group.
10538 (init_user_info): Init dflt_group fields. Get user's group name
10539 from LookupAccountSid.
10540 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10541 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10542 New initialization states.
10543 (globals_of_w32): Initialize them to zero. Initialize the default
10544 group name to "None".
10545 (GetFileSecurity_Name): New global var, the name of the function
10546 to call for GetFileSecurity.
10547 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10548 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10549 (get_file_security, get_security_descriptor_owner)
10550 (get_security_descriptor_group, is_valid_sid)
10551 (get_file_security_desc, get_rid, get_name_and_id)
10552 (get_file_owner_and_group): New functions.
10553 (stat): Use get_file_security_desc and get_file_owner_and_group to
10554 report the owner and primary group of each file. Don't ignore the
10555 high 32 bits of file's size, now that st_size is 64-bit wide.
10556 Fix test when to get true file attributes.
10557 (init_user_info): Use get_rid instead of equivalent inline code.
10558 (fstat): Don't ignore the high 32 bits of file's size.
10559
105602008-05-09 Chong Yidong <cyd@stupidchicken.com>
10561
10562 * image.c (png_load): Use correct bit-depth for setting background
10563 color.
10564
105652008-05-08 Eli Zaretskii <eliz@gnu.org>
10566
10567 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10568 epa-hook.elc.
10569
105702008-05-08 Juanma Barranquero <lekktu@gmail.com>
10571
10572 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10573
105742008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10575
10576 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10577 because the original parameters are in pure storage now.
10578 (mac_window): Remove unused params. Update callers.
10579
105802008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10581
10582 * lread.c (substitute_object_recurse): Use lower-level primitives.
10583 Don't signal errors when traversing sub-char-tables.
10584 Don't loop over all the possible characters when traversing char-tables.
10585
10586 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10587 just like we do in print.c.
10588
105892008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10590
10591 * minibuf.c (Ftry_completion): Remove code left over from when we used
10592 scmp instead of Fcompare_strings.
10593
105942008-05-04 Juanma Barranquero <lekktu@gmail.com>
10595
10596 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10597
105982008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10599
10600 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10601 Create bitmap context in native byte order.
10602
10603 * macterm.c (XDrawLine)
10604 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10605 context in native byte order.
10606
106072008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10608
10609 * config.in: Regenerate.
10610
10611 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10612 New definitions for Image I/O support.
10613 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10614 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10615 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10616 (mac_data_provider_release_data, image_load_image_io)
10617 [USE_MAC_IMAGE_IO]: New functions.
10618 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10619 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10620 (init_image_func_pointer) [MAC_OSX]: Remove function.
10621 (image_load_quartz2d) [MAC_OSX]: Check availability of
10622 CGImageCreateWithPNGDataProvider at compile time.
10623 Use lowercase `false' for boolean constant.
10624 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10625 Use image_load_image_io.
10626 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10627 Don't check MyCGImageCreateWithPNGDataProvider.
10628 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10629 Don't call init_image_func_pointer.
10630
10631 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10632
10633 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10634 Make variable non-static.
10635 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10636 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10637
10638 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10639 (RED_FROM_ULONG): Mask off higher bits.
10640 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10641
10642 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10643 Include AvailabilityMacros.h.
10644 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10645 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10646
106472008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10648
10649 * chartab.c (Fset_char_table_range): If range is t, really set all
10650 chars to that value.
10651
106522008-05-03 Eli Zaretskii <eliz@gnu.org>
10653
10654 * dired.c (Ffile_attributes): Don't allow the device number become
10655 negative.
10656
106572008-05-02 Daiki Ueno <ueno@unixuser.org>
10658
10659 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10660
106612008-05-02 Juri Linkov <juri@jurta.org>
10662
10663 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10664 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10665 DEFAULT argument as a list of default values in docstrings.
10666
106672008-05-01 Chong Yidong <cyd@stupidchicken.com>
10668
10669 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10670
106712008-05-01 Martin Rudalics <rudalics@gmx.at>
10672
10673 * dispnew.c (change_frame_size_1): Preserve small windows when
10674 shrinking frames by calling set_window_height|width with third
10675 arg 2.
10676
10677 * window.h (struct window): Replace field too_small_ok by field
10678 resize_proportionally.
10679
10680 * window.c (make_window): Initialize resize_proportionally.
10681 (enlarge_window): Temporarily set resize_proportionally to make
10682 sure that shrink_windows does scale the window proportionally.
10683 (shrink_windows): When window has resize_proportionally set try
10684 to shrink it proportionally by stealing from other windows.
10685 (struct saved_window, Fset_window_configuration)
10686 (compare_window_configurations): Handle resize_proportionally.
10687 (WINDOW_TOTAL_SIZE): New macro.
10688 (window_min_size, shrink_windows, size_window): Use it.
10689 (check_min_window_sizes): Remove. Invalid values of
10690 window-min-height|width are handled by window_min_size_2 now.
10691 (size_window, Fsplit_window, enlarge_window)
10692 (adjust_window_trailing_edge, grow_mini_window): Don't call
10693 check_min_window_sizes.
10694 (window_min_size_2, window_min_size_1, window_min_size):
10695 New argument safe_p for retrieving "safe" minimum sizes.
10696 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10697 (adjust_window_trailing_edge, grow_mini_window):
10698 Adjust arguments of window_min_size... functions.
10699 (shrink_windows): Argument min_size removed. New argument
10700 safe_p allows shrinking windows to their safe minimum sizes.
10701 Calculate minimum size and decide whether a window shall be
10702 deleted for each window individually.
10703 (size_window): When nodelete_p equals 2, tell shrink_windows to
10704 delete windows only if their new minimum size is no more safe.
10705 (shrink_window_lowest_first): Call window_min_size_1 to make
10706 sure to preserve modeline of bottom-most window when resizing
10707 the minibuffer.
10708 (Fset_window_configuration, Fcurrent_window_configuration)
10709 (compare_window_configurations): Do not handle
10710 window-min-height|width any more.
10711 (syms_of_window): Clarify window-min-height|width doc-strings.
10712
107132008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10714
10715 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10716 some more. Copy some of the code from Ftry_completions.
10717 Remove special case code that dates back to initial revision when the
10718 slash was only added when necessary and that can't trigger nowadays.
10719
107202008-04-27 Kenichi Handa <handa@m17n.org>
10721
10722 * font.c (font_prop_validate): Signal `error' instead of `font'.
10723
107242008-04-29 Jason Rumney <jasonr@gnu.org>
10725
10726 * w32fns.c (Fw32_battery_status): New defun.
10727 (syms_of_w32fns): Defsubr it.
10728
107292008-04-28 Andreas Schwab <schwab@suse.de>
10730
10731 * dired.c (file_name_completion): Fix another mixing of encoded
10732 and decoded names.
10733
107342008-04-28 Juanma Barranquero <lekktu@gmail.com>
10735
10736 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10737
107382008-04-27 Juanma Barranquero <lekktu@gmail.com>
10739
10740 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10741
107422008-04-27 Andreas Schwab <schwab@suse.de>
10743
10744 * dired.c (file_name_completion): Fix inappropriate mixing of
10745 encoded and decoded names.
10746
10747 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10748
10749 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10750
107512008-04-26 Eli Zaretskii <eliz@gnu.org>
10752
10753 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10754 2008-03-31, it's not needed anymore with `struct stat' definition
10755 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10756 for the same reasons.
10757
107582008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10759
10760 * m/sparc.h: Additional redefinitions for GNU/Linux.
10761
107622008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10763
10764 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10765 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10766 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10767 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10768 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10769 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10770 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10771 Likewise.
10772
10773 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10774 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10775 (mac_ax_number_of_characters): Add externs.
10776 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10777 [USE_MAC_TSM]: Likewise.
10778 (mac_handle_text_input_event) [MAC_OSX]:
10779 Handle kEventTextInputOffsetToPos for no active input area case.
10780 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10781 (mac_handle_document_access_event)
10782 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10783 (install_application_handler) [MAC_OSX]: Register handlers for
10784 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10785 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10786 Register mac_handle_document_access_event.
10787
10788 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10789 Make functions non-static.
10790
107912008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10792
10793 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10794 (read_file_name_completion_ignore_case, insert_default_directory)
10795 (Qdefault_directory): Move to minibuffer.el.
10796 (Fread_file_name): Call the new `read-file-name' instead.
10797
107982008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10799
10800 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10801 Make function non-static.
10802 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10803 Remove function.
10804 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10805 Move to mactoolbox.c.
10806 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10807
10808 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10809 (mac_rect_make): New macro.
10810
10811 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10812 instead of float.
10813 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10814 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10815 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10816 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10817 CGRectMake.
10818 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10819 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10820 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10821 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10822 instead of WindowRef in argument type.
10823 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10824 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10825 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10826 instead of DISPLAY. All uses changed.
10827 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10828 (x_calc_absolute_position): Simplify so as not to use
10829 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10830
10831 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10832 instead of WindowRef in argument type.
10833 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10834 [TARGET_API_MAC_CARBON]: Remove externs.
10835 (create_apple_event, mac_event_parameters_to_lisp)
10836 [TARGET_API_MAC_CARBON]: Add externs.
10837
10838 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10839 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10840 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10841 is clicked.
10842 (x_activate_menubar): Remove extern for saved_menu_event_location.
10843 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10844 Move from mac.c.
10845
108462008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10847
10848 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10849 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10850
108512008-04-23 Jason Rumney <jasonr@gnu.org>
10852
10853 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10854 attributes only for local files.
10855
10856 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10857 default to Qlocal.
10858
108592008-04-22 Juri Linkov <juri@jurta.org>
10860
10861 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10862 read-buffer-to-switch instead of using the letter "B".
10863
108642008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10865
10866 * fileio.c (Qdefault_directory): New variable.
10867 (Fread_file_name): Use it to pass `dir' to the completion functions.
10868
108692008-04-20 Chong Yidong <cyd@stupidchicken.com>
10870
10871 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10872
108732008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10874
10875 * keyboard.c (Vpre_help_message): Remove.
10876 (show_help_echo): Remove default C code.
10877
10878 * dired.c (directory_files_internal, file_name_completion):
10879 Only call ENCODE_FILE if the string is indeed decoded.
10880
108812008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10882
10883 * Makefile.in (TOOLKIT_DEFINES): Remove.
10884 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10885
108862008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10887
10888 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10889 (mactoolbox.o): New target.
10890
10891 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10892 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10893
10894 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10895 Use mac_set_frame_window_background instead of XSetWindowBackground.
10896 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10897 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10898 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10899 instead of SetWindowTitleWithCFString.
10900 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10901 Move function to mactoolbox.c.
10902 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10903 Use mac_set_window_modified instead of SetWindowModified.
10904 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10905 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10906 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10907 FrontNonFloatingWindow. Use mac_activate_window instead of
10908 ActivateWindow. Use mac_active_non_floating_window instead of
10909 ActiveNonFloatingWindow.
10910 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10911 Use mac_show_hourglass and mac_hide_hourglass.
10912 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10913 instead of GetGlobalMouse.
10914 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10915 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10916 Use mac_bring_window_to_front instead of BringToFront.
10917 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10918 mactoolbox.c.
10919 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10920 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10921 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10922 mactoolbox.c.
10923
10924 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10925 (XtPointer): Move typedef from macmenu.c.
10926 (enum button_type): Move enum from macmenu.c.
10927 (widget_value): Move typedef from macmenu.c.
10928 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10929 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10930 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10931 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10932 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10933 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10934 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10935 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10936 (Selection): Move typedef from macselect.c.
10937 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10938 macterm.c.
10939 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10940 (mac_is_window_collapsed, mac_bring_window_to_front)
10941 (mac_send_window_behind, mac_hide_window, mac_show_window)
10942 (mac_collapse_window, mac_front_non_floating_window)
10943 (mac_active_non_floating_window, mac_activate_window)
10944 (mac_move_window_structure, mac_move_window, mac_size_window)
10945 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10946
10947 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10948 (enum mac_menu_kind): Move enum to mactoolbox.c.
10949 (min_menu_id): Move variable to mactoolbox.c.
10950 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10951 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10952 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10953 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10954 [TARGET_API_MAC_CARBON]: Likewise.
10955 (XtPointer): Move typedef to macgui.h.
10956 (enum button_type): Move enum to macgui.h.
10957 (widget_value): Move typedef to macgui.h.
10958 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10959 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10960 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10961 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10962 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10963 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10964 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10965 (popup_activated_flag): Make variable non-static.
10966 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10967 (add_menu_item, fill_menu, dispose_menus):
10968 Move functions to mactoolbox.c.
10969 (restore_show_help_function, menu_target_item_handler)
10970 (install_menu_target_item_handler, mac_handle_dialog_event)
10971 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10972 [TARGET_API_MAC_CARBON]: Likewise.
10973 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10974 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10975 (find_and_call_menu_selection, name_is_separator): Make function
10976 non-static.
10977 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10978 to mactoolbox.c.
10979 (set_frame_menubar): Don't call install_menu_quit_handler.
10980 (menu_item_selection): New variable.
10981 (mac_menu_show): Use create_and_show_popup_menu.
10982 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10983 selection but set variable menu_item_selection. All uses changed.
10984 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10985 Call install_menu_quit_handler. Move to mactoolbox.c.
10986
10987 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10988 (Selection): Move typedef to macgui.h.
10989 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10990 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10991 Make variables non-static.
10992 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10993 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10994 Make functions non-static.
10995 (Vmac_service_selection) [MAC_OSX]: Likewise.
10996 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10997 (mac_valid_selection_target_p, mac_clear_selection)
10998 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10999 (mac_put_selection_value, mac_selection_has_target_p)
11000 (mac_get_selection_value, mac_get_selection_target_list)
11001 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11002 Move functions to mactoolbox.c.
11003 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11004 Likewise.
11005 (copy_scrap_flavor_data, mac_handle_service_event)
11006 (install_service_handler) [MAC_OSX]: Likewise.
11007 (syms_of_macselect) <Vmac_dnd_known_types>:
11008 Use mac_dnd_default_known_types.
11009
11010 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11011 Move to mactoolbox.c.
11012 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11013 (Fx_selection_owner_p): Add EXFUN.
11014 (install_window_handler, remove_window_handler, XSetWindowBackground):
11015 Remove externs.
11016 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11017 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11018 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11019 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11020 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11021 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11022 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11023 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11024 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11025 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11026 (mac_valid_selection_target_p, mac_clear_selection)
11027 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11028 (mac_put_selection_value, mac_selection_has_target_p)
11029 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11030 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11031 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11032 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11033 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11034 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11035 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11036 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11037 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11038
11039 * mactoolbox.c: New file.
11040
110412008-04-18 Jason Rumney <jasonr@gnu.org>
11042
11043 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11044
110452008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11046
11047 * character.c (Fmultibyte_char_to_unibyte):
11048 Return latin1 chars unchanged.
11049
11050 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11051 relocated if it points to `name'.
11052
110532008-04-17 Kenichi Handa <handa@m17n.org>
11054
11055 * data.c (Faset): Allow setting a multibyte character in an
11056 ASCII-only unibyte string.
11057
11058 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11059
110602008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11061
11062 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11063 done in config.h.
11064
110652008-04-16 Juanma Barranquero <lekktu@gmail.com>
11066
11067 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11068 (Fchar_direction): Add usage in the docstring.
11069
110702008-04-15 Chong Yidong <cyd@stupidchicken.com>
11071
11072 * keyboard.c (read_key_sequence): Remove always-true checks.
11073
110742008-04-14 Jason Rumney <jasonr@gnu.org>
11075
11076 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11077 compatibility struct, for better underline positioning.
11078
110792008-04-13 David Hansen <david.hansen@gmx.net>
11080
11081 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11082 string.
11083
110842008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11085
11086 * m/hp800.h (XUINT, XSET): Remove.
11087
110882008-04-12 Juanma Barranquero <lekktu@gmail.com>
11089
11090 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11091 previous change.
11092
110932008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11094
11095 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11096 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11097
110982008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11099
11100 * keymap.h (map_keymap_canonical): Declare.
11101 * xmenu.c (single_keymap_panes): Use it.
11102
111032008-04-11 Glenn Morris <rgm@gnu.org>
11104
11105 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11106 set the target's value to that of the alias.
11107
111082008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11109
11110 * term.c (set_tty_color_mode): Left over typo.
11111
111122008-04-10 Michael Albinus <michael.albinus@gmx.de>
11113
11114 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11115 only after check for file name handler functions. Signal, when
11116 native functionality is not supported.
11117 (syms_of_fileio): Declare it unconditionally.
11118
111192008-04-10 Jason Rumney <jasonr@gnu.org>
11120
11121 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11122 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11123
11124 * w32.c (logon_network_drive): Also logon to remote drives that
11125 are mapped to drive letters.
11126
111272008-04-10 Glenn Morris <rgm@gnu.org>
11128
11129 * xdisp.c (truncate-partial-width-windows): Doc fix.
11130
111312008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11132
11133 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11134 Move functions to minibuffer.el.
11135 (syms_of_fileio): Don't declare them.
11136
111372008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11138
11139 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11140 (syms_of_minibuf): Remove its initialization.
11141
11142 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11143
111442008-04-09 Juanma Barranquero <lekktu@gmail.com>
11145
11146 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11147
111482008-04-09 Jason Rumney <jasonr@gnu.org>
11149
11150 * makefile.w32-in (distclean): Delete makefile too.
11151 (maintainer-clean): New target.
11152
11153 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11154
11155 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11156 for new font backend and composite cases.
11157
111582008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11159
11160 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11161 Most of the code moved to run_timers.
11162 (do_pending_atimers): Call run_timers.
11163 (run_timers): New function.
11164
11165 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11166 run atimers.
11167
11168 * process.c (wait_reading_process_output): The same as above.
11169
111702008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11171
11172 * minibuf.c (last_exact_completion): Remove variable.
11173 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11174 (complete_and_exit_1, complete_and_exit_2)
11175 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11176 (Fdisplay_completion_list, display_completion_list_1)
11177 (Fminibuffer_completion_help, Fself_insert_and_exit)
11178 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11179 minibuffer.el.
11180 (syms_of_minibuf): Remove corresponding initializations.
11181
11182 * keyboard.c (Qdeactivate_mark): New var.
11183 (command_loop_1): Use it to call `deactivate-mark'.
11184 (syms_of_keyboard): Initialize it.
11185
11186 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11187 to another frame.
11188 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11189 Don't call set_tty_color_mode.
11190 (store_frame_param): Reset previous_frame rather than call
11191 set_tty_color_mode.
11192 * term.c (set_tty_color_mode): Rewrite.
11193 * dispextern.h (set_tty_color_mode): New type.
11194 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11195
111962008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11197
11198 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11199 for generic chars, which do not exist any more in emacs-unicode.
11200
112012008-04-08 Michael Albinus <michael.albinus@gmx.de>
11202
11203 * coding.c (detect_coding_emacs_mule)
11204 (Ffind_operation_coding_system): Fix typo.
11205
112062008-04-08 Jason Rumney <jasonr@gnu.org>
11207
11208 * w32uniscribe.c (SNAME): Extract only symbol name.
11209
11210 * w32font.h (struct w32_metric_cache): New struct.
11211 (w32font_info): Use it.
11212 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11213 (CACHE_BLOCKSIZE): New constants.
11214
11215 * w32font.c (Qja, Qko, Qzh): New symbols.
11216 (syms_of_w32font): Initialise them.
11217 (font_matches_spec): Use them to filter by language.
11218 (recompute_cached_metrics): Remove function.
11219 (compute_metrics, clear_cached_metrics): New functions.
11220 (w32font_encode_char): Use them to manage metric cache.
11221 (w32font_text_extents): Cache metrics for all glyphs on demand.
11222 Delay converting glyph indices to WORD until needed.
11223 (w32font_open_internal): Initialize metric cache to empty.
11224 (registry_to_w32_charset): Charset should always be a symbol.
11225 (fill_in_logfont, list_all_matching_fonts): Family should
11226 always be a symbol.
11227
112282008-04-06 Jason Rumney <jasonr@gnu.org>
11229
11230 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11231 Give up if glyph indices not supported. Use uniscribe obtained
11232 ABC widths for individual metrics. Map glyph clusters back to
11233 characters using fClusterStart flag. Return number of glyphs
11234 produced, not chars processed.
11235 (uniscribe_shape): Map char at FROM to current glyph.
11236
112372008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11238
11239 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11240 Use SetMenuItemHierarchicalMenu.
11241
112422008-04-05 Jason Rumney <jasonr@gnu.org>
11243
11244 * image.c (pbm_load): Allow color values up to 65535.
11245 Throw an error if max_color_idx is outside the supported range.
11246 Report an error when image size is invalid.
11247 Read two bytes at a time when raw images have max_color_idx above 255.
11248
112492008-04-05 Eli Zaretskii <eliz@gnu.org>
11250
11251 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11252 cFileName a file name that includes `?' characters, use the 8+3
11253 alias in cAlternateFileName instead.
11254
112552008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11256
11257 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11258 append "CCL: Quitted" when the CCL program is quitted.
11259 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11260
11261 * ccl.h (struct ccl_program): New member quit_silently.
11262
112632008-04-05 Chong Yidong <cyd@stupidchicken.com>
11264
11265 * search.c (compile_pattern_1): Treat non-nil and non-string of
11266 search-spaces-regexp as nil.
11267
11268 * minibuf.c (Fassoc_string): Tweak docstring.
11269
112702008-04-05 Eli Zaretskii <eliz@gnu.org>
11271
11272 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11273 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11274 2008-03-14 to force inode be positive.
11275
11276 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11277 _S_* ones, since we now use our own sys/stat.h.
11278 (stat, fstat): Don't mangle the inode number.
11279 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11280
112812008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11282
11283 * frame.h (struct frame): Give one more bit to `visible' since we use
11284 values larger than 1 to indicate obscured frames on ttys.
11285
11286 * keymap.c (Qkeymap_canonicalize): New var.
11287 (Fmap_keymap_internal): New fun.
11288 (describe_map): Use keymap-canonicalize.
11289
11290 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11291 (Fundo_boundary): Set them.
11292 (syms_of_undo): Initialize them.
11293 (record_point): Use them instead of last_point_position*.
11294 (last_undo_buffer): Change type.
11295
112962008-04-04 Jason Rumney <jasonr@gnu.org>
11297
11298 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11299 (recompute_cached_metrics): Don't set ascent and descent per char.
11300
11301 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11302 (uniscribe_check_otf): Add GC protection before consing.
11303 Rearrange loop for counting features.
11304
113052008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11306
11307 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11308 buffer with byte-size of source buffer.
11309
113102008-04-03 Chong Yidong <cyd@stupidchicken.com>
11311
11312 * callint.c (Fcall_interactively): Handle temporary region even
11313 when shift-select-mode is off.
11314
113152008-04-03 Jason Rumney <jasonr@gnu.org>
11316
11317 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11318
113192008-04-03 Kenichi Handa <handa@m17n.org>
11320
11321 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11322 (CATEGORY_MASK_UTF_16): Likewise.
11323 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11324 binary file.
11325 (detect_coding): Add null-byte detection for a binary file.
11326 (detect_coding_system): Likewise.
11327
113282008-04-03 Jason Rumney <jasonr@gnu.org>
11329
11330 * w32uniscribe.c: New file.
11331
11332 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11333
11334 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11335
11336 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11337 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11338 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11339 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11340 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11341 (Qphonetic): New symbols.
11342 (syms_of_w32font): Initialize them.
11343 (font_supported_scripts): Use them.
11344 (w32font_list_family): List all charsets.
11345 (w32font_text_extents, recompute_cached_metrics): Fix metric
11346 calculations.
11347 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11348 Give opentype fonts their own format.
11349 (font_matches_spec): New arguments backend and logfont.
11350 Handle :otf spec for uniscribe backend.
11351 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11352 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11353
11354 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11355 font backend.
11356 (globals_of_w32fns): Initialize uniscribe font backend.
11357
11358 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11359 dependencies.
11360 (w32uniscribe.$(O)): New file to build.
11361 (FONT_OBJ): Include w32uniscribe.$(O).
11362 (LIBS): Add uniscribe libraries.
11363
11364 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11365
113662008-04-02 Chong Yidong <cyd@stupidchicken.com>
11367
11368 * callint.c (Vshift_select_mode): New var.
11369 (Finteractive): Document new ^ spec.
11370 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11371 is present.
11372
11373 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11374 (command_loop_1): Avoid running the direct display versions of
11375 forward-char and backward-char if shift-selection may occur.
11376 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11377 shift-translation takes place.
11378
11379 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11380 avoid clobbering by define-minor-mode.
11381
11382 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11383 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11384
11385 * syntax.c (Fforward_word): Add ^ interactive spec.
11386
11387 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11388 (Fscroll_right): Add ^ interactive spec.
11389
113902008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11391
11392 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11393
11394 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11395
11396 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11397
113982008-03-31 Juri Linkov <juri@jurta.org>
11399
11400 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11401
114022008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11403
11404 * gtkutil.c (xg_set_geometry): Fix indentation.
11405 (xg_resize_outer_widget): Remove.
11406 (x_wm_size_hint_off): Fix indentation.
11407 (xg_frame_set_char_size): Call flush_and_sync after
11408 gtk_window_resize.
11409 (x_wm_set_size_hint): Pass NULL as geometry window to
11410 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11411 Add menu bar and tool bar height to base height.
11412 (xg_update_frame_menubar, free_frame_menubar)
11413 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11414 (update_frame_tool_bar, free_frame_tool_bar):
11415 Change xg_resize_outer_widget to xg_frame_set_char_size.
11416
114172008-03-30 Michael Albinus <michael.albinus@gmx.de>
11418
11419 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11420 (Fdbus_call_method): New parameter TIMEOUT.
11421 (dbus-send-signal): Optimize UNGCPRO call.
11422
114232008-03-29 Juri Linkov <juri@jurta.org>
11424
11425 * window.c (Fdisplay_buffer): Move call to
11426 Vsplit_window_preferred_function out of conditions that check
11427 if window is eligible for vertical splitting.
11428 When Vsplit_window_preferred_function is non-nil, call it and use
11429 its non-nil return value as window. Otherwise, continue doing
11430 vertical splitting using Fsplit_window with arg horflag=nil.
11431 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11432 default value from `split-window' to nil.
11433
114342008-03-29 Juri Linkov <juri@jurta.org>
11435
11436 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11437 for interactive code letters 'b' and 'B'.
11438
114392008-03-29 Eli Zaretskii <eliz@gnu.org>
11440
11441 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11442 multibyte string.
11443
114442008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11445
11446 * keyboard.c (pending_funcalls): New var.
11447 (timer_check): Run it.
11448 (syms_of_keyboard): Initialize it.
11449 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11450 (Vdelete_terminal_functions): New vars.
11451 (syms_of_terminal): Initialize them.
11452 (Fdelete_terminal): Run delete-terminal-functions.
11453 * xdisp.c (safe_eval): Rewrite.
11454 (safe_call2): New fun.
11455 * frame.c (Qdelete_frame_functions): New var.
11456 (syms_of_frame): Initialize it.
11457 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11458 * lisp.h (safe_call2, pending_funcalls): Declare.
11459
114602008-03-28 Andreas Schwab <schwab@suse.de>
11461
11462 * indent.c (Fmove_to_column): Move declaration before statements.
11463
114642008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11465
11466 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11467 (struct frame): Use bit fields for boolean vars.
11468
11469 * process.c (server_accept_connection): Simplify naming.
11470 (emacs_get_tty_pgrp): Use SDATA.
11471
11472 * coding.c (decode_coding_object): Fix last change.
11473
114742008-03-27 Jason Rumney <jasonr@gnu.org>
11475
11476 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11477
114782008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11479
11480 * charset.c (Fdefine_charset_internal): Change the way of
11481 registering charsets in Vcharset_order_list.
11482 (syms_of_charset): Make the charset `eight-bit' supplementary.
11483
114842008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11485
11486 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11487 operations, to avoid having the difference between pointers
11488 overflow.
11489
114902008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11491
11492 * indent.c (check_display_width): New fun.
11493 (scan_for_column): Use it.
11494
11495 * data.c (syms_of_data): Mark most-positive-fixnum and
11496 most-negative-fixnum as constants.
11497
11498 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11499
11500 * indent.c (scan_for_column): Extract from current_column_1.
11501 Merge with the same code from Fmove_to_column.
11502 (current_column_1, Fmove_to_column): Use it.
11503
115042008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11505
11506 * keymap.c (map_keymap_internal): New fun.
11507 (map_keymap): Use it.
11508 (Fmap_keymap_internal): New fun.
11509 (Fmap_keymap): Remove left-out test from before make_save_value.
11510
11511 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11512
11513 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11514 Use XCAR/XCDR.
11515
11516 * process.h (struct Lisp_Process): Remove filter_multibyte.
11517 * process.c (QCfilter_multibyte): Remove.
11518 (setup_process_coding_systems): Don't use filter_multibyte.
11519 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11520 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11521 (Fset_process_filter_multibyte): Change the coding-system to
11522 approximate the previous behavior.
11523 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11524 coding-system.
11525
11526 * coding.c (decode_coding_object): When not decoding into a buffer,
11527 obey the coding system's preference of (uni|multi)byte.
11528
115292008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11530
11531 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11532 every char is changed and has a different byte-length.
11533 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11534 Fix int -> EMACS_INT.
11535
115362008-03-23 David Hansen <david.hansen@gmx.net>
11537
11538 * dbusbind.c (xd_read_message): Remove extra copying of message
11539 strings. Check for NULL `interface' or `member'.
11540
115412008-03-22 Eli Zaretskii <eliz@gnu.org>
11542
11543 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11544 cFileName a file name that includes `?' characters, use the 8+3
11545 alias in cAlternateFileName instead.
11546
115472008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11548
11549 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11550
115512008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11552
11553 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11554 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11555 work on current_buffer only instead (that was already the case
11556 for some of the code anyway).
11557 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11558 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11559 (SET_PT, SET_PT_BOTH): Adjust.
11560 * intervals.h (set_point, temp_set_point, set_point_both)
11561 (temp_set_point_both): Remove redundant declarations.
11562
115632008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11564
11565 * fileio.c (Finsert_file_contents):
11566 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11567 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11568 when buffer != current_buffer anyway.
11569
115702008-03-20 Andreas Schwab <schwab@suse.de>
11571
11572 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11573 as default.
11574
115752008-03-19 Jason Rumney <jasonr@gnu.org>
11576
11577 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11578 (syms_of_w32fns): Initialize them.
11579 (HOURGLASS_ID): New constant.
11580 (x_window_to_frame): Don't check hourglass_window.
11581 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11582 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11583 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11584 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11585 Only change the cursor if hourglass is not active.
11586 (Fx_create_frame): Initialize frame's current_cursor.
11587 (hourglass_atimer): Remove.
11588 (hourglass_started): New function.
11589 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11590 (show_hourglass): Adapt to w32, changing argument to frame.
11591
11592 * w32term.h (struct w32_output): Remove hourglass_window.
11593 Add current_cursor.
11594
11595 * eval.c (call_debugger, Fsignal):
11596 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11597 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11598 (Fexecute_extended_command, cancel_hourglass_unwind):
11599 * minibuf.c (read_minibuf):
11600 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11601
116022008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11603
11604 * window.c (run_funs): New fun.
11605 (run_window_configuration_change_hook): Use it to run the buffer-local
11606 and the global part of the hook.
11607
11608 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11609 (unwind_format_mode_line): Restore selected window.
11610 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11611
116122008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11613
11614 * editfns.c (Fchar_equal): Check they are valid characters.
11615
11616 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11617
116182008-03-17 Andreas Schwab <schwab@suse.de>
11619
11620 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11621 against a charset.
11622
11623 * lisp.h (Fbuffer_list): Declare.
11624
116252008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11626
aac0c6e3
MR
11627 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11628 handlebox_widget is != 0.
11629
116302008-03-16 Juri Linkov <juri@jurta.org>
11631
11632 * callint.c (Fcall_interactively): For interactive code letters
11633 'b' and 'B' put the buffer list into the list of default "future"
11634 values of the minibuffer.
11635
116362008-03-16 Andreas Schwab <schwab@suse.de>
11637
11638 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11639 modifiers.
11640
11641 * regex.c (re_match_2_internal): Correct matching of a charset
11642 against latin-1 characters.
11643
116442008-03-16 Kenichi Handa <handa@m17n.org>
11645
11646 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11647 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11648 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11649 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11650 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11651 CHAR_STRING_ADVANCE.
11652 (produce_chars): Fix for the case that the source and the
11653 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11654 instead of CHAR_STRING_ADVANCE.
11655 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11656 STRING_CHAR_ADVANCE.
11657
116582008-03-15 Andreas Schwab <schwab@suse.de>
11659
11660 * regex.c (re_match_2_internal): Correct matching of eight bit
11661 characters in unibyte strings.
11662
116632008-03-15 Martin Rudalics <rudalics@gmx.at>
11664
11665 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11666 at end of range when it coincides with the end of the buffer.
11667
116682008-03-14 Eli Zaretskii <eliz@gnu.org>
11669
11670 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11671
11672 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11673
116742008-03-14 Jason Rumney <jasonr@gnu.org>
11675
11676 * editfns.c (initial_tz): New variable.
11677 (syms_of_editfns): Initialize it.
11678 (Fset_time_zone_rule): Set it when first called.
11679 Use it when TZSTRING is nil.
11680
11681 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11682 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11683 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11684 (globals_of_w32fns): Initialize them.
11685 (compute_tip_xy): Use them to position tooltips.
11686
116872008-03-14 Glenn Morris <rgm@gnu.org>
11688
11689 * emacs.c (main): Revert previous change.
11690 (standard_args): Revert -internal-script back to -scriptload,
11691 and remove the long-option form.
11692
116932008-03-13 Glenn Morris <rgm@gnu.org>
11694
11695 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11696 Remove option -enable-font-backend.
11697
116982008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11699
11700 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11701
117022008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11703
11704 * xterm.c (x_connection_closed): For GTK: If this is the last
11705 terminal just exit without closing the display.
11706
117072008-03-11 Jason Rumney <jasonr@gnu.org>
11708
11709 * w32font.c (w32font_full_name): Use floor to round.
11710
f0131492 117112008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11712
11713 * sound.c (alsa_configure): Declare vol at beginning of block.
11714
11715 * fontset.c (Ffontset_info): Remove extra semicolon.
11716
117172008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11718
11719 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11720 size of resulting string.
11721
117222008-03-10 Jason Rumney <jasonr@gnu.org>
11723
11724 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11725
117262008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11727
11728 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11729 Don't pretend as if characters with display property haven't been
11730 consumed for string-replacing-string case.
11731
117322008-03-08 Kim F. Storm <storm@cua.dk>
11733
11734 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11735 (get_next_display_element, next_element_from_string)
11736 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11737
117382008-03-08 Andreas Schwab <schwab@suse.de>
11739
11740 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11741
117422008-03-06 Jason Rumney <jasonr@gnu.org>
11743
11744 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11745 when charset not specified. Only translate ANSI to unicode when
11746 font_type is truetype.
11747 (w32font_coverage_ok): New function.
11748 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11749
117502008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11751
11752 * lread.c (Fread_char): Resolve modifiers.
11753 (Fread_char_exclusive): Likewise.
11754
11755 * character.c (char_resolve_modifier_mask): New function.
11756 (char_string): Use char_resolve_modifier_mask.
11757 (Fchar_resolve_modifiers): New function.
11758 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11759 function.
11760
117612008-03-04 Jason Rumney <jasonr@gnu.org>
11762
11763 * makefile.w32-in: Always include w32font.c in the build.
11764 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11765
117662008-03-04 Andreas Schwab <schwab@suse.de>
11767
11768 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11769 (versionclean): Likewise.
11770
117712008-03-04 Juanma Barranquero <lekktu@gmail.com>
11772
11773 * .cvsignore: Add oo.
11774
117752008-03-03 Andreas Schwab <schwab@suse.de>
11776
11777 * coding.c (decode_coding_object): Inhibit gap shrinking while
11778 decoding in place.
11779
117802008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11781
11782 * w32term.c: Remove unused include "gnu.h".
11783 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11784
11785 * gnu.h: Rename to ...
11786 * emacs-icon.h: ... this.
11787 * xterm.c: Use emacs-icon.h instead of gnu.h.
11788 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11789
117902008-03-03 Juanma Barranquero <lekktu@gmail.com>
11791
11792 * w32font.c: Include math.h.
11793
117942008-03-03 Jason Rumney <jasonr@gnu.org>
11795
11796 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11797 Compute options separately.
11798 (w32font_open_internal): Set glyph_idx before caching metrics.
11799
11800 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11801 Define if system headers don't.
11802 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11803 (w32font_encode_char): Don't declare here.
11804
11805 * w32font.c (Quniscribe, QCformat): New symbols.
11806 (syms_of_w32font): Define them.
11807 (w32font_has_char): Indicate uncertainty.
11808 (w32font_encode_char): Encode as glyph point. Make static.
11809 (recompute_cached_metrics): New function.
11810 (w32font_open_internal): Use it. Set font to use glyph points
11811 initially. Set format based on type of font.
11812 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11813 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11814 on it. Set format based on information available here.
11815 (add_font_entity_to_list): Identify backend based on opentype_only.
11816
118172008-03-02 Andreas Schwab <schwab@suse.de>
11818
11819 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11820
11821 * coding.c (decode_coding_big5, produce_chars):
11822 Fix typos in last change.
11823
118242008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11825
11826 * gnu.h: New icon.
11827
118282008-03-02 Kenichi Handa <handa@m17n.org>
11829
11830 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11831 `dos', don't decode '\r' if that is the last in the source.
11832 (decode_coding_utf_16, decode_coding_emacs_mule)
11833 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11834 (decode_coding_raw_text, decode_coding_charset): Likewise.
11835 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11836
118372008-03-01 Jason Rumney <jasonr@gnu.org>
11838
11839 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11840
118412008-03-01 Kim F. Storm <storm@cua.dk>
11842
11843 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11844
118452008-03-01 Jason Rumney <jasonr@gnu.org>
11846
11847 * w32font.c (w32font_full_name): New function.
11848 (w32font_open_internal): Use it.
11849
118502008-03-01 Kim F. Storm <storm@cua.dk>
11851
11852 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11853
118542008-03-01 Jason Rumney <jasonr@gnu.org>
11855
11856 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11857
118582008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11859
11860 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11861 xg_frame_resized when the event is for the edit widget.
11862
11863 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11864
11865 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11866 set_char_size.
11867 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11868 operations on widgets here. Just set frame size if needed.
11869 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11870 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11871 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11872 the whole frame.
11873 (xg_create_tool_bar): Move attachment of the tool bar to
11874 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11875 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11876
118772008-03-01 Jason Rumney <jasonr@gnu.org>
11878
11879 * w32fns.c (w32_msg_pump): Disable debug code.
11880
118812008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11882
11883 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11884
118852008-02-29 Chong Yidong <cyd@stupidchicken.com>
11886
11887 * xdisp.c (next_overlay_string): Don't set
11888 overlay_strings_at_end_processed_p if we're currently reading from
11889 a display string.
11890
118912008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11892
11893 * xdisp.c (get_overlay_strings_1): Fix typo.
11894
118952008-02-29 Chong Yidong <cyd@stupidchicken.com>
11896
11897 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11898
118992008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11900
11901 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11902
11903 * xdisp.c (display_mode_element): Cancel the previous change.
11904 (decode_mode_spec): Likewise.
11905 (handle_auto_composed_prop): Don't make composition if it->string
11906 is a string.
11907
119082008-02-27 Kim F. Storm <storm@cua.dk>
11909
11910 * lisp.h (GLYPH): Change type from int to struct with separate char
11911 and face_id members.
11912 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11913 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11914 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11915 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11916 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11917 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11918 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11919 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11920 handle new Lisp glyph code encoding, either an integer or a cons.
11921
11922 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11923 (GLYPH_ALIAS): Delete.
11924 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11925 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11926 (GLYPH_FROM_CHAR): Replace macro by ...
11927 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11928
11929 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11930 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11931 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11932 (GLYPH_INVALID_P): New macro.
11933 (spec_glyph_lookup_face): Update prototype.
11934
11935 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11936 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11937 new glyph code encoding.
11938 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11939 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11940
11941 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11942 Adapt to new glyph type and new glyph code encoding.
11943
11944 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11945
11946 * indent.c (current_column, current_column_1, Fmove_to_column)
11947 (compute_motion): Adapt to new glyph code encoding.
11948
11949 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11950
119512008-02-27 Chong Yidong <cyd@stupidchicken.com>
11952
11953 * process.c (wait_reading_process_output): Check for window
11954 changes caused by timers.
11955 Suggested by Johan Bockgård.
11956
119572008-02-27 Glenn Morris <rgm@gnu.org>
11958
11959 * emacs.c (USAGE1): Add `--disable-font-backend'.
11960
119612008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11962
11963 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11964 is made to the buffer.
11965
119662008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11967
11968 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11969 (face_at_string_position):
11970 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11971 (face_at_string_position):
11972 * xdisp.c (display_string, next_overlay_change):
11973 * buffer.h (overlays_at):
11974 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11975 Update callers.
11976
119772008-02-26 Chong Yidong <cyd@stupidchicken.com>
11978
11979 * editfns.c (Fformat): Doc fix.
11980
119812008-02-26 Juanma Barranquero <lekktu@gmail.com>
11982
11983 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11984 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11985 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11986
119872008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11988
11989 * buffer.c (Fbuffer_swap_text): New function.
11990 (syms_of_buffer): Defsubr it.
11991
119922008-02-25 Chong Yidong <cyd@stupidchicken.com>
11993
11994 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11995
119962008-02-25 Jason Rumney <jasonr@gnu.org>
11997
11998 * w32font.c (w32font_draw): Draw one character at a time when padding.
11999
120002008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12001
12002 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12003 Handle a nil arg. Use run_window_configuration_change_hook.
12004 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12005 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12006 Use run_window_configuration_change_hook.
12007
120082008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12009
12010 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12011 1-pixel width.
12012
120132008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12014
12015 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12016 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12017 if the glyph in the font is zero pixel with.
12018
12019 * dispextern.h (struct glyph_string): New member padding_p.
12020
12021 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12022
12023 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12024
12025 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12026
12027 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12028
12029 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12030
120312008-02-25 Jason Rumney <jasonr@gnu.org>
12032
12033 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12034
120352008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12036
12037 Allow fine-grained image-cache flushing.
12038 * dispextern.h (struct image): Add `dependencies' field.
12039 (clear_image_caches): Change arg to Lisp_Object.
12040 * image.c (make_image): Initialize `dependencies' field.
12041 (clear_image_cache): Change arg to allow fine-grained flushing.
12042 Perform the flush even if image-cache-eviction-delay is nil.
12043 (clear_image_caches): Change arg to Lisp_Object.
12044 (Fclear_image_cache): Expand meaning of the argument.
12045 (mark_image): Mark `dependencies' field.
12046 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12047 (lface_hash): Use XHASH rather than XFASTINT.
12048 (face_at_buffer_position): Fix int -> EMACS_INT position.
12049 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12050 (select_frame_for_redisplay): Remove code duplication.
12051 (redisplay_internal): Adapt arg to call to clear_image_caches.
12052
120532008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12054
12055 * s/vms4-0.h:
12056 * s/vms4-2.h:
12057 * s/vms4-4.h:
12058 * s/vms5-5.h: Remove, unused.
12059
12060 * s/irix5-2.h:
12061 * s/irix6-0.h:
12062 * s/riscos5.h:
12063 * s/mach-bsd4-3.h:
12064 * m/mips4.h: Remove files for obsolete systems.
12065
12066 * Makefile.in:
12067 * filelock.c:
12068 * unexmips.c:
12069 * m/hp9000s300.h:
12070 * m/iris4d.h:
12071 * s/aix3-1.h:
12072 * s/hpux.h:
12073 * s/msdos.h:
12074 * s/usg5-0.h:
12075 * s/usg5-2-2.h:
12076 * s/usg5-2.h:
12077 * s/usg5-3.h: Remove references to obsolete variables.
12078
12079 * s/irix5-0.h: Remove, move all the contents ...
12080 * s/irix6-5.h: ... here. Simplify.
12081 * config.in: Regenerate.
12082
120832008-02-24 Jason Rumney <jasonr@gnu.org>
12084
12085 * w32term.c (x_draw_glyph_string_background): Clear the background
12086 manually when cleartype is in use.
12087 (x_draw_glyph_string_foreground): Draw text transparently when
12088 cleartype is in use.
12089
12090 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12091 a font into it unless we have to.
12092
120932008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12094
12095 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12096 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12097
aac0c6e3
MR
120982008-02-18 Jason Rumney <jasonr@gnu.org>
12099
12100 * w32fns.c (Fw32_shell_execute): Encode parameters.
12101
121022008-02-09 Eli Zaretskii <eliz@gnu.org>
12103
12104 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12105
121062008-02-05 Juanma Barranquero <lekktu@gmail.com>
12107
12108 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12109
121102008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12111
12112 * xterm.c (x_set_offset): Don't change the gravity if
12113 CHANGE_GRAVITY is -1.
12114
121152008-02-23 Chong Yidong <cyd@stupidchicken.com>
12116
12117 * fileio.c (auto_save_error_occurred): New var.
12118 (auto_save_error): Set it.
12119 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12120 error occurred.
12121
121222008-02-23 Eli Zaretskii <eliz@gnu.org>
12123
12124 * w32.c (globals_of_w32): Add initializations for
12125 g_b_init_get_sid_sub_authority and
12126 g_b_init_get_sid_sub_authority_count.
12127
121282008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12129
12130 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12131 (font_parse_xlfd): Use them for sanity check.
12132 (Finternal_set_font_style_table): Make sure the table is bijective.
12133
12134 Consolidate the image_cache to the terminal struct.
12135 * termhooks.h (P_): Remove redundant def.
12136 (struct terminal): New field `image_cache'.
12137 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12138 of FRAME_X_IMAGE_CACHE.
12139 * xterm.h (struct x_display_info): Remove image_cache field.
12140 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12141 * w32term.h (struct w32_display_info): Remove image_cache field.
12142 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12143 * macterm.h (struct mac_display_info): Remove image_cache field.
12144 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12145 * xterm.c (x_term_init):
12146 * w32term.c (w32_term_init):
12147 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12148 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12149 Remove declarations.
12150 (clear_image_caches, mark_image_cache): New declarations.
12151 * xfaces.c (clear_face_cache):
12152 * xdisp.c (redisplay_internal): Use clear_image_caches.
12153 * image.c (clear_image_cache): Don't check that a frame is on
12154 a window-system before checking if it shares the same cache.
12155 (clear_image_caches): New function.
12156 (Fclear_image_cache): Use it.
12157 (mark_image): Move from allo.c.
12158 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12159 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12160 (mark_object): Don't call mark_image_cache for frames.
12161 (mark_terminals): Call mark_image_cache.
12162
12163 * lisp.h (Fdelete_terminal): Declare.
12164
12165 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12166 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12167 wrong_type_argument.
12168
121692008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12170
12171 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12172 malayalam.el, and tamil.el. Add sinhala.el.
12173
121742008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12175
12176 * xterm.c (x_connection_closed): Consolidate identical tests.
12177 (x_delete_terminal): Don't crash if called via x_connection_closed.
12178
121792008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12180
12181 * xdisp.c (decode_mode_spec): New arg string.
12182 (display_mode_element): Adjust for the above change.
12183
121842008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12185
12186 * callint.c (Fcall_interactively): Use AREF.
12187
121882008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12189
12190 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12191
121922008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12193
12194 * xfns.c (Fx_show_tip): Set string to " " if empty.
12195
121962008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12197
12198 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12199 with Qt.
12200
122012008-02-17 Kenichi Handa <handa@m17n.org>
12202
12203 * ftfont.c (ftfont_shape): Return Lispy number.
12204
12205 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12206 for GCs.
12207 (Finternal_set_font_selection_order): Call font_update_sort_order
12208 only when enable_font_backend is set.
12209 (realize_x_face): Set face->font_info to that of default face only
12210 when enable_font_backend is set.
12211
12212 * xdisp.c (handle_composition_prop): Set it->c to the fist
12213 character of the composed region.
12214 (fill_composite_glyph_string): Set base_face->font_info to
12215 s->font_info. Get a face for ascii from base_face->ascii_face.
12216 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12217 with a face already decided.
12218 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12219 non-negative.
12220 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12221 call font_prepare_composition unconditionally.
12222
12223 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12224
12225 * xterm.h (struct x_display_info): New member font.
12226
12227 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12228 (x_set_mouse_face_gc, x_new_font): Likewise.
12229 (x_term_init): Setup display_info->font.
12230 (x_delete_terminal): Free display_info->font.
12231
12232 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12233
12234 * ftxfont.c (ftxfont_default_fid): Delete it.
12235 (ftxfont_open): Set xfont->fid to 0.
12236 (ftxfont_end_for_frame): Clear data specific to the frame and the
12237 font-driver.
12238
12239 * xftfont.c (xftfont_default_fid): Delete it.
12240 (xftfont_open): Set xfont->fid to 0.
12241
12242 * fontset.c (FONTSET_OBJLIST): New macro.
12243 (fontset_find_font): Update font-object list of the fontset.
12244 (free_realized_fontset): New function.
12245 (free_face_fontset): Call free_realized_fontset.
12246 (Ffont_info): Call font_close_object only when enable_font_backend
12247 is set.
12248
12249 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12250 [HAVE_NTGUI]: Include w32term.h.
12251 [MAC_OS]: Include macterm.ch.
12252 (font_otf_ValueRecord): Use make_number.
12253 (font_finish_cache): Fix handling of reference count.
12254 (font_clear_cache): Update num_fonts.
12255 (font_open_entity): Update smallest_char_width and
12256 smallest_font_height of the frame.
12257 (font_close_object): Update num_fonts.
12258 (Fclear_font_cache): Fix finding the target cache data.
12259
122602008-02-16 Glenn Morris <rgm@gnu.org>
12261
12262 * fontset.c (Finternal_char_font): Fix compilation warning.
12263
122642008-02-16 Eli Zaretskii <eliz@gnu.org>
12265
12266 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12267 instead of char arrays. Enlarge the size of array passed to
12268 get_token_information.
12269
12270 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12271 warnings.
12272
122732008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12274
12275 * .gdbinit: Don't set `args', it breaks gdb --args.
12276
122772008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12278
12279 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12280 within a narrowed buffer.
12281
122822008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12283
12284 * coding.c (decode_coding_object, encode_coding_object):
12285 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12286
122872008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12288
12289 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12290 hardcoding 1.
12291 (detect_coding_system):
12292 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12293 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12294 * insdel.c (insert_from_gap):
12295 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12296 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12297 (string_to_multibyte):
12298 * character.c (chars_in_text, multibyte_chars_in_text):
12299 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12300
12301 * character.h (FETCH_STRING_CHAR_ADVANCE)
12302 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12303 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12304 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12305
12306 * casefiddle.c (casify_region): Only call after-change and composition
12307 functions on the part of the region that was changed.
12308
12309 * keyboard.c (read_avail_input):
12310 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12311
123122008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12313
12314 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12315 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12316
123172008-02-11 Juanma Barranquero <lekktu@gmail.com>
12318
12319 * w32menu.c (push_submenu_start, push_submenu_end)
12320 (push_left_right_boundary, push_menu_pane, push_menu_item):
12321 * keyboard.c (read_key_sequence): Don't pass args with side effects
12322 to AREF, it fails when compiling with -DENABLE_CHECKING.
12323
123242008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12325
12326 * Makefile.in (${lispsource}international/charprop.el):
12327 Delete this target.
12328
12329 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12330 emacs-unicode-2.
12331
123322008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12333
12334 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12335
123362008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12337
12338 * frame.c (Qnoelisp): New symbol.
12339 (syms_of_frame): Initialize it.
12340 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12341 harmless Elisp code, from a strong `force' from x_connection_closed.
12342 * frame.h (Qnoelisp): Declare.
12343 * xterm.c (x_connection_closed): Pass `noelisp'.
12344
12345 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12346 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12347 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12348 rather than `int' for the type of `type'.
12349
123502008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12351
12352 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12353
12354 * Makefile.in (GNUC): Remove support for gcc-1.x.
12355
123562008-02-10 Richard Stallman <rms@gnu.org>
12357
12358 * lisp.h (ASET): Use AREF, not ASLOT.
12359
123602008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12361
12362 * lisp.h (ASET): Check bounds.
12363
123642008-02-10 Glenn Morris <rgm@gnu.org>
12365
12366 * buffer.c (mode-name): Doc fix.
12367
123682008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12369
12370 * Makefile.in:
12371 * emacs.c:
12372 * gmalloc.c:
12373 * keyboard.c:
12374 * lisp.h:
12375 * m/ibm370aix.h:
12376 * process.c:
12377 * regex.c:
12378 * s/hpux.h:
12379 * sysdep.c:
12380 * sysselect.h:
12381 * systty.h:
12382 * unexec.c:
12383 * w32term.c:
12384 * xsmfns.c:
12385 * xterm.c: Remove code that deals with obsolete variables.
12386
12387 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12388
12389 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12390 nothing else needs it anymore.
12391
123922008-02-09 Eli Zaretskii <eliz@gnu.org>
12393
12394 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12395 instead of unibyte_char_to_multibyte.
12396
123972008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12398
12399 * s/gnu-linux.h: Remove commented out code.
12400
12401 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12402
12403 * Makefile.in: Update what RMS says about using autoconf.
12404 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12405 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12406 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12407 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12408
124092008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12410
12411 * keymap.c (Fkey_description): Move side effect outside of macro call.
12412
12413 * xfaces.c (Finternal_make_lisp_face):
12414 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12415
12416 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12417 (syms_of_fontset): Use ASET.
12418
12419 * fns.c (concat): Move side effect outside of macro call.
12420 (hash_clear): Use ASET.
12421
124222008-02-08 Richard Stallman <rms@gnu.org>
12423
12424 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12425 If FORCE, and frame has a surrogate minibuffer for another frame,
12426 delete the other frame first.
12427
124282008-02-07 Timo Savola <timo.savola@iki.fi>
12429
12430 * xterm.c (x_detect_focus_change): Handle embed client message.
12431 (handle_one_xevent): Ditto.
12432 (handle_one_xevent): If embedded and we get a button press/release,
12433 request focus.
12434 (xembed_set_info, xembed_send_message): New functions.
12435 (x_make_frame_visible): Call xembed_set_info if embedded.
12436 (x_make_frame_invisible): Call xembed_set_info if embedded.
12437 (x_term_init): Initialize Xatom_XEMBED.
12438 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12439 (x_iconify_frame): Ditto.
12440
12441 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12442 (enum xembed_info, enum xembed_message, enum xembed_focus)
12443 (enum xembed_modifier, enum xembed_accelerator): New.
12444 (xembed_set_info, xembed_send_message): Declare.
12445 (FRAME_X_EMBEDDED_P): New.
12446
12447 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12448 gtk_plug_new.
12449
12450 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12451 window ID of a frame.
12452 (x_window): Reparent frame if embedded.
12453 (Fx_create_frame): Don't set border width if embedded.
12454
12455 * emacs.c (USAGE3): Add --parent-id.
12456 (standard_args): Ditto.
12457
124582008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12459
12460 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12461
124622008-02-07 Jim Meyering <meyering@redhat.com>
12463
12464 Use "do...while (0)", not "if (1)...else" in macro definitions.
12465 The latter provokes a warning from gcc about the empty else, when
12466 followed by ";". Also, without that trailing semicolon, it would
12467 silently swallow up any following statement.
12468 * syntax.h (SETUP_SYNTAX_TABLE)
12469 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12470 * buffer.h (DECODE_POSITION): Likewise.
12471 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12472 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12473 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12474 (FETCH_CHAR_ADVANCE): Likewise.
12475 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12476
124772008-02-07 Jim Meyering <meyering@redhat.com>
12478
12479 * lread.c [lint]: Don't include <sys/inode.h>.
12480
124812008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12482
12483 * xselect.c (x_handle_dnd_message):
12484 * xmenu.c (digest_single_submenu, xmenu_show):
12485 * xdisp.c (with_echo_area_buffer_unwind_data)
12486 (format_mode_line_unwind_data, unwind_format_mode_line)
12487 (display_menu_bar):
12488 * eval.c (Ffetch_bytecode):
12489 * doc.c (store_function_docstring):
12490 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12491 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12492 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12493
124942008-02-07 Kenichi Handa <handa@m17n.org>
12495
12496 * ftxfont.c (ftxfont_open): Don't set
12497 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12498
12499 * ftfont.c (ftfont_open): Fix previous change.
12500
125012008-02-06 Jason Rumney <jasonr@gnu.org>
12502
12503 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12504 Use cached metrics for ASCII characters.
12505 (w32font_open_internal): Don't set font's owning_frame.
12506 Cache metrics for ASCII characters.
12507
12508 * w32font.h (struct w32font_info): Add ascii_metrics.
12509 Remove owning_frame.
12510
125112008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12512
12513 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12514 to negative value.
12515
12516 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12517
12518 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12519
12520 * charset.c (syms_of_charset): Set QCtest and Qeq.
12521
125222008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12523
12524 * process.c (Fstart_process):
12525 * callproc.c (Fcall_process): Handle the case where
12526 Funhandled_file_name_directory returns nil.
12527
12528 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12529 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12530 * font.c (check_gstring): Use them and AREF to access the vector before
12531 we know it's really a gstring.
12532 (Ffont_shape_text): Fix typo.
46e722a9 12533 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12534
12535 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12536 Declare.
12537
12538 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12539
125402008-02-05 Jason Rumney <jasonr@gnu.org>
12541
12542 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12543 Set smallest_font_height and smallest_char_width in display info.
12544
125452008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12546
12547 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12548
125492008-02-05 Miles Bader <miles@gnu.org>
12550
12551 * xfaces.c (get_lface_attributes, merge_named_face)
12552 (lookup_named_face, lookup_derived_face, realize_named_face):
12553 Revert 2008-02-01 change by cyd@stupidchicken.com.
12554
125552008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12556
12557 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12558 fallback fonts.
12559 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12560
125612008-02-04 Jason Rumney <jasonr@gnu.org>
12562
12563 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12564 set full_name.
12565 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12566
125672008-02-03 Jason Rumney <jasonr@gnu.org>
12568
12569 * makefile.w32-in (OBJ1): Include font.o here.
12570 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12571
125722008-02-02 Jason Rumney <jasonr@gnu.org>
12573
12574 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12575
125762008-02-01 Jason Rumney <jasonr@gnu.org>
12577
12578 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12579
12580 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12581
125822008-02-01 Andreas Schwab <schwab@suse.de>
12583
12584 * Makefile.in (shortlisp, lisp): Update for rename of
12585 ../lisp/language/myanmar.el.
12586
125872008-02-01 Chong Yidong <cyd@stupidchicken.com>
12588
12589 * xfaces.c (get_lface_attributes): Delete function.
12590 (merge_named_face, lookup_named_face, lookup_derived_face)
12591 (realize_named_face): Call lface_from_face_name directly, and use
12592 the fact that merge_face_vectors does not alter its FROM argument.
12593
125942008-02-01 Jason Rumney <jasonr@gnu.org>
12595
12596 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12597 input in the default locale. Handle non-Unicode multibyte input.
12598
125992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12600
12601 * fontset.c (reorder_font_vector): Exclude nil elements from the
12602 font group. Don't try multiple fonts.
12603 (fontset_font): Adjust for the above change.
12604 (Finternal_char_font): Return nil if the found font doesn't
12605 contain the character ch.
12606
12607 * Makefile.in (lisp, shortlisp): Add cham.el.
12608
126092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12610
12611 * font.h (FONTP): Make it return 1 also for a font-object.
12612
12613 * .gdbinit (xfontset): New function.
12614
12615 * font.c (font_find_for_lface): Check if the character C is
12616 supported or not only for the first font.
12617
12618 * fontset.c (reorder_font_vector): Fix typo.
12619 (fontset_find_font): Don't add a font-spec specifying a script.
12620 Use 0 (not Qt) for the indication of empty font-group. Change the
12621 format of RFONT-DEF. Return Qt if no font in the font-group
12622 support the character.
12623 (fontset_font): Adjust for the above change. If no font was
12624 found the character, remember that.
12625 (face_for_char): Adjust for the change of RFONT-DEF.
12626 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12627 no font for the target.
12628 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12629
126302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12631
12632 * font.c (font_load_for_face): Handle the case that the font in
12633 face->lface is a string.
12634
126352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12636
12637 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12638
126392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12640
12641 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12642 Fix previous change. If the frame is not on a window system,
12643 signal an error.
12644
126452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12646
12647 * coding.c (decode_coding_object, encode_coding_object): Adjust
12648 marker positions after conversion.
12649
12650 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12651
126522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12653
12654 * font.c (font_find_for_lface): Fix the handling of the return
12655 value of font_has_char.
12656 (Ffont_shape_text): Fix previous change.
12657
12658 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12659 (fontset_ref_and_range): Delete it.
12660 (fontset_find_font): Call char_table_ref_and_range instead of
12661 FONTSET_REF_AND_RANGE.
12662 (make_fontset): Don't setup font groups of Latin here.
12663 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12664 (new_fontset_from_font): Make the specified font the default for
12665 all Latin characters.
12666
126672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12668
12669 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12670 is on a window system before accessing the fontset of the frame.
12671
126722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12673
12674 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12675
12676 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12677 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12678
12679 * font.c (Ffont_shape_text): If the font driver doesn't have a
12680 shaper function, make zero-width glyphs to have at least one-pixel
12681 width. Fix setting of `to' field of glyphs.
12682
126832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12684
12685 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12686 glyphs.
12687
12688 * font.h (struct font_driver): Improve docstring of member `shape'.
12689
126902008-02-01 Kenichi Handa <handa@m17n.org>
12691
12692 * composite.c (syms_of_composite): Fix docstring of
12693 auto-composition-function.
12694
12695 * font.h (LGLYPH_SIZE): New macro.
12696
12697 * font.c (Ffont_fill_gstring): Stop filling when a character not
12698 supported by the font is found.
12699 (Ffont_shape_text): When a shape callback function returns nil,
12700 try at most two more times with larger gstring.
12701 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12702
12703 * xdisp.c (handle_auto_composed_prop): Change the argument to
12704 auto-composition-function.
12705
12706 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12707 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12708 Lispy glyph and store it in the lgstring.
12709
12710 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12711
12712 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12713
127142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12715
12716 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12717
12718 * fontset.c (Vfont_encoding_charset_alist): New variable.
12719 (syms_of_fontset): DEFVAR it.
12720 (reorder_font_vector, fontset_find_font): Optimize for the case of
12721 no need of reordering.
12722 (face_for_char): Map the charset property by
12723 Vfont_encoding_charset_alist.
12724
127252008-02-01 Jason Rumney <jasonr@gnu.org>
12726
12727 * w32font.c (logfonts_match): Don't check adstyle here.
12728 (font_matches_spec): Check here against physical font instead.
12729 (add_font_entity_to_list): Avoid some substitutions.
12730
12731 * font.c (font_parse_fcname): Default weight and slant to normal.
12732 (font_score): Prefer normal fonts if weight or slant unspecified.
12733 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12734 match freetype scores.
12735
127362008-02-01 Jason Rumney <jasonr@gnu.org>
12737
12738 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12739 font, as it may have been deleted.
12740 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12741 most common hyphenless variation.
12742 (logfonts_match): Check generic family.
12743 (font_matches_spec): Don't check generic family here.
12744 (fill_in_logfont): Set generic family based on adstyle.
12745
12746 * w32font.h (w32font_get_cache): Update declaration.
12747
127482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12749
12750 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12751
12752 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12753 If none of the new drivers are available, call font_update_drivers
12754 with the old drivers.
12755
12756 * w32font.c (w32font_get_cache): Adjust the argument type.
12757
12758 * xfont.c (xfont_get_cache): Adjust the argument type.
12759
12760 * font.h (struct font_driver): Change argument type of get_cache.
12761
12762 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12763
12764 * font.c (Ffont_get): Fix arguments to Fassoc.
12765 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12766 (font_clear_cache): New function.
12767 (font_list_entities, font_matching_entity): Use font_get_cache.
12768 (font_update_drivers): Call font_clear_cache when finishing a driver.
12769
12770 * fontset.c (fontset_find_font): Fix previous change.
12771
127722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12773
12774 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12775 dpyinfo->font_table.
12776 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12777 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12778
12779 * font.c (font_at): Handle the case that the arg C is negative.
12780 Handle the unibyte case.
12781 (Ffont_at): Call font_at with the arg C -1.
12782
12783 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12784 the position here, and call font_at with the arg C -1.
12785 Don't check the range of the existing composition at the point.
12786
127872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12788
12789 * fontset.c (fontset_add): New args charset_id and family.
12790 Change caller.
12791 (load_font_get_repertory, fontset_find_font): Assume that
12792 font_spec is always a font-spec object.
12793 (Fset_fontset_font): Always store a font-spec object in a fontset.
12794
12795 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12796 instead of get_property_and_range.
12797
127982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12799
12800 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12801 (xftfont_open): Don't keep locking face.
12802 (xftfont_close): Don't unlock face.
12803 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12804
12805 * fontset.c (fontset_find_font): Don't prefer a font of
12806 supplementary charset.
12807
128082008-02-01 Kenichi Handa <handa@m17n.org>
12809
12810 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12811 script, langsys_tag to langsys, new member script.
12812 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12813 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12814 listing to the script specified in that property. Fix arg to
12815 OTF_check_features.
12816
128172008-02-01 Jason Rumney <jasonr@gnu.org>
12818
12819 * w32font.h: New file.
12820
12821 * w32font.c: Include it.
12822 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12823 (w32font_open): Set owning_frame.
12824 (w32font_text_extents): Use owning_frame.
12825 (struct font_callback_data): Add opentype_only field.
12826 (add_font_entity_to_list): Use it to filter fonts.
12827 Don't check against full name.
12828 (w32font_list_internal): New function.
12829 (w32font_list): Use it.
12830 (w32font_match_internal): New function.
12831 (w32font_match): Use it.
12832 (w32font_open_internal): New function.
12833 (w32font_open): Use it.
12834 (w32font_get_cache, w32font_close, w32font_has_char)
12835 (w32font_encode_char, w32font_text_extents, w32font_draw):
12836 Make non-static.
12837
12838 * makefile.w32-in (w32font.o): Depend on w32font.h.
12839
128402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12841
12842 * charset.c (Fdefine_charset_internal): Record a supplementary
12843 charset at the tail of Vcharset_order_list.
12844
12845 * font.c (Ffont_shape_text): Fix the return value.
12846
12847 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12848
12849 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12850
128512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12852
12853 * ftfont.c (struct OpenTypeSpec): New struct.
12854 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12855 (ftfont_get_open_type_spec): New function.
12856 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12857
12858 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12859
128602008-02-01 Jason Rumney <jasonr@gnu.org>
12861
12862 * w32font.c (add_font_entity_to_list): Compare only the beginning
12863 of full name.
12864
128652008-02-01 Kenichi Handa <handa@m17n.org>
12866
12867 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12868 Never return HANDLED_RECOMPUTE_PROPS.
12869
128702008-02-01 Kenichi Handa <handa@m17n.org>
12871
12872 * font.c (font_gstring_produce): Delete it.
12873
12874 * composite.h (COMPOSITION_METHOD):
12875 Handle COMPOSITION_WITH_GLYPH_STRING.
12876
128772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12878
12879 * xfont.c (Qx): Delete.
12880 (syms_of_xfont): Don't initialize Qx.
12881
12882 * composite.h (enum composition_method):
12883 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12884
128852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12886
12887 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12888 (choose_face_font): Accept new form of font-spec.
12889
12890 * frame.h (font_driver_list): Declare it unconditionally.
12891 (struct frame): Define members font_driver_list and font_data_list
12892 unconditionally.
12893
12894 * fontset.c: Include "font.h" unconditionally.
12895 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12896 (Fset_fontset_font): Accept a font-spec object.
12897
12898 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12899 PIXEL_SIZE part a wild card.
12900
12901 * dispextern.h (struct glyph_string): Define members clip and
12902 num_clips unconditionally.
12903 (struct face): Define members font_info and extra unconditionally.
12904
12905 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12906 ftfont_info only when HAVE_LIBOTF is defined.
12907
129082008-02-01 Andreas Schwab <schwab@suse.de>
12909
12910 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12911 and end.
12912
129132008-02-01 Jason Rumney <jasonr@gnu.org>
12914
12915 * w32font.c (w32font_driver): Add new fields.
12916
129172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12918
12919 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12920 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12921 (LIBES): Add @M17N_FLT_CFLAGS@.
12922
12923 * composite.c (compose_text): Don't treat the new style
12924 composition specially.
12925
12926 * emacs.c (main): Call syms_of_font unconditionally.
12927
12928 * font.h (FONT_ENTITY_NOT_LOADABLE)
12929 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12930 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12931 (struct font_driver): New member shape.
12932 (font_registry_charsets): Extern it.
12933 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12934 (font_otf_capability, font_drive_otf): Delete their externs.
12935
12936 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12937 (font_charset_alist, font_registry_charsets): Move from xfont.c
12938 and rename.
12939 (font_prop_validate_otf): New function.
12940 (font_property_table): Register it for QCotf.
12941 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12942 (font_drive_otf): Delete.
12943 (font_prepare_composition): New arg F. Adjust for the change of
12944 lispy gstring.
12945 (font_find_for_lface): New arg C.
12946 (font_load_for_face): Adjust for the change of font_find_for_lface.
12947 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12948 lispy gstring.
12949 (Ffont_shape_text): New function.
12950 (Fopen_font): If the font size is not given, use 12-pixel.
12951 (Ffont_at): New arg STRING.
12952 (syms_of_font): Initalize font_charset_alist.
12953 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12954 conditionally.
12955
12956 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12957 fonts of the same font-spec. Change the format of RFONT-DEF.
12958 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12959 Adjust for the change of RFONT-DEF.
12960 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12961
12962 * ftfont.h: New file.
12963
12964 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12965 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12966 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12967 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12968 font_otf_capability and font_drive_otf, set ftfont_shape.
12969 (ftfont_list): Adjust for the change of :otf property value.
12970 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12971 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12972 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12973 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12974 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12975 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12976
12977 * w32term.c (x_draw_composite_glyph_string_foreground):
12978 Adjust for the change of lispy gstring.
12979
12980 * xdisp.c (handle_composition_prop): Adjust for the change of
12981 lispy gstring. Call a function for auto-composition with the
12982 third arg it->window.
12983 (fill_composite_glyph_string): Adjust for the change of lispy string.
12984 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12985
12986 * xfaces.c (set_font_frame_param): Adjust for the change of
12987 font_find_for_lface.
12988
12989 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12990 (xfont_registry_charsets): Likewise. Change caller.
12991 (syms_of_xfont): Don't handle x_font_charset_alist.
12992
12993 * xftfont.c: Include "ftfont.h".
12994 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12995 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12996 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12997 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12998 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12999 Set xftfont_driver.shape to xftfont_shape.
13000
13001 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13002 the change of lispy gstring.
13003
130042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13005
13006 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13007
130082008-02-01 Jason Rumney <jasonr@gnu.org>
13009
13010 * w32font.c (w32font_draw): Fill background manually.
13011
130122008-02-01 Jason Rumney <jasonr@gnu.org>
13013
13014 * font.c (Qfontp): Remove unused symbol.
13015 (QCantialias): New symbol.
13016 (syms_of_font): Define it.
13017 (font_property_table): Set a validator for QCantialias.
13018
13019 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13020 Define if not already.
13021 (QCfamily): Share with xfaces.c.
13022 (Qstandard, Qsubpixel, Qnatural): New symbols.
13023 (syms_of_w32font): Define them. Don't define QCfamily here.
13024 (w32_antialias_type, lispy_antialias_type): New functions.
13025 (w32_enumfont_pattern_entity): New arg requested_font.
13026 Set antialias parameter if non-default was requested.
13027 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13028
130292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13030
13031 * lread.c (read1): Undo the previous change.
13032
130332008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13034
13035 * frame.c (Fdelete_frame): Call font_update_drivers only when
13036 USE_FONT_BACKEND is defined.
13037
130382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13039
13040 * font.h (struct font_bitmap): New member bits_per_pixel.
13041 (struct font_driver): New members start_for_frame and end_for_frame.
13042 (struct font_data_list): New struct.
13043 (font_put_frame_data, font_get_frame_data): Extern them.
13044
13045 * frame.h (struct frame): New member font_data_list.
13046
13047 * font.c (font_update_drivers): Call driver->start_for_frame and
13048 driver->end_for_frame at proper timings.
13049 (font_put_frame_data, font_get_frame_data): New functions.
13050 (Ffont_spec): Add usage in the docstring.
13051
13052 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13053 (Fdelete_frame): Call font_update_drivers.
13054
13055 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13056 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13057 (xftfont_get_xft_draw): New function.
13058 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13059 (xftfont_end_for_frame): New function.
13060 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13061
13062 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13063 Change argument. Cache GCs in the per-frame data.
13064 (struct ftxfont_frame_data): New struct.
13065 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13066 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13067 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13068 (ftxfont_end_for_frame): New function.
13069 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13070
13071 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13072
130732008-02-01 Kenichi Handa <handa@m17n.org>
13074
13075 * xselect.c (Vselection_coding_system)
13076 (Vnext_selection_coding_system): Delete them.
13077 (syms_of_xselect): Don't declare selection-coding-system and
13078 next-selection-coding-system. They are declared in select.el.
13079
130802008-02-01 Jason Rumney <jasonr@gnu.org>
13081
13082 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13083
13084 * w32fns.c: Include imm.h.
13085 (get_composition_string_fn, get_ime_context_fn): New optional
13086 system functions.
13087 (globals_of_w32fns): Load them from imm32.dll.
13088 (ignore_ime_char): New flag.
13089 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13090 WM_IME_ENDCOMPOSITION messages.
13091
13092 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13093 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13094
130952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13096
13097 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13098 (READCHAR_REPORT_MULTIBYTE): New macro.
13099 (readchar): New 2nd arg MULTIBYTE.
13100 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13101 Make symbol's name multibyte according to the multibyteness of the
13102 source.
13103
131042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13105
13106 * xfaces.c (face_for_overlay_string): Call lookup_face with
13107 correct arguments (fix of synching with the trunk).
13108
131092008-02-01 Kenichi Handa <handa@m17n.org>
13110
13111 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13112 (font_prop_validate_non_neg, font_prop_validate_spacing):
13113 Delete argument prop_index.
13114 (font_property_table): Change arguments to validater. Change Callers.
13115 (font_lispy_object): Delete.
13116 (font_at): Use font_find_object instead fo font_lispy_object.
13117
131182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13119
13120 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13121 and file names.
13122
131232008-02-01 Jason Rumney <jasonr@gnu.org>
13124
13125 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13126 (font_matches_spec): Remove debug output.
13127 (add_font_entity_to_list): Avoid using substituted fonts.
13128
131292008-02-01 Jason Rumney <jasonr@gnu.org>
13130
13131 * doc.c (Fsnarf_documentation):
13132 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13133
131342008-02-01 Miles Bader <miles@gnu.org>
13135
13136 * dispextern.h (struct glyph_row): Only define "clip" field if
13137 HAVE_WINDOW_SYSTEM is defined.
13138
131392008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13140
13141 Fix up multi-tty merge.
13142
13143 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13144 and indentation.
13145
13146 * xfaces.c (free_realized_face, clear_face_gcs):
13147 Include font_done_for_face in the input_blocked section, just in case.
13148
13149 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13150 (get_char_face_and_encoding): Undo last change and remove the *other*
13151 duplicate definition (i.e. keep the one that's better scoped and that
13152 includes code for the font-backend).
13153
13154 * terminal.c (create_terminal): Default keyboard_coding to
13155 `no-conversion' and terminal_coding to `undecided'.
13156
13157 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13158
13159 * fontset.c (free_realized_fontsets): Check that the table entry does
13160 contain a fontset before trying to compare it to `base'.
13161
13162 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13163 syms_of_charset, and syms_of_coding earlier because init_window_once
13164 now needs Vcoding_system_hash_table to be setup.
13165
13166 * coding.h (default_buffer_file_coding): Remove.
13167
13168 * coding.c (default_buffer_file_coding): Remove.
13169 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13170 than ->symbol, and use the terminal-local coding system.
13171 (syms_of_coding): Don't setup the coding-systems that are not
13172 terminal-local.
13173 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13174
13175 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13176 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13177
13178 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13179 in chartab.c and were re-added here by mistake.
13180 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13181
13182 * doc.c (Fsnarf_documentation):
13183 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13184 src to etc.
13185
13186 * ChangeLog.10: Add mistakenly removed entry.
13187
131882008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13189
13190 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13191
131922008-02-01 Miles Bader <miles@gnu.org>
13193
13194 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13195 Add extra args to FACE_FOR_CHAR.
13196
131972008-02-01 Kenichi Handa <handa@m17n.org>
13198
13199 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13200 in sequence.
13201
13202 * chartab.c (map_sub_char_table, map_char_table): If the range
13203 contains just one character, call the function with that character
13204 even if the depth is not 3.
13205
132062008-02-01 Jason Rumney <jasonr@gnu.org>
13207
13208 * w32font.c (w32font_text_extents): Calculate metrics for the
13209 whole string.
13210
132112008-02-01 Jason Rumney <jasonr@gnu.org>
13212
13213 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13214
132152008-02-01 Jason Rumney <jasonr@gnu.org>
13216
13217 * w32term.c (x_set_glyph_string_clipping): Use
13218 get_glyph_string_clip_rects.
13219 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13220 Adjust for the change of struct glyph_string.
13221
13222 * w32font.c (w32font_draw): Do clipping here.
13223
132242008-02-01 Kenichi Handa <handa@m17n.org>
13225
13226 * xftfont.c (xftfont_draw): Adjust for the change of struct
13227 glyph_string.
13228
13229 * xterm.c (x_set_glyph_string_clipping): Use
13230 get_glyph_string_clip_rects.
13231 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13232 Adjust for the change of struct glyph_string.
13233
13234 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13235 the resulting clip(s}.
13236 (expose_overlaps): Add arg r. Change callers. Set it to
13237 row->clip temporarily.
13238 (expose_window): Redraw rows overlapping the exposed area.
13239
13240 * dispextern.h (struct glyph_row): New member clip.
13241 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13242 clip_height, new member clip, and num_clips.
13243
132442008-02-01 Kenichi Handa <handa@m17n.org>
13245
13246 * data.c (Fchar_or_string_p): Fix docstring.
13247
132482008-02-01 Kenichi Handa <handa@m17n.org>
13249
13250 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13251 create a temporary XftDraw object.
13252
132532008-02-01 Kenichi Handa <handa@m17n.org>
13254
13255 * font.c (Ffontp): Fix docstring.
13256
13257 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13258 strong evidence of ISO-2022.
13259
132602008-02-01 Kenichi Handa <handa@m17n.org>
13261
13262 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13263 SYNTAX_ENTRY_FOLLOW_PARENT.
13264
132652008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13266
13267 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13268 its type.
13269 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13270 Update to the new type of weak_hash_tables and next_weak.
13271
13272 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13273 a plain C pointer to Lisp_Hash_Table.
13274
13275 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13276 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13277 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13278 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13279 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13280 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13281 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13282 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13283 (GC_EQ): Remove since they've been identical to their non-GC_
13284 alter-egos ever since the markbit was eradicated.
13285
13286 * alloc.c:
13287 * buffer.c:
13288 * buffer.h:
13289 * data.c:
13290 * fileio.c:
13291 * filelock.c:
13292 * fns.c:
13293 * frame.h:
13294 * lisp.h:
13295 * macterm.c:
13296 * print.c:
13297 * process.c:
13298 * w32fns.c:
13299 * w32menu.c:
13300 * w32term.c:
13301 * xfns.c:
13302 * xmenu.c:
13303 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13304
133052008-02-01 Kenichi Handa <handa@m17n.org>
13306
13307 * chartab.c (map_sub_char_table): Make it work for the top-level
13308 char-table. Fix handling of parent char-table.
13309 (map_char_table): Adjust for the above change.
13310
133112008-02-01 Jason Rumney <jasonr@gnu.org>
13312
13313 * w32font.c (Qgdi): Rename from Qw32.
13314
133152008-02-01 Jason Rumney <jasonr@gnu.org>
13316
13317 * w32bdf.c (get_quoted_string): Make function static.
13318
133192008-02-01 Kenichi Handa <handa@m17n.org>
13320
13321 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13322 bigger ascent and descent than those of the font, use them as
13323 font's ascent and descent.
13324
133252008-02-01 Kenichi Handa <handa@m17n.org>
13326
13327 * Makefile.in (${lispsource}international/charprop.el): Move this
13328 target within "#ifdef HAVE_UNIDATA" and "#endif".
13329
133302008-02-01 Kenichi Handa <handa@m17n.org>
13331
13332 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13333 (shortlisp): Add ../lisp/language/tai-viet.el.
13334
133352008-02-01 Ulrich Mueller <ulm@gentoo.org>
13336
13337 * Makefile.in (${lispsource}international/charprop.el): Depend on
13338 temacs${EXEEXT}.
13339
133402008-02-01 Jason Rumney <jasonr@gnu.org>
13341
13342 * w32font.c (w32font_close): Delete the GDI font object.
13343
13344 * w32menu.c: Include character.h.
13345
13346 * w32proc.c: Likewise.
13347
13348 * w32select.c: Likewise.
13349
13350 * makefile.w32-in (w32proc.o): Depend on character.h.
13351
133522008-02-01 Jason Rumney <jasonr@gnu.org>
13353
13354 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13355
13356 * w32menu.c (syms_of_w32menu): Likewise.
13357
13358 * w32proc.c (syms_of_ntproc): Likewise.
13359
13360 * w32select.c (syms_of_w32select): Likewise.
13361
13362 * w32term.c (syms_of_w32term): Likewise.
13363
133642008-02-01 Jason Rumney <jasonr@gnu.org>
13365
13366 * w32font.c (w32font_draw): Delete brush after using it.
13367
133682008-02-01 Jason Rumney <jasonr@gnu.org>
13369
13370 * w32font.c (w32font_open): Don't set font_idx.
13371 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13372 to font settings.
13373 (w32font_draw): Fill background explicitly.
13374
133752008-02-01 Jason Rumney <jasonr@gnu.org>
13376
13377 * w32term.c (w32_initialize): Don't call w32font_initialize.
13378
13379 * w32font.c (w32font_info): Remove subranges.
13380 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13381 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13382 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13383 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13384 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13385 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13386 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13387 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13388 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13389 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13390 New symbols.
13391 (font_callback_data): New struct.
13392 (w32font_list, w32font_match): Use it.
13393 (w32font_open): Don't populate subranges.
13394 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13395 (w32font_encode_char): Always return unicode code-point as-is.
13396 (w32font_text_extents): Supply a transformation matrix to
13397 GetGlyphOutline. Never look up by glyph index. Avoid looping
13398 twice. Use unicode version of GetTexExtentPoint32 instead of
13399 glyph index version.
13400 (set_fonts_frame): Remove.
13401 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13402 set frame parameter. Use backward compatible fake foundries.
13403 Save generic family in extra slot under QCfamily. Make width slot
13404 constant. Save QCspacing value. Save list of scripts instead of
13405 binary subranges.
13406 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13407 (add_font_entity_to_list): Use font_callback_data struct. Filter
13408 unwanted fonts.
13409 (add_one_font_entity_to_list): Use font_callback_data struct.
13410 (w32_registry): Default to iso10646_1.
13411 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13412 string font registries. Don't fill in font name if it is a generic
13413 family name, fill family instead. Use spacing, family and script
13414 extra info to fill pitch, family and charset fields.
13415 (list_all_matching_fonts): Use font_callback_data struct.
13416 (unicode_range_for_char): Remove.
13417 (font_supported_scripts): New function.
13418 (w32font_initialize): Remove.
13419 (syms_of_w32font): Update which symbols are defined.
13420
134212008-02-01 Jason Rumney <jasonr@gnu.org>
13422
13423 * font.c (font_pixel_size): Reverse assq_no_quit args.
13424
13425 * w32term.h (FONT_WIDTH): Report max width, not average.
13426 (FONT_MAX_WIDTH): Remove.
13427 (FONT_AVG_WIDTH): New macro.
13428
13429 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13430 redefinition of FONT_WIDTH.
13431
13432 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13433 (w32_cache_char_metrics): Use FONT_WIDTH.
13434
13435 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13436
134372008-02-01 Jason Rumney <jasonr@gnu.org>
13438
13439 * w32font.c (w32font_open): Make lfHeight negative.
13440
13441 * w32fns.c (x_default_font_parameter): Use new style font name.
13442 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13443
134442008-02-01 Jason Rumney <jasonr@gnu.org>
13445
13446 * w32font.c (QCsubranges): New symbol.
13447 (w32font_open, w32font_has_char): Get subranges from subproperty
13448 of extra.
13449 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13450 (syms_of_w32font): Define :subranges symbol.
13451
13452 * font.c (font_put_extra): Expose externally.
13453
13454 * font.h (font_put_extra): Move declaration from font.c.
13455
13456 * font.c (Ffont_get): Use font driver to determine otf capability.
13457 (adjust_anchor): Check if driver defines anchor_point before using.
13458
13459 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13460 (w32font_draw): Use options.
13461 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13462 Fix detection of truetype fonts.
13463 (registry_to_w32_charset): Handle charsets other than iso8859-1
13464 expressed as lisp symbols.
13465 (w32_registry): Express charset as lisp symbol.
13466 (fill_in_logfont): Reverse pixel and point height logic.
13467 Don't set width here. Set quality to default.
13468
13469 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13470 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13471
13472 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13473 Remove redundant loop and allocation.
13474
13475 * makefile.w32-in (font.o, w32font.o): New objects.
13476 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13477 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13478
13479 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13480 STORE_XCHARB a valid l-value.
13481
13482 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13483 calculations for non-Truetype fonts.
13484 (x_draw_glyph_string): Sync with xterm.c.
13485 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13486 Remove redundant code.
13487 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13488
13489 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13490 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13491
13492 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13493 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13494
13495 * w32font.c: New file for w32 font backend.
13496
134972008-02-01 Kenichi Handa <handa@m17n.org>
13498
13499 * term.c: Don't include "buffer.h" twice.
13500
135012008-02-01 Kenichi Handa <handa@m17n.org>
13502
13503 * character.c (Funibyte_string): New function.
13504 (syms_of_character): Defsubr it.
13505
135062008-02-01 Jason Rumney <jasonr@gnu.org>
13507
13508 * w32term.c [USE_FONT_BACKEND]:
13509 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13510 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13511 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13512 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13513 (x_free_frame_resources): Sync with xterm.c.
13514
135152008-02-01 Andreas Schwab <schwab@suse.de>
13516
13517 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13518 char-table size.
13519
135202008-02-01 Kenichi Handa <handa@m17n.org>
13521
13522 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13523
135242008-02-01 Kenichi Handa <handa@m17n.org>
13525
13526 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13527 font_otf_gpos, add font_drive_otf.
13528
13529 * fontset.c (fontset_find_font): Pay attention to font size
13530 specified for a font.
13531 (reorder_font_vector): Check contents of font_def.
13532
13533 * font.c (struct otf_list): Delete it.
13534 (otf_list): Make it a lisp variable.
13535 (otf_open): Use lispy otf_list.
13536 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13537 (check_otf_features): New function.
13538 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13539 New functions.
13540 (font_drive_otf): New function merging font_otf_gsub and
13541 font_otf_gpos.
13542 (font_open_for_lface): New arg spec. Change argument order.
13543 (font_load_for_face): Adjust for the change of font_open_for_lface.
13544 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13545 Ffont_otf_gpos.
13546 (syms_of_font): Staticpro otf_list. Delete defsubr of
13547 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13548
13549 * xfaces.c (set_font_frame_param): Adjust for the change of
13550 font_open_for_lface.
13551
13552 * font.h (font_open_for_lface): Adjust prototype.
13553 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13554 member otf_drive.
13555 (font_otf_gsub, font_otf_gpos): Delete externs.
13556 (font_drive_otf): Extern it.
13557
135582008-02-01 Kenichi Handa <handa@m17n.org>
13559
13560 * font.c (font_at): If the window W is not on a window system,
13561 return Qnil.
13562
13563 * coding.c (produce_chars, encode_coding): Don't call
13564 insert_from_gap if no characters to produce.
13565
135662008-02-01 Kenichi Handa <handa@m17n.org>
13567
13568 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13569 Fclear_face_cache.
13570
13571 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13572
135732008-02-01 Miles Bader <miles@gnu.org>
13574
13575 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13576 Parse "--disable-font-backend" option.
13577 (standard_args): Add "--disable-font-backend" option.
13578
135792008-02-01 Kenichi Handa <handa@m17n.org>
13580
13581 * fontset.c (fontset_find_font): New function.
13582 (fontset_font): Use fontset_find_font.
13583 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13584 Register the specified font for all Latin characters.
13585 (new_fontset_from_font): Register the specified font for all Latin
13586 characters.
13587 (dump_fontset): For a realized fontset, include the base fontset
13588 name in the returned vector.
13589
135902008-02-01 Kenichi Handa <handa@m17n.org>
13591
13592 * character.h (CHAR_STRING): Cast C to unsigned on calling
13593 char_string.
13594
13595 * character.c (char_string): Type of arg C changed to unsigned.
13596 Signal an error if C is an invalid character code.
13597
13598 * editfns.c (general_insert_function, Fchar_to_string):
13599 Use CHARACTERP, not INTEGERP.
13600
136012008-02-01 Kenichi Handa <handa@m17n.org>
13602
13603 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13604 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13605
13606 * regex.c (analyse_first): Fix for multibyte characters in "case
13607 charset:" and "case categoryspec:".
13608
136092008-02-01 Andreas Schwab <schwab@suse.de>
13610
13611 * Makefile.in (LIBES): Move standard libraries to the end.
13612
136132008-02-01 Kenichi Handa <handa@m17n.org>
13614
13615 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13616 nonzero, don't shrink the buffer nextb.
13617
13618 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13619
13620 * coding.c (coding_alloc_by_making_gap): New arg offset.
13621 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13622 offset.
13623 (decode_coding_iso_2022): Update coding->safe_charsets.
13624 (decode_coding_gap): Temporarily set
13625 current_buffer->text->inhibit_shrinking to 1.
13626
136272008-02-01 Kenichi Handa <handa@m17n.org>
13628
13629 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13630 indexing into elements of s->cmp and s->char2b.
13631
136322008-02-01 Juanma Barranquero <lekktu@gmail.com>
13633
13634 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13635
136362008-02-01 Kenichi Handa <handa@m17n.org>
13637
13638 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13639 target_multibyte instead of multibyte.
13640 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13641 (bcmp_translate): Change the argument name from multibyte to
13642 target_multibyte.
13643
136442008-02-01 Kenichi Handa <handa@m17n.org>
13645
13646 These changes are to compile a regexp into a pattern that can be
13647 used both for multibyte and unibyte targets.
13648
13649 * Makefile.in (search.o): Depend on charset.h.
13650
13651 * character.c (multibyte_char_to_unibyte_safe): New function.
13652
13653 * search.c: Include "charset.h".
13654 (compile_pattern_1): Delete argument multibyte. Don't set
13655 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13656 (compile_pattern): Don't compare cp->buf.target_multibyte.
13657 Compare cp->buf.charset_unibyte.
13658 (compile_pattern): Set cp->buf.target_multibyte.
13659
13660 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13661
13662 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13663
13664 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13665 multibyte. Change callers.
13666 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13667 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13668 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13669 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13670 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13671 (regex_compile): Make the compiled pattern usable both for
13672 multibyte and unibyte targets.
13673 (analyse_first): Make the fastmap usable both for multibyte and
13674 unibyte targets.
13675 (TRANSLATE_VIA_MULTIBYTE): Delete.
13676 (re_match_2_internal): Pay attention to the case that the
13677 multibyteness of bufp and target may be different.
13678
136792008-02-01 Kenichi Handa <handa@m17n.org>
13680
13681 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13682 empty box occupy at least one column width.
13683
136842008-02-01 Miles Bader <miles@gnu.org>
13685
13686 * Makefile.in: Remove redundant HAVE_XFT clause.
13687
136882008-02-01 Kenichi Handa <handa@m17n.org>
13689
13690 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13691
136922008-02-01 Kenichi Handa <handa@m17n.org>
13693
13694 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13695 being nil.
13696
136972008-02-01 Kenichi Handa <handa@m17n.org>
13698
13699 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13700
137012008-02-01 Kenichi Handa <handa@m17n.org>
13702
13703 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13704
137052008-02-01 Kenichi Handa <handa@m17n.org>
13706
13707 * search.c (simple_search): Fix previous change.
13708
137092008-02-01 Kenichi Handa <handa@m17n.org>
13710
13711 * xftfont.c (ftfont_font_format): Extern declaration.
13712
13713 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13714
13715 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13716 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13717
13718 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13719 (ftfont_font_format): Fix previous change.
13720
13721 * font.h (Ffont_xlfd_name): EXFUN it.
13722
13723 * font.c (font_parse_xlfd): Fix the array size of `f'.
13724 (register_font_driver): Use EQ to compare driver->type.
13725
13726 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13727 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13728 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13729
137302008-02-01 Kenichi Handa <handa@m17n.org>
13731
13732 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13733 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13734
137352008-02-01 Kenichi Handa <handa@m17n.org>
13736
13737 * xfont.c (xfont_open): Set font->format.
13738
13739 * xftfont.c (xftfont_open): Set font->format.
13740
13741 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13742 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13743 (ftfont_open): Set font->format.
13744 (ftfont_font_format): New function.
13745
13746 * font.h (struct font): New member format.
13747
13748 * font.c (Qopentype): New variable.
13749 (syms_of_font): Defsym it.
13750 (Fquery_font): Change the format of the last element of the return
13751 value.
13752
137532008-02-01 Kenichi Handa <handa@m17n.org>
13754
13755 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13756 last resort.
13757
137582008-02-01 Kenichi Handa <handa@m17n.org>
13759
13760 * coding.c (detect_coding_charset): Fix detection of multi-byte
13761 charset.
13762
137632008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13764
13765 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13766
137672008-02-01 Kenichi Handa <handa@m17n.org>
13768
13769 * xdisp.c (get_next_display_element): Set it->face_id for the
13770 first component of a composition.
13771 (x_produce_glyphs): Check if the font is changed or not for composition.
13772
137732008-02-01 Kenichi Handa <handa@m17n.org>
13774
13775 * fontset.c (Qlatin): New variable.
13776 (syms_of_fontset): Define it as a lisp symbol.
13777 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13778
137792008-02-01 Kenichi Handa <handa@m17n.org>
13780
13781 * font.c (font_unparse_fcname): Pay attention to the case that
13782 some of font property is a null string.
13783
137842008-02-01 Kenichi Handa <handa@m17n.org>
13785
13786 * term.c: Include "composite.h".
13787 (encode_terminal_code): Output all components of composition.
13788 Check the size of encode_terminal_src.
13789 (produce_glyphs): For composition, call produce_composite_glyph.
13790 (append_composite_glyph, produce_composite_glyph): New functions.
13791
13792 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13793 is not found, get font_info from the current ascii face.
13794
137952008-02-01 Kenichi Handa <handa@m17n.org>
13796
13797 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13798 buffer-file-name to Qnil before calling insert_from_buffer.
13799
13800 * font.c (font_unparse_fcname): Pay attention to the case that
13801 foundry is a null string.
13802
138032008-02-01 Kenichi Handa <handa@m17n.org>
13804
13805 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13806
13807 * font.c (Qunicode_sip): New variable.
13808 (syms_of_font): Declare it as a Lisp symbol.
13809
13810 * font.h (Qunicode_sip): Extern it.
13811
138122008-02-01 Kenichi Handa <handa@m17n.org>
13813
13814 * composite.c (get_composition_id): Pay attention to TAB component.
13815
13816 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13817 TAB. Adjust for the change of s->char2b which always points to
13818 the first element of allocated memory.
13819
13820 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13821
13822 * xdisp.c (handle_composition_prop): Set it->c to the first
13823 non-TAB component.
13824 (fill_composite_glyph_string): Change argument.
13825 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13826 (x_produce_glyphs): Fix handling of left/right padding.
13827
138282008-02-01 Kenichi Handa <handa@m17n.org>
13829
13830 * coding.c (detect_coding_system): Fix for handling off
13831 inhibit_iso_escape_detection. Fix for the case that no coding
13832 system is defined for a specific coding category.
13833
138342008-02-01 Kenichi Handa <handa@m17n.org>
13835
13836 * font.c (font_matching_entity): Delete unused local var.
13837
13838 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13839 opening a font.
13840
13841 * fileio.c (Finsert_file_contents): On recovering a file, assume
13842 Unix-like eol.
13843 (choose_write_coding_system): On auto-saving a file, force
13844 Unix-like eol.
13845
13846 * coding.c (setup_coding_system): Fix setting of
13847 coding->common_flags based on eol_type.
13848 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13849 inherit from it.
13850
138512008-02-01 Kenichi Handa <handa@m17n.org>
13852
13853 * alloc.c (NSTATICS): Increas to 0x600.
13854
138552008-02-01 Kenichi Handa <handa@m17n.org>
13856
13857 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13858 (ftfont_list): Don't check :name property.
13859 (ftfont_match): New function.
13860 (ftfont_pattern_entity): If the pattern doesn't contain
13861 FC_SPACING, don't assume FC_MONO.
13862
13863 * font.h (struct font_driver): New member `match'.
13864 (font_update_drivers): Adjust prototype.
13865
13866 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13867 property of FONT.
13868 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13869 them unconditionally.
13870 (font_matching_entity): New function.
13871 (font_open_by_name): Try font_matching_entity if exact match is
13872 not found.
13873 (font_update_drivers): Delete the arg FONT. Return a list of
13874 actually used backends. Don't free faces, font caches here.
13875 Don't store data in frame parameters. Don't call x_set_font.
13876 (Ffont_spec): Store :name property as is.
13877 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13878 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13879 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13880 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13881 Call font->driver->otf_gsub instead of font_otf_gsub.
13882
13883 * frame.c (x_set_font_backend): Do more works that were done in
13884 font_update_drivers before.
13885
13886 * xfont.c (xfont_match): New function.
13887 (xfont_driver): Set xfont_driver.match to xfont_match.
13888 (xfont_draw): Set font in GC if necessary.
13889
13890 * ftxfont.c (ftxfont_match): New function.
13891 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13892
13893 * xftfont.c (xftfont_match): New function.
13894 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13895
138962008-02-01 Kenichi Handa <handa@m17n.org>
13897
13898 * font.h (struct font): New member scalable.
13899 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13900 (font_otf_gsub): Adjust prototype.
13901
13902 * font.c (font_otf_capability): Fix handling of the default langsys.
13903 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13904 Check the contents of SPEC.
13905 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13906 (check_gstring): New function.
13907 (REPLACEMENT_CHARACTER): New macro.
13908 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13909 glyph codes of GSTRING.
13910 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13911 (font_prepare_composition): Set cmp->glyph_len.
13912 (font_open_entity): Set font->scalable.
13913 (Ffont_get): Handle :otf property.
13914 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13915 functions.
13916 (Fquery_font): Use font->font.full_name.
13917 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13918 Sfont_otf_alternates.
13919
13920 * ftfont.c (ftfont_open): Set font->font.full_name and
13921 font->font.name properly. Fix calculation of font->font.height
13922 and font->min_width.
13923
13924 * ftxfont.c (ftxfont_create_gcs): New function.
13925 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13926 (ftxfont_draw_backgrond): Fix filling region.
13927 (ftxfont_default_fid): New function.
13928 (ftxfont_open): Set xfont->fid to the return value of
13929 ftxfont_default_fid.
13930 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13931 (ftxfont_done_face): Free only GCs that are created by
13932 ftxfont_create_gcs.
13933 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13934
13935 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13936 Clip to src->width, etc (not src->clip_XXX).
13937
13938 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13939 FontBackend frame parameter.
13940
139412008-02-01 Kenichi Handa <handa@m17n.org>
13942
13943 * font.h (struct font_driver_list): New member `on'.
13944 (Fclear_font_cache): EXFUN it.
13945 (font_update_drivers): Extern it.
13946
13947 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13948 (font_list_entities): Check driver_list->on.
13949 (register_font_driver): Initalize `on' member to 0.
13950 (font_update_drivers): New function.
13951 (Fclear_font_cache): Check driver_list->on.
13952
13953 * frame.h (Qfont_backend): Extern it.
13954 (x_set_font_backend): Extern it.
13955
13956 * frame.c (Qfont_backend): New variable.
13957 (frame_parms): New element for font-backend.
13958 (x_set_font_backend): New function.
13959
13960 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13961 FontBackend frame parameter.
13962 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13963 x_set_font_backend.
13964
13965 * xfont.c (xfont_list): Don't try listing by :name property if the
13966 name is not for XLFD.
13967
139682008-02-01 Kenichi Handa <handa@m17n.org>
13969
13970 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13971 (LGLYPH_SET_TO): New macros.
13972 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13973 element of G is vector or not.
13974 (font_at): Extern it.
13975
13976 * font.c: Include window.h.
13977 (font_lispy_object): New function.
13978 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13979 end of valid glyph.
13980 (font_close_object): Fix getting (struct font *).
13981 (font_at): New function.
13982 (Ffont_get): If FONT is a font-object, get entity from it.
13983 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13984 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13985 range check.
13986 (Ffont_at): New function.
13987 (syms_of_font): Defsubr Sfont_at.
13988
13989 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13990 before the entry for Qcomposition.
13991 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13992 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13993 the font in gstring.
13994 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13995 LGLYPH_FORM (g) to detect the end of valid glyph.
13996 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13997 we are composing with gstring.
13998
13999 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14000 Check if adjustment is vector or not.
14001
14002 * Makefile.in (font.o): Make it depends on window.h.
14003
140042008-02-01 Kenichi Handa <handa@m17n.org>
14005
14006 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14007 adjustment is vector or not.
14008
140092008-02-01 Miles Bader <miles@gnu.org>
14010
14011 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14012
140132008-02-01 Kenichi Handa <handa@m17n.org>
14014
14015 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14016 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14017 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14018
14019 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14020 (DEVICE_DELTA): Fix typo.
14021 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14022 LGLYPH format.
14023
14024 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14025 the change of LGLYPH format.
14026
140272008-02-01 Kenichi Handa <handa@m17n.org>
14028
14029 * ftfont.c (ftfont_list): Fix typo.
14030 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14031
140322008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14033
14034 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14035
14036 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14037 xftface_info is non-NULL.
14038
140392008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14040
14041 * ftfont.c (ftfont_list): Move misplaced #endif.
14042
140432008-02-01 Kenichi Handa <handa@m17n.org>
14044
14045 * ftfont.c (ftfont_list): Pay attention to the case that
14046 FC_CAPABILITY is not defined.
14047
140482008-02-01 Kenichi Handa <handa@m17n.org>
14049
14050 * xftfont.c (xftfont_open): Set charset related members to -1.
14051
14052 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14053 QCname.
14054 (ftfont_open): Set charset related members to -1.
14055
14056 * fontset.c (Votf_script_alist): New variable.
14057 (syms_of_fontset): Initialize it.
14058 (fontset_font): Delete unused variable.
14059
14060 * fontset.h (Votf_script_alist): Extern it.
14061
14062 * font.c (font_find_for_lface): Optimize code.
14063
14064 * font.h (font_close_object, font_merge_old_spec): Extern them.
14065
140662008-02-01 Kenichi Handa <handa@m17n.org>
14067
14068 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14069 (syms_of_font): Initialize them.
14070 (font_pixel_size): Allow float value in dpi.
14071 (font_prop_validate_type): Delete.
14072 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14073 Change caller.
14074 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14075 (font_prop_validate_extra): Delete.
14076 (font_prop_validate_spacing): New function.
14077 (font_property_table): Add elements for all known properties.
14078 (get_font_prop_index): Rename from check_font_prop_name. New
14079 argument FROM. Change caller.
14080 (font_prop_validate): Validate all known properties.
14081 (font_put_extra): Delete argument force. Change caller.
14082 (font_expand_wildcards): Make it static. Fix the way of shrinking
14083 the possible range.
14084 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14085 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14086 Change caller.
14087 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14088 (font_parse_fcname): Delete argument merge. Fix parsing of point
14089 size. Don't validate properties values here. Change caller.
14090 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14091 (font_open_by_name): Delete unused variable.
14092 (Ffont_spec): Likewise. Validate property values.
14093 (Ffont_match_p): New function.
14094
14095 * font.h (QCscalable): Extern it.
14096 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14097
14098 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14099
14100 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14101 (xfont_list_pattern): New function.
14102 (xfont_list): Use xfont_list_pattern.
14103
141042008-02-01 Kenichi Handa <handa@m17n.org>
14105
14106 * font.h (Flist_fonts): EXFUN it.
14107
141082008-02-01 Jason Rumney <jasonr@gnu.org>
14109
14110 * w32term.c (w32_initialize): Add back smoothing_type and
14111 smoothing_enabled definitions.
14112
141132008-02-01 Kenichi Handa <handa@m17n.org>
14114
14115 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14116 s->face->font on determining underline position.
14117
141182008-02-01 Kenichi Handa <handa@m17n.org>
14119
14120 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14121 (font_has_char): Accept font-object too.
14122 (font_find_for_lface): Try at first with a size specified in face.
14123
141242008-02-01 Kenichi Handa <handa@m17n.org>
14125
14126 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14127 font_open_by_name.
14128
141292008-02-01 Kenichi Handa <handa@m17n.org>
14130
14131 * font.h (QCspacing, QCdpi): Extern them.
14132 (enum font_spacing): New enum.
14133 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14134
14135 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14136 (QCspacing, QCdpi): New variables.
14137 (syms_of_font): Initialize them.
14138 (font_pixel_size): New function.
14139 (font_put_extra): New function.
14140 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14141 in FONT_EXTRA.
14142 (font_parse_fcname): Handle enumerated values (e.g. bold).
14143 Fix handling font size. Add QCname property that contains only
14144 unknown properties.
14145 (font_score): Change argument. Change caller. Pay attention to
14146 FONT_PIXEL_SIZE_QUANTUM.
14147 (font_sort_entites, font_list_entities, font_find_for_lface)
14148 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14149 (Ffont_spec): Add QCname property that contains only unknown properties.
14150
14151 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14152 include weight in listing pattern, instead check weight of each
14153 listed font. Don't include scalable in pattern. Pay attention to
14154 FONT_PIXEL_SIZE_QUANTUM.
14155
141562008-02-01 Kenichi Handa <handa@m17n.org>
14157
14158 * font.c (font_parse_fcname): Fix parsing of point-size.
14159 (font_unparse_fcname): Produce symbolic names for style properties.
14160 (font_list_entities): Handle float size correctly.
14161 (font_open_by_name): Prefer `normal' property values if the name
14162 doesn't specify them.
14163
14164 * fontset.c (Finternal_char_font): Use font_get_name, not
14165 Ffont_xlfd_name.
14166
14167 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14168 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14169 pattern. Don't force scalable.
14170
14171 * xftfont.c (xftfont_open): For generating a name, start from
14172 96-byte buffer.
14173
141742008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14175
14176 * frame.h (x_new_fontset2): Fix prototype.
14177
141782008-02-01 Kenichi Handa <handa@m17n.org>
14179
14180 * font.h (struct font_driver): Delete member parse_name.
14181 (font_match_p, font_get_spec, font_parse_fcname)
14182 (font_unparse_fcname): Extern them.
14183 (font_get_name): Adjust prototype.
14184
14185 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14186 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14187 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14188 unnecessary checks for weight, slant, and swidth.
14189 (font_parse_fcname): New function.
14190 (font_unparse_fcname): New function.
14191 (font_parse_name): New function.
14192 (font_match_p): New function.
14193 (font_get_name): Change return value to Lisp string.
14194 (font_get_spec): New function.
14195 (Qunspecified, Qignore_defface): Don't extern them.
14196 (font_find_for_lface): Assume that LFACE is fully specified.
14197 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14198 object, use it for FACE.
14199 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14200 driver->parse_name.
14201 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14202
14203 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14204 prototype.
14205
14206 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14207 argument F. Don't call Fnew_fontset. Instead, directly call
14208 make_fontset.
14209
14210 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14211
14212 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14213 of x_new_fontset2.
14214
14215 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14216 (Qsans__serif): New variables.
14217 (ftfont_generic_family_list): New variable.
14218 (syms_of_ftfont): Initialize the above variables.
14219 (ftfont_pattern_entity): Delete argument NAME.
14220 (ftfont_list_generic_family): New function.
14221 (ftfont_parse_name): Delete this function.
14222 (ftfont_list): Try generic family only when FcFontList found no font.
14223 (ftfont_list_family): Fix args to FcObjectSetBuild.
14224
14225 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14226 object in attrs[LFACE_FONT_INDEX].
14227 (set_lface_from_font_name): Cancel all changes for font-backend.
14228 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14229 function.
14230 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14231 font object in QCfont attribute.
14232 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14233 (realize_default_face) [USE_FONT_BACKEND]: Call
14234 set_lface_from_font_and_fontset.
14235
14236 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14237 "fixed", and signal error here if no suitable font was found.
14238
14239 * xfont.c (xfont_parse_name): Delete this function.
14240
14241 * xftfont.c (xftfont_open): Change coding style of error
14242 handling. Generate fontconfig's fontname pattern.
14243
14244 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14245 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14246
14247 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14248 Both args FONTSET and FONT_OBJECT must be existing ones.
14249
142502008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14251
14252 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14253
142542008-02-01 Kenichi Handa <handa@m17n.org>
14255
14256 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14257
14258 * font.h (struct font): Fix typo.
14259
14260 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14261 XLFD_XXX_INDEX.
14262 (enum xlfd_field_mask): New enum.
14263 (intern_font_field): Changed argument. Change caller. If digits
14264 are followed by non-digits, return a symbol.
14265 (font_expand_wildcards): New function.
14266 (font_parse_xlfd): Fix wildcard handling.
14267 (Ffont_spec): If :name is specified, reflect the info in the other
14268 properties.
14269
14270 * ftfont.c (ftfont_pattern_entity): Fix typo.
14271 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14272 locale.
14273
142742008-02-01 Kenichi Handa <handa@m17n.org>
14275
14276 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14277
14278 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14279 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14280 registry doesn't specify encoding part.
14281 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14282 (font_open_by_name): At first try parsing the name.
14283 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14284 as Lisp symbols.
14285
14286 * fontset.c (reorder_font_vector): Pay attention to the case that
14287 the 3rd element of font_def is nil.
14288 (fontset_font): For the default fontset, append one more fontset
14289 elements for a script-based font specification. Don't add script
14290 attribute on finding a font.
14291 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14292 font name.
14293 (fontset_ascii_font): If a font can't be opened, return nil.
14294
14295 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14296 (ftfont_pattern_entity): New function.
14297 (ftfont_get_cache): Assume that freetype_font_cache is already
14298 initialized.
14299 (ftfont_list): Handle the case that a file is specified in font
14300 name. Use ftfont_pattern_entity to generate entities.
14301 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14302 (syms_of_ftfont): Initialize freetype_font_cache.
14303
14304 * xftfont.c (xftfont_open): Make the font name fontconfig's
14305 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14306 (xftfont_close): Free font->font.name if not NULL.
14307
14308 * xfont.c (xfont_list): If script is specified for a font, return
14309 null_vector.
14310 (xfont_list_family): Declare argument type.
14311
14312 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14313 name, set LFACE_FONT (lface) to nil.
14314
14315 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14316 return Qnil.
14317
143182008-02-01 Kenichi Handa <handa@m17n.org>
14319
14320 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14321 (standard_args): Add "-enable-font-backend".
14322
143232008-02-01 Kenichi Handa <handa@m17n.org>
14324
14325 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14326 (struct xftdraw_list, xftdraw_list): Delete them.
14327 (register_xftdraw, check_xftdraw): Delete them.
14328 (xftfont_prepare_face): Don't call register_xftdraw.
14329 (xftfont_done_face): Don't call check_xftdraw.
14330 (xftfont_draw): Get background color only when with_background is
14331 nonzero.
14332
14333 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14334
143352008-02-01 Kenichi Handa <handa@m17n.org>
14336
14337 These changes are for the new font handling codes.
14338
14339 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14340 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14341 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14342 (FONTSRC, FONTOBJ): New variables.
14343 (obj): Add $(FONTOBJ).
14344 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14345 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14346 @LIBOTF_LIBS@.
14347 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14348 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14349
14350 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14351
14352 * character.h (Vscript_representative_chars): Extern it.
14353
14354 * character.c (Vscript_representative_chars): New variable.
14355 (syms_of_character): Declare it as a Lisp variable.
14356
14357 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14358 enable_font_backend is nonzero, accept the composition method
14359 COMPOSITION_WITH_GLYPH_STRING.
14360
14361 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14362 enumeration COMPOSITION_WITH_GLYPH_STRING.
14363
14364 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14365 members clip_x, clip_y, clip_width, and clip_height.
14366 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14367
14368 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14369 --enable-font-backend. Call syms_of_font.
14370
14371 * fns.c (assoc_no_quit): New function.
14372
14373 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14374 (face_for_font, new_fontset_from_font)
14375 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14376
14377 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14378 (fontset_font, fontset_ascii, face_for_char)
14379 (make_fontset_for_ascii_face, Ffont_info)
14380 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14381 is nonzero, use font-backend mechanism.
14382 (find_font_encoding): Make it non-static.
14383 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14384 New functions.
14385
14386 * frame.h (struct frame): New members resx and resy.
14387 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14388 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14389
14390 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14391 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14392
14393 * lisp.h (assoc_no_quit): Extern it.
14394
14395 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14396 Through out the file, use FONT_INFO_FROM_FACE instead of
14397 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14398 rif->per_char_metric.
14399 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14400 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14401 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14402 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14403 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14404 nonzero, use font-backend mechanism.
14405 (get_per_char_metric): New function.
14406
14407 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14408 (set_lface_from_font_name)
14409 (set_font_frame_param, free_realized_face)
14410 (prepare_face_for_display, clear_face_gcs)
14411 (Finternal_set_font_selection_order, realize_x_face)
14412 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14413 font-backend mechanism.
14414 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14415 (load_face_font) [USE_FONT_BACKEND]: Abort.
14416 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14417 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14418
14419 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14420 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14421 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14422 nonzero, register all available font drivers. Call
14423 x_default_font_parameter for deciding a font.
14424 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14425
14426 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14427 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14428 (x_set_glyph_string_clipping_exactly)
14429 (x_compute_glyph_string_overhangs)
14430 (x_draw_glyph_string_foreground)
14431 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14432 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14433 enable_font_backend is nonzero, use font-backend mechanism.
14434 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14435
144362008-02-01 Kenichi Handa <handa@m17n.org>
14437
14438 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14439 system_eol_type.
14440 (syms_of_coding): Initialize system_eol_type.
14441
14442 * process.c (Fset_process_coding_system): Inherit system's eol
14443 format if necessary.
14444
144452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14446
14447 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14448
144492008-02-01 Kenichi Handa <handa@m17n.org>
14450
14451 * coding.c (decode_eol): Pay attention to buffer relocation in
14452 del_range_2.
14453 (decode_coding): Call decode_eol before restoring undo_list.
14454
144552008-02-01 Kenichi Handa <handa@m17n.org>
14456
14457 * charset.c (Fdefine_charset_internal): Fix setting of
14458 emacs_mule_bytes.
14459
144602008-02-01 Kenichi Handa <handa@m17n.org>
14461
14462 * keyboard.c (read_char): Check if C is a character or not before
14463 looking up Vkeyboard_translate_table.
14464
144652008-02-01 Kenichi Handa <handa@m17n.org>
14466
14467 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14468 condition to terminate the loop.
14469
144702008-02-01 Kenichi Handa <handa@m17n.org>
14471
14472 * coding.c (produce_composition): Compare charbuf[i] instead of
14473 args[i] against 0.
14474 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14475
144762008-02-01 Kenichi Handa <handa@m17n.org>
14477
14478 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14479 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14480 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14481 detect_coding.
14482 (emacs_mule_char): Handle old style (Emacs 20) component character
14483 of a composition.
14484 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14485 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14486 composition rule.
14487 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14488
144892008-02-01 Kenichi Handa <handa@m17n.org>
14490
14491 * coding.c (encode_coding_ccl): Allocate destination dynamically
14492 when necessary.
14493
144942008-02-01 Kenichi Handa <handa@m17n.org>
14495
14496 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14497 the loop. When quitted, show a proper error message.
14498
144992008-02-01 Kenichi Handa <handa@m17n.org>
14500
14501 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14502 src->clip_head and src->clip_tail temporarily instead of src->hl.
14503
14504 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14505 character sequence.
14506 (Fccl_execute_on_string): Use ASET, not XSET.
14507
145082008-02-01 Kenichi Handa <handa@m17n.org>
14509
14510 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14511
145122008-02-01 Kenichi Handa <handa@m17n.org>
14513
14514 * coding.c (decode_coding): Fix the condition of terminating the
14515 decoding loop.
14516
145172008-02-01 Kenichi Handa <handa@m17n.org>
14518
14519 * data.c (Faset): On setting a character bigger than 255 in a
14520 unibyte string, signal an error instead of make the string multibyte.
14521
145222008-02-01 Kenichi Handa <handa@m17n.org>
14523
14524 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14525 made by a mapping table.
14526
145272008-02-01 Kenichi Handa <handa@m17n.org>
14528
14529 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14530 not.
14531 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14532 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14533
14534 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14535 s->face is NULL or not.
14536
145372008-02-01 Kenichi Handa <handa@m17n.org>
14538
14539 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14540 (x_draw_glyph_string): Fix drawing of right_overhang and
14541 left_overhang around/on cursor.
14542
14543 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14544
145452008-02-01 Kenichi Handa <handa@m17n.org>
14546
14547 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14548
145492008-02-01 Kenichi Handa <handa@m17n.org>
14550
14551 * coding.c (Fdefine_coding_system_internal)
14552 (Fdefine_coding_system_alias): Avoid a duplicated element in
14553 Vcoding_system_alist.
14554
145552008-02-01 Kenichi Handa <handa@m17n.org>
14556
14557 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14558
14559 * coding.c (Qcoding_system_define_form): New variable.
14560 (syms_of_coding): Intern and staticpro it.
14561 (Fcoding_system_p): Check Qcoding_system_define_form.
14562 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14563
14564 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14565 Fcoding_system_p.
14566 (CHECK_CODING_SYSTEM): If ID is not available, call
14567 Fcheck_coding_system.
14568 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14569 Try also Fcheck_coding_system.
14570
145712008-02-01 Kenichi Handa <handa@m17n.org>
14572
14573 * coding.c (code_conversion_restore): GCPRO arg.
14574
145752008-02-01 Kenichi Handa <handa@m17n.org>
14576
14577 * character.c (lisp_string_width): Check multibyteness of STRING.
14578
145792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14580
14581 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14582 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14583 (decode_mac_font_name): Use decode_coding_c_string instead of
14584 decode_coding.
14585 (x_load_font): Initialize fontp->fontset to -1. Set
14586 fontp->encoding_type.
14587
145882008-02-01 Kenichi Handa <handa@m17n.org>
14589
14590 * search.c (search_buffer): Give up BM search on case-fold-search
14591 if one of a target character has a case-equivalence of different
14592 byte length even if that target charcter is an ASCII.
14593 (simple_search): Fix calculation of byte length of matched text.
14594 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14595
145962008-02-01 Kenichi Handa <handa@m17n.org>
14597
14598 * coding.c (decode_coding): Fix handling of invalid bytes.
14599
146002008-02-01 Kenichi Handa <handa@m17n.org>
14601
14602 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14603 Unicode characters.
14604
146052008-02-01 Kenichi Handa <handa@m17n.org>
14606
14607 * coding.c (encode_coding_object): If a pre-write-conversion
14608 function makes a new buffer, kill it.
14609
146102008-02-01 Kenichi Handa <handa@m17n.org>
14611
14612 * coding.c (QCascii_compatible_p): New variable.
14613 (syms_of_coding): Initialize it.
14614 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14615 calling string_char.
14616 (record_conversion_result): Add `default:' case.
14617 (coding_charset_list): Delete unused variable `coding_type'.
14618 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14619 property in the plist of the coding system.
14620 (Fcoding_system_put): Check QCascii_compatible_p.
14621
146222008-02-01 Miles Bader <miles@gnu.org>
14623
14624 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14625 removed calculation of frame `f', as it's now used.
14626
146272008-02-01 Kenichi Handa <handa@m17n.org>
14628
14629 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14630 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14631 (UNIDATA): New variable.
14632 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14633 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14634 $(RUN_TEMACS) unconditionally.
14635
146362008-02-01 Kenichi Handa <handa@m17n.org>
14637
14638 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14639 (admindir): New variable.
14640 ($(lispsource)international/charprop.el): New target.
14641
146422008-02-01 Miles Bader <miles@gnu.org>
14643
14644 * character.c (chars-in-region): Remove obsolete function.
14645 (syms_of_character): Remove its initialization.
14646
146472008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14648
14649 * w32select.c (validate_coding_system)
14650 (setup_windows_coding_system): New functions.
14651 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14652 setup_windows_coding_system.
14653 (setup_config, Fw32_get_clipboard_data): Use
14654 validate_coding_system.
14655 (Fx_selection_exists): Move call to setup_config to a place
14656 where signals are allowed.
14657
14658 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14659 (Fcheck_coding_system): Add declarations.
14660
146612008-02-01 Kenichi Handa <handa@m17n.org>
14662
14663 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14664
146652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14666
14667 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14668 string as the second argument for x_new_fontset.
14669
146702008-02-01 Kenichi Handa <handa@m17n.org>
14671
14672 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14673 (encode_coding_object): Use safe_call instead of call2.
14674
146752008-02-01 Kenichi Handa <handa@m17n.org>
14676
14677 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14678
14679 * Makefile.in (lisp): Include charprop.el.
14680
146812008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14682
14683 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14684 Not sure if it's unnecessary.
14685
146862008-02-01 Steven Tamm <steventamm@mac.com>
14687
14688 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14689 some possibly unnecessary fontset checking code that crashed
14690 when creating a new frame.
14691
146922008-02-01 Kenichi Handa <handa@m17n.org>
14693
14694 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14695 lookup_face.
14696
14697 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14698
14699 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14700
147012008-02-01 Kenichi Handa <handa@m17n.org>
14702
14703 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14704 (coding_charset_list): New function.
14705
14706 * coding.h (coding_charset_list): Extern it.
14707
147082008-02-01 Kenichi Handa <handa@m17n.org>
14709
14710 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14711 concatenation of family and registry.
14712
147132008-02-01 Kenichi Handa <handa@m17n.org>
14714
14715 * character.h (BYTE8_STRING): Fix typo.
14716
14717 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14718 string to multibyte (sync to HEAD).
14719
14720 * casefiddle.c (casify_region): Handle changes in byte-length
14721 using replace_range_2 (sync to HEAD).
14722
147232008-02-01 Andreas Schwab <schwab@suse.de>
14724
14725 * chartab.c (map_char_table): GCPRO table and arg.
14726
147272008-02-01 Kenichi Handa <handa@m17n.org>
14728
14729 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14730 already at limit.
14731
147322008-02-01 Kenichi Handa <handa@m17n.org>
14733
14734 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14735 instead of fast_c_string_match_ignore_case.
14736 (find_font_encoding): Change argument to Lisp_Object. Use
14737 fast_string_match_ignore_case instead of
14738 fast_c_string_match_ignore_case. Change caller.
14739
147402008-02-01 Kenichi Handa <handa@m17n.org>
14741
14742 * xdisp.c (get_next_display_element): In unibyte case, decide to
14743 display in octal form by checking a character by
14744 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14745
14746 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14747
14748 * character.c (unibyte_has_multibyte_table): New variable.
14749
14750 * character.h (unibyte_has_multibyte_table): Extern it.
14751 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14752
147532008-02-01 Kenichi Handa <handa@m17n.org>
14754
14755 * coding.c (encode_coding_iso_2022): Fix handling of charset
14756 annotation.
14757
147582008-02-01 Kenichi Handa <handa@m17n.org>
14759
14760 * coding.c (setup_coding_system): If coding_system is nil, use
14761 Qundecided.
14762 (Fterminal_coding_system): Return nil if terminal coding system is
14763 `undecided'.
14764 (syms_of_coding): Define coding-system `undecided' here. Setup
14765 terminal_coding as `undecided'.
14766
147672008-02-01 Kenichi Handa <handa@m17n.org>
14768
14769 * xdisp.c (message_dolog, set_message_1): Call
14770 unibyte_char_to_multibyte with arg type int.
14771
14772 * lread.c (read1): Fix reading of a char-table.
14773
14774 * print.c (print_object): Include sub char-table in circularities
14775 detection.
14776
147772008-02-01 Kenichi Handa <handa@m17n.org>
14778
14779 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14780 Append the found sequences in car of ARGS instead of prepending.
14781
147822008-02-01 Kenichi Handa <handa@m17n.org>
14783
14784 * fileio.c (report_file_error): Make a unibyte string from
14785 strerror (errorno).
14786 (Fsubstitute_in_file_name): Fix the arg to
14787 unibyte_char_to_multibyte. It is evaluated twice.
14788
147892008-02-01 Kenichi Handa <handa@m17n.org>
14790
14791 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14792
147932008-02-01 Kenichi Handa <handa@m17n.org>
14794
14795 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14796 BOM is not found.
14797 (detect_coding, detect_coding_system): Optimization for ISO-2022
14798 when no 8-bit data is found.
14799
148002008-02-01 Jason Rumney <jasonr@gnu.org>
14801
14802 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14803
148042008-02-01 Kenichi Handa <handa@m17n.org>
14805
14806 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14807 CHARS.
14808
148092008-02-01 Steven Tamm <steventamm@mac.com>
14810
14811 * macterm.c (mac_encode_char): Add charset argument and update
14812 to use encoding_type.
14813 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14814 switch to pure fontset.
14815 (decode_mac_font_name): Temporarily remove decoding.
14816 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14817 (x_load_font): Temporarily remove encoding.
14818
148192008-02-01 Kenichi Handa <handa@m17n.org>
14820
14821 * xfaces.c (Fface_font): If frame is not on a window system,
14822 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14823 refer to face->font.
14824 (split_font_name_into_vector, build_font_name_from_vector)
14825 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14826 when HAVE_WINDOW_SYSTEM is defined.
14827
148282008-02-01 Kenichi Handa <handa@m17n.org>
14829
14830 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14831 (x_produce_glyphs): Fix setting of members of cmp in case
14832 cmp->glyph_len is zero.
14833
14834 * fontset.c (Fset_fontset_font): Fix docstring.
14835 (Ffontset_info): Make it backward compatible. New arg ALL.
14836
148372008-02-01 Kim F. Storm <storm@cua.dk>
14838
14839 * process.c (read_process_output): Grow decoding_buf when needed;
14840 this could cause a crash in allocate_string and compact_small_strings.
14841
148422008-02-01 Kenichi Handa <handa@m17n.org>
14843
14844 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14845
148462008-02-01 Kenichi Handa <handa@m17n.org>
14847
14848 * coding.c (setup_coding_system): Set coding->common_flags
14849 correctly for raw-text.
14850 (consume_chars): On encoding unibyte text by raw-text, don't check
14851 multibyte form.
14852 (encode_coding): On encoding by raw-text, never use translation tables.
14853
14854 * fileio.c (e_write): Short cut for the case of no encoding.
14855
148562008-02-01 Kenichi Handa <handa@m17n.org>
14857
14858 * coding.c (detect_coding, detect_coding_system): Delete unused
14859 variables.
14860
148612008-02-01 Kenichi Handa <handa@m17n.org>
14862
14863 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14864 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14865
148662008-02-01 Kenichi Handa <handa@m17n.org>
14867
14868 * coding.c (Ffind_coding_systems_region_internal): Include
14869 raw-text and no-conversion in the result.
14870
148712008-02-01 Kenichi Handa <handa@m17n.org>
14872
14873 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14874 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14875 FONT_DEF.
14876 (font_def_arg, add_arg, from_arg, to_arg): New args.
14877 (set_fontset_font): Change argument.
14878 (Fset_fontset_font): Fix for the case that TARGET is a script
14879 name and charset name.
14880 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14881
148822008-02-01 Kenichi Handa <handa@m17n.org>
14883
14884 * fontset.c (fontset_font): Rename from fontset_face. Change return
14885 value.
14886 (face_suitable_for_char_p, face_for_char): Adjust for the change
14887 of fontset_font.
14888 (make_fontset_for_ascii_face): Fix setting of the fontset element
14889 for ASCII.
14890 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14891 to get a font name.
14892 (Ffontset_info): Adjust for the change of fontset_font.
14893
14894 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14895
14896 * character.h (LEADING_CODE_LATIN_1_MIN)
14897 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14898
148992008-02-01 Kenichi Handa <handa@m17n.org>
14900
14901 * editfns.c (check_translation): New function.
14902 (Ftranslate_region_internal): Handle M:N mapping.
14903
149042008-02-01 Kenichi Handa <handa@m17n.org>
14905
14906 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14907
149082008-02-01 Kenichi Handa <handa@m17n.org>
14909
14910 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14911 goto invalid_code.
14912 (decode_coding_iso_2022): Fix handling of invalid designation.
14913
14914 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14915 after calling code_conversion_save.
14916
149172008-02-01 Kenichi Handa <handa@m17n.org>
14918
14919 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14920
14921 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14922
14923 * fontset.c: Include "intervals.h".
14924 (fontset_face): Fix comparing of Lisp_Objects.
14925 (free_face_fontset, new_fontset_from_font_name): Fix
14926 Lisp_Object/int mixup.
14927
14928 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14929
14930 * coding.c: Add many prototypes for static functions.
14931 (get_translation_table): Allow max_lookup to be NULL.
14932 (decode_coding, Ffind_coding_systems_region_internal)
14933 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14934 get_translation_table with max_lookup NULL.
14935
149362008-02-01 Kenichi Handa <handa@m17n.org>
14937
14938 * coding.c (get_translation_table): Declare it as Lisp_Object.
14939 (LOOKUP_TRANSLATION_TABLE): New macro.
14940 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14941 instead of CHAR_TABLE_REF.
14942
149432008-02-01 Kenichi Handa <handa@m17n.org>
14944
14945 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14946 annotation data format.
14947 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14948 Change arguments FROM and TO to single argument NCHARS. Change caller.
14949 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14950 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14951 (decode_coding_ccl, decode_coding_charset): Pay attention to
14952 coding->charbuf_used.
14953 (get_translation): New function.
14954 (produce_chars): New arguments translation_table and last_block.
14955 Translate characters here. Return number of carryover chars.
14956 Change caller.
14957 (produce_composition): New argument pos. Change caller.
14958 Adjust for the change of annotation data format.
14959 (produce_charset, produce_annotation): Likewise.
14960 (decode_coding, encode_coding): Don't call translate_chars.
14961 (consume_chars): New arg translation_table. Change caller.
14962 (translate_chars): Delete.
14963 (syms_of_coding): Make translation-table's number of extra slots 2.
14964
149652008-02-01 Kenichi Handa <handa@m17n.org>
14966
14967 * search.c (simple_search): Fix setting this_pos_byte in backward
14968 search.
14969
14970 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14971 byte sequence.
14972 (detect_coding_ccl): Fix setting of the variable valids.
14973
149742008-02-01 Kenichi Handa <handa@m17n.org>
14975
14976 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14977
14978 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14979
14980 * editfns.c (Ftranslate_region_internal): Rename from
14981 Ftranslate_region. Accept a char-table in TABLE.
14982 (syms_of_editfns): Defsubr Stranslate_region_internal.
14983
14984 * xfaces.c (set_lface_from_font_name): If a font is specified for
14985 a frame, generate a fontset from the font.
14986 (build_scalable_font_name): If the scalable font is requested for
14987 a specific size, don't change that size.
14988 (try_font_list): Try a scalable font also in the case that a
14989 pattern string is specified.
14990
149912008-02-01 Kenichi Handa <handa@m17n.org>
14992
14993 * xfaces.c (Fface_font): New optional arg CHARACTER.
14994
149952008-02-01 Kenichi Handa <handa@m17n.org>
14996
14997 * charset.h (CHARSET_OFFSET): New macro.
14998
149992008-02-01 Kenichi Handa <handa@m17n.org>
15000
15001 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15002
15003 * fontset.c (fontset_face): Handle the case that repertory is a
15004 char-table.
15005 (find_font_encoding): Return nil for unknown encoding.
15006 (Fset_fontset_font): Ignore a font of unknown encoding.
15007
150082008-02-01 Kenichi Handa <handa@m17n.org>
15009
15010 * keymap.c (describe_vector): Handle default value of a char table.
15011
15012 * fontset.c (fontset_face): Handle fallback fonts correctly.
15013 (Ffontset_info): Return infomation about fallback fonts.
15014
150152008-02-01 Kenichi Handa <handa@m17n.org>
15016
15017 * fontset.c (FONTSET_DEFAULT): New macro.
15018 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15019 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15020 the case that it is nil.
15021 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15022 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15023
15024 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15025 subset or superset.
15026
150272008-02-01 Kenichi Handa <handa@m17n.org>
15028
15029 * emacs.c (main): Call init_charset after syms_of_XXX.
15030
15031 * charset.c (Vcharset_map_directory): Delete.
15032 (Vcharset_map_path): New variable.
15033 (load_charset_map_from_file): Use Vcharset_map_path instead.
15034 (init_charset): Initialize Vcharset_map_path.
15035 (syms_of_charset): Delete declaration of "charset-map-directory",
15036 add declaration of "charset-map-path".
15037
150382008-02-01 Kenichi Handa <handa@m17n.org>
15039
15040 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15041 ASCII only string.
15042
15043 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15044
15045 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15046 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15047
150482008-02-01 Kenichi Handa <handa@m17n.org>
15049
15050 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15051
15052 * coding.c (QCmnemonic, QCdefalut_char)
15053 (QCdecode_translation_table, QCencode_translation_table)
15054 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15055 (get_translation_table): Return a list of translation tables if
15056 necessary.
15057 (decode_coding): Call get_translation_table with ENCODEP 0.
15058 (char_encodable_p): If translation_table is non-nil, always call
15059 translate_char.
15060 (Fdefine_coding_system_internal): Accept list of translation
15061 tables as :encode-translation-table and :decode-translation-table.
15062 (Fcoding_system_put): New function.
15063 (syms_of_coding): Declare new symbols. Defsubr
15064 Scoding_system_put.
15065 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15066 typically JISX0212.
15067
15068 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15069 when the charset is superset type.
15070
15071 * character.c (translate_char): Accept list of translation tables.
15072
150732008-02-01 Kenichi Handa <handa@m17n.org>
15074
15075 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15076 (CODING_ATTR_TRANS_TBL): New macro.
15077
15078 * coding.c (get_translation_table): New function.
15079 (translate_chars): Fix the bug of skipping annotation data.
15080 (decode_coding, encode_coding): Utilize get_translation_table.
15081 (char_encodable_p, Funencodable_char_position): Translate char if
15082 necessary.
15083 (Ffind_coding_systems_region_internal)
15084 (Fcheck_coding_systems_region): Setup translation table for encode
15085 in a coding system attribute vector in advance.
15086 (Fdefine_coding_system_internal): Allow a symbol as translation
15087 table. For shift-jis type coding system, allow 4th charset.
15088
150892008-02-01 Kenichi Handa <handa@m17n.org>
15090
15091 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15092
15093 * xdisp.c (get_next_display_element): Pass -1 as POS to
15094 FACE_FOR_CHAR if displaying a C-string.
15095
150962008-02-01 Kenichi Handa <handa@m17n.org>
15097
15098 * composite.c (get_composition_id): Handle xoff and yoff in a
15099 composition rule.
15100
15101 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15102 (struct composition): New member lbearing and rbearing.
15103
15104 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15105 (x_get_glyph_overhangs): Handle a composition glyph.
15106 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15107
15108 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15109 composition glyph.
15110
151112008-02-01 Kenichi Handa <handa@m17n.org>
15112
15113 * print.c: Include charset.h.
15114 (Vprint_charset_text_property): New variable.
15115 (Qdefault): Extern it.
15116 (PRINT_STRING_NON_CHARSET_FOUND)
15117 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15118 (print_check_string_result): New variable.
15119 (print_check_string_charset_prop): New function.
15120 (print_prune_charset_plist): New variable.
15121 (print_prune_string_charset): New function.
15122 (print_object): Call print_prune_string_charset if
15123 Vprint_charset_text_property is not t.
15124 (print_interval): Print nothing if interval->plist is nil.
15125 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15126 variable. Init and staticpro print_prune_charset_plist.
15127
151282008-02-01 Kenichi Handa <handa@m17n.org>
15129
15130 * fontset.c (new_fontset_from_font_name): Use the specified font
15131 for all characters in the new fontset.
15132
15133 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15134 OBJECT args.
15135
15136 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15137 OBJECT args for composition too.
15138
15139 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15140 OBJECT args.
15141
151422008-02-01 Kenichi Handa <handa@m17n.org>
15143
15144 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15145
15146 * fontset.c (reorder_font_vector): Adjust for the change of
15147 FONT_DEF format.
15148 (fontset_face): New arg id. Change caller.
15149 (face_for_char): New args pos and object.
15150 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15151 (fs_query_fontset): Check NAME by Fassoc too.
15152 (Fset_fontset_font): Allow non-XLFD font name.
15153 (Ffontset_info): Adjust for the change of FONT_DEF format.
15154
15155 * fontset.h (face_for_char): Adjust prototype.
15156
15157 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15158 (append_space, extend_face_to_end_of_line)
15159 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15160 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15161
15162 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15163 POS and OBJECT args.
15164
15165 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15166 POS and OBJECT args.
15167
151682008-02-01 Jason Rumney <jasonr@gnu.org>
15169
15170 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15171 of GlobalAlloc'ed memory.
15172
151732008-02-01 Kenichi Handa <handa@m17n.org>
15174
15175 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15176
15177 * charset.h (charset_table_used): Delete extern.
15178
15179 * charset.c (charset_table_used): Make it static.
15180 (map_charset_chars): Fix args to c_function with.
15181
15182 * chartab.c (map_sub_char_table_for_charset): Fix args to
15183 c_function with.
15184
15185 * coding.h (enum coding_result_code): Delete
15186 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15187
15188 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15189 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15190 (Vlast_code_conversion_error): New variables.
15191 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15192 (ONE_MORE_BYTE): Record error if any instead of signaling an
15193 error. If non-ASCII multibyte char is found, return the negative
15194 value of the code. All callers changed to check it.
15195 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15196 (record_conversion_result): New function. Change all codes setting
15197 coding->result to call this function.
15198 (detect_coding_utf_8, decode_coding_utf_8)
15199 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15200 Don't use the local variable incomplete.
15201 (emacs_mule_char): Change the second arg to `const'.
15202 (decode_coding): Fix of flushing out unprocessed data.
15203 (make_conversion_work_buffer): Fix making of a work buffer.
15204 (decode_coding_object): Return coding->dst_object.
15205
15206 * fontset.c (set_fontset_font): Fix args.
15207
15208 * lisp.h (CHARACTERBITS): Define as 22.
15209
15210 * process.c (send_process): Be sure to set coding->src_multibyte.
15211
15212 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15213
152142008-02-01 Kenichi Handa <handa@m17n.org>
15215
15216 * xdisp.c (handle_auto_composed_prop): Give limit to
15217 Fnext_single_char_property_change.
15218
152192008-02-01 Kenichi Handa <handa@m17n.org>
15220
15221 * composite.c (syms_of_composite): Don't make the composition hash
15222 table weak.
15223
15224 * fontset.c (Fset_fontset_font): Fix docstring.
15225
15226 * lisp.h (detect_coding_system): Adjust prototype.
15227
15228 * fileio.c (kill_workbuf_unwind): Delete this function.
15229 (Finsert_file_contents): Adjust the call of detect_coding_system.
15230 Get conversion_buffer by code_conversion_save. Use the macro
15231 CODING_MAY_REQUIRE_DECODING. After decoding, update
15232 coding_system.
15233
15234 * coding.h (make_conversion_work_buffer): Delete extern.
15235 (code_conversion_save): Extern it.
15236
15237 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15238 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15239 (decode_coding_utf_8): Don't do eol converion.
15240 (detect_coding_utf_16): Check coding->src_chars, not
15241 coding->src_bytes. Add heuristics for those that have no signature.
15242 (decode_coding_emacs_mule, decode_coding_iso_2022)
15243 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15244 Don't do eol converion.
15245 (adjust_coding_eol_type): Return a new coding system.
15246 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15247 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15248 each change.
15249 (decode_coding): Pay attention to undo_list. Do eol conversion for
15250 all types of coding-systems (if necessary).
15251 (Vcode_conversion_work_buf_list): Delete it.
15252 (Vcode_conversion_reused_workbuf): Rename from
15253 Vcode_conversion_reused_work_buf.
15254 (Vcode_conversion_workbuf_name): New variable.
15255 (reused_workbuf_in_use): New variable.
15256 (make_conversion_work_buffer): Delete the arg DEPTH.
15257 (code_conversion_restore): Change argument to cons.
15258 (code_conversion_save): Delete the argument BUFFER. Change callers.
15259 (detect_coding_system): New argument src_chars. Change callers.
15260 Fix for utf-16 detection.
15261 (init_coding_once): Don't use ISO_carriage_return.
15262 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15263 reused_workbuf_in_use.
15264
152652008-02-01 Kenichi Handa <handa@m17n.org>
15266
15267 * keymap.c (store_in_keymap): Pay attention to the case that idx
15268 is a cons specifying a character range.
15269
152702008-02-01 Kenichi Handa <handa@m17n.org>
15271
15272 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15273 HANDLED_RECOMPUTE_PROPS.
15274
15275 * coding.c (Fdefine_coding_system_internal): Fix checking of
15276 ascii compatibility.
15277
152782008-02-01 Kenichi Handa <handa@m17n.org>
15279
15280 * charset.c (find_charsets_in_text): Delete unused locale variable.
15281 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15282
15283 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15284 Resync charset_list to Vemacs_mule_charset_list.
15285
15286 * keymap.c (store_in_keymap): Pay attention to the case that idx
15287 is a cons specifying a character range.
15288
152892008-02-01 Kenichi Handa <handa@m17n.org>
15290
15291 * composite.c (update_compositions): Bind inhibit-read-only, etc
15292 to t before calling remove-list-of-text-properties.
15293
15294 * print.c (print_object): Always print ASCII chars as is.
15295
152962008-02-01 Kenichi Handa <handa@m17n.org>
15297
15298 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15299
15300 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15301 is a char table.
15302
153032008-02-01 Kenichi Handa <handa@m17n.org>
15304
15305 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15306
153072008-02-01 Kenichi Handa <handa@m17n.org>
15308
15309 * xfaces.c (set_lface_from_font_name): Fix for the case that
15310 FONTNAME is not fontset name.
15311
153122008-02-01 Kenichi Handa <handa@m17n.org>
15313
15314 * fns.c (base64_encode_1): Fix previous change.
15315
153162008-02-01 Kenichi Handa <handa@m17n.org>
15317
15318 * fontset.c (set_fontset_font): New function.
15319 (Fset_fontset_font): If a font is specified for a charset, use
15320 map_charset_chars to store the font spec in a fontset.
15321
153222008-02-01 Kenichi Handa <handa@m17n.org>
15323
15324 * fontset.c (fontset_face): Create a fallback fontset on demand.
15325 (make_fontset): Don't create a fallback fontset here.
15326 (free_face_fontset): Free a fallback fontset (if any) too.
15327 (n_auto_fontsets): Delete this variable.
15328 (auto_fontset_alist): New variable.
15329 (new_fontset_from_font_name): Check auto_fontset_alist.
15330 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15331 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15332 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15333 Defsubr Sfontset_list_all.
15334
153352008-02-01 Kenichi Handa <handa@m17n.org>
15336
15337 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15338
153392008-02-01 Kenichi Handa <handa@m17n.org>
15340
15341 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15342
153432008-02-01 Kenichi Handa <handa@m17n.org>
15344
15345 * editfns.c (Fgoto_char): Fix docstring.
15346
153472008-02-01 Kenichi Handa <handa@m17n.org>
15348
15349 * insdel.c (insert_from_gap): Adjust intervals correctly.
15350
153512008-02-01 Jason Rumney <jasonr@gnu.org>
15352
15353 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15354 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15355 (w32_initialize): Try to load it.
15356 (x_get_font_repertory): Use it if available.
15357 (w32_encode_char): Add shortcut for unicode output.
15358
15359 * w32fns.c (w32_load_system_font): Default charset to -1.
15360 (x_to_w32_charset): Match all fonts for unicode.
15361 (w32_to_x_charset): New parameter matching. Don't return partial
15362 or wildcard charsets.
15363 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15364 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15365 (w32_to_x_font): Match charset to real charset.
15366 (enum_font_cb2): Always list unicode versions.
15367
15368 * makefile.w32-in (temacs): Increase EMHEAP.
15369
153702008-02-01 Jason Rumney <jasonr@gnu.org>
15371
15372 * w32term.c (w32_encode_char): New charset parameter.
15373 font_info.encoding becomes encoding_type.
15374 (x_get_font_repertory): New function. Warning: stub only!
15375 (x_new_font): Return quickly if font already set.
15376 (x_new_fontset): fontsetname parameter is Lisp_Object.
15377 Use new fs_query_fontset. Try new_fontset_from_font_name.
15378 Use fontset_name for return value.
15379
15380 * w32term.h: Declare x_get_font_repertory.
15381
15382 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15383 place of find_charset_in_text. Use encode_coding_object in place
15384 of encode_coding.
15385 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15386 decode_coding.
15387
15388 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15389 of x_new_fontset.
15390 (w32_load_system_font): Initialize charset as unicode.
15391 font_info.encoding becomes encoding_type.
15392 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15393 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15394 (syms_of_w32fns): Set get_font_repertory_func.
15395
15396 * w32console.c: Include character.h. Use terminal_encode_buffer
15397 from term.c.
15398 (write_glyphs): Use new version of encode_terminal_code. Use
15399 encode_coding_object in place of encode_coding.
15400
15401 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15402 encoding becomes encoding_type.
15403
15404 * term.c (terminal_encode_buffer): Make externally visible.
15405
15406 * makefile.w32-in: Add character.h dependancies.
15407 (character.o, chartab.o): New targets.
15408
154092008-02-01 Kenichi Handa <handa@m17n.org>
15410
15411 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15412 CODING_ID_EOL_TYPE.
15413
154142008-02-01 Andreas Schwab <schwab@suse.de>
15415
15416 * coding.c (produce_chars): Revert last change.
15417
154182008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * charset.h (charset_unicode): Extern it.
15421
15422 * charset.c (string_xstring_p): Check by (C >= 0x100).
15423 (find_charsets_in_text): Change format of the arc CHARSETS. New
15424 arg MULTIBYTE.
15425 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15426 change of find_charsets_in_text.
15427 (Fsplit_char): Fix doc. Never return unknown.
15428
15429 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15430
15431 * coding.c (Fdefine_coding_system_alias): Update
15432 Vcoding_system_list.
15433
15434 * fontset.c (load_font_get_repertory): Pay attention to the case
15435 that ENCODING of a font is specified by a char-table.
15436
15437 * xterm.c (x_get_font_repertory): Handle the case that the
15438 encoding of font is other than Unicode.
15439
154402008-02-01 Kenichi Handa <handa@m17n.org>
15441
15442 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15443 if a character is encodable by the terminal coding system. If
15444 not, produces proper number of `?'s. Update
15445 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15446 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15447
154482008-02-01 Kenichi Handa <handa@m17n.org>
15449
15450 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15451 variables.
15452 (encode_terminal_code): Change argument. Encode multiple
15453 characters at once. Store the result of encoding in
15454 terminal_encode_buffer.
15455 (write_glyphs, insert_glyphs): Adjust for the change of
15456 encode_terminal_code.
15457 (term_init): Initialize terminal_encode_buffer and
15458 terminal_encode_buf_size.
15459
15460 * coding.c (consume_chars): If coding->src_object is nil, don't
15461 check annotation.
15462
154632008-02-01 Kenichi Handa <handa@m17n.org>
15464
15465 * character.c (char_string): Use ASCII_CHAR_P instead of
15466 SINGLE_BYTE_CHAR_P.
15467
154682008-02-01 Kenichi Handa <handa@m17n.org>
15469
15470 * xdisp.c (handle_auto_composed_prop): Check if the last
15471 characters of auto-composed region is newly composed with the
15472 following characters.
15473 (handle_composition_prop): Fix checking of point being inside
15474 composition.
15475
154762008-02-01 Kenichi Handa <handa@m17n.org>
15477
15478 * fns.c (concat): Don't change multibyteness of the result by
15479 concatenating an 8-bit character.
15480
15481 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15482 multibyteness of the result when newelt is an 8-bit character.
15483
154842008-02-01 Dave Love <fx@gnu.org>
15485
15486 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15487 EMACS_INT.
15488
15489 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15490
15491 * xfaces.c (face_numeric_value): Declare dim size_t.
15492 (Finternal_lisp_face_equal_p): Remove unused f.
15493
15494 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15495 (MATRIX_ROW): Remove unused vars.
15496 (draw_glyphs, x_insert_glyphs, fast_find_position)
15497 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15498 byte/char counts.
15499
15500 * regex.c (regex_compile): Remove unused var.
15501
15502 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15503
15504 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15505 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15506
15507 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15508
15509 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15510
15511 * fileio.c (Fwrite_region): Remove unused var.
15512
15513 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15514 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15515
15516 * composite.c (Fremove_list_of_text_properties): Declare.
15517
15518 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15519 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15520 (coding_inherit_eol_type): Remove unused attrs.
15521 (detect_coding): Cast arg of detect_eol.
15522
15523 * charset.c (syms_of_charset): Remove unused var p.
15524 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15525 byte/char counts.
15526
15527 * casetab.c (set_case_table): Remove unused var.
15528
15529 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15530 unused vars.
15531
155322008-02-01 Dave Love <fx@gnu.org>
15533
15534 * xterm.c (x_bitmap_mask): Declare.
15535
155362008-02-01 Dave Love <fx@gnu.org>
15537
15538 * xterm.c (x_term_init): Fix type error.
15539
15540 * lisp.h: Add Funibyte_char_to_multibyte.
15541
15542 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15543 (Fset_coding_system_priority): Doc fix.
15544
15545 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15546
15547 * indent.c (check_composition): Make start and end EMACS_INT.
15548
15549 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15550
15551 * xdisp.c (handle_composition_prop, check_point_in_composition):
15552 Make buffer positions EMACS_INT.
15553
15554 * composite.c (find_composition, run_composition_function)
15555 (update_compositions, Ffind_composition_internal): Make buffer
15556 positions EMACS_INT.
15557
15558 * composite.h (find_composition, update_compositions): Make
15559 position args EMACS_INT.
15560
15561 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15562
15563 * intervals.c (get_property_and_range):
15564 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15565
15566 * unexalpha.c: Don't include varargs.h.
15567
155682008-02-01 Dave Love <fx@gnu.org>
15569
15570 * coding.h (ENCODE_UTF_8): New.
15571
15572 * Makefile.in (gtkutil.o): Depend on coding.h.
15573
15574 * coding.c (Fset_coding_system_priority): Doc fix.
15575
155762008-02-01 Kenichi Handa <handa@m17n.org>
15577
15578 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15579 the case of auto saving.
15580
155812008-02-01 Andreas Schwab <schwab@suse.de>
15582
15583 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15584 `range' from GC.
15585
155862008-02-01 Kenichi Handa <handa@m17n.org>
15587
15588 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15589
155902008-02-01 Kenichi Handa <handa@m17n.org>
15591
15592 * fileio.c (choose_write_coding_system): Return a decided coding system.
15593 (Fwrite_region): Set Vlast_coding_system_used to the return value
15594 of choose_write_coding_system.
15595
155962008-02-01 Kenichi Handa <handa@m17n.org>
15597
15598 * charset.c (Fset_charset_priority): Pay attention to duplicated
15599 arguments.
15600
15601 * coding.c (QCcategory): New variable.
15602 (syms_of_coding): Defsym it. Set all elements of
15603 Vcoding_category_table and their symbol values.
15604 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15605 coding-category-XXX, and coding-category-list.
15606 (Fdefine_coding_system_internal): Add category in the plist.
15607
156082008-02-01 Kenichi Handa <handa@m17n.org>
15609
15610 * callproc.c (Fcall_process): Handle carryover correctly.
15611
15612 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15613 (raw_text_coding_system): Check NILP (coding_system).
15614 (coding_inherit_eol_type): Check NILP (coding_system) and
15615 NILP (parent).
15616 (consume_chars): Fix for the case of raw-text.
15617
15618 * process.c (read_process_output): Handle carryover correctly.
15619
156202008-02-01 Dave Love <fx@gnu.org>
15621
15622 * regex.c (re_search_2): Fix last change.
15623
156242008-02-01 Kenichi Handa <handa@m17n.org>
15625
15626 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15627 target_multibyte. Even in a unibyte case, return a converted
15628 multibyte char.
15629 (GET_CHAR_AFTER): New macro.
15630 (PATFETCH): Translate via multibyte char.
15631 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15632 (SETUP_MULTIBYTE_RANGE): New macro.
15633 (regex_compile): Setup compiled code so that its multibyteness
15634 matches that of a target. Fix the handling of "[X-YZ]" using
15635 SETUP_MULTIBYTE_RANGE.
15636 (analyse_first) <charset>: For filling fastmap for all multibyte
15637 characters, don't check by BASE_LEADING_CODE_P.
15638 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15639 the same as RE_MULTIBYTE_P (bufp) now.
15640 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15641 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15642 (TRANSLATE_VIA_MULTIBYTE): New macro.
15643 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15644 It is the same as RE_MULTIBYTE_P (bufp) now.
15645 <exactn>: Translate via multibyte.
15646 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15647 translate it.
15648 <charset, charset_not>: Fetch a character by
15649 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15650 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15651 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15652 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15653 by GET_CHAR_AFTER.
15654 (bcmp_translate): Likewise.
15655
15656 * search.c (compile_pattern): Check the member target_multibyte,
15657 not the member multibyte of buf.
15658
15659 * lread.c (read1): While reading a string, set force_singlebyte
15660 and force_multibyte correctly.
15661
15662 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15663 up of unibyte_to_multibyte_table.
15664
156652008-02-01 Kenichi Handa <handa@m17n.org>
15666
15667 * coding.c (setup_coding_system): If coding has
15668 post-read-conversion or pre-write-conversion, set
15669 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15670 respectively.
15671 (decode_coding_gap): Run post-read-conversion if any.
15672
15673 * fileio.c (Finsert_file_contents): Even if we read into a
15674 unibyte buffer, check if we must decode the result or not.
15675
156762008-02-01 Kenichi Handa <handa@m17n.org>
15677
15678 * coding.c (make_conversion_work_buffer): Change the work buffer
15679 name to the same one as that of Emacs 21.
15680
156812008-02-01 Kenichi Handa <handa@m17n.org>
15682
15683 * coding.h (make_conversion_work_buffer): Adjust prototype.
15684 (code_conversion_restore): Don't extern it.
15685
15686 * coding.c (detected_mask): Delete unused variable.
15687 (decode_coding_iso_2022): Pay attention to the byte sequence of
15688 CTEXT extended segment, and retain those bytes as is.
15689 (decode_coding_ccl): Delete unused variable `valids'.
15690 (setup_coding_system): Delete unused variable `category'.
15691 (consume_chars): Delete unused variable `category'. Make it work
15692 for non-multibyte case.
15693 (make_conversion_work_buffer): Change argument.
15694 (saved_coding): Delete unused variable.
15695 (code_conversion_restore): Don't check saved_coding->destination.
15696 (code_conversion_save): New function.
15697 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15698 instead of record_unwind_protect.
15699 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15700 (detect_coding_system): Delete unused variable `mask'.
15701 (Fdefine_coding_system_internal): Delete unused variable id.
15702
15703 * fileio.c (kill_workbuf_unwind): New function.
15704 (Finsert_file_contents): On replacing, call
15705 make_conversion_work_buffer with correct args, and call
15706 record_unwind_protect with the first arg kill_workbuf_unwind.
15707
15708 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15709
157102008-02-01 Kenichi Handa <handa@m17n.org>
15711
15712 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15713 (fontset_add): Fix for the case that TO is less than TO1.
15714 (Ffontset_info): Don't use fallback fontset on checking the
15715 default fontset.
15716 (dump_fontset): New function for debugging.
15717
15718 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15719 coding_type is Qcharset.
15720
157212008-02-01 Kenichi Handa <handa@m17n.org>
15722
15723 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15724 (map_char_table): Don't inherit the value from the parent on
15725 initializing VAL. Adjust for the above change.
15726
157272008-02-01 Kenichi Handa <handa@m17n.org>
15728
15729 * coding.c (Qsignature, Qendian): Delete these variables.
15730 (syms_of_coding): Don't initialize them.
15731 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15732 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15733 detect_info->found.
15734 (decode_coding_utf_16): Don't detect BOM here.
15735 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15736 is NOT utf_16_without_bom.
15737 (setup_coding_system): For a coding system of type utf-16, check
15738 if the attribute :endian is Qbig or not (not nil or not), and set
15739 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15740 (detect_coding): If coding type is utf-16 and BOM detection is
15741 required, detect it.
15742 (Fdefine_coding_system_internal): For a coding system of type
15743 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15744
157452008-02-01 Kenichi Handa <handa@m17n.org>
15746
15747 * coding.c (coding_set_source): Fix for the case that the current
15748 buffer is different from coding->src_object.
15749 (decode_coding_object): Don't use the conversion work buffer if
15750 DST_OBJECT is a buffer.
15751
157522008-02-01 Dave Love <fx@gnu.org>
15753
15754 * lread.c (read_emacs_mule_char) [len==2]: Index
15755 emacs_mule_charset correctly.
15756
157572008-02-01 Dave Love <fx@gnu.org>
15758
15759 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15760 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15761 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15762 treated specially.)
15763 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15764 (detected_mask): Remove Big5 bits.
15765
157662008-02-01 Kenichi Handa <handa@m17n.org>
15767
15768 The following changes are to make the font rescaling facility
15769 compatible with Emacs 21.
15770
15771 * xfaces.c (Vface_font_rescale_alist): Rename from
15772 Vface_resizing_fonts.
15773 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15774 (font_rescale_ratio): Rename from font_resizing_ratio.
15775 (split_font_name): Set font->rescale_ratio.
15776 (better_font_p): Pay attention to font->rescale_ratio.
15777 (build_scalable_font_name): Likewise. Change RESX, and RESY
15778 fields.
15779 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15780
157812008-02-01 Kenichi Handa <handa@m17n.org>
15782
15783 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15784 (Qutf_16_le): Remove these variables.
15785 (syms_of_coding): Don't DEFSYM them.
15786 (decode_coding_utf_16): Fix handling of BOM.
15787 (encode_coding_utf_16): Fix handling of BOM.
15788
157892008-02-01 Kenichi Handa <handa@m17n.org>
15790
15791 * fileio.c (Finsert_file_contents): On replacing, before decoding
15792 the file into the work buffer, set point of the work buffer to the end.
15793
157942008-02-01 Dave Love <fx@gnu.org>
15795
15796 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15797
157982008-02-01 Dave Love <fx@gnu.org>
15799
15800 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15801 and fix C types.
15802
158032008-02-01 Kenichi Handa <handa@m17n.org>
15804
15805 * xdisp.c (SKIP_GLYPHS): New macro.
15806 (set_cursor_from_row): Pay attention to string display properties.
15807
15808 * category.c (copy_category_entry): Fix for the case that RANGE
15809 is an integer.
15810
15811 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15812
15813 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15814
158152008-02-01 Kenichi Handa <handa@m17n.org>
15816
15817 * charset.c (Fcharset_id_internal): New function.
15818 (syms_of_charset): Defsubr it.
15819
15820 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15821 with the last arg charset_list acquired from coding.
15822 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15823 the attribute coding_attr_ccl_valids.
15824
15825 * coding.h (enum define_coding_ccl_arg_index): Set the first
15826 member coding_arg_ccl_decoder to coding_arg_max.
15827
15828 * ccl.h (ccl_driver): Adjust prototype.
15829
15830 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15831 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15832 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15833 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15834 last arg Qnil.
15835
158362008-02-01 Kenichi Handa <handa@m17n.org>
15837
15838 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15839 call encode_char.
15840
15841 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15842
158432008-02-01 Dave Love <fx@gnu.org>
15844
15845 * composite.c (syms_of_composite): Make composition_hash_table weak.
15846
158472008-02-01 Kenichi Handa <handa@m17n.org>
15848
15849 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15850 (font_name_registry): Don't extern them.
15851 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15852
15853 * fontset.h (Qfontset): Don't extern it.
15854 (new_fontset_from_font_name): Extern it.
15855
15856 * fontset.c: Give 8 extra slots to fontset objects.
15857 (Qfontset_info): New variable.
15858 (syms_of_fontset): Defsym it.
15859 (FONTSET_FALLBACK): New macro.
15860 (fontset_face): Try also the default fontset.
15861 (make_fontset): Realize a fallback fontset from the default fontset.
15862 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15863 using split_font_name_into_vector and build_font_name_from_vector.
15864 (Fset_fontset_font): Access the elements of font_spec by enum
15865 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15866 name by using split_font_name_into_vector.
15867 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15868 generate a proper font name from the fontset name. Update
15869 Vfontset_alias_alist.
15870 (n_auto_fontsets): New variable.
15871 (new_fontset_from_font_name): New function.
15872 (Ffont_info): Store the information about fonts generated from the
15873 default fontset in the first extra slot of the returned char-table.
15874
15875 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15876 (font_name_registry): Delete function.
15877 (split_font_name_into_vector): New function.
15878 (build_font_name_from_vector): New function.
15879 (font_list): The argument REGISTRY is now a list of registry names.
15880 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15881 specifies an explicit font name, return the name as is. Make a
15882 list of registy names.
15883
15884 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15885 of x_new_fontset.
15886 (Fx_create_frame): Don't call x_new_fontset here. Just use
15887 x_list_fonts to check the existence of fonts.
15888
15889 * xterm.h (x_new_fontset): Adjust prototype.
15890
15891 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15892 string. Use new_fontset_from_font_name to create a fontset from a
15893 font name.
15894
158952008-02-01 Kenichi Handa <handa@m17n.org>
15896
15897 * syntax.c (Vfind_word_boundary_function_table): New name for
15898 Vnext_word_boundary_function_table.
15899 (find-word-boundary-function-table): New name for
15900 next-word-boundary-function-table.
15901
159022008-02-01 Dave Love <fx@gnu.org>
15903
15904 * Makefile.in: Fix some dependencies.
15905
15906 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15907 set it to nil before returning.
15908
15909 * composite.c (update_compositions): Fix type error.
15910
15911 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15912
159132008-02-01 Kenichi Handa <handa@m17n.org>
15914
15915 * xterm.c (x_new_font): Optimize for the case that the font is
15916 already set for the frame.
15917
159182008-02-01 Kenichi Handa <handa@m17n.org>
15919
15920 * chartab.c (char_table_ascii): Check if the char table contents
15921 is sub-char-table or not.
15922 (char_table_set, char_table_set_range): Fix argument to
15923 char_table_ascii.
15924
15925 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15926 (detect_coding_utf_8, detect_coding_utf_16)
15927 (detect_coding_emacs_mule, detect_coding_iso_2022)
15928 (detect_coding_sjis, detect_coding_big5)
15929 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15930 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15931 sequence is valid in this coding system. Change callers.
15932 (MAX_ANNOTATION_LENGTH): New macro.
15933 (ADD_ANNOTATION_DATA): New macro.
15934 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15935 ADD_ANNOTATION_DATA. Change the format of annotation data.
15936 (ADD_CHARSET_DATA): New macro.
15937 (emacs_mule_char): New argument ID. Change callers.
15938 (decode_coding_emacs_mule, decode_coding_iso_2022)
15939 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15940 Produce charset annotation data in coding->charbuf.
15941 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15942 to charset annotation data in coding->charbuf.
15943 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15944 coding->common_flags if the coding system is iso-2022 based and
15945 uses designation.
15946 (produce_composition): Adjust for the new annotation data format.
15947 (produce_charset): New function.
15948 (produce_annotation): Handle charset annotation.
15949 (handle_composition_annotation, handle_charset_annotation): New
15950 functions.
15951 (consume_chars): Handle charset annotation. Utilize the above two
15952 functions.
15953 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15954 buffer, get the deleted text as a string and set
15955 coding->src_object to that string.
15956 (detect_coding, detect_coding_system): Use the new struct
15957 coding_detection_info.
15958
15959 * coding.h (struct coding_detection_info): New structure.
15960 (struct coding_system): Adjust prototype of the member `detector'.
15961 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15962
159632008-02-01 Kenichi Handa <handa@m17n.org>
15964
15965 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15966
159672008-02-01 Dave Love <fx@gnu.org>
15968
15969 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15970 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15971 to new local and nullify apropos_accumulate before returning.
15972 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15973
159742008-02-01 Kenichi Handa <handa@m17n.org>
15975
15976 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15977 correctly.
e3eea1fc 15978
aac0c6e3
MR
159792008-02-01 Dave Love <fx@gnu.org>
15980
15981 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15982
159832008-02-01 Kenichi Handa <handa@m17n.org>
15984
15985 The following changes are to make character composition happen
15986 automatically on displaying.
15987
15988 * Makefile.in (lisp, shortlisp): Add composite.elc.
15989
15990 * composite.h (Qauto_composed, Vauto_composition_function)
15991 (Qauto_composition_function): Extern them.
15992
15993 * composite.c (Vcomposition_function_table)
15994 (Qcomposition_function_table): Delete variables.
15995 (Qauto_composed, Vauto_composition_function)
15996 (Qauto_composition_function): New variables.
15997 (run_composition_function): Don't call
15998 compose-chars-after-function.
15999 (update_compositions): Clear `auto-composed' text property.
16000 (compose_chars_in_text): Delete this function.
16001 (syms_of_composite): Staticpro Qauto_composed and
16002 Qauto_composition_function. Declare Vauto_composition_function as
16003 a Lisp variable.
16004
16005 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16006
16007 * xdisp.c (it_props): Add an entry for Qauto_composed.
16008 (handle_auto_composed_prop): New function.
16009
16010 * xselect.c (selection_data_to_lisp_data): Don't call
16011 compose_chars_in_text.
16012
160132008-02-01 Dave Love <fx@gnu.org>
16014
16015 * keyboard.c (read_char): Modify checking around use of
16016 Vkeyboard_translate_table.
16017
16018 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16019 and fix C types.
16020
160212008-02-01 Kenichi Handa <handa@m17n.org>
16022
16023 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16024 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16025 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16026 the case that the last byte is '\r' correctly.
16027 (decode_coding): Flush out the unprocessed data correctly.
16028 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16029
160302008-02-01 Dave Love <fx@gnu.org>
16031
16032 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16033 Add XK_ISO... case.
16034 (xaw_scroll_callback): Revert last change.
16035
160362008-02-01 Kenichi Handa <handa@m17n.org>
16037
16038 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16039
160402008-02-01 Kenichi Handa <handa@m17n.org>
16041
16042 * xfaces.c (Vface_resizing_fonts): New variable.
16043 (struct font_name): New member `resizing_ratio'.
16044 (font_resizing_ratio): New function.
16045 (split_font_name): Set font->resizing_ratio.
16046 (better_font_p): Pay attention to font->resizing_ratio.
16047 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16048 RESX, and RESY fields.
16049 (try_alternative_families): Try scalable fonts if
16050 Vscalable_fonts_allowed is not Qt.
16051 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16052
160532008-02-01 Dave Love <fx@gnu.org>
16054
16055 * xterm.c (xaw_scroll_callback): Cast correctly.
16056
160572008-02-01 Dave Love <fx@gnu.org>
16058
16059 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16060 (lispy_kana_keys): Comment out.
16061 (make_lispy_event) [XK_kana_A]: Comment out.
16062
16063 * xterm.c (xaw_scroll_callback): Cast call_data.
16064 (XTread_socket): Deal with ASCII keysyms.
16065 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16066
160672008-02-01 Dave Love <fx@gnu.org>
16068
16069 * xterm.c (Vx_keysym_table): New.
16070 (syms_of_xterm): Initialize it.
16071 (XTread_socket): Use it.
16072 From head: Eliminate incorrect optimization that tried to avoid
16073 decoding the output of X*LookupString.
16074 (x_get_font_repertory): Delete charset declaration.
16075
160762008-02-01 Kenichi Handa <handa@m17n.org>
16077
16078 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16079 return 0.
16080 (Fdefine_coding_system_internal): Setup
16081 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16082
160832008-02-01 Dave Love <fx@gnu.org>
16084
16085 * coding.c (Fcheck_coding_system): Doc fix.
16086
16087 * editfns.c (Finsert_byte): Return a proper value.
16088
160892008-02-01 Kenichi Handa <handa@m17n.org>
16090
16091 * coding.c (decode_coding): Fix args to translate_chars. Pay
16092 attention to Vstandard_translation_table_for_decode.
16093 (encode_coding): Fix args to translate_chars. Pay attention to
16094 Vstandard_translation_table_for_encode.
16095
16096 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16097 SINGLE_BYTE_CHAR_P.
16098
16099 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16100 not by SINGLE_BYTE_CHAR_P.
16101
16102 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16103 SINGLE_BYTE_CHAR_P.
16104
16105 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16106 SINGLE_BYTE_CHAR_P.
16107
16108 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16109 by SINGLE_BYTE_CHAR_P.
16110
16111 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16112 SINGLE_BYTE_CHAR_P.
16113
161142008-02-01 Dave Love <fx@gnu.org>
16115
16116 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16117
161182008-02-01 Dave Love <fx@gnu.org>
16119
16120 * fns.c (Flanginfo): Fix typo.
16121
16122 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16123
161242008-02-01 Kenichi Handa <handa@m17n.org>
16125
16126 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16127 (detect_coding_emacs_mule, detect_coding_iso_2022)
16128 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16129 incomplete byte sequence. Don't update *mask when correctly detected.
16130 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16131 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16132 (detect_coding, detect_coding_system): Adjust for the changes above.
16133
161342008-02-01 Kenichi Handa <handa@m17n.org>
16135
16136 * character.c (char_string): Rename from
16137 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16138 (string_char): Rename from string_char.
16139
16140 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16141 if C is greater than MAX_3_BYTE_CHAR.
16142 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16143 string_char instead of string_char_with_unification.
16144
161452008-02-01 Dave Love <fx@gnu.org>
16146
16147 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16148
161492008-02-01 Kenichi Handa <handa@m17n.org>
16150
16151 * keymap.c (push_key_description): Pay attention to force_multibyte.
16152
16153 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16154
161552008-02-01 Dave Love <fx@gnu.org>
16156
16157 * charset.c (define_charset_internal): Rename `supprementary'.
16158
16159 * Makefile.in (lisp, shortlisp): Remove latin-N.
16160
161612008-02-01 Dave Love <fx@gnu.org>
16162
16163 * xfns.c (x_window, x_window): Use use_xim.
16164
16165 * xterm.c (use_xim): Initialize.
16166 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16167 (x_term_init): Maybe set use_xim.
16168
16169 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16170
161712008-02-01 Kenichi Handa <handa@m17n.org>
16172
16173 * search.c (search_buffer): Fix case-fold-search of multibyte
16174 characters.
16175 (boyer_moore): Rename the last argument to char_high_bits.
16176
161772008-02-01 Kenichi Handa <handa@m17n.org>
16178
16179 * xdisp.c (display_string): Fix for the case of zero width glyph.
16180
16181 * xfns.c (x_set_font): Change the error message of the case that
16182 x_new_fontset returns Qt.
16183
16184 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16185 (Finternal_set_lisp_face_attribute): Use signal_error for the
16186 error of invalid fontset.
16187
16188 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16189 fontset, return Qt.
16190
161912008-02-01 Dave Love <fx@gnu.org>
16192
16193 * unexelf.c (unexec): Make .got handling not SGI-specific.
16194
16195 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16196
16197 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16198
16199 * keyboard.c (read_key_sequence): Fix type error.
16200
16201 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16202 type error.
16203
16204 * fontset.c (fontset_add): Return Lisp_Object.
16205
162062008-02-01 Dave Love <fx@gnu.org>
16207
16208 * charset.h (charset_ordered_list_tick): Declare extern.
16209
162102008-02-01 Kenichi Handa <handa@m17n.org>
16211
16212 The following changes (and some of 2008-02-01 changes of mine) are
16213 for handling syntax, category, and case conversion for unibyte
16214 characters by converting them to multibyte on the fly. With these
16215 changes, we don't have to setup syntax and case tables for unibyte
16216 characters in each language environment.
16217
16218 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16219 multibyte if necessary.
16220
16221 * bytecode.c (Fbyte_code): Likewise.
16222
16223 * character.h (LEADING_CODE_LATIN_1_MIN)
16224 (LEADING_CODE_LATIN_1_MAX): New macros.
16225 (unibyte_to_multibyte_table): Extern it.
16226 (unibyte_char_to_multibyte): New macro.
16227 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16228 (CHAR_LEADING_CODE): New macro.
16229 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16230
16231 * character.c (unibyte_to_multibyte_table): New variable.
16232 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16233 (multibyte_char_to_unibyte): If C is an eight-bit character,
16234 convert it to the corresponding byte value.
16235
16236 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16237 not 1, signals an error. Update the elements of
16238 unibyte_to_multibyte_table.
16239 (init_charset_once): Initialize unibyte_to_multibyte_table.
16240 (syms_of_charset): Define the charset `iso-8859-1'.
16241
16242 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16243 as is without converting it to unibyte. In a unibyte buffer,
16244 convert C to multibyte before checking the syntax.
16245
16246 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16247
16248 * minibuf.c (Fminibuffer_complete_word): Use the macro
16249 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16250
16251 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16252
16253 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16254 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16255 that is zero, convert an eight-bit char to multibyte.
16256 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16257 non-emacs case.
16258 (PATFETCH): Convert an eight-bit char to multibyte.
16259 (HANDLE_UNIBYTE_RANGE): New macro.
16260 (regex_compile): Setup the compiled pattern for multibyte chars
16261 even if the given regex string is unibyte. Use PATFETCH_RAW
16262 instead of PATFETCH in many places. To handle `charset'
16263 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16264 only for ASCII chars.
16265 (analyse_first) <exactn>: Simplify because the compiled pattern
16266 is multibyte.
16267 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16268 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16269 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16270 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16271 multibyte always 1.
16272 (re_search_2): In emacs, set the locale variable multibyte to 1,
16273 otherwise to 0. New local variable target_multibyte. Check it
16274 to decide the multibyteness of STR1 and STR2. If
16275 target_multibyte is zero, convert unibyte chars to multibyte
16276 before translating and checking fastmap.
16277 (TARGET_CHAR_AND_LENGTH): New macro.
16278 (re_match_2_internal): In emacs, set the locale variable multibyte
16279 to 1, otherwise to 0. New local variable target_multibyte. Check
16280 it to decide the multibyteness of STR1 and STR2. Use
16281 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16282 <charset, charset_not>: If multibyte is nonzero, check fastmap
16283 only for ASCII chars. Call bcmp_translate with
16284 target_multibyte, not with multibyte.
16285 <begline>: Declare the local variable C as `unsigned'.
16286 (bcmp_translate): Change the last arg name to target_multibyte.
16287
16288 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16289 the regexp pattern and the matching target. Set cp->buf.multibyte
16290 to the multibyteness of the regexp pattern. Set
16291 cp->but.target_multibyte to the multibyteness of the matching target.
16292 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16293 FETCH_STRING_CHAR_ADVANCE.
16294 (Freplace_match): Convert unibyte chars to multibyte.
16295
16296 * syntax.c (char_quoted, back_comment, scan_words)
16297 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16298 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16299 unibyte chars to multibyte.
16300 (skip_chars): Delete the arg syntaxp, and move the code for
16301 handling syntaxes to skip_syntaxes. Change callers.
16302 Fix the case that the multibyteness of STRING and the current
16303 buffer doesn't match.
16304 (skip_syntaxes): New function.
16305 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16306 SINGLE_BYTE_CHAR_P.
16307
163082008-02-01 Kenichi Handa <handa@m17n.org>
16309
16310 * xfaces.c (QCfontset): New variable.
16311 (LFACE_FONTSET): New macro.
16312 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16313 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16314 (Finternal_set_lisp_face_attribute)
16315 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16316 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16317 check also LFACE_FONTSET_INDEX.
16318 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16319 attrs[LFACE_FONT_INDEX].
16320 (syms_of_xfaces): Intern and staticpro QCfontset.
16321
16322 * dispextern.h (enum lface_attribute_index): New member
16323 LFACE_FONTSET_INDEX.
16324
16325 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16326
163272008-02-01 Kenichi Handa <handa@m17n.org>
16328
16329 * coding.c (coding_set_destination): Fix coding->destination for
16330 the case converting a region.
16331 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16332 (encode_coding_object): Fix coding->dst_pos and
16333 coding->dst_pos_byte for the case converting a region.
16334
16335 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16336
16337 * character.h (BYTE8_STRING): New macro.
16338
16339 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16340
163412008-02-01 Kenichi Handa <handa@m17n.org>
16342
16343 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16344 characters by octal form.
16345
16346 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16347
16348 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16349 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16350 _fetch_multibyte_char_len.
16351 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16352
16353 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16354
16355 * casefiddle.c (casify_object): Simplify. Handle the case that
16356 the case conversion change the byte length.
16357 (casify_region): Likewise.
16358
16359 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16360
16361 * character.c (_fetch_multibyte_char_len): Delete this variable.
16362 (syms_of_character): Setup Vprintable_chars.
16363
16364 * editfns.c (Fchar_equal): Fix for the unibyte case.
16365 (Finsert_byte): New function.
16366 (syms_of_editfns): Defsubr it.
16367
16368 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16369 of direct code 0x3ffff.
16370
16371 * search.c (Freplace_match): Fix for the unibyte case.
16372
163732008-02-01 Kenichi Handa <handa@m17n.org>
16374
16375 * lread.c (safe_to_load_p): Fix the logic.
16376
16377 * syntax.c (scan_words): Don't treat characters belonging to
16378 different scripts as constituting a word.
16379
16380 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16381
16382 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16383
16384 * emacs.c (main): In the case of --unibyte, instead of aborting on
16385 finding non-empty buffer, make it unibyte.
16386
163872008-02-01 Kenichi Handa <handa@m17n.org>
16388
16389 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16390 to create a fontset.
16391
163922008-02-01 Dave Love <fx@gnu.org>
16393
16394 * character.c (Funibyte_char_to_multibyte): Doc fix.
16395
16396 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16397
163982008-02-01 Kenichi Handa <handa@m17n.org>
16399
16400 * fontset.c (fontset_add): Make the type `int'.
16401 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16402
16403 * character.c (unibyte_char_to_multibyte)
16404 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16405 charset_unibyte, not charset_primary.
16406
16407 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16408
16409 * charset.c (charset_unibyte): Rename from charset_primary.
16410 (Funibyte_charset): Rename from Fprimary_charset.
16411 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16412 (syms_of_charset): Adjust for the above changes.
16413
16414 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16415 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16416 it->multibyte_p is zero.
16417
16418 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16419 Delete extern.
16420
164212008-02-01 Kenichi Handa <handa@m17n.org>
16422
16423 * coding.c (Fdefine_coding_system_internal): Fix category setting
16424 for a coding system of type iso-2022.
16425
164262008-02-01 Kenichi Handa <handa@m17n.org>
16427
16428 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16429
164302008-02-01 Kenichi Handa <handa@m17n.org>
16431
16432 * syntax.c (Vnext_word_boundary_function_table): New variable.
16433 (next-word-boundary-function-table): Declare it as a Lisp variable
16434 in syms_of_syntax.
16435 (scan_words): Call functions in Vnext_word_boundary_function_table
16436 if any.
16437
16438 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16439
16440 * fontset.c (fs_load_font): If fontp->charset is not negative,
16441 return fontp without setting its members.
16442
164432008-02-01 Dave Love <fx@gnu.org>
16444
16445 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16446
16447 * m/sparc.h (HAVE_ALLOCA): Delete.
16448
16449 * s/irix6-5.h: Don't include strings.h.
16450 (bcopy, bzero, bcmp): Don't undef.
16451
16452 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16453
16454 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16455 (TIOCSIGSEND): Don't test IRIX6.
16456 (bcopy, bzero, bcmp): Define conditionally.
16457
164582008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * buffer.c (Qas, Qmake, Qto): New variables.
16461 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16462 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16463
16464 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16465 we are inserting a process output into a multibyte buffer.
16466
16467 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16468 multibyte_char_to_unibyte.
16469
16470 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16471 by the primary charset, make it eight-bit char.
16472 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16473
16474 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16475 (charset_8_bit__control, charset_8_bit_graphic)
16476 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16477 (define_charset_internal): New function.
16478 (syms_of_charset): Call define_charset_internal for pre-defined
16479 charsets.
16480
16481 * charset.h (charset_8_bit): Extern it.
16482
16483 * coding.c (make_conversion_work_buffer): Adjust for the change
16484 of Fset_buffer_multibyte.
16485 (encode_coding_raw_text): Increment p0 in the loop.
16486
16487 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16488
16489 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16490 for the change of Fset_buffer_multibyte.
16491
16492 * fns.c (Fstring_to_multibyte): New function.
16493 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16494
164952008-02-01 Dave Love <fx@gnu.org>
16496
16497 * xfns.c (x_put_x_image): Declare args.
16498
16499 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16500 (try_font_list): Declare an arg.
16501
16502 * xdisp.c (message2_nolog, set_message): Declare an arg.
16503
16504 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16505
16506 * syntax.c (scan_sexps_forward): Declare an arg.
16507
16508 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16509 Declare an arg.
16510
16511 * lisp.h (Fnew_fontset): Declare.
16512
16513 * keymap.c (push_key_description): Call CHARACTERP correctly.
16514
16515 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16516 (face_for_char): Delete unused vars.
16517 (Fset_fontset_font): Doc fix. Delete unused vars.
16518
16519 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16520
16521 * composite.c (update_compositions): Declare arg.
16522
16523 * cm.c (calccost, cmgoto): Declare args.
16524
16525 * charset.c: Remove `emacs' conditional. Doc fixes.
16526 (map_char_table_for_charset): Declare.
16527
16528 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16529
16530 * ccl.c: Remove `emacs' conditional.
16531
165322008-02-01 Kenichi Handa <handa@m17n.org>
16533
16534 The following changes are to allow specifying multiple font
16535 patterns for a character range (specified by script or charset).
16536
16537 * Makefile.in (abbrev.o): Depend on syntax.h.
16538 (xfaces.o): Depend on charset.h.
16539
16540 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16541 SINGLE_BYTE_CHAR_P.
16542
16543 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16544
16545 * character.h (Vchar_script_table): Extern it.
16546
16547 * character.c (Vscript_alist): Delete.
16548 (Vchar_script_table, Qchar_script_table): New variable.
16549 (syms_of_character): Declare Vchar_script_table as a lisp variable
16550 and initialize it.
16551
16552 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16553 have property char-table-extra-slots, make no extra slot.
16554
16555 * dispextern.h (struct face): Delete member `charset'.
16556 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16557 SINGLE_BYTE_CHAR_P.
16558 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16559 Add prototypes.
16560 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16561 (generate_ascii_font_name): Rename from generate_ascii_font.
16562
16563 * fontset.h (get_font_repertory_func): New prototype.
16564 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16565 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16566
16567 * fontset.c (Qprepend, Qappend): New variables.
16568 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16569 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16570 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16571 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16572 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16573 (load_font_get_repertory): New functions.
16574 (fontset_set): Delete.
16575 (fontset_face): New arg FACE. Return face ID, not face.
16576 Complete re-write to handle new fontset structure. Change caller.
16577 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16578 (face_for_char): Don't call lookup_face.
16579 (make_fontset_for_ascii_face): New arg FACE.
16580 (fs_load_font): New arg CHARSET_ID. Don't check
16581 Vfont_encoding_alist here.
16582 (find_font_encoding): New function.
16583 (list_fontsets): Use STRINGP, not ! NILP.
16584 (accumulate_script_ranges): New function.
16585 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16586 re-written to handle new fontset structure.
16587 (Ffontset_font): Return a copy of element.
16588 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16589 docstring of font-encoding-alist.
16590
16591 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16592 (Fset_fotset_font): Fix arguments to 5.
16593
16594 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16595
16596 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16597 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16598 (highlight_trailing_whitespace): Adjust for the change of
16599 lookup_named_face.
16600
16601 * xfaces.c: Include charset.h.
16602 (load_face_font): Delete argument C. Change caller.
16603 (generate_ascii_font_name): Rename from generate_ascii_font.
16604 (font_name_registry): New function.
16605 (cache_face): Store ascii faces before non-ascii faces in buckets.
16606 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16607 Lookup only ascii faces.
16608 (lookup_non_ascii_face): New function.
16609 (lookup_named_face): Delete argument C. Change caller.
16610 (lookup_derived_face): Delete argument C. Change caller.
16611 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16612 a string, just call font_list with it.
16613 (choose_face_font): Delete arguments FACE and C. New arg
16614 FONT_SPEC. Change caller.
16615 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16616 Change caller.
16617 (realize_non_ascii_face): New function.
16618 (realize_x_face): Call load_face_font here.
16619 (realize_tty_face): Delete argument C. Change caller.
16620 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16621 get a face ID.
16622 (dump_realized_face): Don't print charset of FACE.
16623
16624 * xfns.c (x_set_font): Always call x_new_fontset and
16625 store_frame_parameter.
16626 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16627 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16628
16629 * xterm.h (x_get_font_repertory): Extern it.
16630
16631 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16632 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16633 it->multibyte_p is zero.
16634 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16635 (x_new_fontset): If FONTSETNAME doesn't match any existing
16636 fontsets, create a new one.
16637 (x_get_font_repertory): New function.
16638
166392008-02-01 Kenichi Handa <handa@m17n.org>
16640
16641 * coding.c (Ffind_coding_systems_region_internal): Detect an
16642 ASCII only string correctly.
16643
16644 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16645 version is 0.
16646
166472008-02-01 Kenichi Handa <handa@m17n.org>
16648
16649 * lread.c: Include "coding.h".
16650 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16651 (load_each_byte, unread_char): New variables.
16652 (readchar_backlog): Delete.
16653 (readchar): Return a character unless load_each_byte is nonzero.
16654 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16655 cons. If unread_char is not -1, simply return it.
16656 (unreadchar): Handle the case that readcharfun is
16657 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16658 (read_multibyte): Delete.
16659 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16660 (read_emacs_mule_char): New functions.
16661 (Fload): Even if the file doesn't have the extension ".elc", if
16662 safe_to_load_p returns a positive version number, assume that the
16663 file contains bytecompiled code. If the version is less than 22,
16664 load the file while decoding multibyte sequences by emacs-mule.
16665 (readevalloop): Don't use readchar_backlog.
16666 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16667 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16668 (read_escape): Delete the arg BYTEREP.
16669 (read1): Set load_each_byte to 1 temporarily while handling
16670 #@NUMBER. Don't call read_multibyte.
16671 (read_vector): Call Fread with a cons. If readcharfun is
16672 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16673 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16674 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16675 and Qload_force_doc_strings.
16676
166772008-02-01 Kenichi Handa <handa@m17n.org>
16678
16679 * xdisp.c (face_before_or_after_it_pos): Call
16680 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16681
166822008-02-01 Kenichi Handa <handa@m17n.org>
16683
16684 * character.h (TRAILING_CODE_P): New macro.
16685 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16686 (string_char_with_unification): Fix prototype.
16687 (Vscript_alist): Extern it.
16688
16689 * character.c (Vscript_alist): New variable.
16690 (string_char_with_unification, str_as_unibyte)
16691 (string_escape_byte8): Add `const' to local variables.
16692 (syms_of_character): Declare script-alist as a Lisp variable.
16693
16694 * charset.h (Vcharset_ordered_list): Extern it.
16695 (charset_ordered_list_tick): Extern it.
16696 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16697 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16698 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16699 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16700 (Funify_charset): Adjust for the change of Funify_charset.
16701
16702 * charset.c (charset_ordered_list_tick): New variable.
16703 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16704 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16705 deunify intead of unify a charset.
16706 (string_xstring_p): Add `const' to local variables.
16707 (find_charsets_in_text): Add `const' to arguments and local variables.
16708 (encode_char): Adjust for the change of Funify_charset. Fix
16709 detecting of invalid code.
16710 (Fset_charset_priority): Increment charset_ordered_list_tick.
16711 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16712 and TO_CODE.
16713
16714 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16715 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16716 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16717 (decode_coding_ccl, consume_chars)
16718 (Ffind_coding_systems_region_internal)
16719 (Fcheck_coding_systems_region): Add `const' to local variables.
16720
16721 * print.c (print_object): Use octal form for printing the
16722 contents of a bool vector.
16723
167242008-02-01 Dave Love <fx@gnu.org>
16725
16726 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16727 <version == 20>: Refuse to load.
16728
167292008-02-01 Dave Love <fx@gnu.org>
16730
16731 * fns.c: Move coding.h.
16732 (Qcodeset, Qdays, Qmonths): New.
16733 (concat): Use CHARACTERP instead of INTEGERP.
16734 (Flocale_codeset): Delete.
16735 (Flanginfo): New function.
16736 (syms_of_fns): Change accordingly.
16737
16738 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16739
167402008-02-01 Dave Love <fx@gnu.org>
16741
16742 * casetab.c (init_casetab_once, init_casetab_once): Fix
16743 CHAR_TABLE_SET call.
16744
16745 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16746
16747 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16748
16749 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16750 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16751 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16752
16753 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16754
16755 * coding.c (ENCODE_DESIGNATION, decode_eol)
16756 (make_conversion_work_buffer, code_conversion_restore)
16757 (Fdefine_coding_system_internal): Convert Lisp types.
16758 (code_conversion_restore): Use EQ, not ==.
16759 (Fencode_coding_string): Fix code_convert_string call.
16760
16761 * coding.h (code_convert_region): Fix prototype.
16762
16763 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16764
16765 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16766 (Ffontset_info): Convert Lisp types.
16767
16768 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16769
16770 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16771
16772 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16773
16774 * chartab.c: Include "...h", not <...h> in some cases.
16775
16776 * callproc.c (Fcall_process): Remove unused variables.
16777
167782008-02-01 Dave Love <fx@gnu.org>
16779
16780 * coding.c (Fset_coding_system_priority): Allow null arg list.
16781
167822008-02-01 Dave Love <fx@gnu.org>
16783
16784 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16785 (Fself_insert_and_exit): Use CHARACTERP.
16786
16787 * callproc.c (Fcall_process): Remove unused vars.
16788
16789 * xterm.c (XTread_socket): Add extra dead keysyms.
16790
16791 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16792
16793 * dispextern.h: Remove prototypes for redraw_frame,
16794 redraw_garbaged_frames.
16795
16796 * cmds.c (Fself_insert_command): Use CHARACTERP.
16797
16798 * chartab.c (make_sub_char_table): Remove unused var.
16799 (Fset_char_table_default, Fmap_char_table): Doc fix.
16800
16801 * keymap.c (access_keymap): Remove generic char code.
16802 (push_key_description): Use CHARACTERP.
16803
168042008-02-01 Dave Love <fx@gnu.org>
16805
16806 * charset.c: Doc fixes.
16807 (Funify_charset): Extra checking.
16808
168092008-02-01 Dave Love <fx@gnu.org>
16810
16811 * lread.c: Remove some unused variables.
16812 (safe_to_load_p): If safe, return the magic number version byte.
16813 (Fload): Maybe use load-with-code-conversion.
16814
168152008-02-01 Kenichi Handa <handa@m17n.org>
16816
16817 * category.c (Fmodify_category_entry): Don't modify the contents
16818 of category_set for characters out of the range. Avoid
16819 unnecessary modification.
16820
16821 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16822 Vchar_unify_table. The default value of the table is now nil.
16823
16824 * character.c (syms_of_character): Setup Vchar_width_table for
16825 eight-bit-control and raw-byte chars.
16826
16827 * charset.h (enum define_charset_arg_index): Delete
16828 charset_arg_parents and add charset_arg_subset and
16829 charset_arg_superset.
16830 (enum charset_attr_index): Delete charset_parents and add
16831 charset_subset and charset_superset.
16832 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16833 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16834 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16835 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16836 (CHARSET_SUPERSET): New macros.
16837 (charset_work): Extern it.
16838 (ENCODE_CHAR): Use charset_work.
16839 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16840 (map_charset_chars): Extern it.
16841
16842 * charset.c (load_charset_map): Set the default value of encoder
16843 and deunifier char-tables to nil.
16844 (map_charset_chars): Change argument. Change callers. Use
16845 map_char_table_for_charset instead of map_char_table.
16846 (Fmap_charset_chars): New optional args from_code and to_code.
16847 (Fdefine_charset_internal): Adjust for the change of
16848 `define-charset' (:parents -> :subset or :superset).
16849 (charset_work): New variable.
16850 (encode_char, syms_of_charset): Adjust for the change of
16851 Fdefine_charset_internal.
16852 (Ffind_charset_string): Setup the vector `charsets' correctly.
16853
16854 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16855 the previous change.
16856 (char_table_ref_and_range): Adjust for the above change.
16857 (map_sub_char_table_for_charset): New function.
16858 (map_char_table_for_charset): New function.
16859
16860 * keymap.c (describe_vector): Handle a char-table directly here.
16861 (describe_char_table): Delete.
16862
16863 * lisp.h (map_charset_chars): Delete.
16864
168652008-02-01 Dave Love <fx@gnu.org>
16866
16867 * fns.c (count_combining): Comment out (unused).
16868 (Flocale_codeset): New.
16869 (syms_of_fns): Defsubr it.
16870
16871 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16872 (size_t): Remove.
16873
168742008-02-01 Dave Love <fx@gnu.org>
16875
16876 * Makefile.in (chartab.o): Depend on charset.h.
16877
168782008-02-01 Kenichi Handa <handa@m17n.org>
16879
16880 * character.c (syms_of_character): Set the default value of
16881 Vprintable_chars to Qnil.
16882
168832008-02-01 Dave Love <fx@gnu.org>
16884
16885 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16886
168872008-02-01 Kenichi Handa <handa@m17n.org>
16888
16889 * charset.c (load_charset_map): Handle the case that from < to
16890 correctly.
16891
16892 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16893 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16894 Pay attention to raw-8-bit chars.
16895
168962008-02-01 Kenichi Handa <handa@m17n.org>
16897
16898 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16899 It is not bytecompiled now.
16900
16901 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16902 (charset_jisx0208): New variables.
16903 (Fdefine_charset_internal): Setup them if appropriate.
16904 (init_charset_once): Initialize them to -1.
16905
16906 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16907 (charset_jisx0208): Extern them.
16908
16909 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16910 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16911 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16912 (setup_iso_safe_charsets): Fix arguments to Fassq.
16913 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16914 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16915 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16916 (encode_coding_iso_2022): Change the 1st arg to
16917 ENCODE_ISO_CHARACTER to a variable.
16918
169192008-02-01 Kenichi Handa <handa@m17n.org>
16920
16921 * charset.h (enum define_charset_arg_index): New enums
16922 charset_arg_min_code and charset_arg_max_code.
16923 (struct charset): New member char_index_offset.
16924
16925 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16926 Take charset->char_index_offset into account.
16927 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16928 args[charset_arg_max_code]. Setup charset.char_index_offset.
16929 (syms_of_charset): Fix args to Fdefine_charset_internal.
16930
169312008-02-01 Dave Love <fx@gnu.org>
16932
16933 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16934
169352008-02-01 Dave Love <fx@gnu.org>
16936
16937 * coding.c: Doc fixes.
16938 (Fcoding_system_aliases): Fix return value.
16939 (Qmac): Remove (duplicated) definition.
16940
169412008-02-01 Dave Love <fx@gnu.org>
16942
362654a6
JB
16943 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16944 New functions.
aac0c6e3
MR
16945
16946 * character.c (Fstring): Doc fix.
16947
16948 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16949
362654a6 16950 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16951 (font-encoding-alist): Doc fix.
16952
169532008-02-01 Dave Love <fx@gnu.org>
16954
16955 * term.c (costs_set): Declare static, non-initialized for pcc.
16956 (encode_terminal_code): Remove unused var.
16957
16958 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16959 for K&R.
16960
16961 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16962
16963 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16964 (suffixes): Move out of make_subsidiaries for K&R.
16965
16966 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16967
16968 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16969
169702008-02-01 Dave Love <fx@gnu.org>
16971
16972 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16973
16974 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16975
169762008-02-01 Yong Lu <lyongu@asia-infonet.com>
16977
16978 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16979
16980 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16981
169822008-02-01 Kenichi Handa <handa@m17n.org>
16983
16984 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16985 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16986
169872008-02-01 Kenichi Handa <handa@m17n.org>
16988
16989 * coding.c (decode_coding_charset): Adjust for the change of
16990 Fdefine_coding_system_internal.
16991 (Fdefine_coding_system_internal): For a coding system of
16992 `charset' type, store a list of charset IDs in
16993 `charset_attr_charset_valids' element of coding attributes.
16994
169952008-02-01 Kenichi Handa <handa@m17n.org>
16996
16997 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16998 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16999 caller. Handle 2-byte and 3-byte charsets correctly.
17000 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17001 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17002 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17003 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17004 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17005 sequence.
17006 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17007 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17008 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17009 and alt&rule composition.
17010 (decode_coding_iso_2022): Handle composition correctly.
17011 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17012
17013 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17014 re-defining a charset. If the charset has :emacs-mule-id, setup
17015 emacs_mule_bytes.
17016 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17017
170182008-02-01 Kenichi Handa <handa@m17n.org>
17019
17020 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17021 (encode_coding_big5, encode_coding_charset): If coding requires safe
17022 encoding, produce a character specified by
17023 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17024
170252008-02-01 Dave Love <fx@gnu.org>
17026
17027 * xterm.c (XSetIMValues): Declare.
17028
17029 * process.c: Conditionally include sys/wait.h, pty.h.
17030
17031 * print.c (print_object): Fix print format for 64-bit systems.
17032
17033 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17034
17035 * buffer.c (emacs_strerror): Declare.
17036
17037 * fontset.c (Fclear_face_cache): Declare.
17038 (accumulate_font_info): Comment-out (unused).
17039 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17040 variables.
17041
17042 * character.h (string_escape_byte8): Declare.
17043
17044 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17045 unused vars.
17046 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17047 (Fmap_charset_chars): Doc fix.
17048
17049 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17050 (Fset_coding_system_priority, Fset_coding_system_priority)
17051 (Fdefine_coding_system_internal): Doc fix.
17052
170532008-02-01 Dave Love <fx@gnu.org>
17054
17055 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17056
170572008-02-01 Kenichi Handa <handa@m17n.org>
17058
17059 * character.c (string_escape_byte8): Make multibyte string with
17060 correct size.
17061
17062 * charset.c (Fmake_char): Delete unnecessary code.
17063
170642008-02-01 Kenichi Handa <handa@m17n.org>
17065
17066 * xfns.c (x_encode_text): Allocate coding.destination here, and
17067 call encode_coding_object with dst_object Qnil.
17068
17069 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17070 multibyte form correctly.
17071
17072 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17073 against Vfont_encoding_alist.
17074
17075 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17076 handling of charset list.
17077 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17078 (decode_coding_object): Move point to coding->dst_pos before
17079 calling post-read-conversion function.
17080 (encode_coding_object): Give correct arguments to
17081 pre-write-conversion. Ignore the return value of
17082 pre-write-conversion function. Pay attention to the case that
17083 pre-write-conversion changes the current buffer. If dst_object is
17084 Qt, even if coding->src_bytes is zero, allocate at least one byte
17085 to coding->destination.
17086
17087 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17088
17089 * charset.c (Fmake_char): Make it more backward compatible.
17090 (Fmap_charset_chars): Fix docstring.
17091
170922008-02-01 Dave Love <fx@gnu.org>
17093
17094 * coding.c: Doc fixes.
17095 (Fdefine_coding_system_alias): Use names, not symbols, in
17096 coding-system-alist.
17097
170982008-02-01 Kenichi Handa <handa@m17n.org>
17099
17100 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17101 of calling free_realized_face.
17102
171032008-02-01 Yong Lu <lyongu@asia-infonet.com>
17104
17105 * charset.c (read_hex): Don't treat SPC as a comment starter.
17106 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17107 (Fdecode_char): Fix typo.
17108
171092008-02-01 Kenichi Handa <handa@m17n.org>
17110
17111 * charset.h (struct charset): New member `code_space_mask'.
17112
17113 * coding.c (coding_set_source): Delete the local variable beg_byte.
17114 (encode_coding_charset, Fdefine_coding_system_internal):
17115 Delete the local variable charset.
17116 (Fdefine_coding_system_internal): Setup
17117 attrs[coding_attr_charset_valids] correctly.
17118
17119 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17120 member to check if CODE is valid or not.
17121 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17122 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17123 is within the range of charset->min_code and carset->max_code.
17124
171252008-02-01 Dave Love <fx@gnu.org>
17126
17127 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17128
17129 * dispextern.h (generate_ascii_font): Fix return type.
17130
17131 * xfaces.c (generate_ascii_font): Fix arg declaration.
17132
17133 * coding.c (coding_inherit_eol_type)
17134 (Fset_terminal_coding_system_internal)
17135 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17136
171372008-02-01 Kenichi Handa <handa@m17n.org>
17138
17139 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17140 multiple charsets correctly.
17141
171422008-02-01 Kenichi Handa <handa@m17n.org>
17143
17144 * search.c (boyer_moore): Fix handling of multibyte character
17145 translation.
17146
17147 * xdisp.c (display_mode_element): When the variable `elt' is
17148 changed, update `this' and `lisp_string'.
17149
171502008-02-01 Kenichi Handa <handa@m17n.org>
17151
17152 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17153
17154 * callproc.c (Fcall_process): Be sure to give the current buffer
17155 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17156
17157 * charset.c (struct charset_map_entries): New struct.
17158 (load_charset_map): Rename from parse_charset_map. New args
17159 entries and n_entries. Change caller.
17160 (load_charset_map_from_file): Rename from load_charset_map.
17161 Change caller. New arg control_flag. Call load_charset_map at
17162 the tail.
17163 (load_charset_map_from_vector): New function.
17164 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17165 (encode_char): If the charset is compact, change a character index
17166 to a code point.
17167
17168 * coding.c (coding_alloc_by_making_gap): Check the case that the
17169 source and destination are the same correctly.
17170 (decode_coding_raw_text): Set coding->consumed_char and
17171 coding->consumed to 0.
17172 (produce_chars): If coding->chars_at_source is nonzero, update
17173 coding->consumed_char and coding->consumed before calling
17174 alloc_destination.
17175 (Fdefine_coding_system_alias): Register ALIAS in
17176 Vcoding_system_alist.
17177 (syms_of_coding): Define `no-conversion' coding system at the tail.
17178
17179 * fileio.c (Finsert_file_contents): Set coding_system instead of
17180 val. If the current buffer is multibyte, always call
17181 decode_coding_gap.
17182
17183 * xfaces.c (try_font_list): Give higher priority to fontset's
17184 family than face's family.
17185
171862008-02-01 Kenichi Handa <handa@m17n.org>
17187
17188 * callproc.c (Fcall_process): Be sure to give the current buffer
17189 to decode_coding_c_string.
17190
17191 * xfaces.c (try_font_list): Give a family specified in a fontset
17192 higher priority than a family specified in a face.
17193
171942008-02-01 Kenichi Handa <handa@m17n.org>
17195
17196 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17197 Fix arguments to insert_from_buffer.
17198
17199 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17200
172012008-02-01 Kenichi Handa <handa@m17n.org>
17202
17203 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17204 (decode_coding_gap): Set coding->dst_multibyte correctly.
17205
172062008-02-01 Kenichi Handa <handa@m17n.org>
17207
17208 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17209 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17210 (encode_coding_utf_16): Substitute coding->default_char for
17211 non-Unicode characters.
17212 (decode_coding): Don't call record_insert here.
17213 (setup_coding_system): Initialize `surrogate' of
17214 coding->spec.utf_16 to 0.
17215 (EMIT_ONE_BYTE): Fix for multibyte case.
17216
17217 * insdel.c (insert_from_gap): Call record_insert.
17218
172192008-02-01 Kenichi Handa <handa@m17n.org>
17220
17221 * casefiddle.c (casify_region): Fix multibyte case.
17222
17223 * character.c (c_string_width): Add return type `int'.
17224 (char_string_with_unification): Delete arg ADVANCED.
17225
17226 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17227 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17228 (CHAR_STRING_ADVANCE): Make it do-while statement.
17229
17230 * chartab.c (sub_char_table_set_range): Optimize for the case
17231 DEPTH == 3. Add workaround code for a GCC optimization bug.
17232
17233 * charset.c (parse_charset_map): Remove an unused variable.
17234
17235 * coding.c: Delete unused variables.
17236
17237 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17238 earlier. If inserted is zero and the coding system doesn't
17239 require flushing, don't call decode_coding_gap.
17240
17241 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17242
172432008-02-01 Kenichi Handa <handa@m17n.org>
17244
17245 The following changes are for using Unicode as an internal
17246 character model, and use UTF-8 format for buffer/string
17247 representation.
17248
17249 * .gdbinit (xchartable): Adjust for the change of char table structure.
17250 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17251
17252 * Makefile.in (obj): Add character.o and chartab.o.
17253 (lisp, shortlisp): Remove utf-8.elc.
17254 (*.o): For many files, change dependency on charset.h to
17255 character.h, and add dependency on character.h.
17256 (character.o, chartab.o): New targets.
17257
17258 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17259 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17260 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17261 of "charset.h".
17262
17263 * dired.c, filelock.c: Include "character.h".
17264
17265 * alloc.c: Include "character.h" instead of "charset.h".
17266 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17267 (syms_of_alloc): Remove defsubr for Smake_char_table.
17268
17269 * buffer.c: Include "character.h" instead of "charset.h", don't
17270 include "coding.h".
17271 (Fset_buffer_multibyte): Adjust for UTF-8.
17272
17273 * buffer.h: EXFUN Fbuffer_live_p.
17274
17275 * callproc.c: Include "character.h" instead of "charset.h".
17276 (Fcall_process): Big change for the new code-conversion APIs.
17277
17278 * casetab.c: Include "character.h" instead of "charset.h".
17279 (set_canon, set_identity, shuffle): Adjust for the new
17280 map_char_table spec.
17281 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17282 accessing the char table structure.
17283
17284 * chartab.c: New file that implements char table.
17285
17286 * category.c: Include "character.h".
17287 (copy_category_entry): New function.
17288 (copy_category_table): Call map_char_table and copy_category_entry.
17289 (Fmake_category_table): Initialize all top-level slots.
17290 (char_category_set): New function.
17291 (modify_lower_category_set): Delete.
17292 (Fmodify_category_entry): Call char_table_ref_and_range.
17293
17294 * category.h (CATEGORY_SET): Just call char_category_set.
17295
17296 * ccl.c: Include "character.h".
17297 (Qccl, Qcclp): New variables.
17298 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17299 it's less than 256.
17300 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17301 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17302 and DST type.
17303 (ccl_driver): Change types of argument, adjust code accordingly.
17304 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17305 ccl_driver.
17306 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17307
17308 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17309 New members src_multibyte, dst_multibyte, consumed, and produced.
17310 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17311 (CODING_SPEC_CCL_PROGRAM): New macro.
17312 (ccl_driver): Update prototype.
17313 (Qccl, Qcclp, Fccl_program_p): Extern them.
17314 (CHECK_CCL_PROGRAM): New macro.
17315
17316 * character.c, character.h, chartab.c: New files.
17317
17318 * charset.c: Mostly re-written. Move character and multibyte sequence
17319 handling codes to character.c.
17320
17321 * charset.h: Mostly re-written. Move character and multibyte sequence
17322 handling codes to character.h.
17323
17324 * coding.c, coding.h: Mostly re-written.
17325
17326 * composite.c: Include "character.h" instead of "charset.h".
17327 (CHAR_WIDTH): Move to character.h.
17328 (HASH_KEY, HASH_VALUE): Delete.
17329
17330 * composite.h (enum composition_method): Change order of enumeration
17331 symbols.
17332
17333 * data.c: Include "character.h" instead of "charset.h".
17334 (Faref): Call CHAR_TABLE_REF for a char table.
17335 (Faset): Call CHAR_TABLE_SET for a char table.
17336
17337 * dispextern.h (free_realized_face, check_face_attribytes)
17338 (generate_ascii_font): Extern them.
17339 (free_realized_multibyte_face): Delete extern.
17340
17341 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17342 table structure.
17343
17344 * editfns.c: Include "character.h" instead of "charset.h".
17345 (Fchar_to_string): Always call CHAR_STRING.
17346
17347 * emacs.c (main): Call init_charset_once, init_charset,
17348 syms_of_chartab, and syms_of_character.
17349
17350 * fileio.c: Include "character.h" instead of "charset.h".
17351 (Finsert_file_contents): Big change for the new code-conversion API.
17352 (choose_write_coding_system, Fwrite_region): Likewise.
17353 (build_annotations_2): Delete.
17354 (e_write): Big change for the new code-conversion API.
17355
17356 * fns.c: Include "character.h" instead of "charset.h".
17357 (copy_sub_char_table): Move to chartab.c.
17358 (Fcopy_sequence): Call copy_char_table for a char table.
17359 (concat): Delete codes calling count_multibyte.
17360 (string_char_to_byte, string_byte_to_char): Adjust for the new
17361 multibyte form.
17362 (internal_equal): Adjust for the change of char table structure.
17363 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17364 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17365 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17366 (char_table_translate, optimize_sub_char_table)
17367 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17368 chartab.c.
17369 (char_table_ref_and_index): Delete.
17370 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17371 (Fmd5): Call preferred_coding_system instead of accessing
17372 Vcoding_category_list. Adjust for the new code-conversion API.
17373 (syms_of_fns): Move defsubr for char table related functions to
17374 chartab.c.
17375
17376 * fontset.c: Mostly re-written.
17377
17378 * fontset.h (struct font_info): Change type of the member encoding_type.
17379 (enum FONT_SPEC_INDEX): New enum.
17380 (fontset_font_pattern, fs_load_font): Update prototype.
17381 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17382
17383 * indent.c: Include "character.h" instead of "charset.h".
17384 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17385
17386 * insdel.c: Include "character.h" instead of "charset.h".
17387 (copy_text): Don't refer to Vnonascii_translation_table.
17388 (insert_from_gap): New function.
17389
17390 * keyboard.c: Include "character.h" instead of "charset.h".
17391 (command_loop_1): Never call direct_output_forward_char before
17392 a non-ASCII character.
17393 (read_char): If Vkeyboard_translate_table is a char table, always
17394 translate a character.
17395
17396 * keymap.c: Include "character.h".
17397 (store_in_keymap): Handle the case that IDX is a cons.
17398 (Fdefine_key): Handle the case that KEY is a cons and the car part
17399 is also a cons (range).
17400 (push_key_description): Adjust for the new character code.
17401 (describe_vector): Call describe_char_table for a char table.
17402 (describe_char_table): New function.
17403
17404 * keymap.h (describe_char_table): Extern it.
17405
17406 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17407 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17408 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17409 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17410 Delete.
17411 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17412 structure.
17413 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17414 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17415 (CHARTAB_SIZE_BITS_3): New macros.
17416 (chartab_size): Extern it.
17417 (struct Lisp_Char_Table): Re-design.
17418 (struct Lisp_Sub_Char_Table): New structure.
17419 (HASH_KEY, HASH_VALUE): Move from fns.c.
17420 (CHARACTERBITS): Define as 22.
17421 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17422 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17423 (GC_SUB_CHAR_TABLE_P): New macro.
17424 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17425 (code_convert_string_norecord): Deleted extern.
17426 (init_character_once, syms_of_character, init_charset)
17427 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17428
17429 * lread.c: Include "character.h".
17430 (read_multibyte): New arg NBYTES.
17431 (read_escape): Change the meaning of returned *BYTEREP.
17432 (to_multibyte): Delete.
17433 (read1): Adjust the handling of char table and string.
17434
17435 * print.c: Include "character.h" instead of "charset.h".
17436 (print_string): Convert 8-bit raw bytes to octal form by
17437 string_escape_byte8.
17438 (print_object): Adjust for the new multibyte form. Print 8-bit
17439 raw bytes always in octal form. Handle sub char table correctly.
17440
17441 * process.c: Include "character.h" instead of "charset.h".
17442 (read_process_output, send_process): Adjust for the new
17443 code-conversion API.
17444
17445 * puresize.h (BASE_PURESIZE): Increase.
17446
17447 * regex.c: Include "character.h" instead of "charset.h".
17448 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17449 (regex_compile): Accept a range whose starting and ending
17450 character have different leading bytes.
17451 (analyse_first): Adjust for the above change.
17452
17453 * search.c: Include "character.h" instead of "charset.h".
17454 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17455 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17456
17457 * syntax.c: Include "character.h" instead of "charset.h".
17458 (syntax_parent_lookup): Delete.
17459 (Fmodify_syntax_entry): Accept a cons as CHAR.
17460 (skip_chars): Adjust for the new multibyte form.
17461 (init_syntax_once): Call char_table_set_range instead of directly
17462 accessing the structure of a char table.
17463
17464 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17465 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17466 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17467 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17468
17469 * term.c: Include "buffer.h" and "character.h".
17470 (encode_terminal_code, write_glyphs): Adjust for the new
17471 code-conversion API.
17472 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17473
17474 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17475
17476 * xdisp.c: Include "character.h".
17477 (get_next_display_element): Adjust for the new multibyte form.
17478 (disp_char_vector): Adjust for the new char table structure.
17479 (decode_mode_spec_coding): Adjust for the new structure of
17480 coding system.
17481 (decode_mode_spec): Adjust for the new code-conversion API.
17482
17483 * xfaces.c: Include "character.h" instead of "charset.h".
17484 (load_face_font): Adjust for the change of choose_face_font and
17485 FS_LOAD_FONT.
17486 (generate_ascii_font): New function.
17487 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17488 (set_font_frame_param): Adjust for the change of choose_face_font.
17489 (free_realized_face): Make it public.
17490 (free_realized_faces_for_fontset): Rename from
17491 free_realized_multibyte_face. Free also faces realized for ASCII.
17492 (choose_face_font): Change arguments. Adjust for the change of
17493 fontset_font_pattern and FS_LOAD_FONT.
17494
17495 * xfns.c: Include "character.h".
17496 (x_encode_text): Adjust for the new code-conversion API.
17497
17498 * xselect.c: Don't include "charset.h".
17499 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17500
17501 * xterm.c: Include "character.h".
17502 (x_encode_char): New argument CHARSET. Change caller.
17503 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17504 Call ENCODE_CHAR instead of SPLIT_CHAR.
17505 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17506 CHAR_WIDTH instead of CHARSET_WIDTH.
17507 (XTread_socket): Adjust for the new code-conversion API.
17508 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17509 (x_load_font): Adjust for the change of struct font.
17510
175112008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17512
17513 * xfaces.c (face_at_buffer_position): Remove unused vars.
17514
175152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17516
17517 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17518 Fix overflow checking.
17519
175202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17521
17522 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17523 Cancel previous change.
17524
175252008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17526
17527 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17528 ccl->eight_bit_control. Fix check for buffer overflow.
17529 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17530 (ccl_driver): Initialize extra_bytes to 0.
17531
175322008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17533
17534 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17535 return it ORed with ctrl_modifier.
17536
175372008-01-29 Miles Bader <miles@gnu.org>
17538
17539 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17540
175412008-01-28 Jason Rumney <jasonr@gnu.org>
17542
17543 * w32.c (stat): Don't double check for networked drive.
17544
175452008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17546
17547 * window.c (run_window_configuration_change_hook): New function.
17548 Code extracted from set_window_buffer. Set the selected frame.
17549 (set_window_buffer): Use it.
17550 * window.h (run_window_configuration_change_hook): Declare.
17551 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17552
17553 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17554
175552008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17556
17557 * Makefile.in: Remove references to unused macros.
17558
175592008-01-26 Eli Zaretskii <eliz@gnu.org>
17560
17561 * w32.c (g_b_init_get_sid_sub_authority)
17562 (g_b_init_get_sid_sub_authority_count): New static variables.
17563 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17564 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17565 (init_user_info): Use them to retrieve uid and gid.
17566 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17567 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17568 st_uid and st_gid of the file.
17569
175702008-01-26 Jason Rumney <jasonr@gnu.org>
17571
17572 * w32.c (logon_network_drive): New function.
17573 (stat): Use it.
17574
175752008-01-26 Chong Yidong <cyd@stupidchicken.com>
17576
17577 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17578 invisible text covered with an ellipsis.
17579
175802008-01-25 Richard Stallman <rms@gnu.org>
17581
17582 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17583 jump back to beginning. Move some other initializations after that.
17584 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17585 New variables.
17586 (syms_of_xdisp): Init them.
17587
17588 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17589
17590 * buffer.c (reset_buffer_local_variables):
17591 Implement `permanent-local-hook'.
17592 (Qpermanent_local_hook): New variable.
17593 (syms_of_buffer): Init and staticpro it.
17594
175952008-01-25 Michael Albinus <michael.albinus@gmx.de>
17596
17597 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17598
175992008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17600
17601 * fns.c (Fclrhash): Return TABLE.
17602
176032008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17604
17605 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17606 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17607 is set even without positional changes.
17608 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17609
17610 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17611
176122008-01-23 Jason Rumney <jasonr@gnu.org>
17613
17614 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17615
17616 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17617 the unicode range available in MULE by locale-coding-system.
17618 Improve dbcs lead byte detection. Set event timestamp and modifiers
17619 earlier.
17620
176212008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17622
17623 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17624 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17625 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17626 when used on child processes.
17627
176282008-01-21 Michael Albinus <michael.albinus@gmx.de>
17629
17630 * dbusbind.c (Fdbus_method_return_internal): Rename from
17631 Fdbus_method_return.
17632 (Fdbus_unregister_object): Move to dbus.el.
17633 (Fdbus_call_method, Fdbus_method_return_internal)
17634 (Fdbus_send_signal): Improve debug messages.
17635
176362008-01-20 Martin Rudalics <rudalics@gmx.at>
17637
17638 * undo.c (undo_inhibit_record_point): New variable.
17639 (syms_of_undo): Initialize it.
17640 (record_point): Don't record point when undo_inhibit_record_point
17641 is set.
17642
176432008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17644
17645 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17646
17647 * xdisp.c (Qauto_hscroll_mode): New var.
17648 (syms_of_xdisp): Initialize it.
17649 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17650 window's buffer.
17651 (hscroll_windows): Don't check automatic_hscrolling_p here.
17652
17653 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17654 vscroll if we're setting window-buffer to the value it already has.
17655
176562008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17657
17658 * m/intel386.h: Remove references to XENIX.
17659
176602008-01-17 Andreas Schwab <schwab@suse.de>
17661
17662 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17663 instead of HAVE_X86_64_LIB64_DIR.
17664 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17665
176662008-01-17 Glenn Morris <rgm@gnu.org>
17667
17668 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17669 to HAVE_X86_64_LIB64_DIR.
17670
176712008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17672
17673 * s/irix3-3.h:
17674 * s/irix4-0.h:
17675 * s/386-ix.h:
17676 * s/domain.h:
17677 * s/hpux9-x11r4.h:
17678 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17679
17680 * sysdep.c: Remove code containing references to symbols defined
17681 by unsupported systems.
17682
176832008-01-16 Glenn Morris <rgm@gnu.org>
17684
17685 * coding.c (select-safe-coding-system-function): Doc fix.
17686
176872008-01-15 Glenn Morris <rgm@gnu.org>
17688
17689 * config.in: Revert 2008-01-13 change: this is a generated file.
17690
176912008-01-13 Tom Tromey <tromey@redhat.com>
17692
17693 * lisp.h: Fix typo.
17694
176952008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17696
17697 * m/sequent-ptx.h:
17698 * m/sequent.h:
17699 * s/ptx.h:
17700 * s/ptx4-2.h:
17701 * s/ptx4.h: Remove files for systems no longer supported.
17702
17703 * callproc.c (Fcall_process): Fix previous change.
17704
177052008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17706
17707 * unexsunos4.c: Remove file, system not supported anymore.
17708
17709 * m/mips.h:
17710 * m/intel386.h:
17711 * callproc.c:
17712 * config.in:
17713 * ecrt0.c:
17714 * emacs.c:
17715 * fileio.c:
17716 * frame.c:
17717 * getpagesize.h:
17718 * keyboard.c:
17719 * lread.c:
17720 * process.c:
17721 * puresize.h:
17722 * sysdep.c:
17723 * systty.h:
17724 * syswait.h:
17725 * unexec.c:
17726 * xdisp.c:
17727 * alloc.c: Remove code containing references to symbols defined by
17728 unsupported systems.
17729
177302008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17731
17732 * coding.c (detect_coding_mask): Fix previous change.
17733
177342008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17735
17736 * coding.c (detect_coding_iso2022): New arg
17737 latin_extra_code_state. Allow Latin extra codes only
17738 when *latin_extra_code_state is nonzero.
17739 (detect_coding_mask): If there is a NULL byte, detect the encoding
17740 as UTF-16 or binary. If Latin extra codes exist, detect the
17741 encoding as ISO-2022 only when there's no other proper encoding is
17742 found.
17743
177442008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17745
17746 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17747 #ifdef MAC_OS.
17748
177492008-01-08 Richard Stallman <rms@gnu.org>
17750
17751 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17752
177532008-01-06 Nick Roberts <nickrob@snap.net.nz>
17754
17755 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17756 menu bar in parentheses.
17757
177582008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17759
17760 * m/7300.h:
17761 * m/acorn.h:
17762 * m/alliant-2800.h:
17763 * m/alliant.h:
17764 * m/alliant1.h:
17765 * m/alliant4.h:
17766 * m/altos.h:
17767 * m/amdahl.h:
17768 * m/apollo.h:
17769 * m/att3b.h:
17770 * m/aviion-intel.h:
17771 * m/aviion.h:
17772 * m/celerity.h:
17773 * m/clipper.h:
17774 * m/cnvrgnt.h:
17775 * m/convex.h:
17776 * m/cydra5.h:
17777 * m/delta88k.h:
17778 * m/dpx2.h:
17779 * m/dual.h:
17780 * m/elxsi.h:
17781 * m/f301.h:
17782 * m/gould-np1.h:
17783 * m/gould.h:
17784 * m/i860.h:
17785 * m/ibmps2-aix.h:
17786 * m/ibmrt-aix.h:
17787 * m/ibmrt.h:
17788 * m/irist.h:
17789 * m/is386.h:
17790 * m/isi-ov.h:
17791 * m/mega68.h:
17792 * m/mg1.h:
17793 * m/news-r6.h:
17794 * m/news-risc.h:
17795 * m/news.h:
17796 * m/nh3000.h:
17797 * m/nh4000.h:
17798 * m/ns16000.h:
17799 * m/ns32000.h:
17800 * m/nu.h:
17801 * m/orion.h:
17802 * m/orion105.h:
17803 * m/paragon.h:
17804 * m/pfa50.h:
17805 * m/plexus.h:
17806 * m/pyramid.h:
17807 * m/pyrmips.h:
17808 * m/sh3el.h:
17809 * m/sps7.h:
17810 * m/sr2k.h:
17811 * m/stride.h:
17812 * m/sun1.h:
17813 * m/sun2.h:
17814 * m/sun3-68881.h:
17815 * m/sun3-fpa.h:
17816 * m/sun3-soft.h:
17817 * m/sun3.h:
17818 * m/sun386.h:
17819 * m/symmetry.h:
17820 * m/tad68k.h:
17821 * m/tahoe.h:
17822 * m/targon31.h:
17823 * m/tek4300.h:
17824 * m/tekxd88.h:
17825 * m/tower32.h:
17826 * m/tower32v3.h:
17827 * m/ustation.h:
17828 * m/wicat.h:
17829 * m/xps100.h:
17830 * s/cxux.h:
17831 * s/cxux7.h:
17832 * s/dgux.h:
17833 * s/dgux4.h:
17834 * s/dgux5-4-3.h:
17835 * s/dgux5-4r2.h:
17836 * s/esix.h:
17837 * s/esix5r4.h:
17838 * s/hiuxmpp.h:
17839 * s/hiuxwe2.h:
17840 * s/iris3-5.h:
17841 * s/iris3-6.h:
17842 * s/isc2-2.h:
17843 * s/isc3-0.h:
17844 * s/isc4-0.h:
17845 * s/isc4-1.h:
17846 * s/newsos5.h:
17847 * s/newsos6.h:
17848 * s/osf1.h:
17849 * s/osf5-0.h:
17850 * s/riscix1-1.h:
17851 * s/riscix12.h:
17852 * s/sco4.h:
17853 * s/sco5.h:
17854 * s/sunos4-0.h:
17855 * s/sunos4-1.h:
17856 * s/sunos413.h:
17857 * s/sunos4shr.h:
17858 * s/umax.h:
17859 * s/unipl5-2.h:
17860 * s/xenix.h:
17861 * cxux-crt0.s:
17862 * unexapollo.c:
17863 * unexconvex.c:
17864 * unexenix.c:
17865 * unexsni.c: Remove files for systems no longer supported.
17866
17867 * m/intel386.h: Remove references to unsupported systems.
17868
17869 * w32.c (get_emacs_configuration): Remove reference to i860.
17870
17871 * sysdep.c: Remove dead code.
17872
178732008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17874
17875 * s/rtu.h:
17876 * m/masscomp.h: Remove files. Platform is obsolete.
17877
178782008-01-04 Michael Albinus <michael.albinus@gmx.de>
17879
17880 * dbusbind.c (Fdbus_method_return): New function.
17881 (xd_read_message): Add the serial number to the event.
17882 (Fdbus_register_method): Activate the function.
17883
178842008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17885
17886 * keyboard.c (read_key_sequence): Fix typo.
17887
178882008-01-03 Michael Albinus <michael.albinus@gmx.de>
17889
17890 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17891 (xd_signature, xd_append_arg): Handle element type detection for
17892 empty arrays.
17893 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17894 SDATA () calls; this must be solved more general.
17895 (Fdbus_register_signal): Use SBYTES instead of strlen.
17896
178972008-01-03 Magnus Henoch <magnus@zemdatav>
17898
17899 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17900 unsigned int for byte values (necessary for big-endian platform).
17901 (Fdbus_call_method): Handle the case of no returned arguments.
17902
179032007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17904
17905 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17906
179072007-12-31 Magnus Henoch <mange@freemail.hu>
17908
17909 * dbusbind.c (xd_signature): Signature of variant is just "v".
17910
179112007-12-30 Michael Albinus <michael.albinus@gmx.de>
17912
17913 * dbusbind.c: Fix several errors and compiler warnings.
17914 Reported by Tom Tromey <tromey@redhat.com>.
17915 (XD_ERROR, XD_DEBUG_MESSAGE)
17916 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17917 (xd_append_arg): Part for basic D-Bus types rewritten.
17918 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17919 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17920 appropriate.
17921 (xd_read_message): Return Qnil. Don't signal an error; it is not
17922 useful during event reading.
17923 (Fdbus_register_signal): Signal an error if the check for
17924 FUNCTIONP fails.
17925 (Fdbus_register_method): New function. The implementation is not
17926 complete, the call of the function signals an error therefore.
17927 (Fdbus_unregister_object): New function, renamed from
17928 Fdbus_unregister_signal. The initial check signals an error, if
17929 the object is not well formed.
17930
179312007-12-30 Richard Stallman <rms@gnu.org>
17932
17933 * textprop.c (get_char_property_and_overlay):
17934 Signal error if POSITION is out of range in a buffer.
17935
179362007-12-29 Martin Rudalics <rudalics@gmx.at>
17937
17938 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17939 because the original parameters are in pure storage now.
17940
179412007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17942
17943 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17944
179452007-12-22 Eli Zaretskii <eliz@gnu.org>
17946
17947 * callint.c (syms_of_callint) <command-history>: Add reference to
17948 history-length in the doc string.
17949
179502007-12-17 Jason Rumney <jasonr@gnu.org>
17951
17952 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17953 before passing as wParam.
17954
179552007-12-22 Michael Albinus <michael.albinus@gmx.de>
17956
17957 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17958 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17959 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17960 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17961 as number.
17962 (Fdbus_call_method): Fix docstring.
17963
179642007-12-21 Michael Albinus <michael.albinus@gmx.de>
17965
17966 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17967 New macros.
17968 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17969 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17970 Simplify.
17971 (xd_signature): New function.
17972 (xd_append_arg): Compute also signatures. Major rewrite.
17973 (xd_retrieve_arg): Make debug messages friendly.
17974 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17975 Check for signatures of arguments.
17976
179772007-12-19 Michael Albinus <michael.albinus@gmx.de>
17978
17979 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17980 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17981 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17982 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17983 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17984 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17985 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17986 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17987 (xd_retrieve_value): Remove. Functionality included in ...
17988 (xd_append_arg): New function.
17989 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17990
179912007-12-16 Michael Albinus <michael.albinus@gmx.de>
17992
17993 * dbusbind.c (top): Include <stdio.h>.
17994 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17995 dbus_message_new_method_call and dbus_message_new_signal.
17996 (Fdbus_register_signal): Rename unique_name to uname.
17997 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17998 non-existing unique name. Fix typos in matching rule. Return an
17999 object which is useful in Fdbus_unregister_signal.
18000 (Fdbus_unregister_signal): Reimplementation, in order to remove
18001 only the corresponding entry.
18002 (Vdbus_registered_functions_table): Change the order of entries.
18003 Apply these changes in xd_read_message and Fdbus_register_signal.
18004
180052007-12-16 Andreas Schwab <schwab@suse.de>
18006
18007 * fileio.c (Finsert_file_contents): Fix overflow check to not
18008 depend on undefined integer overflow.
18009
180102007-12-14 Jason Rumney <jasonr@gnu.org>
18011
18012 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18013 for characters above 127.
18014
180152007-12-13 Jason Rumney <jasonr@gnu.org>
18016
18017 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18018 before dereferencing array.
18019 (lookup_vk_code): Remove zero comparison.
18020
180212007-12-14 Michael Albinus <michael.albinus@gmx.de>
18022
18023 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18024 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18025 Use `unsigned int' instead of `uint'.
18026 (xd_read_message, Fdbus_register_signal): Split expressions into
18027 multiple lines before operators "&&" and "||", according to the
18028 GNU Coding Standards.
18029
180302007-12-14 Eli Zaretskii <eliz@gnu.org>
18031
18032 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18033
180342007-12-12 Juri Linkov <juri@jurta.org>
18035
18036 * buffer.c (Frename_buffer): In interactive spec replace
18037 `read-buffer' with `read-string' that uses `buffer-name-history'
18038 as history, and the current buffer's name as default.
18039
180402007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18041
18042 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18043 manipulating the backtrace manually.
18044 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18045 (struct backtrace, backtrace_list): Remove.
18046 (command_loop_1): Remove dead var `no_direct'.
18047
18048 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18049 preserve non-built-in buffer-local variables.
18050 (Fkill_all_local_variables): Don't re-create&re-set permanent
18051 buffer-local variables.
18052
180532007-12-09 Juri Linkov <juri@jurta.org>
18054
18055 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18056 Lisp code that uses `read-buffer' with current buffer as default.
18057
180582007-12-08 Michael Albinus <michael.albinus@gmx.de>
18059
18060 * dbusbind.c (xd_read_message): Generate an event for every
18061 registered handler. There might be several handlers registered
18062 for the same signal.
18063 (Fdbus_register_signal): Don't overwrite a registration for the
18064 same signal. Add a new registration if handlers are different.
18065 (Vdbus_registered_functions_table): Rework doc string.
18066
180672007-12-07 Michael Albinus <michael.albinus@gmx.de>
18068
18069 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18070 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18071 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18072 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18073 Unify argument lists.
18074 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18075 arguments and hash table keys. Use unique name for service.
18076 (Fdbus_unregister_signal): Remove checks.
18077 (Vdbus_registered_functions_table): Fix doc string.
18078
180792007-12-05 Magnus Henoch <mange@freemail.hu>
18080
18081 * process.c (make_process): Initialize pty_flag to 0.
18082
180832007-12-05 Jason Rumney <jasonr@gnu.org>
18084
18085 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18086 specified XBMs.
18087
180882007-12-05 Richard Stallman <rms@gnu.org>
18089
18090 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18091
180922007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18093
18094 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18095 New variable.
18096 (mac_try_close_socket) [MAC_OSX]: New function.
18097 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18098 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18099
18100 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18101 Use mac_try_close_socket.
18102
181032007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18104
18105 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18106 reloc_base.
18107 (copy_dysymtab): Compute relocation base here.
18108 (rebase_reloc_address) [__ppc64__]: New function.
18109 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18110 changed.
18111
181122007-12-05 Jason Rumney <jasonr@gnu.org>
18113
18114 * w32proc.c (sys_spawnve): Quote args with wildcards.
18115
181162007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18117
18118 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18119 __objc_* sections.
18120 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18121
181222007-12-05 Michael Albinus <michael.albinus@gmx.de>
18123
18124 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18125 Move check for Vdbus_registered_functions_table to
18126 xd_read_queued_messages.
18127 (xd_read_queued_messages): Protect xd_read_message calls by
18128 internal_condition_case_1.
18129
181302007-12-04 Michael Albinus <michael.albinus@gmx.de>
18131
18132 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18133 Qdbus_system_bus and Qdbus_session_bus, respectively.
18134 (Vdbus_intern_symbols): Remove.
18135 (Vdbus_registered_functions_table): New hash table.
18136 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18137 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18138 Rewrite in order to manage registered functions by hash table
18139 Vdbus_registered_functions_table.
18140
181412007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18142
18143 * xterm.c: Update URL to Window Manager Specification in comment.
18144
181452007-12-02 Michael Albinus <michael.albinus@gmx.de>
18146
18147 * config.in (HAVE_DBUS): Add.
18148
18149 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18150 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18151 (obj): Add $(DBUS_OBJ).
18152 (LIBES): Add $(DBUS_LIBS).
18153 (dbusbind.o): New target.
18154
18155 * dbusbind.c: New file.
18156
18157 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18158
18159 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18160 (Qdbus_event): New Lisp symbol.
18161 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18162 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18163 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18164
18165 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18166
181672007-12-01 Richard Stallman <rms@gnu.org>
18168
18169 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18170
181712007-11-30 Jason Rumney <jasonr@gnu.org>
18172
18173 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18174 (w32con_reset_terminal_modes): Clear screen buffer.
18175 (w32_face_attributes): Don't use color indexes that are out of range.
18176 Only reverse the default colors.
18177
18178 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18179 WINDOWSNT.
18180
18181 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18182
181832007-11-29 Jason Rumney <jasonr@gnu.org>
18184
18185 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18186 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18187 if the terminal colors are initialized.
18188 (unspecified_fg, unspecified_bg): Remove unused declarations.
18189
181902007-11-29 Andreas Schwab <schwab@suse.de>
18191
18192 * keyboard.c (apply_modifiers): Fix typo.
18193
181942007-11-29 Richard Stallman <rms@gnu.org>
18195
18196 * keymap.c (Fcurrent_local_map): Doc fix.
18197
181982007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18199
18200 * s/gnu-kfreebsd.h: New file.
18201
182022007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18203
18204 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18205 Don't cast redundantly.
18206
18207 * keyboard.c (KEY_TO_CHAR): New macro.
18208 (parse_modifiers, apply_modifiers): Accept integer arguments.
18209 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18210 for chars and symbol keys.
18211 After doing such remapping, apply function-key-map again.
18212
182132007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18214
18215 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18216 compiled anymore.
18217
182182007-11-26 Andreas Schwab <schwab@suse.de>
18219
18220 * process.c (list_processes_1): Fix indentation level of the
18221 command column.
18222
182232007-11-23 Andreas Schwab <schwab@suse.de>
18224
18225 * editfns.c (Fformat): Handle %c specially since it requires the
18226 argument to be of type int.
18227
182282007-11-23 Markus Triska <markus.triska@gmx.at>
18229
18230 * emacs.c (main): Call init_editfns before init_process, since
18231 init_process sets Vprocess_connection_type depending on OS release.
18232
182332007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18234
18235 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18236 (find_symbol_value): Use do_symval_forwarding.
18237
18238 * data.c (set_internal): Set the value in the `cons-cell' (for
18239 Buffer_Local_values) not only for frame-local variables.
18240
182412007-11-22 Andreas Schwab <schwab@suse.de>
18242
18243 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18244 values to sprintf.
18245 * keymap.c (Fsingle_key_description): Likewise.
18246 * print.c (print_object): Likewise.
18247
182482007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18249
18250 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18251 file for image is nil.
18252
182532007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18254
18255 * term.c: Include stdarg.h.
18256 (fatal): Implement using varargs.
18257 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18258
182592007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18260
18261 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18262 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18263 Update call to buffer_slot_type_mismatch.
18264 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18265 (buffer_slot_type_mismatch): Update.
18266 * buffer.c (buffer_local_types): Remove.
18267 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18268 (defvar_per_buffer): Set the type in the buffer_objfwd.
18269
182702007-11-21 Jason Rumney <jasonr@gnu.org>
18271
18272 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18273 CreateFileMapping returns NULL on failure.
18274
182752007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18276
18277 * search.c (Fset_match_data): Remove the `evaporate' feature.
18278 (unwind_set_match_data): Don't use the `evaporate' feature.
18279
182802007-11-21 Jason Rumney <jasonr@gnu.org>
18281
18282 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18283
18284 * w32console.c (w32con_write_glyphs): Remove unused variables.
18285
182862007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18287
18288 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18289
18290 * s/darwin.h (MULTI_KBOARD): Remove.
18291
18292 * macfns.c (x_create_tip_frame, Fx_create_frame)
18293 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18294
182952007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18296
18297 * buffer.c (Fbuffer_local_value): Remove redundant test.
18298 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18299 than in `current-buffer' to match the comment.
18300 Do the swap using swap_in_global_binding.
18301
18302 * data.c (store_symval_forwarding, set_internal):
18303 * eval.c (specbind): Remove dead code.
18304
18305 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18306 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18307 Since we do not want to see internal Lisp_*fwd objects here.
18308
183092007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18310
18311 * sysdep.c (init_system_name): Use getaddrinfo if available.
18312
18313 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18314 (x_scroll_bar_note_movement): start, end, with, height in struct
18315 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18316
183172007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18318
18319 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18320
183212007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18322
18323 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18324 This undoes Richard's change of 14-Oct-2002.
18325
18326 * alloc.c (allocate_other_vector):
18327 * lisp.h (allocate_other_vector): Remove.
18328
18329 * window.c (struct save_window_data): Move non-lisp data to the end
18330 and make it `int' rather than Lisp_Object.
18331 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18332 Done wrap/unwrap integer values.
18333 (Fset_window_configuration, compare_window_configurations):
18334 Update use of fields to their new types.
18335
18336 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18337 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18338 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18339 (SET_SCROLL_BAR_X_WINDOW): Remove.
18340 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18341 Access the new x_window field directly.
18342 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18343 Don't wrap/unwrap integers into Lisp_Objects.
18344 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18345 (x_scroll_bar_report_motion):
18346 Don't wrap/unwrap integers into Lisp_Objects.
18347 (x_term_init): Use SDATA.
18348 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18349 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18350 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18351 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18352 * xfns.c (x_set_background_color):
18353 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18354 Access the new x_window field directly.
18355
18356 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18357 (allocate_pseudovector): Make non-static.
18358
18359 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18360 (allocate_pseudovector): Declare.
18361 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18362
183632007-11-15 Andreas Schwab <schwab@suse.de>
18364
18365 * editfns.c (Fformat): Correctly format EMACS_INT values.
18366 Also take precision into account when formatting an integer.
18367
18368 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18369
183702007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18371
18372 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18373 (syms_of_keyboard): Defsubr it.
18374
18375 * data.c (swap_in_global_binding): Fix longstanding bug where
18376 store_symval_forwarding was not called with the right second argument,
18377 thus causing objfwd-ing from being dropped.
18378
183792007-11-14 Juanma Barranquero <lekktu@gmail.com>
18380
18381 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18382 (Fx_display_pixel_height, Fx_display_planes)
18383 (Fx_display_color_cells, Fx_server_max_request_size)
18384 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18385 (Fx_display_visual_class, Fx_display_save_under):
18386 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18387 (Fx_display_pixel_height, Fx_display_planes)
18388 (Fx_display_color_cells, Fx_server_max_request_size)
18389 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18390 (Fx_display_mm_height, Fx_display_mm_width)
18391 (Fx_display_backing_store, Fx_display_visual_class)
18392 (Fw32_select_font, Fx_display_save_under):
18393 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18394 (Fx_display_pixel_height, Fx_display_planes)
18395 (Fx_display_color_cells, Fx_server_max_request_size)
18396 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18397 (Fx_display_save_under): Fix typos in docstrings.
18398
183992007-11-14 Juanma Barranquero <lekktu@gmail.com>
18400
18401 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18402 corresponding to deleted entries; they are an implementation detail.
18403 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18404 Remove variables.
18405 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18406 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18407 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18408 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18409 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18410 (Fw32_define_rgb_color, Fw32_load_color_file)
18411 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18412 Fix typos in docstrings.
18413 (Fx_server_version): Reflow docstring.
18414 (Fw32_shell_execute): Doc fixes.
18415
184162007-11-13 Juanma Barranquero <lekktu@gmail.com>
18417
18418 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18419 if w32_parse_hot_key returned nil.
18420
184212007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18422
18423 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18424
184252007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18426
aac0c6e3
MR
18427 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18428
18429 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18430
18431 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18432 Remove W32_SCROLL_BAR_CLICK_EVENT.
18433
18434 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18435 Add MULTIMEDIA_KEY_EVENT.
18436
18437 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18438 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18439 (make_lispy_event) [WINDOWSNT]: Use it to translate
18440 MULTIMEDIA_KEY_EVENT.
18441
18442 * w32term.h (WM_APPCOMMAND): Define if not already.
18443 (GET_APPCOMMAND_LPARAM): Likewise.
18444
18445 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18446 WM_APPCOMMAND.
18447
18448 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18449 (syms_of_w32fns): Export and initialize it.
18450 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18451
184522007-11-09 Chong Yidong <cyd@stupidchicken.com>
18453
18454 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18455 twice.
18456
18457 * xdisp.c (handle_face_prop): Fix last change.
18458
184592007-11-09 Richard Stallman <rms@gnu.org>
18460
18461 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18462 not just for after-strings and before-strings.
18463 Call face_for_overlay_string and pass the overlay to it.
18464 (handle_display_prop): Determine whether property came from an overlay.
18465 Pass OVERLAY arg to handle_single_display_spec.
18466 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18467 (load_overlay_strings): Fill in it->string_overlays.
18468 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18469
18470 * xfaces.c (face_for_overlay_string): Function renamed from
18471 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18472
18473 * dispextern.h (struct it): New elt string_overlays.
18474 New elt from_overlay, also in stack.
18475 Rearrange a few elements.
18476 (face_for_overlay_string): Decl renamed from
18477 face_at_buffer_position_no_overlays, and add argument.
18478
184792007-11-09 Richard Stallman <rms@gnu.org>
18480
18481 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18482 to get the base face for an overlay string.
18483
18484 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18485
18486 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18487
18488 * xdisp.c (handle_stop): Move some code out of loop.
18489
184902007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18491
18492 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18493 Fix conversion from Lisp object to ATSUFontID.
18494
184952007-11-09 Jason Rumney <jasonr@gnu.org>
18496
18497 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18498
184992007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18500
18501 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18502 Don't assume regions are aligned to page boundary.
18503 (print_load_command_name): Add LC_UUID if defined.
18504
185052007-11-09 Richard Stallman <rms@gnu.org>
18506
18507 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18508
185092007-11-07 Jason Rumney <jasonr@gnu.org>
18510
18511 * s/windows95.h: Remove.
18512
185132007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18514
18515 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18516 abort with a message on unhandled store_type values.
18517
185182007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18519
18520 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18521 Remove HAVE_X11R5 and HAVE_X11R4.
18522
185232007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18524
18525 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18526
185272007-11-01 Johan Bockgård <bojohan@gnu.org>
18528
18529 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18530 Don't set s->stippled_p here, since it has already been set by
18531 x_set_glyph_string_gc from x_draw_glyph_string.
18532
185332007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18534
18535 * sunfns.c: Remove file.
18536
18537 * m/sun386.h:
18538 * m/sun2.h:
18539 * m/sparc.h: Remove Sun windows code.
18540
185412007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18542
18543 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18544 (init_keyboard): Set current_kboard's window-system to nil.
18545 (tty_read_avail_input): Typo.
18546 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18547
185482007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18549
18550 * s/usg5-4.h:
18551 * s/usg5-3.h:
18552 * s/ptx.h:
18553 * m/is386.h:
18554 * m/ibmps2-aix.h:
18555 * Makefile.in: Remove all mentions of X10.
18556
18557 * dispnew.c (syms_of_display): Don't mention version 10.
18558
185592007-10-28 Juanma Barranquero <lekktu@gmail.com>
18560
18561 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18562 ($(BLD)/abbrev.$(O)): Remove.
18563
185642007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18565
18566 Rewrite abbrev.c in Elisp.
18567 * image.c (Qcount): Don't declare as extern.
18568 (syms_of_image): Initialize and staticpro `Qcount'.
18569 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18570 * emacs.c (main): Don't call syms_of_abbrev.
18571 * Makefile.in (obj): Remove abbrev.o.
18572 (abbrev.o): Remove.
18573 * abbrev.c: Remove.
18574
185752007-10-26 Martin Rudalics <rudalics@gmx.at>
18576
18577 * window.c (window_min_size_2): Don't count header-line.
18578
185792007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18580
18581 * frame.h (struct frame): Move all bit fields after the first bit
18582 field to take advantage of the available space. Group all the
18583 chars together to reduce wasted space due to padding.
18584
185852007-10-26 Juanma Barranquero <lekktu@gmail.com>
18586
18587 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18588
18589 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18590 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18591 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18592 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18593 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18594 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18595 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18596 (last_marked, mark_object_loop_halt): Make static.
18597
18598 * frame.c (syms_of_frame) <delete-frame-functions>:
18599 Fix typo in docstring.
18600
186012007-10-25 Juanma Barranquero <lekktu@gmail.com>
18602
18603 * w32.c (init_environment): Fix tiny memory leak.
18604 (w32_get_resource): Remove unused variable `ok'.
18605
186062007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18607
18608 Make `window-system' into a keyboard-local variable (rather than
18609 frame-local as done originally by multi-tty).
18610
18611 * keyboard.h (struct kboard): Add Vwindow_system.
18612 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18613 (mark_kboards): Mark Vwindow_system.
18614
18615 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18616 (init_display): Don't set the obsolete `window-system' frame-param.
18617
18618 * xterm.c (x_term_init):
18619 * w32term.c (w32_create_terminal):
18620 * term.c (init_tty): Set Vwindow_system.
18621 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18622 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18623
18624 * xfns.c (Fx_create_frame, x_create_tip_frame):
18625 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18626 * macfns.c (Fx_create_frame):
18627 Don't set the obsolete `window-system' frame-param.
18628
18629 * frame.h (Qwindow_system): Remove.
18630 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18631 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18632
186332007-10-24 Richard Stallman <rms@gnu.org>
18634
18635 * frame.c (x_figure_window_size): For fullscreen case,
18636 set USPosition | PPosition without clobbering rest of window_prompting.
18637
18638 * keyboard.c (Fcurrent_idle_time): Doc fix.
18639
18640 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18641
186422007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18643
18644 * process.c (unwind_request_sigio): Only define if __ultrix__.
18645
18646 * callproc.c (child_setup): Remove spurious *.
18647
18648 * lisp.h (Fget_text_property): Declare.
18649 (have_menus_p): Declare it here rather than in sys-dep header files.
18650 * macterm.h (have_menus_p):
18651 * msdos.h (have_menus_p):
18652 * xterm.h (have_menus_p): Remove.
18653
18654 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18655 (Fmake_variable_frame_local): Just check the variable's const-ness
18656 rather than checking nil or t.
18657
186582007-10-22 Jason Rumney <jasonr@gnu.org>
18659
18660 * w32fns.c: Include math.h.
18661 (w32_abort): Declaration moved to nt/config.nt.
18662
18663 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18664 (abort): Redefinition moved to nt/config.nt.
18665
18666 * m/windowsnt.h: Remove.
18667
186682007-10-22 Juanma Barranquero <lekktu@gmail.com>
18669
18670 * emacs.c (Fdump_emacs): Fix typo in message.
18671 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18672 <installation-directory>: Reflow docstring.
18673
186742007-10-22 Juri Linkov <juri@jurta.org>
18675
18676 * minibuf.c: Allow minibuffer default to be a list of default values.
18677 With empty input use the first element of this list as returned default.
18678 (string_to_object)
18679 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18680 (read_minibuf): If defalt is cons, set histstring to its car.
18681 (Fread_string): If default_value is cons, set val to its car.
18682 (Fread_buffer): If def is cons, use its car.
18683 (Fcompleting_read): If defalt is cons, set val to its car.
18684
186852007-10-21 Michael Albinus <michael.albinus@gmx.de>
18686
18687 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18688
186892007-10-20 Juanma Barranquero <lekktu@gmail.com>
18690
18691 * doc.c (Fdocumentation): Check for advice in all cases.
18692
186932007-10-19 Chong Yidong <cyd@stupidchicken.com>
18694
18695 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18696
186972007-10-19 Richard Stallman <rms@gnu.org>
18698
18699 * doc.c (Fdocumentation): Check for and handle an advised function.
18700
187012007-10-19 Juanma Barranquero <lekktu@gmail.com>
18702
18703 * process.c (Fset_process_filter): Doc fix.
18704
187052007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18706
18707 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18708 which caused key-translation-map to applied repeatedly (thus breaking
18709 double-mode).
18710
187112007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18712
18713 * xselect.c (x_own_selection, x_handle_selection_clear)
18714 (x_clear_frame_selections):
18715 * w32menu.c (list_of_panes, list_of_items):
18716 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18717 * textprop.c (validate_plist, interval_has_all_properties)
18718 (interval_has_some_properties, interval_has_some_properties_list)
18719 (add_properties, text_property_list):
18720 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18721 * minibuf.c (Fassoc_string):
18722 * macselect.c (x_own_selection, x_clear_frame_selections)
18723 (Fx_disown_selection_internal):
18724 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18725 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18726
187272007-10-17 Chong Yidong <cyd@stupidchicken.com>
18728
18729 * process.c: Link to libs for calling res_init() if available.
18730 (Fmake_network_process): Call res_init() before getaddrinfo or
18731 gethostbyname, if possible.
18732
187332007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18734
18735 * lread.c (read1): Set pvectype for char_tables.
18736
18737 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18738 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18739 Add type checks.
18740 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18741
18742 * alloc.c (free_misc): Use XMISCTYPE.
18743 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18744
187452007-10-17 Glenn Morris <rgm@gnu.org>
18746
18747 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18748 (syms_of_minibuf): Add Qcompletion_ignore_case.
18749 * dired.c (Qcompletion_ignore_case): Change to external.
18750 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18751 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18752 (Fread_file_name): Use it rather than intern'ing.
18753
18754 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18755 (Fread_coding_system): Ignore case of user input.
18756
187572007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18758
18759 * xdisp.c (handle_display_prop): Ignore display specs after
18760 replacing one when string text is being replaced.
18761 (handle_single_display_spec): Pretend as if characters with display
18762 property haven't been consumed only when buffer text is being replaced.
18763
187642007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18765
18766 * xfns.c (Fx_create_frame, Fx_display_list):
18767 * window.c (window_fixed_size_p, enlarge_window)
18768 (shrink_window_lowest_first):
18769 * macterm.c (init_font_name_table):
18770 * macfns.c (Fx_create_frame, Fx_display_list):
18771 * lread.c (close_load_descs):
18772 * keyboard.c (read_char_x_menu_prompt):
18773 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18774 * coding.c (code_convert_region_unwind): Test the type of an object
18775 rather than just !NILP before extracting data from it.
18776
18777 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18778
18779 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18780 (XMISCANY): New macro.
18781 (XMISCTYPE): Use it.
18782 (struct Lisp_Misc_Any): New type.
18783 (union Lisp_Misc): Use it.
18784 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18785 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18786 (find_symbol_value, set_internal, default_value, Fset_default)
18787 (Fmake_variable_buffer_local, Fmake_local_variable)
18788 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18789 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18790 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18791 * alloc.c (allocate_buffer): Set the size and tag.
18792 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18793 Use XMISCANY.
18794 (die): Follow the GNU convention for error messages.
18795 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18796 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18797 tag any more.
18798 (set_buffer_internal_1):
18799 * frame.c (store_frame_param):
18800 * eval.c (specbind):
18801 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18802
18803 * doc.c (Fsnarf_documentation): Simplify.
18804
188052007-10-14 Juanma Barranquero <lekktu@gmail.com>
18806
18807 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18808 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18809
188102007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18811
18812 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18813
188142007-10-14 Juanma Barranquero <lekktu@gmail.com>
18815
18816 * eval.c (do_autoload): Don't save autoloads.
18817
18818 * data.c (Ffset): Save autoload of the function being set.
18819
188202007-10-07 John Paul Wallington <jpw@pobox.com>
18821
18822 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18823 parameter before setting up faces.
18824
188252007-10-13 Eli Zaretskii <eliz@gnu.org>
18826
18827 * ccl.c (Fregister_code_conversion_map):
18828 * keyboard.c (append_tool_bar_item): Reformat last change.
18829
18830 * lisp.h (eabs): Rename from `abs'. All callers changed.
18831
188322007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18833
18834 * buffer.c (add_overlay_mod_hooklist):
18835 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18836 * fontset.c (make_fontset):
18837 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18838 (append_tool_bar_item):
18839 * macmenu.c (grow_menu_items):
18840 * w32menu.c (grow_menu_items):
18841 * xmenu.c (grow_menu_items): Use larger_vector.
18842
188432007-10-13 Eli Zaretskii <eliz@gnu.org>
18844
18845 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18846 selected frame'' on MSDOS).
18847
188482007-10-12 Martin Rudalics <rudalics@gmx.at>
18849
18850 * frame.c (Qexplicit_name): New variable.
18851 (x_report_frame_params): Report it in parameter alist.
18852 (syms_of_frame): Intern and staticpro it.
18853
188542007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18855
18856 * macfns.c (x_create_tip_frame): Set terminal for frame.
18857
188582007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18859
18860 * frame.c (Qenvironment): Remove.
18861 (syms_of_frame) <Qenvironment>: Don't initialize.
18862 (Fdelete_frame): Don't treat the `environment' param specially.
18863 * frame.h (Qenvironment): Don't declare.
18864 * callproc.c (set_initial_environment): Don't set unused frame param.
18865
18866 * frame.c (Fframe_with_environment): Remove.
18867 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18868
18869 * lisp.h (Fframe_with_environment): Don't declare.
18870
188712007-10-10 Juanma Barranquero <lekktu@gmail.com>
18872
18873 * indent.c (indent_tabs_mode, last_known_column)
18874 (last_known_column_modified): Make static.
18875 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18876
188772007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18878
18879 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18880
188812007-10-09 Jason Rumney <jasonr@gnu.org>
18882
18883 * w32term.c (x_set_window_size): Disable code that attempts to tell
18884 Lisp code about a size change before it actually happens.
18885
188862007-10-09 Richard Stallman <rms@gnu.org>
18887
18888 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18889 return HANDLED_RETURN.
18890
188912007-10-08 Martin Rudalics <rudalics@gmx.at>
18892
18893 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18894 when there's an unread command event.
18895
18896 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18897 window autoselection act appropriately when leaving selected frame.
18898 (syms_of_frame): Initialize focus_follows_mouse.
18899 * frame.h (focus_follows_mouse): Extern it.
18900 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18901 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18902 * msdos.c (dos_rawgetc): Likewise.
18903 * w32term.c (w32_read_socket): Likewise.
18904 * xterm.c (handle_one_xevent): Likewise.
18905 * xdisp.c (syms_of_xdisp): In doc-string of
18906 mouse-autoselect-window mention focus-follows-mouse.
18907
189082007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18909
18910 * macterm.c (mac_load_query_font): Fix missing return value.
18911 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18912 Add BLOCK_INPUT.
18913
189142007-10-08 Richard Stallman <rms@gnu.org>
18915
18916 * xdisp.c (get_window_cursor_type): Implement documented behavior
18917 for cursor-in-non-selected-windows = t.
18918
189192007-10-08 Jason Rumney <jasonr@gnu.org>
18920
18921 * w32.c (w32_get_resource): Always close registry keys.
18922
189232007-10-08 Jason Rumney <jasonr@gnu.org>
18924
18925 * makefile.w32-in (LIBS): Add COMCTL32.
18926
18927 * w32fns.c (globals_of_w32fns): Init common controls.
18928
189292007-10-08 Richard Stallman <rms@gnu.org>
18930
18931 * image.c (our_memory_buffer): Rename from omfib_buffer.
18932
189332007-10-08 Richard Stallman <rms@gnu.org>
18934
18935 * buffer.c (Foverlays_at): Doc fix.
18936
189372007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18938
18939 * fns.c (Fplist_put): Preserve uneven tail data.
18940
189412007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18942
18943 * termhooks.h (enum event_kind): Remove trailing comma.
18944
18945 * frame.h (enum): Remove trailing comma.
18946
189472007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18948
18949 * w32proc.c (delete_child): Don't terminate threads of zombies.
18950
189512007-10-08 Martin Rudalics <rudalics@gmx.at>
18952
18953 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18954
18955 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18956 last-repeatable-command.
18957 (init_kboard): Initialize Vlast_repeatable_command.
18958 (command_loop_1): Set it to real_this_command unless that was
18959 bound to an input event.
18960 (mark_kboards): Mark it.
18961
189622007-10-08 Richard Stallman <rms@gnu.org>
18963
18964 * eval.c (condition-case): Doc fix.
18965
189662007-10-08 Masatake YAMATO <jet@gyve.org>
18967
18968 * xfaces.c (tty_supports_face_attributes_p): Fix code
18969 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18970 was copied and not edited.
18971
189722007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18973
18974 Add new `input-decode-map' keymap and use it for terminal
18975 escape sequences.
18976 * keyboard.h (struct kboard): Add Vinput_decode_map.
18977 Remove Vlocal_key_translation_map.
18978 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18979 (init_kboard): Init input-decode-map.
18980 Replace local-key-translation-map back with key-translation-map.
18981 (syms_of_keyboard): Declare input-decode-map.
18982 Remove local-key-translation-map. Update docstrings.
18983 (mark_kboards): Mark Vinput_decode_map.
18984 Don't mark Vlocal_key_translation_map.
18985 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18986 Replace local-key-translation-map back with key-translation-map.
18987 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18988 Bind in input-decode-map rather than function-key-map.
18989
18990 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18991 This was made redundant by the previous introduction of XSETPVECTYPE.
18992
189932007-10-09 Richard Stallman <rms@gnu.org>
18994
18995 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18996
189972007-09-29 Richard Stallman <rms@gnu.org>
18998
18999 * eval.c (internal_condition_case_2, internal_condition_case_1)
19000 (internal_condition_case): Reenable abort if x_catching_errors ()
19001 to see if that really happens and why.
19002
190032007-10-06 Andreas Schwab <schwab@suse.de>
19004
19005 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19006
190072007-10-04 Juanma Barranquero <lekktu@gmail.com>
19008
19009 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19010
190112007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19012
19013 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19014
190152007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19016
19017 * window.h (struct window):
19018 * window.c (struct save_window_data, struct saved_window):
19019 * termhooks.h (struct terminal):
19020 * process.h (struct Lisp_Process):
19021 * frame.h (struct frame):
19022 * buffer.h (struct buffer):
19023 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19024 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19025 The size field of (pseudo)vectors is now unsigned.
19026 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19027
19028 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19029 Turn `count' into an integer.
19030
19031 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19032 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19033 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19034 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19035 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19036
19037 * alloc.c (allocate_pseudovector): New fun.
19038 (ALLOCATE_PSEUDOVECTOR): New macro.
19039 (allocate_window, allocate_terminal, allocate_frame)
19040 (allocate_process): Use it.
19041 (mark_vectorlike): New function.
19042 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19043 (mark_terminals): Use it.
19044 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19045 (Fmake_byte_code): Use XSETPVECTYPE.
19046
19047 * frame.c (Fframe_parameters): Minor simplification.
19048
19049 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19050
19051 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19052
19053 * buffer.c (Fget_buffer_create, init_buffer_once):
19054 * lread.c (defsubr):
19055 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19056
19057 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19058 defined differently in the m/*.h files.
19059 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19060 (XSETPVECTYPE): New macro.
19061 (XSETPSEUDOVECTOR): Use it.
19062
19063 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19064 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19065
19066 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19067 * lread.c (defvar_per_buffer):
19068 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19069
19070 * window.c (candidate_window_p): Only consider as visible frames that
19071 are on the same terminal.
19072
19073 * m/ibms390x.h (MARKBIT): Remove unused macro.
19074
190752007-10-01 Juanma Barranquero <lekktu@gmail.com>
19076
19077 * lread.c (Fload): Fix typo in docstring.
19078
190792007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19080
19081 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19082 of a non-zero value can't yield zero.
19083
190842007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19085
19086 * term.c (term_clear_mouse_face, term_mouse_highlight)
19087 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19088
19089 * print.c (safe_debug_print): Use XHASH.
19090
19091 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19092 Lisp elements such as tags.
19093 (XHASH): New macro.
19094 (EQ): Use it.
19095 (SREF, SSET, STRING_COPYIN): Use SDATA.
19096 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19097
19098 * alloc.c (mark_terminal): Remove left-over declaration.
19099 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19100 (allocate_vectorlike): Remove type argument. Adjust callers.
19101 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19102 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19103
19104 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19105 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19106 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19107 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19108 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19109 Use them.
19110
19111 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19112 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19113 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19114
191152007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19116
19117 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19118 loaded by default.
19119
191202007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19121
19122 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19123 on this tty.
19124 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19125
19126 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19127 Update all users.
19128 (handle_one_term_event): Use Gpm_DrawPointer.
19129 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19130 Signal errors instead of returning nil. Always return nil.
19131 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19132 Make it a noop if gpm-mouse was not activated.
19133 (syms_of_term): Update names.
19134
191352007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19136
19137 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19138 (init_sys_modes): Check that gpm_tty is the current tty.
19139
19140 * alloc.c (allocate_terminal): Set the vector size to only count the
19141 lisp fields. Initialize those to nil.
19142 (mark_object): Don't treat terminals specially.
19143 (mark_terminal): Remove.
19144 (mark_terminals): Use mark_object instead.
19145
19146 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19147 the GC to the beginning.
19148
19149 * indent.h:
19150 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19151
19152 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19153
191542007-09-25 Jason Rumney <jasonr@gnu.org>
19155
19156 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19157
19158 * w32console.c (create_w32cons_output): Remove.
19159
19160 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19161
19162 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19163 (reset_sys_modes): Use reset_terminal_modes_hook.
19164
191652007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19166
19167 * eval.c (do_autoload): Don't output any message.
19168
191692007-09-24 Juri Linkov <juri@jurta.org>
19170
19171 * emacs.c (standard_args): Change priority of "--no-splash"
19172 from 40 to 3. Add "--no-desktop" with the same priority.
19173
191742007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19175
19176 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19177 and optimize the case where they are all 1.
19178
191792007-09-23 Johannes Weiner <hannes@saeurebad.de>
19180
19181 * lisp.h (abs): Define if not defined.
19182 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19183 Don't define `abs', since it's defined in lisp.h.
19184
191852007-09-22 Eli Zaretskii <eliz@gnu.org>
19186
19187 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19188 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19189 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19190 (init_tty): Use DEV_TTY instead of "/dev/tty".
19191 [WINDOWSNT]: No need to protect from NAME arg being null.
19192
191932007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19194
19195 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19196 up the tty state.
19197
191982007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19199
19200 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19201 (gpm_tty): Change its type.
19202 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19203 (gpm_tty): Change its type and initialize it.
19204 (Fterm_open_connection): Check the frame is indeed a tty.
19205 Use the new gpm_tty.
19206 (Fterm_close_connection): Use the new gpm_tty.
19207 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19208 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19209
192102007-09-21 Juanma Barranquero <lekktu@gmail.com>
19211
19212 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19213 underline_color, to draw strike-through.
19214
192152007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19216
19217 * lisp.h (allocate_terminal): Declare.
19218
19219 * window.c (candidate_window_p): Consider frames that are being placed
19220 by the user as somewhere between visible and iconified.
19221 (window_loop): Prefer windows on the current frame.
19222 (Fselect_window): Move the use of select-frame to the beginning so we
19223 can just delegate all the work (it'll call us back anyway).
19224
19225 * frame.c (Qdisplay_environment_variable):
19226 * frame.h (Qdisplay_environment_variable): Delete.
19227
19228 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19229 of the first arg, since that value may be a union.
19230
19231 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19232 parameter rather than Qdisplay_environment_variable. If all else
19233 fails, look for DISPLAY in initial-environment.
19234
192352007-09-21 Glenn Morris <rgm@gnu.org>
19236
19237 * Makefile.in (emacstool): Remove target.
19238 (lisp, shortlisp): Remove termdev.elc.
19239
192402007-09-21 Markus Triska <markus.triska@gmx.at>
19241
19242 * xterm.c (x_delete_display): Compile session management conditionally.
19243
192442007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19245
19246 * callproc.c (getenv_internal_1): New function.
19247 (getenv_internal): Use it.
19248 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19249
19250 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19251 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19252 (Fset_terminal_parameter): Work with dead terminals as well.
19253 (Fmodify_terminal_parameters): Remove.
19254
19255 * terminal.c (get_terminal): Handle terminals.
19256 Make sure the terminal returned is live.
19257 (create_terminal): Use allocate_terminal.
19258 (mark_terminals): Move to alloc.c.
19259 (delete_terminal): Use terminal->name as liveness status.
19260 NULL out fields after freeing their contents.
19261 Don't deallocate the object.
19262 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19263 rather than an int.
19264 (Fterminal_live_p): Accept non-integer arguments.
19265 (Fterminal_list): Return terminal objects rather than an ints.
19266
19267 * alloc.c (enum mem_type): New member for `terminal' objects.
19268 (allocate_terminal): New function.
19269 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19270 Handle terminals.
19271 (mark_terminal): New fun.
19272 (mark_terminals): Move from terminal.c.
19273
19274 * term.c (get_tty_terminal): Don't treat output_initial specially.
19275 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19276 (delete_tty): Use terminal->name as liveness status.
19277
19278 * termhooks.h (struct terminal): Make it into a pseudovector.
19279 Remove `deleted' replaced by checking `name's nullness.
19280
19281 * print.c (print_object): Handle terminals.
19282
19283 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19284 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19285
19286 * frame.c (make_terminal_frame):
19287 * keyboard.c (tty_read_avail_input):
19288 * w32term.c (x_delete_terminal):
19289 * xfns.c (Fx_create_frame, x_create_tip_frame):
19290 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19291
192922007-09-20 Glenn Morris <rgm@gnu.org>
19293
19294 * process.c (Fmake_network_process): Doc fix.
19295
192962007-09-19 Jason Rumney <jasonr@gnu.org>
19297
19298 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19299
193002007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19301
19302 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19303 Fix a C warning regarding variable constness.
19304
19305 * xterm.c (handle_one_xevent): Fix a C warning.
19306
193072007-09-18 Jason Rumney <jasonr@gnu.org>
19308
19309 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19310
193112007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19312
19313 * gtkutil.c (gdpy_def): New variable.
19314 (xg_initialize): Initialize gdpy_def.
19315 (xg_display_close): If no other display exists, set gdpy_def to a
19316 new connection.
19317
193182007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19319
19320 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19321 when we have no file name for the icon.
19322 (xg_tool_bar_expose_callback): Remove.
19323 (xg_create_tool_bar): Don't connect expose signal to
19324 xg_tool_bar_expose_callback.
19325 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19326
193272007-09-16 Andreas Schwab <schwab@suse.de>
19328
19329 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19330 values instead of zapping them.
19331
193322007-09-14 Glenn Morris <rgm@gnu.org>
19333
19334 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19335 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19336 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19337 scope and rename to omfib_buffer for clarity.
19338 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19339
193402007-09-14 Kenichi Handa <handa@m17n.org>
19341
19342 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19343
193442007-09-13 Jason Rumney <jasonr@gnu.org>
19345
19346 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19347
19348 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19349
19350 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19351 (mac_term_init): Call here instead, passing rif.
19352
193532007-09-13 Glenn Morris <rgm@gnu.org>
19354
19355 * s/hpux.h: No longer define `static' as nothing.
19356
193572007-09-13 Johan Bockgård <bojohan@gnu.org>
19358
19359 * callint.c (Fcall_interactively): Remove unused var `fun'.
19360
193612007-09-12 Romain Francoise <romain@orebokech.com>
19362
19363 * window.c (prefer_window_split_horizontally, display_buffer):
19364 Revert 2007-09-08 change.
19365
193662007-09-12 Glenn Morris <rgm@gnu.org>
19367
19368 * alloca.c: Remove file.
19369 * Makefile.in (alloca): Do not undef.
19370 (allocaobj, alloca.o): Remove.
19371 (otherobj): Remove allocaobj.
19372 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19373 * regex.c (C_ALLOCA): Remove all references and code that was only
19374 used when this was defined.
19375 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19376 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19377 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19378
19379 * Makefile.in (SOURCES, unlock, relock): Delete.
19380
19381 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19382 (menu_grab_callback): All uses changed.
19383
19384 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19385 (x_reply_selection_request): All uses changed.
19386
193872007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19388
19389 * lread.c (load_warn_old_style_backquotes): Change message to look
19390 better when it appears in the middle of byte-compiler messages.
19391
193922007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19393
19394 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19395
19396 * xterm.c (x_create_terminal): Add comment.
19397
19398 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19399
194002007-09-10 Richard Stallman <rms@gnu.org>
19401
19402 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19403
194042007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19405
19406 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19407 (DEFUN): Document `intspec', use it instead of `prompt'.
19408
19409 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19410
19411 * data.c (Finteractive_form): If the interactive specification starts
19412 with a `(', use it as a Lisp form.
19413
19414 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19415 name and file modes.
19416
19417 * callint.c (Fcall_interactively): Comment fixes.
19418
194192007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19420
19421 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19422 and compiled functions.
19423
194242007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19425
19426 * window.c (prefer_window_split_horizontally): New variable.
19427 (display_buffer): Consider splitting window horizontally depending
19428 on prefer_window_split_horizontally.
19429
194302007-09-08 Eli Zaretskii <eliz@gnu.org>
19431
19432 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19433
194342007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19435
19436 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19437
19438 * frame.c (x_set_frame_parameters): Check number is positive before
19439 using XFASTINT.
19440
19441 * window.c (freeze_window_start): Don't presume selected_window holds
19442 a window object.
19443 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19444
194452007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19446
19447 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19448
194492007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19450
19451 * window.c (Vsplit_window_preferred_function): New var.
19452 (Fdisplay_buffer): Use it.
19453 (syms_of_window): Export, and initialize it.
19454
194552007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19456
19457 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19458
194592007-09-06 Glenn Morris <rgm@gnu.org>
19460
19461 * gtkutil.c (menu_grab_callback) <cnt>:
19462 * xselect.c (x_reply_selection_request) <cnt>: Move static
19463 variable to file scope.
19464
194652007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19466
19467 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19468 consistent values of selected_frame and selected_window.
19469
194702007-09-04 Jason Rumney <jasonr@gnu.org>
19471
19472 * w32console.c (initialize_w32_display): Zero unused hooks.
19473
194742007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19475
19476 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19477 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19478
194792007-09-04 Jason Rumney <jasonr@gnu.org>
19480
19481 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19482 in w32console.c. Set up input. Remove XXX comments that have been
19483 confirmed as correct.
19484
19485 * s/ms-w32.h (MULTI_KBOARD): Define.
19486
19487 * w32console.c (one_and_only_w32cons): Remove.
19488 (initialize_w32_display): Take terminal argument.
19489
19490 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19491 initialize_w32_display.
19492 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19493
19494 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19495
19496 * keyboard.c (discard_mouse_events): Discard it.
19497 (make_lispy_event): Translate it to a lisp event.
19498 (lispy_wheel_names): Add wheel-left and right events.
19499 (syms_of_keyboard): Enlarge wheel_syms.
19500
19501 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19502 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19503
19504 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19505
19506 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19507 from WM_MOUSEHWHEEL.
19508 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19509
19510 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19511 terminal.
19512
19513 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19514 keyboard for the terminal.
19515
195162007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19517
19518 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19519 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19520 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19521 and resume-tty-function to resume-tty-hook.
19522 (Fsuspend_tty, Fresume_tty): Use new names.
19523
195242007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19525
19526 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19527 if it starts with "n:".
19528
195292007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19530
19531 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19532
195332007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19534
19535 * frame.h:
19536 * frame.c (Qterm_environment_variable): Remove.
19537 (syms_of_frame): Don't init and staticpro it.
19538
19539 * callproc.c (getenv_internal): Remove special case for $TERM.
19540
19541 * callproc.c (Vinitial_environment): New variable.
19542 (set_initial_environment): Initialize it.
19543 (syms_of_callproc): Declare it.
19544 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19545 TERM under which a process runs is never related to the TERM in which
19546 Emacs is running.
19547
195482007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19549
19550 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19551 * s/darwin.h: ... do it here.
19552
195532007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19554
19555 * lisp.h (set_initial_environment): Rename from set_global_environment.
19556
19557 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19558 removed by mistake on the multi-tty branch.
19559
19560 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19561 (Fmodify_frame_parameters): Return a value.
19562
19563 * image.c (png_load): Comment-out var only used in commented-out code.
19564
19565 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19566 before passing it to mark_object.
19567
19568 * xfaces.c (internal_resolve_face_name): Return a value.
19569 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19570
19571 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19572 (x_icon): Comment-out var only used in commented-out code.
19573
195742007-08-29 Romain Francoise <romain@orebokech.com>
19575
19576 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19577 QUIT hasn't been provided.
19578
195792007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19580
19581 * callproc.c (child_setup, getenv_internal): Use the
19582 display-environment-variable and term-environment-variable frame params.
19583 (set_initial_environment): Initialise Vprocess_environment.
19584
19585 * config.in: Disable multi-keyboard support on a mac.
19586
19587 * frame.c (Qterm_environment_variable)
19588 (Qdisplay_environment_variable): New variables.
19589 (syms_of_frame): Intern and staticpro them.
19590 (Fmake_terminal_frame): Disable output method test.
19591
19592 * frame.h: Declare them here.
19593
19594 * macfns.c (x_set_mouse_color): Get rif from the frame.
19595 (x_set_tool_bar_lines): Don't use updating_frame.
19596 (mac_window): Add 2 new parameters for consistency with other systems.
19597 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19598 frame parameters following what is done in X11 and w32. Don't use
19599 FRAME_MAC_DISPLAY_INFO.
19600 (Fx_open_connection, start_hourglass): Remove window-system check.
19601 (x_create_tip_frame): Get the keyboard from the terminal.
19602
19603 * macmenu.c: Reorder includes.
19604 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19605
19606 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19607 terminal parameter.
19608 (x_clear_frame): Add a frame parameter.
19609 (note_mouse_movement): Get rif from the frame.
19610 (mac_term_init): Initialize the terminal.
19611 (mac_initialize): Make static and move terminal initialization ...
19612 (mac_create_terminal): ... to this new function.
19613
19614 * macterm.h (struct mac_display_info): Add terminal.
19615 (mac_initialize): Delete declaration.
19616
19617 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19618
19619 * sysdep.c: Comment out text after #endif.
19620
19621 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19622 is defined. Better initialize ttys in windows. Use terminal
19623 specific mouse_position_hook.
19624
19625 * termhooks.h (union display_info): Add mac_display_info.
19626
19627 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19628 Set the default minibuffer frame, window_system and the rest of the
19629 frame parameters following what is done in X11.
19630
19631 * w32term.c (w32_initialize): Make static.
19632
19633 * xselect.c (x_handle_selection_clear): Only access
19634 terminal->kboard when MULTI_KBOARD is defined.
19635
19636 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19637 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19638
196392007-08-29 Jason Rumney <jasonr@gnu.org>
19640
19641 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19642 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19643
19644 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19645 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19646
19647 * keyboard.c (restore_kboard_configuration): Only define when
19648 MULTI_KBOARD defined.
19649
19650 * makefile.w32-in: Update dependancies from Makefile.in.
19651 (OBJ1): Add terminal.$(O)
19652
19653 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19654 Don't define function body.
19655 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19656
19657 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19658
19659 * w32.c (request_sigio, unrequest_sigio): Remove.
19660
19661 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19662 (w32con_clear_frame, w32con_clear_end_of_line)
19663 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19664 (w32con_delete_glyphs, w32con_set_terminal_window)
19665 (scroll_line, w32_sys_ring_bell): Add frame arg.
19666 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19667 Add terminal arg.
19668 (PICK_FRAME): Remove.
19669 (w32con_write_glyphs): Use frame specific terminal coding.
19670 (one_and_only_w32cons): New global variable.
19671 (initialize_w32_display): Use it for storing hooks.
19672 (create_w32cons_output): New function.
19673
19674 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19675 arg a frame.
19676
19677 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19678 Set window_system.
19679 (x_set_tool_bar_lines): Don't use updating_frame.
19680 (Fx_create_frame): Set terminal and ref count.
19681 (Fx_open_connection): Remove window-system check.
19682
19683 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19684
19685 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19686 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19687 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19688 Add frame arg.
19689 (x_delete_terminal, w32_create_terminal): New functions.
19690 (w32_term_init): Create a terminal.
19691 (w32_initialize): Move terminal specific initialization to
19692 w32_create_terminal.
19693
19694 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19695 (w32_clear_rect, w32_clear_area): Use background from frame.
19696 (w32_display_info): Add terminal.
19697 (w32_sys_ring_bell, x_delete_display): Declare here.
19698
19699 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19700
19701 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19702
197032007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19704
19705 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19706 Fix get_named_tty calls for the controlling tty.
19707
197082007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19709
19710 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19711
197122007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19713
19714 * term.c (tty_insert_glyphs): Add missing first parameter.
19715
197162007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19717
19718 * buffer.c (Fbuffer_list, Fbury_buffer):
19719 Take frame->buried_buffer_list into account.
19720
19721 * cm.c (current_tty): New variable, for cmputc().
19722 (cmputc): Use it.
19723 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19724 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19725 (cmgoto): Add tty parameter. Pass it on to calccost().
19726 Use emacs_tputs() instead of tputs().
19727
19728 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19729 tputs().
19730 (current_tty): New variable, for cmputc().
19731 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19732
19733 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19734 (internal_condition_case, internal_condition_case_1)
19735 (internal_condition_case_2): Don't abort when x_catching_errors.
19736
19737 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19738 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19739 prevent crashes caused by bogus longjmps in read_char.
19740
19741 * keymap.h (Fset_keymap_parent): Add EXFUN.
19742
19743 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19744 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19745 Remove redundant definition.
19746
19747 * macfns.c (x_set_mouse_color, x_make_gc):
19748 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19749
19750 * w32term.c (x_free_frame_resources):
19751 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19752 (w32_initialize): Use the accessor macros for terminal characteristics.
19753
19754 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19755 Use the accessor macros for terminal characteristics.
19756 * msdos.c (internal_terminal_init): Use the accessor macros for
19757 terminal characteristics.
19758 (ScreenVisualBell, internal_terminal_init):
19759 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19760
19761 * termopts.h (no_redraw_on_reenter): Declare.
19762
19763 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19764 (mark_terminals, mark_ttys): Declare.
19765 (Fgarbage_collect): Call them.
19766 (mark_object): Mark buried_buffer_list.
19767
19768 * prefix-args.c: Include stdlib.h for exit.
19769
19770 * syssignal.h: Add comment.
19771
19772 * indent.c: Include stdio.h.
19773
19774 * window.h (Vinitial_window_system): Declare.
19775 (Vwindow_system): Delete declaration.
19776
19777 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19778
19779 * image.c (lookup_image): Don't initialize `c' until the xasserts
19780 have been run.
19781
19782 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19783 FRAME_FOREGROUND_PIXEL.
19784
19785 * print.c (print_preprocess): Don't lose print_depth levels while
19786 iterating.
19787
19788 * widget.c (update_from_various_frame_slots):
19789 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19790
19791 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19792 frames.
19793 (window_internal_height): Remove bogus make_number call.
19794 (init_window_once): Call make_terminal_frame with two zero parameters.
19795
19796 * fileio.c (Fread_file_name): Update comment.
19797
19798 * callint.c (Fcall_interactively):
19799 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19800 Make sure it is correctly unwound.
19801
19802 * xsmfns.c (x_session_close): New function.
19803
19804 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19805 Delete declarations.
19806
19807 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19808 (x_output): Remove background_pixel and foreground_pixel fields.
19809 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19810 (x_delete_device, x_session_close): Declare.
19811
19812 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19813 (read_filtered_event): Call `read_char' with a local
19814 `wrong_kboard_jmpbuf'.
19815
19816 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19817 Don't call single_kboard_state. Use FRAME_RIF.
19818
19819 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19820 systems.
19821
19822 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19823 (Fframe_with_environment, Fset_input_meta_mode)
19824 (Fset_quit_char): EXFUN.
19825 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19826 (init_sys_modes, reset_sys_modes): Update prototypes.
19827 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19828
19829 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19830 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19831 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19832 Delete declarations.
19833 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19834 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19835 New declarations.
19836
19837 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19838 already does that during init_display(). Call syms_of_keymap
19839 before syms_of_keyboard. Call `syms_of_terminal'.
19840 Call set_initial_environment, not set_process_environment.
19841 (shut_down_emacs): Call reset_all_sys_modes() instead of
19842 reset_sys_modes().
19843
19844 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19845 (internal_resolve_face_name, resolve_face_name_error): New functions.
19846 (resolve_face_name): Protect against loops and errors thrown by Fget.
19847 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19848 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19849
19850 * scroll.c: Replace CURTTY() with local variables throughout the
19851 file (where applicable).
19852 (calculate_scrolling, calculate_direct_scrolling)
19853 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19854 characteristics.
19855
19856 * keymap.c (Vfunction_key_map): Remove.
19857 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19858 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19859 (Vkey_translation_map): Remove.
19860 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19861 (Fdescribe_buffer_bindings)
19862 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19863 Update for terminal-local key-translation-map.
19864
19865 * Makefile.in (callproc.o): Update dependencies.
19866 (lisp, shortlisp): Add termdev.elc.
19867 (obj): Add terminal.o.
19868 (terminal.o): Add dependencies.
19869 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19870 (data.o, fns.o): Add termhooks.h dependency.
19871 (SOME_MACHINE_LISP): Add dnd.elc.
19872 (minibuf.o): Fix typo.
19873 Update dependencies.
19874
19875 * data.c (do_symval_forwarding, store_symval_forwarding)
19876 (find_symbol_value): Use the selected frame's keyboard, not
19877 current_kboard.
19878
19879 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19880 Vwindow_system.
19881
19882 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19883 Fmenu_bar_open.
19884 (syms_of_xmenu): Update defsubr.
19885 (mouse_position_for_popup, Fx_popup_menu)
19886 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19887 (set_frame_menubar, free_frame_menubar)
b97439ce 19888 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19889 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19890 an X frame.
19891
19892 * xselect.c (x_own_selection): Abort if not an X frame.
19893 (some_frame_on_display): Check if it is an X frame.
19894 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19895
19896 * coding.c: Include frame.h and termhooks.h.
19897 (terminal_coding, keyboard_coding): Delete.
19898 (Fset_terminal_coding_system_internal)
19899 (Fset_keyboard_coding_system_internal)
19900 (Fkeyboard_coding_system)
19901 (Fterminal_coding_system): Add a terminal parameter.
19902 Get terminal_coding from the terminal.
19903 (init_coding_once): Don't call setup_coding_system here.
19904
19905 * dispextern.h (set_scroll_region, turn_off_insert)
19906 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19907 (tty_clear_end_of_line, tty_setup_colors)
19908 (delete_tty, updating_frame)
19909 (produce_special_glyphs, produce_glyphs, write_glyphs)
19910 (insert_glyphs): Remove.
19911 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19912 (tty_turn_off_highlight, get_tty_size): Add declaration.
19913 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19914
19915 * frame.h (enum output_method): Add output_initial.
19916 (struct x_output): Delete.
19917 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19918 Access foreground_pixel and background_pixel directly from the frame.
19919 (tty_display): Delete.
19920 (struct frame): Add buried_buffer_list, foreground_pixel,
19921 background_pixel and terminal. Delete kboard.
19922 (union output_data): Add tty.
19923 (FRAME_KBOARD): Get the kboard from the terminal.
19924 (FRAME_INITIAL_P): New macro.
19925 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19926 (Qterm_environment_variable, Qdisplay_environment_variable)
19927 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19928 New declarations.
19929
19930 * termchar.h (tty_output, tty_display_info): New structures.
19931 (tty_list): Declare.
19932 (FRAME_TTY, CURTTY): New macros.
19933 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19934 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19935 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19936 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19937
19938 * callproc.c: Include frame.h and termhooks.h, for terminal
19939 parameters.
19940 (add_env): New function.
19941 (child_setup): Use it.
19942 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19943 (getenv_internal): Fix get_terminal_param call.
19944 (Fgetenv_internal, egetenv): Update doc.
19945 (syms_of_callproc): Initialize Vprocess_environment to nil.
19946 Register and initialize them. Remove obsolete defvars. Update doc
19947 strings.
19948 (child_setup): Handle Vlocal_environment_variables.
19949 (getenv_internal): Add terminal parameter.
19950 Handle Vlocal_environment_variables.
19951 (Fgetenv_internal): Add terminal parameter.
19952 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19953 environment in a frame (not terminal) parameter. Update doc strings.
19954 (set_initial_environment): Rename from set_global_environment.
19955 Store Emacs environment in initial frame parameter.
19956
19957 * xdisp.c (redisplay_internal): Update references to
19958 `previous_terminal_frame'.
19959 (display_mode_line, Fformat_mode_line): Replace calls to
19960 `push_frame_kboard' with `push_kboard'.
19961 (get_glyph_string_clip_rects): Add extra parentheses and
19962 braces to prevent compiler warnings.
19963 (calc_pixel_width_or_height): Add xassert to check that the
19964 frame is alive. Don't call `lookup_image' on a termcap frame.
19965 (message2_nolog, message3_nolog, redisplay_internal)
19966 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19967 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19968 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19969 (Fx_display_pixel_width, Fx_display_pixel_height)
19970 (Fx_display_planes, Fx_display_color_cells)
19971 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19972 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19973 (Fx_display_backing_store, Fx_display_visual_class)
19974 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19975 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19976
19977 * xfns.c (x_set_foreground_color x_set_background_color)
19978 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19979 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19980 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19981 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19982 terminal that is being deleted.
19983 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19984 frame parameter, and make sure it overrides any user-supplied setting.
19985 (Fx_close_connection, Fx_synchronize): Unify argument names with
19986 the rest of the DEFUNs.
19987
19988 * dispnew.c (Fsend_string_to_terminal): Update call to
19989 `get_tty_terminal'.
19990 (Fredraw_frame, Fsend_string_to_terminal)
19991 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19992 FRAME_TERMCAP_P and FRAME_TTY.
19993 (window_change_signal): Don't believe width/height values that are
19994 impossibly small.
19995 (Vinitial_window_system): Rename from Vwindow_system.
19996 (termscript, Wcm, rif): Delete.
19997
19998 * termhooks.h (struct terminal): New struct containing the
19999 previously global text display hooks and new members NAME,
20000 DELETED and PARAM_ALIST.
20001 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20002 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20003 (FRAME_RIF): New macros.
20004 (get_terminal_param, get_device): New declarations.
20005 (termscript): Delete declaration.
20006
20007 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20008 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20009 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20010 FRAME_FOREGROUND_PIXEL.
20011 (x_fully_uncatch_errors): Disable definition.
20012 (x_scroll_bar_expose): Fix reference to foreground pixel.
20013 (XTread_socket): Disable loop on all X displays.
20014 (x_delete_terminal): Don't set terminal->deleted and let
20015 delete_terminal delete the frames on the terminal.
20016 (x_delete_display): Doc update to reflect changes in
20017 delete_terminal.
20018 (x_display_info) <terminal>: Move member earlier in the struct.
20019 (deleting_tty): Remove old variable.
20020 (Fsuspend_tty): Call clear_tty_hooks.
20021 (Fresume_tty, init_tty): Call set_tty_hooks.
20022 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20023 errors on X frames.
20024 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20025 (handle_one_xevent): Initialize `f' to NULL.
20026 (x_delete_terminal, x_create_terminal): New functions.
20027 (XTset_terminal_modes, XTreset_terminal_modes)
20028 (XTread_socket, x_connection_closed, x_term_init)
20029 (x_term_init, x_delete_display): Add terminal parameter.
20030 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20031 X connections.
20032
20033 * frame.c: Include termchar.h.
20034 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20035 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20036 (Qdisplay_environment_variable): New vars.
20037 (Fframep): Deal with output_initial.
20038 (Fframe-live-p): Doc fix.
20039 (Fwindow-system): New function.
20040 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20041 (make_terminal_frame): Don't create frames on a terminal that is
20042 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20043 (store_frame_param): Check for found_for_frame before calling XFRAME.
20044 (Fmake_terminal_frame): Handle NULL tty names correctly.
20045 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20046 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20047 frames to refer to a deleted frame in their 'environment parameter.
20048 (Fframe_with_environment): New function.
20049 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20050 (get_future_frame_param): New function.
20051 (Fmake_terminal_frame): Use it.
20052 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20053
20054 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20055 * sysdep.c (reset_sys_modes): Update for renames.
20056
20057 * keyboard.c (tty_read_avail_input): New function.
20058 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20059 (syms_of_keyboard): Defsubr them.
20060 (Fset_input_meta_mode, Fset_quit_char): New functions.
20061 (Fset_input_mode): Split to above functions.
20062 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20063 parameter. Use it in call to `read_char'.
20064 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20065 Set wrong_kboard_jmpbuf correctly in recursive calls.
20066 Use current_kboard to access Vkeyboard_translate_table.
20067 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20068 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20069 Update longjmp invocations. Remember the original current_kboard,
20070 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20071 changes it. Comment out unnecessary calls to
20072 `record_single_kboard_state' and `any_kboard_state'.
20073 Update recursive calls.
20074 (wrong_kboard_jmpbuf): Remove global variable.
20075 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20076 Handle deleted interrupted_kboards correctly; that is a legal
20077 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20078 and read_char calls. Abort if interrupted_kboard died in read_char.
20079 (any_kboard_state, single_kboard_state)
20080 (push_frame_kboard): Remove function.
20081 (pop_kboard): Switch out of single_kboard mode if the kboard has
20082 been deleted. Remove unused variable. Help debugging by not
20083 changing current_kboard unnecessarily. Set current_kboard to the
20084 kboard of the selected frame when the stored kboard object has
20085 been deleted before pop_kboard.
20086 (temporarily_switch_to_single_kboard): Change first parameter to a
20087 frame pointer. Throw an error when caller wants to change kboards
20088 while in single_kboard mode. Don't push_kboard if we weren't in
20089 single kboard state. Don't pop_kboard if we popped into any
20090 kboard state.
20091 (restore_kboard_configuration): Abort if pop_kboard changed the
20092 kboard in single_kboard mode. Call pop_kboard only after setting
20093 up single_kboard mode.
20094 (Frecursive_edit): Switch to single_kboard mode only in nested
20095 command loops.
20096 (cmd_error, command_loop, command_loop_1, timer_check):
20097 Comment out unnecessary call to `any_kboard_state' and
20098 `record_single_kboard_state'.
20099 (delete_kboard): Exit single_kboard mode if we have just deleted
20100 that kboard. Use FRAME_KBOARD.
20101 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20102 `fatal_error_signal'.
20103 (record_single_kboard_state): Don't push_kboard if we weren't in
20104 single kboard state. Don't pop_kboard if we popped into any
20105 kboard state.
20106 (push_frame_kboard): Rename to push_kboard.
20107 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20108 (read_avail_input): Read input from all terminals.
20109 (mark_kboards): Also mark Vkeyboard_translate_table.
20110 (kbd_buffer_store_event_hold): Simplify condition.
20111 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20112 (Vkeyboard_translate_table): Move to struct kboard.
20113 (init_kboard): Initialize Vkeyboard_translate_table.
20114 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20115 Vkeyboard_translate_table. Update doc strings. Update docs of
20116 local-function-key-map and function-key-map.
20117
20118 * terminal.c: New file.
20119
20120 * term.c: Include errno.h.
20121 (Vring_bell_function, device_list, initial_device)
20122 (next_device_id, ring_bell, update_begin, update_end)
20123 (set_terminal_window, cursor_to, raw_cursor_to)
20124 (clear_to_end, clear_frame, clear_end_of_line)
20125 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20126 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20127 (syms_of_term): Move their initialization to terminal.c.
20128 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20129 (Ftty_display_color_cells)
20130 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20131 (clear_tty_hooks, set_tty_hooks)
20132 (init_tty, maybe_fatal): New functions.
20133 (Ftty_type): Return nil if terminal is not on a tty instead of
20134 throwing an error. Doc update.
20135 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20136 Doc update. Initialize new subrs and variables.
20137 (delete_tty): Use terminal->deleted.
20138 (tty_set_terminal_modes): Rename from set_terminal_modes.
20139 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20140 (set_scroll_region): Rename to `tty_set_scroll_region'.
20141 (turn_on_insert): Rename to `tty_turn_on_insert'.
20142 (turn_off_insert): Rename to `tty_turn_off_insert'.
20143 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20144 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20145 (toggle_highligh): Rename to `tty_toggle_highlight'.
20146 (background_highlight): Rename to `tty_background_highlight'.
20147 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20148 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20149 (tty_set_scroll_region, tty_background_highlight)
20150 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20151 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20152 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20153 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20154 Add static modifier.
20155 (tty_reset_terminal_modes, tty_set_terminal_window)
20156 (tty_set_scroll_region, tty_background_highlight)
20157 (tty_highlight_if_desired, tty_cursor_to)
20158 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20159 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20160 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20161 renames.
20162
201632007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20164
20165 * keyboard.c: Qrtl is new.
20166 (parse_tool_bar_item): Handle :rtl keyword.
20167 (syms_of_keyboard): Intern :rtl keyword.
20168
20169 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20170
20171 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20172 so no Lisp code is executed.
20173 (file_for_image, find_rtl_image): New functions.
20174 (xg_get_image_for_pixmap): Use file_for_image.
20175 (update_frame_tool_bar): If direction is RTL, use RTL image if
20176 defined. Use Gtk stock images if defined.
20177
201782007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20179
20180 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20181 for nonexistent or zero-width glyph in composition glyph.
20182
201832007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20184
20185 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20186
20187 * xdisp.c (Finvisible_p): New function.
20188 (syms_of_xdisp): defsubr it.
20189
201902007-08-24 Juanma Barranquero <lekktu@gmail.com>
20191
20192 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20193 Doc fixes.
20194
201952007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20196
20197 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20198
201992007-08-24 Martin Rudalics <rudalics@gmx.at>
20200
20201 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20202 whether decoding has modified buffer contents.
20203
202042007-08-24 Jason Rumney <jasonr@gnu.org>
20205
20206 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20207 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20208 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20209 (init_svg_functions) [HAVE_NTGUI]: New function.
20210 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20211 (svg_load_image): Use them.
20212 (svg_load_image) [HAVE_NTGUI]: Implement background.
20213
202142007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20215
20216 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20217 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20218 (LIBX): Remove @RSVG_LIBS@.
20219 (LIBES): Add $(RSVG_LIBS).
20220
20221 * image.c (svg_load_image): Blend with specified background if exists.
20222 Use IMAGE_BACKGROUND. Add Mac OS Support.
20223
20224 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20225 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20226 Remove macros.
20227 [MAC_OSX] (socket_callback): Do nothing.
20228 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20229 ReceiveNextEvent.
20230 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20231 socket_callback.
20232 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20233
202342007-08-22 Glenn Morris <rgm@gnu.org>
20235
20236 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20237
202382007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20239
20240 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20241
20242 * image.c: Add support for SVG images. Some additional comments
20243 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20244 (svg_image_p): New function to test for SVG image.
20245 (svg_load): New function to load SVG image.
20246 (svg_load_image): New function, helper for svg_load.
20247 (Qsvg): New Lisp_object.
20248 (svg_keyword_index): New enum.
20249 (svg_format): New static `image_keyword' struct.
20250 (svg_type): New static `image_type' struct.
20251 (librsvg/rsvg.h): Include it.
20252
202532007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20254
20255 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20256
202572007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20258
20259 * lread.c (Qold_style_backquotes): New var.
20260 (syms_of_lread): Init and staticpro it.
20261 (load_warn_old_style_backquotes): New fun.
20262 (Fload): Use them to warn about old style backquotes.
20263 (end_of_file_error, Fload): Remove unused vars.
20264
20265 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20266
20267 * lread.c (Vold_style_backquotes): New var.
20268 (syms_of_lread): Init and export it to Elisp.
20269 (read1): Set it when we find an old-style (back)quote.
20270
202712007-08-22 Jason Rumney <jasonr@gnu.org>
20272
20273 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20274
202752007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20276
20277 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20278
202792007-08-19 Richard Stallman <rms@gnu.org>
20280
20281 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20282
202832007-08-19 Andreas Schwab <schwab@suse.de>
20284
20285 * alloc.c (pure): Round PURESIZE up.
20286
202872007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20288
20289 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20290 active frame.
20291
202922007-08-16 Richard Stallman <rms@gnu.org>
20293
20294 * eval.c (Fcommandp): Add parens to clarify.
20295
20296 * minibuf.c (Fall_completions): Use enum for type of table.
20297
20298 * emacs.c (USAGE2): Improve text.
20299
203002007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20301
20302 * term.c (tty_default_color_capabilities): Declare static
20303 variables in file scope, to avoid HPUX compiler problem.
20304
203052007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20306
20307 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20308 to gtk_toolbar_insert.
20309
203102007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20311
20312 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20313
20314 * insdel.c (reset_var_on_error): New fun.
20315 (signal_before_change, signal_after_change):
20316 Use it to reset (after|before)-change-functions to nil in case of error.
20317 Bind inhibit-modification-hooks to t.
20318 Don't bind (after|before)-change-functions to nil while they run.
20319
203202007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20321
20322 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20323 filling pixmap with stippled background.
20324
203252007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20326
20327 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20328 Don't use invisible frame as parent window for repositioning.
20329
203302007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20331
20332 * print.c (new_backquote_output): Rename from old_backquote_output.
20333 (print): Inverse its logic (according to its name) so as to match the
20334 behavior of new_backquote_flag in lread.c.
20335
203362007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20337
20338 * gmalloc.c (posix_memalign): New function.
20339
20340 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20341 ActivateControl/DeactivateControl here.
20342 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20343 frame-notice-user-settings is non-nil.
20344 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20345 for kEventParamFMFontStyle.
20346 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20347 mac_pass_command_to_system and mac_pass_control_to_system here.
20348 (XTread_socket): Call ActivateControl/DeactivateControl here.
20349 (XTread_socket) [TARGET_API_MAC_CARBON]:
20350 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20351 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20352 for window repositioning.
20353
203542007-08-08 Glenn Morris <rgm@gnu.org>
20355
20356 * Replace `iff' in doc-strings and comments.
20357
203582007-08-07 Chong Yidong <cyd@stupidchicken.com>
20359
20360 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20361
203622007-08-07 Martin Rudalics <rudalics@gmx.at>
20363
20364 * fileio.c (Finsert_file_contents): Run format-decode and
20365 after_insert_file_functions on entire buffer when REPLACE is
20366 non-nil and inhibit modification_hooks and point_motion_hooks.
20367 For consistency, run after_insert_file_functions iff something
20368 got inserted. Move signal_after_change and update_compositions
20369 after code running after_insert_file_functions. Make sure that
20370 undo_list doesn't record intermediate steps of the decoding process.
20371
203722007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20373
20374 * emacs.c (main)
20375 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20376 Call malloc_enable_thread on interactive startup.
20377
20378 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20379 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20380 [USE_PTHREAD]: Conditionalize with it.
20381 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20382 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20383 New functions.
20384
203852007-08-06 Chong Yidong <cyd@stupidchicken.com>
20386
20387 * xdisp.c (redisplay_window): When restoring original buffer
20388 position, make sure it is still valid.
20389
20390 * image.c (png_load): Ignore png-supplied background color.
20391
203922007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20393
20394 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20395 Use kCFAbsoluteTimeIntervalSince1970.
20396
20397 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20398 New variable.
20399 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20400 event loop should be quit.
20401 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20402 Quit dialog event loop if quit_dialog_event_loop is set.
20403
20404 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20405 (Selection): New typedef. Use instead of ScrapRef.
20406 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20407 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20408 (mac_clear_selection): Rename from clear_scrap.
20409 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20410 scrap_has_target_type. All uses changed.
20411 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20412 (mac_selection_has_target_p): New functions.
20413 (mac_put_selection_value): Rename from put_scrap_string.
20414 (mac_get_selection_value): Rename from get_scrap_string.
20415 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20416 (put_scrap_private_timestamp, scrap_has_target_type)
20417 (get_scrap_private_timestamp): Remove functions.
20418 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20419 (x_own_selection, x_get_local_selection):
20420 Use mac_valid_selection_value_p.
20421 (x_own_selection): Don't use put_scrap_private_timestamp.
20422 Record OWNERSHIP-INFO into Vselection_alist instead.
20423 (x_get_local_selection): Don't check type if request is local.
20424 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20425 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20426
204272007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20428
20429 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20430 add comment explaining why.
20431
204322007-08-03 Richard Stallman <rms@gnu.org>
20433
20434 * fileio.c (Fvisited_file_modtime): Use make_time.
20435
204362007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20437
20438 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20439 build.
20440
204412007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20442
20443 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20444
204452007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20446
20447 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20448
204492007-07-30 Richard Stallman <rms@gnu.org>
20450
20451 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20452
204532007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20454
20455 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20456
204572007-07-28 Nick Roberts <nickrob@snap.net.nz>
20458
20459 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20460 remote default-directory.
20461
20462 * buffer.c (mode-line-format): Update doc string.
20463
204642007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20465
20466 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20467 scroll bar gap.
20468 (x_scroll_bar_create): Set bar->fringe_extended_p.
20469 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20470 on frame edge. Check fringe background extension. Don't clear
20471 extended fringe background area.
20472
20473 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20474 (w32_fill_area): Enclose multiple statements with do ... while (0).
20475
20476 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20477 Extend fringe background to scroll bar gap.
20478 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20479 Set bar->fringe_extended_p.
20480 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20481 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20482 background extension. Don't clear extended fringe background area.
20483
20484 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20485 New member fringe_extended_p.
20486
204872007-07-25 Glenn Morris <rgm@gnu.org>
20488
20489 * Relicense all FSF files to GPLv3 or later.
20490
20491 * COPYING: Switch to GPLv3.
20492
204932007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20494
20495 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20496
20497 * data.c (Finteractive_form): Check for the presence of an
20498 `interactive-form' symbol property more thoroughly.
20499
20500 * data.c (Finteractive_form): Use an `interactive-form' property if
20501 present, analogous to the function-documentation property.
20502
205032007-07-24 Jason Rumney <jasonr@gnu.org>
20504
20505 * w32fns.c (x_real_positions): Get real position from OS instead of
20506 calculating it.
20507
205082007-07-23 Jason Rumney <jasonr@gnu.org>
20509
20510 * filelock.c (current_lock_owner): Allow for @ sign in username.
20511
205122007-07-22 Nick Roberts <nickrob@snap.net.nz>
20513
20514 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20515 remote default-directory.
20516
20517 * buffer.c (mode-line-format): Describe above case in doc string.
20518
205192007-07-20 Eli Zaretskii <eliz@gnu.org>
20520
20521 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20522 Define if not defined.
20523
205242007-07-18 Jason Rumney <jasonr@gnu.org>
20525
20526 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20527
205282007-07-18 Richard Stallman <rms@gnu.org>
20529
20530 * data.c (Fsetq_default): Doc fix.
20531
20532 * eval.c (Fsetq): Doc fix.
20533
205342007-07-18 Juanma Barranquero <lekktu@gmail.com>
20535
20536 * coding.c (Ffind_operation_coding_system):
20537 * eval.c (For, Fand): Doc fixes.
20538 Reported by Johan Bockgård.
20539
205402007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20541
20542 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20543
20544 * xterm.h: Declare x_ewmh_activate_frame.
20545
20546 * xterm.c (x_ewmh_activate_frame): New function.
20547 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20548
205492007-07-17 Martin Rudalics <rudalics@gmx.at>
20550
20551 * window.c (Fdisplay_buffer): If largest or LRU window is the
20552 only window, split it even if it is not eligible for splitting.
20553 This restores the original behavior broken by the 2007-07-15
20554 change.
20555
205562007-07-17 Glenn Morris <rgm@gnu.org>
20557
20558 * abbrev.c (abbrev_check_chars): New function.
20559 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20560 Call abbrev_check_chars to check abbrev characters are word
20561 constituents. Doc fix.
20562
205632007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20564
20565 * process.c (Fstart_process, Fmake_network_process)
20566 (read_process_output): Fix up last changes.
20567
205682007-07-16 Eli Zaretskii <eliz@gnu.org>
20569
20570 * makefile.w32-in (clean): Don't delete *~.
20571
205722007-07-16 Andreas Schwab <schwab@suse.de>
20573
20574 * window.c (Fdisplay_buffer): Use NILP.
20575 (Fset_window_scroll_bars): Likewise.
20576
205772007-07-15 Martin Rudalics <rudalics@gmx.at>
20578
20579 * window.c (window_min_size_2): New function.
20580 (window_min_size_1, size_window, Fdisplay_buffer)
20581 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20582 windows without mode- or header-lines when window-min-height is
20583 too small.
20584 (size_window): Reset nodelete_p after testing it, following an
20585 earlier note by Kim F. Storm.
20586 (display_buffer): Do not set split_height_threshold to twice the
20587 value of window_min_height to avoid changing the value of a
20588 customizable variable. Rather explicitly check whether the
20589 height of the window that shall be splitted is at least as large
20590 as split_height_threshold.
20591 (Fwindow_full_width_p): New defun.
20592 (syms_of_window): Defsubr it.
20593
20594 * window.h: Add EXFUN for Fwindow_full_width_p.
20595
205962007-07-14 Jason Rumney <jasonr@gnu.org>
20597
20598 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20599
206002007-07-14 Richard Stallman <rms@gnu.org>
20601
20602 * eval.c (maybe_call_debugger): New function.
20603 (find_handler_clause): Use maybe_call_debugger.
20604 Call it when the handler says `debug'.
20605 Eliminate DEBUGGER_VALUE_PTR.
20606 (Fsignal): Eliminate debugger_value.
20607 (Qdebug): New variable.
20608 (syms_of_eval): Initialize it.
20609
206102007-07-14 Juanma Barranquero <lekktu@gmail.com>
20611
20612 * eval.c (Fprogn):
20613 * keyboard.c (Ftrack_mouse):
20614 * print.c (Fwith_output_to_temp_buffer):
20615 * window.c (Fsave_window_excursion): Doc fix.
20616
206172007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20618
20619 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20620
206212007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20622
20623 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20624 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20625 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20626 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20627 Remove unused encoding_carryover.
20628 * process.c: Adjust all functions accordingly.
20629
206302007-07-12 Richard Stallman <rms@gnu.org>
20631
20632 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20633
206342007-07-11 Jason Rumney <jasonr@gnu.org>
20635
20636 * makefile.w32-in (LIBS): Include OLE32.
20637
20638 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20639 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20640
206412007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20642
20643 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20644 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20645 from a Lisp_Object into a bare pointer.
20646 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20647 Adjust the code correspondingly.
20648
20649 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20650
20651 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20652 (term_show_mouse_face): Remove unused var `j'.
20653 (handle_one_term_event): Remove unused vars `i' and `j'.
20654 Don't cast return value of ttyname since it's not necessary.
20655
206562007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20657
20658 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20659 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20660
20661 * fns.c (map_char_table): Use an array of int for `indices' rather than
20662 an array of Lisp_Objects (which are only ever integers anyway).
20663 (Fmap_char_table): Update caller.
20664 * lisp.h: Update prototype.
20665 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20666 * fontset.c (Ffontset_info):
20667 * casetab.c (set_case_table): Update callers.
20668
20669 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20670
20671 * keymap.c (struct accessible_keymaps_data)
20672 (struct where_is_internal_data): New structures.
20673 (accessible_keymaps_1, where_is_internal_1): Use them to change
20674 interface to adhere to the one used by map_keymap.
20675 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20676 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20677
20678 * keymap.h (map_keymap_function_t): More informative prototype.
20679
206802007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20681
20682 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20683 (looking_at_1): Don't change search_regs and last_thing_searched
20684 if `inhibit-changing-match-data' is non-nil.
20685 (string_match_1, search_buffer, set_search_regs): Likewise.
20686 (syms_of_search): Add Lisp level definition for
20687 `inhibit-changing-match-data' and set it to nil.
20688 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20689 start and end of the match, instead of using values in search_regs.
20690
206912007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20692
20693 * minibuf.c (Fcompleting_read): New value `confirm-only'
20694 for `require-match'.
20695
206962007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20697
20698 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20699 part of the 2007-06-27 change to syms_of_fileio.
20700
207012007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20702
20703 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20704 Check WINDOWP before using XWINDOW. Consolidate return statements.
20705
207062007-06-27 Richard Stallman <rms@gnu.org>
20707
20708 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20709
207102007-06-27 Juanma Barranquero <lekktu@gmail.com>
20711
20712 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20713
207142007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20715
20716 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20717 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20718 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20719 (_free_internal, memalign): Use them.
20720 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20721 Initialize to PTHREAD_MUTEX_INITIALIZER.
20722 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20723 (morecore_nolock): Rename from morecore. All uses changed.
20724 Use only nolock versions of internal allocation functions.
20725 (_malloc_internal_nolock, _realloc_internal_nolock)
20726 (_free_internal_nolock): New functions created from
20727 _malloc_internal, _realloc_internal, and _free_internal.
20728 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20729 Copy hook value to automatic variable before its use.
20730 (memalign): Copy hook value to automatic variable before its use.
20731
207322007-06-26 Kenichi Handa <handa@m17n.org>
20733
20734 * coding.c (Ffind_operation_coding_system): Docstring improved.
20735 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20736
207372007-06-25 David Kastrup <dak@gnu.org>
20738
20739 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20740 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20741 cater for additional parameter.
20742
20743 * keymap.h: Adjust number of parameters to `current-active-maps'.
20744
20745 * doc.c (Fsubstitute_command_keys): Adjust call of
20746 `current-active-maps'.
20747
207482007-06-25 David Kastrup <dak@gnu.org>
20749
20750 * callint.c (Fcall_interactively): Make the parsing of interactive
20751 specs somewhat more readable.
20752
207532007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20754
20755 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20756 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20757 if extended background has already been filled.
20758
207592007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20760
20761 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20762 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20763
20764 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20765 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20766 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20767 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20768 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20769 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20770 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20771 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20772 Run timers during dialog popup.
20773 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20774
207752007-06-21 Jason Rumney <jasonr@gnu.org>
20776
20777 * image.c (convert_mono_to_color_image): Swap fore and background.
20778
207792007-06-20 Jason Rumney <jasonr@gnu.org>
20780
20781 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20782 (w32_free_bdf_font): Unmap memory not handle.
20783
207842007-06-20 Sam Steingold <sds@gnu.org>
20785
20786 * gmalloc.c (__morecore): Fix the declaration to comply with the
20787 definition.
20788
207892007-06-20 Juanma Barranquero <lekktu@gmail.com>
20790
20791 * w32term.c (w32_delete_display): Remove leftover declaration.
20792 (w32_define_cursor, w32_initialize): Make static.
20793
20794 * w32.c (_wsa_errlist): Fix typo in error message.
20795 (init_environment): Ignore any environment variable from the
20796 registry having a null value.
20797
207982007-06-20 Glenn Morris <rgm@gnu.org>
20799
20800 * Makefile.in (LIBGIF): Default to -lgif.
20801
208022007-06-17 Jason Rumney <jasonr@gnu.org>
20803
20804 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20805 unicode strings.
20806
208072007-06-16 Juanma Barranquero <lekktu@gmail.com>
20808
20809 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20810 Fix typo in docstring.
20811
208122007-06-16 Eli Zaretskii <eliz@gnu.org>
20813
20814 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20815 and their keybindings.
20816
208172007-06-15 Chong Yidong <cyd@stupidchicken.com>
20818
20819 * composite.c (update_compositions): Fix last fix.
20820
208212007-06-14 Jason Rumney <jasonr@gnu.org>
20822
20823 * w32.c (get_process_times_fn): New function pointer.
20824 (globals_of_w32): Intialize it if present in kernel32.dll.
20825 (w32_get_internal_run_time): New function.
20826
20827 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20828
208292007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20830
20831 * composite.c (update_compositions): Check the validness of
20832 compositions.
20833
208342007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20835
20836 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20837 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20838
20839 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20840 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20841
20842 * macgui.h (USE_MAC_TOOLBAR): New define.
20843
20844 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20845 Return immediately unless popup is activated.
20846
20847 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20848 background to scroll bar gap.
20849 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20850 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20851 scroll bars on frame edge. Check fringe background extension.
20852 Don't clear extended fringe background area.
20853 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20854 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20855 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20856 [USE_MAC_TOOLBAR]: New macros.
20857 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20858 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20859 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20860 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20861 [USE_MAC_TOOLBAR]: New functions.
20862 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20863 manually if previous repositioning has failed.
20864 (mac_handle_keyboard_event): Use precomputed event kind.
20865 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20866 as tool bar item click. Handle mouse movement over tool bar items.
20867
20868 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20869 toolbar_win_gravity.
20870 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20871 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20872 Add externs.
20873
20874 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20875 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20876
208772007-06-14 Chong Yidong <cyd@stupidchicken.com>
20878
20879 * image.c (search_image_cache): Remove unused variable.
20880
208812007-06-13 Chong Yidong <cyd@stupidchicken.com>
20882
20883 * xfns.c, xmenu.c: Link to xaw3d if available.
20884
208852007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20886
20887 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20888 frame_foreground and frame_background.
20889
20890 * image.c (lookup_image): Save frame foreground and background colors.
20891 (search_image_cache): Check if saved and current frame colors match.
20892
208932007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20894
20895 * regex.c (regex_compile): Remove the `regnum' counter.
20896 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20897
208982007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20899
20900 * term.c: Include intervals.h to declare Fget_text_property.
20901
209022007-06-10 Jason Rumney <jasonr@gnu.org>
20903
20904 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20905
209062007-06-08 Juanma Barranquero <lekktu@gmail.com>
20907
20908 * callint.c (Fcall_interactively):
20909 * editfns.c (Fdelete_and_extract_region):
20910 * fileio.c (Fread_file_name):
20911 * fns.c (Fmapconcat):
20912 * keyboard.c (cmd_error_internal):
20913 * keymap.c (Fkey_description):
20914 * lread.c (openp):
20915 * minibuf.c (read_minibuf):
20916 * search.c (wordify):
20917 * sunfns.c (sel_read):
20918 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20919 * xfns.c (x_default_scroll_bar_color_parameter):
20920 * xmenu.c (menu_help_callback):
20921 * xselect.c (Fx_get_atom_name):
20922 * xterm.c (x_term_init): Use empty_unibyte_string.
20923
209242007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20925
20926 * alloc.c (init_strings): Initialize canonical empty strings.
20927 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20928 canonical empty string when the requested size is 0.
20929
20930 * emacs.c (empty_unibyte_string): Rename from empty_string.
20931 (empty_multibyte_string): New canonical empty string.
20932 (syms_of_emacs): Don't initialize empty_string.
20933
20934 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20935 string, if appropriate.
20936 (empty_unibyte_string, empty_multibyte_string): New externs.
20937 (empty_string): Remove extern.
20938
20939 * lread.c (syms_of_lread): Use empty_unibyte_string.
20940
209412007-06-07 Jason Rumney <jasonr@gnu.org>
20942
20943 * s/ms-w32.h: Don't define HAVE_TZNAME.
20944
20945 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20946
209472007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20948
20949 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20950
20951 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20952 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20953
20954 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20955 Don't call next handler.
20956 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20957 Remove argument. Install handler to application.
20958 (set_frame_menubar): Don't change deep_p.
20959 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20960 FRAME_OUTER_TO_INNER_DIFF_Y.
20961 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20962 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20963 [HAVE_DIALOGS]: New macros.
20964 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20965 Use them.
20966 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20967
20968 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20969 init_service_handler. All callers changed. Return OSStatus value.
20970
20971 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20972 All callers changed so as not to call SetPortWindowPort.
20973 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20974 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20975 mac_draw_string_common.
20976 (mac_draw_image_string_qd): Likewise.
20977 (mac_draw_string_common): Use them. Add INLINE.
20978 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20979 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20980 GetGlobalMouse.
20981 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20982 and FRAME_OUTER_TO_INNER_DIFF_Y.
20983 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20984 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20985 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20986 repositioning window to mac_handle_window_event.
20987 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20988 saving window location to mac_handle_window_event
20989 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20990 (install_menu_target_item_handler): Remove argument in extern.
20991 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20992 Also accept command events.
20993 (do_keystroke): New function created from XTread_socket.
20994 (init_command_handler): Remove functions.
20995 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20996 and save window location by kEventWindowShowing and kEventWindowHiding
20997 handlers here. Don't call next handler for window state change and
20998 focus events.
20999 (mac_handle_application_event, mac_handle_keyboard_event)
21000 [TARGET_API_MAC_CARBON]: New functions.
21001 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21002 kEventWindowShowing and kEventWindowHiding events. Move installation
21003 of mouse, font, text input and menu target item handlers to
21004 install_application_handler.
21005 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21006 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21007 New function.
21008 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21009 Register it.
21010 (XTread_socket) [TARGET_API_MAC_CARBON]:
21011 Consolidate SendEventToEventTarget calls.
21012 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21013 Move application activation handler to mac_handle_application_event.
21014 Move keyboard handler to mac_handle_keyboard_event.
21015 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21016 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21017 init_command_handler. Call install_application_handler.
21018
21019 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21020 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21021
210222007-06-07 Glenn Morris <rgm@gnu.org>
21023
21024 * emacs.c (main): Use `emacs-copyright' in --version output.
21025
210262007-06-06 Chong Yidong <cyd@stupidchicken.com>
21027
21028 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21029
210302007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21031
21032 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21033
21034 * macgui.h: Replace WindowPtr with WindowRef.
21035
21036 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21037 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21038 Replace ControlHandle with ControlRef.
21039 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21040
21041 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21042 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21043 Replace ControlHandle with ControlRef.
21044 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21045 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21046
21047 * macterm.h (struct scroll_bar): Rename member control_handle_low
21048 and control_handle_high to control_ref_low and control_ref_high.
21049 All uses changed.
21050 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21051 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21052 respectively. All uses changed.
21053 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21054 (install_window_handler, remove_window_handler): Replace WindowPtr
21055 with WindowRef in externs.
21056
210572007-06-05 Juanma Barranquero <lekktu@gmail.com>
21058
21059 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21060
210612007-06-03 Nick Roberts <nickrob@snap.net.nz>
21062
21063 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21064
21065 * frame.c (Fmouse_position, Fmouse_pixel_position):
21066 Condition on HAVE_GPM too.
21067
21068 * term.c (term_mouse_highlight): Remove unused variables.
21069 (Fterm_open_connection): Set gpm_zerobased to 1.
21070 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21071 Use zero based co-ordinates.
21072 (handle_one_term_event): Report a drag as mouse movement too.
21073
21074 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21075
210762007-06-03 Chong Yidong <cyd@stupidchicken.com>
21077
21078 * image.c (search_image_cache): New function. Require background
21079 color match if background color is unspecified in the image spec.
21080 (uncache_image, lookup_image): Use it.
21081
210822007-06-01 Juanma Barranquero <lekktu@gmail.com>
21083
21084 * window.c (Fshrink_window): Reflow docstring.
21085
210862007-06-02 Chong Yidong <cyd@stupidchicken.com>
21087
21088 * Version 22.1 released.
21089
210902007-06-01 Richard Stallman <rms@gnu.org>
21091
21092 * xfns.c (x_encode_text): Add GCPRO.
21093
210942007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21095
21096 * xfns.c (x_set_name_internal): Save encoded name before
21097 x_encode_text in case string data is relocated.
21098
210992007-05-31 Richard Stallman <rms@gnu.org>
21100
21101 * buffer.c (syms_of_buffer): Doc fix.
21102
211032007-05-30 Nick Roberts <nickrob@snap.net.nz>
21104
21105 * sysdep.c (init_sys_modes): Add rather than replace with
21106 O_NONBLOCK.
21107
21108 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21109 term_mouse_moveto.
21110
21111 * termhooks.h (term_mouse_moveto): New extern.
21112
21113 * term.c (mouse_face_window): Rename...
21114 (Qmouse_face_window): ...to this.
21115 (term_show_mouse_face, term_clear_mouse_face)
21116 (term_mouse_highlight): Use Qmouse_face_window.
21117 (term_mouse_moveto): New function.
21118 (term_mouse_position): Make it work.
21119 (syms_of_term): Uncomment assignment to mouse_position_hook.
21120 Staticpro Qmouse_face_window.
21121
211222007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21123
21124 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21125 around current_column call.
21126
211272007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21128
21129 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21130 * xdisp.c (next_element_from_buffer):
21131 * window.c (delete_window):
21132 * term.c (term_mouse_highlight):
21133 * msdos.c (getdefdir):
21134 * macterm.c (mac_create_bitmap_from_bitmap_data)
21135 (init_font_name_table):
21136 * fns.c (Fsxhash):
21137 * data.c (Fmake_local_variable):
21138 * ccl.c (ccl_driver): Likewise.
21139
211402007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21141
21142 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21143 Call mac_wakeup_from_rne on window size change.
21144
211452007-05-25 Chong Yidong <cyd@stupidchicken.com>
21146
21147 * image.c (uncache_image): Fix typo.
21148
211492007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21150
21151 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21152
211532007-05-22 Richard Stallman <rms@gnu.org>
21154
21155 * xterm.c (x_connection_closed): Remove NO_RETURN.
21156
211572007-05-22 Martin Rudalics <rudalics@gmx.at>
21158
21159 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21160
211612007-05-21 Chong Yidong <cyd@stupidchicken.com>
21162
21163 * image.c (uncache_image): New function.
21164 (Fimage_refresh): New function.
21165
211662007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21167
21168 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21169
211702007-05-20 Nick Roberts <nickrob@snap.net.nz>
21171
21172 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21173 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21174
211752007-05-20 Nick Roberts <nickrob@snap.net.nz>
21176
21177 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21178 conditional on [HAVE_GPM_H].
21179
211802007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21181
21182 * syntax.c (skip_chars): Update syntax-table only after we checked that
21183 the new location is valid.
21184
211852007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21186
21187 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21188 mac_get_window_bounds.
21189
211902007-05-20 Nick Roberts <nickrob@snap.net.nz>
21191
21192 * Makefile.in (LIBGPM): Allow it to be set from configure.
21193 If set then link Emacs with it.
21194
21195 * config.in: Regenerate.
21196
21197 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21198 New externs.
21199
21200 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21201 Include gpm.h.
21202 (handle_one_term_event, term_gpm): New externs.
21203
21204 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21205 and allow it to be interrupted by SIGIO.
21206
21207 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21208 (wait_reading_process_output): Wait on gpm_fd too.
21209 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21210 (add_gpm_wait_descriptor_called_flag): New variable.
21211 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21212
21213 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21214 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21215 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21216 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21217 (make_lispy_event): Add case GPM_CLICK_EVENT.
21218 (read_avail_input): Handle mouse input.
21219
21220 * term.c (write_glyphs_with_face): New function.
21221 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21222 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21223 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21224 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21225 (last_mouse_x, last_mouse_y): New variables.
21226 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21227 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21228 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21229 (Fterm_close_connection): New functions.
21230 (term_init): Initialise mouse_face_window.
21231
212322007-05-19 Chong Yidong <cyd@stupidchicken.com>
21233
21234 * xdisp.c (redisplay_window): If first window line is a
21235 continuation line, recompute the new window start instead of
21236 recentering.
21237
212382007-05-18 Glenn Morris <rgm@gnu.org>
21239
21240 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21241 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21242
212432007-05-17 Glenn Morris <rgm@gnu.org>
21244
21245 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21246
212472007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21248
21249 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21250 dead key repeat and up events.
21251
212522007-05-14 Chong Yidong <cyd@stupidchicken.com>
21253
21254 * image.c (pbm_load): Check image size for monochrome pbm.
21255
212562007-05-13 Chong Yidong <cyd@stupidchicken.com>
21257
21258 * xterm.c (XTread_socket): Revert last change.
21259
212602007-05-12 Chong Yidong <cyd@stupidchicken.com>
21261
21262 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21263
21264 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21265
212662007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21267
21268 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21269 mixup (YAILOM).
21270
212712007-05-07 Andreas Schwab <schwab@suse.de>
21272
21273 * keymap.c (Flookup_key): Fix typo in last change.
21274
212752007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21276
21277 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21278 mapping for unibyte strings.
21279
212802007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21281
21282 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21283 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21284
212852007-04-29 Richard Stallman <rms@gnu.org>
21286
21287 * insdel.c (replace_range): For undo, record insertion first.
21288
212892007-04-29 Andreas Schwab <schwab@suse.de>
21290
21291 * lisp.h (VECSIZE): Use OFFSETOF.
21292
212932007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21294
21295 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21296 disabled lines.
21297
212982007-04-28 Richard Stallman <rms@gnu.org>
21299
21300 * lread.c (read_escape): In a string, \s is always space.
21301
213022007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21303
21304 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21305
21306 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21307 submenu for menu bar items.
21308
21309See ChangeLog.10 for earlier changes.
21310
21311;; Local Variables:
21312;; coding: utf-8
21313;; add-log-time-zone-rule: t
aac0c6e3
MR
21314;; End:
21315
e3eb1dae 21316 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21317
21318 This file is part of GNU Emacs.
21319
21320 GNU Emacs is free software: you can redistribute it and/or modify
21321 it under the terms of the GNU General Public License as published by
21322 the Free Software Foundation, either version 3 of the License, or
21323 (at your option) any later version.
21324
21325 GNU Emacs is distributed in the hope that it will be useful,
21326 but WITHOUT ANY WARRANTY; without even the implied warranty of
21327 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21328 GNU General Public License for more details.
21329
21330 You should have received a copy of the GNU General Public License
21331 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21332
21333;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40